openvidu-livekit-tutorials/openvidu-webcomponent/web/openvidu-webcomponent-2.25.0.js
2022-12-22 15:39:44 +01:00

3 lines
1.4 MiB

(()=>{"use strict";var e,i={},p={};function n(e){var a=p[e];if(void 0!==a)return a.exports;var r=p[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=i,e=[],n.O=(a,r,c,f)=>{if(!r){var s=1/0;for(t=0;t<e.length;t++){for(var[r,c,f]=e[t],u=!0,l=0;l<r.length;l++)(!1&f||s>=f)&&Object.keys(n.O).every(h=>n.O[h](r[l]))?r.splice(l--,1):(u=!1,f<s&&(s=f));if(u){e.splice(t--,1);var o=c();void 0!==o&&(a=o)}}return a}f=f||0;for(var t=e.length;t>0&&e[t-1][2]>f;t--)e[t]=e[t-1];e[t]=[r,c,f]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};n.O.j=c=>0===e[c];var a=(c,f)=>{var l,o,[t,s,u]=f,v=0;if(t.some(_=>0!==e[_])){for(l in s)n.o(s,l)&&(n.m[l]=s[l]);if(u)var d=u(n)}for(c&&c(f);v<t.length;v++)n.o(e,o=t[v])&&e[o]&&e[o][0](),e[o]=0;return n.O(d)},r=self.webpackChunkopenvidu_webcomponent=self.webpackChunkopenvidu_webcomponent||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
(self.webpackChunkopenvidu_webcomponent=self.webpackChunkopenvidu_webcomponent||[]).push([[179],{7576:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.Connection=void 0;var k=B(8770),$=B(1829),V=B(4131),y=$.OpenViduLogger.getInstance(),b=function(){function E(_,m){this.session=_,this.disposed=!1;var w="'Connection' created ";m.role?(this.localOptions=m,this.connectionId=this.localOptions.id,this.creationTime=this.localOptions.createdAt,this.data=this.localOptions.metadata,this.rpcSessionId=this.localOptions.sessionId,this.role=this.localOptions.role,this.record=this.localOptions.record,w+="(local)"):(this.remoteOptions=m,this.connectionId=this.remoteOptions.id,this.creationTime=this.remoteOptions.createdAt,this.remoteOptions.metadata&&(this.data=this.remoteOptions.metadata),this.remoteOptions.streams&&this.initRemoteStreams(this.remoteOptions.streams),w+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),y.info(w)}return E.prototype.sendIceCandidate=function(_){var m=this;this.disposed?y.warn("Connection ".concat(this.connectionId," disposed when trying to send an ICE candidate. ICE candidate not sent")):(y.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,_),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:_.candidate,sdpMid:_.sdpMid,sdpMLineIndex:_.sdpMLineIndex},function(w,C){w&&(y.error("Error sending ICE candidate: "+JSON.stringify(w)),m.session.emitEvent("exception",[new V.ExceptionEvent(m.session,V.ExceptionEventName.ICE_CANDIDATE_ERROR,m.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",w)]))}))},E.prototype.initRemoteStreams=function(_){var m=this;_.forEach(function(w){var C={id:w.id,createdAt:w.createdAt,connection:m,hasAudio:w.hasAudio,hasVideo:w.hasVideo,audioActive:w.audioActive,videoActive:w.videoActive,typeOfVideo:w.typeOfVideo,frameRate:w.frameRate,videoDimensions:w.videoDimensions?JSON.parse(w.videoDimensions):void 0,filter:w.filter?w.filter:void 0},G=new k.Stream(m.session,C);m.addStream(G)}),y.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},E.prototype.addStream=function(_){_.connection=this,this.stream=_},E.prototype.removeStream=function(){delete this.stream},E.prototype.dispose=function(){this.disposed=!0,this.removeStream()},E}();R.Connection=b},2768:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.EventDispatcher=void 0;var k=B(1829),$=B(2937),V=k.OpenViduLogger.getInstance(),y=function(){function b(){this.userHandlerArrowHandler=new WeakMap,this.ee=new $}return b.prototype.onAux=function(E,_,m){var w=function(C){C?V.debug(_,C):V.debug(_),m(C)};return this.userHandlerArrowHandler.set(m,w),this.ee.on(E,w),this},b.prototype.onceAux=function(E,_,m){var w=this,C=function(G){G?V.debug(_,G):V.debug(_),m(G),w.userHandlerArrowHandler.delete(m)};return this.userHandlerArrowHandler.set(m,C),this.ee.once(E,C),this},b.prototype.offAux=function(E,_){if(_){var m=this.userHandlerArrowHandler.get(_);m&&this.ee.off(E,m),this.userHandlerArrowHandler.delete(_)}else this.ee.removeAllListeners(E);return this},b}();R.EventDispatcher=y},5481:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.Filter=void 0;var k=B(9383),$=B(9303),y=B(1829).OpenViduLogger.getInstance(),b=function(){function E(_,m){this.handlers=new Map,this.type=_,this.options=m}return E.prototype.execMethod=function(_,m){var w=this;return new Promise(function(C,G){var J;y.info("Executing filter method to stream "+w.stream.streamId);var O,N=function(S){y.info("Filter method successfully executed on Stream "+w.stream.streamId);var v=Object.assign({},w.stream.filter);return w.stream.filter.lastExecMethod={method:_,params:O},S&&(w.stream.session.emitEvent("streamPropertyChanged",[new k.StreamPropertyChangedEvent(w.stream.session,w.stream,"filter",w.stream.filter,v,"execFilterMethod")]),w.stream.streamManager.emitEvent("streamPropertyChanged",[new k.StreamPropertyChangedEvent(w.stream.streamManager,w.stream,"filter",w.stream.filter,v,"execFilterMethod")])),C()};if(w.type.startsWith("VB:")){if("string"==typeof m)try{m=JSON.parse(m)}catch(S){return G(new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Wrong params syntax: "+S))}if(O=m,"update"!==_)return G(new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Unknown Virtual Background method "'.concat(_,'"')));if(null===(J=w.stream.virtualBackgroundSinkElements)||void 0===J||!J.VB)return G(new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"There is no Virtual Background filter applied"));w.stream.virtualBackgroundSinkElements.VB.updateValues(m).then(function(){return N(!1)}).catch(function(S){return G(S.name===$.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new $.OpenViduError(S.name,S.message):new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Error updating values on Virtual Background filter: "+S))})}else{var Q=void 0;if("string"!=typeof m)try{Q=JSON.stringify(m)}catch(S){var W="'params' property must be a JSON formatted object";return y.error(W),G(W)}else Q=m;O=Q,w.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:w.stream.streamId,method:_,params:Q},function(S,v){return S?(y.error("Error executing filter method for Stream "+w.stream.streamId,S),G(401===S.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):S)):N(!0)})}})},E.prototype.addEventListener=function(_,m){var w=this;return new Promise(function(C,G){y.info("Adding filter event listener to event "+_+" to stream "+w.stream.streamId),w.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:w.stream.streamId,eventType:_},function(J,O){return J?(y.error("Error adding filter event listener to event "+_+"for Stream "+w.stream.streamId,J),G(401===J.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):J)):(w.handlers.set(_,m),y.info("Filter event listener to event "+_+" successfully applied on Stream "+w.stream.streamId),C())})})},E.prototype.removeEventListener=function(_){var m=this;return new Promise(function(w,C){y.info("Removing filter event listener to event "+_+" to stream "+m.stream.streamId),m.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:m.stream.streamId,eventType:_},function(G,J){return G?(y.error("Error removing filter event listener to event "+_+"for Stream "+m.stream.streamId,G),C(401===G.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):G)):(m.handlers.delete(_),y.info("Filter event listener to event "+_+" successfully removed on Stream "+m.stream.streamId),w())})})},E}();R.Filter=b},8499:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.LocalRecorder=void 0;var E,k=B(1216),$=B(1829),V=B(1171),y=B(1397),b=$.OpenViduLogger.getInstance(),_=function(){function m(w){this.stream=w,this.chunks=[],E=V.PlatformUtils.getInstance(),this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=k.LocalRecorderState.READY}return m.prototype.record=function(w){var C=this;return new Promise(function(G,J){try{if("string"==typeof w||w instanceof String)return J("When calling LocalRecorder.record(options) parameter 'options' cannot be a string. Must be an object like { mimeType: \"".concat(w,'" }'));if("undefined"==typeof MediaRecorder)throw b.error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder"),Error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder");if(C.state!==k.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+C.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");b.log("Starting local recording of stream '"+C.stream.streamId+"' of connection '"+C.connectionId+"'"),w?w.mimeType||(w.mimeType="video/webm"):w={mimeType:"video/webm"},C.mediaRecorder=new MediaRecorder(C.stream.getMediaStream(),w),C.mediaRecorder.start()}catch(O){return J(O)}return C.mediaRecorder.ondataavailable=function(O){O.data.size>0&&C.chunks.push(O.data)},C.mediaRecorder.onerror=function(O){b.error("MediaRecorder error: ",O)},C.mediaRecorder.onstart=function(){b.log("MediaRecorder started (state="+C.mediaRecorder.state+")")},C.mediaRecorder.onstop=function(){C.onStopDefault()},C.mediaRecorder.onpause=function(){b.log("MediaRecorder paused (state="+C.mediaRecorder.state+")")},C.mediaRecorder.onresume=function(){b.log("MediaRecorder resumed (state="+C.mediaRecorder.state+")")},C.state=k.LocalRecorderState.RECORDING,G()})},m.prototype.stop=function(){var w=this;return new Promise(function(C,G){try{if(w.state===k.LocalRecorderState.READY||w.state===k.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+w.state+"'). Call 'LocalRecorder.start()' before");w.mediaRecorder.onstop=function(){return w.onStopDefault(),C()},w.mediaRecorder.stop()}catch(J){return G(J)}})},m.prototype.pause=function(){var w=this;return new Promise(function(C,G){try{return w.state!==k.LocalRecorderState.RECORDING?G(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+w.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")):(w.mediaRecorder.pause(),w.state=k.LocalRecorderState.PAUSED,C())}catch(J){return G(J)}})},m.prototype.resume=function(){var w=this;return new Promise(function(C,G){try{if(w.state!==k.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+w.state+"'). Call 'LocalRecorder.pause()' before");return w.mediaRecorder.resume(),w.state=k.LocalRecorderState.RECORDING,C()}catch(J){return G(J)}})},m.prototype.preview=function(w){if(this.state!==k.LocalRecorderState.FINISHED)throw Error("'LocalRecord.preview()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");if(this.videoPreview=document.createElement("video"),this.videoPreview.id=this.id,this.videoPreview.autoplay=!0,E.isSafariBrowser()&&(this.videoPreview.playsInline=!0),"string"==typeof w){var C=document.getElementById(w);C&&(this.videoPreview=C.appendChild(this.videoPreview))}else this.videoPreview=w.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},m.prototype.clean=function(){var w=this,C=function(){delete w.blob,w.chunks=[],w.state=k.LocalRecorderState.READY};this.state===k.LocalRecorderState.RECORDING||this.state===k.LocalRecorderState.PAUSED?this.stop().then(function(){return C()}).catch(function(){return C()}):C()},m.prototype.download=function(){if(this.state!==k.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var w=document.createElement("a");w.style.display="none",document.body.appendChild(w);var C=globalThis.URL.createObjectURL(this.blob);w.href=C,w.download=this.id+"."+y.getExtension(this.blob.type),w.click(),globalThis.URL.revokeObjectURL(C),document.body.removeChild(w)},m.prototype.getBlob=function(){if(this.state!==k.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},m.prototype.uploadAsBinary=function(w,C){var G=this;return new Promise(function(J,O){if(G.state!==k.LocalRecorderState.FINISHED)return O(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+G.state+"'). Call 'LocalRecorder.stop()' before"));var N=new XMLHttpRequest;if(N.open("POST",w,!0),"object"==typeof C)for(var Q=0,W=Object.keys(C);Q<W.length;Q++){var S=W[Q];N.setRequestHeader(S,C[S])}N.onreadystatechange=function(){if(4===N.readyState)return"2"===N.status.toString().charAt(0)?J(N.responseText):O(N.status)},N.send(G.blob)})},m.prototype.uploadAsMultipartfile=function(w,C){var G=this;return new Promise(function(J,O){if(G.state!==k.LocalRecorderState.FINISHED)return O(Error("'LocalRecord.uploadAsMultipartfile()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+G.state+"'). Call 'LocalRecorder.stop()' before"));var N=new XMLHttpRequest;if(N.open("POST",w,!0),"object"==typeof C)for(var Q=0,W=Object.keys(C);Q<W.length;Q++){var S=W[Q];N.setRequestHeader(S,C[S])}var v=new FormData;v.append("file",G.blob,G.id+"."+y.getExtension(G.blob.type)),N.onreadystatechange=function(){if(4===N.readyState)return"2"===N.status.toString().charAt(0)?J(N.responseText):O(N.status)},N.send(v)})},m.prototype.onStopDefault=function(){b.log("MediaRecorder stopped (state="+this.mediaRecorder.state+")"),this.blob=new Blob(this.chunks,{type:this.mediaRecorder.mimeType}),this.chunks=[],this.videoPreviewSrc=globalThis.URL.createObjectURL(this.blob),this.state=k.LocalRecorderState.FINISHED},m}();R.LocalRecorder=_},3634:function(Ce,R,B){"use strict";var k=this&&this.__awaiter||function(M,p,P,ee){return new(P||(P=Promise))(function(I,X){function oe(U){try{g(ee.next(U))}catch(Y){X(Y)}}function se(U){try{g(ee.throw(U))}catch(Y){X(Y)}}function g(U){U.done?I(U.value):function D(I){return I instanceof P?I:new P(function(X){X(I)})}(U.value).then(oe,se)}g((ee=ee.apply(M,p||[])).next())})},$=this&&this.__generator||function(M,p){var ee,D,I,X,P={label:0,sent:function(){if(1&I[0])throw I[1];return I[1]},trys:[],ops:[]};return X={next:oe(0),throw:oe(1),return:oe(2)},"function"==typeof Symbol&&(X[Symbol.iterator]=function(){return this}),X;function oe(g){return function(U){return function se(g){if(ee)throw new TypeError("Generator is already executing.");for(;X&&(X=0,g[0]&&(P=0)),P;)try{if(ee=1,D&&(I=2&g[0]?D.return:g[0]?D.throw||((I=D.return)&&I.call(D),0):D.next)&&!(I=I.call(D,g[1])).done)return I;switch(D=0,I&&(g=[2&g[0],I.value]),g[0]){case 0:case 1:I=g;break;case 4:return P.label++,{value:g[1],done:!1};case 5:P.label++,D=g[1],g=[0];continue;case 7:g=P.ops.pop(),P.trys.pop();continue;default:if(!(I=(I=P.trys).length>0&&I[I.length-1])&&(6===g[0]||2===g[0])){P=0;continue}if(3===g[0]&&(!I||g[1]>I[0]&&g[1]<I[3])){P.label=g[1];break}if(6===g[0]&&P.label<I[1]){P.label=I[1],I=g;break}if(I&&P.label<I[2]){P.label=I[2],P.ops.push(g);break}I[2]&&P.ops.pop(),P.trys.pop();continue}g=p.call(M,P)}catch(U){g=[6,U],D=0}finally{ee=I=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,U])}}};Object.defineProperty(R,"__esModule",{value:!0}),R.OpenVidu=void 0;var F,V=B(8499),y=B(4302),b=B(5607),E=B(1690),_=B(9383),m=B(9303),w=B(7167),C=B(1829),G=B(1171),J=B(467),O=B(48),N=B(1438),Q=B(2937),W=B(4940),S=B(9469),v=C.OpenViduLogger.getInstance(),Z=function(){function M(){var p=this;this.masterNodeHasCrashed=!1,this.publishers=[],this.secret="",this.recorder=!1,this.stt=!1,this.life=-1,this.advancedConfiguration={},this.webrtcStatsInterval=-1,this.sendBrowserLogs=N.OpenViduLoggerConfiguration.disabled,this.isAtLeastPro=!1,this.isEnterprise=!1,this.ee=new Q,F=G.PlatformUtils.getInstance(),this.libraryVersion=S.version,v.info("OpenVidu initialized"),v.info("Platform detected: "+F.getDescription()),v.info("openvidu-browser version: "+this.libraryVersion),(F.isMobileDevice()||F.isReactNative())&&this.onOrientationChanged(function(){p.publishers.forEach(function(P){P.stream.isLocalStreamPublished&&P.stream&&P.stream.hasVideo&&p.sendNewVideoDimensionsIfRequired(P,"deviceRotated",75,10)})})}return M.prototype.initSession=function(){return this.session=new b.Session(this),this.session},M.prototype.initPublisher=function(p,P,ee){var D;D=P&&"function"!=typeof P?{audioSource:void 0!==(D=P).audioSource?D.audioSource:void 0,frameRate:"undefined"!=typeof MediaStreamTrack&&D.videoSource instanceof MediaStreamTrack?void 0:void 0!==D.frameRate?D.frameRate:void 0,insertMode:void 0!==D.insertMode?"string"==typeof D.insertMode?w.VideoInsertMode[D.insertMode]:D.insertMode:w.VideoInsertMode.APPEND,mirror:void 0===D.mirror||D.mirror,publishAudio:void 0===D.publishAudio||D.publishAudio,publishVideo:void 0===D.publishVideo||D.publishVideo,resolution:"undefined"!=typeof MediaStreamTrack&&D.videoSource instanceof MediaStreamTrack?void 0:void 0!==D.resolution?D.resolution:"640x480",videoSource:void 0!==D.videoSource?D.videoSource:void 0,videoSimulcast:D.videoSimulcast,filter:D.filter}:{insertMode:w.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var X,I=new y.Publisher(p,D,this);return P&&"function"==typeof P?X=P:ee&&(X=ee),I.initialize().then(function(){void 0!==X&&X(void 0),I.emitEvent("accessAllowed",[])}).catch(function(oe){void 0!==X&&X(oe),I.emitEvent("accessDenied",[oe])}),this.publishers.push(I),I},M.prototype.initPublisherAsync=function(p,P){var ee=this;return new Promise(function(D,I){var X,oe=function(se){return se?I(se):D(X)};X=P?ee.initPublisher(p,P,oe):ee.initPublisher(p,oe)})},M.prototype.initLocalRecorder=function(p){return new V.LocalRecorder(p)},M.prototype.checkSystemRequirements=function(){return F.isIPhoneOrIPad()?F.isIOSWithSafari()||F.isChromeMobileBrowser()||F.isFirefoxMobileBrowser()||F.isOperaMobileBrowser()||F.isEdgeMobileBrowser()||F.isIonicIos():F.isChromeBrowser()||F.isChromeMobileBrowser()||F.isFirefoxBrowser()||F.isFirefoxMobileBrowser()||F.isOperaBrowser()||F.isOperaMobileBrowser()||F.isEdgeBrowser()||F.isEdgeMobileBrowser()||F.isSamsungBrowser()||F.isSafariBrowser()||F.isAndroidBrowser()||F.isElectron()||F.isNodeJs()},M.prototype.checkScreenSharingCapabilities=function(){return F.canScreenShare()},M.prototype.getDevices=function(){return new Promise(function(p,P){navigator.mediaDevices.enumerateDevices().then(function(ee){var D,I=[];if(!F.isIonicAndroid()||"undefined"==typeof cordova||!(null===(D=null==cordova?void 0:cordova.plugins)||void 0===D?void 0:D.EnumerateDevicesPlugin))return ee.forEach(function(X){("audioinput"===X.kind||"videoinput"===X.kind)&&I.push({kind:X.kind,deviceId:X.deviceId,label:X.label})}),p(I);cordova.plugins.EnumerateDevicesPlugin.getEnumerateDevices().then(function(X){var oe=[],se=[],g=[];return oe=X.filter(function(U){return"audioinput"===U.kind}),se=ee.filter(function(U){return"videoinput"===U.kind}),g=ee.filter(function(U){return"audioinput"===U.kind}),se.forEach(function(U,Y){I.push(U.label?{kind:U.kind,deviceId:U.deviceId,label:U.label}:{kind:U.kind,deviceId:U.deviceId,label:0===Y?"Front Camera":1===Y?"Back Camera":"Unknown Camera"})}),g.forEach(function(U,Y){if(U.label)I.push({kind:U.kind,deviceId:U.deviceId,label:U.label});else{var T="";switch(Y){case 0:T="Default";break;case 1:var j=oe.filter(function(ae){return ae.label.includes("Built")})[0];T=j?j.label:"Built-in Microphone";break;case 2:var K=oe.filter(function(ae){return ae.label.includes("Wired")})[0];T=K?K.label:"Headset earpiece";break;case 3:var me=oe.filter(function(ae){return ae.label.includes("Bluetooth")})[0];T=me?me.label:"Wireless";break;default:T="Unknown Microphone"}I.push({kind:U.kind,deviceId:U.deviceId,label:T})}}),p(I)})}).catch(function(ee){return v.error("Error getting devices",ee),P(ee)})})},M.prototype.getUserMedia=function(p){var P=this;return new Promise(function(ee,D){return k(P,void 0,void 0,function(){var I,X,oe,se,g,U,Y,T,j,K,ae,le,me=this;return $(this,function(Se){switch(Se.label){case 0:I=function($e,Le){return k(me,void 0,void 0,function(){var ct,Ue,ue;return $(this,function($t){switch($t.label){case 0:ct={audio:void 0===Le.audio||Le.audio,video:!1},$t.label=1;case 1:return $t.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia(ct)];case 2:return Ue=$t.sent(),$e.addTrack(Ue.getAudioTracks()[0]),[2,ee($e)];case 3:return ue=$t.sent(),$e.getAudioTracks().forEach(function(qe){qe.stop()}),$e.getVideoTracks().forEach(function(qe){qe.stop()}),[2,D(this.generateAudioDeviceError(ue,ct))];case 4:return[2]}})})},Se.label=1;case 1:return Se.trys.push([1,20,,21]),[4,this.generateMediaConstraints(p)];case 2:return(X=Se.sent()).videoTrack&&X.audioTrack||X.audioTrack&&!1===(null===(ae=X.constraints)||void 0===ae?void 0:ae.video)||X.videoTrack&&!1===(null===(le=X.constraints)||void 0===le?void 0:le.audio)?[2,ee(this.addAlreadyProvidedTracks(X,new MediaStream))]:[3,3];case 3:if(X.videoTrack&&delete X.constraints.video,X.audioTrack&&delete X.constraints.audio,oe=!1,"string"!=typeof p.videoSource)return[3,12];if(!("screen"===p.videoSource||"window"===p.videoSource||F.isElectron()&&p.videoSource.startsWith("screen:")))return[3,12];if(oe=!X.audioTrack&&null!==p.audioSource&&!1!==p.audioSource,!navigator.mediaDevices.getDisplayMedia||F.isElectron())return[3,11];Se.label=4;case 4:return Se.trys.push([4,9,,10]),[4,navigator.mediaDevices.getDisplayMedia({video:!0})];case 5:return U=Se.sent(),this.addAlreadyProvidedTracks(X,U),oe?[4,I(U,X.constraints)]:[3,7];case 6:return Se.sent(),[2];case 7:return[2,ee(U)];case 8:return[3,10];case 9:return se=Se.sent(),T=m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,j=se.toString(),[2,D(new m.OpenViduError(T,j))];case 10:return[3,11];case 11:return[3,12];case 12:g=oe?{video:X.constraints.video}:X.constraints,Se.label=13;case 13:return Se.trys.push([13,18,,19]),[4,navigator.mediaDevices.getUserMedia(g)];case 14:return U=Se.sent(),this.addAlreadyProvidedTracks(X,U),oe?[4,I(U,X.constraints)]:[3,16];case 15:return Se.sent(),[3,17];case 16:return[2,ee(U)];case 17:return[3,19];case 18:return Y=Se.sent(),T=void 0,j=Y.toString(),[2,D(new m.OpenViduError(T="screen"!==p.videoSource?m.OpenViduErrorName.DEVICE_ACCESS_DENIED:m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,j))];case 19:return[3,21];case 20:return K=Se.sent(),D(K),[3,21];case 21:return[2]}})})})},M.prototype.enableProdMode=function(){v.enableProdMode()},M.prototype.setAdvancedConfiguration=function(p){this.advancedConfiguration=p},M.prototype.onOrientationChanged=function(p){globalThis.addEventListener("orientationchange",p)},M.prototype.sendNewVideoDimensionsIfRequired=function(p,P,ee,D){var X,oe,se,g,I=this,U=0,Y=(null===(oe=null===(X=null==p?void 0:p.stream)||void 0===X?void 0:X.videoDimensions)||void 0===oe?void 0:oe.width)||0,T=(null===(g=null===(se=null==p?void 0:p.stream)||void 0===se?void 0:se.videoDimensions)||void 0===g?void 0:g.height)||0,j=setInterval(function(){++U>D&&clearTimeout(j),p.getVideoDimensions().then(function(K){(K.width!==Y||K.height!==T)&&(clearTimeout(j),I.sendVideoDimensionsChangedEvent(p,P,Y,T,K.width,K.height))})},ee)},M.prototype.sendVideoDimensionsChangedEvent=function(p,P,ee,D,I,X){var oe=this;p.stream.videoDimensions={width:I||0,height:X||0},this.sendRequest("streamPropertyChanged",{streamId:p.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(p.stream.videoDimensions),reason:P},function(se,g){se?v.error("Error sending 'streamPropertyChanged' event",se):(oe.session.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(oe.session,p.stream,"videoDimensions",p.stream.videoDimensions,{width:ee,height:D},P)]),p.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(p,p.stream,"videoDimensions",p.stream.videoDimensions,{width:ee,height:D},P)]),oe.session.sendVideoData(p))})},M.prototype.sendTrackChangedEvent=function(p,P,ee,D){var I=this,X={label:P},oe={label:ee},se="trackReplaced";p.stream.isLocalStreamPublished?this.sendRequest("streamPropertyChanged",{streamId:p.stream.streamId,property:D,newValue:oe,reason:se},function(g,U){g?v.error("Error sending 'streamPropertyChanged' event",g):(I.session.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(I.session,p.stream,D,oe,X,se)]),p.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(p,p.stream,D,oe,X,se)]))}):(this.session.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(this.session,p.stream,D,oe,X,se)]),p.emitEvent("streamPropertyChanged",[new _.StreamPropertyChangedEvent(p,p.stream,D,oe,X,se)]))},M.prototype.generateMediaConstraints=function(p){var P=this;return new Promise(function(ee,D){var I={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},X=p.audioSource,oe=p.videoSource;if((null===X||!1===X)&&(I.constraints.audio=!1),(null===oe||!1===oe)&&(I.constraints.video=!1),!1===I.constraints.audio&&!1===I.constraints.video)return D(new m.OpenViduError(m.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time"));if("undefined"!=typeof MediaStreamTrack&&X instanceof MediaStreamTrack&&(I.audioTrack=X),"undefined"!=typeof MediaStreamTrack&&oe instanceof MediaStreamTrack&&(I.videoTrack=oe),void 0===X&&(I.constraints.audio=!0),void 0===oe&&(I.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==oe&&!1!==oe){if(p.resolution){var se=p.resolution.toLowerCase().split("x"),g=Number(se[0]),U=Number(se[1]);I.constraints.video={width:{ideal:g},height:{ideal:U}}}p.frameRate&&(I.constraints.video.frameRate={ideal:p.frameRate})}return P.configureDeviceIdOrScreensharing(I,p,ee,D),ee(I)})},M.prototype.startWs=function(p){var P={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:p,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this),ismasternodecrashed:this.isMasterNodeCrashed.bind(this)},rpc:{requestTimeout:1e4,heartbeatRequestTimeout:5e3,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),connectionPropertyChanged:this.session.onConnectionPropertyChanged.bind(this.session),networkQualityLevelChanged:this.session.onNetworkQualityLevelChangedChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session),masterNodeCrashedNotification:this.onMasterNodeCrashedNotification.bind(this),forciblyReconnectSubscriber:this.session.onForciblyReconnectSubscriber.bind(this.session),speechToTextMessage:this.session.onSpeechToTextMessage.bind(this.session),speechToTextDisconnected:this.session.onSpeechToTextDisconnected.bind(this.session)}};this.jsonRpcClient=new W.clients.JsonRpcClient(P)},M.prototype.onMasterNodeCrashedNotification=function(p){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},M.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},M.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},M.prototype.sendRequest=function(p,P,ee){var D;P&&P instanceof Function&&(ee=P,P={}),v.debug('Sending request: {method:"'+p+'", params: '+JSON.stringify(P)+"}"),null===(D=this.jsonRpcClient)||void 0===D||D.send(p,P,ee)},M.prototype.getWsUri=function(){return this.wsUri},M.prototype.getSecret=function(){return this.secret},M.prototype.getRecorder=function(){return this.recorder},M.prototype.getStt=function(){return this.stt},M.prototype.generateAudioDeviceError=function(p,P){var ee,D;switch("Error"===p.name&&(p.name=p.constructor.name),p.name.toLowerCase()){case"notfounderror":return ee=m.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,D=p.toString(),new m.OpenViduError(ee,D);case"notallowederror":return ee=m.OpenViduErrorName.DEVICE_ACCESS_DENIED,D=p.toString(),new m.OpenViduError(ee,D);case"overconstrainederror":return"deviceid"===p.constraint.toLowerCase()?(ee=m.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,D="Audio input device with deviceId '"+P.audio.deviceId.exact+"' not found"):(ee=m.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,D="Audio input device doesn't support the value passed for constraint '"+p.constraint+"'"),new m.OpenViduError(ee,D);case"notreadableerror":return ee=m.OpenViduErrorName.DEVICE_ALREADY_IN_USE,D=p.toString(),new m.OpenViduError(ee,D);default:return new m.OpenViduError(m.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,p.toString())}},M.prototype.addAlreadyProvidedTracks=function(p,P,ee){return p.videoTrack&&(P.addTrack(p.videoTrack),ee&&(ee.lastVideoTrackConstraints=p.constraints.video?p.constraints.video:p.videoTrack.getConstraints())),p.audioTrack&&P.addTrack(p.audioTrack),P},M.prototype.configureDeviceIdOrScreensharing=function(p,P,ee,D){var I=this,X=P.audioSource,oe=P.videoSource;if("string"==typeof X&&(p.constraints.audio={deviceId:{exact:X}}),"string"==typeof oe){if(this.isScreenShare(oe)){if(this.checkScreenSharingCapabilities()){if(F.isElectron()){var g="screen:",Y=oe.substr(oe.indexOf(g)+g.length);return p.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:Y}},ee(p)}if(!this.advancedConfiguration.screenShareChromeExtension||F.isFirefoxBrowser()||F.isFirefoxMobileBrowser()||navigator.mediaDevices.getDisplayMedia){if(navigator.mediaDevices.getDisplayMedia)return ee(p);var T=F.isFirefoxBrowser()||F.isFirefoxMobileBrowser()?P.videoSource:void 0;return void J.getScreenId(T,function(j,K,me){if(j){if("not-installed"===j){var le=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,I.advancedConfiguration.screenShareChromeExtension?I.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");return v.error(le),D(le)}return"installed-disabled"===j?(le=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),v.error(le),D(le)):"permission-denied"===j?(le=new m.OpenViduError(m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),v.error(le),D(le)):(le=new m.OpenViduError(m.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),v.error(le),v.error(j),D(le))}return p.constraints.video=me.video,ee(p)})}return void O.getScreenConstraints(function(j,K){if(!(j||K.mandatory&&"screen"===K.mandatory.chromeMediaSource))return p.constraints.video=K,ee(p);if("permission-denied"===j||"PermissionDeniedError"===j){var me=new m.OpenViduError(m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");return v.error(me),D(me)}var ae=I.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();O.getChromeExtensionStatus(ae,function(le){if("installed-disabled"===le){var Se=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");return v.error(Se),D(Se)}if("not-installed"===le){var $e=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,I.advancedConfiguration.screenShareChromeExtension);return v.error($e),D($e)}})})}var se=new m.OpenViduError(m.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: "+F.getName()+" "+F.getVersion());return v.error(se),D(se)}this.setVideoSource(p,oe)}},M.prototype.setVideoSource=function(p,P){p.constraints.video||(p.constraints.video={}),p.constraints.video.deviceId={exact:P}},M.prototype.disconnectCallback=function(){v.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},M.prototype.reconnectingCallback=function(){v.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},M.prototype.reconnectWebsocketThroughRpcConnectMethod=function(p){var P=this;this.sendRequest("connect",{sessionId:p,reconnect:!0},function(ee,D){if(ee)if(P.isMasterNodeCrashed())v.warn("Master Node has crashed!");else{v.error(ee);var I=function(oe,se){v.warn(se),P.session.onLostConnection(oe),P.jsonRpcClient.close(4101,"Reconnection fault: "+se)};40007===ee.code&&"reconnection error"===ee.message&&console.error("Invalid RPC sessionId. Client network disconnection or Master Node crash"),-1===P.life?I("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):P.sendRequest("sessionStatus",{sessionId:P.session.sessionId},function(oe,se){null!=oe?console.error("Error checking session status",oe):P.life===se.life?I("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):I("nodeCrashed","WS successfully reconnected to OpenVidu Server but your Master Node crashed")})}else P.jsonRpcClient.resetPing(),P.session.onRecoveredConnection()})},M.prototype.reconnectedCallback=function(){if(v.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.reconnectWebsocketThroughRpcConnectMethod(this.session.connection.rpcSessionId);else{v.warn("There was no previous connection when running reconnection callback");var p=new E.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[p]),p.callDefaultBehavior()}else alert("Connection error. Please reload page.")},M.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},M.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof b.Session||(v.warn("Session instance not found"),!1)},M.prototype.isScreenShare=function(p){return"screen"===p||"window"===p||F.isElectron()&&p.startsWith("screen:")},M}();R.OpenVidu=Z},4302:function(Ce,R,B){"use strict";var W,k=this&&this.__extends||(W=function(S,v){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,Z){F.__proto__=Z}||function(F,Z){for(var M in Z)Object.prototype.hasOwnProperty.call(Z,M)&&(F[M]=Z[M])})(S,v)},function(S,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function F(){this.constructor=S}W(S,v),S.prototype=null===v?Object.create(v):(F.prototype=v.prototype,new F)}),$=this&&this.__awaiter||function(W,S,v,F){return new(v||(v=Promise))(function(M,p){function P(I){try{D(F.next(I))}catch(X){p(X)}}function ee(I){try{D(F.throw(I))}catch(X){p(X)}}function D(I){I.done?M(I.value):function Z(M){return M instanceof v?M:new v(function(p){p(M)})}(I.value).then(P,ee)}D((F=F.apply(W,S||[])).next())})},V=this&&this.__generator||function(W,S){var F,Z,M,p,v={label:0,sent:function(){if(1&M[0])throw M[1];return M[1]},trys:[],ops:[]};return p={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function P(D){return function(I){return function ee(D){if(F)throw new TypeError("Generator is already executing.");for(;p&&(p=0,D[0]&&(v=0)),v;)try{if(F=1,Z&&(M=2&D[0]?Z.return:D[0]?Z.throw||((M=Z.return)&&M.call(Z),0):Z.next)&&!(M=M.call(Z,D[1])).done)return M;switch(Z=0,M&&(D=[2&D[0],M.value]),D[0]){case 0:case 1:M=D;break;case 4:return v.label++,{value:D[1],done:!1};case 5:v.label++,Z=D[1],D=[0];continue;case 7:D=v.ops.pop(),v.trys.pop();continue;default:if(!(M=(M=v.trys).length>0&&M[M.length-1])&&(6===D[0]||2===D[0])){v=0;continue}if(3===D[0]&&(!M||D[1]>M[0]&&D[1]<M[3])){v.label=D[1];break}if(6===D[0]&&v.label<M[1]){v.label=M[1],M=D;break}if(M&&v.label<M[2]){v.label=M[2],v.ops.push(D);break}M[2]&&v.ops.pop(),v.trys.pop();continue}D=S.call(W,v)}catch(I){D=[6,I],Z=0}finally{F=M=0}if(5&D[0])throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}([D,I])}}};Object.defineProperty(R,"__esModule",{value:!0}),R.Publisher=void 0;var N,y=B(5607),b=B(8770),E=B(7373),_=B(3980),m=B(9383),w=B(9303),C=B(1829),G=B(1171),J=B(7879),O=C.OpenViduLogger.getInstance(),Q=function(W){function S(v,F,Z){var M=W.call(this,new b.Stream(Z.session?Z.session:new y.Session(Z),{publisherProperties:F,mediaConstraints:{}}),v)||this;return M.accessAllowed=!1,M.isSubscribedToRemote=!1,M.accessDenied=!1,N=G.PlatformUtils.getInstance(),M.properties=F,M.openvidu=Z,M.stream.ee.on("local-stream-destroyed",function(p){M.stream.isLocalStreamPublished=!1;var P=new _.StreamEvent(!0,M,"streamDestroyed",M.stream,p);M.emitEvent("streamDestroyed",[P]),P.callDefaultBehavior()}),M}return k(S,W),S.prototype.publishAudio=function(v){var F=this;this.stream.audioActive!==v&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getAudioTracks().forEach(function(M){M.enabled=v}),!!this.session&&!!this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:v,reason:"publishAudio"},function(M,p){M?O.error("Error sending 'streamPropertyChanged' event",M):(F.session.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(F.session,F.stream,"audioActive",v,!v,"publishAudio")]),F.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(F,F.stream,"audioActive",v,!v,"publishAudio")]),F.session.sendVideoData(F.stream.streamManager))}),this.stream.audioActive=v,O.info("'Publisher' has "+(v?"published":"unpublished")+" its audio stream"))},S.prototype.publishVideo=function(v,F){var Z=this;return new Promise(function(M,p){return $(Z,void 0,void 0,function(){var P,ee,D,I,X,oe,se=this;return V(this,function(g){switch(g.label){case 0:return this.stream.videoActive===v?[3,9]:(P=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream(),ee=!1,P.getVideoTracks().forEach(function(U){U.enabled=v,v||!0!==F?v&&"ended"===U.readyState&&(ee=!0):U.stop()}),!v&&!0===F&&this.stream.filter&&this.stream.filter.type.startsWith("VB:")?(this.stream.lastVBFilter=this.stream.filter,[4,this.stream.removeFilterAux(!0)]):[3,2]);case 1:g.sent(),g.label=2;case 2:return ee?(D=P.getVideoTracks()[0],P.removeTrack(D),I=function(U){return $(se,void 0,void 0,function(){var Y=this;return V(this,function(T){switch(T.label){case 0:return P.addTrack(U),this.stream.isLocalStreamPublished?[4,this.replaceTrackInRtcRtpSender(U)]:[3,2];case 1:T.sent(),T.label=2;case 2:return this.stream.lastVBFilter&&setTimeout(function(){return $(Y,void 0,void 0,function(){var j,K;return V(this,function(me){switch(me.label){case 0:return j=this.stream.lastVBFilter.options,!!(K=this.stream.lastVBFilter.lastExecMethod)&&"update"===K.method&&(j=Object.assign({},j,K.params)),[4,this.stream.applyFilter(this.stream.lastVBFilter.type,j)];case 1:return me.sent(),delete this.stream.lastVBFilter,[2]}})})},1),[2]}})})},F&&F instanceof MediaStreamTrack?[4,I(F)]:[3,4]):[3,8];case 3:return g.sent(),[3,8];case 4:return g.trys.push([4,7,,8]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:this.stream.lastVideoTrackConstraints})];case 5:return X=g.sent(),[4,I(X.getVideoTracks()[0])];case 6:return g.sent(),[3,8];case 7:return oe=g.sent(),[2,p(oe)];case 8:return!!this.session&&!!this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:v,reason:"publishVideo"},function(U,Y){U?O.error("Error sending 'streamPropertyChanged' event",U):(se.session.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(se.session,se.stream,"videoActive",v,!v,"publishVideo")]),se.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(se,se.stream,"videoActive",v,!v,"publishVideo")]),se.session.sendVideoData(se.stream.streamManager))}),this.stream.videoActive=v,O.info("'Publisher' has "+(v?"published":"unpublished")+" its video stream"),[2,M()];case 9:return[2]}})})})},S.prototype.subscribeToRemote=function(v){this.isSubscribedToRemote=v=void 0===v||v,this.stream.subscribeToMyRemote(v)},S.prototype.on=function(v,F){var Z=this;return W.prototype.on.call(this,v,F),"streamCreated"===v&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new _.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",function(){Z.emitEvent("streamCreated",[new _.StreamEvent(!1,Z,"streamCreated",Z.stream,"")])})),"accessAllowed"===v&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===v&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},S.prototype.once=function(v,F){var Z=this;return W.prototype.once.call(this,v,F),"streamCreated"===v&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new _.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",function(){Z.emitEvent("streamCreated",[new _.StreamEvent(!1,Z,"streamCreated",Z.stream,"")])})),"accessAllowed"===v&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===v&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},S.prototype.off=function(v,F){return W.prototype.off.call(this,v,F),this},S.prototype.replaceTrack=function(v){return $(this,void 0,void 0,function(){return V(this,function(F){return[2,this.replaceTrackAux(v,!0)]})})},S.prototype.initialize=function(){var v=this;return new Promise(function(F,Z){return $(v,void 0,void 0,function(){var M,p,P,ee,D,I,X,oe,se,U,Y,T,j,me,ae,K=this;return V(this,function(le){switch(le.label){case 0:M={},p={},P=2e3,D=function(Se){return K.accessDenied=!0,K.accessAllowed=!1,O.error("Publisher initialization failed. ".concat(Se.name,": ").concat(Se.message)),Z(Se)},I=function(Se){var $e,Le;if(K.accessAllowed=!0,K.accessDenied=!1,"undefined"!=typeof MediaStreamTrack&&K.properties.audioSource instanceof MediaStreamTrack&&(Se.removeTrack(Se.getAudioTracks()[0]),Se.addTrack(K.properties.audioSource)),"undefined"!=typeof MediaStreamTrack&&K.properties.videoSource instanceof MediaStreamTrack&&(Se.removeTrack(Se.getVideoTracks()[0]),Se.addTrack(K.properties.videoSource)),Se.getAudioTracks()[0]){var ze=null!=K.stream.audioActive?K.stream.audioActive:!!K.stream.outboundStreamOpts.publisherProperties.publishAudio;Se.getAudioTracks()[0].enabled=ze}Se.getVideoTracks()[0]&&(ze=null!=K.stream.videoActive?K.stream.videoActive:!!K.stream.outboundStreamOpts.publisherProperties.publishVideo,Se.getVideoTracks()[0].enabled=ze);for(var ct=0,Ue=Se.getAudioTracks();ct<Ue.length;ct++)null!==($e=(ue=Ue[ct]).contentHint)&&void 0!==$e&&$e.length||(ue.contentHint="",O.info("Audio track Content Hint set: '".concat(ue.contentHint,"'")));for(var $t=0,qe=Se.getVideoTracks();$t<qe.length;$t++){var ue;if(null===(Le=(ue=qe[$t]).contentHint)||void 0===Le||!Le.length){switch(K.stream.typeOfVideo){case J.TypeOfVideo.SCREEN:ue.contentHint="detail";break;case J.TypeOfVideo.CUSTOM:O.warn("CUSTOM type video track was provided without Content Hint!"),ue.contentHint="motion";break;default:ue.contentHint="motion"}O.info("Video track Content Hint set: '".concat(ue.contentHint,"'"))}}return K.initializeVideoReference(Se),K.stream.displayMyRemote()||K.stream.updateMediaStreamInVideos(),delete K.firstVideoElement,K.stream.isSendVideo()?K.getVideoDimensions().then(function(cn){K.stream.videoDimensions={width:cn.width,height:cn.height},K.stream.isSendScreen()&&(K.screenShareResizeInterval=setInterval(function(){var Hn=Se.getVideoTracks()[0].getSettings(),Ye=Hn.width,Qn=Hn.height;K.stream.isLocalStreamPublished&&(null!=Ye&&Ye!==K.stream.videoDimensions.width||null!=Qn&&Qn!==K.stream.videoDimensions.height)&&K.openvidu.sendVideoDimensionsChangedEvent(K,"screenResized",K.stream.videoDimensions.width,K.stream.videoDimensions.height,Ye||0,Qn||0)},650)),K.stream.isLocalStreamReadyToPublish=!0,K.stream.ee.emitEvent("stream-ready-to-publish",[])}):(K.stream.isLocalStreamReadyToPublish=!0,K.stream.ee.emitEvent("stream-ready-to-publish",[])),F()},X=function(Se,$e){return $(K,void 0,void 0,function(){var Le,ze;return V(this,function(ct){switch(ct.label){case 0:if(this.clearPermissionDialogTimer(ee,P),!this.stream.isSendScreen()||!this.stream.isSendAudio())return[3,5];p.audio=$e,p.video=!1,ee=Date.now(),this.setPermissionDialogTimer(P),ct.label=1;case 1:return ct.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia(p)];case 2:return Le=ct.sent(),this.clearPermissionDialogTimer(ee,P),Se.addTrack(Le.getAudioTracks()[0]),I(Se),[3,4];case 3:return ze=ct.sent(),this.clearPermissionDialogTimer(ee,P),Se.getAudioTracks().forEach(function(Ue){Ue.stop()}),Se.getVideoTracks().forEach(function(Ue){Ue.stop()}),D(this.openvidu.generateAudioDeviceError(ze,M)),[2];case 4:return[3,6];case 5:I(Se),ct.label=6;case 6:return[2]}})})},oe=function(Se){return $(K,void 0,void 0,function(){var $e,Le,ct,ue;return V(this,function($t){switch($t.label){case 0:switch(O.error("getMediaError: ".concat(Se.toString())),this.clearPermissionDialogTimer(ee,P),"Error"===Se.name&&(Se.name=Se.constructor.name),Se.name.toLowerCase()){case"notfounderror":return[3,1];case"notallowederror":return[3,5];case"overconstrainederror":return[3,6];case"aborterror":case"notreadableerror":return[3,10]}return[3,11];case 1:return $t.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:M.video})];case 2:return $t.sent().getVideoTracks().forEach(function(qe){qe.stop()}),$e=w.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,Le=Se.toString(),D(new w.OpenViduError($e,Le)),[3,4];case 3:return ct=$t.sent(),$e=w.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,Le=ct.toString(),D(new w.OpenViduError($e,Le)),[3,4];case 4:case 9:return[3,12];case 5:return $e=this.stream.isSendScreen()?w.OpenViduErrorName.SCREEN_CAPTURE_DENIED:w.OpenViduErrorName.DEVICE_ACCESS_DENIED,Le=Se.toString(),D(new w.OpenViduError($e,Le)),[3,12];case 6:return $t.trys.push([6,8,,9]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:M.video})];case 7:return $t.sent().getVideoTracks().forEach(function(qe){qe.stop()}),"deviceid"===Se.constraint.toLowerCase()?($e=w.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,Le="Audio input device with deviceId '"+M.audio.deviceId.exact+"' not found"):($e=w.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,Le="Audio input device doesn't support the value passed for constraint '"+Se.constraint+"'"),D(new w.OpenViduError($e,Le)),[3,9];case 8:return"deviceid"===(ue=$t.sent()).constraint.toLowerCase()?($e=w.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,Le="Video input device with deviceId '"+M.video.deviceId.exact+"' not found"):($e=w.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,Le="Video input device doesn't support the value passed for constraint '"+ue.constraint+"'"),D(new w.OpenViduError($e,Le)),[3,9];case 10:return $e=w.OpenViduErrorName.DEVICE_ALREADY_IN_USE,Le=Se.toString(),D(new w.OpenViduError($e,Le)),[3,12];case 11:return $e=w.OpenViduErrorName.GENERIC_ERROR,Le=Se.toString(),D(new w.OpenViduError($e,Le)),[3,12];case 12:return[2]}})})},le.label=1;case 1:return le.trys.push([1,14,,15]),[4,this.openvidu.generateMediaConstraints(this.properties)];case 2:return(se=le.sent()).videoTrack&&se.audioTrack||se.audioTrack&&!1===(null===(me=se.constraints)||void 0===me?void 0:me.video)||se.videoTrack&&!1===(null===(ae=se.constraints)||void 0===ae?void 0:ae.audio)?(I(this.openvidu.addAlreadyProvidedTracks(se,new MediaStream,this.stream)),[3,13]):[3,3];case 3:this.stream.setOutboundStreamOptions({mediaConstraints:M=se.constraints,publisherProperties:this.properties}),U=void 0===M.audio||M.audio,p.audio=!this.stream.isSendScreen()&&U,p.video=M.video,ee=Date.now(),this.setPermissionDialogTimer(P),le.label=4;case 4:return le.trys.push([4,11,,13]),this.stream.isSendScreen()&&navigator.mediaDevices.getDisplayMedia&&!N.isElectron()?[4,navigator.mediaDevices.getDisplayMedia({video:!0})]:[3,7];case 5:return Y=le.sent(),this.openvidu.addAlreadyProvidedTracks(se,Y),[4,X(Y,U)];case 6:return le.sent(),[3,10];case 7:return this.stream.lastVideoTrackConstraints=p.video,[4,navigator.mediaDevices.getUserMedia(p)];case 8:return Y=le.sent(),this.openvidu.addAlreadyProvidedTracks(se,Y,this.stream),[4,X(Y,U)];case 9:le.sent(),le.label=10;case 10:return[3,13];case 11:return T=le.sent(),[4,oe(T)];case 12:return le.sent(),[3,13];case 13:return[3,15];case 14:return j=le.sent(),D(j),[3,15];case 15:return[2]}})})})},S.prototype.replaceTrackAux=function(v,F){return $(this,void 0,void 0,function(){var Z,M;return V(this,function(p){switch(p.label){case 0:Z=v.enabled,"video"===v.kind?v.enabled=this.stream.videoActive:"audio"===v.kind&&(v.enabled=this.stream.audioActive),p.label=1;case 1:return p.trys.push([1,5,,6]),this.stream.isLocalStreamPublished?(this.replaceTrackInMediaStream(v,F),[4,this.replaceTrackInRtcRtpSender(v)]):[3,3];case 2:return[2,p.sent()];case 3:return[2,this.replaceTrackInMediaStream(v,F)];case 4:return[3,6];case 5:throw M=p.sent(),v.enabled=Z,M;case 6:return[2]}})})},S.prototype.getVideoDimensions=function(){var v=this;return new Promise(function(F,Z){var p,M=N.isIonicIos()||N.isIOSWithSafari(),P=function(){var ee,D;if("function"==typeof v.stream.getMediaStream().getVideoTracks()[0].getSettings){var I=v.stream.getMediaStream().getVideoTracks()[0].getSettings();ee=I.width||v.videoReference.videoWidth,D=I.height||v.videoReference.videoHeight}else O.warn("MediaStreamTrack does not have getSettings method on "+N.getDescription()),ee=v.videoReference.videoWidth,D=v.videoReference.videoHeight;return null!=p&&v.videoReference.removeEventListener("loadedmetadata",p),M&&document.body.removeChild(v.videoReference),F({width:ee,height:D})};v.videoReference.readyState>=1?P():(v.videoReference.addEventListener("loadedmetadata",p=function(){if(v.videoReference.videoWidth)P();else var ee=setInterval(function(){v.videoReference.videoWidth&&(clearInterval(ee),P())},40)}),M&&document.body.appendChild(v.videoReference))})},S.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},S.prototype.initializeVideoReference=function(v){this.videoReference=document.createElement("video"),this.videoReference.style.display="none",this.videoReference.muted=!0,this.videoReference.autoplay=!0,this.videoReference.controls=!1,(N.isSafariBrowser()||N.isIPhoneOrIPad()&&(N.isChromeMobileBrowser()||N.isEdgeMobileBrowser()||N.isOperaMobileBrowser()||N.isFirefoxMobileBrowser()))&&(this.videoReference.playsInline=!0),this.stream.setMediaStream(v),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=this.stream.getMediaStream()},S.prototype.replaceTrackInMediaStream=function(v,F){var M,Z=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream();"video"===v.kind?(M=Z.getVideoTracks()[0],F&&(this.stream.lastVideoTrackConstraints=v.getConstraints())):M=Z.getAudioTracks()[0],M.enabled=!1,M.stop(),Z.removeTrack(M),Z.addTrack(v);var p={oldLabel:(null==M?void 0:M.label)||"",newLabel:(null==v?void 0:v.label)||""};"video"===v.kind&&F?(this.openvidu.sendNewVideoDimensionsIfRequired(this,"trackReplaced",50,30),this.openvidu.sendTrackChangedEvent(this,p.oldLabel,p.newLabel,"videoTrack"),this.stream.isLocalStreamPublished&&this.session.sendVideoData(this.stream.streamManager,5,!0,5)):"audio"===v.kind&&F&&this.openvidu.sendTrackChangedEvent(this,p.oldLabel,p.newLabel,"audioTrack"),"audio"===v.kind&&(this.stream.disableHarkSpeakingEvent(!1),this.stream.disableHarkStoppedSpeakingEvent(!1),this.stream.disableHarkVolumeChangeEvent(!1),this.stream.initHarkEvents())},S.prototype.setPermissionDialogTimer=function(v){var F=this;this.permissionDialogTimeout=setTimeout(function(){F.emitEvent("accessDialogOpened",[])},v)},S.prototype.clearPermissionDialogTimer=function(v,F){clearTimeout(this.permissionDialogTimeout),Date.now()-v>F&&this.emitEvent("accessDialogClosed",[])},S.prototype.replaceTrackInRtcRtpSender=function(v){return $(this,void 0,void 0,function(){var F,Z;return V(this,function(M){switch(M.label){case 0:if(F=this.stream.getRTCPeerConnection().getSenders(),"video"===v.kind){if(!(Z=F.find(function(p){return!!p.track&&"video"===p.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}else{if("audio"!==v.kind)throw new Error("Unknown track kind "+v.kind);if(!(Z=F.find(function(p){return!!p.track&&"audio"===p.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}return[4,Z.replaceTrack(v)];case 1:return M.sent(),[2]}})})},S}(E.StreamManager);R.Publisher=Q},5607:function(Ce,R,B){"use strict";var oe,k=this&&this.__extends||(oe=function(se,g){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,Y){U.__proto__=Y}||function(U,Y){for(var T in Y)Object.prototype.hasOwnProperty.call(Y,T)&&(U[T]=Y[T])})(se,g)},function(se,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function U(){this.constructor=se}oe(se,g),se.prototype=null===g?Object.create(g):(U.prototype=g.prototype,new U)}),$=this&&this.__awaiter||function(oe,se,g,U){return new(g||(g=Promise))(function(T,j){function K(le){try{ae(U.next(le))}catch(Se){j(Se)}}function me(le){try{ae(U.throw(le))}catch(Se){j(Se)}}function ae(le){le.done?T(le.value):function Y(T){return T instanceof g?T:new g(function(j){j(T)})}(le.value).then(K,me)}ae((U=U.apply(oe,se||[])).next())})},V=this&&this.__generator||function(oe,se){var U,Y,T,j,g={label:0,sent:function(){if(1&T[0])throw T[1];return T[1]},trys:[],ops:[]};return j={next:K(0),throw:K(1),return:K(2)},"function"==typeof Symbol&&(j[Symbol.iterator]=function(){return this}),j;function K(ae){return function(le){return function me(ae){if(U)throw new TypeError("Generator is already executing.");for(;j&&(j=0,ae[0]&&(g=0)),g;)try{if(U=1,Y&&(T=2&ae[0]?Y.return:ae[0]?Y.throw||((T=Y.return)&&T.call(Y),0):Y.next)&&!(T=T.call(Y,ae[1])).done)return T;switch(Y=0,T&&(ae=[2&ae[0],T.value]),ae[0]){case 0:case 1:T=ae;break;case 4:return g.label++,{value:ae[1],done:!1};case 5:g.label++,Y=ae[1],ae=[0];continue;case 7:ae=g.ops.pop(),g.trys.pop();continue;default:if(!(T=(T=g.trys).length>0&&T[T.length-1])&&(6===ae[0]||2===ae[0])){g=0;continue}if(3===ae[0]&&(!T||ae[1]>T[0]&&ae[1]<T[3])){g.label=ae[1];break}if(6===ae[0]&&g.label<T[1]){g.label=T[1],T=ae;break}if(T&&g.label<T[2]){g.label=T[2],g.ops.push(ae);break}T[2]&&g.ops.pop(),g.trys.pop();continue}ae=se.call(oe,g)}catch(le){ae=[6,le],Y=0}finally{U=T=0}if(5&ae[0])throw ae[1];return{value:ae[0]?ae[1]:void 0,done:!0}}([ae,le])}}};Object.defineProperty(R,"__esModule",{value:!0}),R.Session=void 0;var I,y=B(7576),b=B(5481),E=B(3343),_=B(2768),m=B(1698),w=B(5132),C=B(5449),G=B(1690),J=B(1659),O=B(482),N=B(3980),Q=B(9383),W=B(9005),S=B(9900),v=B(9303),F=B(7167),Z=B(1829),M=B(1171),p=B(1892),P=B(9897),ee=B(4131),D=Z.OpenViduLogger.getInstance(),X=function(oe){function se(g){var U=oe.call(this)||this;return U.streamManagers=[],U.remoteStreamsCreated=new Map,U.remoteConnections=new Map,I=M.PlatformUtils.getInstance(),U.openvidu=g,U}return k(se,oe),se.prototype.connect=function(g,U){var Y=this;return new Promise(function(T,j){if(Y.processToken(g),!Y.openvidu.checkSystemRequirements())return j(new v.OpenViduError(v.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+I.getName()+" (version "+I.getVersion()+") for "+I.getFamily()+" is not supported in OpenVidu"));Y.options={sessionId:Y.sessionId,participantId:g,metadata:U?Y.stringClientMetadata(U):""},Y.connectAux(g).then(function(){return T()}).catch(function(K){return j(K)})})},se.prototype.disconnect=function(){this.leave(!1,"disconnect")},se.prototype.subscribe=function(g,U,Y,T){var j={};j=Y&&"function"!=typeof Y?{insertMode:void 0!==Y.insertMode?"string"==typeof Y.insertMode?F.VideoInsertMode[Y.insertMode]:j.insertMode:F.VideoInsertMode.APPEND,subscribeToAudio:void 0===Y.subscribeToAudio||Y.subscribeToAudio,subscribeToVideo:void 0===Y.subscribeToVideo||Y.subscribeToVideo}:{insertMode:F.VideoInsertMode.APPEND,subscribeToAudio:!0,subscribeToVideo:!0};var K=void 0;if(Y&&"function"==typeof Y?K=Y:T&&(K=T),!this.sessionConnected())throw void 0!==K&&K(this.notConnectedError()),this.notConnectedError();D.info("Subscribing to "+g.connection.connectionId),g.subscribe().then(function(){D.info("Subscribed correctly to "+g.connection.connectionId),void 0!==K&&K(void 0)}).catch(function(ae){void 0!==K&&K(ae)});var me=new E.Subscriber(g,U,j);return me.targetElement&&g.streamManager.createVideoElement(me.targetElement,j.insertMode),me},se.prototype.subscribeAsync=function(g,U,Y){var T=this;return new Promise(function(j,K){if(!T.sessionConnected())return K(T.notConnectedError());var me,ae=function(le){return le?K(le):j(me)};me=Y?T.subscribe(g,U,Y,ae):T.subscribe(g,U,ae)})},se.prototype.unsubscribe=function(g){var U=this;return new Promise(function(Y,T){if(!U.sessionConnected())return T(U.notConnectedError());var j=g.stream.connection.connectionId;D.info("Unsubscribing from "+j),U.openvidu.sendRequest("unsubscribeFromVideo",{sender:g.stream.connection.connectionId},function(K,me){return K?(D.error("Error unsubscribing from "+j),T(K)):(D.info("Unsubscribed correctly from "+j),g.stream.streamManager.removeAllVideos(),g.stream.disposeWebRtcPeer(),g.stream.disposeMediaStream(),Y())})})},se.prototype.publish=function(g){var U=this;return new Promise(function(Y,T){if(!U.sessionConnected())return T(U.notConnectedError());g.session=U,g.stream.session=U,g.stream.publishedOnce?g.initialize().then(function(){U.connection.addStream(g.stream),g.reestablishStreamPlayingEvent(),g.stream.publish().then(function(){return U.sendVideoData(g,8,!0,5),Y()}).catch(function(j){return T(j)})}).catch(function(j){return T(j)}):(U.connection.addStream(g.stream),g.stream.publish().then(function(){return U.sendVideoData(g,8,!0,5),Y()}).catch(function(j){return T(j)}))})},se.prototype.unpublish=function(g){var U=this;return new Promise(function(Y,T){if(!U.sessionConnected())throw U.notConnectedError();var j=g.stream;return j.connection?j.connection!==U.connection?T(new Error("The associated Connection object of this Publisher is not your local Connection. Only moderators can force unpublish on remote Streams via 'forceUnpublish' method")):(D.info("Unpublishing local media ("+j.connection.connectionId+")"),void U.openvidu.sendRequest("unpublishVideo",function(K,me){if(K)return T(K);D.info("Media unpublished correctly"),j.disposeWebRtcPeer(),j.connection.stream==j&&delete j.connection.stream;var ae=new N.StreamEvent(!0,g,"streamDestroyed",g.stream,"unpublish");return g.emitEvent("streamDestroyed",[ae]),ae.callDefaultBehavior(),Y()})):T(new Error("The associated Connection object of this Publisher is null"))})},se.prototype.forceDisconnect=function(g){var U=this;return new Promise(function(Y,T){if(!U.sessionConnected())return T(U.notConnectedError());D.info("Forcing disconnect for connection "+g.connectionId),U.openvidu.sendRequest("forceDisconnect",{connectionId:g.connectionId},function(j,K){return j?(D.error("Error forcing disconnect for Connection "+g.connectionId,j),T(401===j.code?new v.OpenViduError(v.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):j)):(D.info("Forcing disconnect correctly for Connection "+g.connectionId),Y())})})},se.prototype.forceUnpublish=function(g){var U=this;return new Promise(function(Y,T){if(!U.sessionConnected())return T(U.notConnectedError());D.info("Forcing unpublish for stream "+g.streamId),U.openvidu.sendRequest("forceUnpublish",{streamId:g.streamId},function(j,K){return j?(D.error("Error forcing unpublish for Stream "+g.streamId,j),T(401===j.code?new v.OpenViduError(v.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):j)):(D.info("Forcing unpublish correctly for Stream "+g.streamId),Y())})})},se.prototype.signal=function(g){var U=this;return new Promise(function(Y,T){if(!U.sessionConnected())return T(U.notConnectedError());var j={};if(g.to&&g.to.length>0){var K=[];g.to.forEach(function(ae){ae.connectionId&&K.push(ae.connectionId)}),j.to=K}else j.to=[];j.data=g.data?g.data:"";var me=g.type?g.type:"signal";me&&"signal:"!==me.substring(0,7)&&(me="signal:"+me),j.type=me,U.openvidu.sendRequest("sendMessage",{message:JSON.stringify(j)},function(ae,le){return ae?T(ae):Y()})})},se.prototype.subscribeToSpeechToText=function(g,U){var Y=this;return new Promise(function(T,j){Y.openvidu.sendRequest("subscribeToSpeechToText",{connectionId:g.connection.connectionId,lang:U},function(K,me){return K?j(K):T()})})},se.prototype.unsubscribeFromSpeechToText=function(g){var U=this;return new Promise(function(Y,T){U.openvidu.sendRequest("unsubscribeFromSpeechToText",{connectionId:g.connection.connectionId},function(j,K){return j?T(j):Y()})})},se.prototype.on=function(g,U){var Y,T,j,K;return oe.prototype.onAux.call(this,g,"Event '"+g+"' triggered by 'Session'",U),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(me){var ae;null!==(ae=me.stream)&&void 0!==ae&&ae.hasAudio&&me.stream.enableHarkSpeakingEvent()}),!(null===(T=null===(Y=this.connection)||void 0===Y?void 0:Y.stream)||void 0===T)&&T.hasAudio&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(me){var ae;null!==(ae=me.stream)&&void 0!==ae&&ae.hasAudio&&me.stream.enableHarkStoppedSpeakingEvent()}),!(null===(K=null===(j=this.connection)||void 0===j?void 0:j.stream)||void 0===K)&&K.hasAudio&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},se.prototype.once=function(g,U){var Y,T,j,K;return oe.prototype.onceAux.call(this,g,"Event '"+g+"' triggered once by 'Session'",U),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(me){var ae;null!==(ae=me.stream)&&void 0!==ae&&ae.hasAudio&&me.stream.enableOnceHarkSpeakingEvent()}),!(null===(T=null===(Y=this.connection)||void 0===Y?void 0:Y.stream)||void 0===T)&&T.hasAudio&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(me){var ae;null!==(ae=me.stream)&&void 0!==ae&&ae.hasAudio&&me.stream.enableOnceHarkStoppedSpeakingEvent()}),!(null===(K=null===(j=this.connection)||void 0===j?void 0:j.stream)||void 0===K)&&K.hasAudio&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},se.prototype.off=function(g,U){var T,j,K,me,Y=this;return oe.prototype.offAux.call(this,g,U),"publisherStartSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(ae){var le;null!==(le=ae.stream)&&void 0!==le&&le.streamManager&&(Y.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,ae.stream.streamManager)||ae.stream.disableHarkSpeakingEvent(!1))}),!(null===(j=null===(T=this.connection)||void 0===T?void 0:T.stream)||void 0===j)&&j.streamManager&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(ae){var le;null!==(le=ae.stream)&&void 0!==le&&le.streamManager&&(Y.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,ae.stream.streamManager)||ae.stream.disableHarkStoppedSpeakingEvent(!1))}),!(null===(me=null===(K=this.connection)||void 0===K?void 0:K.stream)||void 0===me)&&me.streamManager&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},se.prototype.onParticipantJoined=function(g){var U=this;this.getConnection(g.id,"").then(function(Y){D.warn("Connection "+Y.connectionId+" already exists in connections list")}).catch(function(Y){var T=new y.Connection(U,g);U.remoteConnections.set(g.id,T),U.ee.emitEvent("connectionCreated",[new m.ConnectionEvent(!1,U,"connectionCreated",T,"")])})},se.prototype.onParticipantLeft=function(g){var U=this;this.getRemoteConnection(g.connectionId,"onParticipantLeft").then(function(Y){if(Y.stream){var T=Y.stream,j=new N.StreamEvent(!0,U,"streamDestroyed",T,g.reason);U.ee.emitEvent("streamDestroyed",[j]),j.callDefaultBehavior(),U.remoteStreamsCreated.delete(T.streamId)}Y.dispose(),U.remoteConnections.delete(Y.connectionId),U.ee.emitEvent("connectionDestroyed",[new m.ConnectionEvent(!1,U,"connectionDestroyed",Y,g.reason)])}).catch(function(Y){D.error(Y)})},se.prototype.onParticipantPublished=function(g){var T,U=this,Y=function(j){U.remoteConnections.set(j.connectionId,j),U.remoteStreamsCreated.get(j.stream.streamId)||U.ee.emitEvent("streamCreated",[new N.StreamEvent(!1,U,"streamCreated",j.stream,"")]),U.remoteStreamsCreated.set(j.stream.streamId,!0)};this.getRemoteConnection(g.id,"onParticipantPublished").then(function(j){T=j,g.metadata=j.data,T.remoteOptions=g,T.initRemoteStreams(g.streams),Y(T)}).catch(function(j){T=new y.Connection(U,g),Y(T)})},se.prototype.onParticipantUnpublished=function(g){var U=this;g.connectionId===this.connection.connectionId?this.stopPublisherStream(g.reason):this.getRemoteConnection(g.connectionId,"onParticipantUnpublished").then(function(Y){var T=new N.StreamEvent(!0,U,"streamDestroyed",Y.stream,g.reason);U.ee.emitEvent("streamDestroyed",[T]),T.callDefaultBehavior(),null!=Y.stream&&(U.remoteStreamsCreated.delete(Y.stream.streamId),Y.removeStream())}).catch(function(Y){D.error(Y)})},se.prototype.onParticipantEvicted=function(g){g.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,g.reason)},se.prototype.onNewMessage=function(g){var U=this;D.info("New signal: "+JSON.stringify(g));var Y=g.type?g.type.replace(/^(signal:)/,""):void 0;g.from?this.getConnection(g.from,"Connection '"+g.from+"' unknown when 'onNewMessage'. Existing remote connections: "+JSON.stringify(this.remoteConnections.keys())+". Existing local connection: "+this.connection.connectionId).then(function(T){U.ee.emitEvent("signal",[new J.SignalEvent(U,Y,g.data,T)]),g.type&&"signal"!==g.type&&U.ee.emitEvent(g.type,[new J.SignalEvent(U,Y,g.data,T)])}).catch(function(T){D.error(T)}):(this.ee.emitEvent("signal",[new J.SignalEvent(this,Y,g.data,void 0)]),g.type&&"signal"!==g.type&&this.ee.emitEvent(g.type,[new J.SignalEvent(this,Y,g.data,void 0)]))},se.prototype.onStreamPropertyChanged=function(g){var U=this,Y=function(T){if(T.stream&&T.stream.streamId===g.streamId){var j=T.stream,K=void 0;switch(g.property){case"audioActive":K=j.audioActive,g.newValue="true"===g.newValue,j.audioActive=g.newValue;break;case"videoActive":K=j.videoActive,g.newValue="true"===g.newValue,j.videoActive=g.newValue;break;case"videoTrack":case"audioTrack":g.newValue=JSON.parse(g.newValue);break;case"videoDimensions":K=j.videoDimensions,g.newValue=JSON.parse(JSON.parse(g.newValue)),j.videoDimensions=g.newValue;break;case"filter":K=j.filter,g.newValue=Object.keys(g.newValue).length>0?g.newValue:void 0,void 0!==g.newValue?(j.filter=new b.Filter(g.newValue.type,g.newValue.options),j.filter.stream=j,g.newValue.lastExecMethod&&(j.filter.lastExecMethod=g.newValue.lastExecMethod)):delete j.filter,g.newValue=j.filter}U.ee.emitEvent("streamPropertyChanged",[new Q.StreamPropertyChangedEvent(U,j,g.property,g.newValue,K,g.reason)]),j.streamManager&&j.streamManager.emitEvent("streamPropertyChanged",[new Q.StreamPropertyChangedEvent(j.streamManager,j,g.property,g.newValue,K,g.reason)])}else D.error("No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event")};g.connectionId===this.connection.connectionId?Y(this.connection):this.getRemoteConnection(g.connectionId,"onStreamPropertyChanged").then(function(T){Y(T)}).catch(function(T){D.error(T)})},se.prototype.onConnectionPropertyChanged=function(g){var U;switch(g.property){case"role":U=this.connection.role.slice(),this.connection.role=g.newValue,this.connection.localOptions.role=g.newValue;break;case"record":U=this.connection.record,g.newValue="true"===g.newValue,this.connection.record=g.newValue,this.connection.localOptions.record=g.newValue}this.ee.emitEvent("connectionPropertyChanged",[new W.ConnectionPropertyChangedEvent(this,this.connection,g.property,g.newValue,U)])},se.prototype.onNetworkQualityLevelChangedChanged=function(g){var U=this;g.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new S.NetworkQualityLevelChangedEvent(this,g.newValue,g.oldValue,this.connection)]):this.getConnection(g.connectionId,"Connection not found for connectionId "+g.connectionId).then(function(Y){U.ee.emitEvent("networkQualityLevelChanged",[new S.NetworkQualityLevelChangedEvent(U,g.newValue,g.oldValue,Y)])}).catch(function(Y){D.error(Y)})},se.prototype.recvIceCandidate=function(g){var Y=new RTCIceCandidate({candidate:g.candidate,sdpMLineIndex:g.sdpMLineIndex,sdpMid:g.sdpMid});this.getConnection(g.senderConnectionId,"Connection not found for connectionId "+g.senderConnectionId+" owning endpoint "+g.endpointName+". Ice candidate will be ignored: "+Y).then(function(T){var j=T.stream;j.getWebRtcPeer().addIceCandidate(Y).catch(function(K){D.error("Error adding candidate for "+j.streamId+" stream of endpoint "+g.endpointName+": "+K)})}).catch(function(T){D.error(T)})},se.prototype.onSessionClosed=function(g){D.info("Session closed: "+JSON.stringify(g));var U=g.sessionId;void 0!==U?this.ee.emitEvent("session-closed",[{session:U}]):D.warn("Session undefined on session closed",g)},se.prototype.onLostConnection=function(g){D.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,g)},se.prototype.onRecoveredConnection=function(){D.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},se.prototype.onMediaError=function(g){D.error("Media error: "+JSON.stringify(g));var U=g.error;U?this.ee.emitEvent("error-media",[{error:U}]):D.warn("Received undefined media error:",g)},se.prototype.onRecordingStarted=function(g){this.ee.emitEvent("recordingStarted",[new C.RecordingEvent(this,"recordingStarted",g.id,g.name)])},se.prototype.onRecordingStopped=function(g){this.ee.emitEvent("recordingStopped",[new C.RecordingEvent(this,"recordingStopped",g.id,g.name,g.reason)])},se.prototype.onFilterEventDispatched=function(g){var U=this,Y=g.connectionId;this.getConnection(Y,"No connection found for connectionId "+Y).then(function(T){D.info('Filter event of type "'.concat(g.eventType,'" dispatched'));var j=T.stream;if(!j||!j.filter)return D.error('Filter event of type "'.concat(g.eventType,'" dispatched for stream ').concat(j.streamId," but there is no ").concat(j?"filter":"stream"," defined"));var K=j.filter.handlers.get(g.eventType);if(!K||"function"!=typeof K){var me=Array.from(j.filter.handlers.keys());return D.error('Filter event of type "'.concat(g.eventType,'" not handled or not a function! Active filter events: ').concat(me.join(",")))}K.call(U,new w.FilterEvent(j.filter,g.eventType,g.data))})},se.prototype.onForciblyReconnectSubscriber=function(g){var U=this;return new Promise(function(Y,T){U.getRemoteConnection(g.connectionId,"onForciblyReconnectSubscriber").then(function(j){if(!j.stream||j.stream.streamId!==g.streamId){var ae="No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event";return D.error(ae),T(ae)}var K=j.stream;if(K.setupReconnectionEventEmitter(Y,T)){if(null!=K.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)return K.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g,T("Ongoing forced subscriber reconnection");K.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g;var me=function(){var le=K.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete K.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,U.onForciblyReconnectSubscriber(le)};return K.reconnectionEventEmitter.once("success",function(){me()}),void K.reconnectionEventEmitter.once("error",function(){me()})}K.completeWebRtcPeerReceive(!0,!0,g.sdpOffer).then(function(){return K.finalResolveForSubscription(!0,Y)}).catch(function(le){return K.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream ".concat(g.streamId,": ").concat(le.toString()),T)})}).catch(function(j){return D.error(j),T(j)})})},se.prototype.reconnectBrokenStreams=function(){D.info("Re-establishing media connections...");var g=!1;!!this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(D.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),g=!0),this.remoteConnections.forEach(function(U){U.stream&&U.stream.streamIceConnectionStateBroken()&&(D.warn("Re-establishing Subscriber "+U.stream.streamId),U.stream.initWebRtcPeerReceive(!0),g=!0)}),g||D.info("There were no media streams in need of a reconnection")},se.prototype.onSpeechToTextMessage=function(g){return $(this,void 0,void 0,function(){var U,Y;return V(this,function(T){switch(T.label){case 0:return[4,this.getConnection(g.connectionId,"No connection found for connectionId "+g.connectionId)];case 1:return U=T.sent(),Y=new O.SpeechToTextEvent(this,U,g.text,g.reason.toLowerCase(),g.raw,g.lang),this.ee.emitEvent("speechToTextMessage",[Y]),[2]}})})},se.prototype.onSpeechToTextDisconnected=function(g){return $(this,void 0,void 0,function(){return V(this,function(U){return this.emitEvent("exception",[new ee.ExceptionEvent(this,ee.ExceptionEventName.SPEECH_TO_TEXT_DISCONNECTED,this,g.message)]),[2]})})},se.prototype.emitEvent=function(g,U){this.ee.emitEvent(g,U)},se.prototype.leave=function(g,U){var Y=this;if(D.info("Leaving Session (forced="+(g=!!g)+")"),this.stopVideoDataIntervals(),this.connection){if(this.connection.disposed||g?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(j,K){j&&D.error("leaveRoom error: ".concat(JSON.stringify(j))),Y.openvidu.closeWs()}),this.stopPublisherStream(U),!this.connection.disposed){var T=new G.SessionDisconnectedEvent(this,U);this.ee.emitEvent("sessionDisconnected",[T]),T.callDefaultBehavior()}}else D.warn("You were not connected to the session "+this.sessionId);D.flush()},se.prototype.initializeParams=function(g){return{token:g||"",session:this.sessionId,platform:I.getDescription()?I.getDescription():"unknown",sdkVersion:this.openvidu.libraryVersion,metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder(),stt:this.openvidu.getStt()}},se.prototype.sendVideoData=function(g,U,Y,T){var K,me,j=this;if(void 0===U&&(U=1),void 0===Y&&(Y=!1),void 0===T&&(T=1),I.isChromeBrowser()||I.isChromeMobileBrowser()||I.isOperaBrowser()||I.isOperaMobileBrowser()||I.isEdgeBrowser()||I.isEdgeMobileBrowser()||I.isElectron()||I.isSafariBrowser()&&!I.isIonicIos()||I.isAndroidBrowser()||I.isSamsungBrowser()||I.isIonicAndroid()||I.isIOSWithSafari()){var ae=function(){return $(j,void 0,void 0,function(){var Se,$e,Le;return V(this,function(ze){switch(ze.label){case 0:return"connected"!==(Se=g.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,Se.getStats()];case 1:$e=ze.sent(),Le=[],$e.forEach(function(ct){"frameWidth"in ct&&"frameHeight"in ct&&0===Le.length&&Le.push(ct)}),Le.length>0&&this.openvidu.sendRequest("videoData",{height:Le[0].frameHeight,width:Le[0].frameWidth,videoActive:null!=g.stream.videoActive&&g.stream.videoActive,audioActive:null!=g.stream.audioActive&&g.stream.audioActive},function(ct,Ue){ct&&D.error("Error sending 'videoData' event",ct)}),ze.label=2;case 2:return[2]}})})};if(Y){var le=1;this.videoDataInterval=setInterval(function(){le<T?(le++,ae()):clearInterval(j.videoDataInterval)},1e3*U)}else this.videoDataTimeout=setTimeout(ae,1e3*U)}else I.isFirefoxBrowser()||I.isFirefoxMobileBrowser()||I.isIonicIos()||I.isReactNative()?this.openvidu.sendRequest("videoData",{height:(null===(K=g.stream.videoDimensions)||void 0===K?void 0:K.height)||0,width:(null===(me=g.stream.videoDimensions)||void 0===me?void 0:me.width)||0,videoActive:null!=g.stream.videoActive&&g.stream.videoActive,audioActive:null!=g.stream.audioActive&&g.stream.audioActive},function(Se,$e){Se&&D.error("Error sending 'videoData' event",Se)}):D.error("Browser "+I.getName()+" (version "+I.getVersion()+") for "+I.getFamily()+" is not supported in OpenVidu for Network Quality")},se.prototype.sessionConnected=function(){return null!=this.connection},se.prototype.notConnectedError=function(){return new v.OpenViduError(v.OpenViduErrorName.OPENVIDU_NOT_CONNECTED,"There is no connection to the session. Method 'Session.connect' must be successfully completed first")},se.prototype.anySpeechEventListenerEnabled=function(g,U,Y){var T=this.ee.getListeners(g);if(U&&(T=T.filter(function(ae){return ae.once})),T.length>0)return!0;var K=0;if(Y){var me=Y.ee.getListeners(g);U&&(me=me.filter(function(ae){return ae.once})),K=me.length}return K>0},se.prototype.getTokenParams=function(g){var U=g.match(/^(wss?)\:\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(U){var Y={protocol:U[1],host:U[2],hostname:U[3],port:U[4],pathname:U[5],search:U[6],hash:U[7]},T=g.split("?"),j=decodeURI(T[1]).split("&").map(function(K){return K.split("=")}).reduce(function(K,me){return K[me[0]]=me[1],K},{});return{sessionId:j.sessionId,secret:j.secret,recorder:j.recorder,stt:j.stt,webrtcStatsInterval:j.webrtcStatsInterval,sendBrowserLogs:j.sendBrowserLogs,edition:j.edition,wsUri:Y.protocol+"://"+Y.host+"/openvidu",httpUri:"https://"+Y.host}}throw new Error('Token not valid: "'.concat(g,'"'))},se.prototype.connectAux=function(g){var U=this;return new Promise(function(Y,T){U.openvidu.startWs(function(j){if(j)return T(j);var K=U.initializeParams(g);U.openvidu.sendRequest("joinRoom",K,function(me,ae){if(me)return T(me);U.processJoinRoomResponse(ae,g),U.connection=new y.Connection(U,ae);var le={connections:new Array,streams:new Array};return ae.value.forEach(function($e){var Le=new y.Connection(U,$e);U.remoteConnections.set(Le.connectionId,Le),le.connections.push(Le),Le.stream&&(U.remoteStreamsCreated.set(Le.stream.streamId,!0),le.streams.push(Le.stream))}),U.ee.emitEvent("connectionCreated",[new m.ConnectionEvent(!1,U,"connectionCreated",U.connection,"")]),le.connections.forEach(function($e){U.ee.emitEvent("connectionCreated",[new m.ConnectionEvent(!1,U,"connectionCreated",$e,"")])}),le.streams.forEach(function($e){U.ee.emitEvent("streamCreated",[new N.StreamEvent(!1,U,"streamCreated",$e,"")])}),!!ae.recordingId&&!!ae.recordingName&&U.ee.emitEvent("recordingStarted",[new C.RecordingEvent(U,"recordingStarted",ae.recordingId,ae.recordingName)]),Y()})})})},se.prototype.stopPublisherStream=function(g){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[g]))},se.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},se.prototype.stringClientMetadata=function(g){return"string"!=typeof g?JSON.stringify(g):g},se.prototype.getConnection=function(g,U){var Y=this;return new Promise(function(T,j){var K=Y.remoteConnections.get(g);return K?T(K):Y.connection.connectionId===g?T(Y.connection):j(new v.OpenViduError(v.OpenViduErrorName.GENERIC_ERROR,U))})},se.prototype.getRemoteConnection=function(g,U){var Y=this;return new Promise(function(T,j){var K=Y.remoteConnections.get(g);if(K)return T(K);var me="Remote connection "+g+" unknown when '"+U+"'. Existing remote connections: "+JSON.stringify(Y.remoteConnections.keys());return j(new v.OpenViduError(v.OpenViduErrorName.GENERIC_ERROR,me))})},se.prototype.processToken=function(g){var U=this.getTokenParams(g);this.sessionId=U.sessionId,U.secret&&(this.openvidu.secret=U.secret),U.recorder&&(this.openvidu.recorder=!0),U.stt&&(this.openvidu.stt=!0),U.webrtcStatsInterval&&(this.openvidu.webrtcStatsInterval=U.webrtcStatsInterval),U.sendBrowserLogs&&(this.openvidu.sendBrowserLogs=U.sendBrowserLogs),this.openvidu.isAtLeastPro="pro"===U.edition||"enterprise"===U.edition,this.openvidu.isEnterprise="enterprise"===U.edition,this.openvidu.wsUri=U.wsUri,this.openvidu.httpUri=U.httpUri},se.prototype.processJoinRoomResponse=function(g,U){if(this.sessionId=g.session,null!=g.customIceServers&&g.customIceServers.length>0){this.openvidu.iceServers=[];for(var Y=0,T=g.customIceServers;Y<T.length;Y++){var j=T[Y],K={urls:[j.url]};D.log("STUN/TURN server IP: "+j.url),null!=j.username&&null!=j.credential&&(K.username=j.username,K.credential=j.credential,D.log("TURN credentials ["+j.username+":"+j.credential+"]")),this.openvidu.iceServers.push(K)}}this.openvidu.role=g.role,this.openvidu.finalUserId=g.finalUserId,this.openvidu.mediaServer=g.mediaServer,this.openvidu.videoSimulcast=g.videoSimulcast,this.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==this.openvidu.role,forceUnpublish:"MODERATOR"===this.openvidu.role,forceDisconnect:"MODERATOR"===this.openvidu.role},D.info("openvidu-server version: "+g.version),null!=g.life&&(this.openvidu.life=g.life);var me=P(g.version)-P(this.openvidu.libraryVersion);p(g.version)!==p(this.openvidu.libraryVersion)||0!=me&&1!=me?D.error("openvidu-browser (".concat(this.openvidu.libraryVersion,") and openvidu-server (").concat(g.version,") versions are incompatible. ")+"Errors are likely to occur. openvidu-browser SDK is only compatible with the same version or the immediately following minor version of an OpenVidu deployment"):1==me&&D.warn("openvidu-browser version ".concat(this.openvidu.libraryVersion," does not match openvidu-server version ").concat(g.version,". ")+"These versions are still compatible with each other, but openvidu-browser version must be updated as soon as possible to ".concat(p(g.version),".").concat(P(g.version),".x. ")+"This client using openvidu-browser ".concat(this.openvidu.libraryVersion," will become incompatible with the next release of openvidu-server")),Z.OpenViduLogger.configureJSNLog(this.openvidu,U),this.token=U},se}(_.EventDispatcher);R.Session=X},8770:function(Ce,R,B){"use strict";var k=this&&this.__awaiter||function(M,p,P,ee){return new(P||(P=Promise))(function(I,X){function oe(U){try{g(ee.next(U))}catch(Y){X(Y)}}function se(U){try{g(ee.throw(U))}catch(Y){X(Y)}}function g(U){U.done?I(U.value):function D(I){return I instanceof P?I:new P(function(X){X(I)})}(U.value).then(oe,se)}g((ee=ee.apply(M,p||[])).next())})},$=this&&this.__generator||function(M,p){var ee,D,I,X,P={label:0,sent:function(){if(1&I[0])throw I[1];return I[1]},trys:[],ops:[]};return X={next:oe(0),throw:oe(1),return:oe(2)},"function"==typeof Symbol&&(X[Symbol.iterator]=function(){return this}),X;function oe(g){return function(U){return function se(g){if(ee)throw new TypeError("Generator is already executing.");for(;X&&(X=0,g[0]&&(P=0)),P;)try{if(ee=1,D&&(I=2&g[0]?D.return:g[0]?D.throw||((I=D.return)&&I.call(D),0):D.next)&&!(I=I.call(D,g[1])).done)return I;switch(D=0,I&&(g=[2&g[0],I.value]),g[0]){case 0:case 1:I=g;break;case 4:return P.label++,{value:g[1],done:!1};case 5:P.label++,D=g[1],g=[0];continue;case 7:g=P.ops.pop(),P.trys.pop();continue;default:if(!(I=(I=P.trys).length>0&&I[I.length-1])&&(6===g[0]||2===g[0])){P=0;continue}if(3===g[0]&&(!I||g[1]>I[0]&&g[1]<I[3])){P.label=g[1];break}if(6===g[0]&&P.label<I[1]){P.label=I[1],I=g;break}if(I&&P.label<I[2]){P.label=I[2],P.ops.push(g);break}I[2]&&P.ops.pop(),P.trys.pop();continue}g=p.call(M,P)}catch(U){g=[6,U],D=0}finally{ee=I=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,U])}}};Object.defineProperty(R,"__esModule",{value:!0}),R.Stream=void 0;var F,V=B(5481),y=B(3343),b=B(1530),E=B(7153),_=B(4131),m=B(8887),w=B(7818),C=B(9383),G=B(9303),J=B(7879),O=B(1829),N=B(1171),Q=B(6842),W=B(2877),S=B(2937),v=O.OpenViduLogger.getInstance(),Z=function(){function M(p,P){var ee=this;this.isSubscribeToRemote=!1,this.isLocalStreamReadyToPublish=!1,this.isLocalStreamPublished=!1,this.publishedOnce=!1,this.harkSpeakingEnabled=!1,this.harkSpeakingEnabledOnce=!1,this.harkStoppedSpeakingEnabled=!1,this.harkStoppedSpeakingEnabledOnce=!1,this.harkVolumeChangeEnabled=!1,this.harkVolumeChangeEnabledOnce=!1,this.ee=new S,F=N.PlatformUtils.getInstance(),this.session=p,P.hasOwnProperty("id")?(this.inboundStreamOpts=P,this.streamId=this.inboundStreamOpts.id,this.creationTime=this.inboundStreamOpts.createdAt,this.hasAudio=this.inboundStreamOpts.hasAudio,this.hasVideo=this.inboundStreamOpts.hasVideo,this.hasAudio&&(this.audioActive=this.inboundStreamOpts.audioActive),this.hasVideo&&(this.videoActive=this.inboundStreamOpts.videoActive,this.typeOfVideo=this.inboundStreamOpts.typeOfVideo?this.inboundStreamOpts.typeOfVideo:void 0,this.frameRate=-1===this.inboundStreamOpts.frameRate?void 0:this.inboundStreamOpts.frameRate,this.videoDimensions=this.inboundStreamOpts.videoDimensions),!!this.inboundStreamOpts.filter&&Object.keys(this.inboundStreamOpts.filter).length>0&&(!!this.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(this.inboundStreamOpts.filter.lastExecMethod).length&&delete this.inboundStreamOpts.filter.lastExecMethod,this.filter=this.inboundStreamOpts.filter)):(this.outboundStreamOpts=P,this.hasAudio=this.isSendAudio(),this.hasVideo=this.isSendVideo(),this.hasAudio&&(this.audioActive=!!this.outboundStreamOpts.publisherProperties.publishAudio),this.hasVideo&&(this.videoActive=!!this.outboundStreamOpts.publisherProperties.publishVideo,this.frameRate=this.outboundStreamOpts.publisherProperties.frameRate,this.typeOfVideo="undefined"!=typeof MediaStreamTrack&&this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?J.TypeOfVideo.CUSTOM:this.isSendScreen()?J.TypeOfVideo.SCREEN:J.TypeOfVideo.CAMERA),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){var D;ee.streamManager.updateMediaStream(ee.mediaStream),v.debug("Video srcObject ["+(null===(D=ee.mediaStream)||void 0===D?void 0:D.id)+"] updated in stream ["+ee.streamId+"]")})}return M.prototype.reconnect=function(){return this.reconnectStream("API")},M.prototype.applyFilter=function(p,P){var ee=this;return new Promise(function(D,I){return k(ee,void 0,void 0,function(){var X,oe,se,g,U,Y,T=this;return $(this,function(j){if(this.filter)return[2,I(new G.OpenViduError(G.OpenViduErrorName.GENERIC_ERROR,"There is already a filter applied to Stream "+this.streamId))];if(X=function(K,me){if(K)return v.error("Error applying filter for Stream "+T.streamId,K),I(401===K.code?new G.OpenViduError(G.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):K);v.info("Filter successfully applied on Stream "+T.streamId);var ae=T.filter;return T.filter=new V.Filter(p,P),T.filter.stream=T,me&&(T.session.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(T.session,T,"filter",T.filter,ae,"applyFilter")]),T.streamManager.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(T.streamManager,T,"filter",T.filter,ae,"applyFilter")])),D(T.filter)},p.startsWith("VB:")){if(!this.hasVideo)return[2,I(new G.OpenViduError(G.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The Virtual Background filter requires a video track to be applied"))];if(!this.mediaStream||0===this.streamManager.videos.length)return[2,I(new G.OpenViduError(G.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The StreamManager requires some video element to be attached to it in order to apply a Virtual Background filter"))];if(!(oe=this.session.token?this.session.token:P.token))return[2,I(new G.OpenViduError(G.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Virtual Background requires the client to be connected to a Session or to have a "token" property available in "options" parameter with a valid OpenVidu token'))];if("pro"!==(se=this.session.getTokenParams(oe)).edition&&"enterprise"!==se.edition)return[2,I(new G.OpenViduError(G.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"OpenVidu Virtual Background API is available from OpenVidu Pro edition onwards"))];oe=encodeURIComponent(btoa(oe)),v.info("Applying Virtual Background to stream "+this.streamId),g=function(){return k(T,void 0,void 0,function(){var K,me,ae,le,Se,Le;return $(this,function(ze){switch(ze.label){case 0:return ze.trys.push([0,8,,9]),K=this.streamId+"_"+(0,Q.v4)(),me=this.mediaStream.clone(),(ae=this.streamManager.videos[0].video.cloneNode(!1)).id=VirtualBackground.VirtualBackground.SOURCE_VIDEO_PREFIX+K,ae.srcObject=me,ae.muted=!0,this.virtualBackgroundSourceElements={videoClone:ae,mediaStreamClone:me},VirtualBackground.VirtualBackground.hideHtmlElement(ae,!1),VirtualBackground.VirtualBackground.appendHtmlElementToHiddenContainer(ae,K),[4,ae.play()];case 1:switch(ze.sent(),le=new VirtualBackground.VirtualBackground({id:K,openviduServerUrl:new URL(se.httpUri),openviduToken:oe,inputVideo:ae,inputResolution:"160x96",outputFramerate:24}),Se=void 0,p){case"VB:blur":return[3,2];case"VB:image":return[3,4]}return[3,6];case 2:return[4,le.backgroundBlur(P)];case 3:case 5:return Se=ze.sent(),[3,7];case 4:return[4,le.backgroundImage(P)];case 6:throw new Error("Unknown Virtual Background filter: "+p);case 7:return this.virtualBackgroundSinkElements={VB:le,video:Se},ae.style.display="none",this.streamManager.remote?this.streamManager.replaceTrackInMediaStream(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1):this.streamManager.replaceTrackAux(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1),X(void 0,!1),[3,9];case 8:return Le=ze.sent(),X(Le.name===G.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new G.OpenViduError(G.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,Le.message):Le,!1),[3,9];case 9:return[2]}})})},"undefined"==typeof VirtualBackground?((U=document.createElement("script")).type="text/javascript",U.src=se.httpUri+"/openvidu/virtual-background/openvidu-virtual-background.js?token="+oe,U.onload=function(){return k(T,void 0,void 0,function(){var K;return $(this,function(me){switch(me.label){case 0:return me.trys.push([0,2,,3]),[4,g()];case 1:return me.sent(),D(new V.Filter(p,P)),[3,3];case 2:return K=me.sent(),I(K),[3,3];case 3:return[2]}})})},document.body.appendChild(U)):g().then(function(){return D(new V.Filter(p,P))}).catch(function(K){return I(K)})}else{if(!this.session.sessionConnected())return[2,I(this.session.notConnectedError())];v.info("Applying server filter to stream "+this.streamId),"string"!=typeof(Y=P=null!=P?P:{})&&(Y=JSON.stringify(Y)),this.session.openvidu.sendRequest("applyFilter",{streamId:this.streamId,type:p,options:Y},function(K,me){X(K,!0)})}return[2]})})})},M.prototype.removeFilter=function(){return k(this,void 0,void 0,function(){return $(this,function(p){switch(p.label){case 0:return[4,this.removeFilterAux(!1)];case 1:return[2,p.sent()]}})})},M.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},M.prototype.getMediaStream=function(){return this.mediaStream},M.prototype.removeFilterAux=function(p){var P=this;return new Promise(function(ee,D){return k(P,void 0,void 0,function(){var I,X,oe,g,se=this;return $(this,function(U){switch(U.label){case 0:if(I=function(Y,T){if(Y)return delete se.filter,v.error("Error removing filter for Stream "+se.streamId,Y),D(401===Y.code?new G.OpenViduError(G.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):Y);v.info("Filter successfully removed from Stream "+se.streamId);var j=se.filter;return delete se.filter,T&&(se.session.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(se.session,se,"filter",se.filter,j,"applyFilter")]),se.streamManager.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(se.streamManager,se,"filter",se.filter,j,"applyFilter")])),ee()},!this.filter)return[3,11];if(null===(g=this.filter)||void 0===g||!g.type.startsWith("VB:"))return[3,9];U.label=1;case 1:return U.trys.push([1,7,,8]),X=this.virtualBackgroundSourceElements.mediaStreamClone,p?[3,5]:this.streamManager.remote?(this.streamManager.replaceTrackInMediaStream(X.getVideoTracks()[0],!1),[3,4]):[3,2];case 2:return[4,this.streamManager.replaceTrackAux(X.getVideoTracks()[0],!1)];case 3:U.sent(),U.label=4;case 4:return[3,6];case 5:X.getTracks().forEach(function(Y){return Y.stop()}),U.label=6;case 6:return this.virtualBackgroundSinkElements.VB.cleanUp(),delete this.virtualBackgroundSinkElements,delete this.virtualBackgroundSourceElements,[2,I(void 0,!1)];case 7:return oe=U.sent(),[2,I(oe,!1)];case 8:return[3,10];case 9:if(!this.session.sessionConnected())return[2,D(this.session.notConnectedError())];v.info("Removing filter of stream "+this.streamId),this.session.openvidu.sendRequest("removeFilter",{streamId:this.streamId},function(Y,T){return I(Y,!0)}),U.label=10;case 10:return[3,12];case 11:return[2,D(new G.OpenViduError(G.OpenViduErrorName.GENERIC_ERROR,"Stream "+this.streamId+" has no filter applied"))];case 12:return[2]}})})})},M.prototype.setMediaStream=function(p){this.mediaStream=p},M.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},M.prototype.getWebRtcPeer=function(){return this.webRtcPeer},M.prototype.subscribeToMyRemote=function(p){this.isSubscribeToRemote=p},M.prototype.setOutboundStreamOptions=function(p){this.outboundStreamOpts=p},M.prototype.subscribe=function(){var p=this;return new Promise(function(P,ee){p.initWebRtcPeerReceive(!1).then(function(){return P()}).catch(function(D){return ee(D)})})},M.prototype.publish=function(){var p=this;return new Promise(function(P,ee){p.isLocalStreamReadyToPublish?p.initWebRtcPeerSend(!1).then(function(){return P()}).catch(function(D){return ee(D)}):p.ee.once("stream-ready-to-publish",function(){p.publish().then(function(){return P()}).catch(function(D){return ee(D)})})})},M.prototype.disposeWebRtcPeer=function(){var p;this.webRtcPeer&&(this.webRtcPeer.dispose(),p=this.webRtcPeer.getId()),this.stopWebRtcStats(),v.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+p+"] from 'Stream' with id ["+this.streamId+"] is now closed")},M.prototype.disposeMediaStream=function(){return k(this,void 0,void 0,function(){var p;return $(this,function(P){switch(P.label){case 0:if(!this.filter||!this.filter.type.startsWith("VB:"))return[3,4];P.label=1;case 1:return P.trys.push([1,3,,4]),[4,this.removeFilterAux(!0)];case 2:return P.sent(),console.debug("Success removing Virtual Background filter for stream ".concat(this.streamId)),[3,4];case 3:return p=P.sent(),console.error("Error removing Virtual Background filter for stream ".concat(this.streamId),p),[3,4];case 4:return this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(ee){ee.stop()}),this.mediaStream.getVideoTracks().forEach(function(ee){ee.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function(ee){ee.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function(ee){ee.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),v.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed"),[2]}})})},M.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},M.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},M.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},M.prototype.isSendScreen=function(){var p="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return F.isElectron()&&(p="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&p},M.prototype.enableHarkSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabled&&this.speechEvent&&(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){p.session.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStartSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStartSpeaking",p.connection,p.streamId)]),p.harkSpeakingEnabledOnce=!1}))},M.prototype.enableOnceHarkSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabledOnce&&this.speechEvent&&(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){p.harkSpeakingEnabledOnce&&(p.session.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStartSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStartSpeaking",p.connection,p.streamId)])),p.disableHarkSpeakingEvent(!0)}))},M.prototype.disableHarkSpeakingEvent=function(p){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,p){if(this.harkSpeakingEnabled)return}else this.harkSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},M.prototype.enableHarkStoppedSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabled&&this.speechEvent&&(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){p.session.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStopSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStopSpeaking",p.connection,p.streamId)]),p.harkStoppedSpeakingEnabledOnce=!1}))},M.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabledOnce&&this.speechEvent&&(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){p.harkStoppedSpeakingEnabledOnce&&(p.session.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStopSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStopSpeaking",p.connection,p.streamId)])),p.disableHarkStoppedSpeakingEvent(!0)}))},M.prototype.disableHarkStoppedSpeakingEvent=function(p){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,p){if(this.harkStoppedSpeakingEnabled)return}else this.harkStoppedSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce?this.speechEvent.off("stopped_speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},M.prototype.enableHarkVolumeChangeEvent=function(p){var P=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabled||p)&&(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function(ee){var I={newValue:ee,oldValue:P.speechEvent.oldVolumeValue};P.speechEvent.oldVolumeValue=ee,P.streamManager.emitEvent("streamAudioVolumeChange",[new w.StreamManagerEvent(P.streamManager,"streamAudioVolumeChange",I)])})):this.harkVolumeChangeEnabled=!0},M.prototype.enableOnceHarkVolumeChangeEvent=function(p){var P=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabledOnce||p)&&(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function(ee){var I={newValue:ee,oldValue:P.speechEvent.oldVolumeValue};P.speechEvent.oldVolumeValue=ee,P.disableHarkVolumeChangeEvent(!0),P.streamManager.emitEvent("streamAudioVolumeChange",[new w.StreamManagerEvent(P.streamManager,"streamAudioVolumeChange",I)])})):this.harkVolumeChangeEnabledOnce=!0},M.prototype.disableHarkVolumeChangeEvent=function(p){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,p){if(this.harkVolumeChangeEnabled)return}else this.harkVolumeChangeEnabled=!1;this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("volume_change"):(this.speechEvent.stop(),delete this.speechEvent)}},M.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},M.prototype.getSelectedIceCandidate=function(){var p=this;return new Promise(function(P,ee){p.webRtcStats.getSelectedIceCandidateInfo().then(function(D){return P(D)}).catch(function(D){return ee(D)})})},M.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},M.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},M.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal()&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return v.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Stream '.concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") will force a reconnection")),!0;var p=this.getRTCPeerConnection().iceConnectionState;return"connected"!==p&&"completed"!==p},M.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var p=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};p.interval="number"==typeof p.interval?p.interval:100,p.threshold="number"==typeof p.threshold?p.threshold:-50,this.speechEvent=W(this.mediaStream,p)}return!0}return!1},M.prototype.setupReconnectionEventEmitter=function(p,P){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new S,!1):(console.warn("Trying to reconnect stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but an ongoing reconnection process is active. Waiting for response...")),this.reconnectionEventEmitter.once("success",function(){return p()}),this.reconnectionEventEmitter.once("error",function(ee){return P(ee)}),!0)},M.prototype.initWebRtcPeerSend=function(p){var P=this;return new Promise(function(ee,D){var I;if(p){if(P.setupReconnectionEventEmitter(ee,D))return}else P.initHarkEvents();var oe=function(U){var Y;return p&&(null===(Y=P.reconnectionEventEmitter)||void 0===Y||Y.emitEvent("error",[U]),delete P.reconnectionEventEmitter),D(U)},g={mediaConstraints:{audio:P.hasAudio,video:P.hasVideo},simulcast:null!==(I=P.outboundStreamOpts.publisherProperties.videoSimulcast)&&void 0!==I?I:P.session.openvidu.videoSimulcast,onIceCandidate:P.connection.sendIceCandidate.bind(P.connection),onIceConnectionStateException:P.onIceConnectionStateExceptionHandler.bind(P),iceServers:P.getIceServersConf(),mediaStream:P.mediaStream,mediaServer:P.session.openvidu.mediaServer,typeOfVideo:P.typeOfVideo?J.TypeOfVideo[P.typeOfVideo]:void 0};"mediasoup"!==P.session.openvidu.mediaServer&&(g.simulcast=!1),p&&P.disposeWebRtcPeer(),P.webRtcPeer=P.displayMyRemote()?new b.WebRtcPeerSendrecv(g):new b.WebRtcPeerSendonly(g),P.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+P.connection.connectionId),P.webRtcPeer.createOffer().then(function(U){P.webRtcPeer.processLocalOffer(U).then(function(){!function(U){v.debug("Sending SDP offer to publish as "+P.streamId,U);var T,Y=p?"reconnectStream":"publishVideo";if(p)T={stream:P.streamId,sdpString:U};else{var j=void 0;P.isSendVideo()&&(j="undefined"!=typeof MediaStreamTrack&&P.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?J.TypeOfVideo.CUSTOM:P.isSendScreen()?J.TypeOfVideo.SCREEN:J.TypeOfVideo.CAMERA),T={doLoopback:P.displayMyRemote()||!1,hasAudio:P.isSendAudio(),hasVideo:P.isSendVideo(),audioActive:P.audioActive,videoActive:P.videoActive,typeOfVideo:j,frameRate:P.frameRate?P.frameRate:-1,videoDimensions:JSON.stringify(P.videoDimensions),filter:P.outboundStreamOpts.publisherProperties.filter,sdpOffer:U}}P.session.openvidu.sendRequest(Y,T,function(K,me){K?oe(401===K.code?new G.OpenViduError(G.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(K)):P.webRtcPeer.processRemoteAnswer(me.sdpAnswer).then(function(){P.streamId=me.id,P.creationTime=me.createdAt,P.isLocalStreamPublished=!0,P.publishedOnce=!0,P.displayMyRemote()&&(P.localMediaStreamWhenSubscribedToRemote=P.mediaStream,P.remotePeerSuccessfullyEstablished(p)),P.ee.emitEvent(p?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),P.initWebRtcStats(),v.info("'Publisher' ("+P.streamId+") successfully "+(p?"reconnected":"published")+" to session"),function(){var U;p&&(null===(U=P.reconnectionEventEmitter)||void 0===U||U.emitEvent("success"),delete P.reconnectionEventEmitter),ee()}()}).catch(function(ae){oe(ae)})})}(U.sdp)}).catch(function(Y){oe(new Error("(publish) SDP process local offer error: "+JSON.stringify(Y)))})}).catch(function(U){oe(new Error("(publish) SDP create offer error: "+JSON.stringify(U)))})})},M.prototype.finalResolveForSubscription=function(p,P){var ee;return v.info("'Subscriber' ("+this.streamId+") successfully "+(p?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(p),this.initWebRtcStats(),p&&(null===(ee=this.reconnectionEventEmitter)||void 0===ee||ee.emitEvent("success"),delete this.reconnectionEventEmitter),P()},M.prototype.finalRejectForSubscription=function(p,P,ee){var D;return v.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(p?"reconnect":"subscribe")+": "+P.toString()),p&&(null===(D=this.reconnectionEventEmitter)||void 0===D||D.emitEvent("error",[P]),delete this.reconnectionEventEmitter),ee(P)},M.prototype.initWebRtcPeerReceive=function(p){var P=this;return new Promise(function(ee,D){p&&P.setupReconnectionEventEmitter(ee,D)||("mediasoup"===P.session.openvidu.mediaServer?P.initWebRtcPeerReceiveFromServer(p).then(function(){return P.finalResolveForSubscription(p,ee)}).catch(function(I){return P.finalRejectForSubscription(p,I,D)}):P.initWebRtcPeerReceiveFromClient(p).then(function(){return P.finalResolveForSubscription(p,ee)}).catch(function(I){return P.finalRejectForSubscription(p,I,D)}))})},M.prototype.initWebRtcPeerReceiveFromClient=function(p){var P=this;return new Promise(function(ee,D){P.completeWebRtcPeerReceive(p,!1).then(function(I){P.webRtcPeer.processRemoteAnswer(I.sdpAnswer).then(function(){return ee()}).catch(function(X){return D(X)})}).catch(function(I){return D(I)})})},M.prototype.initWebRtcPeerReceiveFromServer=function(p){var P=this;return new Promise(function(ee,D){P.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:P.streamId,reconnect:p},function(I,X){if(I)return D(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(I)));P.completeWebRtcPeerReceive(p,!1,X.sdpOffer).then(function(){return ee()}).catch(function(oe){return D(oe)})})})},M.prototype.completeWebRtcPeerReceive=function(p,P,ee){var D=this;return new Promise(function(I,X){v.debug("'Session.subscribe(Stream)' called");var oe=function(g){v.debug("Sending local SDP ".concat(ee?"answer":"offer"," to subscribe to ").concat(D.streamId),g);var U=p?"reconnectStream":"receiveVideoFrom",Y={};Y[p?"stream":"sender"]=D.streamId,ee?Y[p?"sdpString":"sdpAnswer"]=g:Y.sdpOffer=g,p&&(Y.forciblyReconnect=P),D.session.openvidu.sendRequest(U,Y,function(T,j){return T?X(new Error("Error on "+U+" : "+JSON.stringify(T))):I(j)})},se={mediaConstraints:{audio:D.hasAudio,video:D.hasVideo},simulcast:!1,onIceCandidate:D.connection.sendIceCandidate.bind(D.connection),onIceConnectionStateException:D.onIceConnectionStateExceptionHandler.bind(D),iceServers:D.getIceServersConf(),mediaServer:D.session.openvidu.mediaServer,typeOfVideo:D.typeOfVideo?J.TypeOfVideo[D.typeOfVideo]:void 0};p&&D.disposeWebRtcPeer(),D.webRtcPeer=new b.WebRtcPeerRecvonly(se),D.webRtcPeer.addIceConnectionStateChangeListener(D.streamId),ee?D.webRtcPeer.processRemoteOffer(ee).then(function(){D.webRtcPeer.createAnswer().then(function(g){D.webRtcPeer.processLocalAnswer(g).then(function(){oe(g.sdp)}).catch(function(U){return X(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(U)))})}).catch(function(g){return X(new Error("(subscribe) SDP create answer error: "+JSON.stringify(g)))})}).catch(function(g){return X(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(g)))}):D.webRtcPeer.createOffer().then(function(g){D.webRtcPeer.processLocalOffer(g).then(function(){oe(g.sdp)}).catch(function(U){return X(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(U)))})}).catch(function(g){return X(new Error("(subscribe) SDP create offer error: "+JSON.stringify(g)))})})},M.prototype.remotePeerSuccessfullyEstablished=function(p){p&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var P,ee=0,D=this.webRtcPeer.pc.getReceivers();ee<D.length;ee++)(P=D[ee]).track&&this.mediaStream.addTrack(P.track);if(v.debug("Peer remote stream",this.mediaStream),this.mediaStream){if(this.streamManager instanceof y.Subscriber){if(this.mediaStream.getAudioTracks()[0]){var I=p?this.audioActive:!!this.streamManager.properties.subscribeToAudio;this.mediaStream.getAudioTracks()[0].enabled=I}this.mediaStream.getVideoTracks()[0]&&(I=p?this.videoActive:!!this.streamManager.properties.subscribeToVideo,this.mediaStream.getVideoTracks()[0].enabled=I)}this.updateMediaStreamInVideos(),this.initHarkEvents()}},M.prototype.initHarkEvents=function(){this.mediaStream.getAudioTracks()[0]&&(this.session.anySpeechEventListenerEnabled("publisherStartSpeaking",!0,this.streamManager)&&this.enableOnceHarkSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.streamManager)&&this.enableHarkSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStopSpeaking",!0,this.streamManager)&&this.enableOnceHarkStoppedSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.streamManager)&&this.enableHarkStoppedSpeakingEvent(),this.harkVolumeChangeEnabledOnce&&this.enableOnceHarkVolumeChangeEvent(!0),this.harkVolumeChangeEnabled&&this.enableHarkVolumeChangeEvent(!0))},M.prototype.onIceConnectionStateExceptionHandler=function(p,P,ee){switch(p){case _.ExceptionEventName.ICE_CONNECTION_FAILED:this.onIceConnectionFailed();break;case _.ExceptionEventName.ICE_CONNECTION_DISCONNECTED:this.onIceConnectionDisconnected()}this.session.emitEvent("exception",[new _.ExceptionEvent(this.session,p,this,P,ee)])},M.prototype.onIceConnectionFailed=function(){v.log("[ICE_CONNECTION_FAILED] Handling ICE_CONNECTION_FAILED event. Reconnecting stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",")")),this.reconnectStreamAndLogResultingIceConnectionState(_.ExceptionEventName.ICE_CONNECTION_FAILED)},M.prototype.onIceConnectionDisconnected=function(){var p=this;v.log("[ICE_CONNECTION_DISCONNECTED] Handling ICE_CONNECTION_DISCONNECTED event. Waiting for ICE to be restored and reconnect stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") if not possible"));var P=this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3;this.awaitWebRtcPeerConnectionState(P).then(function(ee){switch(ee){case"failed":v.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(p.streamId," (").concat(p.isLocal()?"Publisher":"Subscriber",") is now failed after ICE_CONNECTION_DISCONNECTED"));break;case"connected":case"completed":v.log("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(p.streamId," (").concat(p.isLocal()?"Publisher":"Subscriber",") automatically restored after ICE_CONNECTION_DISCONNECTED. Current ICE connection state: ").concat(ee));break;case"closed":case"checking":case"new":case"disconnected":v.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(p.streamId," (").concat(p.isLocal()?"Publisher":"Subscriber",") couldn't be restored after ICE_CONNECTION_DISCONNECTED event. Current ICE connection state after ").concat(P," ms: ").concat(ee)),p.reconnectStreamAndLogResultingIceConnectionState(_.ExceptionEventName.ICE_CONNECTION_DISCONNECTED)}})},M.prototype.reconnectStreamAndLogResultingIceConnectionState=function(p){return k(this,void 0,void 0,function(){var P,ee;return $(this,function(D){switch(D.label){case 0:return D.trys.push([0,2,,3]),[4,this.reconnectStreamAndReturnIceConnectionState(p)];case 1:switch(P=D.sent()){case"connected":case"completed":v.log("[".concat(p,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") successfully reconnected after ").concat(p,". Current ICE connection state: ").concat(P));break;default:v.error("[".concat(p,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") failed to reconnect after ").concat(p,". Current ICE connection state: ").concat(P))}return[3,3];case 2:return ee=D.sent(),v.error("[".concat(p,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after ").concat(p,": ").concat(ee)),[3,3];case 3:return[2]}})})},M.prototype.reconnectStreamAndReturnIceConnectionState=function(p){return k(this,void 0,void 0,function(){var ee;return $(this,function(D){switch(D.label){case 0:v.log("[".concat(p,"] Reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after event ").concat(p)),D.label=1;case 1:return D.trys.push([1,3,,4]),[4,this.reconnectStream(p)];case 2:return D.sent(),[2,this.awaitWebRtcPeerConnectionState(this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3)];case 3:return ee=D.sent(),v.warn("[".concat(p,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber","). Reason: ").concat(ee)),[2,this.awaitWebRtcPeerConnectionState(1)];case 4:return[2]}})})},M.prototype.awaitWebRtcPeerConnectionState=function(p){return k(this,void 0,void 0,function(){var P,ee,D,I;return $(this,function(X){switch(X.label){case 0:P=this.getRTCPeerConnection().iceConnectionState,ee=150,D=Math.ceil(p/ee),I=0,X.label=1;case 1:return I<D?"connected"===(P=this.getRTCPeerConnection().iceConnectionState)||"completed"===P?[3,4]:[4,new Promise(function(oe){return setTimeout(oe,ee)})]:[3,4];case 2:X.sent(),X.label=3;case 3:return I++,[3,1];case 4:return[2,P]}})})},M.prototype.reconnectStream=function(p){return k(this,void 0,void 0,function(){var ee;return $(this,function(D){switch(D.label){case 0:return[4,this.isWebsocketConnected(p,3e3)];case 1:if(D.sent())return v.log("[".concat(p,"] Trying to reconnect stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") and the websocket is opened")),this.isLocal()?[2,this.initWebRtcPeerSend(!0)]:[2,this.initWebRtcPeerReceive(!0)];throw ee="[".concat(p,"] Trying to reconnect stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but the websocket wasn't opened"),v.error(ee),Error(ee)}})})},M.prototype.isWebsocketConnected=function(p,P){var ee=this;return new Promise(function(D,I){var X=ee.session.openvidu.getWsReadyState();if(1!==X)return console.warn("[".concat(p,"] Websocket readyState is ").concat(X)),D(!1);var oe=setTimeout(function(){return console.warn("[".concat(p,"] Websocket timeout of ").concat(P,"ms")),D(!1)},P);ee.session.openvidu.sendRequest("echo",{},function(se,g){return clearTimeout(oe),se?(console.warn("[".concat(p,"] Websocket 'echo' returned error: ").concat(se)),D(!1)):D(!0)})})},M.prototype.initWebRtcStats=function(){this.webRtcStats=new E.WebRtcStats(this),this.webRtcStats.initWebRtcStats()},M.prototype.stopWebRtcStats=function(){this.webRtcStats&&this.webRtcStats.isEnabled()&&this.webRtcStats.stopWebRtcStats()},M.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},M.prototype.gatherStatsForPeer=function(){var p=this;return new Promise(function(P,ee){p.isLocal()?p.getRTCPeerConnection().getSenders().forEach(function(D){return D.getStats().then(function(I){I.forEach(function(X){if(p.isReportWanted(X)){var oe={};oe.type=X.type,oe.timestamp=X.timestamp,oe.id=X.id,"outbound-rtp"===X.type&&(oe.ssrc=X.ssrc,oe.firCount=X.firCount,oe.pliCount=X.pliCount,oe.nackCount=X.nackCount,oe.qpSum=X.qpSum,oe.mediaType=X.kind?X.kind:X.mediaType?X.mediaType:-1!==X.id.indexOf("VideoStream")?"video":"audio","video"===oe.mediaType&&(oe.framesEncoded=X.framesEncoded),oe.packetsSent=X.packetsSent,oe.bytesSent=X.bytesSent),"candidate-pair"===X.type&&void 0!==X.totalRoundTripTime&&(oe.availableOutgoingBitrate=X.availableOutgoingBitrate,oe.rtt=X.currentRoundTripTime,oe.averageRtt=X.totalRoundTripTime/X.responsesReceived),v.log(oe)}})})}):p.getRTCPeerConnection().getReceivers().forEach(function(D){return D.getStats().then(function(I){I.forEach(function(X){if(p.isReportWanted(X)){var oe={};oe.type=X.type,oe.timestamp=X.timestamp,oe.id=X.id,"inbound-rtp"===X.type&&(oe.ssrc=X.ssrc,oe.firCount=X.firCount,oe.pliCount=X.pliCount,oe.nackCount=X.nackCount,oe.qpSum=X.qpSum,oe.mediaType=X.kind?X.kind:X.mediaType?X.mediaType:-1!==X.id.indexOf("VideoStream")?"video":"audio","video"===oe.mediaType&&(oe.framesDecoded=X.framesDecoded),oe.packetsReceived=X.packetsReceived,oe.packetsLost=X.packetsLost,oe.jitter=X.jitter,oe.bytesReceived=X.bytesReceived),"candidate-pair"===X.type&&void 0!==X.totalRoundTripTime&&(oe.availableIncomingBitrate=X.availableIncomingBitrate,oe.rtt=X.currentRoundTripTime,oe.averageRtt=X.totalRoundTripTime/X.responsesReceived),v.log(oe)}})})})})},M.prototype.isReportWanted=function(p){return"inbound-rtp"===p.type&&!this.isLocal()||"outbound-rtp"===p.type&&this.isLocal()||"candidate-pair"===p.type&&p.nominated&&p.bytesSent>0},M}();R.Stream=Z},7373:function(Ce,R,B){"use strict";var J,k=this&&this.__extends||(J=function(O,N){return(J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,W){Q.__proto__=W}||function(Q,W){for(var S in W)Object.prototype.hasOwnProperty.call(W,S)&&(Q[S]=W[S])})(O,N)},function(O,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function Q(){this.constructor=O}J(O,N),O.prototype=null===N?Object.create(N):(Q.prototype=N.prototype,new Q)});Object.defineProperty(R,"__esModule",{value:!0}),R.StreamManager=void 0;var C,$=B(2768),V=B(7818),y=B(6320),b=B(4131),E=B(7167),_=B(1829),m=B(1171),w=_.OpenViduLogger.getInstance(),G=function(J){function O(N,Q){var W=J.call(this)||this;if(W.videos=[],W.lazyLaunchVideoElementCreatedEvent=!1,C=m.PlatformUtils.getInstance(),W.stream=N,W.stream.streamManager=W,W.remote=!W.stream.isLocal(),Q){var S=void 0;"string"==typeof Q?S=document.getElementById(Q):Q instanceof HTMLElement&&(S=Q),S&&(W.firstVideoElement={targetElement:S,video:document.createElement("video"),id:"",canplayListenerAdded:!1},(C.isSafariBrowser()||C.isIPhoneOrIPad()&&(C.isChromeMobileBrowser()||C.isEdgeMobileBrowser()||C.isOperaMobileBrowser()||C.isFirefoxMobileBrowser()))&&(W.firstVideoElement.video.playsInline=!0),W.targetElement=S,W.element=S)}return W.canPlayListener=function(){W.deactivateStreamPlayingEventExceptionTimeout(),W.ee.emitEvent("streamPlaying",[new V.StreamManagerEvent(W,"streamPlaying",void 0)])},W}return k(O,J),O.prototype.on=function(N,Q){return J.prototype.onAux.call(this,N,"Event '"+N+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",Q),"videoElementCreated"===N&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new y.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"===N&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.ee.emitEvent("streamPlaying",[new V.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===N&&this.stream.enableHarkSpeakingEvent(),"publisherStopSpeaking"===N&&this.stream.enableHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===N&&this.stream.enableHarkVolumeChangeEvent(!1)),this},O.prototype.once=function(N,Q){return J.prototype.onceAux.call(this,N,"Event '"+N+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",Q),"videoElementCreated"===N&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new y.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"===N&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.ee.emitEvent("streamPlaying",[new V.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===N&&this.stream.enableOnceHarkSpeakingEvent(),"publisherStopSpeaking"===N&&this.stream.enableOnceHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===N&&this.stream.enableOnceHarkVolumeChangeEvent(!1)),this},O.prototype.off=function(N,Q){return J.prototype.offAux.call(this,N,Q),"publisherStartSpeaking"===N&&0===this.ee.getListeners(N).length+this.stream.session.ee.getListeners(N).length&&this.stream.disableHarkSpeakingEvent(!1),"publisherStopSpeaking"===N&&0===this.ee.getListeners(N).length+this.stream.session.ee.getListeners(N).length&&this.stream.disableHarkStoppedSpeakingEvent(!1),"streamAudioVolumeChange"===N&&0===this.ee.getListeners(N).length&&this.stream.disableHarkVolumeChangeEvent(!1),this},O.prototype.addVideoElement=function(N){this.initializeVideoProperties(N),!this.remote&&this.stream.displayMyRemote()&&N.srcObject!==this.stream.getMediaStream()&&(N.srcObject=this.stream.getMediaStream());for(var Q=0,W=this.videos;Q<W.length;Q++)if(W[Q].video===N)return 0;for(var v=1,F=0,Z=this.stream.session.streamManagers;F<Z.length;F++)if(Z[F].disassociateVideo(N)){v=-1;break}return this.stream.session.streamManagers.forEach(function(p){p.disassociateVideo(N)}),this.pushNewStreamManagerVideo({video:N,id:N.id,canplayListenerAdded:!1}),w.info("New video element associated to ",this),v},O.prototype.createVideoElement=function(N,Q){var W;if("string"==typeof N){if(!(W=document.getElementById(N)))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+N)}else{if(!(N instanceof HTMLElement))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+N);W=N}var S=this.createVideo();this.initializeVideoProperties(S);var v=Q||E.VideoInsertMode.APPEND;switch(v){case E.VideoInsertMode.AFTER:W.parentNode.insertBefore(S,W.nextSibling);break;case E.VideoInsertMode.APPEND:W.appendChild(S);break;case E.VideoInsertMode.BEFORE:W.parentNode.insertBefore(S,W);break;case E.VideoInsertMode.PREPEND:W.insertBefore(S,W.childNodes[0]);break;case E.VideoInsertMode.REPLACE:W.parentNode.replaceChild(S,W);break;default:v=E.VideoInsertMode.APPEND,W.appendChild(S)}var F={targetElement:W,video:S,insertMode:v,id:S.id,canplayListenerAdded:!1};return this.pushNewStreamManagerVideo(F),this.ee.emitEvent("videoElementCreated",[new y.VideoElementEvent(F.video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!!this.firstVideoElement,S},O.prototype.updatePublisherSpeakingEventsOptions=function(N){var Q=this.stream.harkOptions?this.stream.harkOptions:this.stream.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{},W="number"==typeof N.interval?N.interval:"number"==typeof Q.interval?Q.interval:100,S="number"==typeof N.threshold?N.threshold:"number"==typeof Q.threshold?Q.threshold:-50;this.stream.harkOptions={interval:W,threshold:S},this.stream.speechEvent&&(this.stream.speechEvent.setInterval(W),this.stream.speechEvent.setThreshold(S))},O.prototype.initializeVideoProperties=function(N){!this.remote&&this.stream.displayMyRemote()||N.srcObject!==this.stream.getMediaStream()&&(N.srcObject=this.stream.getMediaStream()),N.autoplay=!0,N.controls=!1,(C.isSafariBrowser()||C.isIPhoneOrIPad()&&(C.isChromeMobileBrowser()||C.isEdgeMobileBrowser()||C.isOperaMobileBrowser()||C.isFirefoxMobileBrowser()))&&(N.playsInline=!0),N.id||(N.id=(this.remote?"remote-":"local-")+"video-"+this.stream.streamId,!this.id&&!!this.targetElement&&(this.id=N.id)),this.remote&&this.isMirroredVideo(N)?this.removeMirrorVideo(N):!this.remote&&!this.stream.displayMyRemote()&&(N.muted=!0,this.isMirroredVideo(N)&&!this.stream.outboundStreamOpts.publisherProperties.mirror?this.removeMirrorVideo(N):this.stream.outboundStreamOpts.publisherProperties.mirror&&!this.stream.isSendScreen()&&this.mirrorVideo(N))},O.prototype.removeAllVideos=function(){for(var N=this,Q=this.stream.session.streamManagers.length-1;Q>=0;--Q)this.stream.session.streamManagers[Q]===this&&this.stream.session.streamManagers.splice(Q,1);this.videos.forEach(function(W){!!W.video&&!!W.video.removeEventListener&&W.video.removeEventListener("canplay",N.canPlayListener),W.canplayListenerAdded=!1,W.targetElement&&(W.video.parentNode.removeChild(W.video),N.ee.emitEvent("videoElementDestroyed",[new y.VideoElementEvent(W.video,N,"videoElementDestroyed")])),N.removeSrcObject(W),N.videos.filter(function(S){return!S.targetElement})})},O.prototype.disassociateVideo=function(N){for(var Q=!1,W=0;W<this.videos.length;W++)if(this.videos[W].video===N){this.videos[W].video.removeEventListener("canplay",this.canPlayListener),this.videos.splice(W,1),Q=!0,w.info("Video element disassociated from ",this);break}return Q},O.prototype.addPlayEventToFirstVideo=function(){this.videos[0]&&this.videos[0].video&&!this.videos[0].canplayListenerAdded&&(this.activateStreamPlayingEventExceptionTimeout(),this.videos[0].video.addEventListener("canplay",this.canPlayListener),this.videos[0].canplayListenerAdded=!0)},O.prototype.updateMediaStream=function(N){this.videos.forEach(function(Q){if(Q.video.srcObject=N,C.isIonicIos()){var S=Q.video;Q.video.parentElement.replaceChild(S,Q.video),Q.video=S}})},O.prototype.emitEvent=function(N,Q){this.ee.emitEvent(N,Q)},O.prototype.createVideo=function(){return document.createElement("video")},O.prototype.removeSrcObject=function(N){N.video.srcObject=null,this.deactivateStreamPlayingEventExceptionTimeout()},O.prototype.pushNewStreamManagerVideo=function(N){this.videos.push(N),this.addPlayEventToFirstVideo(),-1===this.stream.session.streamManagers.indexOf(this)&&this.stream.session.streamManagers.push(this)},O.prototype.mirrorVideo=function(N){C.isIonicIos()||(N.style.transform="rotateY(180deg)",N.style.webkitTransform="rotateY(180deg)")},O.prototype.removeMirrorVideo=function(N){N.style.transform="unset",N.style.webkitTransform="unset"},O.prototype.isMirroredVideo=function(N){return"rotateY(180deg)"===N.style.transform||"rotateY(180deg)"===N.style.webkitTransform},O.prototype.activateStreamPlayingEventExceptionTimeout=function(){var N=this;if(this.remote&&null==this.streamPlayingEventExceptionTimeout){var Q=this.stream.session.openvidu.advancedConfiguration.noStreamPlayingEventExceptionTimeout||4e3;this.streamPlayingEventExceptionTimeout=setTimeout(function(){var W="StreamManager of Stream "+N.stream.streamId+" ("+(N.remote?"Subscriber":"Publisher")+') did not trigger "streamPlaying" event in '+Q+" ms";w.warn(W),N.stream.session.emitEvent("exception",[new b.ExceptionEvent(N.stream.session,b.ExceptionEventName.NO_STREAM_PLAYING_EVENT,N,W)]),delete N.streamPlayingEventExceptionTimeout},Q)}},O.prototype.deactivateStreamPlayingEventExceptionTimeout=function(){clearTimeout(this.streamPlayingEventExceptionTimeout),delete this.streamPlayingEventExceptionTimeout},O}($.EventDispatcher);R.StreamManager=G},3343:function(Ce,R,B){"use strict";var E,k=this&&this.__extends||(E=function(_,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,C){w.__proto__=C}||function(w,C){for(var G in C)Object.prototype.hasOwnProperty.call(C,G)&&(w[G]=C[G])})(_,m)},function(_,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function w(){this.constructor=_}E(_,m),_.prototype=null===m?Object.create(m):(w.prototype=m.prototype,new w)});Object.defineProperty(R,"__esModule",{value:!0}),R.Subscriber=void 0;var $=B(7373),y=B(1829).OpenViduLogger.getInstance(),b=function(E){function _(m,w,C){var G=E.call(this,m,w)||this;return G.element=G.targetElement,G.stream=m,G.properties=C,G}return k(_,E),_.prototype.subscribeToAudio=function(m){return this.stream.getMediaStream().getAudioTracks().forEach(function(w){w.enabled=m}),this.stream.audioActive=m,y.info("'Subscriber' has "+(m?"subscribed to":"unsubscribed from")+" its audio stream"),this},_.prototype.subscribeToVideo=function(m){return this.stream.getMediaStream().getVideoTracks().forEach(function(w){w.enabled=m}),this.stream.videoActive=m,y.info("'Subscriber' has "+(m?"subscribed to":"unsubscribed from")+" its video stream"),this},_.prototype.replaceTrackInMediaStream=function(m,w){var G,C=this.stream.getMediaStream();"video"===m.kind?(G=C.getVideoTracks()[0],w&&(this.stream.lastVideoTrackConstraints=m.getConstraints())):G=C.getAudioTracks()[0],C.removeTrack(G),G.stop(),C.addTrack(m)},_}($.StreamManager);R.Subscriber=b},1216:(Ce,R)=>{"use strict";var k;Object.defineProperty(R,"__esModule",{value:!0}),R.LocalRecorderState=void 0,(k=R.LocalRecorderState||(R.LocalRecorderState={})).READY="READY",k.RECORDING="RECORDING",k.PAUSED="PAUSED",k.FINISHED="FINISHED"},9303:(Ce,R)=>{"use strict";var $;Object.defineProperty(R,"__esModule",{value:!0}),R.OpenViduError=R.OpenViduErrorName=void 0,($=R.OpenViduErrorName||(R.OpenViduErrorName={})).BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",$.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",$.DEVICE_ALREADY_IN_USE="DEVICE_ALREADY_IN_USE",$.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",$.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",$.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",$.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",$.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",$.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",$.INPUT_AUDIO_DEVICE_GENERIC_ERROR="INPUT_AUDIO_DEVICE_GENERIC_ERROR",$.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",$.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",$.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",$.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",$.VIRTUAL_BACKGROUND_ERROR="VIRTUAL_BACKGROUND_ERROR",$.GENERIC_ERROR="GENERIC_ERROR",R.OpenViduError=function $(V,y){this.name=V,this.message=y}},7879:(Ce,R)=>{"use strict";var k;Object.defineProperty(R,"__esModule",{value:!0}),R.TypeOfVideo=void 0,(k=R.TypeOfVideo||(R.TypeOfVideo={})).CAMERA="CAMERA",k.SCREEN="SCREEN",k.CUSTOM="CUSTOM",k.IPCAM="IPCAM"},7167:(Ce,R)=>{"use strict";var k;Object.defineProperty(R,"__esModule",{value:!0}),R.VideoInsertMode=void 0,(k=R.VideoInsertMode||(R.VideoInsertMode={})).AFTER="AFTER",k.APPEND="APPEND",k.BEFORE="BEFORE",k.PREPEND="PREPEND",k.REPLACE="REPLACE"},1698:function(Ce,R,B){"use strict";var y,k=this&&this.__extends||(y=function(b,E){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(_[w]=m[w])})(b,E)},function(b,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=b}y(b,E),b.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(R,"__esModule",{value:!0}),R.ConnectionEvent=void 0;var V=function(y){function b(E,_,m,w,C){var G=y.call(this,E,_,m)||this;return G.connection=w,G.reason=C,G}return k(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(616).Event);R.ConnectionEvent=V},9005:function(Ce,R,B){"use strict";var y,k=this&&this.__extends||(y=function(b,E){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(_[w]=m[w])})(b,E)},function(b,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=b}y(b,E),b.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(R,"__esModule",{value:!0}),R.ConnectionPropertyChangedEvent=void 0;var V=function(y){function b(E,_,m,w,C){var G=y.call(this,!1,E,"connectionPropertyChanged")||this;return G.connection=_,G.changedProperty=m,G.newValue=w,G.oldValue=C,G}return k(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(616).Event);R.ConnectionPropertyChangedEvent=V},616:(Ce,R)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.Event=void 0;var B=function(){function k($,V,y){this.hasBeenPrevented=!1,this.cancelable=$,this.target=V,this.type=y}return k.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},k.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},k}();R.Event=B},4131:function(Ce,R,B){"use strict";var b,k=this&&this.__extends||(b=function(E,_){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var C in w)Object.prototype.hasOwnProperty.call(w,C)&&(m[C]=w[C])})(E,_)},function(E,_){if("function"!=typeof _&&null!==_)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function m(){this.constructor=E}b(E,_),E.prototype=null===_?Object.create(_):(m.prototype=_.prototype,new m)});Object.defineProperty(R,"__esModule",{value:!0}),R.ExceptionEvent=R.ExceptionEventName=void 0;var $=B(616);!function(b){b.ICE_CANDIDATE_ERROR="ICE_CANDIDATE_ERROR",b.ICE_CONNECTION_FAILED="ICE_CONNECTION_FAILED",b.ICE_CONNECTION_DISCONNECTED="ICE_CONNECTION_DISCONNECTED",b.NO_STREAM_PLAYING_EVENT="NO_STREAM_PLAYING_EVENT",b.SPEECH_TO_TEXT_DISCONNECTED="SPEECH_TO_TEXT_DISCONNECTED"}(R.ExceptionEventName||(R.ExceptionEventName={}));var y=function(b){function E(_,m,w,C,G){var J=b.call(this,!1,_,"exception")||this;return J.name=m,J.origin=w,J.message=C,J.data=G,J}return k(E,b),E.prototype.callDefaultBehavior=function(){},E}($.Event);R.ExceptionEvent=y},5132:function(Ce,R,B){"use strict";var y,k=this&&this.__extends||(y=function(b,E){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(_[w]=m[w])})(b,E)},function(b,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=b}y(b,E),b.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(R,"__esModule",{value:!0}),R.FilterEvent=void 0;var V=function(y){function b(E,_,m){var w=y.call(this,!1,E,_)||this;return w.data=m,w}return k(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(616).Event);R.FilterEvent=V},9900:function(Ce,R,B){"use strict";var y,k=this&&this.__extends||(y=function(b,E){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(_[w]=m[w])})(b,E)},function(b,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=b}y(b,E),b.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(R,"__esModule",{value:!0}),R.NetworkQualityLevelChangedEvent=void 0;var V=function(y){function b(E,_,m,w){var C=y.call(this,!1,E,"networkQualityLevelChanged")||this;return C.newValue=_,C.oldValue=m,C.connection=w,C}return k(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(616).Event);R.NetworkQualityLevelChangedEvent=V},8887:function(Ce,R,B){"use strict";var y,k=this&&this.__extends||(y=function(b,E){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(_[w]=m[w])})(b,E)},function(b,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=b}y(b,E),b.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(R,"__esModule",{value:!0}),R.PublisherSpeakingEvent=void 0;var V=function(y){function b(E,_,m,w){var C=y.call(this,!1,E,_)||this;return C.type=_,C.connection=m,C.streamId=w,C}return k(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(616).Event);R.PublisherSpeakingEvent=V},5449:function(Ce,R,B){"use strict";var y,k=this&&this.__extends||(y=function(b,E){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(_[w]=m[w])})(b,E)},function(b,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=b}y(b,E),b.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(R,"__esModule",{value:!0}),R.RecordingEvent=void 0;var V=function(y){function b(E,_,m,w,C){var G=y.call(this,!1,E,_)||this;return G.id=m,w!==m&&(G.name=w),G.reason=C,G}return k(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(616).Event);R.RecordingEvent=V},1690:function(Ce,R,B){"use strict";var E,k=this&&this.__extends||(E=function(_,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,C){w.__proto__=C}||function(w,C){for(var G in C)Object.prototype.hasOwnProperty.call(C,G)&&(w[G]=C[G])})(_,m)},function(_,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function w(){this.constructor=_}E(_,m),_.prototype=null===m?Object.create(m):(w.prototype=m.prototype,new w)});Object.defineProperty(R,"__esModule",{value:!0}),R.SessionDisconnectedEvent=void 0;var $=B(616),y=B(1829).OpenViduLogger.getInstance(),b=function(E){function _(m,w){var C=E.call(this,!0,m,"sessionDisconnected")||this;return C.reason=w,C}return k(_,E),_.prototype.callDefaultBehavior=function(){y.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var m=this.target;m.remoteConnections.forEach(function(w){var C,G,J,O,N,Q,W,S,v=w.connectionId;if(null!==(C=m.remoteConnections.get(v))&&void 0!==C&&C.stream){null===(G=m.remoteConnections.get(v))||void 0===G||G.stream.disposeWebRtcPeer(),null===(J=m.remoteConnections.get(v))||void 0===J||J.stream.disposeMediaStream(),null!==(O=m.remoteConnections.get(v))&&void 0!==O&&O.stream.streamManager&&(null===(N=m.remoteConnections.get(v))||void 0===N||N.stream.streamManager.removeAllVideos());var F=null===(W=null===(Q=m.remoteConnections.get(v))||void 0===Q?void 0:Q.stream)||void 0===W?void 0:W.streamId;F&&m.remoteStreamsCreated.delete(F),null===(S=m.remoteConnections.get(v))||void 0===S||S.dispose()}m.remoteConnections.delete(v)})},_}($.Event);R.SessionDisconnectedEvent=b},1659:function(Ce,R,B){"use strict";var y,k=this&&this.__extends||(y=function(b,E){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(_[w]=m[w])})(b,E)},function(b,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=b}y(b,E),b.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(R,"__esModule",{value:!0}),R.SignalEvent=void 0;var V=function(y){function b(E,_,m,w){var C=y.call(this,!1,E,"signal")||this;return _&&(C.type="signal:"+_),C.data=m,C.from=w,C}return k(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(616).Event);R.SignalEvent=V},482:function(Ce,R,B){"use strict";var y,k=this&&this.__extends||(y=function(b,E){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(_[w]=m[w])})(b,E)},function(b,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=b}y(b,E),b.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(R,"__esModule",{value:!0}),R.SpeechToTextEvent=void 0;var V=function(y){function b(E,_,m,w,C,G){var J=y.call(this,!1,E,"speechToTextMessage")||this;return J.connection=_,J.text=m,J.reason=w,J.raw=C,J.lang=G,J}return k(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(616).Event);R.SpeechToTextEvent=V},3980:function(Ce,R,B){"use strict";var m,k=this&&this.__extends||(m=function(w,C){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,J){G.__proto__=J}||function(G,J){for(var O in J)Object.prototype.hasOwnProperty.call(J,O)&&(G[O]=J[O])})(w,C)},function(w,C){if("function"!=typeof C&&null!==C)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function G(){this.constructor=w}m(w,C),w.prototype=null===C?Object.create(C):(G.prototype=C.prototype,new G)});Object.defineProperty(R,"__esModule",{value:!0}),R.StreamEvent=void 0;var $=B(616),V=B(4302),y=B(5607),E=B(1829).OpenViduLogger.getInstance(),_=function(m){function w(C,G,J,O,N){var Q=m.call(this,C,G,J)||this;return Q.stream=O,Q.reason=N,Q}return k(w,m),w.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof y.Session)E.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof V.Publisher){E.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var C=this.target.openvidu.publishers,G=0;G<C.length;G++)if(C[G]===this.target){C.splice(G,1);break}}this.stream.disposeMediaStream(),this.stream.streamManager&&this.stream.streamManager.removeAllVideos(),this.stream.session.remoteStreamsCreated.delete(this.stream.streamId);var J=this.stream.session.remoteConnections.get(this.stream.connection.connectionId);if(J&&J.remoteOptions){var O=J.remoteOptions.streams;for(G=O.length-1;G>=0;--G)O[G].id===this.stream.streamId&&O.splice(G,1)}}},w}($.Event);R.StreamEvent=_},7818:function(Ce,R,B){"use strict";var y,k=this&&this.__extends||(y=function(b,E){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(_[w]=m[w])})(b,E)},function(b,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=b}y(b,E),b.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(R,"__esModule",{value:!0}),R.StreamManagerEvent=void 0;var V=function(y){function b(E,_,m){var w=y.call(this,!1,E,_)||this;return w.value=m,w}return k(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(616).Event);R.StreamManagerEvent=V},9383:function(Ce,R,B){"use strict";var y,k=this&&this.__extends||(y=function(b,E){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(_[w]=m[w])})(b,E)},function(b,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=b}y(b,E),b.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(R,"__esModule",{value:!0}),R.StreamPropertyChangedEvent=void 0;var V=function(y){function b(E,_,m,w,C,G){var J=y.call(this,!1,E,"streamPropertyChanged")||this;return J.stream=_,J.changedProperty=m,J.newValue=w,J.oldValue=C,J.reason=G,J}return k(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(616).Event);R.StreamPropertyChangedEvent=V},7848:(Ce,R)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0})},6320:function(Ce,R,B){"use strict";var y,k=this&&this.__extends||(y=function(b,E){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,m){_.__proto__=m}||function(_,m){for(var w in m)Object.prototype.hasOwnProperty.call(m,w)&&(_[w]=m[w])})(b,E)},function(b,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function _(){this.constructor=b}y(b,E),b.prototype=null===E?Object.create(E):(_.prototype=E.prototype,new _)});Object.defineProperty(R,"__esModule",{value:!0}),R.VideoElementEvent=void 0;var V=function(y){function b(E,_,m){var w=y.call(this,!1,_,m)||this;return w.element=E,w}return k(b,y),b.prototype.callDefaultBehavior=function(){},b}(B(616).Event);R.VideoElementEvent=V},8229:Ce=>{function R(){var B={};this.forEach=function(k){for(var $ in B){var V=B[$];for(var y in V)k(V[y])}},this.get=function(k,$){var V=B[$];if(null!=V)return V[k]},this.remove=function(k,$){var V=B[$];if(null!=V){for(var y in delete V[k],V)return!1;delete B[$]}},this.set=function(k,$,V){if(null==k)return this.remove($,V);var y=B[V];null==y&&(B[V]=y={}),y[$]=k}}R.prototype.pop=function(B,k){var $=this.get(B,k);if(null!=$)return this.remove(B,k),$},Ce.exports=R},1780:(Ce,R,B)=>{var k=B(2245);R.JsonRpcClient=k},2245:(Ce,R,B)=>{var k=B(4940),$=B(6738),V=B(1829).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var b="RECONNECTING",E="CONNECTED",_="DISCONNECTED",m=V.getInstance();Ce.exports=function w(C){var S,G=this,J=C.ws,O=-1,N=0,Q=!0,W=!1,v=_,F=J.onreconnecting,Z=J.onreconnected,M=J.onconnected,p=J.onerror;C.rpc.pull=function(g,U){U.reply(null,"push")},J.onreconnecting=function(){m.debug("--------- ONRECONNECTING -----------"),v!==b?(se(),v=b,F&&F()):m.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},J.onreconnected=function(){m.debug("--------- ONRECONNECTED -----------"),v!==E?(v=E,I(),Z&&Z()):m.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},J.onconnected=function(){m.debug("--------- ONCONNECTED -----------"),v!==E?(v=E,Q=!0,oe(),M&&M()):m.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},J.onerror=function(g){m.debug("--------- ONERROR -----------"),v=_,se(),p&&p(g)};var P=new $(J);m.debug("Connecting websocket to URI: "+J.uri);var D=new k(k.packers.JsonRPC,{request_timeout:C.rpc.requestTimeout,ping_request_timeout:C.rpc.heartbeatRequestTimeout},P,function(g){m.debug("Received request: "+JSON.stringify(g));try{var U=C.rpc[g.method];void 0===U?m.error("Method "+g.method+" not registered in client"):U(g.params,g)}catch(Y){m.error("Exception processing request: "+JSON.stringify(g)),m.error(Y)}});function I(){m.debug("notReconnectIfNumLessThan = "+N+" (old="+O+")"),O=N}function X(){if(Q){var g=null;(0==N||N==O)&&(g={interval:C.heartbeat||5e3}),N++,G.send("ping",g,(U=N,function(Y,T){Y&&(m.debug("Error in ping request #"+U+" ("+Y.message+")"),U>O&&(Q=!1,I(),m.debug("Server did not respond to ping message #"+U+". Reconnecting... "),P.reconnectWs()))}))}else m.debug("Trying to send ping, but ping is not enabled");var U}function oe(){W||(m.debug("Starting ping (if configured)"),W=!0,null!=C.heartbeat&&(S=setInterval(X,C.heartbeat),X()))}function se(){clearInterval(S),W=!1,Q=!1,N=-1,D.cancel()}this.send=function(g,U,Y){var T=Date.now();D.encode(g,U,function(j,K){if(j){try{m.error("ERROR:"+j.message+" in Request: method:"+g+" params:"+JSON.stringify(U)+" request:"+j.request),j.data&&m.error("ERROR DATA:"+JSON.stringify(j.data))}catch(me){}j.requestTime=T}Y&&(null!=K&&"pong"!==K.value&&m.debug("Response: "+JSON.stringify(K)),Y(j,K))})},this.close=function(g,U){m.debug("Closing with code: "+g+" because: "+U),null!=S&&(m.debug("Clearing ping interval"),clearInterval(S)),W=!1,Q=!1,P.close(g,U)},this.reconnect=function(){P.reconnectWs()},this.resetPing=function(){Q=!0,N=0,oe()},this.getReadyState=function(){return P.getReadyState()}}},7526:(Ce,R,B)=>{var k=B(6738);R.WebSocketWithReconnection=k},6738:(Ce,R,B)=>{"use strict";var $=B(1829).OpenViduLogger.getInstance();Ce.exports=function w(C){var J,G=!1,O=C.uri,N=!1,Q=new WebSocket(O);Q.onopen=function(){$.debug("WebSocket connected to "+O),C.onconnected&&C.onconnected()},Q.onerror=function(Z){$.error("Could not connect to "+O+" (invoking onerror if defined)",Z),C.onerror&&C.onerror(Z)};var W=function(){3===Q.readyState?G?$.debug("Connection closed by user"):C.ismasternodecrashed()?$.error("Master Node has crashed. Stopping reconnection process"):($.debug("Connection closed unexpectedly. Reconnecting..."),S(2e3,1)):$.debug("Close callback from previous websocket. Ignoring it")};function S(Z,M){if($.debug("reconnect (attempt #"+M+", max="+Z+")"),1===M){if(N)return void $.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");N=!0,C.onreconnecting&&C.onreconnecting()}!function F(Z,M){$.debug("Reconnection attempt #"+M),Q.close(4104,"Connection closed for reconnection"),O=function v(Z){var M=new URLSearchParams(new URL(Z).search);return M.has("reconnect")||(Z=Array.from(M).length>0?Z+"&reconnect=true":Z+"?reconnect=true"),Z}(O),(Q=new WebSocket(O)).onopen=function(){$.debug("Reconnected to "+O+" after "+M+" attempts..."),N=!1,J(),C.onreconnected()&&C.onreconnected(),Q.onclose=W},Q.onerror=function(p){$.warn("Reconnection error: ",p),M===Z?C.ondisconnect&&C.ondisconnect():setTimeout(function(){S(Z,M+1)},3e3)}}(Z,M)}Q.onclose=W,this.close=function(Z,M){G=!0,Q.close(Z,M)},this.reconnectWs=function(){$.debug("reconnectWs"),S(2e3,1)},this.send=function(Z){Q.send(Z)},this.addEventListener=function(Z,M){(J=function(){Q.addEventListener(Z,M)})()},this.getReadyState=function(){return Q.readyState}}},4940:(Ce,R,B)=>{var k=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(O){k=!0}Function.prototype.bind||(Function.prototype.bind=function(O){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var N=Array.prototype.slice.call(arguments,1),Q=this,W=function(){},S=function(){return Q.apply(this instanceof W&&O?this:O,N.concat(Array.prototype.slice.call(arguments)))};return W.prototype=this.prototype,S.prototype=new W,S});var $=B(7945).EventEmitter,V=B(9543),y=B(2907),b=B(8229),E=5e3;function m(O){if(O){if(O instanceof Function)return{send:O};if(O.send instanceof Function)return O;if(O.postMessage instanceof Function)return O.send=O.postMessage,O;if(O.write instanceof Function)return O.send=O.write,O;if(void 0===O.onmessage&&!(O.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function w(O,N){k?(this.method=O,this.params=N):(Object.defineProperty(this,"method",{value:O,enumerable:!0}),Object.defineProperty(this,"params",{value:N,enumerable:!0}))}function C(O,N,Q,W){var S=this;if(!O)throw new SyntaxError("Packer is not defined");if(!O.pack||!O.unpack)throw new SyntaxError("Packer is invalid");var v=function _(O){if(!O)return{};for(var N in O){var Q=O[N];"string"==typeof Q&&(O[N]={response:Q})}return O}(O.responseMethods);if(N instanceof Function){if(null!=Q)throw new SyntaxError("There can't be parameters after onRequest");W=N,Q=void 0,N=void 0}if(N&&N.send instanceof Function){if(Q&&!(Q instanceof Function))throw new SyntaxError("Only a function can be after transport");W=Q,Q=N,N=void 0}if(Q instanceof Function){if(null!=W)throw new SyntaxError("There can't be parameters after onRequest");W=Q,Q=void 0}if(Q&&Q.send instanceof Function&&W&&!(W instanceof Function))throw new SyntaxError("Only a function can be after transport");N=N||{},$.call(this),W&&this.on("request",W),k?this.peerID=N.peerID:Object.defineProperty(this,"peerID",{value:N.peerID});var F=N.max_retries||0;function Z(j){S.decode(j.data||j)}this.getTransport=function(){return Q},this.setTransport=function(j){Q&&(Q.removeEventListener?Q.removeEventListener("message",Z):Q.removeListener&&Q.removeListener("data",Z)),j&&(j.addEventListener?j.addEventListener("message",Z):j.addListener&&j.addListener("data",Z)),Q=m(j)},k||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(Q);var M=N.request_timeout||E,p=N.ping_request_timeout||M,P=N.response_timeout||E,ee=N.duplicates_timeout||E,D=0,I=new b,X=new b,oe=new b,se={};function U(j,K){var me=setTimeout(function(){oe.remove(j,K)},ee);oe.set(me,j,K)}function Y(j,K,me,ae,le){w.call(this,j,K),this.getTransport=function(){return le},this.setTransport=function(Le){le=m(Le)},k||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var Se=X.get(me,ae);le||S.getTransport()||(k?this.duplicated=Boolean(Se):Object.defineProperty(this,"duplicated",{value:Boolean(Se)}));var $e=v[j];this.pack=O.pack.bind(O,this,me),this.reply=function(Le,ze,ct){if(Le instanceof Function||Le&&Le.send instanceof Function){if(null!=ze)throw new SyntaxError("There can't be parameters after callback");ct=Le,ze=null,Le=void 0}else if(ze instanceof Function||ze&&ze.send instanceof Function){if(null!=ct)throw new SyntaxError("There can't be parameters after callback");ct=ze,ze=null}var Ue;return ct=m(ct),Se&&clearTimeout(Se.timeout),null!=ae&&(Le&&(Le.dest=ae),ze&&(ze.dest=ae)),Le||null!=ze?(null!=S.peerID&&(Le?Le.from=S.peerID:ze.from=S.peerID),Ue=O.pack(Ue=$e?null==$e.error&&Le?{error:Le}:{method:Le?$e.error:$e.response,params:Le||ze}:{error:Le,result:ze},me)):Ue=Se?Se.message:O.pack({result:null},me),function g(j,K,me){var ae={message:j,timeout:setTimeout(function(){X.remove(K,me)},P)};X.set(ae,K,me)}(Ue,me,ae),(ct=ct||this.getTransport()||S.getTransport())?ct.send(Ue):Ue}}function T(j){var K=se[j];if(K){delete se[j];var me=I.pop(K.id,K.dest);!me||(clearTimeout(me.timeout),U(K.id,K.dest))}}V(Y,w),this.cancel=function(j){if(j)return T(j);for(var j in se)T(j)},this.close=function(){var j=this.getTransport();j&&j.close&&j.close(4003,"Cancel request"),this.cancel(),oe.forEach(clearTimeout),X.forEach(function(K){clearTimeout(K.timeout)})},this.encode=function(j,K,me,ae,le){if(K instanceof Function){if(null!=me)throw new SyntaxError("There can't be parameters after callback");le=K,ae=void 0,me=void 0,K=void 0}else if(me instanceof Function){if(null!=ae)throw new SyntaxError("There can't be parameters after callback");le=me,ae=void 0,me=void 0}else if(ae instanceof Function){if(null!=le)throw new SyntaxError("There can't be parameters after callback");le=ae,ae=void 0}null!=S.peerID&&((K=K||{}).from=S.peerID),null!=me&&((K=K||{}).dest=me);var Se={method:j,params:K};if(le){let cn=function(Re,je){S.cancel(Se),le(Re,je)},Hn=function(Re){return ze.timeout=setTimeout(Qn,("ping"===j?p:M)*Math.pow(2,Le++)),se[Se]={id:$e,dest:me},I.set(ze,$e,me),(Re=Re||ct||S.getTransport())?Re.send(Se):Se},Ye=function(Re){Re=m(Re),console.warn(Le+" retry for request message:",Se);var je=oe.pop($e,me);return clearTimeout(je),Hn(Re)},Qn=function(){if(Le<F)return Ye(ae);var Re=new Error("Request has timed out");Re.request=Se,Re.retry=Ye,cn(Re)};var $e=D++,Le=0,ze={message:Se=O.pack(Se,$e),callback:cn,responseMethods:v[j]||{}},ct=m(ae);return Hn(ae)}return Se=O.pack(Se),(ae=ae||this.getTransport())?ae.send(Se):Se},this.decode=function(j,K){if(!j)throw new TypeError("Message is not defined");try{j=O.unpack(j)}catch(Qn){return console.debug(Qn,j)}var me=j.id,ae=j.ack,le=j.method,Se=j.params||{},$e=Se.from,Le=Se.dest;if(null==S.peerID||$e!=S.peerID){if(null==me&&null==ae){var ze=new w(le,Se);return S.emit("request",ze)?void 0:ze}if(le){if(null==Le||Le==S.peerID){if(Ye=I.get(ae,$e)){var $t=Ye.responseMethods;return le==$t.error?Ue(Ye,Se):le==$t.response?Ue(Ye,null,Se):ct()}if(qe=oe.get(ae,$e))return ue(qe)}return ct()}var cn=j.error,Hn=j.result;if(!(cn&&cn.dest&&cn.dest!=S.peerID||Hn&&Hn.dest&&Hn.dest!=S.peerID)){var Ye,qe;if(!(Ye=I.get(ae,$e)))return(qe=oe.get(ae,$e))?ue(qe):console.warn("No callback was defined for this message",j);Ue(Ye,cn,Hn)}}function ct(){if(K=m(K)||S.getTransport()){var Qn=X.get(me,$e);if(Qn)return K.send(Qn.message)}var je=new Y(le,Se,null!=me?me:ae,$e,K);if(!S.emit("request",je))return je}function Ue(Qn,Re,je){Qn.callback(Re,je)}function ue(Qn){console.warn("Response already processed",j),clearTimeout(Qn),U(ae,$e)}}}V(C,$),C.RpcNotification=w,Ce.exports=C;var G=B(1780),J=B(7526);(C.clients=G).transports=J,C.packers=y},3815:(Ce,R)=>{R.pack=function B($,V){var y={jsonrpc:"2.0"};if($.method)y.method=$.method,$.params&&(y.params=$.params),null!=V&&(y.id=V);else if(null!=V){if($.error){if(void 0!==$.result)throw new TypeError("Both result and error are defined");y.error=$.error}else{if(void 0===$.result)throw new TypeError("No result or error is defined");y.result=$.result}y.id=V}return JSON.stringify(y)},R.unpack=function k($){var V=$;("string"==typeof $||$ instanceof String)&&(V=JSON.parse($));var y=V.jsonrpc;if("2.0"!==y)throw new TypeError("Invalid JsonRPC version '"+y+"': "+$);if(null==V.method){if(null==V.id)throw new TypeError("Invalid message: "+$);var b=void 0!==V.result,E=void 0!==V.error;if(b&&E)throw new TypeError("Both result and error are defined: "+$);if(!b&&!E)throw new TypeError("No result or error is defined: "+$);V.ack=V.id,delete V.id}return V}},3303:(Ce,R)=>{R.pack=function B($){throw new TypeError("Not yet implemented")},R.unpack=function k($){throw new TypeError("Not yet implemented")}},2907:(Ce,R,B)=>{var k=B(3815),$=B(3303);R.JsonRPC=k,R.XmlRPC=$},0:(Ce,R)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.ConsoleLogger=void 0,R.ConsoleLogger=function k($){this.logger=$,this.log=$.log,this.info=$.info,this.debug=$.debug,this.warn=$.warn,this.error=$.error}},1829:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.OpenViduLogger=void 0;var k=B(5163),$=B(0),V=B(1438),y=function(){function b(){this.JSNLOG_URL="/openvidu/elk/openvidu-browser-logs",this.MAX_JSNLOG_BATCH_LOG_MESSAGES=100,this.MAX_MSECONDS_BATCH_MESSAGES=5e3,this.MAX_LENGTH_STRING_JSON=1e3,this.defaultConsoleLogger=new $.ConsoleLogger(globalThis.console),this.isProdMode=!1,this.isJSNLogSetup=!1}return b.configureJSNLog=function(E,_){var m=this;try{if(globalThis.LOG_JSNLOG_RESULTS||this.instance&&E.isAtLeastPro&&this.instance.isOpenViduBrowserLogsDebugActive(E)&&this.instance.canConfigureJSNLog(E,this.instance)){E.sendBrowserLogs===V.OpenViduLoggerConfiguration.debug_app&&this.instance.replaceWindowConsole(),this.instance.isJSNLogSetup=!1,this.instance.info("Configuring JSNLogs.");var w=E.finalUserId,C=E.session.sessionId;this.instance.currentAppender=k.JL.createAjaxAppender("appender-".concat(w,"-").concat(C)),this.instance.currentAppender.setOptions({beforeSend:function(O){var N=O.onreadystatechange;O.onreadystatechange=function(){m.isInvalidResponse(O)&&(Object.defineProperty(O,"readyState",{value:4}),Object.defineProperty(O,"status",{value:200}),m.instance.disableLogger()),N()},O.setRequestHeader("Authorization","Basic "+btoa("".concat(w,"%/%").concat(C)+":"+_)),O.setRequestHeader("X-Requested-With","XMLHttpRequest"),O.setRequestHeader("OV-Final-User-Id",w),O.setRequestHeader("OV-Session-Id",C),O.setRequestHeader("OV-Token",_)},maxBatchSize:1e3,batchSize:this.instance.MAX_JSNLOG_BATCH_LOG_MESSAGES,batchTimeout:this.instance.MAX_MSECONDS_BATCH_MESSAGES}),k.JL.setOptions({defaultAjaxUrl:E.httpUri+this.instance.JSNLOG_URL,serialize:function(O){var W,Q=JSON.stringify(O,(W=new WeakSet,function(S,v){if("object"==typeof v&&null!=v){if(W.has(v)||globalThis.HTMLElement&&v instanceof HTMLElement)return;W.add(v)}return v}));return Q.length>m.instance.MAX_LENGTH_STRING_JSON&&(Q="".concat(Q.substring(0,m.instance.MAX_LENGTH_STRING_JSON),"...")),globalThis.LOG_JSNLOG_RESULTS&&console.log(Q),Q},enabled:!0}),(0,k.JL)().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=C,this.instance.info("JSNLog configured.")}}catch(O){console.error("Error configuring JSNLog: "),console.error(O),this.instance.disableLogger()}},b.getInstance=function(){return b.instance||(b.instance=new b),b.instance},b.isInvalidResponse=function(E){return 401==E.status||403==E.status||404==E.status||0==E.status},b.prototype.canConfigureJSNLog=function(E,_){return E.session.sessionId!=_.loggingSessionId},b.prototype.isOpenViduBrowserLogsDebugActive=function(E){return E.sendBrowserLogs===V.OpenViduLoggerConfiguration.debug||E.sendBrowserLogs===V.OpenViduLoggerConfiguration.debug_app},b.prototype.getConsoleWithJSNLog=function(){return E=this,{log:function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];E.defaultConsoleLogger.log.apply(E.defaultConsoleLogger.logger,arguments),E.isJSNLogSetup&&(0,k.JL)().info(arguments)},info:function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];E.defaultConsoleLogger.info.apply(E.defaultConsoleLogger.logger,arguments),E.isJSNLogSetup&&(0,k.JL)().info(arguments)},debug:function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];E.defaultConsoleLogger.debug.apply(E.defaultConsoleLogger.logger,arguments)},warn:function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];E.defaultConsoleLogger.warn.apply(E.defaultConsoleLogger.logger,arguments),E.isJSNLogSetup&&(0,k.JL)().warn(arguments)},error:function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];E.defaultConsoleLogger.error.apply(E.defaultConsoleLogger.logger,arguments),E.isJSNLogSetup&&(0,k.JL)().error(arguments)}};var E},b.prototype.replaceWindowConsole=function(){globalThis.console=this.defaultConsoleLogger.logger,globalThis.console.log=this.getConsoleWithJSNLog().log,globalThis.console.info=this.getConsoleWithJSNLog().info,globalThis.console.debug=this.getConsoleWithJSNLog().debug,globalThis.console.warn=this.getConsoleWithJSNLog().warn,globalThis.console.error=this.getConsoleWithJSNLog().error},b.prototype.disableLogger=function(){k.JL.setOptions({enabled:!1}),this.isJSNLogSetup=!1,this.loggingSessionId=void 0,this.currentAppender=void 0,globalThis.console=this.defaultConsoleLogger.logger,globalThis.console.log=this.defaultConsoleLogger.log,globalThis.console.info=this.defaultConsoleLogger.info,globalThis.console.debug=this.defaultConsoleLogger.debug,globalThis.console.warn=this.defaultConsoleLogger.warn,globalThis.console.error=this.defaultConsoleLogger.error},b.prototype.log=function(){for(var E=[],_=0;_<arguments.length;_++)E[_]=arguments[_];this.isProdMode||this.defaultConsoleLogger.log.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,k.JL)().info(arguments)},b.prototype.debug=function(){for(var E=[],_=0;_<arguments.length;_++)E[_]=arguments[_];this.isProdMode||this.defaultConsoleLogger.debug.apply(this.defaultConsoleLogger.logger,arguments)},b.prototype.info=function(){for(var E=[],_=0;_<arguments.length;_++)E[_]=arguments[_];this.isProdMode||this.defaultConsoleLogger.info.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,k.JL)().info(arguments)},b.prototype.warn=function(){for(var E=[],_=0;_<arguments.length;_++)E[_]=arguments[_];this.defaultConsoleLogger.warn.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,k.JL)().warn(arguments)},b.prototype.error=function(){for(var E=[],_=0;_<arguments.length;_++)E[_]=arguments[_];this.defaultConsoleLogger.error.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,k.JL)().error(arguments)},b.prototype.flush=function(){this.isJSNLogSetup&&null!=this.currentAppender&&this.currentAppender.sendBatch()},b.prototype.enableProdMode=function(){this.isProdMode=!0},b}();R.OpenViduLogger=y},1438:(Ce,R)=>{"use strict";var k;Object.defineProperty(R,"__esModule",{value:!0}),R.OpenViduLoggerConfiguration=void 0,(k=R.OpenViduLoggerConfiguration||(R.OpenViduLoggerConfiguration={})).disabled="disabled",k.debug="debug",k.debug_app="debug_app"},467:(Ce,R)=>{function B(b,E,_){var m={audio:!1,video:{mandatory:{chromeMediaSource:b?"screen":"desktop",maxWidth:globalThis.screen.width>1920?globalThis.screen.width:1920,maxHeight:globalThis.screen.height>1080?globalThis.screen.height:1080},optional:[]}};return _&&(m.audio={mandatory:{chromeMediaSource:b?"screen":"desktop"},optional:[]}),E&&(m.video.mandatory.chromeMediaSourceId=E,m.audio&&m.audio.mandatory&&(m.audio.mandatory.chromeMediaSourceId=E)),m}function k(b){$?$.isLoaded?$.contentWindow.postMessage(b?b.forEach?{captureCustomSourceId:b}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){k(b)},100):V(function(){k(b)})}var $;function V(b){$?b():(($=document.createElement("iframe")).onload=function(){$.isLoaded=!0,b()},$.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",$.style.display="none",(document.body||document.documentElement).appendChild($))}function y(){$?$.isLoaded?$.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(y,100):V(y)}globalThis.getScreenId=function(b,E,_){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?E(null,"firefox",{video:{mozMediaSource:b,mediaSource:b}}):(globalThis.addEventListener("message",function m(w){!w.data||(w.data.chromeMediaSourceId&&("PermissionDeniedError"===w.data.chromeMediaSourceId?E("permission-denied"):E(null,w.data.chromeMediaSourceId,B(null,w.data.chromeMediaSourceId,w.data.canRequestAudioTrack)),globalThis.removeEventListener("message",m)),w.data.chromeExtensionStatus&&(E(w.data.chromeExtensionStatus,null,B(w.data.chromeExtensionStatus)),globalThis.removeEventListener("message",m)))}),setTimeout(_?function(){k(_)}:k,100)):E({video:!0})},globalThis.getScreenConstraints=function(b){V(function(){getScreenId(function(E,_,m){m||(m={video:!0}),b(E,m.video)})})},globalThis.getChromeExtensionStatus=function(b){navigator.mozGetUserMedia?b("installed-enabled"):(globalThis.addEventListener("message",function E(_){!_.data||_.data.chromeExtensionStatus&&(b(_.data.chromeExtensionStatus),globalThis.removeEventListener("message",E))}),setTimeout(y,100))},R.getScreenId=globalThis.getScreenId},48:(Ce,R)=>{var k,$,B="screen";if("undefined"!=typeof window&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent){var V=void 0!==window.InstallTrigger;!!window.opera||navigator.userAgent.indexOf(" OPR/");window,window.addEventListener("message",function(N){N.origin==window.location.origin&&function E(N){if("PermissionDeniedError"==N){if($)return $("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==N&&(B="desktop"),N.sourceId&&$&&$(k=N.sourceId,!0===N.canRequestAudioTrack)}(N.data)})}function m(N){if(!N)throw'"callback" parameter is mandatory.';if(k)return N(k);$=N,window.postMessage("get-sourceId","*")}function O(N,Q){if(k="",V)return N(null,{mozMediaSource:"window",mediaSource:"window"});var S={mandatory:{chromeMediaSource:B,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=B||k?("desktop"==B&&(S.mandatory.chromeMediaSourceId=k),N(null,S)):Q?function C(N){if(!N)throw'"callback" parameter is mandatory.';if(k)return N(k);$=N,window.postMessage("audio-plus-tab","*")}(function(v,F){S.mandatory.chromeMediaSourceId=v,F&&(S.canRequestAudioTrack=!0),N("PermissionDeniedError"==v?v:null,S)}):m(function(v){S.mandatory.chromeMediaSourceId=v,N("PermissionDeniedError"==v?v:null,S)})}R.getScreenConstraints=O,R.getScreenConstraintsWithAudio=function J(N){O(N,!0)},R.isChromeExtensionAvailable=function _(N){if(N){if("desktop"==B)return N(!0);window.postMessage("are-you-there","*"),setTimeout(function(){N("screen"!=B)},2e3)}},R.getChromeExtensionStatus=function G(N,Q){if(V)return Q("not-chrome");2!=arguments.length&&(Q=N,N="lfcgfepafnobdloecchnfaclibenjold");var W=document.createElement("img");W.src="chrome-extension://"+N+"/icon.png",W.onload=function(){B="screen",window.postMessage("are-you-there","*"),setTimeout(function(){Q("screen"==B?"installed-disabled":"installed-enabled")},2e3)},W.onerror=function(){Q("not-installed")}},R.getSourceId=m},1171:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.PlatformUtils=void 0;var k=B(6218),$=function(){function V(){}return V.getInstance=function(){return this.instance||(this.instance=new V),V.instance},V.prototype.isChromeBrowser=function(){return"Chrome"===k.name},V.prototype.isSafariBrowser=function(){return"Safari"===k.name},V.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===k.name},V.prototype.isFirefoxBrowser=function(){return"Firefox"===k.name},V.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===k.name||"Firefox for iOS"===k.name},V.prototype.isOperaBrowser=function(){return"Opera"===k.name},V.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===k.name},V.prototype.isEdgeBrowser=function(){var y=null!=k&&k.version?parseFloat(k.version):-1;return"Microsoft Edge"===k.name&&y>=80},V.prototype.isEdgeMobileBrowser=function(){var y,b,E=null!=k&&k.version?parseFloat(k.version):-1;return"Microsoft Edge"===k.name&&("Android"===(null===(y=k.os)||void 0===y?void 0:y.family)||"iOS"===(null===(b=k.os)||void 0===b?void 0:b.family))&&E>45},V.prototype.isAndroidBrowser=function(){return"Android Browser"===k.name},V.prototype.isElectron=function(){return"Electron"===k.name},V.prototype.isNodeJs=function(){return"Node.js"===k.name},V.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===k.name||"Samsung Internet"===k.name},V.prototype.isIPhoneOrIPad=function(){var y=k.ua?k.ua:navigator.userAgent,b="ontouchend"in document,E=/\b(\w*Macintosh\w*)\b/.test(y)&&b,_=/\b(\w*iPhone\w*)\b/.test(y)&&/\b(\w*Mobile\w*)\b/.test(y)&&b;return E||_},V.prototype.isIOSWithSafari=function(){var y=k.ua?k.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(y)&&!/\b(\w*CriOS\w*)\b/.test(y)&&!/\b(\w*FxiOS\w*)\b/.test(y)},V.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===k.ua.indexOf("Safari")},V.prototype.isIonicAndroid=function(){return"Android"===k.os.family&&"Android Browser"==k.name},V.prototype.isMobileDevice=function(){return"iOS"===k.os.family||"Android"===k.os.family},V.prototype.isReactNative=function(){return!1},V.prototype.isChromium=function(){return this.isChromeBrowser()||this.isChromeMobileBrowser()||this.isOperaBrowser()||this.isOperaMobileBrowser()||this.isEdgeBrowser()||this.isEdgeMobileBrowser()||this.isSamsungBrowser()||this.isIonicAndroid()||this.isIonicIos()||this.isElectron()},V.prototype.canScreenShare=function(){var y=null!=k&&k.version?parseFloat(k.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&y>=13)},V.prototype.getName=function(){return k.name||""},V.prototype.getVersion=function(){return k.version||""},V.prototype.getFamily=function(){return k.os.family||""},V.prototype.getDescription=function(){return k.description||""},V}();R.PlatformUtils=$},1530:function(Ce,R,B){"use strict";var W,k=this&&this.__extends||(W=function(S,v){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,Z){F.__proto__=Z}||function(F,Z){for(var M in Z)Object.prototype.hasOwnProperty.call(Z,M)&&(F[M]=Z[M])})(S,v)},function(S,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function F(){this.constructor=S}W(S,v),S.prototype=null===v?Object.create(v):(F.prototype=v.prototype,new F)}),$=this&&this.__assign||function(){return $=Object.assign||function(W){for(var S,v=1,F=arguments.length;v<F;v++)for(var Z in S=arguments[v])Object.prototype.hasOwnProperty.call(S,Z)&&(W[Z]=S[Z]);return W},$.apply(this,arguments)},V=this&&this.__awaiter||function(W,S,v,F){return new(v||(v=Promise))(function(M,p){function P(I){try{D(F.next(I))}catch(X){p(X)}}function ee(I){try{D(F.throw(I))}catch(X){p(X)}}function D(I){I.done?M(I.value):function Z(M){return M instanceof v?M:new v(function(p){p(M)})}(I.value).then(P,ee)}D((F=F.apply(W,S||[])).next())})},y=this&&this.__generator||function(W,S){var F,Z,M,p,v={label:0,sent:function(){if(1&M[0])throw M[1];return M[1]},trys:[],ops:[]};return p={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function P(D){return function(I){return function ee(D){if(F)throw new TypeError("Generator is already executing.");for(;p&&(p=0,D[0]&&(v=0)),v;)try{if(F=1,Z&&(M=2&D[0]?Z.return:D[0]?Z.throw||((M=Z.return)&&M.call(Z),0):Z.next)&&!(M=M.call(Z,D[1])).done)return M;switch(Z=0,M&&(D=[2&D[0],M.value]),D[0]){case 0:case 1:M=D;break;case 4:return v.label++,{value:D[1],done:!1};case 5:v.label++,Z=D[1],D=[0];continue;case 7:D=v.ops.pop(),v.trys.pop();continue;default:if(!(M=(M=v.trys).length>0&&M[M.length-1])&&(6===D[0]||2===D[0])){v=0;continue}if(3===D[0]&&(!M||D[1]>M[0]&&D[1]<M[3])){v.label=D[1];break}if(6===D[0]&&v.label<M[1]){v.label=M[1],M=D;break}if(M&&v.label<M[2]){v.label=M[2],v.ops.push(D);break}M[2]&&v.ops.pop(),v.trys.pop();continue}D=S.call(W,v)}catch(I){D=[6,I],Z=0}finally{F=M=0}if(5&D[0])throw D[1];return{value:D[0]?D[1]:void 0,done:!0}}([D,I])}}};Object.defineProperty(R,"__esModule",{value:!0}),R.WebRtcPeerSendrecv=R.WebRtcPeerSendonly=R.WebRtcPeerRecvonly=R.WebRtcPeer=void 0;var b=B(8145),E=B(6842),_=B(4131),m=B(1829),w=B(1171),C=m.OpenViduLogger.getInstance(),J=function(){function W(S){var v=this;this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],w.PlatformUtils.getInstance(),this.configuration=$($({},S),{iceServers:S.iceServers&&S.iceServers.length>0?S.iceServers:b(),mediaStream:void 0!==S.mediaStream?S.mediaStream:null,mode:S.mode?S.mode:"sendrecv",id:S.id?S.id:this.generateUniqueId()}),C.debug("[WebRtcPeer] configuration:\n".concat(JSON.stringify(this.configuration,null,2))),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.pc.addEventListener("icecandidate",function(F){if(null!==F.candidate){var M=new RTCIceCandidate(F.candidate);v.configuration.onIceCandidate(M),""!==M.candidate&&v.localCandidatesQueue.push(M)}}),this.pc.addEventListener("signalingstatechange",function(){return V(v,void 0,void 0,function(){var F,Z;return y(this,function(M){switch(M.label){case 0:if("stable"!==this.pc.signalingState)return[3,6];M.label=1;case 1:if(!(this.iceCandidateList.length>0))return[3,6];F=this.iceCandidateList.shift(),M.label=2;case 2:return M.trys.push([2,4,,5]),[4,this.pc.addIceCandidate(F)];case 3:return M.sent(),[3,5];case 4:return Z=M.sent(),C.error("Error when calling RTCPeerConnection#addIceCandidate for RTCPeerConnection "+this.getId(),Z),[3,5];case 5:return[3,1];case 6:return[2]}})})})}return W.prototype.getId=function(){return this.configuration.id},W.prototype.dispose=function(){if(C.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},W.prototype.createOfferLegacy=function(){this.configuration.mediaStream&&this.deprecatedPeerConnectionTrackApi();var F={offerToReceiveAudio:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.audio,offerToReceiveVideo:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.video};return C.debug("[createOfferLegacy] RTCPeerConnection.createOffer() options:",JSON.stringify(F)),this.pc.createOffer(F)},W.prototype.createOffer=function(){var S,v,F,Z,M,p,P,ee;return V(this,void 0,void 0,function(){var D,I,X,oe,se,g,U,Y,T,j,K,me,ae,le,Se,$e,Le,ze,ct,Ue,ue,$t,qe;return y(this,function(cn){switch(cn.label){case 0:if(!("addTransceiver"in this.pc))return C.warn("[createOffer] Method RTCPeerConnection.addTransceiver() is NOT available; using LEGACY offerToReceive{Audio,Video}"),[2,this.createOfferLegacy()];if(C.debug("[createOffer] Method RTCPeerConnection.addTransceiver() is available; using it"),"recvonly"===this.configuration.mode)return[3,7];if(!this.configuration.mediaStream)throw new Error("[WebRtcPeer.createOffer] Direction is '".concat(this.configuration.mode,"', but no stream was configured to be sent"));D=0,I=this.configuration.mediaStream.getTracks(),cn.label=1;case 1:if(!(D<I.length))return[3,6];if(oe={direction:this.configuration.mode,streams:[this.configuration.mediaStream]},"video"===(X=I[D]).kind&&this.configuration.simulcast)for(se=X.getSettings(),g=X.getConstraints(),U=null!==(F=null!==(v=null!==(S=se.width)&&void 0!==S?S:g.width.ideal)&&void 0!==v?v:g.width)&&void 0!==F?F:0,Y=null!==(p=null!==(M=null!==(Z=se.height)&&void 0!==Z?Z:g.height.ideal)&&void 0!==M?M:g.height)&&void 0!==p?p:0,C.info("[createOffer] Video track dimensions: ".concat(U,"x").concat(Y)),0,j=(T=U*Y)>=518400?3:T>=129600?2:1,oe.sendEncodings=[],K=0;K<j;K++)me=Math.pow(2,j-K-1),ae={rid:"rdiv"+me.toString(),scalabilityMode:"L1T1"},["detail","text"].includes(X.contentHint)?(ae.scaleResolutionDownBy=1,ae.maxFramerate=Math.floor(30/me)):ae.scaleResolutionDownBy=me,oe.sendEncodings.push(ae);if(le=this.pc.addTransceiver(X,oe),"video"!==X.kind)return[3,5];if(Se=le.sender.getParameters(),$e=!1,!(null===(P=Se.degradationPreference)||void 0===P)&&P.length||(Se.degradationPreference=["detail","text"].includes(X.contentHint)?"maintain-resolution":"balanced",C.info("[createOffer] Video sender Degradation Preference set: ".concat(Se.degradationPreference)),$e=!0),this.configuration.simulcast&&(null===(ee=Se.encodings)||void 0===ee?void 0:ee.length)!==oe.sendEncodings.length&&(Se.encodings=oe.sendEncodings,$e=!0),!$e)return[3,5];C.debug("[createOffer] Setting new RTCRtpSendParameters to video sender"),cn.label=2;case 2:return cn.trys.push([2,4,,5]),[4,le.sender.setParameters(Se)];case 3:return cn.sent(),[3,5];case 4:throw Le=cn.sent(),qe="[WebRtcPeer.createOffer] Cannot set RTCRtpSendParameters to video sender",Le instanceof Error&&(qe+=": ".concat(Le.message)),new Error(qe);case 5:return D++,[3,1];case 6:return[3,8];case 7:for(ze=0,ct=["audio","video"];ze<ct.length;ze++)this.configuration.mediaConstraints[Ue=ct[ze]]&&(this.configuration.mediaStream=new MediaStream,this.pc.addTransceiver(Ue,{direction:this.configuration.mode,streams:[this.configuration.mediaStream]}));cn.label=8;case 8:return cn.trys.push([8,10,,11]),[4,this.pc.createOffer()];case 9:return ue=cn.sent(),[3,11];case 10:throw $t=cn.sent(),qe="[WebRtcPeer.createOffer] Browser failed creating an SDP Offer",$t instanceof Error&&(qe+=": ".concat($t.message)),new Error(qe);case 11:return[2,ue]}})})},W.prototype.deprecatedPeerConnectionTrackApi=function(){for(var S=0,v=this.configuration.mediaStream.getTracks();S<v.length;S++)this.pc.addTrack(v[S],this.configuration.mediaStream)},W.prototype.createAnswer=function(){var S=this;return new Promise(function(v,F){if("getTransceivers"in S.pc){C.debug("[createAnswer] Method RTCPeerConnection.getTransceivers() is available; using it");for(var Z=function(oe){if(!S.configuration.mediaConstraints[oe])return"continue";var se=S.pc.getTransceivers().find(function(g){return g.receiver.track.kind===oe});if(!se)return{value:F(new Error("".concat(oe," requested, but no transceiver was created from remote description")))};se.direction=S.configuration.mode},M=0,p=["audio","video"];M<p.length;M++){var ee=Z(p[M]);if("object"==typeof ee)return ee.value}S.pc.createAnswer().then(function(oe){return v(oe)}).catch(function(oe){return F(oe)})}else S.configuration.mediaConstraints&&S.pc.createAnswer({offerToReceiveAudio:"boolean"!=typeof S.configuration.mediaConstraints.audio||S.configuration.mediaConstraints.audio,offerToReceiveVideo:"boolean"!=typeof S.configuration.mediaConstraints.video||S.configuration.mediaConstraints.video}).then(function(oe){return v(oe)}).catch(function(oe){return F(oe)})})},W.prototype.processLocalOffer=function(S){var v=this;return new Promise(function(F,Z){v.pc.setLocalDescription(S).then(function(){var M=v.pc.localDescription;return M?(C.debug("Local description set",M.sdp),F()):Z("Local description is not defined")}).catch(function(M){return Z(M)})})},W.prototype.processRemoteOffer=function(S){var v=this;return new Promise(function(F,Z){var M={type:"offer",sdp:S};if(C.debug("SDP offer received, setting remote description",M),"closed"===v.pc.signalingState)return Z("RTCPeerConnection is closed when trying to set remote description");v.setRemoteDescription(M).then(function(){return F()}).catch(function(p){return Z(p)})})},W.prototype.processLocalAnswer=function(S){var v=this;return new Promise(function(F,Z){if(C.debug("SDP answer created, setting local description"),"closed"===v.pc.signalingState)return Z("RTCPeerConnection is closed when trying to set local description");v.pc.setLocalDescription(S).then(function(){return F()}).catch(function(M){return Z(M)})})},W.prototype.processRemoteAnswer=function(S){var v=this;return new Promise(function(F,Z){var M={type:"answer",sdp:S};if(C.debug("SDP answer received, setting remote description"),"closed"===v.pc.signalingState)return Z("RTCPeerConnection is closed when trying to set remote description");v.setRemoteDescription(M).then(function(){F()}).catch(function(p){return Z(p)})})},W.prototype.setRemoteDescription=function(S){return V(this,void 0,void 0,function(){return y(this,function(v){return[2,this.pc.setRemoteDescription(S)]})})},W.prototype.addIceCandidate=function(S){var v=this;return new Promise(function(F,Z){switch(C.debug("Remote ICE candidate received",S),v.remoteCandidatesQueue.push(S),v.pc.signalingState){case"closed":Z(new Error("PeerConnection object is closed"));break;case"stable":v.pc.remoteDescription?v.pc.addIceCandidate(S).then(function(){return F()}).catch(function(M){return Z(M)}):(v.iceCandidateList.push(S),F());break;default:v.iceCandidateList.push(S),F()}})},W.prototype.addIceConnectionStateChangeListener=function(S){var v=this;this.pc.addEventListener("iceconnectionstatechange",function(){switch(v.pc.iceConnectionState){case"disconnected":var Z="IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+S+') change to "disconnected". Possible network disconnection';C.warn(Z),v.configuration.onIceConnectionStateException(_.ExceptionEventName.ICE_CONNECTION_DISCONNECTED,Z);break;case"failed":var M="IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+S+') to "failed"';C.error(M),v.configuration.onIceConnectionStateException(_.ExceptionEventName.ICE_CONNECTION_FAILED,M);break;case"closed":C.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+S+') change to "closed"');break;case"new":C.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+S+') change to "new"');break;case"checking":C.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+S+') change to "checking"');break;case"connected":C.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+S+') change to "connected"');break;case"completed":C.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+S+') change to "completed"')}})},W.prototype.generateUniqueId=function(){return(0,E.v4)()},W}();R.WebRtcPeer=J;var O=function(W){function S(v){return v.mode="recvonly",W.call(this,v)||this}return k(S,W),S}(J);R.WebRtcPeerRecvonly=O;var N=function(W){function S(v){return v.mode="sendonly",W.call(this,v)||this}return k(S,W),S}(J);R.WebRtcPeerSendonly=N;var Q=function(W){function S(v){return v.mode="sendrecv",W.call(this,v)||this}return k(S,W),S}(J);R.WebRtcPeerSendrecv=Q},7153:function(Ce,R,B){"use strict";var k=this&&this.__awaiter||function(m,w,C,G){return new(C||(C=Promise))(function(O,N){function Q(v){try{S(G.next(v))}catch(F){N(F)}}function W(v){try{S(G.throw(v))}catch(F){N(F)}}function S(v){v.done?O(v.value):function J(O){return O instanceof C?O:new C(function(N){N(O)})}(v.value).then(Q,W)}S((G=G.apply(m,w||[])).next())})},$=this&&this.__generator||function(m,w){var G,J,O,N,C={label:0,sent:function(){if(1&O[0])throw O[1];return O[1]},trys:[],ops:[]};return N={next:Q(0),throw:Q(1),return:Q(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function Q(S){return function(v){return function W(S){if(G)throw new TypeError("Generator is already executing.");for(;N&&(N=0,S[0]&&(C=0)),C;)try{if(G=1,J&&(O=2&S[0]?J.return:S[0]?J.throw||((O=J.return)&&O.call(J),0):J.next)&&!(O=O.call(J,S[1])).done)return O;switch(J=0,O&&(S=[2&S[0],O.value]),S[0]){case 0:case 1:O=S;break;case 4:return C.label++,{value:S[1],done:!1};case 5:C.label++,J=S[1],S=[0];continue;case 7:S=C.ops.pop(),C.trys.pop();continue;default:if(!(O=(O=C.trys).length>0&&O[O.length-1])&&(6===S[0]||2===S[0])){C=0;continue}if(3===S[0]&&(!O||S[1]>O[0]&&S[1]<O[3])){C.label=S[1];break}if(6===S[0]&&C.label<O[1]){C.label=O[1],O=S;break}if(O&&C.label<O[2]){C.label=O[2],C.ops.push(S);break}O[2]&&C.ops.pop(),C.trys.pop();continue}S=w.call(m,C)}catch(v){S=[6,v],J=0}finally{G=O=0}if(5&S[0])throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}([S,v])}}};Object.defineProperty(R,"__esModule",{value:!0}),R.WebRtcStats=void 0;var E,V=B(1829),y=B(1171),b=V.OpenViduLogger.getInstance(),_=function(){function m(w){this.stream=w,this.STATS_ITEM_NAME="webrtc-stats-config",this.webRtcStatsEnabled=!1,this.statsInterval=1,E=y.PlatformUtils.getInstance()}return m.prototype.isEnabled=function(){return this.webRtcStatsEnabled},m.prototype.initWebRtcStats=function(){var w=this,C=localStorage.getItem(this.STATS_ITEM_NAME);if(C){this.webRtcStatsEnabled=!0;var G=JSON.parse(C);b.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),b.warn("localStorage item: "+JSON.stringify(G)),this.POST_URL=G.httpEndpoint,this.statsInterval=G.interval,this.webRtcStatsIntervalId=setInterval(function(){return k(w,void 0,void 0,function(){return $(this,function(J){switch(J.label){case 0:return[4,this.sendStatsToHttpEndpoint()];case 1:return J.sent(),[2]}})})},1e3*this.statsInterval)}else b.debug("WebRtc stats not enabled")},m.prototype.getSelectedIceCandidateInfo=function(){var w=this;return new Promise(function(C,G){return k(w,void 0,void 0,function(){var J,O,N,Q,W,S,F,Z,M,p,ee,D,I,X,oe,se,g,U,Y;return $(this,function(j){switch(j.label){case 0:return[4,this.stream.getRTCPeerConnection().getStats()];case 1:if(J=j.sent(),N=new Map,Q=new Map,W=new Map,J.forEach(function(K){switch("transport"===K.type&&(E.isChromium()||E.isSafariBrowser()||E.isReactNative())&&(O=K),K.type){case"candidate-pair":N.set(K.id,K);break;case"local-candidate":Q.set(K.id,K);break;case"remote-candidate":W.set(K.id,K)}}),null!=O)S=N.get(O.selectedCandidatePairId);else for(F=N.size,Z=N.values(),M=0;M<F;M++)if((p=Z.next().value).selected){S=p;break}if(ee=S.remoteCandidateId,D=Q.get(S.localCandidateId))for(se=this.stream.getLocalIceCandidateList(),g=se.filter(function(K){return!!K.candidate&&(K.candidate.indexOf(D.ip)>=0||K.candidate.indexOf(D.address)>=0)&&K.candidate.indexOf(D.port)>=0}),D.raw=[],I=0,X=g;I<X.length;I++)D.raw.push(X[I].candidate);else D="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";if(oe=W.get(ee))for(se=this.stream.getRemoteIceCandidateList(),g=se.filter(function(K){return!!K.candidate&&(K.candidate.indexOf(oe.ip)>=0||K.candidate.indexOf(oe.address)>=0)&&K.candidate.indexOf(oe.port)>=0}),oe.raw=[],U=0,Y=g;U<Y.length;U++)oe.raw.push(Y[U].candidate);else oe="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used";return[2,C({localCandidate:D,remoteCandidate:oe})]}})})})},m.prototype.stopWebRtcStats=function(){this.webRtcStatsEnabled&&(clearInterval(this.webRtcStatsIntervalId),b.warn("WebRtc stats stopped for disposed stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId))},m.prototype.sendStats=function(w,C){return k(this,void 0,void 0,function(){var G,J;return $(this,function(O){switch(O.label){case 0:return O.trys.push([0,2,,3]),G={headers:{"Content-type":"application/json"},body:JSON.stringify(C),method:"POST"},[4,fetch(w,G)];case 1:return O.sent(),[3,3];case 2:return J=O.sent(),b.error("sendStats error: ".concat(JSON.stringify(J))),[3,3];case 3:return[2]}})})},m.prototype.sendStatsToHttpEndpoint=function(){return k(this,void 0,void 0,function(){var w,C,G;return $(this,function(J){switch(J.label){case 0:return J.trys.push([0,3,,4]),[4,this.getCommonStats()];case 1:return w=J.sent(),C=this.generateJSONStatsResponse(w),[4,this.sendStats(this.POST_URL,C)];case 2:return J.sent(),[3,4];case 3:return G=J.sent(),b.log(G),[3,4];case 4:return[2]}})})},m.prototype.getCommonStats=function(){return k(this,void 0,void 0,function(){var w=this;return $(this,function(C){return[2,new Promise(function(G,J){return k(w,void 0,void 0,function(){var O,N,Q,W,S,v=this;return $(this,function(F){switch(F.label){case 0:return F.trys.push([0,2,,3]),[4,this.stream.getRTCPeerConnection().getStats()];case 1:return O=F.sent(),N=this.getWebRtcStatsResponseOutline(),Q=["framesReceived","framesDropped","framesSent","frameHeight","frameWidth"],W=["availableOutgoingBitrate","currentRoundTripTime"],O.forEach(function(Z){var M=null!=Z.mediaType?Z.mediaType:Z.kind,p=function(P,ee){null!=Z[ee]&&null!=N[P]&&(!M&&Q.indexOf(ee)>-1&&(M="video"),null!=P&&null!=M&&null!=ee&&null!=N[P][M]?N[P][M][ee]=Number(Z[ee]):null!=P&&null!=ee&&W.includes(ee)&&(N[P][ee]=Number(Z[ee])))};switch(Z.type){case"outbound-rtp":p("outbound","bytesSent"),p("outbound","packetsSent"),p("outbound","framesEncoded"),p("outbound","nackCount"),p("outbound","firCount"),p("outbound","pliCount"),p("outbound","qpSum");break;case"inbound-rtp":p("inbound","bytesReceived"),p("inbound","packetsReceived"),p("inbound","packetsLost"),p("inbound","jitter"),p("inbound","framesDecoded"),p("inbound","nackCount"),p("inbound","firCount"),p("inbound","pliCount");break;case"track":p("inbound","jitterBufferDelay"),p("inbound","framesReceived"),p("outbound","framesDropped"),p("outbound","framesSent"),p(v.stream.isLocal()?"outbound":"inbound","frameHeight"),p(v.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":p("candidatepair","currentRoundTripTime"),p("candidatepair","availableOutgoingBitrate")}}),null!=N&&N.candidatepair&&0!==Object.keys(N.candidatepair).length||delete N.candidatepair,[2,G(N)];case 2:return S=F.sent(),b.error("Error getting common stats: ",S),[2,J(S)];case 3:return[2]}})})})]})})},m.prototype.generateJSONStatsResponse=function(w){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:E.getName(),platform_description:E.getDescription(),stream:"webRTC",webrtc_stats:w}},m.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},m}();R.WebRtcStats=_},9795:function(Ce,R,B){"use strict";var k=this&&this.__createBinding||(Object.create?function(T,j,K,me){void 0===me&&(me=K);var ae=Object.getOwnPropertyDescriptor(j,K);(!ae||("get"in ae?!j.__esModule:ae.writable||ae.configurable))&&(ae={enumerable:!0,get:function(){return j[K]}}),Object.defineProperty(T,me,ae)}:function(T,j,K,me){void 0===me&&(me=K),T[me]=j[K]}),$=this&&this.__exportStar||function(T,j){for(var K in T)"default"!==K&&!Object.prototype.hasOwnProperty.call(j,K)&&k(j,T,K)};Object.defineProperty(R,"__esModule",{value:!0}),R.EventDispatcher=R.ExceptionEventName=R.ExceptionEvent=R.SpeechToTextEvent=R.NetworkQualityLevelChangedEvent=R.FilterEvent=R.ConnectionPropertyChangedEvent=R.StreamPropertyChangedEvent=R.VideoElementEvent=R.StreamManagerEvent=R.StreamEvent=R.SignalEvent=R.SessionDisconnectedEvent=R.RecordingEvent=R.PublisherSpeakingEvent=R.ConnectionEvent=R.Event=R.VideoInsertMode=R.TypeOfVideo=R.OpenViduErrorName=R.OpenViduError=R.LocalRecorderState=R.Filter=R.LocalRecorder=R.Connection=R.Stream=R.StreamManager=R.Subscriber=R.Publisher=R.Session=R.OpenVidu=void 0;var V=B(5163),y=B(3634);Object.defineProperty(R,"OpenVidu",{enumerable:!0,get:function(){return y.OpenVidu}});var b=B(5607);Object.defineProperty(R,"Session",{enumerable:!0,get:function(){return b.Session}});var E=B(4302);Object.defineProperty(R,"Publisher",{enumerable:!0,get:function(){return E.Publisher}});var _=B(3343);Object.defineProperty(R,"Subscriber",{enumerable:!0,get:function(){return _.Subscriber}});var m=B(7373);Object.defineProperty(R,"StreamManager",{enumerable:!0,get:function(){return m.StreamManager}});var w=B(8770);Object.defineProperty(R,"Stream",{enumerable:!0,get:function(){return w.Stream}});var C=B(7576);Object.defineProperty(R,"Connection",{enumerable:!0,get:function(){return C.Connection}});var G=B(8499);Object.defineProperty(R,"LocalRecorder",{enumerable:!0,get:function(){return G.LocalRecorder}});var J=B(5481);Object.defineProperty(R,"Filter",{enumerable:!0,get:function(){return J.Filter}});var O=B(1216);Object.defineProperty(R,"LocalRecorderState",{enumerable:!0,get:function(){return O.LocalRecorderState}});var N=B(9303);Object.defineProperty(R,"OpenViduError",{enumerable:!0,get:function(){return N.OpenViduError}}),Object.defineProperty(R,"OpenViduErrorName",{enumerable:!0,get:function(){return N.OpenViduErrorName}});var Q=B(7879);Object.defineProperty(R,"TypeOfVideo",{enumerable:!0,get:function(){return Q.TypeOfVideo}});var W=B(7167);Object.defineProperty(R,"VideoInsertMode",{enumerable:!0,get:function(){return W.VideoInsertMode}});var S=B(616);Object.defineProperty(R,"Event",{enumerable:!0,get:function(){return S.Event}});var v=B(1698);Object.defineProperty(R,"ConnectionEvent",{enumerable:!0,get:function(){return v.ConnectionEvent}});var F=B(8887);Object.defineProperty(R,"PublisherSpeakingEvent",{enumerable:!0,get:function(){return F.PublisherSpeakingEvent}});var Z=B(5449);Object.defineProperty(R,"RecordingEvent",{enumerable:!0,get:function(){return Z.RecordingEvent}});var M=B(1690);Object.defineProperty(R,"SessionDisconnectedEvent",{enumerable:!0,get:function(){return M.SessionDisconnectedEvent}});var p=B(1659);Object.defineProperty(R,"SignalEvent",{enumerable:!0,get:function(){return p.SignalEvent}});var P=B(3980);Object.defineProperty(R,"StreamEvent",{enumerable:!0,get:function(){return P.StreamEvent}});var ee=B(7818);Object.defineProperty(R,"StreamManagerEvent",{enumerable:!0,get:function(){return ee.StreamManagerEvent}});var D=B(6320);Object.defineProperty(R,"VideoElementEvent",{enumerable:!0,get:function(){return D.VideoElementEvent}});var I=B(9383);Object.defineProperty(R,"StreamPropertyChangedEvent",{enumerable:!0,get:function(){return I.StreamPropertyChangedEvent}});var X=B(9005);Object.defineProperty(R,"ConnectionPropertyChangedEvent",{enumerable:!0,get:function(){return X.ConnectionPropertyChangedEvent}});var oe=B(5132);Object.defineProperty(R,"FilterEvent",{enumerable:!0,get:function(){return oe.FilterEvent}});var se=B(9900);Object.defineProperty(R,"NetworkQualityLevelChangedEvent",{enumerable:!0,get:function(){return se.NetworkQualityLevelChangedEvent}});var g=B(482);Object.defineProperty(R,"SpeechToTextEvent",{enumerable:!0,get:function(){return g.SpeechToTextEvent}});var U=B(4131);Object.defineProperty(R,"ExceptionEvent",{enumerable:!0,get:function(){return U.ExceptionEvent}}),Object.defineProperty(R,"ExceptionEventName",{enumerable:!0,get:function(){return U.ExceptionEventName}});var Y=B(2768);Object.defineProperty(R,"EventDispatcher",{enumerable:!0,get:function(){return Y.EventDispatcher}}),$(B(7848),R),V.JL.setOptions({enabled:!1})},7945:Ce=>{"use strict";var k,R="object"==typeof Reflect?Reflect:null,B=R&&"function"==typeof R.apply?R.apply:function(Z,M,p){return Function.prototype.apply.call(Z,M,p)};k=R&&"function"==typeof R.ownKeys?R.ownKeys:Object.getOwnPropertySymbols?function(Z){return Object.getOwnPropertyNames(Z).concat(Object.getOwnPropertySymbols(Z))}:function(Z){return Object.getOwnPropertyNames(Z)};var V=Number.isNaN||function(Z){return Z!=Z};function y(){y.init.call(this)}Ce.exports=y,Ce.exports.once=function W(F,Z){return new Promise(function(M,p){function P(D){F.removeListener(Z,ee),p(D)}function ee(){"function"==typeof F.removeListener&&F.removeListener("error",P),M([].slice.call(arguments))}v(F,Z,ee,{once:!0}),"error"!==Z&&function S(F,Z,M){"function"==typeof F.on&&v(F,"error",Z,M)}(F,P,{once:!0})})},y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var b=10;function E(F){if("function"!=typeof F)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof F)}function _(F){return void 0===F._maxListeners?y.defaultMaxListeners:F._maxListeners}function m(F,Z,M,p){var P,ee,D;if(E(M),void 0===(ee=F._events)?(ee=F._events=Object.create(null),F._eventsCount=0):(void 0!==ee.newListener&&(F.emit("newListener",Z,M.listener?M.listener:M),ee=F._events),D=ee[Z]),void 0===D)D=ee[Z]=M,++F._eventsCount;else if("function"==typeof D?D=ee[Z]=p?[M,D]:[D,M]:p?D.unshift(M):D.push(M),(P=_(F))>0&&D.length>P&&!D.warned){D.warned=!0;var I=new Error("Possible EventEmitter memory leak detected. "+D.length+" "+String(Z)+" listeners added. Use emitter.setMaxListeners() to increase limit");I.name="MaxListenersExceededWarning",I.emitter=F,I.type=Z,I.count=D.length,function $(F){console&&console.warn&&console.warn(F)}(I)}return F}function w(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(F,Z,M){var p={fired:!1,wrapFn:void 0,target:F,type:Z,listener:M},P=w.bind(p);return P.listener=M,p.wrapFn=P,P}function G(F,Z,M){var p=F._events;if(void 0===p)return[];var P=p[Z];return void 0===P?[]:"function"==typeof P?M?[P.listener||P]:[P]:M?function Q(F){for(var Z=new Array(F.length),M=0;M<Z.length;++M)Z[M]=F[M].listener||F[M];return Z}(P):O(P,P.length)}function J(F){var Z=this._events;if(void 0!==Z){var M=Z[F];if("function"==typeof M)return 1;if(void 0!==M)return M.length}return 0}function O(F,Z){for(var M=new Array(Z),p=0;p<Z;++p)M[p]=F[p];return M}function v(F,Z,M,p){if("function"==typeof F.on)p.once?F.once(Z,M):F.on(Z,M);else{if("function"!=typeof F.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof F);F.addEventListener(Z,function P(ee){p.once&&F.removeEventListener(Z,P),M(ee)})}}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return b},set:function(F){if("number"!=typeof F||F<0||V(F))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+F+".");b=F}}),y.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},y.prototype.setMaxListeners=function(Z){if("number"!=typeof Z||Z<0||V(Z))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Z+".");return this._maxListeners=Z,this},y.prototype.getMaxListeners=function(){return _(this)},y.prototype.emit=function(Z){for(var M=[],p=1;p<arguments.length;p++)M.push(arguments[p]);var P="error"===Z,ee=this._events;if(void 0!==ee)P=P&&void 0===ee.error;else if(!P)return!1;if(P){var D;if(M.length>0&&(D=M[0]),D instanceof Error)throw D;var I=new Error("Unhandled error."+(D?" ("+D.message+")":""));throw I.context=D,I}var X=ee[Z];if(void 0===X)return!1;if("function"==typeof X)B(X,this,M);else{var oe=X.length,se=O(X,oe);for(p=0;p<oe;++p)B(se[p],this,M)}return!0},y.prototype.on=y.prototype.addListener=function(Z,M){return m(this,Z,M,!1)},y.prototype.prependListener=function(Z,M){return m(this,Z,M,!0)},y.prototype.once=function(Z,M){return E(M),this.on(Z,C(this,Z,M)),this},y.prototype.prependOnceListener=function(Z,M){return E(M),this.prependListener(Z,C(this,Z,M)),this},y.prototype.off=y.prototype.removeListener=function(Z,M){var p,P,ee,D,I;if(E(M),void 0===(P=this._events))return this;if(void 0===(p=P[Z]))return this;if(p===M||p.listener===M)0==--this._eventsCount?this._events=Object.create(null):(delete P[Z],P.removeListener&&this.emit("removeListener",Z,p.listener||M));else if("function"!=typeof p){for(ee=-1,D=p.length-1;D>=0;D--)if(p[D]===M||p[D].listener===M){I=p[D].listener,ee=D;break}if(ee<0)return this;0===ee?p.shift():function N(F,Z){for(;Z+1<F.length;Z++)F[Z]=F[Z+1];F.pop()}(p,ee),1===p.length&&(P[Z]=p[0]),void 0!==P.removeListener&&this.emit("removeListener",Z,I||M)}return this},y.prototype.removeAllListeners=function(Z){var M,p,P;if(void 0===(p=this._events))return this;if(void 0===p.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==p[Z]&&(0==--this._eventsCount?this._events=Object.create(null):delete p[Z]),this;if(0===arguments.length){var D,ee=Object.keys(p);for(P=0;P<ee.length;++P)"removeListener"!==(D=ee[P])&&this.removeAllListeners(D);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(M=p[Z]))this.removeListener(Z,M);else if(void 0!==M)for(P=M.length-1;P>=0;P--)this.removeListener(Z,M[P]);return this},y.prototype.listeners=function(Z){return G(this,Z,!0)},y.prototype.rawListeners=function(Z){return G(this,Z,!1)},y.listenerCount=function(F,Z){return"function"==typeof F.listenerCount?F.listenerCount(Z):J.call(F,Z)},y.prototype.listenerCount=J,y.prototype.eventNames=function(){return this._eventsCount>0?k(this._events):[]}},8145:(Ce,R,B)=>{"use strict";var k=B(4737);Ce.exports=function(V){var _,y={stun:(V||{}).stun||B(9272),turn:(V||{}).turn||B(6410)},E=(V||{}).turnCount||0;function m(w,C){for(var O,G=[],J=[].concat(y[w]);J.length&&G.length<C;)O=Math.random()*J.length|0,G=G.concat(J.splice(O,1));return G.map(function(N){return"string"==typeof N||N instanceof String?k(w+":"+N):N})}return _=[].concat(m("stun",(V||{}).stunCount||2)),E&&(_=_.concat(m("turn",E))),_}},2877:(Ce,R,B)=>{var V,k=B(1181);"undefined"!=typeof window&&(V=window.AudioContext||window.webkitAudioContext);var y=null;Ce.exports=function(b,m){var _=new k;if(!V)return _;var Q,W,S,w=(m=m||{}).smoothing||.1,C=m.interval||50,G=m.threshold,J=m.play,O=m.history||10,N=!0;y=m.audioContext||y||new V,(S=y.createAnalyser()).fftSize=512,S.smoothingTimeConstant=w,W=new Float32Array(S.frequencyBinCount),b.jquery&&(b=b[0]),b instanceof HTMLAudioElement||b instanceof HTMLVideoElement?(Q=y.createMediaElementSource(b),void 0===J&&(J=!0),G=G||-50):(Q=y.createMediaStreamSource(b),G=G||-50),Q.connect(S),J&&S.connect(y.destination),_.speaking=!1,_.suspend=function(){return y.suspend()},_.resume=function(){return y.resume()},Object.defineProperty(_,"state",{get:function(){return y.state}}),y.onstatechange=function(){_.emit("state_change",y.state)},_.setThreshold=function(Z){G=Z},_.setInterval=function(Z){C=Z},_.stop=function(){N=!1,_.emit("volume_change",-100,G),_.speaking&&(_.speaking=!1,_.emit("stopped_speaking")),S.disconnect(),Q.disconnect()},_.speakingHistory=[];for(var v=0;v<O;v++)_.speakingHistory.push(0);var F=function(){setTimeout(function(){if(N){var Z=function $(b,E){var _=-1/0;b.getFloatFrequencyData(E);for(var m=4,w=E.length;m<w;m++)E[m]>_&&E[m]<0&&(_=E[m]);return _}(S,W);_.emit("volume_change",Z,G);var M=0;if(Z>G&&!_.speaking){for(var p=_.speakingHistory.length-3;p<_.speakingHistory.length;p++)M+=_.speakingHistory[p];M>=2&&(_.speaking=!0,_.emit("speaking"))}else if(Z<G&&_.speaking){for(p=0;p<_.speakingHistory.length;p++)M+=_.speakingHistory[p];0==M&&(_.speaking=!1,_.emit("stopped_speaking"))}_.speakingHistory.shift(),_.speakingHistory.push(0+(Z>G)),F()}},C)};return F(),_}},9543:Ce=>{Ce.exports="function"==typeof Object.create?function(B,k){k&&(B.super_=k,B.prototype=Object.create(k.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}))}:function(B,k){if(k){B.super_=k;var $=function(){};$.prototype=k.prototype,B.prototype=new $,B.prototype.constructor=B}}},5163:function(Ce,R){var V,B=this&&this.__extends||(V=function(y,b){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,_){E.__proto__=_}||function(E,_){for(var m in _)Object.prototype.hasOwnProperty.call(_,m)&&(E[m]=_[m])})(y,b)},function(y,b){function E(){this.constructor=y}V(y,b),y.prototype=null===b?Object.create(b):(E.prototype=b.prototype,new E)});function k(V){if(!V)return k.__;Array.prototype.reduce||(Array.prototype.reduce=function(E,_){for(var m=_,w=0;w<this.length;w++)m=E(m,this[w],w,this);return m});var y="";return("."+V).split(".").reduce(function(E,_,m,w){y?y+="."+_:y=_;var C=E["__"+y];return void 0===C&&(k.Logger.prototype=E,C=new k.Logger(y),E["__"+y]=C),C},k.__)}(function(V){function y(Y,T,j){if(void 0!==T[Y]){if(null===T[Y])return void delete j[Y];j[Y]=T[Y]}}function b(Y){if(null!=V.enabled&&!V.enabled)return!1;try{if(Y.userAgentRegex&&!new RegExp(Y.userAgentRegex).test(navigator.userAgent))return!1}catch(T){}try{if(Y.ipRegex&&V.clientIP&&!new RegExp(Y.ipRegex).test(V.clientIP))return!1}catch(T){}return!0}function E(Y,T){try{if(Y.disallow&&new RegExp(Y.disallow).test(T))return!1}catch(j){}return!0}function _(Y){return"function"==typeof Y?Y instanceof RegExp?Y.toString():Y():Y}V.requestId="",V.entryId=0,V._createXMLHttpRequest=function(){return new XMLHttpRequest},V._getTime=function(){return(new Date).getTime()},V._console=console,V._appenderNames=[];var m=function Y(T,j,K){this.msg=T,this.meta=j,this.finalString=K};function w(Y){var j,T=_(Y);switch(typeof T){case"string":return new m(T,null,T);case"number":case"boolean":return j=T.toString(),new m(j,null,j);case"undefined":return new m("undefined",null,"undefined");case"object":return T instanceof RegExp||T instanceof String||T instanceof Number||T instanceof Boolean?(j=T.toString(),new m(j,null,j)):(j="function"==typeof V.serialize?V.serialize.call(this,T):JSON.stringify(T),new m("",T,j));default:return new m("unknown",null,"unknown")}}function F(Y){return Y<=1e3?"trace":Y<=2e3?"debug":Y<=3e3?"info":Y<=4e3?"warn":Y<=5e3?"error":"fatal"}V.setOptions=function C(Y){return y("enabled",Y,this),y("maxMessages",Y,this),y("defaultAjaxUrl",Y,this),y("clientIP",Y,this),y("requestId",Y,this),y("defaultBeforeSend",Y,this),y("serialize",Y,this),this},V.getAllLevel=function G(){return-2147483648},V.getTraceLevel=function J(){return 1e3},V.getDebugLevel=function O(){return 2e3},V.getInfoLevel=function N(){return 3e3},V.getWarnLevel=function Q(){return 4e3},V.getErrorLevel=function W(){return 5e3},V.getFatalLevel=function S(){return 6e3},V.getOffLevel=function v(){return 2147483647};var Z=function Y(T,j){this.inner=j,this.name="JL.Exception",this.message=w(T).finalString};V.Exception=Z,Z.prototype=new Error;var M=function Y(T,j,K,me,ae){this.l=T,this.m=j,this.n=K,this.t=me,this.u=ae};function p(Y,T,j){return V.entryId++,new M(Y,T,j,V._getTime(),V.entryId)}function P(Y){Y.id&&(clearTimeout(Y.id),Y.id=null)}function ee(Y,T,j){var K=this;Y.id||(Y.id=setTimeout(function(){j.call(K)},T))}V.LogItem=M;var D=function(){function Y(T,j){this.appenderName=T,this.sendLogItems=j,this.level=V.getTraceLevel(),this.sendWithBufferLevel=2147483647,this.storeInBufferLevel=-2147483648,this.bufferSize=0,this.batchSize=1,this.maxBatchSize=20,this.batchTimeout=2147483647,this.sendTimeout=5e3,this.buffer=[],this.batchBuffer=[],this.batchTimeoutTimer={id:null},this.sendTimeoutTimer={id:null},this.nbrLogItemsSkipped=0,this.nbrLogItemsBeingSent=0;var K="Trying to create an appender without a name or with an empty name";if(null==T)throw K;if(-1!=V._appenderNames.indexOf(T))throw T?"Multiple appenders use the same name "+T:K;V._appenderNames.push(T)}return Y.prototype.addLogItemsToBuffer=function(T){if(this.batchBuffer.length>=this.maxBatchSize)this.nbrLogItemsSkipped+=T.length;else{if(null!=V.maxMessages){if(V.maxMessages<1)return;V.maxMessages-=T.length}this.batchBuffer=this.batchBuffer.concat(T);var j=this;ee(this.batchTimeoutTimer,this.batchTimeout,function(){j.sendBatch.call(j)})}},Y.prototype.batchBufferHasOverdueMessages=function(){for(var T=0;T<this.batchBuffer.length;T++)if(V._getTime()-this.batchBuffer[T].t>this.batchTimeout)return!0;return!1},Y.prototype.batchBufferHasStrandedMessage=function(){return null!=V.maxMessages&&V.maxMessages<1&&this.batchBuffer.length>0},Y.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},Y.prototype.onSendingEnded=function(){P(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},Y.prototype.setOptions=function(T){if(y("level",T,this),y("ipRegex",T,this),y("userAgentRegex",T,this),y("disallow",T,this),y("sendWithBufferLevel",T,this),y("storeInBufferLevel",T,this),y("bufferSize",T,this),y("batchSize",T,this),y("maxBatchSize",T,this),y("batchTimeout",T,this),y("sendTimeout",T,this),this.bufferSize<this.buffer.length&&(this.buffer.length=this.bufferSize),this.maxBatchSize<this.batchSize)throw new V.Exception({message:"maxBatchSize cannot be smaller than batchSize",maxBatchSize:this.maxBatchSize,batchSize:this.batchSize});return this},Y.prototype.log=function(T,j,K,me,ae,le,Se){var $e;if(b(this)&&E(this,le)&&!(ae<this.storeInBufferLevel)){if($e=p(ae,le,Se),ae<this.level)return void(this.bufferSize>0&&(this.buffer.push($e),this.buffer.length>this.bufferSize&&this.buffer.shift()));this.addLogItemsToBuffer([$e]),ae>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete()}},Y.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(P(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var T=this;ee(this.sendTimeoutTimer,this.sendTimeout,function(){T.onSendingEnded.call(T)}),this.sendLogItems(this.batchBuffer,function(){T.batchBuffer.splice(0,T.nbrLogItemsBeingSent),T.nbrLogItemsSkipped>0&&(T.batchBuffer.push(p(4e3,"Lost "+T.nbrLogItemsSkipped+" messages. Either connection with the server was down or logging was disabled via the enabled option. Reduce lost messages by increasing the ajaxAppender option maxBatchSize.",T.appenderName)),T.nbrLogItemsSkipped=0),T.onSendingEnded.call(T)})}},Y}();V.Appender=D;var I=function(Y){function T(j){return Y.call(this,j,T.prototype.sendLogItemsAjax)||this}return B(T,Y),T.prototype.setOptions=function(j){return y("url",j,this),y("beforeSend",j,this),Y.prototype.setOptions.call(this,j),this},T.prototype.sendLogItemsAjax=function(j,K){try{if(!b(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=V._createXMLHttpRequest();var me="/jsnlog.logger";null!=V.defaultAjaxUrl&&(me=V.defaultAjaxUrl),this.url&&(me=this.url),this.xhr.open("POST",me),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",V.requestId);var ae=this;this.xhr.onreadystatechange=function(){4==ae.xhr.readyState&&ae.xhr.status>=200&&ae.xhr.status<300&&K()};var le={r:V.requestId,lg:j};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,le):"function"==typeof V.defaultBeforeSend&&V.defaultBeforeSend.call(this,this.xhr,le);var Se=JSON.stringify(le);this.xhr.send(Se)}catch($e){}},T}(D);V.AjaxAppender=I;var X=function(Y){function T(j){return Y.call(this,j,T.prototype.sendLogItemsConsole)||this}return B(T,Y),T.prototype.clog=function(j){V._console.log(j)},T.prototype.cerror=function(j){V._console.error?V._console.error(j):this.clog(j)},T.prototype.cwarn=function(j){V._console.warn?V._console.warn(j):this.clog(j)},T.prototype.cinfo=function(j){V._console.info?V._console.info(j):this.clog(j)},T.prototype.cdebug=function(j){V._console.debug?V._console.debug(j):this.cinfo(j)},T.prototype.sendLogItemsConsole=function(j,K){try{if(!b(this)||!V._console)return;var me;for(me=0;me<j.length;++me){var ae=j[me],le=ae.n+": "+ae.m;"undefined"==typeof window&&(le=new Date(ae.t)+" | "+le),ae.l<=V.getDebugLevel()?this.cdebug(le):ae.l<=V.getInfoLevel()?this.cinfo(le):ae.l<=V.getWarnLevel()?this.cwarn(le):this.cerror(le)}}catch(Se){}K()},T}(D);V.ConsoleAppender=X;var U,oe=function(){function Y(T){this.loggerName=T,this.seenRegexes=[]}return Y.prototype.setOptions=function(T){return y("level",T,this),y("userAgentRegex",T,this),y("disallow",T,this),y("ipRegex",T,this),y("appenders",T,this),y("onceOnly",T,this),this.seenRegexes=[],this},Y.prototype.buildExceptionObject=function(T){var j={};return T.stack?j.stack=T.stack:j.e=T,T.message&&(j.message=T.message),T.name&&(j.name=T.name),T.data&&(j.data=T.data),T.inner&&(j.inner=this.buildExceptionObject(T.inner)),j},Y.prototype.log=function(T,j,K){var ae,le,me=0;if(!this.appenders)return this;if(T>=this.level&&b(this)&&(K?(le=this.buildExceptionObject(K)).logData=_(j):le=j,E(this,(ae=w(le)).finalString))){if(this.onceOnly)for(me=this.onceOnly.length-1;me>=0;){if(new RegExp(this.onceOnly[me]).test(ae.finalString)){if(this.seenRegexes[me])return this;this.seenRegexes[me]=!0}me--}for(ae.meta=ae.meta||{},me=this.appenders.length-1;me>=0;)this.appenders[me].log(F(T),ae.msg,ae.meta,function(){},T,ae.finalString,this.loggerName),me--}return this},Y.prototype.trace=function(T){return this.log(1e3,T)},Y.prototype.debug=function(T){return this.log(2e3,T)},Y.prototype.info=function(T){return this.log(3e3,T)},Y.prototype.warn=function(T){return this.log(4e3,T)},Y.prototype.error=function(T){return this.log(5e3,T)},Y.prototype.fatal=function(T){return this.log(6e3,T)},Y.prototype.fatalException=function(T,j){return this.log(6e3,T,j)},Y}();V.Logger=oe,V.createAjaxAppender=function se(Y){return new I(Y)},V.createConsoleAppender=function g(Y){return new X(Y)},U="undefined"!=typeof window?new I(""):new X(""),V.__=new V.Logger(""),V.__.setOptions({level:V.getDebugLevel(),appenders:[U]})})(k||(k={})),R.__esModule=!0,R.JL=k,"function"==typeof __jsnlog_configure&&__jsnlog_configure(k),"undefined"!=typeof window&&!window.onerror&&(window.onerror=function(V,y,b,E,_){return k("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:V?V.message||V:"",url:y,"line number":b,column:E},_),!1}),"undefined"!=typeof window&&!window.onunhandledrejection&&(window.onunhandledrejection=function(V){k("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:V.reason?V.reason.message:V.message||null},V.reason)})},1708:Ce=>{"use strict";function R(){this._types=Object.create(null),this._extensions=Object.create(null);for(let B=0;B<arguments.length;B++)this.define(arguments[B]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}R.prototype.define=function(B,k){for(let $ in B){let V=B[$].map(function(y){return y.toLowerCase()});$=$.toLowerCase();for(let y=0;y<V.length;y++){const b=V[y];if("*"!==b[0]){if(!k&&b in this._types)throw new Error('Attempt to change mapping for "'+b+'" extension from "'+this._types[b]+'" to "'+$+'". Pass `force=true` to allow this, otherwise remove "'+b+'" from the list of extensions for "'+$+'".');this._types[b]=$}}if(k||!this._extensions[$]){const y=V[0];this._extensions[$]="*"!==y[0]?y:y.substr(1)}}},R.prototype.getType=function(B){let k=(B=String(B)).replace(/^.*[/\\]/,"").toLowerCase(),$=k.replace(/^.*\./,"").toLowerCase();return($.length<k.length-1||!(k.length<B.length))&&this._types[$]||null},R.prototype.getExtension=function(B){return(B=/^\s*([^;\s]*)/.test(B)&&RegExp.$1)&&this._extensions[B.toLowerCase()]||null},Ce.exports=R},1397:(Ce,R,B)=>{"use strict";let k=B(1708);Ce.exports=new k(B(3775))},3775:Ce=>{Ce.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},4737:Ce=>{var R=["stun:","turn:"];Ce.exports=function(B){var $,V,k=(B||{}).url||B,y={};return("string"==typeof k||k instanceof String)&&(k=k.trim(),$=R[R.indexOf(k.slice(0,5))])?(V=(k=k.slice(5)).split("@"),y.username=B.username,y.credential=B.credential,V.length>1&&(k=V[1],V=V[0].split(":"),y.username=V[0],y.credential=(B||{}).credential||V[1]||""),y.url=$+k,y.urls=[y.url],y):B}},6218:function(Ce,R,B){var k;Ce=B.nmd(Ce),function(){"use strict";var $={function:!0,object:!0},V=$[typeof window]&&window||this,_=$[typeof R]&&R&&$.object&&Ce&&!Ce.nodeType&&Ce&&"object"==typeof global&&global;_&&(_.global===_||_.window===_||_.self===_)&&(V=_);var m=Math.pow(2,53)-1,w=/\bOpera/,G=Object.prototype,J=G.hasOwnProperty,O=G.toString;function N(I){return(I=String(I)).charAt(0).toUpperCase()+I.slice(1)}function S(I){return I=P(I),/^(?:webOS|i(?:OS|P))/.test(I)?I:N(I)}function v(I,X){for(var oe in I)J.call(I,oe)&&X(I[oe],oe,I)}function F(I){return null==I?N(I):O.call(I).slice(8,-1)}function M(I){return String(I).replace(/([ -])(?!$)/g,"$1?")}function p(I,X){var oe=null;return function W(I,X){var oe=-1,se=I?I.length:0;if("number"==typeof se&&se>-1&&se<=m)for(;++oe<se;)X(I[oe],oe,I);else v(I,X)}(I,function(se,g){oe=X(oe,se,g,I)}),oe}function P(I){return String(I).replace(/^ +| +$/g,"")}var D=function ee(I){var X=V,oe=I&&"object"==typeof I&&"String"!=F(I);oe&&(X=I,I=null);var se=X.navigator||{},g=se.userAgent||"";I||(I=g);var ue,Qn,Y=oe?!!se.likeChrome:/\bChrome\b/.test(I)&&!/internal|\n/i.test(O.toString()),T="Object",j=oe?T:"ScriptBridgingProxyObject",K=oe?T:"Environment",me=oe&&X.java?"JavaPackage":F(X.java),ae=oe?T:"RuntimeObject",le=/\bJava/.test(me)&&X.java,Se=le&&F(X.environment)==K,$e=le?"a":"\u03b1",Le=le?"b":"\u03b2",ze=X.document||{},ct=X.operamini||X.opera,Ue=w.test(Ue=oe&&ct?ct["[[Class]]"]:F(ct))?Ue:ct=null,$t=I,qe=[],cn=null,Hn=I==g,Ye=Hn&&ct&&"function"==typeof ct.version&&ct.version(),Re=function Ep(bi){return p(bi,function(gn,Zt){return gn||RegExp("\\b"+(Zt.pattern||M(Zt))+"\\b","i").exec(I)&&(Zt.label||Zt)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),je=function Ay(bi){return p(bi,function(gn,Zt){return gn||RegExp("\\b"+(Zt.pattern||M(Zt))+"\\b","i").exec(I)&&(Zt.label||Zt)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Nt=rr([{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"]),ri=function Sy(bi){return p(bi,function(gn,Zt,Co){return gn||(Zt[Nt]||Zt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Nt)]||RegExp("\\b"+M(Co)+"(?:\\b|\\w*\\d)","i").exec(I))&&Co})}({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),We=function wy(bi){return p(bi,function(gn,Zt){var Co=Zt.pattern||M(Zt);return!gn&&(gn=RegExp("\\b"+Co+"(?:/[\\d.]+|[ \\w.]*)","i").exec(I))&&(gn=function Q(I,X,oe){var se={"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 X&&oe&&/^Win/i.test(I)&&!/^Windows Phone /i.test(I)&&(se=se[/[\d.]+$/.exec(I)])&&(I="Windows "+se),I=String(I),X&&oe&&(I=I.replace(RegExp(X,"i"),oe)),S(I.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])}(gn,Co,Zt.label||Zt)),gn})}(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function rr(bi){return p(bi,function(gn,Zt){var Co=Zt.pattern||M(Zt);return!gn&&(gn=RegExp("\\b"+Co+" *\\d+[.\\w_]*","i").exec(I)||RegExp("\\b"+Co+" *\\w+-[\\w]*","i").exec(I)||RegExp("\\b"+Co+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(I))&&((gn=String(Zt.label&&!RegExp(Co,"i").test(Zt.label)?Zt.label:gn).split("/"))[1]&&!/[\d.]+/.test(gn[0])&&(gn[0]+=" "+gn[1]),Zt=Zt.label||Zt,gn=S(gn[0].replace(RegExp(Co,"i"),Zt).replace(RegExp("; *(?:"+Zt+"[_-])?","i")," ").replace(RegExp("("+Zt+")[-_.]?(\\w)","i"),"$1 $2"))),gn})}function od(bi){return p(bi,function(gn,Zt){return gn||(RegExp(Zt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(I)||0)[1]||null})}if(Re&&(Re=[Re]),/\bAndroid\b/.test(We)&&!Nt&&(ue=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(I))&&(Nt=P(ue[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),ri&&!Nt?Nt=rr([ri]):ri&&Nt&&(Nt=Nt.replace(RegExp("^("+M(ri)+")[-_.\\s]","i"),ri+" ").replace(RegExp("^("+M(ri)+")[-_.]?(\\w)","i"),ri+" $2")),(ue=/\bGoogle TV\b/.exec(Nt))&&(Nt=ue[0]),/\bSimulator\b/i.test(I)&&(Nt=(Nt?Nt+" ":"")+"Simulator"),"Opera Mini"==je&&/\bOPiOS\b/.test(I)&&qe.push("running in Turbo/Uncompressed mode"),"IE"==je&&/\blike iPhone OS\b/.test(I)?(ri=(ue=ee(I.replace(/like iPhone OS/,""))).manufacturer,Nt=ue.product):/^iP/.test(Nt)?(je||(je="Safari"),We="iOS"+((ue=/ OS ([\d_]+)/i.exec(I))?" "+ue[1].replace(/_/g,"."):"")):"Konqueror"==je&&/^Linux\b/i.test(We)?We="Kubuntu":ri&&"Google"!=ri&&(/Chrome/.test(je)&&!/\bMobile Safari\b/i.test(I)||/\bVita\b/.test(Nt))||/\bAndroid\b/.test(We)&&/^Chrome/.test(je)&&/\bVersion\//i.test(I)?(je="Android Browser",We=/\bAndroid\b/.test(We)?We:"Android"):"Silk"==je?(/\bMobi/i.test(I)||(We="Android",qe.unshift("desktop mode")),/Accelerated *= *true/i.test(I)&&qe.unshift("accelerated")):"UC Browser"==je&&/\bUCWEB\b/.test(I)?qe.push("speed mode"):"PaleMoon"==je&&(ue=/\bFirefox\/([\d.]+)\b/.exec(I))?qe.push("identifying as Firefox "+ue[1]):"Firefox"==je&&(ue=/\b(Mobile|Tablet|TV)\b/i.exec(I))?(We||(We="Firefox OS"),Nt||(Nt=ue[1])):!je||(ue=!/\bMinefield\b/i.test(I)&&/\b(?:Firefox|Safari)\b/.exec(je))?(je&&!Nt&&/[\/,]|^[^(]+?\)/.test(I.slice(I.indexOf(ue+"/")+8))&&(je=null),(ue=Nt||ri||We)&&(Nt||ri||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(We))&&(je=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(We)?We:ue)+" Browser")):"Electron"==je&&(ue=(/\bChrome\/([\d.]+)\b/.exec(I)||0)[1])&&qe.push("Chromium "+ue),Ye||(Ye=od(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",M(je),"(?:Firefox|Minefield|NetFront)"])),(ue=("iCab"==Re&&parseFloat(Ye)>3?"WebKit":/\bOpera\b/.test(je)&&(/\bOPR\b/.test(I)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(I)&&!/^(?:Trident|EdgeHTML)$/.test(Re)&&"WebKit"||!Re&&/\bMSIE\b/i.test(I)&&("Mac OS"==We?"Tasman":"Trident")||"WebKit"==Re&&/\bPlayStation\b(?! Vita\b)/i.test(je)&&"NetFront")&&(Re=[ue]),"IE"==je&&(ue=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(I)||0)[1])?(je+=" Mobile",We="Windows Phone "+(/\+$/.test(ue)?ue:ue+".x"),qe.unshift("desktop mode")):/\bWPDesktop\b/i.test(I)?(je="IE Mobile",We="Windows Phone 8.x",qe.unshift("desktop mode"),Ye||(Ye=(/\brv:([\d.]+)/.exec(I)||0)[1])):"IE"!=je&&"Trident"==Re&&(ue=/\brv:([\d.]+)/.exec(I))&&(je&&qe.push("identifying as "+je+(Ye?" "+Ye:"")),je="IE",Ye=ue[1]),Hn){if(function Z(I,X){var oe=null!=I?typeof I[X]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(oe)||"object"==oe&&!I[X])}(X,"global"))if(le&&($t=(ue=le.lang.System).getProperty("os.arch"),We=We||ue.getProperty("os.name")+" "+ue.getProperty("os.version")),Se){try{Ye=X.require("ringo/engine").version.join("."),je="RingoJS"}catch(bi){(ue=X.system)&&ue.global.system==X.system&&(je="Narwhal",We||(We=ue[0].os||null))}je||(je="Rhino")}else"object"==typeof X.process&&!X.process.browser&&(ue=X.process)&&("object"==typeof ue.versions&&("string"==typeof ue.versions.electron?(qe.push("Node "+ue.versions.node),je="Electron",Ye=ue.versions.electron):"string"==typeof ue.versions.nw&&(qe.push("Chromium "+Ye,"Node "+ue.versions.node),je="NW.js",Ye=ue.versions.nw)),je||(je="Node.js",$t=ue.arch,We=ue.platform,Ye=(Ye=/[\d.]+/.exec(ue.version))?Ye[0]:null));else F(ue=X.runtime)==j?(je="Adobe AIR",We=ue.flash.system.Capabilities.os):F(ue=X.phantom)==ae?(je="PhantomJS",Ye=(ue=ue.version||null)&&ue.major+"."+ue.minor+"."+ue.patch):"number"==typeof ze.documentMode&&(ue=/\bTrident\/(\d+)/i.exec(I))?((ue=+ue[1]+4)!=(Ye=[Ye,ze.documentMode])[1]&&(qe.push("IE "+Ye[1]+" mode"),Re&&(Re[1]=""),Ye[1]=ue),Ye="IE"==je?String(Ye[1].toFixed(1)):Ye[0]):"number"==typeof ze.documentMode&&/^(?:Chrome|Firefox)\b/.test(je)&&(qe.push("masking as "+je+" "+Ye),je="IE",Ye="11.0",Re=["Trident"],We="Windows");We=We&&S(We)}if(Ye&&(ue=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ye)||/(?:alpha|beta)(?: ?\d)?/i.exec(I+";"+(Hn&&se.appMinorVersion))||/\bMinefield\b/i.test(I)&&"a")&&(cn=/b/i.test(ue)?"beta":"alpha",Ye=Ye.replace(RegExp(ue+"\\+?$"),"")+("beta"==cn?Le:$e)+(/\d+\+?/.exec(ue)||"")),"Fennec"==je||"Firefox"==je&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(We))je="Firefox Mobile";else if("Maxthon"==je&&Ye)Ye=Ye.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Nt))"Xbox 360"==Nt&&(We=null),"Xbox 360"==Nt&&/\bIEMobile\b/.test(I)&&qe.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(je)&&(!je||Nt||/Browser|Mobi/.test(je))||"Windows CE"!=We&&!/Mobi/i.test(I))if("IE"==je&&Hn)try{null===X.external&&qe.unshift("platform preview")}catch(bi){qe.unshift("embedded")}else(/\bBlackBerry\b/.test(Nt)||/\bBB10\b/.test(I))&&(ue=(RegExp(Nt.replace(/ +/g," *")+"/([.\\d]+)","i").exec(I)||0)[1]||Ye)?(We=((ue=[ue,/BB10/.test(I)])[1]?(Nt=null,ri="BlackBerry"):"Device Software")+" "+ue[0],Ye=null):this!=v&&"Wii"!=Nt&&(Hn&&ct||/Opera/.test(je)&&/\b(?:MSIE|Firefox)\b/i.test(I)||"Firefox"==je&&/\bOS X (?:\d+\.){2,}/.test(We)||"IE"==je&&(We&&!/^Win/.test(We)&&Ye>5.5||/\bWindows XP\b/.test(We)&&Ye>8||8==Ye&&!/\bTrident\b/.test(I)))&&!w.test(ue=ee.call(v,I.replace(w,"")+";"))&&ue.name&&(ue="ing as "+ue.name+((ue=ue.version)?" "+ue:""),w.test(je)?(/\bIE\b/.test(ue)&&"Mac OS"==We&&(We=null),ue="identify"+ue):(ue="mask"+ue,je=Ue?S(Ue.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(ue)&&(We=null),Hn||(Ye=null)),Re=["Presto"],qe.push(ue));else je+=" Mobile";(ue=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(I)||0)[1])&&(ue=[parseFloat(ue.replace(/\.(\d)$/,".0$1")),ue],"Safari"==je&&"+"==ue[1].slice(-1)?(je="WebKit Nightly",cn="alpha",Ye=ue[1].slice(0,-1)):(Ye==ue[1]||Ye==(ue[2]=(/\bSafari\/([\d.]+\+?)/i.exec(I)||0)[1]))&&(Ye=null),ue[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(I)||0)[1],537.36==ue[0]&&537.36==ue[2]&&parseFloat(ue[1])>=28&&"WebKit"==Re&&(Re=["Blink"]),Hn&&(Y||ue[1])?(Re&&(Re[1]="like Chrome"),ue=ue[1]||((ue=ue[0])<530?1:ue<532?2:ue<532.05?3:ue<533?4:ue<534.03?5:ue<534.07?6:ue<534.1?7:ue<534.13?8:ue<534.16?9:ue<534.24?10:ue<534.3?11:ue<535.01?12:ue<535.02?"13+":ue<535.07?15:ue<535.11?16:ue<535.19?17:ue<536.05?18:ue<536.1?19:ue<537.01?20:ue<537.11?"21+":ue<537.13?23:ue<537.18?24:ue<537.24?25:ue<537.36?26:"Blink"!=Re?"27":"28")):(Re&&(Re[1]="like Safari"),ue=(ue=ue[0])<400?1:ue<500?2:ue<526?3:ue<533?4:ue<534?"4+":ue<535?5:ue<537?6:ue<538?7:ue<601?8:ue<602?9:ue<604?10:ue<606?11:ue<608?12:"12"),Re&&(Re[1]+=" "+(ue+="number"==typeof ue?".x":/[.+]/.test(ue)?"":"+")),"Safari"==je&&(!Ye||parseInt(Ye)>45)?Ye=ue:"Chrome"==je&&/\bHeadlessChrome/i.test(I)&&qe.unshift("headless")),"Opera"==je&&(ue=/\bzbov|zvav$/.exec(We))?(je+=" ",qe.unshift("desktop mode"),"zvav"==ue?(je+="Mini",Ye=null):je+="Mobile",We=We.replace(RegExp(" *"+ue+"$"),"")):"Safari"==je&&/\bChrome\b/.exec(Re&&Re[1])?(qe.unshift("desktop mode"),je="Chrome Mobile",Ye=null,/\bOS X\b/.test(We)?(ri="Apple",We="iOS 4.3+"):We=null):/\bSRWare Iron\b/.test(je)&&!Ye&&(Ye=od("Chrome")),Ye&&0==Ye.indexOf(ue=/[\d.]+$/.exec(We))&&I.indexOf("/"+ue+"-")>-1&&(We=P(We.replace(ue,""))),We&&-1!=We.indexOf(je)&&!RegExp(je+" OS").test(We)&&(We=We.replace(RegExp(" *"+M(je)+" *"),"")),Re&&!/\b(?:Avant|Nook)\b/.test(je)&&(/Browser|Lunascape|Maxthon/.test(je)||"Safari"!=je&&/^iOS/.test(We)&&/\bSafari\b/.test(Re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(je)&&Re[1])&&(ue=Re[Re.length-1])&&qe.push(ue),qe.length&&(qe=["("+qe.join("; ")+")"]),ri&&Nt&&Nt.indexOf(ri)<0&&qe.push("on "+ri),Nt&&qe.push((/^on /.test(qe[qe.length-1])?"":"on ")+Nt),We&&(ue=/ ([\d.+]+)$/.exec(We),Qn=ue&&"/"==We.charAt(We.length-ue[0].length-1),We={architecture:32,family:ue&&!Qn?We.replace(ue[0],""):We,version:ue?ue[1]:null,toString:function(){var bi=this.version;return this.family+(bi&&!Qn?" "+bi:"")+(64==this.architecture?" 64-bit":"")}}),(ue=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec($t))&&!/\bi686\b/i.test($t)?(We&&(We.architecture=64,We.family=We.family.replace(RegExp(" *"+ue),"")),je&&(/\bWOW64\b/i.test(I)||Hn&&/\w(?:86|32)$/.test(se.cpuClass||se.platform)&&!/\bWin64; x64\b/i.test(I))&&qe.unshift("32-bit")):We&&/^OS X/.test(We.family)&&"Chrome"==je&&parseFloat(Ye)>=39&&(We.architecture=64),I||(I=null);var _i={};return _i.description=I,_i.layout=Re&&Re[0],_i.manufacturer=ri,_i.name=je,_i.prerelease=cn,_i.product=Nt,_i.ua=I,_i.version=je&&Ye,_i.os=We||{architecture:null,family:null,version:null,toString:function(){return"null"}},_i.parse=ee,_i.toString=function Dy(){return this.description||""},_i.version&&qe.unshift(Ye),_i.name&&qe.unshift(je),We&&je&&!(We==String(We).split(" ")[0]&&(We==je.split(" ")[0]||Nt))&&qe.push(Nt?"("+We+")":"on "+We),qe.length&&(_i.description=qe.join(" ")),_i}();V.platform=D,void 0!==(k=function(){return D}.call(R,B,R,Ce))&&(Ce.exports=k)}.call(this)},1550:(Ce,R,B)=>{const k=B(6947),{MAX_LENGTH:$,MAX_SAFE_INTEGER:V}=B(7278),{re:y,t:b}=B(7134),E=B(3059),{compareIdentifiers:_}=B(6747);class m{constructor(C,G){if(G=E(G),C instanceof m){if(C.loose===!!G.loose&&C.includePrerelease===!!G.includePrerelease)return C;C=C.version}else if("string"!=typeof C)throw new TypeError(`Invalid Version: ${C}`);if(C.length>$)throw new TypeError(`version is longer than ${$} characters`);k("SemVer",C,G),this.options=G,this.loose=!!G.loose,this.includePrerelease=!!G.includePrerelease;const J=C.trim().match(G.loose?y[b.LOOSE]:y[b.FULL]);if(!J)throw new TypeError(`Invalid Version: ${C}`);if(this.raw=C,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>V||this.major<0)throw new TypeError("Invalid major version");if(this.minor>V||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>V||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=J[4]?J[4].split(".").map(O=>{if(/^[0-9]+$/.test(O)){const N=+O;if(N>=0&&N<V)return N}return O}):[],this.build=J[5]?J[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(C){if(k("SemVer.compare",this.version,this.options,C),!(C instanceof m)){if("string"==typeof C&&C===this.version)return 0;C=new m(C,this.options)}return C.version===this.version?0:this.compareMain(C)||this.comparePre(C)}compareMain(C){return C instanceof m||(C=new m(C,this.options)),_(this.major,C.major)||_(this.minor,C.minor)||_(this.patch,C.patch)}comparePre(C){if(C instanceof m||(C=new m(C,this.options)),this.prerelease.length&&!C.prerelease.length)return-1;if(!this.prerelease.length&&C.prerelease.length)return 1;if(!this.prerelease.length&&!C.prerelease.length)return 0;let G=0;do{const J=this.prerelease[G],O=C.prerelease[G];if(k("prerelease compare",G,J,O),void 0===J&&void 0===O)return 0;if(void 0===O)return 1;if(void 0===J)return-1;if(J!==O)return _(J,O)}while(++G)}compareBuild(C){C instanceof m||(C=new m(C,this.options));let G=0;do{const J=this.build[G],O=C.build[G];if(k("prerelease compare",G,J,O),void 0===J&&void 0===O)return 0;if(void 0===O)return 1;if(void 0===J)return-1;if(J!==O)return _(J,O)}while(++G)}inc(C,G){switch(C){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",G);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",G);break;case"prepatch":this.prerelease.length=0,this.inc("patch",G),this.inc("pre",G);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",G),this.inc("pre",G);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let J=this.prerelease.length;for(;--J>=0;)"number"==typeof this.prerelease[J]&&(this.prerelease[J]++,J=-2);-1===J&&this.prerelease.push(0)}G&&(0===_(this.prerelease[0],G)?isNaN(this.prerelease[1])&&(this.prerelease=[G,0]):this.prerelease=[G,0]);break;default:throw new Error(`invalid increment argument: ${C}`)}return this.format(),this.raw=this.version,this}}Ce.exports=m},1892:(Ce,R,B)=>{const k=B(1550);Ce.exports=(V,y)=>new k(V,y).major},9897:(Ce,R,B)=>{const k=B(1550);Ce.exports=(V,y)=>new k(V,y).minor},7278:Ce=>{Ce.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}},6947:Ce=>{const R="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...B)=>console.error("SEMVER",...B):()=>{};Ce.exports=R},6747:Ce=>{const R=/^[0-9]+$/,B=($,V)=>{const y=R.test($),b=R.test(V);return y&&b&&($=+$,V=+V),$===V?0:y&&!b?-1:b&&!y?1:$<V?-1:1};Ce.exports={compareIdentifiers:B,rcompareIdentifiers:($,V)=>B(V,$)}},3059:Ce=>{const R=["includePrerelease","loose","rtl"];Ce.exports=k=>k?"object"!=typeof k?{loose:!0}:R.filter($=>k[$]).reduce(($,V)=>($[V]=!0,$),{}):{}},7134:(Ce,R,B)=>{const{MAX_SAFE_COMPONENT_LENGTH:k}=B(7278),$=B(6947),V=(R=Ce.exports={}).re=[],y=R.src=[],b=R.t={};let E=0;const _=(m,w,C)=>{const G=E++;$(m,G,w),b[m]=G,y[G]=w,V[G]=new RegExp(w,C?"g":void 0)};_("NUMERICIDENTIFIER","0|[1-9]\\d*"),_("NUMERICIDENTIFIERLOOSE","[0-9]+"),_("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),_("MAINVERSION",`(${y[b.NUMERICIDENTIFIER]})\\.(${y[b.NUMERICIDENTIFIER]})\\.(${y[b.NUMERICIDENTIFIER]})`),_("MAINVERSIONLOOSE",`(${y[b.NUMERICIDENTIFIERLOOSE]})\\.(${y[b.NUMERICIDENTIFIERLOOSE]})\\.(${y[b.NUMERICIDENTIFIERLOOSE]})`),_("PRERELEASEIDENTIFIER",`(?:${y[b.NUMERICIDENTIFIER]}|${y[b.NONNUMERICIDENTIFIER]})`),_("PRERELEASEIDENTIFIERLOOSE",`(?:${y[b.NUMERICIDENTIFIERLOOSE]}|${y[b.NONNUMERICIDENTIFIER]})`),_("PRERELEASE",`(?:-(${y[b.PRERELEASEIDENTIFIER]}(?:\\.${y[b.PRERELEASEIDENTIFIER]})*))`),_("PRERELEASELOOSE",`(?:-?(${y[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${y[b.PRERELEASEIDENTIFIERLOOSE]})*))`),_("BUILDIDENTIFIER","[0-9A-Za-z-]+"),_("BUILD",`(?:\\+(${y[b.BUILDIDENTIFIER]}(?:\\.${y[b.BUILDIDENTIFIER]})*))`),_("FULLPLAIN",`v?${y[b.MAINVERSION]}${y[b.PRERELEASE]}?${y[b.BUILD]}?`),_("FULL",`^${y[b.FULLPLAIN]}$`),_("LOOSEPLAIN",`[v=\\s]*${y[b.MAINVERSIONLOOSE]}${y[b.PRERELEASELOOSE]}?${y[b.BUILD]}?`),_("LOOSE",`^${y[b.LOOSEPLAIN]}$`),_("GTLT","((?:<|>)?=?)"),_("XRANGEIDENTIFIERLOOSE",`${y[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_("XRANGEIDENTIFIER",`${y[b.NUMERICIDENTIFIER]}|x|X|\\*`),_("XRANGEPLAIN",`[v=\\s]*(${y[b.XRANGEIDENTIFIER]})(?:\\.(${y[b.XRANGEIDENTIFIER]})(?:\\.(${y[b.XRANGEIDENTIFIER]})(?:${y[b.PRERELEASE]})?${y[b.BUILD]}?)?)?`),_("XRANGEPLAINLOOSE",`[v=\\s]*(${y[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${y[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${y[b.XRANGEIDENTIFIERLOOSE]})(?:${y[b.PRERELEASELOOSE]})?${y[b.BUILD]}?)?)?`),_("XRANGE",`^${y[b.GTLT]}\\s*${y[b.XRANGEPLAIN]}$`),_("XRANGELOOSE",`^${y[b.GTLT]}\\s*${y[b.XRANGEPLAINLOOSE]}$`),_("COERCE",`(^|[^\\d])(\\d{1,${k}})(?:\\.(\\d{1,${k}}))?(?:\\.(\\d{1,${k}}))?(?:$|[^\\d])`),_("COERCERTL",y[b.COERCE],!0),_("LONETILDE","(?:~>?)"),_("TILDETRIM",`(\\s*)${y[b.LONETILDE]}\\s+`,!0),R.tildeTrimReplace="$1~",_("TILDE",`^${y[b.LONETILDE]}${y[b.XRANGEPLAIN]}$`),_("TILDELOOSE",`^${y[b.LONETILDE]}${y[b.XRANGEPLAINLOOSE]}$`),_("LONECARET","(?:\\^)"),_("CARETTRIM",`(\\s*)${y[b.LONECARET]}\\s+`,!0),R.caretTrimReplace="$1^",_("CARET",`^${y[b.LONECARET]}${y[b.XRANGEPLAIN]}$`),_("CARETLOOSE",`^${y[b.LONECARET]}${y[b.XRANGEPLAINLOOSE]}$`),_("COMPARATORLOOSE",`^${y[b.GTLT]}\\s*(${y[b.LOOSEPLAIN]})$|^$`),_("COMPARATOR",`^${y[b.GTLT]}\\s*(${y[b.FULLPLAIN]})$|^$`),_("COMPARATORTRIM",`(\\s*)${y[b.GTLT]}\\s*(${y[b.LOOSEPLAIN]}|${y[b.XRANGEPLAIN]})`,!0),R.comparatorTrimReplace="$1$2$3",_("HYPHENRANGE",`^\\s*(${y[b.XRANGEPLAIN]})\\s+-\\s+(${y[b.XRANGEPLAIN]})\\s*$`),_("HYPHENRANGELOOSE",`^\\s*(${y[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${y[b.XRANGEPLAINLOOSE]})\\s*$`),_("STAR","(<|>)?=?\\s*\\*"),_("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),_("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},6842:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),Object.defineProperty(R,"NIL",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(R,"parse",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(R,"stringify",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(R,"v1",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(R,"v3",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(R,"v4",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(R,"v5",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(R,"validate",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(R,"version",{enumerable:!0,get:function(){return E.default}});var k=C(B(1445)),$=C(B(364)),V=C(B(17)),y=C(B(5508)),b=C(B(344)),E=C(B(3542)),_=C(B(4372)),m=C(B(2673)),w=C(B(3816));function C(G){return G&&G.__esModule?G:{default:G}}},6680:(Ce,R)=>{"use strict";function $(O){return 14+(O+64>>>9<<4)+1}function b(O,N){const Q=(65535&O)+(65535&N);return(O>>16)+(N>>16)+(Q>>16)<<16|65535&Q}function _(O,N,Q,W,S,v){return b(function E(O,N){return O<<N|O>>>32-N}(b(b(N,O),b(W,v)),S),Q)}function m(O,N,Q,W,S,v,F){return _(N&Q|~N&W,O,N,S,v,F)}function w(O,N,Q,W,S,v,F){return _(N&W|Q&~W,O,N,S,v,F)}function C(O,N,Q,W,S,v,F){return _(N^Q^W,O,N,S,v,F)}function G(O,N,Q,W,S,v,F){return _(Q^(N|~W),O,N,S,v,F)}Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0,R.default=function B(O){if("string"==typeof O){const N=unescape(encodeURIComponent(O));O=new Uint8Array(N.length);for(let Q=0;Q<N.length;++Q)O[Q]=N.charCodeAt(Q)}return function k(O){const N=[],Q=32*O.length,W="0123456789abcdef";for(let S=0;S<Q;S+=8){const v=O[S>>5]>>>S%32&255,F=parseInt(W.charAt(v>>>4&15)+W.charAt(15&v),16);N.push(F)}return N}(function V(O,N){O[N>>5]|=128<<N%32,O[$(N)-1]=N;let Q=1732584193,W=-271733879,S=-1732584194,v=271733878;for(let F=0;F<O.length;F+=16){const Z=Q,M=W,p=S,P=v;Q=m(Q,W,S,v,O[F],7,-680876936),v=m(v,Q,W,S,O[F+1],12,-389564586),S=m(S,v,Q,W,O[F+2],17,606105819),W=m(W,S,v,Q,O[F+3],22,-1044525330),Q=m(Q,W,S,v,O[F+4],7,-176418897),v=m(v,Q,W,S,O[F+5],12,1200080426),S=m(S,v,Q,W,O[F+6],17,-1473231341),W=m(W,S,v,Q,O[F+7],22,-45705983),Q=m(Q,W,S,v,O[F+8],7,1770035416),v=m(v,Q,W,S,O[F+9],12,-1958414417),S=m(S,v,Q,W,O[F+10],17,-42063),W=m(W,S,v,Q,O[F+11],22,-1990404162),Q=m(Q,W,S,v,O[F+12],7,1804603682),v=m(v,Q,W,S,O[F+13],12,-40341101),S=m(S,v,Q,W,O[F+14],17,-1502002290),W=m(W,S,v,Q,O[F+15],22,1236535329),Q=w(Q,W,S,v,O[F+1],5,-165796510),v=w(v,Q,W,S,O[F+6],9,-1069501632),S=w(S,v,Q,W,O[F+11],14,643717713),W=w(W,S,v,Q,O[F],20,-373897302),Q=w(Q,W,S,v,O[F+5],5,-701558691),v=w(v,Q,W,S,O[F+10],9,38016083),S=w(S,v,Q,W,O[F+15],14,-660478335),W=w(W,S,v,Q,O[F+4],20,-405537848),Q=w(Q,W,S,v,O[F+9],5,568446438),v=w(v,Q,W,S,O[F+14],9,-1019803690),S=w(S,v,Q,W,O[F+3],14,-187363961),W=w(W,S,v,Q,O[F+8],20,1163531501),Q=w(Q,W,S,v,O[F+13],5,-1444681467),v=w(v,Q,W,S,O[F+2],9,-51403784),S=w(S,v,Q,W,O[F+7],14,1735328473),W=w(W,S,v,Q,O[F+12],20,-1926607734),Q=C(Q,W,S,v,O[F+5],4,-378558),v=C(v,Q,W,S,O[F+8],11,-2022574463),S=C(S,v,Q,W,O[F+11],16,1839030562),W=C(W,S,v,Q,O[F+14],23,-35309556),Q=C(Q,W,S,v,O[F+1],4,-1530992060),v=C(v,Q,W,S,O[F+4],11,1272893353),S=C(S,v,Q,W,O[F+7],16,-155497632),W=C(W,S,v,Q,O[F+10],23,-1094730640),Q=C(Q,W,S,v,O[F+13],4,681279174),v=C(v,Q,W,S,O[F],11,-358537222),S=C(S,v,Q,W,O[F+3],16,-722521979),W=C(W,S,v,Q,O[F+6],23,76029189),Q=C(Q,W,S,v,O[F+9],4,-640364487),v=C(v,Q,W,S,O[F+12],11,-421815835),S=C(S,v,Q,W,O[F+15],16,530742520),W=C(W,S,v,Q,O[F+2],23,-995338651),Q=G(Q,W,S,v,O[F],6,-198630844),v=G(v,Q,W,S,O[F+7],10,1126891415),S=G(S,v,Q,W,O[F+14],15,-1416354905),W=G(W,S,v,Q,O[F+5],21,-57434055),Q=G(Q,W,S,v,O[F+12],6,1700485571),v=G(v,Q,W,S,O[F+3],10,-1894986606),S=G(S,v,Q,W,O[F+10],15,-1051523),W=G(W,S,v,Q,O[F+1],21,-2054922799),Q=G(Q,W,S,v,O[F+8],6,1873313359),v=G(v,Q,W,S,O[F+15],10,-30611744),S=G(S,v,Q,W,O[F+6],15,-1560198380),W=G(W,S,v,Q,O[F+13],21,1309151649),Q=G(Q,W,S,v,O[F+4],6,-145523070),v=G(v,Q,W,S,O[F+11],10,-1120210379),S=G(S,v,Q,W,O[F+2],15,718787259),W=G(W,S,v,Q,O[F+9],21,-343485551),Q=b(Q,Z),W=b(W,M),S=b(S,p),v=b(v,P)}return[Q,W,S,v]}(function y(O){if(0===O.length)return[];const N=8*O.length,Q=new Uint32Array($(N));for(let W=0;W<N;W+=8)Q[W>>5]|=(255&O[W/8])<<W%32;return Q}(O),8*O.length))}},2969:(Ce,R)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var k={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};R.default=k},344:(Ce,R)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0,R.default="00000000-0000-0000-0000-000000000000"},3816:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var k=function $(b){return b&&b.__esModule?b:{default:b}}(B(4372));R.default=function V(b){if(!(0,k.default)(b))throw TypeError("Invalid UUID");let E;const _=new Uint8Array(16);return _[0]=(E=parseInt(b.slice(0,8),16))>>>24,_[1]=E>>>16&255,_[2]=E>>>8&255,_[3]=255&E,_[4]=(E=parseInt(b.slice(9,13),16))>>>8,_[5]=255&E,_[6]=(E=parseInt(b.slice(14,18),16))>>>8,_[7]=255&E,_[8]=(E=parseInt(b.slice(19,23),16))>>>8,_[9]=255&E,_[10]=(E=parseInt(b.slice(24,36),16))/1099511627776&255,_[11]=E/4294967296&255,_[12]=E>>>24&255,_[13]=E>>>16&255,_[14]=E>>>8&255,_[15]=255&E,_}},2391:(Ce,R)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0,R.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},5279:(Ce,R)=>{"use strict";let B;Object.defineProperty(R,"__esModule",{value:!0}),R.default=function $(){if(!B&&(B="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!B))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return B(k)};const k=new Uint8Array(16)},3849:(Ce,R)=>{"use strict";function B(y,b,E,_){switch(y){case 0:return b&E^~b&_;case 1:case 3:return b^E^_;case 2:return b&E^b&_^E&_}}function k(y,b){return y<<b|y>>>32-b}Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0,R.default=function $(y){const b=[1518500249,1859775393,2400959708,3395469782],E=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof y){const C=unescape(encodeURIComponent(y));y=[];for(let G=0;G<C.length;++G)y.push(C.charCodeAt(G))}else Array.isArray(y)||(y=Array.prototype.slice.call(y));y.push(128);const m=Math.ceil((y.length/4+2)/16),w=new Array(m);for(let C=0;C<m;++C){const G=new Uint32Array(16);for(let J=0;J<16;++J)G[J]=y[64*C+4*J]<<24|y[64*C+4*J+1]<<16|y[64*C+4*J+2]<<8|y[64*C+4*J+3];w[C]=G}w[m-1][14]=8*(y.length-1)/Math.pow(2,32),w[m-1][14]=Math.floor(w[m-1][14]),w[m-1][15]=8*(y.length-1)&4294967295;for(let C=0;C<m;++C){const G=new Uint32Array(80);for(let S=0;S<16;++S)G[S]=w[C][S];for(let S=16;S<80;++S)G[S]=k(G[S-3]^G[S-8]^G[S-14]^G[S-16],1);let J=E[0],O=E[1],N=E[2],Q=E[3],W=E[4];for(let S=0;S<80;++S){const v=Math.floor(S/20),F=k(J,5)+B(v,O,N,Q)+W+b[v]+G[S]>>>0;W=Q,Q=N,N=k(O,30)>>>0,O=J,J=F}E[0]=E[0]+J>>>0,E[1]=E[1]+O>>>0,E[2]=E[2]+N>>>0,E[3]=E[3]+Q>>>0,E[4]=E[4]+W>>>0}return[E[0]>>24&255,E[0]>>16&255,E[0]>>8&255,255&E[0],E[1]>>24&255,E[1]>>16&255,E[1]>>8&255,255&E[1],E[2]>>24&255,E[2]>>16&255,E[2]>>8&255,255&E[2],E[3]>>24&255,E[3]>>16&255,E[3]>>8&255,255&E[3],E[4]>>24&255,E[4]>>16&255,E[4]>>8&255,255&E[4]]}},2673:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0,R.unsafeStringify=y;var k=function $(_){return _&&_.__esModule?_:{default:_}}(B(4372));const V=[];for(let _=0;_<256;++_)V.push((_+256).toString(16).slice(1));function y(_,m=0){return(V[_[m+0]]+V[_[m+1]]+V[_[m+2]]+V[_[m+3]]+"-"+V[_[m+4]]+V[_[m+5]]+"-"+V[_[m+6]]+V[_[m+7]]+"-"+V[_[m+8]]+V[_[m+9]]+"-"+V[_[m+10]]+V[_[m+11]]+V[_[m+12]]+V[_[m+13]]+V[_[m+14]]+V[_[m+15]]).toLowerCase()}R.default=function b(_,m=0){const w=y(_,m);if(!(0,k.default)(w))throw TypeError("Stringified UUID is invalid");return w}},1445:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var k=function V(C){return C&&C.__esModule?C:{default:C}}(B(5279)),$=B(2673);let y,b,E=0,_=0;R.default=function m(C,G,J){let O=G&&J||0;const N=G||new Array(16);let Q=(C=C||{}).node||y,W=void 0!==C.clockseq?C.clockseq:b;if(null==Q||null==W){const p=C.random||(C.rng||k.default)();null==Q&&(Q=y=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==W&&(W=b=16383&(p[6]<<8|p[7]))}let S=void 0!==C.msecs?C.msecs:Date.now(),v=void 0!==C.nsecs?C.nsecs:_+1;const F=S-E+(v-_)/1e4;if(F<0&&void 0===C.clockseq&&(W=W+1&16383),(F<0||S>E)&&void 0===C.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");E=S,_=v,b=W,S+=122192928e5;const Z=(1e4*(268435455&S)+v)%4294967296;N[O++]=Z>>>24&255,N[O++]=Z>>>16&255,N[O++]=Z>>>8&255,N[O++]=255&Z;const M=S/4294967296*1e4&268435455;N[O++]=M>>>8&255,N[O++]=255&M,N[O++]=M>>>24&15|16,N[O++]=M>>>16&255,N[O++]=W>>>8|128,N[O++]=255&W;for(let p=0;p<6;++p)N[O+p]=Q[p];return G||(0,$.unsafeStringify)(N)}},364:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var k=V(B(6319)),$=V(B(6680));function V(E){return E&&E.__esModule?E:{default:E}}var b=(0,k.default)("v3",48,$.default);R.default=b},6319:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.URL=R.DNS=void 0,R.default=function _(m,w,C){function G(J,O,N,Q){var W;if("string"==typeof J&&(J=function y(m){m=unescape(encodeURIComponent(m));const w=[];for(let C=0;C<m.length;++C)w.push(m.charCodeAt(C));return w}(J)),"string"==typeof O&&(O=(0,$.default)(O)),16!==(null===(W=O)||void 0===W?void 0:W.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let S=new Uint8Array(16+J.length);if(S.set(O),S.set(J,O.length),S=C(S),S[6]=15&S[6]|w,S[8]=63&S[8]|128,N){Q=Q||0;for(let v=0;v<16;++v)N[Q+v]=S[v];return N}return(0,k.unsafeStringify)(S)}try{G.name=m}catch(J){}return G.DNS=b,G.URL=E,G};var k=B(2673),$=function V(m){return m&&m.__esModule?m:{default:m}}(B(3816));const b="6ba7b810-9dad-11d1-80b4-00c04fd430c8";R.DNS=b;const E="6ba7b811-9dad-11d1-80b4-00c04fd430c8";R.URL=E},17:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var k=y(B(2969)),$=y(B(5279)),V=B(2673);function y(_){return _&&_.__esModule?_:{default:_}}R.default=function b(_,m,w){if(k.default.randomUUID&&!m&&!_)return k.default.randomUUID();const C=(_=_||{}).random||(_.rng||$.default)();if(C[6]=15&C[6]|64,C[8]=63&C[8]|128,m){w=w||0;for(let G=0;G<16;++G)m[w+G]=C[G];return m}return(0,V.unsafeStringify)(C)}},5508:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var k=V(B(6319)),$=V(B(3849));function V(E){return E&&E.__esModule?E:{default:E}}var b=(0,k.default)("v5",80,$.default);R.default=b},4372:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var k=function $(b){return b&&b.__esModule?b:{default:b}}(B(2391));R.default=function V(b){return"string"==typeof b&&k.default.test(b)}},3542:(Ce,R,B)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var k=function $(b){return b&&b.__esModule?b:{default:b}}(B(4372));R.default=function V(b){if(!(0,k.default)(b))throw TypeError("Invalid UUID");return parseInt(b.slice(14,15),16)}},1181:Ce=>{function R(){}Ce.exports=R,R.mixin=function(B){var k=B.prototype||B;k.isWildEmitter=!0,k.on=function($,V,y){this.callbacks=this.callbacks||{};var b=3===arguments.length,E=b?arguments[1]:void 0,_=b?arguments[2]:arguments[1];return _._groupName=E,(this.callbacks[$]=this.callbacks[$]||[]).push(_),this},k.once=function($,V,y){var b=this,E=3===arguments.length,_=E?arguments[1]:void 0,m=E?arguments[2]:arguments[1];function w(){b.off($,w),m.apply(this,arguments)}return this.on($,_,w),this},k.releaseGroup=function($){var V,y,b,E;for(V in this.callbacks=this.callbacks||{},this.callbacks)for(y=0,b=(E=this.callbacks[V]).length;y<b;y++)E[y]._groupName===$&&(E.splice(y,1),y--,b--);return this},k.off=function($,V){this.callbacks=this.callbacks||{};var b,y=this.callbacks[$];return y?1===arguments.length?(delete this.callbacks[$],this):(-1!==(b=y.indexOf(V))&&(y.splice(b,1),0===y.length&&delete this.callbacks[$]),this):this},k.emit=function($){this.callbacks=this.callbacks||{};var E,_,w,V=[].slice.call(arguments,1),y=this.callbacks[$],b=this.getWildcardCallbacks($);if(y)for(E=0,_=(w=y.slice()).length;E<_&&w[E];++E)w[E].apply(this,V);if(b)for(_=b.length,E=0,_=(w=b.slice()).length;E<_&&w[E];++E)w[E].apply(this,[$].concat(V));return this},k.getWildcardCallbacks=function($){this.callbacks=this.callbacks||{};var V,y,b=[];for(V in this.callbacks)y=V.split("*"),("*"===V||2===y.length&&$.slice(0,y[0].length)===y[0])&&(b=b.concat(this.callbacks[V]));return b}},R.mixin(R)},2937:function(Ce,R,B){var k;!function($){"use strict";function V(){}var y=V.prototype,b=$.EventEmitter;function E(w,C){for(var G=w.length;G--;)if(w[G].listener===C)return G;return-1}function _(w){return function(){return this[w].apply(this,arguments)}}function m(w){return"function"==typeof w||w instanceof RegExp||!(!w||"object"!=typeof w)&&m(w.listener)}y.getListeners=function(C){var J,O,G=this._getEvents();if(C instanceof RegExp)for(O in J={},G)G.hasOwnProperty(O)&&C.test(O)&&(J[O]=G[O]);else J=G[C]||(G[C]=[]);return J},y.flattenListeners=function(C){var J,G=[];for(J=0;J<C.length;J+=1)G.push(C[J].listener);return G},y.getListenersAsObject=function(C){var J,G=this.getListeners(C);return G instanceof Array&&((J={})[C]=G),J||G},y.addListener=function(C,G){if(!m(G))throw new TypeError("listener must be a function");var N,J=this.getListenersAsObject(C),O="object"==typeof G;for(N in J)J.hasOwnProperty(N)&&-1===E(J[N],G)&&J[N].push(O?G:{listener:G,once:!1});return this},y.on=_("addListener"),y.addOnceListener=function(C,G){return this.addListener(C,{listener:G,once:!0})},y.once=_("addOnceListener"),y.defineEvent=function(C){return this.getListeners(C),this},y.defineEvents=function(C){for(var G=0;G<C.length;G+=1)this.defineEvent(C[G]);return this},y.removeListener=function(C,G){var O,N,J=this.getListenersAsObject(C);for(N in J)J.hasOwnProperty(N)&&-1!==(O=E(J[N],G))&&J[N].splice(O,1);return this},y.off=_("removeListener"),y.addListeners=function(C,G){return this.manipulateListeners(!1,C,G)},y.removeListeners=function(C,G){return this.manipulateListeners(!0,C,G)},y.manipulateListeners=function(C,G,J){var O,N,Q=C?this.removeListener:this.addListener,W=C?this.removeListeners:this.addListeners;if("object"!=typeof G||G instanceof RegExp)for(O=J.length;O--;)Q.call(this,G,J[O]);else for(O in G)G.hasOwnProperty(O)&&(N=G[O])&&("function"==typeof N?Q.call(this,O,N):W.call(this,O,N));return this},y.removeEvent=function(C){var O,G=typeof C,J=this._getEvents();if("string"===G)delete J[C];else if(C instanceof RegExp)for(O in J)J.hasOwnProperty(O)&&C.test(O)&&delete J[O];else delete this._events;return this},y.removeAllListeners=_("removeEvent"),y.emitEvent=function(C,G){var O,N,Q,W,J=this.getListenersAsObject(C);for(W in J)if(J.hasOwnProperty(W))for(O=J[W].slice(0),Q=0;Q<O.length;Q++)!0===(N=O[Q]).once&&this.removeListener(C,N.listener),N.listener.apply(this,G||[])===this._getOnceReturnValue()&&this.removeListener(C,N.listener);return this},y.trigger=_("emitEvent"),y.emit=function(C){var G=Array.prototype.slice.call(arguments,1);return this.emitEvent(C,G)},y.setOnceReturnValue=function(C){return this._onceReturnValue=C,this},y._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},y._getEvents=function(){return this._events||(this._events={})},V.noConflict=function(){return $.EventEmitter=b,V},void 0!==(k=function(){return V}.call($,B,$,Ce))&&(Ce.exports=k)}("undefined"!=typeof window?window:this||{})},3749:(Ce,R,B)=>{"use strict";function k(t){return"function"==typeof t}function $(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const V=$(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function y(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class b{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(k(i))try{i()}catch(r){n=r instanceof V?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{m(r)}catch(s){n=null!=n?n:[],s instanceof V?n=[...n,...s.errors]:n.push(s)}}if(n)throw new V(n)}}add(n){var e;if(n&&n!==this)if(this.closed)m(n);else{if(n instanceof b){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&y(e,n)}remove(n){const{_finalizers:e}=this;e&&y(e,n),n instanceof b&&n._removeParent(this)}}b.EMPTY=(()=>{const t=new b;return t.closed=!0,t})();const E=b.EMPTY;function _(t){return t instanceof b||t&&"closed"in t&&k(t.remove)&&k(t.add)&&k(t.unsubscribe)}function m(t){k(t)?t():t.unsubscribe()}const w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},C={setTimeout(t,n,...e){const{delegate:i}=C;return null!=i&&i.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=C;return((null==n?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:void 0};function G(t){C.setTimeout(()=>{const{onUnhandledError:n}=w;if(!n)throw t;n(t)})}function J(){}const O=W("C",void 0,void 0);function W(t,n,e){return{kind:t,value:n,error:e}}let S=null;function v(t){if(w.useDeprecatedSynchronousErrorHandling){const n=!S;if(n&&(S={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=S;if(S=null,e)throw i}}else t()}class Z extends b{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,_(n)&&n.add(this)):this.destination=oe}static create(n,e,i){return new ee(n,e,i)}next(n){this.isStopped?X(function Q(t){return W("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?X(function N(t){return W("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?X(O,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const M=Function.prototype.bind;function p(t,n){return M.call(t,n)}class P{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){D(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){D(i)}else D(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){D(e)}}}class ee extends Z{constructor(n,e,i){let o;if(super(),k(n)||!n)o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let r;this&&w.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&p(n.next,r),error:n.error&&p(n.error,r),complete:n.complete&&p(n.complete,r)}):o=n}this.destination=new P(o)}}function D(t){w.useDeprecatedSynchronousErrorHandling?function F(t){w.useDeprecatedSynchronousErrorHandling&&S&&(S.errorThrown=!0,S.error=t)}(t):G(t)}function X(t,n){const{onStoppedNotification:e}=w;e&&C.setTimeout(()=>e(t,n))}const oe={closed:!0,next:J,error:function I(t){throw t},complete:J},se="function"==typeof Symbol&&Symbol.observable||"@@observable";function g(t){return t}function Y(t){return 0===t.length?g:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let T=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function me(t){return t&&t instanceof Z||function K(t){return t&&k(t.next)&&k(t.error)&&k(t.complete)}(t)&&_(t)}(e)?e:new ee(e,i,o);return v(()=>{const{operator:s,source:a}=this;r.add(s?s.call(r,a):a?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=j(i))((o,r)=>{const s=new ee({next:a=>{try{e(a)}catch(l){r(l),s.unsubscribe()}},error:r,complete:o});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[se](){return this}pipe(...e){return Y(e)(this)}toPromise(e){return new(e=j(e))((i,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>i(r))})}}return t.create=n=>new t(n),t})();function j(t){var n;return null!==(n=null!=t?t:w.Promise)&&void 0!==n?n:Promise}const ae=$(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let le=(()=>{class t extends T{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Se(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new ae}next(e){v(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){v(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){v(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?E:(this.currentObservers=null,r.push(e),new b(()=>{this.currentObservers=null,y(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new T;return e.source=this,e}}return t.create=(n,e)=>new Se(n,e),t})();class Se extends le{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:E}}function $e(t){return k(null==t?void 0:t.lift)}function Le(t){return n=>{if($e(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ze(t,n,e,i,o){return new ct(t,n,e,i,o)}class ct extends Z{constructor(n,e,i,o,r,s){super(n),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Ue(t,n){return Le((e,i)=>{let o=0;e.subscribe(ze(i,r=>{i.next(t.call(n,r,o++))}))})}var ue=function(t,n){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])})(t,n)};function $t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}ue(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var qe=function(){return qe=Object.assign||function(n){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},qe.apply(this,arguments)};function Re(t,n,e,i){return new(e||(e=Promise))(function(r,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?r(u.value):function o(r){return r instanceof e?r:new e(function(s){s(r)})}(u.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}function rr(t){return this instanceof rr?(this.v=t,this):new rr(t)}function od(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){i[f]&&(o[f]=function(A){return new Promise(function(H,te){r.push([f,A,H,te])>1||a(f,A)})})}function a(f,A){try{!function l(f){f.value instanceof rr?Promise.resolve(f.value.v).then(c,u):d(r[0][2],f)}(i[f](A))}catch(H){d(r[0][3],H)}}function c(f){a("next",f)}function u(f){a("throw",f)}function d(f,A){f(A),r.shift(),r.length&&a(r[0][0],r[0][1])}}function _i(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function We(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(s){return new Promise(function(a,l){!function o(r,s,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},s)}(a,l,(s=t[r](s)).done,s.value)})}}}const Sp=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function My(t){return k(null==t?void 0:t.then)}function Ty(t){return k(t[se])}function xy(t){return Symbol.asyncIterator&&k(null==t?void 0:t[Symbol.asyncIterator])}function Oy(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Iy=function TP(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ry(t){return k(null==t?void 0:t[Iy])}function Py(t){return od(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield rr(e.read());if(o)return yield rr(void 0);yield yield rr(i)}}finally{e.releaseLock()}})}function ky(t){return k(null==t?void 0:t.getReader)}function Qi(t){if(t instanceof T)return t;if(null!=t){if(Ty(t))return function xP(t){return new T(n=>{const e=t[se]();if(k(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Sp(t))return function OP(t){return new T(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}(t);if(My(t))return function IP(t){return new T(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,G)})}(t);if(xy(t))return Ny(t);if(Ry(t))return function RP(t){return new T(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(ky(t))return function PP(t){return Ny(Py(t))}(t)}throw Oy(t)}function Ny(t){return new T(n=>{(function kP(t,n){var e,i,o,r;return Re(this,void 0,void 0,function*(){try{for(e=_i(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Er(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function si(t,n,e=1/0){return k(n)?si((i,o)=>Ue((r,s)=>n(i,r,o,s))(Qi(t(i,o))),e):("number"==typeof n&&(e=n),Le((i,o)=>function NP(t,n,e,i,o,r,s,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&n.complete()},A=te=>c<i?H(te):l.push(te),H=te=>{r&&n.next(te),c++;let pe=!1;Qi(e(te,u++)).subscribe(ze(n,he=>{null==o||o(he),r?A(he):n.next(he)},()=>{pe=!0},void 0,()=>{if(pe)try{for(c--;l.length&&c<i;){const he=l.shift();s?Er(n,s,()=>H(he)):H(he)}f()}catch(he){n.error(he)}}))};return t.subscribe(ze(n,A,()=>{d=!0,f()})),()=>{null==a||a()}}(i,o,t,e)))}function ba(t=1/0){return si(g,t)}const jo=new T(t=>t.complete());function Ly(t){return t&&k(t.schedule)}function Ap(t){return t[t.length-1]}function Fy(t){return k(Ap(t))?t.pop():void 0}function ic(t){return Ly(Ap(t))?t.pop():void 0}function By(t,n=0){return Le((e,i)=>{e.subscribe(ze(i,o=>Er(i,t,()=>i.next(o),n),()=>Er(i,t,()=>i.complete(),n),o=>Er(i,t,()=>i.error(o),n)))})}function Vy(t,n=0){return Le((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function jy(t,n){if(!t)throw new Error("Iterable cannot be null");return new T(e=>{Er(e,n,()=>{const i=t[Symbol.asyncIterator]();Er(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function Kn(t,n){return n?function GP(t,n){if(null!=t){if(Ty(t))return function BP(t,n){return Qi(t).pipe(Vy(n),By(n))}(t,n);if(Sp(t))return function jP(t,n){return new T(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(My(t))return function VP(t,n){return Qi(t).pipe(Vy(n),By(n))}(t,n);if(xy(t))return jy(t,n);if(Ry(t))return function UP(t,n){return new T(e=>{let i;return Er(e,n,()=>{i=t[Iy](),Er(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(s){return void e.error(s)}r?e.complete():e.next(o)},0,!0)}),()=>k(null==i?void 0:i.return)&&i.return()})}(t,n);if(ky(t))return function HP(t,n){return jy(Py(t),n)}(t,n)}throw Oy(t)}(t,n):Qi(t)}function ki(...t){const n=ic(t),e=function FP(t,n){return"number"==typeof Ap(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Qi(i[0]):ba(e)(Kn(i,n)):jo}function Uy(t={}){const{connector:n=(()=>new le),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return r=>{let s,a,l,c=0,u=!1,d=!1;const f=()=>{null==a||a.unsubscribe(),a=void 0},A=()=>{f(),s=l=void 0,u=d=!1},H=()=>{const te=s;A(),null==te||te.unsubscribe()};return Le((te,pe)=>{c++,!d&&!u&&f();const he=l=null!=l?l:n();pe.add(()=>{c--,0===c&&!d&&!u&&(a=wp(H,o))}),he.subscribe(pe),!s&&c>0&&(s=new ee({next:_e=>he.next(_e),error:_e=>{d=!0,f(),a=wp(A,e,_e),he.error(_e)},complete:()=>{u=!0,f(),a=wp(A,i),he.complete()}}),Qi(te).subscribe(s))})(r)}}function wp(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new ee({next:()=>{i.unsubscribe(),t()}});return n(...e).subscribe(i)}function fn(t){for(let n in t)if(t[n]===fn)return n;throw Error("Could not find renamed property on target object.")}function Dp(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function pn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(pn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Mp(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const zP=fn({__forward_ref__:fn});function Kt(t){return t.__forward_ref__=Kt,t.toString=function(){return pn(this())},t}function _t(t){return Tp(t)?t():t}function Tp(t){return"function"==typeof t&&t.hasOwnProperty(zP)&&t.__forward_ref__===Kt}class Me extends Error{constructor(n,e){super(function rd(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}(n,e)),this.code=n}}function At(t){return"string"==typeof t?t:null==t?"":String(t)}function sd(t,n){throw new Me(-201,!1)}function oo(t,n){null==t&&function on(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function ye(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function rt(t){return{providers:t.providers||[],imports:t.imports||[]}}function ad(t){return Hy(t,ld)||Hy(t,zy)}function Hy(t,n){return t.hasOwnProperty(n)?t[n]:null}function Gy(t){return t&&(t.hasOwnProperty(xp)||t.hasOwnProperty(JP))?t[xp]:null}const ld=fn({\u0275prov:fn}),xp=fn({\u0275inj:fn}),zy=fn({ngInjectableDef:fn}),JP=fn({ngInjectorDef:fn});var pt=(()=>((pt=pt||{})[pt.Default=0]="Default",pt[pt.Host=1]="Host",pt[pt.Self=2]="Self",pt[pt.SkipSelf=4]="SkipSelf",pt[pt.Optional=8]="Optional",pt))();let Op;function Eo(t){const n=Op;return Op=t,n}function qy(t,n,e){const i=ad(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&pt.Optional?null:void 0!==n?n:void sd(pn(t))}function Qr(t){return{toString:t}.toString()}var Uo=(()=>((Uo=Uo||{})[Uo.OnPush=0]="OnPush",Uo[Uo.Default=1]="Default",Uo))(),Ho=(()=>{return(t=Ho||(Ho={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Ho;var t})();const mn=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),ya={},nn=[],cd=fn({\u0275cmp:fn}),Ip=fn({\u0275dir:fn}),Rp=fn({\u0275pipe:fn}),Wy=fn({\u0275mod:fn}),Ar=fn({\u0275fac:fn}),oc=fn({__NG_ELEMENT_ID__:fn});let tk=0;function et(t){return Qr(()=>{const e=!0===t.standalone,i={},o={type:t.type,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:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Uo.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||nn,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ho.Emulated,id:"c"+tk++,styles:t.styles||nn,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.dependencies,s=t.features;return o.inputs=Qy(t.inputs,i),o.outputs=Qy(t.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=r?()=>("function"==typeof r?r():r).map($y).filter(Yy):null,o.pipeDefs=r?()=>("function"==typeof r?r():r).map(Li).filter(Yy):null,o})}function $y(t){return an(t)||Ni(t)}function Yy(t){return null!==t}function st(t){return Qr(()=>({type:t.type,bootstrap:t.bootstrap||nn,declarations:t.declarations||nn,imports:t.imports||nn,exports:t.exports||nn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Qy(t,n){if(null==t)return ya;const e={};for(const i in t)if(t.hasOwnProperty(i)){let o=t[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),e[o]=i,n&&(n[o]=r)}return e}const ge=et;function Gn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function an(t){return t[cd]||null}function Ni(t){return t[Ip]||null}function Li(t){return t[Rp]||null}function ro(t,n){const e=t[Wy]||null;if(!e&&!0===n)throw new Error(`Type ${pn(t)} does not have '\u0275mod' property.`);return e}function Ki(t){return Array.isArray(t)&&"object"==typeof t[1]}function zo(t){return Array.isArray(t)&&!0===t[1]}function Np(t){return 0!=(8&t.flags)}function fd(t){return 2==(2&t.flags)}function pd(t){return 1==(1&t.flags)}function qo(t){return null!==t.template}function ak(t){return 0!=(256&t[2])}function xs(t,n){return t.hasOwnProperty(Ar)?t[Ar]:null}class Xy{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function zn(){return Jy}function Jy(t){return t.type.prototype.ngOnChanges&&(t.setInput=dk),uk}function uk(){const t=tC(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===ya)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function dk(t,n,e,i){const o=tC(t)||function hk(t,n){return t[eC]=n}(t,{previous:ya,current:null}),r=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[e],l=s[a];r[a]=new Xy(l&&l.currentValue,n,s===ya),t[i]=n}zn.ngInherit=!0;const eC="__ngSimpleChanges__";function tC(t){return t[eC]||null}function Zn(t){for(;Array.isArray(t);)t=t[0];return t}function gd(t,n){return Zn(n[t])}function wo(t,n){return Zn(n[t.index])}function jp(t,n){return t.data[n]}function wa(t,n){return t[n]}function ao(t,n){const e=n[t];return Ki(e)?e:e[0]}function md(t){return 64==(64&t[2])}function Kr(t,n){return null==n?null:t[n]}function nC(t){t[18]=0}function Up(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const Et={lFrame:hC(null),bindingsEnabled:!0};function oC(){return Et.bindingsEnabled}function ke(){return Et.lFrame.lView}function Qt(){return Et.lFrame.tView}function Be(t){return Et.lFrame.contextLView=t,t[8]}function Ve(t){return Et.lFrame.contextLView=null,t}function ai(){let t=rC();for(;null!==t&&64===t.type;)t=t.parent;return t}function rC(){return Et.lFrame.currentTNode}function sr(t,n){const e=Et.lFrame;e.currentTNode=t,e.isParent=n}function Hp(){return Et.lFrame.isParent}function Gp(){Et.lFrame.isParent=!1}function Fi(){const t=Et.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Da(){return Et.lFrame.bindingIndex++}function Dr(t){const n=Et.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function Mk(t,n){const e=Et.lFrame;e.bindingIndex=e.bindingRootIndex=t,zp(n)}function zp(t){Et.lFrame.currentDirectiveIndex=t}function qp(t){const n=Et.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function cC(){return Et.lFrame.currentQueryIndex}function Wp(t){Et.lFrame.currentQueryIndex=t}function xk(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function uC(t,n,e){if(e&pt.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&pt.Host||(o=xk(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Et.lFrame=dC();return i.currentTNode=n,i.lView=t,!0}function $p(t){const n=dC(),e=t[1];Et.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function dC(){const t=Et.lFrame,n=null===t?null:t.child;return null===n?hC(t):n}function hC(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function fC(){const t=Et.lFrame;return Et.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const pC=fC;function Yp(){const t=fC();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Bi(){return Et.lFrame.selectedIndex}function Zr(t){Et.lFrame.selectedIndex=t}function Ln(){const t=Et.lFrame;return jp(t.tView,t.selectedIndex)}function uc(){Et.lFrame.currentNamespace="svg"}function vd(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=r;s&&(t.contentHooks||(t.contentHooks=[])).push(-e,s),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(e,u)}}function _d(t,n,e){gC(t,n,3,e)}function bd(t,n,e,i){(3&t[2])===e&&gC(t,n,e,i)}function Qp(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function gC(t,n,e,i){const r=null!=i?i:-1,s=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<s;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<r||-1==r)&&(Fk(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function Fk(t,n,e,i){const o=e[i]<0,r=e[i+1],a=t[o?-e[i]:e[i]];if(o){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class dc{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function yd(t,n,e){let i=0;for(;i<e.length;){const o=e[i];if("number"==typeof o){if(0!==o)break;i++;const r=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,r)}else{const r=o,s=e[++i];vC(r)?t.setProperty(n,r,s):t.setAttribute(n,r,s),i++}}return i}function mC(t){return 3===t||4===t||6===t}function vC(t){return 64===t.charCodeAt(0)}function Cd(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const o=n[i];"number"==typeof o?e=o:0===e||_C(t,e,o,null,-1===e||2===e?n[++i]:null)}}return t}function _C(t,n,e,i,o){let r=0,s=t.length;if(-1===n)s=-1;else for(;r<t.length;){const a=t[r++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=r-1;break}}}for(;r<t.length;){const a=t[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==o&&(t[r+1]=o));if(i===t[r+1])return void(t[r+2]=o)}r++,null!==i&&r++,null!==o&&r++}-1!==s&&(t.splice(s,0,n),r=s+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==o&&t.splice(r++,0,o)}function bC(t){return-1!==t}function Ma(t){return 32767&t}function Ta(t,n){let e=function Hk(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Zp=!0;function Ed(t){const n=Zp;return Zp=t,n}let Gk=0;const ar={};function fc(t,n){const e=Jp(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Xp(i.data,t),Xp(n,null),Xp(i.blueprint,null));const o=Sd(t,n),r=t.injectorIndex;if(bC(o)){const s=Ma(o),a=Ta(o,n),l=a[1].data;for(let c=0;c<8;c++)n[r+c]=a[s+c]|l[s+c]}return n[r+8]=o,r}function Xp(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Jp(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Sd(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=TC(o),null===i)return-1;if(e++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Ad(t,n,e){!function zk(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(oc)&&(i=e[oc]),null==i&&(i=e[oc]=Gk++);const o=255&i;n.data[t+(o>>5)]|=1<<o}(t,n,e)}function EC(t,n,e){if(e&pt.Optional||void 0!==t)return t;sd()}function SC(t,n,e,i){if(e&pt.Optional&&void 0===i&&(i=null),0==(e&(pt.Self|pt.Host))){const o=t[9],r=Eo(void 0);try{return o?o.get(n,i,e&pt.Optional):qy(n,i,e&pt.Optional)}finally{Eo(r)}}return EC(i,0,e)}function AC(t,n,e,i=pt.Default,o){if(null!==t){if(1024&n[2]){const s=function Qk(t,n,e,i,o){let r=t,s=n;for(;null!==r&&null!==s&&1024&s[2]&&!(256&s[2]);){const a=wC(r,s,e,i|pt.Self,ar);if(a!==ar)return a;let l=r.parent;if(!l){const c=s[21];if(c){const u=c.get(e,ar,i);if(u!==ar)return u}l=TC(s),s=s[15]}r=l}return o}(t,n,e,i,ar);if(s!==ar)return s}const r=wC(t,n,e,i,ar);if(r!==ar)return r}return SC(n,e,i,o)}function wC(t,n,e,i,o){const r=function $k(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(oc)?t[oc]:void 0;return"number"==typeof n?n>=0?255&n:Yk:n}(e);if("function"==typeof r){if(!uC(n,t,i))return i&pt.Host?EC(o,0,i):SC(n,e,i,o);try{const s=r(i);if(null!=s||i&pt.Optional)return s;sd()}finally{pC()}}else if("number"==typeof r){let s=null,a=Jp(t,n),l=-1,c=i&pt.Host?n[16][6]:null;for((-1===a||i&pt.SkipSelf)&&(l=-1===a?Sd(t,n):n[a+8],-1!==l&&MC(i,!1)?(s=n[1],a=Ma(l),n=Ta(l,n)):a=-1);-1!==a;){const u=n[1];if(DC(r,a,u.data)){const d=Wk(a,n,e,s,i,c);if(d!==ar)return d}l=n[a+8],-1!==l&&MC(i,n[1].data[a+8]===c)&&DC(r,a,n)?(s=u,a=Ma(l),n=Ta(l,n)):a=-1}}return o}function Wk(t,n,e,i,o,r){const s=n[1],a=s.data[t+8],u=wd(a,s,e,null==i?fd(a)&&Zp:i!=s&&0!=(3&a.type),o&pt.Host&&r===a);return null!==u?pc(n,s,u,a):ar}function wd(t,n,e,i,o){const r=t.providerIndexes,s=n.data,a=1048575&r,l=t.directiveStart,u=r>>20,f=o?a+u:t.directiveEnd;for(let A=i?a:a+u;A<f;A++){const H=s[A];if(A<l&&e===H||A>=l&&H.type===e)return A}if(o){const A=s[l];if(A&&qo(A)&&A.type===e)return l}return null}function pc(t,n,e,i){let o=t[e];const r=n.data;if(function Bk(t){return t instanceof dc}(o)){const s=o;s.resolving&&function qP(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Me(-200,`Circular dependency in DI detected for ${t}${e}`)}(function tn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():At(t)}(r[e]));const a=Ed(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Eo(s.injectImpl):null;uC(t,i,pt.Default);try{o=t[e]=s.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Lk(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const s=Jy(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}o&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,o),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&Eo(l),Ed(a),s.resolving=!1,pC()}}return o}function DC(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function MC(t,n){return!(t&pt.Self||t&pt.Host&&n)}class xa{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return AC(this._tNode,this._lView,n,i,e)}}function Yk(){return new xa(ai(),ke())}function tt(t){return Qr(()=>{const n=t.prototype.constructor,e=n[Ar]||eg(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[Ar]||eg(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function eg(t){return Tp(t)?()=>{const n=eg(_t(t));return n&&n()}:xs(t)}function TC(t){const n=t[1],e=n.type;return 2===e?n.declTNode:1===e?t[6]:null}function Wo(t){return function qk(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o<i;){const r=e[o];if(mC(r))break;if(0===r)o+=2;else if("number"==typeof r)for(o++;o<i&&"string"==typeof e[o];)o++;else{if(r===n)return e[o+1];o+=2}}}return null}(ai(),t)}const Ia="__parameters__";function Pa(t,n,e){return Qr(()=>{const i=function tg(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const s=new o(...r);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Ia)?l[Ia]:Object.defineProperty(l,Ia,{value:[]})[Ia];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class Ie{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ye({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function lo(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),lo(i,n)):n!==t&&n.push(i)}return n}function Mr(t,n){t.forEach(e=>Array.isArray(e)?Mr(e,n):n(e))}function OC(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Dd(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function vc(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function co(t,n,e){let i=ka(t,n);return i>=0?t[1|i]=e:(i=~i,function Jk(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function ig(t,n){const e=ka(t,n);if(e>=0)return t[1|e]}function ka(t,n){return function PC(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),s=t[r<<e];if(n===s)return r<<e;s>n?o=r:i=r+1}return~(o<<e)}(t,n,1)}const _c={},rg="__NG_DI_FLAG__",Td="ngTempTokenPath",aN=/\n/gm,kC="__source";let bc;function Na(t){const n=bc;return bc=t,n}function cN(t,n=pt.Default){if(void 0===bc)throw new Me(-203,!1);return null===bc?qy(t,void 0,n):bc.get(t,n&pt.Optional?null:void 0,n)}function ie(t,n=pt.Default){return(function ek(){return Op}()||cN)(_t(t),n)}function un(t,n=pt.Default){return"number"!=typeof n&&(n=0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)),ie(t,n)}function sg(t){const n=[];for(let e=0;e<t.length;e++){const i=_t(t[e]);if(Array.isArray(i)){if(0===i.length)throw new Me(900,!1);let o,r=pt.Default;for(let s=0;s<i.length;s++){const a=i[s],l=uN(a);"number"==typeof l?-1===l?o=a.token:r|=l:o=a}n.push(ie(o,r))}else n.push(ie(i))}return n}function yc(t,n){return t[rg]=n,t.prototype[rg]=n,t}function uN(t){return t[rg]}const Jr=yc(Pa("Optional"),8),La=yc(Pa("SkipSelf"),4);let lg,Id,Rd;function Ba(t){var n;return(null===(n=function cg(){if(void 0===Id&&(Id=null,mn.trustedTypes))try{Id=mn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Id}())||void 0===n?void 0:n.createHTML(t))||t}function zC(t){var n;return(null===(n=function ug(){if(void 0===Rd&&(Rd=null,mn.trustedTypes))try{Rd=mn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Rd}())||void 0===n?void 0:n.createHTML(t))||t}class Os{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class wN extends Os{getTypeName(){return"HTML"}}class DN extends Os{getTypeName(){return"Style"}}class MN extends Os{getTypeName(){return"Script"}}class TN extends Os{getTypeName(){return"URL"}}class xN extends Os{getTypeName(){return"ResourceURL"}}function uo(t){return t instanceof Os?t.changingThisBreaksApplicationSecurity:t}function lr(t,n){const e=function ON(t){return t instanceof Os&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}class LN{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Ba(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class FN{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ba(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ba(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let o=e.length-1;0<o;o--){const s=e.item(o).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&n.removeAttribute(s)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const VN=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Pd(t){return(t=String(t)).match(VN)?t:"unsafe:"+t}function Tr(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Sc(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const YC=Tr("area,br,col,hr,img,wbr"),QC=Tr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),KC=Tr("rp,rt"),dg=Sc(YC,Sc(QC,Tr("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")),Sc(KC,Tr("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")),Sc(KC,QC)),hg=Tr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ZC=Sc(hg,Tr("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Tr("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")),jN=Tr("script,style,template");class UN{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!dg.hasOwnProperty(e))return this.sanitizedSomething=!0,!jN.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o<i.length;o++){const r=i.item(o),s=r.name,a=s.toLowerCase();if(!ZC.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;hg[a]&&(l=Pd(l)),this.buf.push(" ",s,'="',XC(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();dg.hasOwnProperty(e)&&!YC.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(XC(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const HN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,GN=/([^\#-~ |!])/g;function XC(t){return t.replace(/&/g,"&amp;").replace(HN,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(GN,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let kd;function JC(t,n){let e=null;try{kd=kd||function $C(t){const n=new FN(t);return function BN(){try{return!!(new window.DOMParser).parseFromString(Ba(""),"text/html")}catch(t){return!1}}()?new LN(n):n}(t);let i=n?String(n):"";e=kd.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=kd.getInertBodyElement(i)}while(i!==r);return Ba((new UN).sanitizeChildren(fg(e)||e))}finally{if(e){const i=fg(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function fg(t){return"content"in t&&function zN(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Xt=(()=>((Xt=Xt||{})[Xt.NONE=0]="NONE",Xt[Xt.HTML=1]="HTML",Xt[Xt.STYLE=2]="STYLE",Xt[Xt.SCRIPT=3]="SCRIPT",Xt[Xt.URL=4]="URL",Xt[Xt.RESOURCE_URL=5]="RESOURCE_URL",Xt))();function pg(t){const n=Ac();return n?zC(n.sanitize(Xt.HTML,t)||""):lr(t,"HTML")?zC(uo(t)):JC(function GC(){return void 0!==lg?lg:"undefined"!=typeof document?document:void 0}(),At(t))}function Va(t){const n=Ac();return n?n.sanitize(Xt.URL,t)||"":lr(t,"URL")?uo(t):Pd(At(t))}function Ac(){const t=ke();return t&&t[12]}const gg=new Ie("ENVIRONMENT_INITIALIZER"),t0=new Ie("INJECTOR",-1),n0=new Ie("INJECTOR_DEF_TYPES");class o0{get(n,e=_c){if(e===_c){const i=new Error(`NullInjectorError: No provider for ${pn(n)}!`);throw i.name="NullInjectorError",i}return e}}function ZN(...t){return{\u0275providers:r0(0,t)}}function r0(t,...n){const e=[],i=new Set;let o;return Mr(n,r=>{const s=r;mg(s,e,[],i)&&(o||(o=[]),o.push(s))}),void 0!==o&&s0(o,e),e}function s0(t,n){for(let e=0;e<t.length;e++){const{providers:o}=t[e];Mr(o,r=>{n.push(r)})}}function mg(t,n,e,i){if(!(t=_t(t)))return!1;let o=null,r=Gy(t);const s=!r&&an(t);if(r||s){if(s&&!s.standalone)return!1;o=t}else{const l=t.ngModule;if(r=Gy(l),!r)return!1;o=l}const a=i.has(o);if(s){if(a)return!1;if(i.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)mg(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!a){let c;i.add(o);try{Mr(r.imports,u=>{mg(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&s0(c,n)}if(!a){const c=xs(o)||(()=>new o);n.push({provide:o,useFactory:c,deps:nn},{provide:n0,useValue:o,multi:!0},{provide:gg,useValue:()=>ie(o),multi:!0})}const l=r.providers;null==l||a||Mr(l,u=>{n.push(u)})}}return o!==t&&void 0!==t.providers}const XN=fn({provide:String,useValue:fn});function vg(t){return null!==t&&"object"==typeof t&&XN in t}function Is(t){return"function"==typeof t}const _g=new Ie("Set Injector scope."),Nd={},eL={};let bg;function Ld(){return void 0===bg&&(bg=new o0),bg}class es{}class c0 extends es{constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Cg(n,s=>this.processProvider(s)),this.records.set(t0,ja(void 0,this)),o.has("environment")&&this.records.set(es,ja(void 0,this));const r=this.records.get(_g);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(n0.multi,nn,pt.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=Na(this),i=Eo(void 0);try{return n()}finally{Na(e),Eo(i)}}get(n,e=_c,i=pt.Default){this.assertNotDestroyed();const o=Na(this),r=Eo(void 0);try{if(!(i&pt.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function rL(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ie}(n)&&ad(n);a=l&&this.injectableDefInScope(l)?ja(yg(n),Nd):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&pt.Self?Ld():this.parent).get(n,e=i&pt.Optional&&e===_c?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Td]=s[Td]||[]).unshift(pn(n)),o)throw s;return function dN(t,n,e,i){const o=t[Td];throw n[kC]&&o.unshift(n[kC]),t.message=function hN(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=pn(n);if(Array.isArray(n))o=n.map(pn).join(" -> ");else if("object"==typeof n){let r=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];r.push(s+":"+("string"==typeof a?JSON.stringify(a):pn(a)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(aN,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Td]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Eo(r),Na(o)}}resolveInjectorInitializers(){const n=Na(this),e=Eo(void 0);try{const i=this.get(gg.multi,nn,pt.Self);for(const o of i)o()}finally{Na(n),Eo(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(pn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Me(205,!1)}processProvider(n){let e=Is(n=_t(n))?n:_t(n&&n.provide);const i=function nL(t){return vg(t)?ja(void 0,t.useValue):ja(u0(t),Nd)}(n);if(Is(n)||!0!==n.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=ja(void 0,Nd,!0),o.factory=()=>sg(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Nd&&(e.value=eL,e.value=e.factory()),"object"==typeof e.value&&e.value&&function oL(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=_t(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function yg(t){const n=ad(t),e=null!==n?n.factory:xs(t);if(null!==e)return e;if(t instanceof Ie)throw new Me(204,!1);if(t instanceof Function)return function tL(t){const n=t.length;if(n>0)throw vc(n,"?"),new Me(204,!1);const e=function ZP(t){const n=t&&(t[ld]||t[zy]);if(n){const e=function XP(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Me(204,!1)}function u0(t,n,e){let i;if(Is(t)){const o=_t(t);return xs(o)||yg(o)}if(vg(t))i=()=>_t(t.useValue);else if(function l0(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...sg(t.deps||[]));else if(function a0(t){return!(!t||!t.useExisting)}(t))i=()=>ie(_t(t.useExisting));else{const o=_t(t&&(t.useClass||t.provide));if(!function iL(t){return!!t.deps}(t))return xs(o)||yg(o);i=()=>new o(...sg(t.deps))}return i}function ja(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function sL(t){return!!t.\u0275providers}function Cg(t,n){for(const e of t)Array.isArray(e)?Cg(e,n):sL(e)?Cg(e.\u0275providers,n):n(e)}class d0{}class cL{resolveComponentFactory(n){throw function lL(t){const n=Error(`No component factory found for ${pn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let xr=(()=>{class t{}return t.NULL=new cL,t})();function uL(){return Ua(ai(),ke())}function Ua(t,n){return new Pe(wo(t,n))}let Pe=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=uL,t})();function dL(t){return t instanceof Pe?t.nativeElement:t}class wc{}let Do=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function hL(){const t=ke(),e=ao(ai().index,t);return(Ki(e)?e:t)[11]}(),t})(),fL=(()=>{class t{}return t.\u0275prov=ye({token:t,providedIn:"root",factory:()=>null}),t})();class Or{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const pL=new Or("14.2.10"),Eg={};function Mg(t){return t.ngOriginalError}class Ir{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Mg(n);for(;e&&Mg(e);)e=Mg(e);return e||null}}const Tg=new Map;let DL=0;const Og="__ngContext__";function xi(t,n){Ki(n)?(t[Og]=n[20],function TL(t){Tg.set(t[20],t)}(n)):t[Og]=n}function Mc(t){return t.ownerDocument.defaultView}function A0(t){return t.ownerDocument}function Rr(t){return t instanceof Function?t():t}var Zi=(()=>((Zi=Zi||{})[Zi.Important=1]="Important",Zi[Zi.DashCase=2]="DashCase",Zi))();function Rg(t,n){return undefined(t,n)}function Tc(t){const n=t[3];return zo(n)?n[3]:n}function Pg(t){return M0(t[13])}function kg(t){return M0(t[4])}function M0(t){for(;null!==t&&!zo(t);)t=t[4];return t}function Ga(t,n,e,i,o){if(null!=i){let r,s=!1;zo(i)?r=i:Ki(i)&&(s=!0,i=i[0]);const a=Zn(i);0===t&&null!==e?null==o?P0(n,e,a):Rs(n,e,a,o||null,!0):1===t&&null!==e?Rs(n,e,a,o||null,!0):2===t?function j0(t,n,e){const i=Fd(t,n);i&&function JL(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=r&&function nF(t,n,e,i,o){const r=e[7];r!==Zn(e)&&Ga(n,t,i,r,o);for(let a=10;a<e.length;a++){const l=e[a];xc(l[1],l,t,n,i,r)}}(n,t,r,e,o)}}function Lg(t,n,e){return t.createElement(n,e)}function x0(t,n){const e=t[9],i=e.indexOf(n),o=n[3];512&n[2]&&(n[2]&=-513,Up(o,-1)),e.splice(i,1)}function Fg(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const o=i[17];null!==o&&o!==t&&x0(o,i),n>0&&(t[e-1][4]=i[4]);const r=Dd(t,10+n);!function qL(t,n){xc(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const s=r[19];null!==s&&s.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function O0(t,n){if(!(128&n[2])){const e=n[11];e.destroyNode&&xc(t,n,e,3,null,null),function YL(t){let n=t[13];if(!n)return Bg(t[1],t);for(;n;){let e=null;if(Ki(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Ki(n)&&Bg(n[1],n),n=n[3];null===n&&(n=t),Ki(n)&&Bg(n[1],n),e=n&&n[4]}n=e}}(n)}}function Bg(t,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function XL(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const o=n[e[i]];if(!(o instanceof dc)){const r=e[i+1];if(Array.isArray(r))for(let s=0;s<r.length;s+=2){const a=o[r[s]],l=r[s+1];try{l.call(a)}finally{}}else try{r.call(o)}finally{}}}}(t,n),function ZL(t,n){const e=t.cleanup,i=n[7];let o=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const s=e[r+1],a="function"==typeof s?s(n):Zn(n[s]),l=i[o=e[r+2]],c=e[r+3];"boolean"==typeof c?a.removeEventListener(e[r],l,c):c>=0?i[o=c]():i[o=-c].unsubscribe(),r+=2}else{const s=i[o=e[r+1]];e[r].call(s)}if(null!==i){for(let r=o+1;r<i.length;r++)(0,i[r])();n[7]=null}}(t,n),1===n[1].type&&n[11].destroy();const e=n[17];if(null!==e&&zo(n[3])){e!==n[3]&&x0(e,n);const i=n[19];null!==i&&i.detachView(t)}!function xL(t){Tg.delete(t[20])}(n)}}function I0(t,n,e){return function R0(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const o=t.data[i.directiveStart].encapsulation;if(o===Ho.None||o===Ho.Emulated)return null}return wo(i,e)}(t,n.parent,e)}function Rs(t,n,e,i,o){t.insertBefore(n,e,i,o)}function P0(t,n,e){t.appendChild(n,e)}function k0(t,n,e,i,o){null!==i?Rs(t,n,e,i,o):P0(t,n,e)}function Fd(t,n){return t.parentNode(n)}function N0(t,n,e){return F0(t,n,e)}let F0=function L0(t,n,e){return 40&t.type?wo(t,e):null};function Bd(t,n,e,i){const o=I0(t,i,n),r=n[11],a=N0(i.parent||n[6],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;l<e.length;l++)k0(r,o,e[l],a,!1);else k0(r,o,e,a,!1)}function Vd(t,n){if(null!==n){const e=n.type;if(3&e)return wo(n,t);if(4&e)return jg(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return Vd(t,i);{const o=t[n.index];return zo(o)?jg(-1,o):Zn(o)}}if(32&e)return Rg(n,t)()||Zn(t[n.index]);{const i=V0(t,n);return null!==i?Array.isArray(i)?i[0]:Vd(Tc(t[16]),i):Vd(t,n.next)}}return null}function V0(t,n){return null!==n?t[16][6].projection[n.projection]:null}function jg(t,n){const e=10+t+1;if(e<n.length){const i=n[e],o=i[1].firstChild;if(null!==o)return Vd(i,o)}return n[7]}function Ug(t,n,e,i,o,r,s){for(;null!=e;){const a=i[e.index],l=e.type;if(s&&0===n&&(a&&xi(Zn(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Ug(t,n,e.child,i,o,r,!1),Ga(n,t,o,a,r);else if(32&l){const c=Rg(e,i);let u;for(;u=c();)Ga(n,t,o,u,r);Ga(n,t,o,a,r)}else 16&l?U0(t,n,i,e,o,r):Ga(n,t,o,a,r);e=s?e.projectionNext:e.next}}function xc(t,n,e,i,o,r){Ug(e,i,t.firstChild,n,o,r,!1)}function U0(t,n,e,i,o,r){const s=e[16],l=s[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Ga(n,t,o,l[c],r);else Ug(t,n,l,s[3],o,r,!0)}function H0(t,n,e){t.setAttribute(n,"style",e)}function Hg(t,n,e){""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function G0(t,n,e){let i=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const r=n.length;if(o+r===i||t.charCodeAt(o+r)<=32)return o}e=o+1}}const z0="ng-template";function oF(t,n,e){let i=0;for(;i<t.length;){let o=t[i++];if(e&&"class"===o){if(o=t[i],-1!==G0(o.toLowerCase(),n,0))return!0}else if(1===o){for(;i<t.length&&"string"==typeof(o=t[i++]);)if(o.toLowerCase()===n)return!0;return!1}}return!1}function q0(t){return 4===t.type&&t.value!==z0}function rF(t,n,e){return n===(4!==t.type||e?t.value:z0)}function sF(t,n,e){let i=4;const o=t.attrs||[],r=function cF(t){for(let n=0;n<t.length;n++)if(mC(t[n]))return n;return t.length}(o);let s=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!rF(t,l,e)||""===l&&1===n.length){if($o(i))return!1;s=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!oF(t.attrs,c,e)){if($o(i))return!1;s=!0}continue}const d=aF(8&i?"class":l,o,q0(t),e);if(-1===d){if($o(i))return!1;s=!0;continue}if(""!==c){let f;f=d>r?"":o[d+1].toLowerCase();const A=8&i?f:null;if(A&&-1!==G0(A,c,0)||2&i&&c!==f){if($o(i))return!1;s=!0}}}}else{if(!s&&!$o(i)&&!$o(l))return!1;if(s&&$o(l))continue;s=!1,i=l|1&i}}return $o(i)||s}function $o(t){return 0==(1&t)}function aF(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o<n.length;){const s=n[o];if(s===t)return o;if(3===s||6===s)r=!0;else{if(1===s||2===s){let a=n[++o];for(;"string"==typeof a;)a=n[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=r?1:2}return-1}return function uF(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function W0(t,n,e=!1){for(let i=0;i<n.length;i++)if(sF(t,n[i],e))return!0;return!1}function dF(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let o=0;o<t.length;o++)if(t[o]!==i[o])continue e;return!0}}return!1}function $0(t,n){return t?":not("+n.trim()+")":n}function hF(t){let n=t[0],e=1,i=2,o="",r=!1;for(;e<t.length;){let s=t[e];if("string"==typeof s)if(2&i){const a=t[++e];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!$o(s)&&(n+=$0(r,o),o=""),i=s,r=r||!$o(i);e++}return""!==o&&(n+=$0(r,o)),n}const wt={};function x(t){Y0(Qt(),ke(),Bi()+t,!1)}function Y0(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&_d(n,r,e)}else{const r=t.preOrderHooks;null!==r&&bd(n,r,0,e)}Zr(e)}function X0(t,n=null,e=null,i){const o=J0(t,n,e,i);return o.resolveInjectorInitializers(),o}function J0(t,n=null,e=null,i,o=new Set){const r=[e||nn,ZN(t)];return i=i||("object"==typeof t?void 0:pn(t)),new c0(r,n||Ld(),i||null,o)}let _n=(()=>{class t{static create(e,i){var o;if(Array.isArray(e))return X0({name:""},i,e,"");{const r=null!==(o=e.name)&&void 0!==o?o:"";return X0({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=_c,t.NULL=new o0,t.\u0275prov=ye({token:t,providedIn:"any",factory:()=>ie(t0)}),t.__NG_ELEMENT_ID__=-1,t})();function h(t,n=pt.Default){const e=ke();return null===e?ie(t,n):AC(ai(),e,_t(t),n)}function Ps(){throw new Error("invalid")}function Ud(t,n){return t<<17|n<<2}function Yo(t){return t>>17&32767}function $g(t){return 2|t}function Pr(t){return(131068&t)>>2}function Yg(t,n){return-131069&t|n<<2}function Qg(t){return 1|t}function mE(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const o=e[i],r=e[i+1];if(-1!==r){const s=t.data[r];Wp(o),s.contentQueries(2,n[r],r)}}}function zd(t,n,e,i,o,r,s,a,l,c,u){const d=n.blueprint.slice();return d[0]=o,d[2]=76|i,(null!==u||t&&1024&t[2])&&(d[2]|=1024),nC(d),d[3]=d[15]=t,d[8]=e,d[10]=s||t&&t[10],d[11]=a||t&&t[11],d[12]=l||t&&t[12]||null,d[9]=c||t&&t[9]||null,d[6]=r,d[20]=function ML(){return DL++}(),d[21]=u,d[16]=2==n.type?t[16]:d,d}function qa(t,n,e,i,o){let r=t.data[n];if(null===r)r=function im(t,n,e,i,o){const r=rC(),s=Hp(),l=t.data[n]=function YF(t,n,e,i,o,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?r:r&&r.parent,e,n,i,o);return null===t.firstChild&&(t.firstChild=l),null!==r&&(s?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}(t,n,e,i,o),function Dk(){return Et.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=o;const s=function cc(){const t=Et.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===s?-1:s.injectorIndex}return sr(r,!0),r}function Wa(t,n,e,i){if(0===e)return-1;const o=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return o}function om(t,n,e){$p(n);try{const i=t.viewQuery;null!==i&&hm(1,i,e);const o=t.template;null!==o&&vE(t,n,o,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&mE(t,n),t.staticViewQueries&&hm(2,t.viewQuery,e);const r=t.components;null!==r&&function qF(t,n){for(let e=0;e<n.length;e++)uB(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,Yp()}}function qd(t,n,e,i){const o=n[2];if(128!=(128&o)){$p(n);try{nC(n),function aC(t){return Et.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&vE(t,n,e,2,i);const s=3==(3&o);if(s){const c=t.preOrderCheckHooks;null!==c&&_d(n,c,null)}else{const c=t.preOrderHooks;null!==c&&bd(n,c,0,null),Qp(n,0)}if(function lB(t){for(let n=Pg(t);null!==n;n=kg(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const o=e[i],r=o[3];0==(512&o[2])&&Up(r,1),o[2]|=512}}}(n),function aB(t){for(let n=Pg(t);null!==n;n=kg(n))for(let e=10;e<n.length;e++){const i=n[e],o=i[1];md(i)&&qd(o,i,o.template,i[8])}}(n),null!==t.contentQueries&&mE(t,n),s){const c=t.contentCheckHooks;null!==c&&_d(n,c)}else{const c=t.contentHooks;null!==c&&bd(n,c,1),Qp(n,1)}!function GF(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const o=e[i];if(o<0)Zr(~o);else{const r=o,s=e[++i],a=e[++i];Mk(s,r),a(2,n[r])}}}finally{Zr(-1)}}(t,n);const a=t.components;null!==a&&function zF(t,n){for(let e=0;e<n.length;e++)cB(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&hm(2,l,i),s){const c=t.viewCheckHooks;null!==c&&_d(n,c)}else{const c=t.viewHooks;null!==c&&bd(n,c,2),Qp(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-41,512&n[2]&&(n[2]&=-513,Up(n[3],-1))}finally{Yp()}}}function vE(t,n,e,i,o){const r=Bi(),s=2&i;try{Zr(-1),s&&n.length>22&&Y0(t,n,22,!1),e(i,o)}finally{Zr(r)}}function _E(t,n,e){if(Np(n)){const o=n.directiveEnd;for(let r=n.directiveStart;r<o;r++){const s=t.data[r];s.contentQueries&&s.contentQueries(1,e[r],r)}}}function rm(t,n,e){!oC()||(function JF(t,n,e,i){const o=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||fc(e,n),xi(i,n);const s=e.initialInputs;for(let a=o;a<r;a++){const l=t.data[a],c=qo(l);c&&oB(n,e,l);const u=pc(n,t,a,e);xi(u,n),null!==s&&rB(0,a-o,u,l,0,s),c&&(ao(e.index,n)[8]=u)}}(t,n,e,wo(e,n)),128==(128&e.flags)&&function eB(t,n,e){const i=e.directiveStart,o=e.directiveEnd,r=e.index,s=function Tk(){return Et.lFrame.currentDirectiveIndex}();try{Zr(r);for(let a=i;a<o;a++){const l=t.data[a],c=n[a];zp(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&wE(l,c)}}finally{Zr(-1),zp(s)}}(t,n,e))}function sm(t,n,e=wo){const i=n.localNames;if(null!==i){let o=n.index+1;for(let r=0;r<i.length;r+=2){const s=i[r+1],a=-1===s?e(n,t):t[s];t[o++]=a}}}function bE(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=am(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function am(t,n,e,i,o,r,s,a,l,c){const u=22+i,d=u+o,f=function WF(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:wt);return e}(u,d),A="function"==typeof c?c():c;return f[1]={type:t,blueprint:f,template:e,queries:null,viewQuery:a,declTNode:n,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:A,incompleteFirstPass:!1}}function yE(t,n,e,i){const o=OE(n);null===e?o.push(i):(o.push(e),t.firstCreatePass&&IE(t).push(i,o.length-1))}function CE(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const o=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,o):e[i]=[n,o]}return e}function EE(t,n){const i=n.directiveEnd,o=t.data,r=n.attrs,s=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const u=o[c],d=u.inputs,f=null===r||q0(n)?null:sB(d,r);s.push(f),a=CE(d,c,a),l=CE(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=s,n.inputs=a,n.outputs=l}function ho(t,n,e,i,o,r,s,a){const l=wo(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(fm(t,e,u,i,o),fd(n)&&SE(e,n.index)):3&n.type&&(i=function QF(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=s?s(o,n.value||"",i):o,r.setProperty(l,i,o))}function SE(t,n){const e=ao(n,t);16&e[2]||(e[2]|=32)}function lm(t,n,e,i){let o=!1;if(oC()){const r=function tB(t,n,e){const i=t.directiveRegistry;let o=null;if(i)for(let r=0;r<i.length;r++){const s=i[r];W0(e,s.selectors,!1)&&(o||(o=[]),Ad(fc(e,n),t,s.type),qo(s)?(DE(t,e),o.unshift(s)):o.push(s))}return o}(t,n,e),s=null===i?null:{"":-1};if(null!==r){o=!0,ME(e,t.data.length,r.length);for(let u=0;u<r.length;u++){const d=r[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Wa(t,n,r.length,null);for(let u=0;u<r.length;u++){const d=r[u];e.mergedAttrs=Cd(e.mergedAttrs,d.hostAttrs),TE(t,e,n,c,d),iB(c,d,s),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}EE(t,e)}s&&function nB(t,n,e){if(n){const i=t.localNames=[];for(let o=0;o<n.length;o+=2){const r=e[n[o+1]];if(null==r)throw new Me(-301,!1);i.push(n[o],r)}}}(e,i,s)}return e.mergedAttrs=Cd(e.mergedAttrs,e.attrs),o}function AE(t,n,e,i,o,r){const s=r.hostBindings;if(s){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function XF(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,o,s)}}function wE(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function DE(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function iB(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;qo(n)&&(e[""]=t)}}function ME(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function TE(t,n,e,i,o){t.data[i]=o;const r=o.factory||(o.factory=xs(o.type)),s=new dc(r,qo(o),h);t.blueprint[i]=s,e[i]=s,AE(t,n,0,i,Wa(t,e,o.hostVars,wt),o)}function oB(t,n,e){const i=wo(n,t),o=bE(e),r=t[10],s=Wd(t,zd(t,o,null,e.onPush?32:16,i,n,r,r.createRenderer(i,e),null,null,null));t[n.index]=s}function cr(t,n,e,i,o,r){const s=wo(t,n);!function cm(t,n,e,i,o,r,s){if(null==r)t.removeAttribute(n,o,e);else{const a=null==s?At(r):s(r,i||"",o);t.setAttribute(n,o,a,e)}}(n[11],s,r,t.value,e,i,o)}function rB(t,n,e,i,o,r){const s=r[n];if(null!==s){const a=i.setInput;for(let l=0;l<s.length;){const c=s[l++],u=s[l++],d=s[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function sB(t,n){let e=null,i=0;for(;i<n.length;){const o=n[i];if(0!==o)if(5!==o){if("number"==typeof o)break;t.hasOwnProperty(o)&&(null===e&&(e=[]),e.push(o,t[o],n[i+1])),i+=2}else i+=2;else i+=4}return e}function xE(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function cB(t,n){const e=ao(n,t);if(md(e)){const i=e[1];48&e[2]?qd(i,e,i.template,e[8]):e[5]>0&&um(e)}}function um(t){for(let i=Pg(t);null!==i;i=kg(i))for(let o=10;o<i.length;o++){const r=i[o];if(md(r))if(512&r[2]){const s=r[1];qd(s,r,s.template,r[8])}else r[5]>0&&um(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const o=ao(e[i],t);md(o)&&o[5]>0&&um(o)}}function uB(t,n){const e=ao(n,t),i=e[1];(function dB(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),om(i,e,e[8])}function Wd(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function dm(t){for(;t;){t[2]|=32;const n=Tc(t);if(ak(t)&&!n)return t;t=n}return null}function $d(t,n,e,i=!0){const o=n[10];o.begin&&o.begin();try{qd(t,n,t.template,e)}catch(s){throw i&&PE(n,s),s}finally{o.end&&o.end()}}function hm(t,n,e){Wp(0),n(t,e)}function OE(t){return t[7]||(t[7]=[])}function IE(t){return t.cleanup||(t.cleanup=[])}function RE(t,n,e){return(null===t||qo(t))&&(e=function mk(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[n.index])),e[11]}function PE(t,n){const e=t[9],i=e?e.get(Ir,null):null;i&&i.handleError(n)}function fm(t,n,e,i,o){for(let r=0;r<e.length;){const s=e[r++],a=e[r++],l=n[s],c=t.data[s];null!==c.setInput?c.setInput(l,o,i,a):l[a]=o}}function Yd(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let s=0;s<n.length;s++){const a=n[s];"number"==typeof a?r=a:1==r?o=Mp(o,a):2==r&&(i=Mp(i,a+": "+n[++s]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=o:t.classesWithoutHost=o}function Qd(t,n,e,i,o=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(Zn(r)),zo(r))for(let a=10;a<r.length;a++){const l=r[a],c=l[1].firstChild;null!==c&&Qd(l[1],l,c,i)}const s=e.type;if(8&s)Qd(t,n,e.child,i);else if(32&s){const a=Rg(e,n);let l;for(;l=a();)i.push(l)}else if(16&s){const a=V0(n,e);if(Array.isArray(a))i.push(...a);else{const l=Tc(n[16]);Qd(l[1],l,a,i,!0)}}e=o?e.projectionNext:e.next}return i}class Oc{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return Qd(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(zo(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Fg(n,i),Dd(e,i))}this._attachedToViewContainer=!1}O0(this._lView[1],this._lView)}onDestroy(n){yE(this._lView[1],this._lView,null,n)}markForCheck(){dm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){$d(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Me(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $L(t,n){xc(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Me(902,!1);this._appRef=n}}class hB extends Oc{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;$d(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}}class pm extends xr{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=an(n);return new Ic(e,this.ngModule)}}function kE(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class pB{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){const o=this.injector.get(n,Eg,i);return o!==Eg||e===Eg?o:this.parentInjector.get(n,e,i)}}class Ic extends d0{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function fF(t){return t.map(hF).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return kE(this.componentDef.inputs)}get outputs(){return kE(this.componentDef.outputs)}create(n,e,i,o){let r=(o=o||this.ngModule)instanceof es?o:null==o?void 0:o.injector;r&&null!==this.componentDef.getStandaloneInjector&&(r=this.componentDef.getStandaloneInjector(r)||r);const s=r?new pB(n,r):n,a=s.get(wc,null);if(null===a)throw new Me(407,!1);const l=s.get(fL,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function $F(t,n,e){return t.selectRootElement(n,e===Ho.ShadowDom)}(c,i,this.componentDef.encapsulation):Lg(c,u,function fB(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(u)),f=this.componentDef.onPush?288:272,A=am(0,null,null,1,0,null,null,null,null,null),H=zd(null,A,null,f,null,null,a,c,l,s,null);let te,pe;$p(H);try{const he=function vB(t,n,e,i,o,r){const s=e[1];e[22]=t;const l=qa(s,22,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Yd(l,c,!0),null!==t&&(yd(o,t,c),null!==l.classes&&Hg(o,t,l.classes),null!==l.styles&&H0(o,t,l.styles)));const u=i.createRenderer(t,n),d=zd(e,bE(n),null,n.onPush?32:16,e[22],l,i,u,r||null,null,null);return s.firstCreatePass&&(Ad(fc(l,e),s,n.type),DE(s,l),ME(l,e.length,1)),Wd(e,d),e[22]=d}(d,this.componentDef,H,a,c);if(d)if(i)yd(c,d,["ng-version",pL.full]);else{const{attrs:_e,classes:fe}=function pF(t){const n=[],e=[];let i=1,o=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===o?""!==r&&n.push(r,t[++i]):8===o&&e.push(r);else{if(!$o(o))break;o=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);_e&&yd(c,d,_e),fe&&fe.length>0&&Hg(c,d,fe.join(" "))}if(pe=jp(A,22),void 0!==e){const _e=pe.projection=[];for(let fe=0;fe<this.ngContentSelectors.length;fe++){const ve=e[fe];_e.push(null!=ve?Array.from(ve):null)}}te=function _B(t,n,e,i){const o=e[1],r=function ZF(t,n,e){const i=ai();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),TE(t,i,n,Wa(t,n,1,null),e),EE(t,i));const o=pc(n,t,i.directiveStart,i);xi(o,n);const r=wo(i,n);return r&&xi(r,n),o}(o,e,n);if(t[8]=e[8]=r,null!==i)for(const a of i)a(r,n);if(n.contentQueries){const a=ai();n.contentQueries(1,r,a.directiveStart)}const s=ai();return!o.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Zr(s.index),AE(e[1],s,0,s.directiveStart,s.directiveEnd,n),wE(n,r)),r}(he,this.componentDef,H,[bB]),om(A,H,null)}finally{Yp()}return new mB(this.componentType,te,Ua(pe,H),H,pe)}}class mB extends class aL{}{constructor(n,e,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new hB(o),this.componentType=n}setInput(n,e){const i=this._tNode.inputs;let o;if(null!==i&&(o=i[n])){const r=this._rootLView;fm(r[1],r,o,n,e),SE(r,this._tNode.index)}}get injector(){return new xa(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function bB(){const t=ai();vd(ke()[1],t)}function Te(t){let n=function NE(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let o;if(qo(t))o=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Me(903,!1);o=n.\u0275dir}if(o){if(e){i.push(o);const s=t;s.inputs=gm(t.inputs),s.declaredInputs=gm(t.declaredInputs),s.outputs=gm(t.outputs);const a=o.hostBindings;a&&SB(t,a);const l=o.viewQuery,c=o.contentQueries;if(l&&CB(t,l),c&&EB(t,c),Dp(t.inputs,o.inputs),Dp(t.declaredInputs,o.declaredInputs),Dp(t.outputs,o.outputs),qo(o)&&o.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let s=0;s<r.length;s++){const a=r[s];a&&a.ngInherit&&a(t),a===Te&&(e=!1)}}n=Object.getPrototypeOf(n)}!function yB(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=Cd(o.hostAttrs,e=Cd(e,o.hostAttrs))}}(i)}function gm(t){return t===ya?{}:t===nn?[]:t}function CB(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function EB(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function SB(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}let Kd=null;function ks(){if(!Kd){const t=mn.Symbol;if(t&&t.iterator)Kd=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Kd=i)}}}return Kd}function Rc(t){return!!mm(t)&&(Array.isArray(t)||!(t instanceof Map)&&ks()in t)}function mm(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ur(t,n,e){return t[n]=e}function Oi(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Ns(t,n,e,i){const o=Oi(t,n,e);return Oi(t,n+1,i)||o}function Mo(t,n,e,i,o,r){const s=Ns(t,n,e,i);return Ns(t,n+2,o,r)||s}function xt(t,n,e,i){const o=ke();return Oi(o,Da(),n)&&(Qt(),cr(Ln(),o,t,n,e,i)),xt}function Ya(t,n,e,i){return Oi(t,Da(),e)?n+At(e)+i:wt}function ne(t,n,e,i,o,r,s,a){const l=ke(),c=Qt(),u=t+22,d=c.firstCreatePass?function IB(t,n,e,i,o,r,s,a,l){const c=n.consts,u=qa(n,t,4,s||null,Kr(c,a));lm(n,e,u,Kr(c,l)),vd(n,u);const d=u.tViews=am(2,u,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,o,r,s):c.data[u];sr(d,!1);const f=l[11].createComment("");Bd(c,l,f,d),xi(f,l),Wd(l,l[u]=xE(f,l,f,d)),pd(d)&&rm(c,l,d),null!=s&&sm(l,d,a)}function ji(t){return wa(function wk(){return Et.lFrame.contextLView}(),22+t)}function q(t,n,e){const i=ke();return Oi(i,Da(),n)&&ho(Qt(),Ln(),i,t,n,i[11],e,!1),q}function vm(t,n,e,i,o){const s=o?"class":"style";fm(t,e,n.inputs[s],s,i)}function L(t,n,e,i){const o=ke(),r=Qt(),s=22+t,a=o[11],l=o[s]=Lg(a,n,function Nk(){return Et.lFrame.currentNamespace}()),c=r.firstCreatePass?function PB(t,n,e,i,o,r,s){const a=n.consts,c=qa(n,t,2,o,Kr(a,r));return lm(n,e,c,Kr(a,s)),null!==c.attrs&&Yd(c,c.attrs,!1),null!==c.mergedAttrs&&Yd(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,r,o,0,n,e,i):r.data[s];sr(c,!0);const u=c.mergedAttrs;null!==u&&yd(a,l,u);const d=c.classes;null!==d&&Hg(a,l,d);const f=c.styles;return null!==f&&H0(a,l,f),64!=(64&c.flags)&&Bd(r,o,l,c),0===function yk(){return Et.lFrame.elementDepthCount}()&&xi(l,o),function Ck(){Et.lFrame.elementDepthCount++}(),pd(c)&&(rm(r,o,c),_E(r,c,o)),null!==i&&sm(o,c),L}function z(){let t=ai();Hp()?Gp():(t=t.parent,sr(t,!1));const n=t;!function Ek(){Et.lFrame.elementDepthCount--}();const e=Qt();return e.firstCreatePass&&(vd(e,t),Np(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function jk(t){return 0!=(16&t.flags)}(n)&&vm(e,n,ke(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Uk(t){return 0!=(32&t.flags)}(n)&&vm(e,n,ke(),n.stylesWithoutHost,!1),z}function Je(t,n,e,i){return L(t,n,e,i),z(),Je}function yi(t,n,e){const i=ke(),o=Qt(),r=t+22,s=o.firstCreatePass?function kB(t,n,e,i,o){const r=n.consts,s=Kr(r,i),a=qa(n,t,8,"ng-container",s);return null!==s&&Yd(a,s,!0),lm(n,e,a,Kr(r,o)),null!==n.queries&&n.queries.elementStart(n,a),a}(r,o,i,n,e):o.data[r];sr(s,!0);const a=i[r]=i[11].createComment("");return Bd(o,i,a,s),xi(a,i),pd(s)&&(rm(o,i,s),_E(o,s,i)),null!=e&&sm(i,s),yi}function Ci(){let t=ai();const n=Qt();return Hp()?Gp():(t=t.parent,sr(t,!1)),n.firstCreatePass&&(vd(n,t),Np(t)&&n.queries.elementEnd(t)),Ci}function rn(t,n,e){return yi(t,n,e),Ci(),rn}function ht(){return ke()}function kc(t){return!!t&&"function"==typeof t.then}function qE(t){return!!t&&"function"==typeof t.subscribe}const _m=qE;function we(t,n,e,i){const o=ke(),r=Qt(),s=ai();return WE(r,o,o[11],s,t,n,0,i),we}function Nc(t,n){const e=ai(),i=ke(),o=Qt();return WE(o,i,RE(qp(o.data),e,i),e,t,n),Nc}function WE(t,n,e,i,o,r,s,a){const l=pd(i),u=t.firstCreatePass&&IE(t),d=n[8],f=OE(n);let A=!0;if(3&i.type||a){const pe=wo(i,n),he=a?a(pe):pe,_e=f.length,fe=a?He=>a(Zn(He[i.index])):i.index;let ve=null;if(!a&&l&&(ve=function NB(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;r<o.length-1;r+=2){const s=o[r];if(s===e&&o[r+1]===i){const a=n[7],l=o[r+2];return a.length>l?a[l]:null}"string"==typeof s&&(r+=2)}return null}(t,n,o,i.index)),null!==ve)(ve.__ngLastListenerFn__||ve).__ngNextListenerFn__=r,ve.__ngLastListenerFn__=r,A=!1;else{r=YE(i,n,d,r,!1);const He=e.listen(he,o,r);f.push(r,He),u&&u.push(o,fe,_e,_e+1)}}else r=YE(i,n,d,r,!1);const H=i.outputs;let te;if(A&&null!==H&&(te=H[o])){const pe=te.length;if(pe)for(let he=0;he<pe;he+=2){const dt=n[te[he]][te[he+1]].subscribe(r),Wt=f.length;f.push(r,dt),u&&u.push(o,i.index,Wt,-(Wt+1))}}}function $E(t,n,e,i){try{return!1!==e(i)}catch(o){return PE(t,o),!1}}function YE(t,n,e,i,o){return function r(s){if(s===Function)return i;dm(2&t.flags?ao(t.index,n):n);let l=$E(n,0,i,s),c=r.__ngNextListenerFn__;for(;c;)l=$E(n,0,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function re(t=1){return function Ok(t){return(Et.lFrame.contextLView=function Ik(t,n){for(;t>0;)n=n[15],t--;return n}(t,Et.lFrame.contextLView))[8]}(t)}function LB(t,n){let e=null;const i=function lF(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let o=0;o<n.length;o++){const r=n[o];if("*"!==r){if(null===i?W0(t,r,!0):dF(i,r))return o}else e=o}return e}function xn(t){const n=ke()[16][6];if(!n.projection){const i=n.projection=vc(t?t.length:1,null),o=i.slice();let r=n.child;for(;null!==r;){const s=t?LB(r,t):0;null!==s&&(o[s]?o[s].projectionNext=r:i[s]=r,o[s]=r),r=r.next}}}function Dt(t,n=0,e){const i=ke(),o=Qt(),r=qa(o,22+t,16,null,e||null);null===r.projection&&(r.projection=n),Gp(),64!=(64&r.flags)&&function tF(t,n,e){U0(n[11],0,n,e,I0(t,e,n),N0(e.parent||n[6],e,n))}(o,i,r)}function Yt(t,n,e){return bm(t,"",n,"",e),Yt}function bm(t,n,e,i,o){const r=ke(),s=Ya(r,n,e,i);return s!==wt&&ho(Qt(),Ln(),r,t,s,r[11],o,!1),bm}function iS(t,n,e,i,o){const r=t[e+1],s=null===n;let a=i?Yo(r):Pr(r),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];VB(t[a],n)&&(l=!0,t[a+1]=i?Qg(u):$g(u)),a=i?Yo(u):Pr(u)}l&&(t[e+1]=i?$g(r):Qg(r))}function VB(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&ka(t,n)>=0}const ci={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function oS(t){return t.substring(ci.key,ci.keyEnd)}function rS(t,n){const e=ci.textEnd;return e===n?-1:(n=ci.keyEnd=function GB(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,ci.key=n,e),nl(t,n,e))}function nl(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function Xi(t,n,e){return Qo(t,n,e,!1),Xi}function lt(t,n){return Qo(t,n,null,!0),lt}function hr(t,n){for(let e=function UB(t){return function aS(t){ci.key=0,ci.keyEnd=0,ci.value=0,ci.valueEnd=0,ci.textEnd=t.length}(t),rS(t,nl(t,0,ci.textEnd))}(n);e>=0;e=rS(n,e))co(t,oS(n),!0)}function Qo(t,n,e,i){const o=ke(),r=Qt(),s=Dr(2);r.firstUpdatePass&&dS(r,t,s,i),n!==wt&&Oi(o,s,n)&&fS(r,r.data[Bi()],o,o[11],t,o[s+1]=function e2(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=pn(uo(t)))),t}(n,e),i,s)}function uS(t,n){return n>=t.expandoStartIndex}function dS(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[Bi()],s=uS(t,e);gS(r,i)&&null===n&&!s&&(n=!1),n=function YB(t,n,e,i){const o=qp(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=Lc(e=ym(null,t,n,e,i),n.attrs,i),r=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==o)if(e=ym(o,t,n,e,i),null===r){let l=function QB(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Pr(i))return t[Yo(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=ym(null,t,n,l[1],i),l=Lc(l,n.attrs,i),function KB(t,n,e,i){t[Yo(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function ZB(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<o;r++)i=Lc(i,t[r].hostAttrs,e);return Lc(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(o,r,n,i),function FB(t,n,e,i,o,r){let s=r?n.classBindings:n.styleBindings,a=Yo(s),l=Pr(s);t[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||ka(d,u)>0)&&(c=!0)}else u=e;if(o)if(0!==l){const f=Yo(t[a+1]);t[i+1]=Ud(f,a),0!==f&&(t[f+1]=Yg(t[f+1],i)),t[a+1]=function PF(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=Ud(a,0),0!==a&&(t[a+1]=Yg(t[a+1],i)),a=i;else t[i+1]=Ud(l,0),0===a?a=i:t[l+1]=Yg(t[l+1],i),l=i;c&&(t[i+1]=$g(t[i+1])),iS(t,u,i,!0),iS(t,u,i,!1),function BB(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&ka(r,n)>=0&&(e[i+1]=Qg(e[i+1]))}(n,u,t,i,r),s=Ud(a,l),r?n.classBindings=s:n.styleBindings=s}(o,r,n,e,s,i)}}function ym(t,n,e,i,o){let r=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(r=n[a],i=Lc(i,r.hostAttrs,o),r!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function Lc(t,n,e){const i=e?1:2;let o=-1;if(null!==n)for(let r=0;r<n.length;r++){const s=n[r];"number"==typeof s?o=s:o===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),co(t,s,!!e||n[++r]))}return void 0===t?null:t}function fS(t,n,e,i,o,r,s,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];Xd(function lE(t){return 1==(1&t)}(c)?pS(l,n,e,o,Pr(c),s):void 0)||(Xd(r)||function aE(t){return 2==(2&t)}(c)&&(r=pS(l,null,e,o,a,s)),function iF(t,n,e,i,o){if(n)o?t.addClass(e,i):t.removeClass(e,i);else{let r=-1===i.indexOf("-")?void 0:Zi.DashCase;null==o?t.removeStyle(e,i,r):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),r|=Zi.Important),t.setStyle(e,i,o,r))}}(i,s,gd(Bi(),e),o,r))}function pS(t,n,e,i,o,r){const s=null===n;let a;for(;o>0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=e[o+1];f===wt&&(f=d?nn:void 0);let A=d?ig(f,i):u===i?f:void 0;if(c&&!Xd(A)&&(A=ig(l,i)),Xd(A)&&(a=A,s))return a;const H=t[o+1];o=s?Yo(H):Pr(H)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=ig(l,i))}return a}function Xd(t){return void 0!==t}function gS(t,n){return 0!=(t.flags&(n?16:32))}function ce(t,n=""){const e=ke(),i=Qt(),o=t+22,r=i.firstCreatePass?qa(i,o,1,n,null):i.data[o],s=e[o]=function Ng(t,n){return t.createText(n)}(e[11],n);Bd(i,e,s,r),sr(r,!1)}function Ne(t){return Fn("",t,""),Ne}function Fn(t,n,e){const i=ke(),o=Ya(i,t,n,e);return o!==wt&&function kr(t,n,e){const i=gd(n,t);!function T0(t,n,e){t.setValue(n,e)}(t[11],i,e)}(i,Bi(),o),Fn}function AS(t,n,e){!function Ko(t,n,e,i){const o=Qt(),r=Dr(2);o.firstUpdatePass&&dS(o,null,r,i);const s=ke();if(e!==wt&&Oi(s,r,e)){const a=o.data[Bi()];if(gS(a,i)&&!uS(o,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Mp(l,e||"")),vm(o,a,s,e,i)}else!function JB(t,n,e,i,o,r,s,a){o===wt&&(o=nn);let l=0,c=0,u=0<o.length?o[0]:null,d=0<r.length?r[0]:null;for(;null!==u||null!==d;){const f=l<o.length?o[l+1]:void 0,A=c<r.length?r[c+1]:void 0;let te,H=null;u===d?(l+=2,c+=2,f!==A&&(H=d,te=A)):null===d||null!==u&&u<d?(l+=2,H=u):(c+=2,H=d,te=A),null!==H&&fS(t,n,e,i,H,te,s,a),u=l<o.length?o[l]:null,d=c<r.length?r[c]:null}}(o,a,s,s[11],s[r+1],s[r+1]=function XB(t,n,e){if(null==e||""===e)return nn;const i=[],o=uo(e);if(Array.isArray(o))for(let r=0;r<o.length;r++)t(i,o[r],!0);else if("object"==typeof o)for(const r in o)o.hasOwnProperty(r)&&t(i,r,o[r]);else"string"==typeof o&&n(i,o);return i}(t,n,e),i,r)}}(co,hr,Ya(ke(),t,n,e),!0)}function is(t,n,e){const i=ke();return Oi(i,Da(),n)&&ho(Qt(),Ln(),i,t,n,i[11],e,!0),is}function Fc(t,n,e){const i=ke();if(Oi(i,Da(),n)){const r=Qt(),s=Ln();ho(r,s,i,t,n,RE(qp(r.data),s,i),e,!0)}return Fc}const Ls=void 0;var y2=["en",[["a","p"],["AM","PM"],Ls],[["AM","PM"],Ls,Ls],[["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"]],Ls,[["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"]],Ls,[["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}",Ls,"{1} 'at' {0}",Ls],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function b2(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let il={};function Ui(t){const n=function C2(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=NS(n);if(e)return e;const i=n.split("-")[0];if(e=NS(i),e)return e;if("en"===i)return y2;throw new Me(701,!1)}function NS(t){return t in il||(il[t]=mn.ng&&mn.ng.common&&mn.ng.common.locales&&mn.ng.common.locales[t]),il[t]}var Ze=(()=>((Ze=Ze||{})[Ze.LocaleId=0]="LocaleId",Ze[Ze.DayPeriodsFormat=1]="DayPeriodsFormat",Ze[Ze.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ze[Ze.DaysFormat=3]="DaysFormat",Ze[Ze.DaysStandalone=4]="DaysStandalone",Ze[Ze.MonthsFormat=5]="MonthsFormat",Ze[Ze.MonthsStandalone=6]="MonthsStandalone",Ze[Ze.Eras=7]="Eras",Ze[Ze.FirstDayOfWeek=8]="FirstDayOfWeek",Ze[Ze.WeekendRange=9]="WeekendRange",Ze[Ze.DateFormat=10]="DateFormat",Ze[Ze.TimeFormat=11]="TimeFormat",Ze[Ze.DateTimeFormat=12]="DateTimeFormat",Ze[Ze.NumberSymbols=13]="NumberSymbols",Ze[Ze.NumberFormats=14]="NumberFormats",Ze[Ze.CurrencyCode=15]="CurrencyCode",Ze[Ze.CurrencySymbol=16]="CurrencySymbol",Ze[Ze.CurrencyName=17]="CurrencyName",Ze[Ze.Currencies=18]="Currencies",Ze[Ze.Directionality=19]="Directionality",Ze[Ze.PluralCase=20]="PluralCase",Ze[Ze.ExtraData=21]="ExtraData",Ze))();const ol="en-US";let LS=ol;function Sm(t,n,e,i,o){if(t=_t(t),Array.isArray(t))for(let r=0;r<t.length;r++)Sm(t[r],n,e,i,o);else{const r=Qt(),s=ke();let a=Is(t)?t:_t(t.provide),l=u0(t);const c=ai(),u=1048575&c.providerIndexes,d=c.directiveStart,f=c.providerIndexes>>20;if(Is(t)||!t.multi){const A=new dc(l,o,h),H=wm(a,n,o?u:u+f,d);-1===H?(Ad(fc(c,s),r,a),Am(r,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(A),s.push(A)):(e[H]=A,s[H]=A)}else{const A=wm(a,n,u+f,d),H=wm(a,n,u,u+f),te=A>=0&&e[A],pe=H>=0&&e[H];if(o&&!pe||!o&&!te){Ad(fc(c,s),r,a);const he=function _V(t,n,e,i,o){const r=new dc(t,e,h);return r.multi=[],r.index=n,r.componentProviders=0,aA(r,o,i&&!e),r}(o?vV:mV,e.length,o,i,l);!o&&pe&&(e[H].providerFactory=he),Am(r,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(he),s.push(he)}else Am(r,t,A>-1?A:H,aA(e[o?H:A],l,!o&&i));!o&&i&&pe&&e[H].componentProviders++}}}function Am(t,n,e,i){const o=Is(n),r=function JN(t){return!!t.useClass}(n);if(o||r){const l=(r?_t(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function aA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function wm(t,n,e,i){for(let o=e;o<i;o++)if(n[o]===t)return o;return-1}function mV(t,n,e,i){return Dm(this.multi,[])}function vV(t,n,e,i){const o=this.multi;let r;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=pc(e,e[1],this.providerFactory.index,i);r=a.slice(0,s),Dm(o,r);for(let l=s;l<a.length;l++)r.push(a[l])}else r=[],Dm(o,r);return r}function Dm(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function Ot(t,n=[]){return e=>{e.providersResolver=(i,o)=>function gV(t,n,e){const i=Qt();if(i.firstCreatePass){const o=qo(t);Sm(e,i.data,i.blueprint,o,!0),Sm(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}class Fs{}class lA{}class cA extends Fs{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new pm(this);const i=ro(n);this._bootstrapComponents=Rr(i.bootstrap),this._r3Injector=J0(n,e,[{provide:Fs,useValue:this},{provide:xr,useValue:this.componentFactoryResolver}],pn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Mm extends lA{constructor(n){super(),this.moduleType=n}create(n){return new cA(this.moduleType,n)}}class yV extends Fs{constructor(n,e,i){super(),this.componentFactoryResolver=new pm(this),this.instance=null;const o=new c0([...n,{provide:Fs,useValue:this},{provide:xr,useValue:this.componentFactoryResolver}],e||Ld(),i,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function ih(t,n,e=null){return new yV(t,n,e).injector}let CV=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=r0(0,e.type),o=i.length>0?ih([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,o)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=ye({token:t,providedIn:"environment",factory:()=>new t(ie(es))}),t})();function uA(t){t.getStandaloneInjector=n=>n.get(CV).getOrCreateStandaloneInjector(t)}function fi(t,n,e,i){return yA(ke(),Fi(),t,n,e,i)}function xm(t,n,e,i,o,r,s){return function SA(t,n,e,i,o,r,s,a,l){const c=n+e;return Mo(t,c,o,r,s,a)?ur(t,c+4,l?i.call(l,o,r,s,a):i(o,r,s,a)):Gc(t,c+4)}(ke(),Fi(),t,n,e,i,o,r,s)}function bA(t,n,e,i,o,r,s,a,l,c){const u=Fi()+t,d=ke();let f=Mo(d,u,e,i,o,r);return function Zd(t,n,e,i,o){const r=Ns(t,n,e,i);return Oi(t,n+2,o)||r}(d,u+4,s,a,l)||f?ur(d,u+7,c?n.call(c,e,i,o,r,s,a,l):n(e,i,o,r,s,a,l)):function Pc(t,n){return t[n]}(d,u+7)}function Gc(t,n){const e=t[n];return e===wt?void 0:e}function yA(t,n,e,i,o,r){const s=n+e;return Oi(t,s,o)?ur(t,s+1,r?i.call(r,o):i(o)):Gc(t,s+1)}function Ee(t,n){const e=Qt();let i;const o=t+22;e.firstCreatePass?(i=function NV(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=xs(i.type)),s=Eo(h);try{const a=Ed(!1),l=r();return Ed(a),function RB(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,ke(),o,l),l}finally{Eo(s)}}function Ae(t,n,e){const i=t+22,o=ke(),r=wa(o,i);return zc(o,i)?yA(o,Fi(),n,r.transform,e,r):r.transform(e)}function Bs(t,n,e,i){const o=t+22,r=ke(),s=wa(r,o);return zc(r,o)?function CA(t,n,e,i,o,r,s){const a=n+e;return Ns(t,a,o,r)?ur(t,a+2,s?i.call(s,o,r):i(o,r)):Gc(t,a+2)}(r,Fi(),n,s.transform,e,i,s):s.transform(e,i)}function zc(t,n){return t[1].data[n].pure}function Om(t){return n=>{setTimeout(t,void 0,n)}}const De=class VV extends le{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var o,r,s;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const d=n;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),l=null===(r=d.error)||void 0===r?void 0:r.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=Om(l),a&&(a=Om(a)),c&&(c=Om(c)));const u=super.subscribe({next:a,error:l,complete:c});return n instanceof b&&n.add(u),u}};function jV(){return this._results[ks()]()}class os{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ks(),i=os.prototype;i[e]||(i[e]=jV)}get changes(){return this._changes||(this._changes=new De)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const o=lo(n);(this._changesDetected=!function Zk(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let o=t[i],r=n[i];if(e&&(o=e(o),r=e(r)),r!==o)return!1}return!0}(i._results,o,e))&&(i._results=o,i.length=o.length,i.last=o[this.length-1],i.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let mt=(()=>{class t{}return t.__NG_ELEMENT_ID__=GV,t})();const UV=mt,HV=class extends UV{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tViews,o=zd(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(i)),om(i,o,n),new Oc(o)}};function GV(){return oh(ai(),ke())}function oh(t,n){return 4&t.type?new HV(n,t,Ua(t,n)):null}let ln=(()=>{class t{}return t.__NG_ELEMENT_ID__=zV,t})();function zV(){return MA(ai(),ke())}const qV=ln,wA=class extends qV{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Ua(this._hostTNode,this._hostLView)}get injector(){return new xa(this._hostTNode,this._hostLView)}get parentInjector(){const n=Sd(this._hostTNode,this._hostLView);if(bC(n)){const e=Ta(n,this._hostLView),i=Ma(n);return new xa(e[1].data[i+8],e)}return new xa(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=DA(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const s=n.createEmbeddedView(e||{},r);return this.insert(s,o),s}createComponent(n,e,i,o,r){const s=n&&!function mc(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,o=d.projectableNodes,r=d.environmentInjector||d.ngModuleRef}const l=s?n:new Ic(an(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const f=(s?c:this.parentInjector).get(es,null);f&&(r=f)}const u=l.create(c,o,void 0,r);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,o=i[1];if(function bk(t){return zo(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[3],f=new wA(d,d[6],d[3]);f.detach(f.indexOf(n))}}const r=this._adjustIndex(e),s=this._lContainer;!function QL(t,n,e,i){const o=10+i,r=e.length;i>0&&(e[o-1][4]=n),i<r-10?(n[4]=e[o],OC(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const s=n[17];null!==s&&e!==s&&function KL(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(s,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=64}(o,i,s,r);const a=jg(r,s),l=i[11],c=Fd(l,s[7]);return null!==c&&function WL(t,n,e,i,o,r){i[0]=o,i[6]=n,xc(t,i,e,1,o,r)}(o,s[6],l,i,c,a),n.attachToViewContainerRef(),OC(Im(s),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=DA(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Fg(this._lContainer,e);i&&(Dd(Im(this._lContainer),e),O0(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Fg(this._lContainer,e);return i&&null!=Dd(Im(this._lContainer),e)?new Oc(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function DA(t){return t[8]}function Im(t){return t[8]||(t[8]=[])}function MA(t,n){let e;const i=n[t.index];if(zo(i))e=i;else{let o;if(8&t.type)o=Zn(i);else{const r=n[11];o=r.createComment("");const s=wo(t,n);Rs(r,Fd(r,s),o,function eF(t,n){return t.nextSibling(n)}(r,s),!1)}n[t.index]=e=xE(i,n,o,t),Wd(n,e)}return new wA(e,t,n)}class Rm{constructor(n){this.queryList=n,this.matches=null}clone(){return new Rm(this.queryList)}setDirty(){this.queryList.setDirty()}}class Pm{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;r<i;r++){const s=e.getByIndex(r);o.push(this.queries[s.indexInDeclarationView].clone())}return new Pm(o)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==RA(n,e).matches&&this.queries[e].setDirty()}}class TA{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class km{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const o=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,o);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new km(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Nm{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new Nm(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){const r=i[o];this.matchTNodeWithReadOption(n,e,YV(e,r)),this.matchTNodeWithReadOption(n,e,wd(e,n,r,!1,!1))}else i===mt?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,wd(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===Pe||o===ln||o===mt&&4&e.type)this.addMatch(e.index,-2);else{const r=wd(e,n,o,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function YV(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function KV(t,n,e,i){return-1===e?function QV(t,n){return 11&t.type?Ua(t,n):4&t.type?oh(t,n):null}(n,t):-2===e?function ZV(t,n,e){return e===Pe?Ua(n,t):e===mt?oh(n,t):e===ln?MA(n,t):void 0}(t,n,i):pc(t,t[1],e,n)}function xA(t,n,e,i){const o=n[19].queries[i];if(null===o.matches){const r=t.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:KV(n,r[c],s[l+1],e.metadata.read))}o.matches=a}return o.matches}function Lm(t,n,e,i){const o=t.queries.getByIndex(e),r=o.matches;if(null!==r){const s=xA(t,n,o,e);for(let a=0;a<r.length;a+=2){const l=r[a];if(l>0)i.push(s[a/2]);else{const c=r[a+1],u=n[-l];for(let d=10;d<u.length;d++){const f=u[d];f[17]===f[3]&&Lm(f[1],f,c,i)}if(null!==u[9]){const d=u[9];for(let f=0;f<d.length;f++){const A=d[f];Lm(A[1],A,c,i)}}}}}return i}function xe(t){const n=ke(),e=Qt(),i=cC();Wp(i+1);const o=RA(e,i);if(t.dirty&&function _k(t){return 4==(4&t[2])}(n)===(2==(2&o.metadata.flags))){if(null===o.matches)t.reset([]);else{const r=o.crossesNgTemplate?Lm(e,n,i,[]):xA(e,n,o,i);t.reset(r,dL),t.notifyOnChanges()}return!0}return!1}function St(t,n,e){const i=Qt();i.firstCreatePass&&(IA(i,new TA(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),OA(i,ke(),n)}function Xe(t,n,e,i){const o=Qt();if(o.firstCreatePass){const r=ai();IA(o,new TA(n,e,i),r.index),function JV(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(o,t),2==(2&e)&&(o.staticContentQueries=!0)}OA(o,ke(),e)}function Oe(){return function XV(t,n){return t[19].queries[n].queryList}(ke(),cC())}function OA(t,n,e){const i=new os(4==(4&e));yE(t,n,i,i.destroy),null===n[19]&&(n[19]=new Pm),n[19].queries.push(new Rm(i))}function IA(t,n,e){null===t.queries&&(t.queries=new km),t.queries.track(new Nm(n,e))}function RA(t,n){return t.queries.getByIndex(n)}function dn(t,n){return oh(t,n)}function sh(...t){}const ah=new Ie("Application Initializer");let lh=(()=>{class t{constructor(e){this.appInits=e,this.resolve=sh,this.reject=sh,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const r=this.appInits[o]();if(kc(r))e.push(r);else if(_m(r)){const s=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ie(ah,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const al=new Ie("AppId",{providedIn:"root",factory:function ZA(){return`${Um()}${Um()}${Um()}`}});function Um(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const XA=new Ie("Platform Initializer"),To=new Ie("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Hm=new Ie("appBootstrapListener"),pi=new Ie("AnimationModuleType");let b3=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const fr=new Ie("LocaleId",{providedIn:"root",factory:()=>un(fr,pt.Optional|pt.SkipSelf)||function y3(){return"undefined"!=typeof $localize&&$localize.locale||ol}()});class E3{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Gm=(()=>{class t{compileModuleSync(e){return new Mm(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=Rr(ro(e).declarations).reduce((s,a)=>{const l=an(a);return l&&s.push(new Ic(l)),s},[]);return new E3(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const w3=(()=>Promise.resolve(0))();function zm(t){"undefined"==typeof Zone?w3.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class at{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new De(!1),this.onMicrotaskEmpty=new De(!1),this.onStable=new De(!1),this.onError=new De(!1),"undefined"==typeof Zone)throw new Me(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const r=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new r("Angular"))}Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function D3(){let t=mn.requestAnimationFrame,n=mn.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function x3(t){const n=()=>{!function T3(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(mn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Wm(t),t.isCheckStableRunning=!0,qm(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Wm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,s,a)=>{try{return tw(t),e.invokeTask(o,r,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),nw(t)}},onInvoke:(e,i,o,r,s,a,l)=>{try{return tw(t),e.invoke(o,r,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),nw(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Wm(t),qm(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!at.isInAngularZone())throw new Me(909,!1)}static assertNotInAngularZone(){if(at.isInAngularZone())throw new Me(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,n,M3,sh,sh);try{return r.runTask(s,e,i)}finally{r.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const M3={};function qm(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(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Wm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function tw(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function nw(t){t._nesting--,qm(t)}class O3{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new De,this.onMicrotaskEmpty=new De,this.onStable=new De,this.onError=new De}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}const iw=new Ie(""),ch=new Ie("");let Wc,$m=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Wc||(function I3(t){Wc=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{at.assertNotInAngularZone(),zm(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())zm(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}}return t.\u0275fac=function(e){return new(e||t)(ie(at),ie(Ym),ie(ch))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),Ym=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){var o;return null!==(o=null==Wc?void 0:Wc.findTestabilityInTree(this,e,i))&&void 0!==o?o:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),pr=null;const ow=new Ie("AllowMultipleToken"),Qm=new Ie("PlatformDestroyListeners");class rw{constructor(n,e){this.name=n,this.token=e}}function aw(t,n,e=[]){const i=`Platform: ${n}`,o=new Ie(i);return(r=[])=>{let s=Km();if(!s||s.injector.get(ow,!1)){const a=[...e,...r,{provide:o,useValue:!0}];t?t(a):function k3(t){if(pr&&!pr.get(ow,!1))throw new Me(400,!1);pr=t;const n=t.get(cw);(function sw(t){const n=t.get(XA,null);n&&n.forEach(e=>e())})(t)}(function lw(t=[],n){return _n.create({name:n,providers:[{provide:_g,useValue:"platform"},{provide:Qm,useValue:new Set([()=>pr=null])},...t]})}(a,i))}return function L3(t){const n=Km();if(!n)throw new Me(401,!1);return n}()}}function Km(){var t;return null!==(t=null==pr?void 0:pr.get(cw))&&void 0!==t?t:null}let cw=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function dw(t,n){let e;return e="noop"===t?new O3:("zone.js"===t?void 0:t)||new at(n),e}(null==i?void 0:i.ngZone,function uw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),r=[{provide:at,useValue:o}];return o.run(()=>{const s=_n.create({providers:r,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Ir,null);if(!l)throw new Me(402,!1);return o.runOutsideAngular(()=>{const c=o.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{uh(this._modules,a),c.unsubscribe()})}),function hw(t,n,e){try{const i=e();return kc(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,o,()=>{const c=a.injector.get(lh);return c.runInitializers(),c.donePromise.then(()=>(function FS(t){oo(t,"Expected localeId to be defined"),"string"==typeof t&&(LS=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(fr,ol)||ol),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const o=fw({},i);return function R3(t,n,e){const i=new Mm(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Vs);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new Me(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Me(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Qm,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(ie(_n))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function fw(t,n){return Array.isArray(n)?n.reduce(fw,t):Object.assign(Object.assign({},t),n)}let Vs=(()=>{class t{constructor(e,i,o){this._zone=e,this._injector=i,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new T(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new T(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{at.assertNotInAngularZone(),zm(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{at.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=ki(r,s.pipe(Uy()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof d0;if(!this._injector.get(lh).done)throw!o&&function Ca(t){const n=an(t)||Ni(t)||Li(t);return null!==n&&n.standalone}(e),new Me(405,false);let s;s=o?e:this._injector.get(xr).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function P3(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Fs),c=s.create(_n.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(iw,null);return null==d||d.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),uh(this.components,c),null==d||d.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Me(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;uh(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Hm,[]).concat(this._bootstrapListeners).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>uh(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Me(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(ie(at),ie(es),ie(Ir))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function uh(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let gw=!0,Ut=(()=>{class t{}return t.__NG_ELEMENT_ID__=V3,t})();function V3(t){return function j3(t,n,e){if(fd(t)&&!e){const i=ao(t.index,n);return new Oc(i,i)}return 47&t.type?new Oc(n[16],n):null}(ai(),ke(),16==(16&t))}class yw{constructor(){}supports(n){return Rc(n)}create(n){return new W3(n)}}const q3=(t,n)=>n;class W3{constructor(n){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=n||q3}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const s=!i||e&&e.currentIndex<Ew(i,o,r)?e:i,a=Ew(s,o,r),l=s.currentIndex;if(s===i)o--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)o++;else{r||(r=[]);const c=a-o,u=l-o;if(c!=u){for(let f=0;f<c;f++){const A=f<r.length?r[f]:r[f]=0,H=A+f;u<=H&&H<c&&(r[f]=A+1)}r[s.previousIndex]=u-c}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!Rc(n))throw new Me(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let o,r,s,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)r=n[a],s=this._trackByFn(a,r),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,r,s,a)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,s,a),i=!0),e=e._next}else o=0,function TB(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[ks()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new $3(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=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)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new Cw),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Cw),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class $3{constructor(n,e){this.item=n,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}}class Y3{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Cw{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new Y3,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ew(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i<e.length&&(o=e[i]),i+n+o}class Sw{constructor(){}supports(n){return n instanceof Map||mm(n)}create(){return new Q3}}class Q3{constructor(){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}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||mm(n)))throw new Me(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,o)=>{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}const i=new K3(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class K3{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Aw(){return new $c([new yw])}let $c=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Aw()),deps:[[t,new La,new Jr]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new Me(901,!1)}}return t.\u0275prov=ye({token:t,providedIn:"root",factory:Aw}),t})();function ww(){return new Us([new Sw])}let Us=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||ww()),deps:[[t,new La,new Jr]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new Me(901,!1)}}return t.\u0275prov=ye({token:t,providedIn:"root",factory:ww}),t})();const J3=aw(null,"core",[]);let ej=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(ie(Vs))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();let fh=null;function gr(){return fh}const ut=new Ie("DocumentToken");let tv=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:function(){return function oj(){return ie(Dw)}()},providedIn:"platform"}),t})();const rj=new Ie("Location Initialized");let Dw=(()=>{class t extends tv{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gr().getBaseHref(this._doc)}onPopState(e){const i=gr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=gr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,o){Mw()?this._history.pushState(e,i,o):this.location.hash=o}replaceState(e,i,o){Mw()?this._history.replaceState(e,i,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(ie(ut))},t.\u0275prov=ye({token:t,factory:function(){return function sj(){return new Dw(ie(ut))}()},providedIn:"platform"}),t})();function Mw(){return!!window.history.pushState}function nv(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Tw(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Fr(t){return t&&"?"!==t[0]?"?"+t:t}let Hs=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:function(){return un(xw)},providedIn:"root"}),t})();const iv=new Ie("appBaseHref");let xw=(()=>{class t extends Hs{constructor(e,i){var o,r,s;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=null!==(s=null!==(o=null!=i?i:this._platformLocation.getBaseHrefFromDOM())&&void 0!==o?o:null===(r=un(ut).location)||void 0===r?void 0:r.origin)&&void 0!==s?s:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return nv(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Fr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const s=this.prepareExternalUrl(o+Fr(r));this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){const s=this.prepareExternalUrl(o+Fr(r));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(ie(tv),ie(iv,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),aj=(()=>{class t extends Hs{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=nv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let s=this.prepareExternalUrl(o+Fr(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){let s=this.prepareExternalUrl(o+Fr(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(ie(tv),ie(iv,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),Yc=(()=>{class t{constructor(e){this._subject=new De,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=Tw(Ow(i)),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){var e;null===(e=this._urlChangeSubscription)||void 0===e||e.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Fr(i))}normalize(e){return t.stripTrailingSlash(function cj(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,Ow(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Fr(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Fr(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){var i,o;null===(o=(i=this._locationStrategy).historyGo)||void 0===o||o.call(i,e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var i;const o=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(o,1),0===this._urlChangeListeners.length&&(null===(i=this._urlChangeSubscription)||void 0===i||i.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}}return t.normalizeQueryParams=Fr,t.joinWithSlash=nv,t.stripTrailingSlash=Tw,t.\u0275fac=function(e){return new(e||t)(ie(Hs))},t.\u0275prov=ye({token:t,factory:function(){return function lj(){return new Yc(ie(Hs))}()},providedIn:"root"}),t})();function Ow(t){return t.replace(/\/index.html$/,"")}var Ji=(()=>((Ji=Ji||{})[Ji.Decimal=0]="Decimal",Ji[Ji.Percent=1]="Percent",Ji[Ji.Currency=2]="Currency",Ji[Ji.Scientific=3]="Scientific",Ji))(),qn=(()=>((qn=qn||{})[qn.Format=0]="Format",qn[qn.Standalone=1]="Standalone",qn))(),zt=(()=>((zt=zt||{})[zt.Narrow=0]="Narrow",zt[zt.Abbreviated=1]="Abbreviated",zt[zt.Wide=2]="Wide",zt[zt.Short=3]="Short",zt))(),On=(()=>((On=On||{})[On.Short=0]="Short",On[On.Medium=1]="Medium",On[On.Long=2]="Long",On[On.Full=3]="Full",On))(),gt=(()=>((gt=gt||{})[gt.Decimal=0]="Decimal",gt[gt.Group=1]="Group",gt[gt.List=2]="List",gt[gt.PercentSign=3]="PercentSign",gt[gt.PlusSign=4]="PlusSign",gt[gt.MinusSign=5]="MinusSign",gt[gt.Exponential=6]="Exponential",gt[gt.SuperscriptingExponent=7]="SuperscriptingExponent",gt[gt.PerMille=8]="PerMille",gt[gt.Infinity=9]="Infinity",gt[gt.NaN=10]="NaN",gt[gt.TimeSeparator=11]="TimeSeparator",gt[gt.CurrencyDecimal=12]="CurrencyDecimal",gt[gt.CurrencyGroup=13]="CurrencyGroup",gt))();function ph(t,n){return Oo(Ui(t)[Ze.DateFormat],n)}function gh(t,n){return Oo(Ui(t)[Ze.TimeFormat],n)}function mh(t,n){return Oo(Ui(t)[Ze.DateTimeFormat],n)}function xo(t,n){const e=Ui(t),i=e[Ze.NumberSymbols][n];if(void 0===i){if(n===gt.CurrencyDecimal)return e[Ze.NumberSymbols][gt.Decimal];if(n===gt.CurrencyGroup)return e[Ze.NumberSymbols][gt.Group]}return i}function Rw(t){if(!t[Ze.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ze.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Oo(t,n){for(let e=n;e>-1;e--)if(void 0!==t[e])return t[e];throw new Error("Locale data API: locale data undefined")}function rv(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const Ej=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qc={},Sj=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ui=(()=>((ui=ui||{})[ui.Short=0]="Short",ui[ui.ShortGMT=1]="ShortGMT",ui[ui.Long=2]="Long",ui[ui.Extended=3]="Extended",ui))(),vt=(()=>((vt=vt||{})[vt.FullYear=0]="FullYear",vt[vt.Month=1]="Month",vt[vt.Date=2]="Date",vt[vt.Hours=3]="Hours",vt[vt.Minutes=4]="Minutes",vt[vt.Seconds=5]="Seconds",vt[vt.FractionalSeconds=6]="FractionalSeconds",vt[vt.Day=7]="Day",vt))(),kt=(()=>((kt=kt||{})[kt.DayPeriods=0]="DayPeriods",kt[kt.Days=1]="Days",kt[kt.Months=2]="Months",kt[kt.Eras=3]="Eras",kt))();function Aj(t,n,e,i){let o=function Pj(t){if(Nw(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,r=1,s=1]=t.split("-").map(a=>+a);return vh(o,r-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Ej))return function kj(t){const n=new Date(0);let e=0,i=0;const o=t[8]?n.setUTCFullYear:n.setFullYear,r=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),o.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!Nw(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Br(e,n)||n;let a,s=[];for(;n;){if(a=Sj.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=o.getTimezoneOffset();i&&(l=kw(i,l),o=function Rj(t,n,e){const i=e?-1:1,o=t.getTimezoneOffset();return function Ij(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(kw(n,o)-o))}(o,i,!0));let c="";return s.forEach(u=>{const d=function Oj(t){if(av[t])return av[t];let n;switch(t){case"G":case"GG":case"GGG":n=bn(kt.Eras,zt.Abbreviated);break;case"GGGG":n=bn(kt.Eras,zt.Wide);break;case"GGGGG":n=bn(kt.Eras,zt.Narrow);break;case"y":n=Jn(vt.FullYear,1,0,!1,!0);break;case"yy":n=Jn(vt.FullYear,2,0,!0,!0);break;case"yyy":n=Jn(vt.FullYear,3,0,!1,!0);break;case"yyyy":n=Jn(vt.FullYear,4,0,!1,!0);break;case"Y":n=Ch(1);break;case"YY":n=Ch(2,!0);break;case"YYY":n=Ch(3);break;case"YYYY":n=Ch(4);break;case"M":case"L":n=Jn(vt.Month,1,1);break;case"MM":case"LL":n=Jn(vt.Month,2,1);break;case"MMM":n=bn(kt.Months,zt.Abbreviated);break;case"MMMM":n=bn(kt.Months,zt.Wide);break;case"MMMMM":n=bn(kt.Months,zt.Narrow);break;case"LLL":n=bn(kt.Months,zt.Abbreviated,qn.Standalone);break;case"LLLL":n=bn(kt.Months,zt.Wide,qn.Standalone);break;case"LLLLL":n=bn(kt.Months,zt.Narrow,qn.Standalone);break;case"w":n=sv(1);break;case"ww":n=sv(2);break;case"W":n=sv(1,!0);break;case"d":n=Jn(vt.Date,1);break;case"dd":n=Jn(vt.Date,2);break;case"c":case"cc":n=Jn(vt.Day,1);break;case"ccc":n=bn(kt.Days,zt.Abbreviated,qn.Standalone);break;case"cccc":n=bn(kt.Days,zt.Wide,qn.Standalone);break;case"ccccc":n=bn(kt.Days,zt.Narrow,qn.Standalone);break;case"cccccc":n=bn(kt.Days,zt.Short,qn.Standalone);break;case"E":case"EE":case"EEE":n=bn(kt.Days,zt.Abbreviated);break;case"EEEE":n=bn(kt.Days,zt.Wide);break;case"EEEEE":n=bn(kt.Days,zt.Narrow);break;case"EEEEEE":n=bn(kt.Days,zt.Short);break;case"a":case"aa":case"aaa":n=bn(kt.DayPeriods,zt.Abbreviated);break;case"aaaa":n=bn(kt.DayPeriods,zt.Wide);break;case"aaaaa":n=bn(kt.DayPeriods,zt.Narrow);break;case"b":case"bb":case"bbb":n=bn(kt.DayPeriods,zt.Abbreviated,qn.Standalone,!0);break;case"bbbb":n=bn(kt.DayPeriods,zt.Wide,qn.Standalone,!0);break;case"bbbbb":n=bn(kt.DayPeriods,zt.Narrow,qn.Standalone,!0);break;case"B":case"BB":case"BBB":n=bn(kt.DayPeriods,zt.Abbreviated,qn.Format,!0);break;case"BBBB":n=bn(kt.DayPeriods,zt.Wide,qn.Format,!0);break;case"BBBBB":n=bn(kt.DayPeriods,zt.Narrow,qn.Format,!0);break;case"h":n=Jn(vt.Hours,1,-12);break;case"hh":n=Jn(vt.Hours,2,-12);break;case"H":n=Jn(vt.Hours,1);break;case"HH":n=Jn(vt.Hours,2);break;case"m":n=Jn(vt.Minutes,1);break;case"mm":n=Jn(vt.Minutes,2);break;case"s":n=Jn(vt.Seconds,1);break;case"ss":n=Jn(vt.Seconds,2);break;case"S":n=Jn(vt.FractionalSeconds,1);break;case"SS":n=Jn(vt.FractionalSeconds,2);break;case"SSS":n=Jn(vt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=bh(ui.Short);break;case"ZZZZZ":n=bh(ui.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=bh(ui.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=bh(ui.Long);break;default:return null}return av[t]=n,n}(u);c+=d?d(o,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function vh(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Br(t,n){const e=function uj(t){return Ui(t)[Ze.LocaleId]}(t);if(Qc[e]=Qc[e]||{},Qc[e][n])return Qc[e][n];let i="";switch(n){case"shortDate":i=ph(t,On.Short);break;case"mediumDate":i=ph(t,On.Medium);break;case"longDate":i=ph(t,On.Long);break;case"fullDate":i=ph(t,On.Full);break;case"shortTime":i=gh(t,On.Short);break;case"mediumTime":i=gh(t,On.Medium);break;case"longTime":i=gh(t,On.Long);break;case"fullTime":i=gh(t,On.Full);break;case"short":const o=Br(t,"shortTime"),r=Br(t,"shortDate");i=_h(mh(t,On.Short),[o,r]);break;case"medium":const s=Br(t,"mediumTime"),a=Br(t,"mediumDate");i=_h(mh(t,On.Medium),[s,a]);break;case"long":const l=Br(t,"longTime"),c=Br(t,"longDate");i=_h(mh(t,On.Long),[l,c]);break;case"full":const u=Br(t,"fullTime"),d=Br(t,"fullDate");i=_h(mh(t,On.Full),[u,d])}return i&&(Qc[e][n]=i),i}function _h(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Xo(t,n,e="-",i,o){let r="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,r=e));let s=String(t);for(;s.length<n;)s="0"+s;return i&&(s=s.slice(s.length-n)),r+s}function Jn(t,n,e=0,i=!1,o=!1){return function(r,s){let a=function Dj(t,n){switch(t){case vt.FullYear:return n.getFullYear();case vt.Month:return n.getMonth();case vt.Date:return n.getDate();case vt.Hours:return n.getHours();case vt.Minutes:return n.getMinutes();case vt.Seconds:return n.getSeconds();case vt.FractionalSeconds:return n.getMilliseconds();case vt.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((e>0||a>-e)&&(a+=e),t===vt.Hours)0===a&&-12===e&&(a=12);else if(t===vt.FractionalSeconds)return function wj(t,n){return Xo(t,3).substring(0,n)}(a,n);const l=xo(s,gt.MinusSign);return Xo(a,n,l,i,o)}}function bn(t,n,e=qn.Format,i=!1){return function(o,r){return function Mj(t,n,e,i,o,r){switch(e){case kt.Months:return function fj(t,n,e){const i=Ui(t),r=Oo([i[Ze.MonthsFormat],i[Ze.MonthsStandalone]],n);return Oo(r,e)}(n,o,i)[t.getMonth()];case kt.Days:return function hj(t,n,e){const i=Ui(t),r=Oo([i[Ze.DaysFormat],i[Ze.DaysStandalone]],n);return Oo(r,e)}(n,o,i)[t.getDay()];case kt.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(r){const c=function vj(t){const n=Ui(t);return Rw(n),(n[Ze.ExtraData][2]||[]).map(i=>"string"==typeof i?rv(i):[rv(i[0]),rv(i[1])])}(n),u=function _j(t,n,e){const i=Ui(t);Rw(i);const r=Oo([i[Ze.ExtraData][0],i[Ze.ExtraData][1]],n)||[];return Oo(r,e)||[]}(n,o,i),d=c.findIndex(f=>{if(Array.isArray(f)){const[A,H]=f,te=s>=A.hours&&a>=A.minutes,pe=s<H.hours||s===H.hours&&a<H.minutes;if(A.hours<H.hours){if(te&&pe)return!0}else if(te||pe)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function dj(t,n,e){const i=Ui(t),r=Oo([i[Ze.DayPeriodsFormat],i[Ze.DayPeriodsStandalone]],n);return Oo(r,e)}(n,o,i)[s<12?0:1];case kt.Eras:return function pj(t,n){return Oo(Ui(t)[Ze.Eras],n)}(n,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(o,r,t,n,e,i)}}function bh(t){return function(n,e,i){const o=-1*i,r=xo(e,gt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case ui.Short:return(o>=0?"+":"")+Xo(s,2,r)+Xo(Math.abs(o%60),2,r);case ui.ShortGMT:return"GMT"+(o>=0?"+":"")+Xo(s,1,r);case ui.Long:return"GMT"+(o>=0?"+":"")+Xo(s,2,r)+":"+Xo(Math.abs(o%60),2,r);case ui.Extended:return 0===i?"Z":(o>=0?"+":"")+Xo(s,2,r)+":"+Xo(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Pw(t){return vh(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function sv(t,n=!1){return function(e,i){let o;if(n){const r=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();o=1+Math.floor((s+r)/7)}else{const r=Pw(e),s=function xj(t){const n=vh(t,0,1).getDay();return vh(t,0,1+(n<=4?4:11)-n)}(r.getFullYear()),a=r.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Xo(o,t,xo(i,gt.MinusSign))}}function Ch(t,n=!1){return function(e,i){return Xo(Pw(e).getFullYear(),t,xo(i,gt.MinusSign),n)}}const av={};function kw(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function Nw(t){return t instanceof Date&&!isNaN(t.valueOf())}const Nj=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function dv(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function Vw(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}let Gi=(()=>{class t{constructor(e,i,o,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Rc(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${pn(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return t.\u0275fac=function(e){return new(e||t)(h($c),h(Us),h(Pe),h(Do))},t.\u0275dir=ge({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class $j{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Io=(()=>{class t{constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,s)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new $j(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,s),Hw(a,o)}});for(let o=0,r=i.length;o<r;o++){const a=i.get(o).context;a.index=o,a.count=r,a.ngForOf=this._ngForOf}e.forEachIdentityChange(o=>{Hw(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(h(ln),h(mt),h($c))},t.\u0275dir=ge({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function Hw(t,n){t.context.$implicit=n.item}let Jt=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new Qj,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Gw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Gw("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){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)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(h(ln),h(mt))},t.\u0275dir=ge({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class Qj{constructor(){this.$implicit=null,this.ngIf=null}}function Gw(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${pn(n)}'.`)}class fv{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let ll=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),Sh=(()=>{class t{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new fv(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(h(ln),h(mt),h(ll,9))},t.\u0275dir=ge({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),zw=(()=>{class t{constructor(e,i,o){o._addDefault(new fv(e,i))}}return t.\u0275fac=function(e){return new(e||t)(h(ln),h(mt),h(ll,9))},t.\u0275dir=ge({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),cl=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),s=-1===o.indexOf("-")?void 0:Zi.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Us),h(Do))},t.\u0275dir=ge({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),rs=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:r,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(o,r,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[zn]}),t})();function Jo(t,n){return new Me(2100,!1)}class Zj{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}}class Xj{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const Jj=new Xj,e4=new Zj;let Ww=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(kc(e))return Jj;if(qE(e))return e4;throw Jo()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(h(Ut,16))},t.\u0275pipe=Gn({name:"async",type:t,pure:!1,standalone:!0}),t})(),$w=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Jo();return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Gn({name:"uppercase",type:t,pure:!0,standalone:!0}),t})();const o4=new Ie("DATE_PIPE_DEFAULT_TIMEZONE");let Ah=(()=>{class t{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",o,r){var s;if(null==e||""===e||e!=e)return null;try{return Aj(e,i,r||this.locale,null!==(s=null!=o?o:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(a){throw Jo()}}}return t.\u0275fac=function(e){return new(e||t)(h(fr,16),h(o4,24))},t.\u0275pipe=Gn({name:"date",type:t,pure:!0,standalone:!0}),t})(),Yw=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Gn({name:"json",type:t,pure:!1,standalone:!0}),t})(),pv=(()=>{class t{constructor(e){this._locale=e}transform(e,i,o){if(!function gv(t){return!(null==t||""===t||t!=t)}(e))return null;o=o||this._locale;try{return function Uj(t,n,e){return function cv(t,n,e,i,o,r,s=!1){let a="",l=!1;if(isFinite(t)){let c=function Gj(t){let i,o,r,s,a,n=Math.abs(t)+"",e=0;for((o=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(o<0&&(o=r),o+=+n.slice(r+1),n=n.substring(0,r)):o<0&&(o=n.length),r=0;"0"===n.charAt(r);r++);if(r===(a=n.length))i=[0],o=1;else{for(a--;"0"===n.charAt(a);)a--;for(o-=r,i=[],s=0;r<=a;r++,s++)i[s]=Number(n.charAt(r))}return o>22&&(i=i.splice(0,21),e=o-1,o=1),{digits:i,exponent:e,integerLen:o}}(t);s&&(c=function Hj(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let u=n.minInt,d=n.minFrac,f=n.maxFrac;if(r){const _e=r.match(Nj);if(null===_e)throw new Error(`${r} is not a valid digit info`);const fe=_e[1],ve=_e[3],He=_e[5];null!=fe&&(u=dv(fe)),null!=ve&&(d=dv(ve)),null!=He?f=dv(He):null!=ve&&d>f&&(f=d)}!function zj(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,o=i.length-t.integerLen;const r=Math.min(Math.max(n,o),e);let s=r+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let d=s;d<i.length;d++)i[d]=0}else{o=Math.max(0,o),t.integerLen=1,i.length=Math.max(1,s=r+1),i[0]=0;for(let d=1;d<s;d++)i[d]=0}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;o<Math.max(0,r);o++)i.push(0);let l=0!==r;const c=n+t.integerLen,u=i.reduceRight(function(d,f,A,H){return H[A]=(f+=d)<10?f:f-10,l&&(0===H[A]&&A>=c?H.pop():l=!1),f>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,d,f);let A=c.digits,H=c.integerLen;const te=c.exponent;let pe=[];for(l=A.every(_e=>!_e);H<u;H++)A.unshift(0);for(;H<0;H++)A.unshift(0);H>0?pe=A.splice(H,A.length):(pe=A,A=[0]);const he=[];for(A.length>=n.lgSize&&he.unshift(A.splice(-n.lgSize,A.length).join(""));A.length>n.gSize;)he.unshift(A.splice(-n.gSize,A.length).join(""));A.length&&he.unshift(A.join("")),a=he.join(xo(e,i)),pe.length&&(a+=xo(e,o)+pe.join("")),te&&(a+=xo(e,gt.Exponential)+"+"+te)}else a=xo(e,gt.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function uv(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),o=i[0],r=i[1],s=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const d=l.charAt(u);"0"===d?e.minFrac=e.maxFrac=u+1:"#"===d?e.maxFrac=u+1:e.posSuf+=d}const c=a.split(",");if(e.gSize=c[1]?c[1].length:0,e.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,r){const u=o.length-e.posPre.length-e.posSuf.length,d=r.indexOf("#");e.negPre=r.substring(0,d).replace(/'/g,""),e.negSuf=r.slice(d+u).replace(/'/g,"")}else e.negPre=n+e.posPre,e.negSuf=e.posSuf;return e}(function ov(t,n){return Ui(t)[Ze.NumberFormats][n]}(n,Ji.Decimal),xo(n,gt.MinusSign)),n,gt.Group,gt.Decimal,e)}(function mv(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}(e),o,i)}catch(r){throw Jo()}}}return t.\u0275fac=function(e){return new(e||t)(h(fr,16))},t.\u0275pipe=Gn({name:"number",type:t,pure:!0,standalone:!0}),t})();let zi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();const Kw="browser";function Gs(t){return t===Kw}function ul(t){return"server"===t}let m4=(()=>{class t{}return t.\u0275prov=ye({token:t,providedIn:"root",factory:()=>new v4(ie(ut),window)}),t})();class v4{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function _4(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const s=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(s)return s}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Zw(this.window.history)||Zw(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function Zw(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Xw{}class bv extends class L4 extends class ij{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function nj(t){fh||(fh=t)}(new bv)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function F4(){return Xc=Xc||document.querySelector("base"),Xc?Xc.getAttribute("href"):null}();return null==e?null:function B4(t){Dh=Dh||document.createElement("a"),Dh.setAttribute("href",t);const n=Dh.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Xc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Vw(document.cookie,n)}}let Dh,Xc=null;const nD=new Ie("TRANSITION_ID"),j4=[{provide:ah,useFactory:function V4(t,n,e){return()=>{e.get(lh).donePromise.then(()=>{const i=gr(),o=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<o.length;r++)i.remove(o[r])})}},deps:[nD,ut,_n],multi:!0}];let H4=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();const Mh=new Ie("EventManagerPlugins");let Th=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}addGlobalEventListener(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const o=this._plugins;for(let r=0;r<o.length;r++){const s=o[r];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(ie(Mh),ie(at))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();class iD{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const o=gr().getGlobalEventTarget(this._doc,n);if(!o)throw new Error(`Unsupported event target ${o} for event ${e}`);return this.addEventListener(o,e,i)}}let oD=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),i.add(o))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),Jc=(()=>{class t extends oD{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,o){e.forEach(r=>{const s=this._doc.createElement("style");s.textContent=r,o.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(rD),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(e,o,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(rD))}}return t.\u0275fac=function(e){return new(e||t)(ie(ut))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();function rD(t){gr().remove(t)}const yv={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/",math:"http://www.w3.org/1998/MathML/"},Cv=/%COMP%/g;function xh(t,n,e){for(let i=0;i<n.length;i++){let o=n[i];Array.isArray(o)?xh(t,o,e):(o=o.replace(Cv,t),e.push(o))}return e}function lD(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Oh=(()=>{class t{constructor(e,i,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Ev(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ho.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new Y4(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o}case 1:case Ho.ShadowDom:return new Q4(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const o=xh(i.id,i.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(ie(Th),ie(Jc),ie(al))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();class Ev{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(yv[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(uD(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(uD(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=yv[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=yv[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(Zi.DashCase|Zi.Important)?n.style.setProperty(e,i,o&Zi.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Zi.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,lD(i)):this.eventManager.addEventListener(n,e,lD(i))}}function uD(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class Y4 extends Ev{constructor(n,e,i,o){super(n),this.component=i;const r=xh(o+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function q4(t){return"_ngcontent-%COMP%".replace(Cv,t)}(o+"-"+i.id),this.hostAttr=function W4(t){return"_nghost-%COMP%".replace(Cv,t)}(o+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class Q4 extends Ev{constructor(n,e,i,o){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=xh(o.id,o.styles,[]);for(let s=0;s<r.length;s++){const a=document.createElement("style");a.textContent=r[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let K4=(()=>{class t extends iD{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}}return t.\u0275fac=function(e){return new(e||t)(ie(ut))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();const dD=["alt","control","meta","shift"],Z4={"\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"},X4={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let J4=(()=>{class t extends iD{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),s=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gr().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),dD.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let o=Z4[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),dD.forEach(s=>{s!==o&&(0,X4[s])(e)&&(r+=s+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(ie(ut))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();const fD=[{provide:To,useValue:Kw},{provide:XA,useValue:function eU(){bv.makeCurrent()},multi:!0},{provide:ut,useFactory:function nU(){return function EN(t){lg=t}(document),document},deps:[]}],iU=aw(J3,"browser",fD),pD=new Ie(""),gD=[{provide:ch,useClass:class U4{addToWindow(n){mn.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},mn.getAllAngularTestabilities=()=>n.getAllTestabilities(),mn.getAllAngularRootElements=()=>n.getAllRootElements(),mn.frameworkStabilizers||(mn.frameworkStabilizers=[]),mn.frameworkStabilizers.push(i=>{const o=mn.getAllAngularTestabilities();let r=o.length,s=!1;const a=function(l){s=s||l,r--,0==r&&i(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const o=n.getTestability(e);return null!=o?o:i?gr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}},deps:[]},{provide:iw,useClass:$m,deps:[at,Ym,ch]},{provide:$m,useClass:$m,deps:[at,Ym,ch]}],mD=[{provide:_g,useValue:"root"},{provide:Ir,useFactory:function tU(){return new Ir},deps:[]},{provide:Mh,useClass:K4,multi:!0,deps:[ut,at,To]},{provide:Mh,useClass:J4,multi:!0,deps:[ut]},{provide:Oh,useClass:Oh,deps:[Th,Jc,al]},{provide:wc,useExisting:Oh},{provide:oD,useExisting:Jc},{provide:Jc,useClass:Jc,deps:[ut]},{provide:Th,useClass:Th,deps:[Mh,at]},{provide:Xw,useClass:H4,deps:[]},[]];let vD=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:al,useValue:e.appId},{provide:nD,useExisting:al},j4]}}}return t.\u0275fac=function(e){return new(e||t)(ie(pD,12))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[...mD,...gD],imports:[zi,ej]}),t})(),_D=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(ie(ut))},t.\u0275prov=ye({token:t,factory:function(e){let i=null;return i=e?new e:function rU(){return new _D(ie(ut))}(),i},providedIn:"root"}),t})();"undefined"!=typeof window&&window;let eu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:function(e){let i=null;return i=e?new(e||t):ie(CD),i},providedIn:"root"}),t})(),CD=(()=>{class t extends eu{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Xt.NONE:return i;case Xt.HTML:return lr(i,"HTML")?uo(i):JC(this._doc,String(i)).toString();case Xt.STYLE:return lr(i,"Style")?uo(i):i;case Xt.SCRIPT:if(lr(i,"Script"))return uo(i);throw new Error("unsafe value used in a script context");case Xt.URL:return lr(i,"URL")?uo(i):Pd(String(i));case Xt.RESOURCE_URL:if(lr(i,"ResourceURL"))return uo(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function IN(t){return new wN(t)}(e)}bypassSecurityTrustStyle(e){return function RN(t){return new DN(t)}(e)}bypassSecurityTrustScript(e){return function PN(t){return new MN(t)}(e)}bypassSecurityTrustUrl(e){return function kN(t){return new TN(t)}(e)}bypassSecurityTrustResourceUrl(e){return function NN(t){return new xN(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(ie(ut))},t.\u0275prov=ye({token:t,factory:function(e){let i=null;return i=e?new e:function hU(t){return new CD(t.get(ut))}(ie(_n)),i},providedIn:"root"}),t})();class ED{}const Vr="*";function qi(t,n){return{type:7,name:t,definitions:n,options:{}}}function Wn(t,n=null){return{type:4,styles:n,timings:t}}function SD(t,n=null){return{type:3,steps:t,options:n}}function AD(t,n=null){return{type:2,steps:t,options:n}}function Pt(t){return{type:6,styles:t,offset:null}}function gi(t,n,e){return{type:0,name:t,styles:n,options:e}}function Vn(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function wv(t=null){return{type:9,options:t}}function Dv(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function wD(t){Promise.resolve().then(t)}class tu{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){wD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class DD{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?wD(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==r&&this._onFinish()}),s.onDestroy(()=>{++i==r&&this._onDestroy()}),s.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function MD(t){return new Me(3e3,!1)}function QU(){return"undefined"!=typeof window&&void 0!==window.document}function Tv(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function as(t){switch(t.length){case 0:return new tu;case 1:return t[0];default:return new DD(t)}}function TD(t,n,e,i,o=new Map,r=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),f=d==l,A=f&&c||new Map;u.forEach((H,te)=>{let pe=te,he=H;if("offset"!==te)switch(pe=n.normalizePropertyName(pe,s),he){case"!":he=o.get(te);break;case Vr:he=r.get(te);break;default:he=n.normalizeStyleValue(te,pe,he,s)}A.set(pe,he)}),f||a.push(A),c=A,l=d}),s.length)throw function FU(t){return new Me(3502,!1)}();return a}function xv(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Ov(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Ov(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Ov(e,"destroy",t)))}}function Ov(t,n,e){const i=e.totalTime,r=Iv(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),s=t._data;return null!=s&&(r._data=s),r}function Iv(t,n,e,i,o="",r=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function fo(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function xD(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let Rv=(t,n)=>!1,OD=(t,n,e)=>[],ID=null;function Pv(t){const n=t.parentNode||t.host;return n===ID?null:n}(Tv()||"undefined"!=typeof Element)&&(QU()?(ID=(()=>document.documentElement)(),Rv=(t,n)=>{for(;n;){if(n===t)return!0;n=Pv(n)}return!1}):Rv=(t,n)=>t.contains(n),OD=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let zs=null,RD=!1;const PD=Rv,kD=OD;let ND=(()=>{class t{validateStyleProperty(e){return function ZU(t){zs||(zs=function XU(){return"undefined"!=typeof document?document.body:null}()||{},RD=!!zs.style&&"WebkitAppearance"in zs.style);let n=!0;return zs.style&&!function KU(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in zs.style,!n&&RD&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in zs.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return PD(e,i)}getParentElement(e){return Pv(e)}query(e,i,o){return kD(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,s,a=[],l){return new tu(o,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),kv=(()=>{class t{}return t.NOOP=new ND,t})();const Nv="ng-enter",Ih="ng-leave",Rh="ng-trigger",Ph=".ng-trigger",FD="ng-animating",Lv=".ng-animating";function jr(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Fv(parseFloat(n[1]),n[2])}function Fv(t,n){return"s"===n?1e3*t:t}function kh(t,n,e){return t.hasOwnProperty("duration")?t:function tH(t,n,e){let o,r=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(MD()),{duration:0,delay:0,easing:""};o=Fv(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=Fv(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else o=t;if(!e){let a=!1,l=n.length;o<0&&(n.push(function gU(){return new Me(3100,!1)}()),a=!0),r<0&&(n.push(function mU(){return new Me(3101,!1)}()),a=!0),a&&n.splice(l,0,MD())}return{duration:o,delay:r,easing:s}}(t,n,e)}function nu(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function BD(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function ls(t,n=new Map,e){if(e)for(let[i,o]of e)n.set(i,o);for(let[i,o]of t)n.set(i,o);return n}function jD(t,n,e){return e?n+":"+e+";":""}function UD(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=jD(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=jD(0,rH(e),t.style[e]));t.setAttribute("style",n)}function mr(t,n,e){t.style&&(n.forEach((i,o)=>{const r=Vv(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i}),Tv()&&UD(t))}function qs(t,n){t.style&&(n.forEach((e,i)=>{const o=Vv(i);t.style[o]=""}),Tv()&&UD(t))}function iu(t){return Array.isArray(t)?1==t.length?t[0]:AD(t):t}const Bv=new RegExp("{{\\s*(.+?)\\s*}}","g");function HD(t){let n=[];if("string"==typeof t){let e;for(;e=Bv.exec(t);)n.push(e[1]);Bv.lastIndex=0}return n}function ou(t,n,e){const i=t.toString(),o=i.replace(Bv,(r,s)=>{let a=n[s];return null==a&&(e.push(function _U(t){return new Me(3003,!1)}()),a=""),a.toString()});return o==i?t:o}function Nh(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const oH=/-+([a-z0-9])/g;function Vv(t){return t.replace(oH,(...n)=>n[1].toUpperCase())}function rH(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function po(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function bU(t){return new Me(3004,!1)}()}}function GD(t,n){return window.getComputedStyle(t)[n]}function dH(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function hH(t,n,e){if(":"==t[0]){const l=function fH(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function PU(t){return new Me(3016,!1)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function RU(t){return new Me(3015,!1)}()),n;const o=i[1],r=i[2],s=i[3];n.push(zD(o,s));"<"==r[0]&&!("*"==o&&"*"==s)&&n.push(zD(s,o))}(i,e,n)):e.push(t),e}const Vh=new Set(["true","1"]),jh=new Set(["false","0"]);function zD(t,n){const e=Vh.has(t)||jh.has(t),i=Vh.has(n)||jh.has(n);return(o,r)=>{let s="*"==t||t==o,a="*"==n||n==r;return!s&&e&&"boolean"==typeof o&&(s=o?Vh.has(t):jh.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Vh.has(n):jh.has(n)),s&&a}}const pH=new RegExp("s*:selfs*,?","g");function jv(t,n,e,i){return new gH(t).build(n,e,i)}class gH{constructor(n){this._driver=n}build(n,e,i){const o=new _H(e);return this._resetContextStyleTimingState(o),po(this,iu(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function CU(){return new Me(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,o+=l.depCount,s.push(l)}else e.errors.push(function EU(){return new Me(3007,!1)}())}),{type:7,name:n.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{HD(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c)})})}),r.size&&(Nh(r.values()),e.errors.push(function SU(t,n){return new Me(3008,!1)}()))}return{type:0,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=po(this,iu(n.animation),e);return{type:1,matchers:dH(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ws(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>po(this,i,e)),options:Ws(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(s=>{e.currentTime=i;const a=po(this,s,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:r,options:Ws(n.options)}}visitAnimate(n,e){const i=function yH(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Uv(kh(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Uv(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=kh(e,n);return Uv(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:Pt({});if(5==r.type)o=this.visitKeyframes(r,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Pt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of o)"string"==typeof a?a===Vr?i.push(a):e.errors.push(new Me(3002,!1)):i.push(BD(a));let r=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r))for(let l of a.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(e.errors.push(function wU(t,n,e,i,o){return new Me(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),e.options&&function iH(t,n,e){const i=n.params||{},o=HD(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function vU(t){return new Me(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function DU(){return new Me(3011,!1)}()),i;let r=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(he=>{const _e=this._makeStyleAst(he,e);let fe=null!=_e.offset?_e.offset:function bH(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(_e.styles),ve=0;return null!=fe&&(r++,ve=_e.offset=fe),l=l||ve<0||ve>1,a=a||ve<c,c=ve,s.push(ve),_e});l&&e.errors.push(function MU(){return new Me(3012,!1)}()),a&&e.errors.push(function TU(){return new Me(3200,!1)}());const d=n.steps.length;let f=0;r>0&&r<d?e.errors.push(function xU(){return new Me(3202,!1)}()):0==r&&(f=1/(d-1));const A=d-1,H=e.currentTime,te=e.currentAnimateTimings,pe=te.duration;return u.forEach((he,_e)=>{const fe=f>0?_e==A?1:f*_e:s[_e],ve=fe*pe;e.currentTime=H+te.delay+ve,te.duration=ve,this._validateStyleAst(he,e),he.offset=fe,i.styles.push(he)}),i}visitReference(n,e){return{type:8,animation:po(this,iu(n.animation),e),options:Ws(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Ws(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Ws(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,s]=function mH(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(pH,"")),t=t.replace(/@\*/g,Ph).replace(/@\w+/g,e=>Ph+"-"+e.slice(1)).replace(/:animating/g,Lv),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,fo(e.collectedStyles,e.currentQuerySelector,new Map);const a=po(this,iu(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Ws(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function OU(){return new Me(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:kh(n.timings,e.errors,!0);return{type:12,animation:po(this,iu(n.animation),e),timings:i,options:null}}}class _H{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ws(t){return t?(t=nu(t)).params&&(t.params=function vH(t){return t?nu(t):null}(t.params)):t={},t}function Uv(t,n,e){return{duration:t,delay:n,easing:e}}function Hv(t,n,e,i,o,r,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class Uh{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const SH=new RegExp(":enter","g"),wH=new RegExp(":leave","g");function Gv(t,n,e,i,o,r=new Map,s=new Map,a,l,c=[]){return(new DH).buildKeyframes(t,n,e,i,o,r,s,a,l,c)}class DH{buildKeyframes(n,e,i,o,r,s,a,l,c,u=[]){c=c||new Uh;const d=new zv(n,e,c,o,r,u,[]);d.options=l;const f=l.delay?jr(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,l),po(this,i,d);const A=d.timelines.filter(H=>H.containsAnimation());if(A.length&&a.size){let H;for(let te=A.length-1;te>=0;te--){const pe=A[te];if(pe.element===e){H=pe;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([a],null,d.errors,l)}return A.length?A.map(H=>H.buildKeyframes()):[Hv(e,[],[],[],0,f,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){var o;for(const r of n){const s=null==r?void 0:r.delay;if(s){const a="number"==typeof s?s:jr(ou(s,null!==(o=null==r?void 0:r.params)&&void 0!==o?o:{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const s=null!=i.duration?jr(i.duration):null,a=null!=i.delay?jr(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),po(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Hh);const s=jr(r.delay);o.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>po(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?jr(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),po(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return kh(e.params?ou(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?jr(o.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Hh);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);r&&d.delayNextStep(r),c===e.element&&(l=d.currentTimeline),po(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,s=Math.abs(r.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;po(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const Hh={};class zv{constructor(n,e,i,o,r,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Gh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=jr(i.duration)),null!=i.delay&&(o.delay=jr(i.delay));const r=i.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=ou(r[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new zv(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Hh,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new MH(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,s){let a=[];if(o&&a.push(this.element),n.length>0){n=(n=n.replace(SH,"."+this._enterClassName)).replace(wH,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&s.push(function IU(t){return new Me(3014,!1)}()),a}}class Gh{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Gh(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Vr),this._currentKeyframe.set(e,Vr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){var r;e&&this._previousKeyframe.set("easing",e);const s=o&&o.params||{},a=function TH(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i=i||n.keys();for(let r of i)e.set(r,Vr)}else ls(o,e)}),e}(n,this._globalTimelineStyles);for(let[l,c]of a){const u=ou(c,s,i);this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,null!==(r=this._globalTimelineStyles.get(l))&&void 0!==r?r:Vr),this._updateStyle(l,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=ls(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?n.add(d):u===Vr&&e.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=n.size?Nh(n.values()):[],s=e.size?Nh(e.values()):[];if(i){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return Hv(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}}class MH extends Gh{constructor(n,e,i,o,r,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=i+e,a=e/s,l=ls(n[0]);l.set("offset",0),r.push(l);const c=ls(n[0]);c.set("offset",$D(a)),r.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let f=ls(n[d]);const A=f.get("offset");f.set("offset",$D((e+A*i)/s)),r.push(f)}i=s,e=0,o="",n=r}return Hv(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function $D(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class qv{}const xH=new Set(["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"]);class OH extends qv{normalizePropertyName(n,e){return Vv(n)}normalizeStyleValue(n,e,i,o){let r="";const s=i.toString().trim();if(xH.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function yU(t,n){return new Me(3005,!1)}())}return s+r}}function YD(t,n,e,i,o,r,s,a,l,c,u,d,f){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const Wv={};class QD{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function IH(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(null==n?void 0:n.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,s,a,l,c,u){var d;const f=[],A=this.ast.options&&this.ast.options.params||Wv,te=this.buildStyles(i,a&&a.params||Wv,f),pe=l&&l.params||Wv,he=this.buildStyles(o,pe,f),_e=new Set,fe=new Map,ve=new Map,He="void"===o,dt={params:RH(pe,A),delay:null===(d=this.ast.options)||void 0===d?void 0:d.delay},Wt=u?[]:Gv(n,e,this.ast.animation,r,s,te,he,dt,c,f);let Tt=0;if(Wt.forEach(It=>{Tt=Math.max(It.duration+It.delay,Tt)}),f.length)return YD(e,this._triggerName,i,o,He,te,he,[],[],fe,ve,Tt,f);Wt.forEach(It=>{const hn=It.element,vi=fo(fe,hn,new Set);It.preStyleProps.forEach(Di=>vi.add(Di));const Un=fo(ve,hn,new Set);It.postStyleProps.forEach(Di=>Un.add(Di)),hn!==e&&_e.add(hn)});const En=Nh(_e.values());return YD(e,this._triggerName,i,o,He,te,he,Wt,En,fe,ve,Tt)}}function RH(t,n){const e=nu(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class PH{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=nu(this.defaultParams);return Object.keys(n).forEach(r=>{const s=n[r];null!==s&&(o[r]=s)}),this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((s,a)=>{s&&(s=ou(s,o,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class NH{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new PH(o.style,o.options&&o.options.params||{},i))}),KD(this.states,"true","1"),KD(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new QD(n,o,this.states))}),this.fallbackTransition=function LH(t,n,e){return new QD(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(s=>s.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function KD(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const FH=new Uh;class BH{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=jv(this._driver,e,i,[]);if(i.length)throw function BU(t){return new Me(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=TD(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let s;const a=new Map;if(r?(s=Gv(this._driver,e,r,Nv,Ih,new Map,new Map,i,FH,o),s.forEach(u=>{const d=fo(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(o.push(function VU(){return new Me(3300,!1)}()),s=[]),o.length)throw function jU(t){return new Me(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,A)=>{u.set(A,this._driver.computeStyle(d,A,Vr))})});const c=as(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function UU(t){return new Me(3301,!1)}();return e}listen(n,e,i,o){const r=Iv(e,"","","");return xv(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const ZD="ng-animate-queued",$v="ng-animate-disabled",GH=[],XD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},zH={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ro="__ng_removed";class Yv{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function YH(t){return null!=t?t:null}(i?n.value:n),i){const r=nu(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const ru="void",Qv=new Yv(ru);class qH{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Po(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function HU(t,n){return new Me(3302,!1)}();if(null==i||0==i.length)throw function GU(t){return new Me(3303,!1)}();if(!function QH(t){return"start"==t||"done"==t}(i))throw function zU(t,n){return new Me(3400,!1)}();const r=fo(this._elementListeners,n,[]),s={name:e,phase:i,callback:o};r.push(s);const a=fo(this._engine.statesByElement,n,new Map);return a.has(e)||(Po(n,Rh),Po(n,Rh+"-"+e),a.set(e,Qv)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function qU(t){return new Me(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),s=new Kv(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Po(n,Rh),Po(n,Rh+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new Yv(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Qv),c.value!==ru&&l.value===c.value){if(!function XH(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o<e.length;o++){const r=e[o];if(!n.hasOwnProperty(r)||t[r]!==n[r])return!1}return!0}(l.params,c.params)){const te=[],pe=r.matchStyles(l.value,l.params,te),he=r.matchStyles(c.value,c.params,te);te.length?this._engine.reportError(te):this._engine.afterFlush(()=>{qs(n,pe),mr(n,he)})}return}const f=fo(this._engine.playersByElement,n,[]);f.forEach(te=>{te.namespaceId==this.id&&te.triggerName==e&&te.queued&&te.destroy()});let A=r.matchTransition(l.value,c.value,n,c.params),H=!1;if(!A){if(!o)return;A=r.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:A,fromState:l,toState:c,player:s,isFallbackTransition:H}),H||(Po(n,ZD),s.onStart(()=>{dl(n,ZD)})),s.onDone(()=>{let te=this.players.indexOf(s);te>=0&&this.players.splice(te,1);const pe=this._engine.playersByElement.get(n);if(pe){let he=pe.indexOf(s);he>=0&&pe.splice(he,1)}}),this.players.push(s),f.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Ph,!0);i.forEach(o=>{if(o[Ro])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),s=new Map;if(r){const a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,ru,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&as(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const s=r.name;if(o.has(s))return;o.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Qv,u=new Yv(ru),d=new Kv(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Ro];(!r||r===XD)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Po(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Iv(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,xv(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,s=o.transition.ast.depCount;return 0==r||0==s?r-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class WH{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new qH(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(zh(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!zh(e))return;const r=e[Ro];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Po(n,$v)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),dl(n,$v))}removeNode(n,e,i,o){if(zh(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,o):this.markElementAsRemoved(n,e,!1,o),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Ro]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return zh(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Ph,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Lv,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return as(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[Ro];if(i&&i.setForRemoval){if(n[Ro]=XD,i.namespaceId){this.destroyInnerAnimations(n);const o=this._fetchNamespace(i.namespaceId);o&&o.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}!(null===(e=n.classList)||void 0===e)&&e.contains($v)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Po(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let o=0;o<i.length;o++)i[o]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?as(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function WU(t){return new Me(3402,!1)}()}_flushAnimations(n,e){const i=new Uh,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Ke=>{u.add(Ke);const Ge=this.driver.query(Ke,".ng-animate-queued",!0);for(let ot=0;ot<Ge.length;ot++)u.add(Ge[ot])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),A=tM(f,this.collectedEnterElements),H=new Map;let te=0;A.forEach((Ke,Ge)=>{const ot=Nv+te++;H.set(Ge,ot),Ke.forEach(it=>Po(it,ot))});const pe=[],he=new Set,_e=new Set;for(let Ke=0;Ke<this.collectedLeaveElements.length;Ke++){const Ge=this.collectedLeaveElements[Ke],ot=Ge[Ro];ot&&ot.setForRemoval&&(pe.push(Ge),he.add(Ge),ot.hasAnimation?this.driver.query(Ge,".ng-star-inserted",!0).forEach(it=>he.add(it)):_e.add(Ge))}const fe=new Map,ve=tM(f,Array.from(he));ve.forEach((Ke,Ge)=>{const ot=Ih+te++;fe.set(Ge,ot),Ke.forEach(it=>Po(it,ot))}),n.push(()=>{A.forEach((Ke,Ge)=>{const ot=H.get(Ge);Ke.forEach(it=>dl(it,ot))}),ve.forEach((Ke,Ge)=>{const ot=fe.get(Ge);Ke.forEach(it=>dl(it,ot))}),pe.forEach(Ke=>{this.processLeaveNode(Ke)})});const He=[],dt=[];for(let Ke=this._namespaceList.length-1;Ke>=0;Ke--)this._namespaceList[Ke].drainQueuedTransitions(e).forEach(ot=>{const it=ot.player,jt=ot.element;if(He.push(it),this.collectedEnterElements.length){const Tn=jt[Ro];if(Tn&&Tn.setForMove){if(Tn.previousTriggersValues&&Tn.previousTriggersValues.has(ot.triggerName)){const Yi=Tn.previousTriggersValues.get(ot.triggerName),no=this.statesByElement.get(ot.element);if(no&&no.has(ot.triggerName)){const nc=no.get(ot.triggerName);nc.value=Yi,no.set(ot.triggerName,nc)}}return void it.destroy()}}const Sn=!d||!this.driver.containsElement(d,jt),oi=fe.get(jt),Bt=H.get(jt),Ct=this._buildInstruction(ot,i,Bt,oi,Sn);if(Ct.errors&&Ct.errors.length)return void dt.push(Ct);if(Sn)return it.onStart(()=>qs(jt,Ct.fromStyles)),it.onDestroy(()=>mr(jt,Ct.toStyles)),void o.push(it);if(ot.isFallbackTransition)return it.onStart(()=>qs(jt,Ct.fromStyles)),it.onDestroy(()=>mr(jt,Ct.toStyles)),void o.push(it);const Fe=[];Ct.timelines.forEach(Tn=>{Tn.stretchStartingKeyframe=!0,this.disabledNodes.has(Tn.element)||Fe.push(Tn)}),Ct.timelines=Fe,i.append(jt,Ct.timelines),s.push({instruction:Ct,player:it,element:jt}),Ct.queriedElements.forEach(Tn=>fo(a,Tn,[]).push(it)),Ct.preStyleProps.forEach((Tn,Yi)=>{if(Tn.size){let no=l.get(Yi);no||l.set(Yi,no=new Set),Tn.forEach((nc,nd)=>no.add(nd))}}),Ct.postStyleProps.forEach((Tn,Yi)=>{let no=c.get(Yi);no||c.set(Yi,no=new Set),Tn.forEach((nc,nd)=>no.add(nd))})});if(dt.length){const Ke=[];dt.forEach(Ge=>{Ke.push(function $U(t,n){return new Me(3505,!1)}())}),He.forEach(Ge=>Ge.destroy()),this.reportError(Ke)}const Wt=new Map,Tt=new Map;s.forEach(Ke=>{const Ge=Ke.element;i.has(Ge)&&(Tt.set(Ge,Ge),this._beforeAnimationBuild(Ke.player.namespaceId,Ke.instruction,Wt))}),o.forEach(Ke=>{const Ge=Ke.element;this._getPreviousPlayers(Ge,!1,Ke.namespaceId,Ke.triggerName,null).forEach(it=>{fo(Wt,Ge,[]).push(it),it.destroy()})});const En=pe.filter(Ke=>iM(Ke,l,c)),It=new Map;eM(It,this.driver,_e,c,Vr).forEach(Ke=>{iM(Ke,l,c)&&En.push(Ke)});const vi=new Map;A.forEach((Ke,Ge)=>{eM(vi,this.driver,new Set(Ke),l,"!")}),En.forEach(Ke=>{var Ge,ot;const it=It.get(Ke),jt=vi.get(Ke);It.set(Ke,new Map([...Array.from(null!==(Ge=null==it?void 0:it.entries())&&void 0!==Ge?Ge:[]),...Array.from(null!==(ot=null==jt?void 0:jt.entries())&&void 0!==ot?ot:[])]))});const Un=[],Di=[],bo={};s.forEach(Ke=>{const{element:Ge,player:ot,instruction:it}=Ke;if(i.has(Ge)){if(u.has(Ge))return ot.onDestroy(()=>mr(Ge,it.toStyles)),ot.disabled=!0,ot.overrideTotalTime(it.totalTime),void o.push(ot);let jt=bo;if(Tt.size>1){let oi=Ge;const Bt=[];for(;oi=oi.parentNode;){const Ct=Tt.get(oi);if(Ct){jt=Ct;break}Bt.push(oi)}Bt.forEach(Ct=>Tt.set(Ct,jt))}const Sn=this._buildAnimation(ot.namespaceId,it,Wt,r,vi,It);if(ot.setRealPlayer(Sn),jt===bo)Un.push(ot);else{const oi=this.playersByElement.get(jt);oi&&oi.length&&(ot.parentPlayer=as(oi)),o.push(ot)}}else qs(Ge,it.fromStyles),ot.onDestroy(()=>mr(Ge,it.toStyles)),Di.push(ot),u.has(Ge)&&o.push(ot)}),Di.forEach(Ke=>{const Ge=r.get(Ke.element);if(Ge&&Ge.length){const ot=as(Ge);Ke.setRealPlayer(ot)}}),o.forEach(Ke=>{Ke.parentPlayer?Ke.syncPlayerEvents(Ke.parentPlayer):Ke.destroy()});for(let Ke=0;Ke<pe.length;Ke++){const Ge=pe[Ke],ot=Ge[Ro];if(dl(Ge,Ih),ot&&ot.hasAnimation)continue;let it=[];if(a.size){let Sn=a.get(Ge);Sn&&Sn.length&&it.push(...Sn);let oi=this.driver.query(Ge,Lv,!0);for(let Bt=0;Bt<oi.length;Bt++){let Ct=a.get(oi[Bt]);Ct&&Ct.length&&it.push(...Ct)}}const jt=it.filter(Sn=>!Sn.destroyed);jt.length?KH(this,Ge,jt):this.processLeaveNode(Ge)}return pe.length=0,Un.forEach(Ke=>{this.players.push(Ke),Ke.onDone(()=>{Ke.destroy();const Ge=this.players.indexOf(Ke);this.players.splice(Ge,1)}),Ke.play()}),Un}elementContainsData(n,e){let i=!1;const o=e[Ro];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==ru;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(i||o)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const r=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,d=fo(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(A=>{const H=A.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),A.destroy(),d.push(A)})}qs(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,f=e.timelines.map(H=>{const te=H.element;u.add(te);const pe=te[Ro];if(pe&&pe.removedBeforeQueried)return new tu(H.duration,H.delay);const he=te!==l,_e=function ZH(t){const n=[];return nM(t,n),n}((i.get(te)||GH).map(Wt=>Wt.getRealPlayer())).filter(Wt=>!!Wt.element&&Wt.element===te),fe=r.get(te),ve=s.get(te),He=TD(0,this._normalizer,0,H.keyframes,fe,ve),dt=this._buildPlayer(H,He,_e);if(H.subTimeline&&o&&d.add(te),he){const Wt=new Kv(n,a,te);Wt.setRealPlayer(dt),c.push(Wt)}return dt});c.forEach(H=>{fo(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function $H(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,H.element,H))}),u.forEach(H=>Po(H,FD));const A=as(f);return A.onDestroy(()=>{u.forEach(H=>dl(H,FD)),mr(l,e.toStyles)}),d.forEach(H=>{fo(o,H,[]).push(A)}),A}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new tu(n.duration,n.delay)}}class Kv{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new tu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>xv(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){fo(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function zh(t){return t&&1===t.nodeType}function JD(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function eM(t,n,e,i,o){const r=[];e.forEach(l=>r.push(JD(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const f=n.computeStyle(c,d,o);u.set(d,f),(!f||0==f.length)&&(c[Ro]=zH,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>JD(l,r[a++])),s}function tM(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const o=new Set(n),r=new Map;function s(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:s(c),r.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function Po(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function dl(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function KH(t,n,e){as(e).onDone(()=>t.processLeaveNode(n))}function nM(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof DD?nM(i.players,n):n.push(i)}}function iM(t,n,e){const i=e.get(t);if(!i)return!1;let o=n.get(t);return o?i.forEach(r=>o.add(r)):n.set(t,i),e.delete(t),!0}class qh{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new WH(n,e,i),this._timelineEngine=new BH(n,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(n,e,i,o,r){const s=n+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],u=jv(this._driver,r,l,[]);if(l.length)throw function LU(t,n){return new Me(3404,!1)}();a=function kH(t,n,e){return new NH(t,n,e)}(o,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,o,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i,o){this._transitionEngine.removeNode(n,e,o||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,s]=xD(i);this._timelineEngine.command(r,e,s,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[s,a]=xD(i);return this._timelineEngine.listen(s,e,a,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let e5=(()=>{class t{constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&mr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mr(this._element,this._initialStyles),this._endStyles&&(mr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(qs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(qs(this._element,this._endStyles),this._endStyles=null),mr(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Zv(t){let n=null;return t.forEach((e,i)=>{(function t5(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class oM{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:GD(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class n5{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return PD(n,e)}getParentElement(n){return Pv(n)}query(n,e,i){return kD(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,o,r,s=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=s.filter(A=>A instanceof oM);(function sH(t,n){return 0===t||0===n})(i,o)&&u.forEach(A=>{A.currentSnapshot.forEach((H,te)=>c.set(te,H))});let d=function nH(t){return t.length?t[0]instanceof Map?t:t.map(n=>BD(n)):[]}(e).map(A=>ls(A));d=function aH(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,s)=>{i.has(s)||o.push(s),i.set(s,r)}),o.length)for(let r=1;r<n.length;r++){let s=n[r];o.forEach(a=>s.set(a,GD(t,a)))}}return n}(n,d,c);const f=function JH(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Zv(n[0]),n.length>1&&(i=Zv(n[n.length-1]))):n instanceof Map&&(e=Zv(n)),e||i?new e5(t,e,i):null}(n,d);return new oM(n,d,l,f)}}let i5=(()=>{class t extends ED{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ho.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?AD(e):e;return rM(this._renderer,null,i,"register",[o]),new o5(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ie(wc),ie(ut))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();class o5 extends class fU{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new r5(this._id,n,e||{},this._renderer)}}class r5{constructor(n,e,i,o){this.id=n,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return rM(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function rM(t,n,e,i,o){return t.setProperty(n,`@@${e}:${i}`,o)}const sM="@.disabled";let s5=(()=>{class t{constructor(e,i,o){this.delegate=e,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,s)=>{const a=null==s?void 0:s.parentNode(r);a&&s.removeChild(a,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(r);return u||(u=new aM("",r,this.engine,()=>this._rendererCache.delete(r)),this._rendererCache.set(r,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new a5(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,o){e>=0&&e<this._microtaskId?this._zone.run(()=>i(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(ie(wc),ie(qh),ie(at))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();class aM{constructor(n,e,i,o){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){var n;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(n=this._onDestroy)||void 0===n||n.call(this)}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==sM?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class a5 extends aM{constructor(n,e,i,o,r){super(e,i,o,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==sM?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function l5(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),s="";return"@"!=r.charAt(0)&&([r,s]=function c5(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}const lM=[{provide:ED,useClass:i5},{provide:qv,useFactory:function d5(){return new OH}},{provide:qh,useClass:(()=>{class t extends qh{constructor(e,i,o,r){super(e.body,i,o)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(ie(ut),ie(kv),ie(qv),ie(Vs))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})()},{provide:wc,useFactory:function h5(t,n,e){return new s5(t,n,e)},deps:[Oh,qh,at]}],Xv=[{provide:kv,useFactory:()=>new n5},{provide:pi,useValue:"BrowserAnimations"},...lM],cM=[{provide:kv,useClass:ND},{provide:pi,useValue:"NoopAnimations"},...lM];let uM=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?cM:Xv}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:Xv,imports:[vD]}),t})();function ft(t){return null!=t&&"false"!=`${t}`}function Wi(t,n=0){return function f5(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function $h(t){return Array.isArray(t)?t:[t]}function ei(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ur(t){return t instanceof Pe?t.nativeElement:t}function nt(...t){return Kn(t,ic(t))}const{isArray:p5}=Array;function Jv(t){return Ue(n=>function g5(t,n){return p5(n)?t(...n):t(n)}(t,n))}const m5=["addListener","removeListener"],v5=["addEventListener","removeEventListener"],_5=["on","off"];function hl(t,n,e,i){if(k(e)&&(i=e,e=void 0),i)return hl(t,n,e).pipe(Jv(i));const[o,r]=function C5(t){return k(t.addEventListener)&&k(t.removeEventListener)}(t)?v5.map(s=>a=>t[s](n,a,e)):function b5(t){return k(t.addListener)&&k(t.removeListener)}(t)?m5.map(dM(t,n)):function y5(t){return k(t.on)&&k(t.off)}(t)?_5.map(dM(t,n)):[];if(!o&&Sp(t))return si(s=>hl(s,n,e))(Qi(t));if(!o)throw new TypeError("Invalid event target");return new T(s=>{const a=(...l)=>s.next(1<l.length?l:l[0]);return o(a),()=>r(a)})}function dM(t,n){return e=>i=>t[e](n,i)}class E5 extends b{constructor(n,e){super()}schedule(n,e=0){return this}}const Yh={setInterval(t,n,...e){const{delegate:i}=Yh;return null!=i&&i.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Yh;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0};class e_ extends E5{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return Yh.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Yh.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,y(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const su={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=su;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=n(r=>{e=void 0,t(r)});return new b(()=>null==e?void 0:e(o))},requestAnimationFrame(...t){const{delegate:n}=su;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=su;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame)(...t)},delegate:void 0},t_={now:()=>(t_.delegate||Date).now(),delegate:void 0};class au{constructor(n,e=au.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}au.now=t_.now;class n_ extends au{constructor(n,e=au.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}new class A5 extends n_{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class S5 extends e_{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=su.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(su.cancelAnimationFrame(e),n._scheduled=void 0)}});let i_,D5=1;const Qh={};function hM(t){return t in Qh&&(delete Qh[t],!0)}const M5={setImmediate(t){const n=D5++;return Qh[n]=!0,i_||(i_=Promise.resolve()),i_.then(()=>hM(n)&&t()),n},clearImmediate(t){hM(t)}},{setImmediate:T5,clearImmediate:x5}=M5,Kh={setImmediate(...t){const{delegate:n}=Kh;return((null==n?void 0:n.setImmediate)||T5)(...t)},clearImmediate(t){const{delegate:n}=Kh;return((null==n?void 0:n.clearImmediate)||x5)(t)},delegate:void 0},Zh=new class I5 extends n_{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class O5 extends e_{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Kh.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(Kh.clearImmediate(e),n._scheduled=void 0)}}),Xh=new n_(e_),R5=Xh;function fM(t=0,n,e=R5){let i=-1;return null!=n&&(Ly(n)?e=n:i=n),new T(o=>{let r=function k5(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function pM(t,n=Xh){return function P5(t){return Le((n,e)=>{let i=!1,o=null,r=null,s=!1;const a=()=>{if(null==r||r.unsubscribe(),r=null,i){i=!1;const c=o;o=null,e.next(c)}s&&e.complete()},l=()=>{r=null,s&&e.complete()};n.subscribe(ze(e,c=>{i=!0,o=c,r||Qi(t(c)).subscribe(r=ze(e,a,l))},()=>{s=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>fM(t,n))}function qt(t,n){return Le((e,i)=>{let o=0;e.subscribe(ze(i,r=>t.call(n,r,o++)&&i.next(r)))})}function bt(t){return Le((n,e)=>{Qi(t).subscribe(ze(e,()=>e.complete(),J)),!e.closed&&n.subscribe(e)})}let o_;try{o_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){o_=!1}let fl,ti=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Gs(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&&!o_)&&"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.\u0275fac=function(e){return new(e||t)(ie(To))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const gM=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function mM(){if(fl)return fl;if("object"!=typeof document||!document)return fl=new Set(gM),fl;let t=document.createElement("input");return fl=new Set(gM.filter(n=>(t.setAttribute("type",n),t.type===n))),fl}let lu,Jh,Ys,r_;function $s(t){return function N5(){if(null==lu&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>lu=!0}))}finally{lu=lu||!1}return lu}()?t:!!t.capture}function vM(){if(null==Ys){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ys=!1,Ys;if("scrollBehavior"in document.documentElement.style)Ys=!0;else{const t=Element.prototype.scrollTo;Ys=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Ys}function cu(){if("object"!=typeof document||!document)return 0;if(null==Jh){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Jh=0,0===t.scrollLeft&&(t.scrollLeft=1,Jh=0===t.scrollLeft?1:2),t.remove()}return Jh}function _M(t){if(function L5(){if(null==r_){const t="undefined"!=typeof document?document.head:null;r_=!(!t||!t.createShadowRoot&&!t.attachShadow)}return r_}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function s_(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Qs(t){return t.composedPath?t.composedPath()[0]:t.target}function a_(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const F5=new Ie("cdk-dir-doc",{providedIn:"root",factory:function B5(){return un(ut)}}),V5=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let go=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new De,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function j5(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?V5.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(ie(F5,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),pl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})(),uu=(()=>{class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new le,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new T(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(pM(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):nt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(qt(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=Ur(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>hl(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(ie(at),ie(ti),ie(ut,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),du=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new le,this._elementScrolled=new T(s=>this.ngZone.runOutsideAngular(()=>hl(this.elementRef.nativeElement,"scroll").pipe(bt(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=cu()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==cu()?e.left=e.right:1==cu()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;vM()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",r=this.elementRef.nativeElement;if("top"==e)return r.scrollTop;if("bottom"==e)return r.scrollHeight-r.clientHeight-r.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?o:i:"end"==e&&(e=s?i:o),s&&2==cu()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:s&&1==cu()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(uu),h(at),h(go,8))},t.\u0275dir=ge({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),hu=(()=>{class t{constructor(e,i,o){this._platform=e,this._change=new le,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(pM(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(ie(ti),ie(at),ie(ut,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ks=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})(),bM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[pl,Ks,pl,Ks]}),t})();class l_{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class gl extends l_{constructor(n,e,i,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o}}class ml extends l_{constructor(n,e,i,o){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class G5 extends l_{constructor(n){super(),this.element=n instanceof Pe?n.nativeElement:n}}class ef{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof gl?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof ml?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof G5?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class z5 extends ef{constructor(n,e,i,o,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=i.create(n.injector||this._defaultInjector||_n.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=n,o}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let vl=(()=>{class t extends ef{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new De,this.attachDomPortal=r=>{const s=r.element,a=this._document.createComment("dom-portal");r.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=r,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(r,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(h(xr),h(ln),h(ut))},t.\u0275dir=ge({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Te]}),t})(),_l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();function yn(t){return t<=0?()=>jo:Le((n,e)=>{let i=0;n.subscribe(ze(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function yM(t,n=!1){return Le((e,i)=>{let o=0;e.subscribe(ze(i,r=>{const s=t(r,o++);(s||n)&&i.next(r),!s&&i.complete()}))})}function eo(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const SM=vM();class nG{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=ei(-this._previousScrollPosition.left),n.style.top=ei(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),SM&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),SM&&(i.scrollBehavior=r,o.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class iG{constructor(n,e,i,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class AM{enable(){}disable(){}attach(){}}function u_(t,n){return n.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function wM(t,n){return n.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class oG{constructor(n,e,i,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();u_(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let rG=(()=>{class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new AM,this.close=s=>new iG(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new nG(this._viewportRuler,this._document),this.reposition=s=>new oG(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(ie(uu),ie(hu),ie(at),ie(ut))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class gu{constructor(n){if(this.scrollStrategy=new AM,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class sG{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}class mu{constructor(n,e,i,o,r,s,a,l,c,u=!1){this._portalOutlet=n,this._host=e,this._pane=i,this._config=o,this._ngZone=r,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._backdropElement=null,this._backdropClick=new le,this._attachments=new le,this._detachments=new le,this._locationChanges=b.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new le,this._outsidePointerEvents=new le,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(yn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof(null==e?void 0:e.onDestroy)&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){var n;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(n=this._host)||void 0===n||n.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=ei(this._config.width),n.height=ei(this._config.height),n.minWidth=ei(this._config.minWidth),n.minHeight=ei(this._config.minHeight),n.maxWidth=ei(this._config.maxWidth),n.maxHeight=ei(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),this._animationsDisabled||"undefined"==typeof requestAnimationFrame?this._backdropElement.classList.add(n):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})})}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const o=$h(e||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(bt(ki(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let Al=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||a_()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove()}const i=this._document.createElement("div");i.classList.add(e),a_()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return t.\u0275fac=function(e){return new(e||t)(ie(ut),ie(ti))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const DM="cdk-overlay-connected-position-bounding-box",aG=/([A-Za-z%]+)$/;class lG{constructor(n,e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r,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 le,this._resizeSubscription=b.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}get positions(){return this._preferredPositions}attach(n){this._validatePositions(),n.hostElement.classList.add(DM),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,o,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?r.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleArea<u.visibleArea)&&(s={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(r.length){let a=null,l=-1;for(const c of r){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Zs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(DM),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let o,r;if("center"==i.originX)o=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;o="start"==i.originX?s:a}return e.left<0&&(o-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,i,o){const r=TM(e);let{x:s,y:a}=n,l=this._getOffset(o,"x"),c=this._getOffset(o,"y");l&&(s+=l),c&&(a+=c);let f=0-a,A=a+r.height-i.height,H=this._subtractOverflows(r.width,0-s,s+r.width-i.width),te=this._subtractOverflows(r.height,f,A),pe=H*te;return{visibleArea:pe,isCompletelyWithinViewport:r.width*r.height===pe,fitsInViewportVertically:te===r.height,fitsInViewportHorizontally:H==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,s=MM(this._overlayRef.getConfig().minHeight),a=MM(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportHorizontally||null!=a&&a<=r;return(n.fitsInViewportVertically||null!=s&&s<=o)&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=TM(e),r=this._viewportRect,s=Math.max(n.x+o.width-r.width,0),a=Math.max(n.y+o.height-r.height,0),l=Math.max(r.top-i.top-n.y,0),c=Math.max(r.left-i.left-n.x,0);let u=0,d=0;return u=o.width<=r.width?c||-s:n.x<this._viewportMargin?r.left-i.left-n.x:0,d=o.height<=r.height?l||-a:n.y<this._viewportMargin?r.top-i.top-n.y:0,this._previousPushAmount={x:u,y:d},{x:n.x+u,y:n.y+d}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._lastPosition=n,this._positionChanges.observers.length){const i=this._getScrollVisibility(),o=new sG(n,i);this._positionChanges.next(o)}this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,o=n.overlayY;i="center"===n.overlayX?"center":this._isRtl()?"start"===n.overlayX?"right":"left":"start"===n.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${i} ${o}`}_calculateBoundingBoxRect(n,e){const i=this._viewportRect,o=this._isRtl();let r,s,a,u,d,f;if("top"===e.overlayY)s=n.y,r=i.height-s+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-n.y+2*this._viewportMargin,r=i.height-a+this._viewportMargin;else{const A=Math.min(i.bottom-n.y+i.top,n.y),H=this._lastBoundingBoxSize.height;r=2*A,s=n.y-A,r>H&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-H/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)f=i.width-n.x+this._viewportMargin,u=n.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)d=n.x,u=i.right-n.x;else{const A=Math.min(i.right-n.x+i.left,n.x),H=this._lastBoundingBoxSize.width;u=2*A,d=n.x-A,u>H&&!this._isInitialRender&&!this._growAfterOpen&&(d=n.x-H/2)}return{top:s,left:d,bottom:a,right:f,width:u,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.height=ei(i.height),o.top=ei(i.top),o.bottom=ei(i.bottom),o.width=ei(i.width),o.left=ei(i.left),o.right=ei(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=ei(r)),s&&(o.maxWidth=ei(s))}this._lastBoundingBoxSize=i,Zs(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Zs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Zs(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){const u=this._viewportRuler.getViewportScrollPosition();Zs(i,this._getExactOverlayY(e,n,u)),Zs(i,this._getExactOverlayX(e,n,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(o?i.maxHeight=ei(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(o?i.maxWidth=ei(s.maxWidth):r&&(i.maxWidth="")),Zs(this._pane.style,i)}_getExactOverlayY(n,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=ei(r.y),o}_getExactOverlayX(n,e,i){let s,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=ei(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:wM(n,i),isOriginOutsideView:u_(n,i),isOverlayClipped:wM(e,i),isOverlayOutsideView:u_(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&$h(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Pe)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function Zs(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function MM(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(aG);return e&&"px"!==e?null:parseFloat(n)}return t||null}function TM(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const xM="cdk-global-overlay-wrapper";class cG{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(xM),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:s,maxHeight:a}=i,l=!("100%"!==o&&"100vw"!==o||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let A="",H="",te="";l?te="flex-start":"center"===u?(te="center",f?H=d:A=d):f?"left"===u||"end"===u?(te="flex-end",A=d):("right"===u||"start"===u)&&(te="flex-start",H=d):"left"===u||"start"===u?(te="flex-start",A=d):("right"===u||"end"===u)&&(te="flex-end",H=d),n.position=this._cssPosition,n.marginLeft=l?"0":A,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":H,e.justifyContent=te,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(xM),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let uG=(()=>{class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new cG}flexibleConnectedTo(e){return new lG(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(ie(hu),ie(ut),ie(ti),ie(Al))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),OM=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(ie(ut))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dG=(()=>{class t extends OM{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){const a=r[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(o)):a.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(ie(ut),ie(at,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hG=(()=>{class t extends OM{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Qs(r)},this._clickListener=r=>{const s=Qs(r),a="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(r)):d.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return t.\u0275fac=function(e){return new(e||t)(ie(ut),ie(ti),ie(at,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fG=0,to=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,A){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=f,this._animationsModuleType=A}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),s=new gu(e);return s.direction=s.direction||this._directionality.value,new mu(r,i,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+fG++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Vs)),new z5(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(ie(rG),ie(Al),ie(xr),ie(uG),ie(dG),ie(_n),ie(at),ie(ut),ie(go),ie(Yc),ie(hG),ie(pi,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();const pG=[{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"}],IM=new Ie("cdk-connected-overlay-scroll-strategy");let RM=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(h(Pe))},t.\u0275dir=ge({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),PM=(()=>{class t{constructor(e,i,o,r,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=b.EMPTY,this._attachSubscription=b.EMPTY,this._detachSubscription=b.EMPTY,this._positionSubscription=b.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new De,this.positionChange=new De,this.attach=new De,this.detach=new De,this.overlayKeydown=new De,this.overlayOutsideClick=new De,this._templatePortal=new ml(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ft(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=ft(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=ft(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=ft(e)}get push(){return this._push}set push(e){this._push=ft(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=pG);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!eo(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new gu({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof RM?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(yM(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(h(to),h(mt),h(ln),h(IM),h(go,8))},t.\u0275dir=ge({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[zn]}),t})();const mG={provide:IM,deps:[to],useFactory:function gG(t){return()=>t.scrollStrategies.reposition()}};let wl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[to,mG],imports:[pl,_l,bM,bM]}),t})();function cs(t,n){return k(n)?si(t,n,1):si(t,1)}class kM{}class NM{}class Hr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const o=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(e,o))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Hr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Hr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Hr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===r.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class vG{encodeKey(n){return LM(n)}encodeValue(n){return LM(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const bG=/%(\d[a-f0-9])/gi,yG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function LM(t){return encodeURIComponent(t).replace(bG,(n,e)=>{var i;return null!==(i=yG[e])&&void 0!==i?i:n})}function tf(t){return`${t}`}class us{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new vG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _G(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[s,a]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(tf):[tf(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new us({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(tf(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(tf(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class CG{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function FM(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function BM(t){return"undefined"!=typeof Blob&&t instanceof Blob}function VM(t){return"undefined"!=typeof FormData&&t instanceof FormData}class vu{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function EG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new Hr),this.context||(this.context=new CG),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new us,this.urlWithParams=e}serializeBody(){return null===this.body?null:FM(this.body)||BM(this.body)||VM(this.body)||function SG(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof us?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||VM(this.body)?null:BM(this.body)?this.body.type||null:FM(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof us?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){var e;const i=n.method||this.method,o=n.url||this.url,r=n.responseType||this.responseType,s=void 0!==n.body?n.body:this.body,a=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let c=n.headers||this.headers,u=n.params||this.params;const d=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((f,A)=>f.set(A,n.setHeaders[A]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,A)=>f.set(A,n.setParams[A]),u)),new vu(i,o,s,{params:u,headers:c,context:d,reportProgress:l,responseType:r,withCredentials:a})}}var ni=(()=>((ni=ni||{})[ni.Sent=0]="Sent",ni[ni.UploadProgress=1]="UploadProgress",ni[ni.ResponseHeader=2]="ResponseHeader",ni[ni.DownloadProgress=3]="DownloadProgress",ni[ni.Response=4]="Response",ni[ni.User=5]="User",ni))();class d_{constructor(n,e=200,i="OK"){this.headers=n.headers||new Hr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class h_ extends d_{constructor(n={}){super(n),this.type=ni.ResponseHeader}clone(n={}){return new h_({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class nf extends d_{constructor(n={}){super(n),this.type=ni.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new nf({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class jM extends d_{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function f_(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let p_=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof vu)r=e;else{let l,c;l=o.headers instanceof Hr?o.headers:new Hr(o.headers),o.params&&(c=o.params instanceof us?o.params:new us({fromObject:o.params})),r=new vu(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=nt(r).pipe(cs(l=>this.handler.handle(l)));if(e instanceof vu||"events"===o.observe)return s;const a=s.pipe(qt(l=>l instanceof nf));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(Ue(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Ue(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Ue(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Ue(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new us).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,f_(o,i))}post(e,i,o={}){return this.request("POST",e,f_(o,i))}put(e,i,o={}){return this.request("PUT",e,f_(o,i))}}return t.\u0275fac=function(e){return new(e||t)(ie(kM))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();class UM{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const HM=new Ie("HTTP_INTERCEPTORS");let AG=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();const wG=/^\)\]\}',?\n/;let GM=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T(i=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((A,H)=>o.setRequestHeader(A,H.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const A=e.detectContentTypeHeader();null!==A&&o.setRequestHeader("Content-Type",A)}if(e.responseType){const A=e.responseType.toLowerCase();o.responseType="json"!==A?A:"text"}const r=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const A=o.statusText||"OK",H=new Hr(o.getAllResponseHeaders()),te=function DG(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||e.url;return s=new h_({headers:H,status:o.status,statusText:A,url:te}),s},l=()=>{let{headers:A,status:H,statusText:te,url:pe}=a(),he=null;204!==H&&(he=void 0===o.response?o.responseText:o.response),0===H&&(H=he?200:0);let _e=H>=200&&H<300;if("json"===e.responseType&&"string"==typeof he){const fe=he;he=he.replace(wG,"");try{he=""!==he?JSON.parse(he):null}catch(ve){he=fe,_e&&(_e=!1,he={error:ve,text:he})}}_e?(i.next(new nf({body:he,headers:A,status:H,statusText:te,url:pe||void 0})),i.complete()):i.error(new jM({error:he,headers:A,status:H,statusText:te,url:pe||void 0}))},c=A=>{const{url:H}=a(),te=new jM({error:A,status:o.status||0,statusText:o.statusText||"Unknown Error",url:H||void 0});i.error(te)};let u=!1;const d=A=>{u||(i.next(a()),u=!0);let H={type:ni.DownloadProgress,loaded:A.loaded};A.lengthComputable&&(H.total=A.total),"text"===e.responseType&&!!o.responseText&&(H.partialText=o.responseText),i.next(H)},f=A=>{let H={type:ni.UploadProgress,loaded:A.loaded};A.lengthComputable&&(H.total=A.total),i.next(H)};return o.addEventListener("load",l),o.addEventListener("error",c),o.addEventListener("timeout",c),o.addEventListener("abort",c),e.reportProgress&&(o.addEventListener("progress",d),null!==r&&o.upload&&o.upload.addEventListener("progress",f)),o.send(r),i.next({type:ni.Sent}),()=>{o.removeEventListener("error",c),o.removeEventListener("abort",c),o.removeEventListener("load",l),o.removeEventListener("timeout",c),e.reportProgress&&(o.removeEventListener("progress",d),null!==r&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(ie(Xw))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();const g_=new Ie("XSRF_COOKIE_NAME"),m_=new Ie("XSRF_HEADER_NAME");class zM{}let MG=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Vw(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(ie(ut),ie(To),ie(g_))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),v_=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const o=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||o.startsWith("http://")||o.startsWith("https://"))return i.handle(e);const r=this.tokenService.getToken();return null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(ie(zM),ie(m_))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),TG=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(HM,[]);this.chain=i.reduceRight((o,r)=>new UM(o,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(ie(NM),ie(_n))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),xG=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:v_,useClass:AG}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:g_,useValue:e.cookieName}:[],e.headerName?{provide:m_,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[v_,{provide:HM,useExisting:v_,multi:!0},{provide:zM,useClass:MG},{provide:g_,useValue:"XSRF-TOKEN"},{provide:m_,useValue:"X-XSRF-TOKEN"}]}),t})(),OG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[p_,{provide:kM,useClass:TG},GM,{provide:NM,useExisting:GM}],imports:[xG.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),t})();const{isArray:IG}=Array,{getPrototypeOf:RG,prototype:PG,keys:kG}=Object;function qM(t){if(1===t.length){const n=t[0];if(IG(n))return{args:n,keys:null};if(function NG(t){return t&&"object"==typeof t&&RG(t)===PG}(n)){const e=kG(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function WM(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function $M(...t){const n=Fy(t),{args:e,keys:i}=qM(t),o=new T(r=>{const{length:s}=e;if(!s)return void r.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u<s;u++){let d=!1;Qi(e[u]).subscribe(ze(r,f=>{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||r.next(i?WM(i,a):a),r.complete())}))}});return n?o.pipe(Jv(n)):o}let YM=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(h(Do),h(Pe))},t.\u0275dir=ge({type:t}),t})(),Xs=(()=>{class t extends YM{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,features:[Te]}),t})();const mo=new Ie("NgValueAccessor"),FG={provide:mo,useExisting:Kt(()=>ds),multi:!0},VG=new Ie("CompositionEventMode");let ds=(()=>{class t extends YM{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function BG(){const t=gr()?gr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Do),h(Pe),h(VG,8))},t.\u0275dir=ge({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(e,i){1&e&&we("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[Ot([FG]),Te]}),t})();function hs(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function KM(t){return null!=t&&"number"==typeof t.length}const Ei=new Ie("NgValidators"),fs=new Ie("NgAsyncValidators"),UG=/^(?=.{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])?)*$/;class __{static min(n){return function ZM(t){return n=>{if(hs(n.value)||hs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}(n)}static max(n){return function XM(t){return n=>{if(hs(n.value)||hs(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return function JM(t){return hs(t.value)?{required:!0}:null}(n)}static requiredTrue(n){return function eT(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function tT(t){return hs(t.value)||UG.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function nT(t){return n=>hs(n.value)||!KM(n.value)?null:n.value.length<t?{minlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static maxLength(n){return iT(n)}static pattern(n){return function oT(t){if(!t)return rf;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(hs(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return uT(n)}static composeAsync(n){return dT(n)}}function iT(t){return n=>KM(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function rf(t){return null}function rT(t){return null!=t}function sT(t){return kc(t)?Kn(t):t}function aT(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function lT(t,n){return n.map(e=>e(t))}function cT(t){return t.map(n=>function HG(t){return!t.validate}(n)?n:e=>n.validate(e))}function uT(t){if(!t)return null;const n=t.filter(rT);return 0==n.length?null:function(e){return aT(lT(e,n))}}function b_(t){return null!=t?uT(cT(t)):null}function dT(t){if(!t)return null;const n=t.filter(rT);return 0==n.length?null:function(e){return $M(lT(e,n).map(sT)).pipe(Ue(aT))}}function y_(t){return null!=t?dT(cT(t)):null}function hT(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function fT(t){return t._rawValidators}function pT(t){return t._rawAsyncValidators}function C_(t){return t?Array.isArray(t)?t:[t]:[]}function sf(t,n){return Array.isArray(t)?t.includes(n):t===n}function gT(t,n){const e=C_(n);return C_(t).forEach(o=>{sf(e,o)||e.push(o)}),e}function mT(t,n){return C_(n).filter(e=>!sf(t,e))}class vT{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=b_(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=y_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class vr extends vT{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $i extends vT{get formDirective(){return null}get path(){return null}}let Dl=(()=>{class t extends class _T{constructor(n){this._cd=n}get isTouched(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.touched)}get isUntouched(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.untouched)}get isPristine(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.pristine)}get isDirty(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.dirty)}get isValid(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.valid)}get isInvalid(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.invalid)}get isPending(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.pending)}get isSubmitted(){var n;return!(null===(n=this._cd)||void 0===n||!n.submitted)}}{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(h(vr,2))},t.\u0275dir=ge({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&lt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Te]}),t})();const _u="VALID",lf="INVALID",Ml="PENDING",bu="DISABLED";function w_(t){return(cf(t)?t.validators:t)||null}function CT(t){return Array.isArray(t)?b_(t):t||null}function D_(t,n){return(cf(n)?n.asyncValidators:t)||null}function ET(t){return Array.isArray(t)?y_(t):t||null}function cf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class wT{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=CT(this._rawValidators),this._composedAsyncValidatorFn=ET(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===_u}get invalid(){return this.status===lf}get pending(){return this.status==Ml}get disabled(){return this.status===bu}get enabled(){return this.status!==bu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=CT(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=ET(n)}addValidators(n){this.setValidators(gT(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(gT(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(mT(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(mT(n,this._rawAsyncValidators))}hasValidator(n){return sf(this._rawValidators,n)}hasAsyncValidator(n){return sf(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Ml,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=bu,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=_u,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_u||this.status===Ml)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?bu:_u}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ml,this._hasOwnPendingAsyncValidator=!0;const e=sT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new De,this.statusChanges=new De}_calculateStatus(){return this._allControlsDisabled()?bu:this.errors?lf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ml)?Ml:this._anyControlsHaveStatus(lf)?lf:_u}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){cf(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}}class M_ extends wT{constructor(n,e,i){super(w_(e),D_(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){(function AT(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new Me(1002,"")})})(this,0,n),Object.keys(n).forEach(i=>{(function ST(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new Me(1e3,"");if(!i[e])throw new Me(1001,"")})(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}function yu(t,n){var e,i;T_(t,n),n.valueAccessor.writeValue(t.value),t.disabled&&(null===(i=(e=n.valueAccessor).setDisabledState)||void 0===i||i.call(e,!0)),function ZG(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&DT(t,n)})}(t,n),function JG(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function XG(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&DT(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function KG(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function df(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),ff(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function hf(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function T_(t,n){const e=fT(t);null!==n.validator?t.setValidators(hT(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=pT(t);null!==n.asyncValidator?t.setAsyncValidators(hT(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();hf(n._rawValidators,o),hf(n._rawAsyncValidators,o)}function ff(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=fT(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=pT(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return hf(n._rawValidators,i),hf(n._rawAsyncValidators,i),e}function DT(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function MT(t,n){T_(t,n)}function xT(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const oz={provide:$i,useExisting:Kt(()=>Tl)},Cu=(()=>Promise.resolve())();let Tl=(()=>{class t extends $i{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new De,this.form=new M_({},b_(e),y_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Cu.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),yu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Cu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Cu.then(()=>{const i=this._findContainer(e.path),o=new M_({});MT(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Cu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Cu.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){var i;return this.submitted=!0,xT(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.method)}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(h(Ei,10),h(fs,10))},t.\u0275dir=ge({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&we("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ot([oz]),Te]}),t})();function OT(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function IT(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const I_=class extends wT{constructor(n=null,e,i){super(w_(e),D_(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),cf(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=IT(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){OT(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){OT(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){IT(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},lz={provide:vr,useExisting:Kt(()=>Js)},kT=(()=>Promise.resolve())();let Js=(()=>{class t extends vr{constructor(e,i,o,r,s){super(),this._changeDetectorRef=s,this.control=new I_,this._registered=!1,this.update=new De,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=function O_(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===ds?e=r:function nz(t){return Object.getPrototypeOf(t.constructor)===Xs}(r)?i=r:o=r}),o||i||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function x_(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){yu(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){kT.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&function Lr(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(i);kT.then(()=>{var r;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_getPath(e){return this._parent?function uf(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(h($i,9),h(Ei,10),h(fs,10),h(mo,10),h(Ut,8))},t.\u0275dir=ge({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ot([lz]),Te,zn]}),t})(),LT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();const R_=new Ie("NgModelWithFormControlWarning"),gz={provide:$i,useExisting:Kt(()=>Eu)};let Eu=(()=>{class t extends $i{constructor(e,i){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new De,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ff(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return yu(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){df(e.control||null,e,!1),function iz(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){var i;return this.submitted=!0,xT(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.method)}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(df(i||null,e),(t=>t instanceof I_)(o)&&(yu(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);MT(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function ez(t,n){return ff(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){T_(this.form,this),this._oldForm&&ff(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(h(Ei,10),h(fs,10))},t.\u0275dir=ge({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&we("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ot([gz]),Te,zn]}),t})();let ea=(()=>{class t{constructor(){this._validator=rf}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):rf,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,features:[zn]}),t})();const Iz={provide:Ei,useExisting:Kt(()=>xl),multi:!0};let xl=(()=>{class t extends ea{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function zT(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>iT(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&xt("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ot([Iz]),Te]}),t})(),ZT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[LT]}),t})(),Pz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[ZT]}),t})(),kz=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:R_,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[ZT]}),t})();class yt extends le{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const gf=$(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function B_(...t){const n=ic(t),e=Fy(t),{args:i,keys:o}=qM(t);if(0===i.length)return Kn([],n);const r=new T(function Lz(t,n,e=g){return i=>{XT(n,()=>{const{length:o}=t,r=new Array(o);let s=o,a=o;for(let l=0;l<o;l++)XT(n,()=>{const c=Kn(t[l],n);let u=!1;c.subscribe(ze(i,d=>{r[l]=d,u||(u=!0,a--),a||i.next(e(r.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,o?s=>WM(o,s):g));return e?r.pipe(Jv(e)):r}function XT(t,n,e){t?Er(e,t,n):n()}function Su(...t){return function Fz(){return ba(1)}()(Kn(t,ic(t)))}function Au(t){return new T(n=>{Qi(t()).subscribe(n)})}function Ol(t,n){const e=k(t)?t:()=>t,i=o=>o.error(e());return new T(n?o=>n.schedule(i,0,o):i)}function V_(){return Le((t,n)=>{let e=null;t._refCount++;const i=ze(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class JT extends T{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,$e(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new b;const e=this.getSubject();n.add(this.source.subscribe(ze(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=b.EMPTY)}return n}refCount(){return V_()(this)}}function Ri(t,n){return Le((e,i)=>{let o=null,r=0,s=!1;const a=()=>s&&!o&&i.complete();e.subscribe(ze(i,l=>{null==o||o.unsubscribe();let c=0;const u=r++;Qi(t(l,u)).subscribe(o=ze(i,d=>i.next(n?n(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function mi(...t){const n=ic(t);return Le((e,i)=>{(n?Su(t,e,n):Su(t,e)).subscribe(i)})}function mf(t){return Le((n,e)=>{let i=!1;n.subscribe(ze(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function ex(t=Bz){return Le((n,e)=>{let i=!1;n.subscribe(ze(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function Bz(){return new gf}function ps(t,n){const e=arguments.length>=2;return i=>i.pipe(t?qt((o,r)=>t(o,r,i)):g,yn(1),e?mf(n):ex(()=>new gf))}function $n(t,n,e){const i=k(t)||n||e?{next:t,error:n,complete:e}:t;return i?Le((o,r)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;o.subscribe(ze(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):g}function Gr(t){return Le((n,e)=>{let r,i=null,o=!1;i=n.subscribe(ze(e,void 0,void 0,s=>{r=Qi(t(s,Gr(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function Vz(t,n,e,i,o){return(r,s)=>{let a=e,l=n,c=0;r.subscribe(ze(s,u=>{const d=c++;l=a?t(l,u,d):(a=!0,u),i&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}function tx(t,n){return Le(Vz(t,n,arguments.length>=2,!0))}function j_(t){return t<=0?()=>jo:Le((n,e)=>{let i=[];n.subscribe(ze(e,o=>{i.push(o),t<i.length&&i.shift()},()=>{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}function nx(t,n){const e=arguments.length>=2;return i=>i.pipe(t?qt((o,r)=>t(o,r,i)):g,j_(1),e?mf(n):ex(()=>new gf))}function vf(t){return Ue(()=>t)}function _f(t){return Le((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}const Vt="primary",wu=Symbol("RouteTitle");class jz{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Il(t){return new jz(t)}function Uz(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const o={};for(let r=0;r<i.length;r++){const s=i[r],a=t[r];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}function _r(t,n){const e=t?Object.keys(t):void 0,i=n?Object.keys(n):void 0;if(!e||!i||e.length!=i.length)return!1;let o;for(let r=0;r<e.length;r++)if(o=e[r],!ix(t[o],n[o]))return!1;return!0}function ix(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort();return e.every((o,r)=>i[r]===o)}return t===n}function ox(t){return Array.prototype.concat.apply([],t)}function rx(t){return t.length>0?t[t.length-1]:null}function Si(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function gs(t){return _m(t)?t:kc(t)?Kn(Promise.resolve(t)):nt(t)}const zz={exact:function lx(t,n,e){if(!na(t.segments,n.segments)||!bf(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!lx(t.children[i],n.children[i],e))return!1;return!0},subset:cx},sx={exact:function qz(t,n){return _r(t,n)},subset:function Wz(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ix(t[e],n[e]))},ignored:()=>!0};function ax(t,n,e){return zz[e.paths](t.root,n.root,e.matrixParams)&&sx[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function cx(t,n,e){return ux(t,n,n.segments,e)}function ux(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!na(o,e)||n.hasChildren()||!bf(o,e,i))}if(t.segments.length===e.length){if(!na(t.segments,e)||!bf(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!cx(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(na(t.segments,o)&&bf(t.segments,o,i)&&t.children[Vt])&&ux(t.children[Vt],n,r,i)}}function bf(t,n,e){return n.every((i,o)=>sx[e](t[o].parameters,i.parameters))}class ta{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Il(this.queryParams)),this._queryParamMap}toString(){return Qz.serialize(this)}}class Ht{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Si(e,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yf(this)}}class Du{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Il(this.parameters)),this._parameterMap}toString(){return px(this)}}function na(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let dx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:function(){return new H_},providedIn:"root"}),t})();class H_{parse(n){const e=new o8(n);return new ta(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Mu(n.root,!0)}`,i=function Xz(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(o=>`${Cf(e)}=${Cf(o)}`).join("&"):`${Cf(e)}=${Cf(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function Kz(t){return encodeURI(t)}(n.fragment)}`:""}`}}const Qz=new H_;function yf(t){return t.segments.map(n=>px(n)).join("/")}function Mu(t,n){if(!t.hasChildren())return yf(t);if(n){const e=t.children[Vt]?Mu(t.children[Vt],!1):"",i=[];return Si(t.children,(o,r)=>{r!==Vt&&i.push(`${r}:${Mu(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function Yz(t,n){let e=[];return Si(t.children,(i,o)=>{o===Vt&&(e=e.concat(n(i,o)))}),Si(t.children,(i,o)=>{o!==Vt&&(e=e.concat(n(i,o)))}),e}(t,(i,o)=>o===Vt?[Mu(t.children[Vt],!1)]:[`${o}:${Mu(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Vt]?`${yf(t)}/${e[0]}`:`${yf(t)}/(${e.join("//")})`}}function hx(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cf(t){return hx(t).replace(/%3B/gi,";")}function G_(t){return hx(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ef(t){return decodeURIComponent(t)}function fx(t){return Ef(t.replace(/\+/g,"%20"))}function px(t){return`${G_(t.path)}${function Zz(t){return Object.keys(t).map(n=>`;${G_(n)}=${G_(t[n])}`).join("")}(t.parameters)}`}const Jz=/^[^\/()?;=#]+/;function Sf(t){const n=t.match(Jz);return n?n[0]:""}const e8=/^[^=?&#]+/,n8=/^[^&#]+/;class o8{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ht([],{}):new Ht([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Vt]=new Ht(n,e)),i}parseSegment(){const n=Sf(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Me(4009,!1);return this.capture(n),new Du(Ef(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Sf(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=Sf(this.remaining);o&&(i=o,this.capture(i))}n[Ef(e)]=Ef(i)}parseQueryParam(n){const e=function t8(t){const n=t.match(e8);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function i8(t){const n=t.match(n8);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const o=fx(e),r=fx(i);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Sf(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new Me(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Vt);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s[Vt]:new Ht([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Me(4011,!1)}}function z_(t){return t.segments.length>0?new Ht([],{[Vt]:t}):t}function Af(t){const n={};for(const i of Object.keys(t.children)){const r=Af(t.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function r8(t){if(1===t.numberOfChildren&&t.children[Vt]){const n=t.children[Vt];return new Ht(t.segments.concat(n.segments),n.children)}return t}(new Ht(t.segments,n))}function ia(t){return t instanceof ta}function l8(t,n,e,i,o){var r;if(0===e.length)return Rl(n.root,n.root,n.root,i,o);const a=function vx(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new mx(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const a={};return Si(r.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===s?(r.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,r]},[]);return new mx(e,n,i)}(e);return a.toRoot()?Rl(n.root,n.root,new Ht([],{}),i,o):function l(u){var d;const f=function u8(t,n,e,i){if(t.isAbsolute)return new Pl(n.root,!0,0);if(-1===i)return new Pl(e,e===n.root,0);return function _x(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new Me(4005,!1);o=i.segments.length}return new Pl(i,!1,o-r)}(e,i+(Tu(t.commands[0])?0:1),t.numberOfDoubleDots)}(a,n,null===(d=t.snapshot)||void 0===d?void 0:d._urlSegment,u),A=f.processChildren?Ou(f.segmentGroup,f.index,a.commands):W_(f.segmentGroup,f.index,a.commands);return Rl(n.root,f.segmentGroup,A,i,o)}(null===(r=t.snapshot)||void 0===r?void 0:r._lastPathIndex)}function Tu(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function xu(t){return"object"==typeof t&&null!=t&&t.outlets}function Rl(t,n,e,i,o){let s,r={};i&&Si(i,(l,c)=>{r[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:gx(t,n,e);const a=z_(Af(s));return new ta(a,r,o)}function gx(t,n,e){const i={};return Si(t.children,(o,r)=>{i[r]=o===n?e:gx(o,n,e)}),new Ht(t.segments,i)}class mx{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Tu(i[0]))throw new Me(4003,!1);const o=i.find(xu);if(o&&o!==rx(i))throw new Me(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Pl{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function W_(t,n,e){if(t||(t=new Ht([],{})),0===t.segments.length&&t.hasChildren())return Ou(t,n,e);const i=function h8(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(i>=e.length)return r;const s=t.segments[o],a=e[i];if(xu(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(o>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!yx(l,c,s))return r;i+=2}else{if(!yx(l,{},s))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const r=new Ht(t.segments.slice(0,i.pathIndex),{});return r.children[Vt]=new Ht(t.segments.slice(i.pathIndex),t.children),Ou(r,0,o)}return i.match&&0===o.length?new Ht(t.segments,{}):i.match&&!t.hasChildren()?$_(t,n,e):i.match?Ou(t,0,o):$_(t,n,e)}function Ou(t,n,e){if(0===e.length)return new Ht(t.segments,{});{const i=function d8(t){return xu(t[0])?t[0].outlets:{[Vt]:t}}(e),o={};return Si(i,(r,s)=>{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=W_(t.children[s],n,r))}),Si(t.children,(r,s)=>{void 0===i[s]&&(o[s]=r)}),new Ht(t.segments,o)}}function $_(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o<e.length;){const r=e[o];if(xu(r)){const l=f8(r.outlets);return new Ht(i,l)}if(0===o&&Tu(e[0])){i.push(new Du(t.segments[n].path,bx(e[0]))),o++;continue}const s=xu(r)?r.outlets[Vt]:`${r}`,a=o<e.length-1?e[o+1]:null;s&&a&&Tu(a)?(i.push(new Du(s,bx(a))),o+=2):(i.push(new Du(s,{})),o++)}return new Ht(i,{})}function f8(t){const n={};return Si(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=$_(new Ht([],{}),0,e))}),n}function bx(t){const n={};return Si(t,(e,i)=>n[i]=`${e}`),n}function yx(t,n,e){return t==e.path&&_r(n,e.parameters)}class zr{constructor(n,e){this.id=n,this.url=e}}class Y_ extends zr{constructor(n,e,i="imperative",o=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class oa extends zr{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class wf extends zr{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Cx extends zr{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class p8 extends zr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class g8 extends zr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class m8 extends zr{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class v8 extends zr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _8 extends zr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class b8{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class y8{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class C8{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class E8{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S8{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class A8{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ex{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Sx{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=Q_(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=Q_(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=K_(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return K_(n,this._root).map(e=>e.value)}}function Q_(t,n){if(t===n.value)return n;for(const e of n.children){const i=Q_(t,e);if(i)return i}return null}function K_(t,n){if(t===n.value)return[n];for(const e of n.children){const i=K_(t,e);if(i.length)return i.unshift(n),i}return[]}class qr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function kl(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class Ax extends Sx{constructor(n,e){super(n),this.snapshot=e,Z_(this,n)}toString(){return this.snapshot.toString()}}function wx(t,n){const e=function D8(t,n){const s=new Df([],{},{},"",{},Vt,n,null,t.root,-1,{});return new Mx("",new qr(s,[]))}(t,n),i=new yt([new Du("",{})]),o=new yt({}),r=new yt({}),s=new yt({}),a=new yt(""),l=new ra(i,o,s,a,r,Vt,n,e.root);return l.snapshot=e.root,new Ax(new qr(l,[]),e)}class ra{constructor(n,e,i,o,r,s,a,l){var c,u;this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.title=null!==(u=null===(c=this.data)||void 0===c?void 0:c.pipe(Ue(d=>d[wu])))&&void 0!==u?u:nt(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Ue(n=>Il(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ue(n=>Il(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Dx(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const o=e[i],r=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function M8(t){return t.reduce((n,e)=>{var i;return{params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign(Object.assign(Object.assign({},e.data),n.resolve),null===(i=e.routeConfig)||void 0===i?void 0:i.data),e._resolvedData)}},{params:{},data:{},resolve:{}})}(e.slice(i))}class Df{constructor(n,e,i,o,r,s,a,l,c,u,d,f){var A;this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.title=null===(A=this.data)||void 0===A?void 0:A[wu],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=null!=f?f:u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Il(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Il(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Mx extends Sx{constructor(n,e){super(e),this.url=n,Z_(this,e)}toString(){return Tx(this._root)}}function Z_(t,n){n.value._routerState=t,n.children.forEach(e=>Z_(t,e))}function Tx(t){const n=t.children.length>0?` { ${t.children.map(Tx).join(", ")} } `:"";return`${t.value}${n}`}function X_(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_r(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),_r(n.params,e.params)||t.params.next(e.params),function Hz(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!_r(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),_r(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function J_(t,n){const e=_r(t.params,n.params)&&function $z(t,n){return na(t,n)&&t.every((e,i)=>_r(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||J_(t.parent,n.parent))}function Iu(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function x8(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Iu(t,i,o);return Iu(t,i)})}(t,n,e);return new qr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const s=r.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Iu(t,a)),s}}const i=function O8(t){return new ra(new yt(t.url),new yt(t.params),new yt(t.queryParams),new yt(t.fragment),new yt(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>Iu(t,r));return new qr(i,o)}}const eb="ngNavigationCancelingError";function xx(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=ia(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=Ox(!1,0,n);return o.url=e,o.navigationBehaviorOptions=i,o}function Ox(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[eb]=!0,i.cancellationCode=n,e&&(i.url=e),i}function Ix(t){return Rx(t)&&ia(t.url)}function Rx(t){return t&&t[eb]}class I8{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ru,this.attachRef=null}}let Ru=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new I8,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Mf=!1;let Px=(()=>{class t{constructor(e,i,o,r,s){this.parentContexts=e,this.location=i,this.changeDetector=r,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new De,this.deactivateEvents=new De,this.attachEvents=new De,this.detachEvents=new De,this.name=o||Vt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Me(4012,Mf);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Me(4012,Mf);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Me(4012,Mf);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Me(4013,Mf);this._activatedRoute=e;const o=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new R8(e,a,o.injector);if(i&&function P8(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=o.createComponent(c,o.length,l)}else this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:null!=i?i:this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(h(Ru),h(ln),Wo("name"),h(Ut),h(es))},t.\u0275dir=ge({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),t})();class R8{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===ra?this.route:n===Ru?this.childContexts:this.parent.get(n,e)}}let tb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=et({type:t,selectors:[["ng-component"]],standalone:!0,features:[uA],decls:1,vars:0,template:function(e,i){1&e&&Je(0,"router-outlet")},dependencies:[Px],encapsulation:2}),t})();function kx(t,n){var e;return t.providers&&!t._injector&&(t._injector=ih(t.providers,n,`Route: ${t.path}`)),null!==(e=t._injector)&&void 0!==e?e:n}function ib(t){const n=t.children&&t.children.map(ib),e=n?Object.assign(Object.assign({},t),{children:n}):Object.assign({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Vt&&(e.component=tb),e}function ko(t){return t.outlet||Vt}function Nx(t,n){const e=t.filter(i=>ko(i)===n);return e.push(...t.filter(i=>ko(i)!==n)),e}function Pu(t){var n;if(!t)return null;if(null!==(n=t.routeConfig)&&void 0!==n&&n._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){const i=e.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}class B8{constructor(n,e,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),X_(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=kl(e);n.children.forEach(r=>{const s=r.value.outlet;this.deactivateRoutes(r,o[s],i),delete o[s]}),Si(o,(r,s)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const s=i.getContext(o.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=kl(n);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=kl(n);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const o=kl(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new A8(r.value.snapshot))}),n.children.length&&this.forwardEvent(new E8(n.value.snapshot))}activateRoutes(n,e,i){var o;const r=n.value,s=e?e.value:null;if(X_(r),r===s)if(r.component){const a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const l=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(l.contexts),a.attachRef=l.componentRef,a.route=l.route.value,a.outlet&&a.outlet.attach(l.componentRef,l.route.value),X_(l.route.value),this.activateChildRoutes(n,null,a.children)}else{const l=Pu(r.snapshot),c=null!==(o=null==l?void 0:l.get(xr))&&void 0!==o?o:null;a.attachRef=null,a.route=r,a.resolver=c,a.injector=l,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class Lx{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Tf{constructor(n,e){this.component=n,this.route=e}}function V8(t,n,e){const i=t._root;return ku(i,n?n._root:null,e,[i.value])}function Nl(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function KP(t){return null!==ad(t)}(t)?n.get(t):t:i}function ku(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=kl(n);return t.children.forEach(s=>{(function U8(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){const l=function H8(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!na(t.url,n.url);case"pathParamsOrQueryParamsChange":return!na(t.url,n.url)||!_r(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!J_(t,n)||!_r(t.queryParams,n.queryParams);default:return!J_(t,n)}}(s,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Lx(i)):(r.data=s.data,r._resolvedData=s._resolvedData),ku(t,n,r.component?a?a.children:null:e,i,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Tf(a.outlet.component,s))}else s&&Nu(n,a,o),o.canActivateChecks.push(new Lx(i)),ku(t,null,r.component?a?a.children:null:e,i,o)})(s,r[s.value.outlet],e,i.concat([s.value]),o),delete r[s.value.outlet]}),Si(r,(s,a)=>Nu(s,e.getContext(a),o)),o}function Nu(t,n,e){const i=kl(t),o=t.value;Si(i,(r,s)=>{Nu(r,o.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new Tf(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function Lu(t){return"function"==typeof t}function ob(t){return t instanceof gf||"EmptyError"===(null==t?void 0:t.name)}const xf=Symbol("INITIAL_VALUE");function Ll(){return Ri(t=>B_(t.map(n=>n.pipe(yn(1),mi(xf)))).pipe(Ue(n=>{for(const e of n)if(!0!==e){if(e===xf)return xf;if(!1===e||e instanceof ta)return e}return!0}),qt(n=>n!==xf),yn(1)))}function Fx(t){return function U(...t){return Y(t)}($n(n=>{if(ia(n))throw xx(0,n)}),Ue(n=>!0===n))}const rb={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Bx(t,n,e,i,o){const r=sb(t,n,e);return r.matched?function r6(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?nt(o.map(s=>{const a=Nl(s,t);return gs(function Y8(t){return t&&Lu(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ll(),Fx()):nt(!0)}(i=kx(n,i),n,e).pipe(Ue(s=>!0===s?r:Object.assign({},rb))):nt(r)}function sb(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},rb):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||Uz)(e,t,n);if(!r)return Object.assign({},rb);const s={};Si(r.posParams,(l,c)=>{s[c]=l.path});const a=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Of(t,n,e,i,o="corrected"){if(e.length>0&&function l6(t,n,e){return e.some(i=>If(t,n,i)&&ko(i)!==Vt)}(t,e,i)){const s=new Ht(n,function a6(t,n,e,i){const o={};o[Vt]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const r of e)if(""===r.path&&ko(r)!==Vt){const s=new Ht([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,o[ko(r)]=s}return o}(t,n,i,new Ht(e,t.children)));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function c6(t,n,e){return e.some(i=>If(t,n,i))}(t,e,i)){const s=new Ht(t.segments,function s6(t,n,e,i,o,r){const s={};for(const a of i)if(If(t,e,a)&&!o[ko(a)]){const l=new Ht([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===r?t.segments.length:n.length,s[ko(a)]=l}return Object.assign(Object.assign({},o),s)}(t,n,e,i,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:e}}const r=new Ht(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function If(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function Vx(t,n,e,i){return!!(ko(t)===i||i!==Vt&&If(n,e,t))&&("**"===t.path||sb(n,t,e).matched)}function jx(t,n,e){return 0===n.length&&!t.children[e]}const Rf=!1;class Pf{constructor(n){this.segmentGroup=n||null}}class Ux{constructor(n){this.urlTree=n}}function Fu(t){return Ol(new Pf(t))}function Hx(t){return Ol(new Ux(t))}class f6{constructor(n,e,i,o,r){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0}apply(){const n=Of(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ht(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Vt).pipe(Ue(r=>this.createUrlTree(Af(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Gr(r=>{if(r instanceof Ux)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof Pf?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Vt).pipe(Ue(o=>this.createUrlTree(Af(o),n.queryParams,n.fragment))).pipe(Gr(o=>{throw o instanceof Pf?this.noMatchError(o):o}))}noMatchError(n){return new Me(4002,Rf)}createUrlTree(n,e,i){const o=z_(n);return new ta(o,e,i)}expandSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(Ue(r=>new Ht([],r))):this.expandSegment(n,i,e,i.segments,o,!0)}expandChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return Kn(o).pipe(cs(r=>{const s=i.children[r],a=Nx(e,r);return this.expandSegmentGroup(n,a,s,r).pipe(Ue(l=>({segment:l,outlet:r})))}),tx((r,s)=>(r[s.outlet]=s.segment,r),{}),nx())}expandSegment(n,e,i,o,r,s){return Kn(i).pipe(cs(a=>this.expandSegmentAgainstRoute(n,e,i,a,o,r,s).pipe(Gr(c=>{if(c instanceof Pf)return nt(null);throw c}))),ps(a=>!!a),Gr((a,l)=>{if(ob(a))return jx(e,o,r)?nt(new Ht([],{})):Fu(e);throw a}))}expandSegmentAgainstRoute(n,e,i,o,r,s,a){return Vx(o,e,r,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(n,e,o,r,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s):Fu(e):Fu(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,o){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Hx(r):this.lineralizeSegments(i,r).pipe(si(s=>{const a=new Ht(s,{});return this.expandSegment(n,a,e,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=sb(e,o,r);if(!a)return Fu(e);const d=this.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?Hx(d):this.lineralizeSegments(o,d).pipe(si(f=>this.expandSegment(n,e,i,f.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){return"**"===i.path?(n=kx(i,n),i.loadChildren?(i._loadedRoutes?nt({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(Ue(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Ht(o,{})))):nt(new Ht(o,{}))):Bx(e,i,o,n).pipe(Ri(({matched:s,consumedSegments:a,remainingSegments:l})=>{var c;return s?(n=null!==(c=i._injector)&&void 0!==c?c:n,this.getChildConfig(n,i,o).pipe(si(d=>{var f;const A=null!==(f=d.injector)&&void 0!==f?f:n,H=d.routes,{segmentGroup:te,slicedSegments:pe}=Of(e,a,l,H),he=new Ht(te.segments,te.children);if(0===pe.length&&he.hasChildren())return this.expandChildren(A,H,he).pipe(Ue(He=>new Ht(a,He)));if(0===H.length&&0===pe.length)return nt(new Ht(a,{}));const _e=ko(i)===r;return this.expandSegment(A,he,H,pe,_e?Vt:r,!0).pipe(Ue(ve=>new Ht(a.concat(ve.segments),ve.children)))}))):Fu(e)}))}getChildConfig(n,e,i){return e.children?nt({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?nt({routes:e._loadedRoutes,injector:e._loadedInjector}):function o6(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?nt(!0):nt(o.map(s=>{const a=Nl(s,t);return gs(function z8(t){return t&&Lu(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ll(),Fx())}(n,e,i).pipe(si(o=>o?this.configLoader.loadChildren(n,e).pipe($n(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function d6(t){return Ol(Ox(Rf,3))}())):nt({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return nt(i);if(o.numberOfChildren>1||!o.children[Vt])return Ol(new Me(4e3,Rf));o=o.children[Vt]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new ta(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Si(n,(o,r)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let s={};return Si(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,o)}),new Ht(r,s)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new Me(4001,Rf);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}class g6{}class _6{constructor(n,e,i,o,r,s,a,l){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=o,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const n=Of(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Vt).pipe(Ue(e=>{if(null===e)return null;const i=new Df([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Vt,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new qr(i,e),r=new Mx(this.url,o);return this.inheritParamsAndData(r._root),r}))}inheritParamsAndData(n){const e=n.value,i=Dx(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o)}processChildren(n,e,i){return Kn(Object.keys(i.children)).pipe(cs(o=>{const r=i.children[o],s=Nx(e,o);return this.processSegmentGroup(n,s,r,o)}),tx((o,r)=>o&&r?(o.push(...r),o):null),yM(o=>null!==o),mf(null),nx(),Ue(o=>{if(null===o)return null;const r=Gx(o);return function b6(t){t.sort((n,e)=>n.value.outlet===Vt?-1:e.value.outlet===Vt?1:n.value.outlet.localeCompare(e.value.outlet))}(r),r}))}processSegment(n,e,i,o,r){return Kn(e).pipe(cs(s=>{var a;return this.processSegmentAgainstRoute(null!==(a=s._injector)&&void 0!==a?a:n,s,i,o,r)}),ps(s=>!!s),Gr(s=>{if(ob(s))return jx(i,o,r)?nt([]):nt(null);throw s}))}processSegmentAgainstRoute(n,e,i,o,r){var s,a;if(e.redirectTo||!Vx(e,i,o,r))return nt(null);let l;if("**"===e.path){const c=o.length>0?rx(o).parameters:{},u=qx(i)+o.length;l=nt({snapshot:new Df(o,c,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$x(e),ko(e),null!==(a=null!==(s=e.component)&&void 0!==s?s:e._loadedComponent)&&void 0!==a?a:null,e,zx(i),u,Yx(e),u),consumedSegments:[],remainingSegments:[]})}else l=Bx(i,e,o,n).pipe(Ue(({matched:c,consumedSegments:u,remainingSegments:d,parameters:f})=>{var A,H;if(!c)return null;const te=qx(i)+u.length;return{snapshot:new Df(u,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$x(e),ko(e),null!==(H=null!==(A=e.component)&&void 0!==A?A:e._loadedComponent)&&void 0!==H?H:null,e,zx(i),te,Yx(e),te),consumedSegments:u,remainingSegments:d}}));return l.pipe(Ri(c=>{var u,d;if(null===c)return nt(null);const{snapshot:f,consumedSegments:A,remainingSegments:H}=c;n=null!==(u=e._injector)&&void 0!==u?u:n;const te=null!==(d=e._loadedInjector)&&void 0!==d?d:n,pe=function y6(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:he,slicedSegments:_e}=Of(i,A,H,pe.filter(ve=>void 0===ve.redirectTo),this.relativeLinkResolution);if(0===_e.length&&he.hasChildren())return this.processChildren(te,pe,he).pipe(Ue(ve=>null===ve?null:[new qr(f,ve)]));if(0===pe.length&&0===_e.length)return nt([new qr(f,[])]);const fe=ko(e)===r;return this.processSegment(te,pe,he,_e,fe?Vt:r).pipe(Ue(ve=>null===ve?null:[new qr(f,ve)]))}))}}function C6(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function Gx(t){const n=[],e=new Set;for(const i of t){if(!C6(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=Gx(i.children);n.push(new qr(i.value,o))}return n.filter(i=>!e.has(i))}function zx(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function qx(t){var n,e;let i=t,o=null!==(n=i._segmentIndexShift)&&void 0!==n?n:0;for(;i._sourceSegment;)i=i._sourceSegment,o+=null!==(e=i._segmentIndexShift)&&void 0!==e?e:0;return o-1}function $x(t){return t.data||{}}function Yx(t){return t.resolve||{}}function Qx(t){return"string"==typeof t.title||null===t.title}function ab(t){return Ri(n=>{const e=t(n);return e?Kn(e).pipe(Ue(()=>n)):nt(n)})}let Kx=(()=>{class t{buildTitle(e){var i;let o,r=e.root;for(;void 0!==r;)o=null!==(i=this.getResolvedTitleForRoute(r))&&void 0!==i?i:o,r=r.children.find(s=>s.outlet===Vt);return o}getResolvedTitleForRoute(e){return e.data[wu]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:function(){return un(Zx)},providedIn:"root"}),t})(),Zx=(()=>{class t extends Kx{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(ie(_D))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class x6{}class I6 extends class O6{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const Nf=new Ie("",{providedIn:"root",factory:()=>({})}),lb=new Ie("ROUTES");let cb=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return nt(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=gs(e.loadComponent()).pipe($n(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),_f(()=>{this.componentLoaders.delete(e)})),o=new JT(i,()=>new le).pipe(V_());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return nt({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(Ue(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=ox(l.get(lb,[],pt.Self|pt.Optional)));return{routes:c.map(ib),injector:l}}),_f(()=>{this.childrenLoaders.delete(i)})),s=new JT(r,()=>new le).pipe(V_());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return gs(e()).pipe(si(i=>i instanceof lA||Array.isArray(i)?nt(i):Kn(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)(ie(_n),ie(Gm))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class P6{}class k6{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function N6(t){throw t}function L6(t,n,e){return n.parse("/")}const F6={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},B6={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Jx(){var t,n;const e=un(dx),i=un(Ru),o=un(Yc),r=un(_n),s=un(Gm),a=null!==(t=un(lb,{optional:!0}))&&void 0!==t?t:[],l=null!==(n=un(Nf,{optional:!0}))&&void 0!==n?n:{},c=un(Zx),u=un(Kx,{optional:!0}),d=un(P6,{optional:!0}),f=un(x6,{optional:!0}),A=new Ai(null,e,i,o,r,s,ox(a));return d&&(A.urlHandlingStrategy=d),f&&(A.routeReuseStrategy=f),A.titleStrategy=null!=u?u:c,function V6(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(l,A),A}let Ai=(()=>{class t{constructor(e,i,o,r,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=o,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new le,this.errorHandler=N6,this.malformedUriErrorHandler=L6,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>nt(void 0),this.urlHandlingStrategy=new k6,this.routeReuseStrategy=new I6,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(cb),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new y8(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new b8(f)),this.ngModule=s.get(Fs),this.console=s.get(b3);const d=s.get(at);this.isNgZoneEnabled=d instanceof at&&at.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function Gz(){return new ta(new Ht([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wx(this.currentUrlTree,this.rootComponentType),this.transitions=new yt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(qt(o=>0!==o.id),Ue(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Ri(o=>{let r=!1,s=!1;return nt(o).pipe($n(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ri(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return eO(a.source)&&(this.browserUrlTree=a.extractedUrl),nt(a).pipe(Ri(d=>{const f=this.transitions.getValue();return i.next(new Y_(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?jo:Promise.resolve(d)}),function p6(t,n,e,i){return Ri(o=>function h6(t,n,e,i,o){return new f6(t,n,e,i,o).apply()}(t,n,e,o.extractedUrl,i).pipe(Ue(r=>Object.assign(Object.assign({},o),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),$n(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects}),o.urlAfterRedirects=d.urlAfterRedirects}),function S6(t,n,e,i,o,r){return si(s=>function v6(t,n,e,i,o,r,s="emptyOnly",a="legacy"){return new _6(t,n,e,i,o,s,a,r).recognize().pipe(Ri(l=>null===l?function m6(t){return new T(n=>n.error(t))}(new g6):nt(l)))}(t,n,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,o,r).pipe(Ue(a=>Object.assign(Object.assign({},s),{targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),$n(d=>{if(o.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const A=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(A,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new p8(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:A,source:H,restoredState:te,extras:pe}=a,he=new Y_(f,this.serializeUrl(A),H,te);i.next(he);const _e=wx(A,this.rootComponentType).snapshot;return nt(o=Object.assign(Object.assign({},a),{targetSnapshot:_e,urlAfterRedirects:A,extras:Object.assign(Object.assign({},pe),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),jo}),$n(a=>{const l=new g8(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),Ue(a=>o=Object.assign(Object.assign({},a),{guards:V8(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function K8(t,n){return si(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:s}}=e;return 0===s.length&&0===r.length?nt(Object.assign(Object.assign({},e),{guardsResult:!0})):function Z8(t,n,e,i){return Kn(t).pipe(si(o=>function i6(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?nt(r.map(a=>{var l;const c=null!==(l=Pu(n))&&void 0!==l?l:o,u=Nl(a,c);return gs(function $8(t){return t&&Lu(t.canDeactivate)}(u)?u.canDeactivate(t,n,e,i):c.runInContext(()=>u(t,n,e,i))).pipe(ps())})).pipe(Ll()):nt(!0)}(o.component,o.route,e,n,i)),ps(o=>!0!==o,!0))}(s,i,o,t).pipe(si(a=>a&&function G8(t){return"boolean"==typeof t}(a)?function X8(t,n,e,i){return Kn(n).pipe(cs(o=>Su(function e6(t,n){return null!==t&&n&&n(new C8(t)),nt(!0)}(o.route.parent,i),function J8(t,n){return null!==t&&n&&n(new S8(t)),nt(!0)}(o.route,i),function n6(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(s=>function j8(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>Au(()=>nt(s.guards.map(l=>{var c;const u=null!==(c=Pu(s.node))&&void 0!==c?c:e,d=Nl(l,u);return gs(function W8(t){return t&&Lu(t.canActivateChild)}(d)?d.canActivateChild(i,t):u.runInContext(()=>d(i,t))).pipe(ps())})).pipe(Ll())));return nt(r).pipe(Ll())}(t,o.path,e),function t6(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return nt(!0);const o=i.map(r=>Au(()=>{var s;const a=null!==(s=Pu(n))&&void 0!==s?s:e,l=Nl(r,a);return gs(function q8(t){return t&&Lu(t.canActivate)}(l)?l.canActivate(n,t):a.runInContext(()=>l(n,t))).pipe(ps())}));return nt(o).pipe(Ll())}(t,o.route,e))),ps(o=>!0!==o,!0))}(i,r,t,n):nt(a)),Ue(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),$n(a=>{if(o.guardsResult=a.guardsResult,ia(a.guardsResult))throw xx(0,a.guardsResult);const l=new m8(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),qt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),ab(a=>{if(a.guards.canActivateChecks.length)return nt(a).pipe($n(l=>{const c=new v8(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Ri(l=>{let c=!1;return nt(l).pipe(function A6(t,n){return si(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return nt(e);let r=0;return Kn(o).pipe(cs(s=>function w6(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==(null==o?void 0:o.title)&&!Qx(o)&&(r[wu]=o.title),function D6(t,n,e,i){const o=function M6(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return nt({});const r={};return Kn(o).pipe(si(s=>function T6(t,n,e,i){var o;const r=null!==(o=Pu(n))&&void 0!==o?o:i,s=Nl(t,r);return gs(s.resolve?s.resolve(n,e):r.runInContext(()=>s(n,e)))}(t[s],n,e,i).pipe(ps(),$n(a=>{r[s]=a}))),j_(1),vf(r),Gr(s=>ob(s)?jo:Ol(s)))}(r,t,n,i).pipe(Ue(s=>(t._resolvedData=s,t.data=Dx(t,e).resolve,o&&Qx(o)&&(t.data[wu]=o.title),null)))}(s.route,i,t,n)),$n(()=>r++),j_(1),si(s=>r===o.length?nt(e):jo))})}(this.paramsInheritanceStrategy,this.ngModule.injector),$n({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),$n(l=>{const c=new _8(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),ab(a=>{const l=c=>{var u;const d=[];(null===(u=c.routeConfig)||void 0===u?void 0:u.loadComponent)&&!c.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(c.routeConfig).pipe($n(f=>{c.component=f}),Ue(()=>{})));for(const f of c.children)d.push(...l(f));return d};return B_(l(a.targetSnapshot.root)).pipe(mf(),yn(1))}),ab(()=>this.afterPreactivation()),Ue(a=>{const l=function T8(t,n,e){const i=Iu(t,n._root,e?e._root:void 0);return new Ax(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return o=Object.assign(Object.assign({},a),{targetRouterState:l})}),$n(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>Ue(i=>(new B8(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),$n({next(){r=!0},complete(){r=!0}}),_f(()=>{var a;r||s||this.cancelNavigationTransition(o,"",1),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===o.id&&(this.currentNavigation=null)}),Gr(a=>{var l;if(s=!0,Rx(a)){Ix(a)||(this.navigated=!0,this.restoreHistory(o,!0));const c=new wf(o.id,this.serializeUrl(o.extractedUrl),a.message,a.cancellationCode);if(i.next(c),Ix(a)){const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||eO(o.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const c=new Cx(o.id,this.serializeUrl(o.extractedUrl),a,null!==(l=o.targetSnapshot)&&void 0!==l?l:void 0);i.next(c);try{o.resolve(this.errorHandler(a))}catch(u){o.reject(u)}}return jo}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var o;const r={replaceUrl:!0},s=null!==(o=e.state)&&void 0!==o&&o.navigationId?e.state:null;if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,s,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ib),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=o||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}return null!==d&&(d=this.removeEmptyProps(d)),l8(c,this.currentUrlTree,e,d,null!=u?u:null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=ia(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function j6(t){for(let n=0;n<t.length;n++){if(null==t[n])throw new Me(4008,false)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(o){i=this.malformedUriErrorHandler(o,this.urlSerializer,e)}return i}isActive(e,i){let o;if(o=!0===i?Object.assign({},F6):!1===i?Object.assign({},B6):i,ia(e))return ax(this.currentUrlTree,e,o);const r=this.parseUrl(e);return ax(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.keys(e).reduce((i,o)=>{const r=e[o];return null!=r&&(i[o]=r),i},{})}processNavigations(){this.navigations.subscribe(e=>{var i;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new oa(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(i=this.titleStrategy)||void 0===i||i.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,o,r,s){var a,l;if(this.disposed)return Promise.resolve(!1);let c,u,d;s?(c=s.resolve,u=s.reject,d=s.promise):d=new Promise((H,te)=>{c=H,u=te});const f=++this.navigationId;let A;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),A=o&&o.\u0275routerPageId?o.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):A=0,this.setTransition({id:f,targetPageId:A,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:c,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(H=>Promise.reject(H))}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",r):this.location.go(o,"",r)}restoreHistory(e,i=!1){var o,r;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,o){const r=new wf(e.id,this.serializeUrl(e.extractedUrl),i,o);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){Ps()},t.\u0275prov=ye({token:t,factory:function(){return Jx()},providedIn:"root"}),t})();function eO(t){return"imperative"!==t}class tO{}let G6=(()=>{class t{constructor(e,i,o,r,s){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(qt(e=>e instanceof oa),cs(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){var o,r,s;const a=[];for(const l of i){l.providers&&!l._injector&&(l._injector=ih(l.providers,e,`Route: ${l.path}`));const c=null!==(o=l._injector)&&void 0!==o?o:e,u=null!==(r=l._loadedInjector)&&void 0!==r?r:c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(u,null!==(s=l.children)&&void 0!==s?s:l._loadedRoutes))}return Kn(a).pipe(ba())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):nt(null);const r=o.pipe(si(s=>{var a;return null===s?nt(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(null!==(a=s.injector)&&void 0!==a?a:e,s.routes))}));return i.loadComponent&&!i._loadedComponent?Kn([r,this.loader.loadComponent(i)]).pipe(ba()):r})}}return t.\u0275fac=function(e){return new(e||t)(ie(Ai),ie(Gm),ie(es),ie(tO),ie(cb))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const hb=new Ie("");let nO=(()=>{class t{constructor(e,i,o={}){this.router=e,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Y_?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof oa&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ex&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new Ex(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){Ps()},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();function Fl(t,n){return{\u0275kind:t,\u0275providers:n}}function fb(t){return[{provide:lb,multi:!0,useValue:t}]}function oO(){const t=un(_n);return n=>{var e,i;const o=t.get(Vs);if(n!==o.components[0])return;const r=t.get(Ai),s=t.get(rO);1===t.get(pb)&&r.initialNavigation(),null===(e=t.get(sO,null,pt.Optional))||void 0===e||e.setUpPreloading(),null===(i=t.get(hb,null,pt.Optional))||void 0===i||i.init(),r.resetRootComponentType(o.componentTypes[0]),s.next(),s.complete()}}const rO=new Ie("",{factory:()=>new le}),pb=new Ie("",{providedIn:"root",factory:()=>1});const sO=new Ie("");function $6(t){return Fl(0,[{provide:sO,useExisting:G6},{provide:tO,useExisting:t}])}const aO=new Ie("ROUTER_FORROOT_GUARD"),Y6=[Yc,{provide:dx,useClass:H_},{provide:Ai,useFactory:Jx},Ru,{provide:ra,useFactory:function iO(t){return t.routerState.root},deps:[Ai]},cb];function Q6(){return new rw("Router",Ai)}let K6=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[Y6,[],fb(e),{provide:aO,useFactory:e9,deps:[[Ai,new Jr,new La]]},{provide:Nf,useValue:i||{}},null!=i&&i.useHash?{provide:Hs,useClass:aj}:{provide:Hs,useClass:xw},{provide:hb,useFactory:()=>{const t=un(Ai),n=un(m4),e=un(Nf);return e.scrollOffset&&n.setOffset(e.scrollOffset),new nO(t,n,e)}},null!=i&&i.preloadingStrategy?$6(i.preloadingStrategy).\u0275providers:[],{provide:rw,multi:!0,useFactory:Q6},null!=i&&i.initialNavigation?t9(i):[],[{provide:lO,useFactory:oO},{provide:Hm,multi:!0,useExisting:lO}]]}}static forChild(e){return{ngModule:t,providers:[fb(e)]}}}return t.\u0275fac=function(e){return new(e||t)(ie(aO,8))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[tb]}),t})();function e9(t){return"guarded"}function t9(t){return["disabled"===t.initialNavigation?Fl(3,[{provide:ah,multi:!0,useFactory:()=>{const n=un(Ai);return()=>{n.setUpLocationChangeListener()}}},{provide:pb,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Fl(2,[{provide:pb,useValue:0},{provide:ah,multi:!0,deps:[_n],useFactory:n=>{const e=n.get(rj,Promise.resolve());let i=!1;return()=>e.then(()=>new Promise(r=>{const s=n.get(Ai),a=n.get(rO);(function o(r){n.get(Ai).events.pipe(qt(a=>a instanceof oa||a instanceof wf||a instanceof Cx),Ue(a=>a instanceof oa||a instanceof wf&&(0===a.code||1===a.code)&&null),qt(a=>null!==a),yn(1)).subscribe(()=>{r()})})(()=>{r(!0),i=!0}),s.afterPreactivation=()=>(r(!0),i||a.closed?nt(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const lO=new Ie("");function Bu(t,n=Xh){return Le((e,i)=>{let o=null,r=null,s=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=s+t,u=n.now();if(u<c)return o=this.schedule(void 0,c-u),void i.add(o);a()}e.subscribe(ze(i,c=>{r=c,s=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{a(),i.complete()},void 0,()=>{r=o=null}))})}function Bl(t){return qt((n,e)=>t<=e)}function Vu(t,n=g){return t=null!=t?t:i9,Le((e,i)=>{let o,r=!0;e.subscribe(ze(i,s=>{const a=n(s);(r||!t(o,a))&&(r=!1,o=a,i.next(s))}))})}function i9(t,n){return t===n}let cO=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),o9=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Ur(e);return new T(o=>{const s=this._observeElement(i).subscribe(o);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new le,o=this._mutationObserverFactory.create(r=>i.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(ie(cO))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),uO=(()=>{class t{constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new De,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ft(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Wi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Bu(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(h(o9),h(Pe),h(at))},t.\u0275dir=ge({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),gb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[cO]}),t})();const dO=new Set;let Vl,r9=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):a9}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function s9(t){if(!dO.has(t))try{Vl||(Vl=document.createElement("style"),Vl.setAttribute("type","text/css"),document.head.appendChild(Vl)),Vl.sheet&&(Vl.sheet.insertRule(`@media ${t} {body{ }}`,0),dO.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(ie(ti))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function a9(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Vf=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new le}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return hO($h(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=B_(hO($h(e)).map(s=>this._registerQuery(s).observable));return r=Su(r.pipe(yn(1)),r.pipe(Bl(1),Bu(0))),r.pipe(Ue(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new T(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(mi(i),Ue(({matches:s})=>({query:e,matches:s})),bt(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(ie(r9),ie(at))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function hO(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function jf(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const gO="cdk-describedby-message",Uf="cdk-describedby-host";let mb=0,mO=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+mb++,this._document=e,this._id=un(al)+"-"+mb++}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const r=vb(i,o);"string"!=typeof i?(vO(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,o){var r;if(!i||!this._isElementNode(e))return;const s=vb(i,o);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const a=this._messageRegistry.get(s);a&&0===a.referenceCount&&this._deleteMessageElement(s)}0===(null===(r=this._messagesContainer)||void 0===r?void 0:r.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${Uf}="${this._id}"]`);for(let o=0;o<i.length;o++)this._removeCdkDescribedByReferenceIds(i[o]),i[o].removeAttribute(Uf);null===(e=this._messagesContainer)||void 0===e||e.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){const o=this._document.createElement("div");vO(o,this._id),o.textContent=e,i&&o.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(vb(e,i),{messageElement:o,referenceCount:0})}_deleteMessageElement(e){var i,o;null===(o=null===(i=this._messageRegistry.get(e))||void 0===i?void 0:i.messageElement)||void 0===o||o.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;const e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<i.length;r++)i[r].remove();const o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(e),o.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o}_removeCdkDescribedByReferenceIds(e){const i=jf(e,"aria-describedby").filter(o=>0!=o.indexOf(gO));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=this._messageRegistry.get(i);(function l9(t,n,e){const i=jf(t,n);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",o.messageElement.id),e.setAttribute(Uf,this._id),o.referenceCount++}_removeMessageReference(e,i){const o=this._messageRegistry.get(i);o.referenceCount--,function c9(t,n,e){const o=jf(t,n).filter(r=>r!=e.trim());o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Uf)}_isElementDescribedByMessage(e,i){const o=jf(e,"aria-describedby"),r=this._messageRegistry.get(i),s=r&&r.messageElement.id;return!!s&&-1!=o.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const o=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!o||r&&r.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(ie(ut),ie(ti))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function vb(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function vO(t,n){t.id||(t.id=`${gO}-${n}-${mb++}`)}class _O{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new le,this._typeaheadSubscription=b.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new le,this.change=new le,n instanceof os&&n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe($n(e=>this._pressedLetters.push(e)),Bu(n),qt(()=>this._pressedLetters.length>0),Ue(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o<i.length+1;o++){const r=(this._activeItemIndex+o)%i.length,s=i[r];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(r);break}}this._pressedLetters=[]}),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}setActiveItem(n){const e=this._activeItem;this.updateActiveItem(n),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(n){const e=n.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||eo(n,"shiftKey"))&&(n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n),o=e[i];this._activeItem=null==o?null:o,this._activeItemIndex=i}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof os?this._items.toArray():this._items}}class u9 extends _O{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class _b extends _O{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let ju=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function h9(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function d9(t){try{return t.frameElement}catch(n){return null}}(function y9(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===yO(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=yO(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function _9(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function b9(t){return!function p9(t){return function m9(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function f9(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function g9(t){return function v9(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||bO(t))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(ie(ti))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function bO(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function yO(t){if(!bO(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class C9{constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.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)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i<e.length;i++){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(o)return o}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=e.length-1;i>=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(yn(1)).subscribe(n)}}let Hf=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new C9(e,this._checker,this._ngZone,this._document,i)}}return t.\u0275fac=function(e){return new(e||t)(ie(ju),ie(at),ie(ut))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function bb(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function yb(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const E9=new Ie("cdk-input-modality-detector-options"),S9={ignoreKeys:[18,17,224,91,16]},jl=$s({passive:!0,capture:!0});let A9=(()=>{class t{constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new yt(null),this._lastTouchMs=0,this._onKeydown=s=>{var a,l;null!==(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)&&void 0!==l&&l.some(c=>c===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Qs(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(bb(s)?"keyboard":"mouse"),this._mostRecentTarget=Qs(s))},this._onTouchstart=s=>{yb(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Qs(s))},this._options=Object.assign(Object.assign({},S9),r),this.modalityDetected=this._modality.pipe(Bl(1)),this.modalityChanged=this.modalityDetected.pipe(Vu()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,jl),o.addEventListener("mousedown",this._onMousedown,jl),o.addEventListener("touchstart",this._onTouchstart,jl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,jl),document.removeEventListener("mousedown",this._onMousedown,jl),document.removeEventListener("touchstart",this._onTouchstart,jl))}}return t.\u0275fac=function(e){return new(e||t)(ie(ti),ie(at),ie(ut),ie(E9,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const w9=new Ie("liveAnnouncerElement",{providedIn:"root",factory:function D9(){return null}}),M9=new Ie("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Cb=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[r,s]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==s&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return o.classList.add(e),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),this._document.body.appendChild(o),o}}return t.\u0275fac=function(e){return new(e||t)(ie(w9,8),ie(at),ie(ut),ie(M9,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const T9=new Ie("cdk-focus-monitor-default-options"),Gf=$s({passive:!0,capture:!0});let No=(()=>{class t{constructor(e,i,o,r,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new le,this._rootNodeFocusAndBlurListener=a=>{for(let c=Qs(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=r,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,i=!1){const o=Ur(e);if(!this._platform.isBrowser||1!==o.nodeType)return nt(null);const r=_M(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new le,rootNode:r};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Ur(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Ur(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Qs(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Gf),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Gf)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(bt(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Gf),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Gf),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let s=0;s<r.length;s++)if(r[s].contains(i))return!0;return!1}}return t.\u0275fac=function(e){return new(e||t)(ie(at),ie(ti),ie(A9),ie(ut,8),ie(T9,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const EO="cdk-high-contrast-black-on-white",SO="cdk-high-contrast-white-on-black",Eb="cdk-high-contrast-active";let AO=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=un(Vf).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Eb,EO,SO),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(Eb,EO):2===i&&e.add(Eb,SO)}}}return t.\u0275fac=function(e){return new(e||t)(ie(ti),ie(ut))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sb=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(ie(AO))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[gb]}),t})();function x9(t,n){}class zf{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let wO=(()=>{class t extends ef{constructor(e,i,o,r,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=r,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=o}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const o=s_(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=s_();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=s_())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Hf),h(ut,8),h(zf),h(ju),h(at),h(mu),h(No))},t.\u0275cmp=et({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&St(vl,7),2&e){let o;xe(o=Oe())&&(i._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&xt("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[Te],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&ne(0,x9,0,0,"ng-template",0)},dependencies:[vl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),t})();class Ab{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new le,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!eo(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=(null==e?void 0:e.focusOrigin)||"program",this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const DO=new Ie("DialogScrollStrategy"),O9=new Ie("DialogData"),I9=new Ie("DefaultDialogConfig"),P9={provide:DO,deps:[to],useFactory:function R9(t){return()=>t.scrollStrategies.block()}};let k9=0,MO=(()=>{class t{constructor(e,i,o,r,s,a){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new le,this._afterOpenedAtThisLevel=new le,this._ariaHiddenElements=new Map,this.afterAllClosed=Au(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(mi(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,i){const o=this._defaultOptions||new zf;(i=Object.assign(Object.assign({},o),i)).id=i.id||"cdk-dialog-"+k9++,i.id&&this.getDialogById(i.id);const r=this._getOverlayConfig(i),s=this._overlay.create(r),a=new Ab(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){wb(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){wb(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),wb(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new gu({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,o){var r;const s=o.injector||(null===(r=o.viewContainerRef)||void 0===r?void 0:r.injector),a=[{provide:zf,useValue:o},{provide:Ab,useValue:i},{provide:mu,useValue:e}];let l;o.container?"function"==typeof o.container?l=o.container:(l=o.container.type,a.push(...o.container.providers(o))):l=wO;const c=new gl(l,o.viewContainerRef,_n.create({parent:s||this._injector,providers:a}),o.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,o,r){if(e instanceof mt){const s=this._createInjector(r,i,o,void 0);let a={$implicit:r.data,dialogRef:i};r.templateContext&&(a=Object.assign(Object.assign({},a),"function"==typeof r.templateContext?r.templateContext():r.templateContext)),o.attachTemplatePortal(new ml(e,null,a,s))}else{const s=this._createInjector(r,i,o,this._injector),a=o.attachComponentPortal(new gl(e,r.viewContainerRef,s,r.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,o,r){var s;const a=e.injector||(null===(s=e.viewContainerRef)||void 0===s?void 0:s.injector),l=[{provide:O9,useValue:e.data},{provide:Ab,useValue:i}];return e.providers&&("function"==typeof e.providers?l.push(...e.providers(i,e,o)):l.push(...e.providers)),e.direction&&(!a||!a.get(go,null,pt.Optional))&&l.push({provide:go,useValue:{value:e.direction,change:nt()}}),_n.create({parent:a||r,providers:l})}_removeOpenDialog(e,i){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,s)=>{r?s.setAttribute("aria-hidden",r):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){const r=i[o];r!==e&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return t.\u0275fac=function(e){return new(e||t)(ie(to),ie(_n),ie(I9,8),ie(t,12),ie(Al),ie(DO))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})();function wb(t,n){let e=t.length;for(;e--;)n(t[e])}let N9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[MO,P9],imports:[wl,_l,Sb,_l]}),t})();function L9(t,n){if(1&t&&Je(0,"mat-pseudo-checkbox",4),2&t){const e=re();q("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function F9(t,n){if(1&t&&(L(0,"span",5),ce(1),z()),2&t){const e=re();x(1),Fn("(",e.group.label,")")}}const B9=["*"],j9=new Ie("mat-sanity-checks",{providedIn:"root",factory:function V9(){return!0}});let Mt=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!a_()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(ie(AO),ie(j9,8),ie(ut))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[pl,pl]}),t})();function sa(t){return class extends t{constructor(...n){super(...n),this._disabled=!1}get disabled(){return this._disabled}set disabled(n){this._disabled=ft(n)}}}function aa(t,n){return class extends t{constructor(...e){super(...e),this.defaultColor=n,this.color=n}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function ms(t){return class extends t{constructor(...n){super(...n),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=ft(n)}}}function qf(t,n=0){return class extends t{constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Wi(e):this.defaultTabIndex}}}function OO(t){return class extends t{constructor(...n){super(...n),this.errorState=!1}updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}}}let Db=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ul=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function IO(t,n,e="mat"){t.changes.pipe(mi(t)).subscribe(({length:i})=>{Uu(n,`${e}-2-line`,!1),Uu(n,`${e}-3-line`,!1),Uu(n,`${e}-multi-line`,!1),2===i||3===i?Uu(n,`${e}-${i}-line`,!0):i>3&&Uu(n,`${e}-multi-line`,!0)})}function Uu(t,n,e){t.nativeElement.classList.toggle(n,e)}let Wf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Mt,Mt]}),t})();class H9{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const RO={enterDuration:225,exitDuration:150},Mb=$s({passive:!0}),PO=["mousedown","touchstart"],kO=["mouseup","mouseleave","touchend","touchcancel"];class z9{constructor(n,e,i,o){this._target=n,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Ur(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},RO),i.animation);i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const s=i.radius||function q9(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),a=n-o.left,l=e-o.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),A=d.transitionDuration,H="none"===d.transitionProperty||"0s"===A||"0s, 0s"===A,te=new H9(this,u,i,H);u.style.transform="scale3d(1, 1, 1)",te.state=0,i.persistent||(this._mostRecentTransientRipple=te);let pe=null;return!H&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const he=()=>this._finishRippleTransition(te),_e=()=>this._destroyRipple(te);u.addEventListener("transitionend",he),u.addEventListener("transitioncancel",_e),pe={onTransitionEnd:he,onTransitionCancel:_e}}),this._activeRipples.set(te,pe),(H||!c)&&this._finishRippleTransition(te),te}fadeOutRipple(n){if(2===n.state||3===n.state)return;const e=n.element,i=Object.assign(Object.assign({},RO),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Ur(n);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(PO))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(kO),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){var e;const i=null!==(e=this._activeRipples.get(n))&&void 0!==e?e:null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==i&&(n.element.removeEventListener("transitionend",i.onTransitionEnd),n.element.removeEventListener("transitioncancel",i.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=bb(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig))}_onTouchStart(n){if(!this._target.rippleDisabled&&!yb(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=n.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(n=>{!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_registerEvents(n){this._ngZone.runOutsideAngular(()=>{n.forEach(e=>{this._triggerElement.addEventListener(e,this,Mb)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(PO.forEach(n=>{this._triggerElement.removeEventListener(n,this,Mb)}),this._pointerUpEventsRegistered&&kO.forEach(n=>{this._triggerElement.removeEventListener(n,this,Mb)}))}}const W9=new Ie("mat-ripple-global-options");let la=(()=>{class t{constructor(e,i,o,r,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new z9(this,i,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(at),h(ti),h(W9,8),h(pi,8))},t.\u0275dir=ge({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&lt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),Hu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Mt,Mt]}),t})(),NO=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&lt("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},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:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::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}'],encapsulation:2,changeDetection:0}),t})(),Tb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Mt]}),t})();const LO=new Ie("MAT_OPTION_PARENT_COMPONENT"),FO=new Ie("MatOptgroup");let $9=0;class Y9{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let Q9=(()=>{class t{constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+$9++,this.onSelectionChange=new De,this._stateChanges=new le}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=ft(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!eo(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Y9(this,e))}}return t.\u0275fac=function(e){Ps()},t.\u0275dir=ge({type:t,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),xb=(()=>{class t extends Q9{constructor(e,i,o,r){super(e,i,o,r)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ut),h(LO,8),h(FO,8))},t.\u0275cmp=et({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&we("click",function(){return i._selectViaInteraction()})("keydown",function(r){return i._handleKeydown(r)}),2&e&&(is("id",i.id),xt("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),lt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Te],ngContentSelectors:B9,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(xn(),ne(0,L9,1,2,"mat-pseudo-checkbox",0),L(1,"span",1),Dt(2),z(),ne(3,F9,2,1,"span",2),Je(4,"div",3)),2&e&&(q("ngIf",i.multiple),x(3),q("ngIf",i.group&&i.group._inert),x(1),q("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[la,Jt,NO],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:rgba(0,0,0,0)}.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;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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),t})();function BO(t,n,e){if(e.length){let i=n.toArray(),o=e.toArray(),r=0;for(let s=0;s<t+1;s++)i[s].group&&i[s].group===o[r]&&r++;return r}return 0}let Ob=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Hu,zi,Mt,Tb]}),t})();function Z9(t,n){}const Hl={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},X9={dialogContainer:qi("dialogContainer",[gi("void, exit",Pt({opacity:0,transform:"scale(0.7)"})),gi("enter",Pt({transform:"none"})),Vn("* => enter",SD([Wn("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Pt({transform:"none",opacity:1})),Dv("@*",wv(),{optional:!0})]),Hl),Vn("* => void, * => exit",SD([Wn("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Pt({opacity:0})),Dv("@*",wv(),{optional:!0})]),Hl)])};class $f{constructor(){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.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Hl.params.enterAnimationDuration,this.exitAnimationDuration=Hl.params.exitAnimationDuration}}let J9=(()=>{class t extends wO{constructor(e,i,o,r,s,a,l,c){super(e,i,o,r,s,a,l,c),this._animationStateChanged=new De}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Hf),h(ut,8),h($f),h(ju),h(at),h(mu),h(No))},t.\u0275cmp=et({type:t,selectors:[["ng-component"]],features:[Te],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),eq=(()=>{class t extends J9{constructor(e,i,o,r,s,a,l,c,u){super(e,i,o,r,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?this._openAnimationDone(i):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Hl.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Hl.params.exitAnimationDuration}}}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Hf),h(ut,8),h($f),h(ju),h(at),h(mu),h(Ut),h(No))},t.\u0275cmp=et({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&Nc("@dialogContainer.start",function(r){return i._onAnimationStart(r)})("@dialogContainer.done",function(r){return i._onAnimationDone(r)}),2&e&&(is("id",i._config.id),xt("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Fc("@dialogContainer",i._getAnimationState()))},features:[Te],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&ne(0,Z9,0,0,"ng-template",0)},dependencies:[vl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[X9.dialogContainer]}}),t})();class Gl{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new le,this._beforeClosed=new le,this._state=0,this.disableClose=e.disableClose,this.id=n.id,i._animationStateChanged.pipe(qt(o=>"opened"===o.state),yn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(qt(o=>"closed"===o.state),yn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),ki(this.backdropClick(),this.keydownEvents().pipe(qt(o=>27===o.keyCode&&!this.disableClose&&!eo(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),function tq(t,n,e){t._closeInteractionType=n,t.close(e)}(this,"keydown"===o.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(qt(e=>"closing"===e.state),yn(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Yf=new Ie("MatDialogData"),nq=new Ie("mat-dialog-default-options"),VO=new Ie("mat-dialog-scroll-strategy"),oq={provide:VO,deps:[to],useFactory:function iq(t){return()=>t.scrollStrategies.block()}};let rq=0,sq=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d){this._overlay=e,this._defaultOptions=o,this._parentDialog=r,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new le,this._afterOpenedAtThisLevel=new le,this._idPrefix="mat-dialog-",this.afterAllClosed=Au(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(mi(void 0))),this._scrollStrategy=a,this._dialog=i.get(MO)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){let o;(i=Object.assign(Object.assign({},this._defaultOptions||new $f),i)).id=i.id||`${this._idPrefix}${rq++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const r=this._dialog.open(e,Object.assign(Object.assign({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:$f,useValue:i},{provide:zf,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(s,a,l)=>(o=new this._dialogRefConstructor(s,i,l),o.updatePosition(null==i?void 0:i.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(o);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return t.\u0275fac=function(e){Ps()},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),Ib=(()=>{class t extends sq{constructor(e,i,o,r,s,a,l,c){super(e,i,r,a,l,s,Gl,eq,Yf,c)}}return t.\u0275fac=function(e){return new(e||t)(ie(to),ie(_n),ie(Yc,8),ie(nq,8),ie(VO),ie(t,12),ie(Al),ie(pi,8))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),aq=0,jO=(()=>{class t{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o,this.id="mat-dialog-title-"+aq++}ngOnInit(){this._dialogRef||(this._dialogRef=function lq(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(h(Gl,8),h(Pe),h(Ib))},t.\u0275dir=ge({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&is("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),Qf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),Kf=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,i){2&e&&lt("mat-dialog-actions-align-center","center"===i.align)("mat-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),t})(),cq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[Ib,oq],imports:[N9,wl,_l,Mt,Mt]}),t})();const uq=["mat-button",""],dq=["*"],fq=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],pq=aa(sa(ms(class{constructor(t){this._elementRef=t}})));let In=(()=>{class t extends pq{constructor(e,i,o){super(e),this._focusMonitor=i,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of fq)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(No),h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&St(la,5),2&e){let o;xe(o=Oe())&&(i.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(xt("disabled",i.disabled||null),lt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Te],attrs:uq,ngContentSelectors:dq,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(xn(),L(0,"span",0),Dt(1),z(),Je(2,"span",1)(3,"span",2)),2&e&&(x(2),lt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),q("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[la],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),t})(),UO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Hu,Mt,Mt]}),t})();function HO(t){var n;for(let e in t){let i=null!==(n=t[e])&&void 0!==n?n:"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;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]=i;break;case"flex-direction":t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}const Rb="inline",Zf=["row","column","row-reverse","column-reverse"];function GO(t){let[n,e,i]=zO(t);return function mq(t,n=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":n||null}}(n,e,i)}function zO(t){var n;t=null!==(n=null==t?void 0:t.toLowerCase())&&void 0!==n?n:"";let[e,i,o]=t.split(" ");return Zf.find(r=>r===e)||(e=Zf[0]),i===Rb&&(i=o!==Rb?o:"",o=Rb),[e,gq(i),!!o]}function Gu(t){let[n]=zO(t);return n.indexOf("row")>-1}function gq(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}function Wr(t,...n){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let e of n)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}const _q={provide:Hm,useFactory:function vq(t,n){return()=>{if(Gs(n)){const e=Array.from(t.querySelectorAll(`[class*=${qO}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(o=>{o.classList.contains(`${qO}ssr`)&&o.parentNode?o.parentNode.removeChild(o):o.className.replace(i,"")})}}},deps:[ut,To],multi:!0},qO="flex-layout-";let Pb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[_q]}),t})();class vs{constructor(n=!1,e="all",i="",o="",r=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=o,this.priority=r,this.property=""}clone(){return new vs(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let bq=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,o){const r=this.stylesheet.get(e);r?r.set(i,o):this.stylesheet.set(e,new Map([[i,o]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const o=this.stylesheet.get(e);let r="";if(o){const s=o.get(i);("number"==typeof s||"string"==typeof s)&&(r=s+"")}return r}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const kb={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},er=new Ie("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>kb}),zl=new Ie("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Xf=new Ie("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Nb(t,n){var e;return t=null!==(e=null==t?void 0:t.clone())&&void 0!==e?e:new vs,n&&(t.mqAlias=n.alias,t.mediaQuery=n.mediaQuery,t.suffix=n.suffix,t.priority=n.priority),t}class jn{constructor(){this.shouldCache=!0}sideEffect(n,e,i){}}let wn=(()=>{class t{constructor(e,i,o,r){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=o,this.layoutConfig=r}applyStyleToElement(e,i,o=null){let r={};"string"==typeof i&&(r[i]=o,i=r),r=this.layoutConfig.disableVendorPrefixes?i:HO(i),this._applyMultiValueStyleToElement(r,e)}applyStyleToElements(e,i=[]){const o=this.layoutConfig.disableVendorPrefixes?e:HO(e);i.forEach(r=>{this._applyMultiValueStyleToElement(o,r)})}getFlowDirection(e){const i="flex-direction";let o=this.lookupStyle(e,i);return[o||"row",this.lookupInlineStyle(e,i)||ul(this._platformId)&&this._serverModuleLoaded?o:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var o;return null!==(o=e.getAttribute(i))&&void 0!==o?o:""}lookupInlineStyle(e,i){return Gs(this._platformId)?e.style.getPropertyValue(i):function yq(t,n){var e;return null!==(e=WO(t)[n])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,o=!1){let r="";return e&&((r=this.lookupInlineStyle(e,i))||(Gs(this._platformId)?o||(r=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(e,i)))),r?r.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(o=>{const r=e[o],s=Array.isArray(r)?r:[r];s.sort();for(let a of s)a=a?a+"":"",Gs(this._platformId)||!this._serverModuleLoaded?Gs(this._platformId)?i.style.setProperty(o,a):Cq(i,o,a):this._serverStylesheet.addStyleToElement(i,o,a)})}}return t.\u0275fac=function(e){return new(e||t)(ie(bq),ie(zl),ie(To),ie(er))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Cq(t,n,e){n=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=WO(t);i[n]=null!=e?e:"",function Eq(t,n){let e="";for(const i in n)n[i]&&(e+=`${i}:${n[i]};`);t.setAttribute("style",e)}(t,i)}function WO(t){const n={},e=t.getAttribute("style");if(e){const i=e.split(/;+/g);for(let o=0;o<i.length;o++){const r=i[o].trim();if(r.length>0){const s=r.indexOf(":");if(-1===s)throw new Error(`Invalid CSS style: ${r}`);n[r.substr(0,s).trim()]=r.substr(s+1).trim()}}}return n}function ql(t,n){return(n&&n.priority||0)-(t&&t.priority||0)}function Sq(t,n){return(t.priority||0)-(n.priority||0)}let Jf=(()=>{class t{constructor(e,i,o){this._zone=e,this._platformId=i,this._document=o,this.source=new yt(new vs(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,o)=>{i.matches&&e.push(o)}),e}isActive(e){var i;const o=this.registry.get(e);return null!==(i=null==o?void 0:o.matches)&&void 0!==i?i:this.registerQuery(e).some(r=>r.matches)}observe(e,i=!1){if(e&&e.length){const o=this._observable$.pipe(qt(s=>!i||e.indexOf(s.mediaQuery)>-1));return ki(new T(s=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{s.next(c)}),this.source.next(l)}s.complete()}),o)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],o=[];return function Aq(t,n){const e=t.filter(i=>!$O[i]);if(e.length>0){const i=e.join(", ");try{const o=n.createElement("style");o.setAttribute("type","text/css"),o.styleSheet||o.appendChild(n.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),n.head.appendChild(o),e.forEach(r=>$O[r]=o)}catch(o){console.error(o)}}}(i,this._document),i.forEach(r=>{const s=l=>{this._zone.run(()=>this.source.next(new vs(l.matches,r)))};let a=this.registry.get(r);a||(a=this.buildMQL(r),a.addListener(s),this.pendingRemoveListenerFns.push(()=>a.removeListener(s)),this.registry.set(r,a)),a.matches&&o.push(new vs(!0,r))}),o}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function Dq(t,n){return n&&window.matchMedia("all").addListener?window.matchMedia(t):function wq(t){const n=new EventTarget;return n.matches="all"===t||""===t,n.media=t,n.addListener=()=>{},n.removeListener=()=>{},n.addEventListener=()=>{},n.dispatchEvent=()=>!1,n.onchange=null,n}(t)}(e,Gs(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(ie(at),ie(To),ie(ut))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const $O={},Mq=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],YO="(orientation: portrait) and (max-width: 599.98px)",QO="(orientation: landscape) and (max-width: 959.98px)",KO="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",ZO="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",XO="(orientation: portrait) and (min-width: 840px)",JO="(orientation: landscape) and (min-width: 1280px)",$r={HANDSET:`${YO}, ${QO}`,TABLET:`${KO} , ${ZO}`,WEB:`${XO}, ${JO} `,HANDSET_PORTRAIT:`${YO}`,TABLET_PORTRAIT:`${KO} `,WEB_PORTRAIT:`${XO}`,HANDSET_LANDSCAPE:`${QO}`,TABLET_LANDSCAPE:`${ZO}`,WEB_LANDSCAPE:`${JO}`},Tq=[{alias:"handset",priority:2e3,mediaQuery:$r.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:$r.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:$r.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:$r.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:$r.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:$r.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:$r.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:$r.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:$r.WEB_PORTRAIT,overlapping:!0}],xq=/(\.|-|_)/g;function Oq(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}const kq=new Ie("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=un(Xf),n=un(er),e=[].concat.apply([],(t||[]).map(o=>Array.isArray(o)?o:[o]));return function Pq(t,n=[]){const e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?Wr(e[i.alias],i):e[i.alias]=i}),function Rq(t){return t.forEach(n=>{n.suffix||(n.suffix=function Iq(t){return t.replace(xq,"|").split("|").map(Oq).join("")}(n.alias),n.overlapping=!!n.overlapping)}),t}(Object.keys(e).map(i=>e[i]))}((n.disableDefaultBps?[]:Mq).concat(n.addOrientationBps?Tq:[]),e)}});let ep=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(Sq)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var i;return null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:""})}findWithPredicate(e,i){var o;let r=this.findByMap.get(e);return r||(r=null!==(o=this.items.find(i))&&void 0!==o?o:null,this.findByMap.set(e,r)),null!=r?r:null}}return t.\u0275fac=function(e){return new(e||t)(ie(kq))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Wl="print",Nq={alias:Wl,mediaQuery:Wl,priority:1e3};let eI=(()=>{class t{constructor(e,i,o){this.breakpoints=e,this.layoutConfig=i,this._document=o,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Lq,this.deactivations=[]}withPrintQuery(e){return[...e,Wl]}isPrintEvent(e){return e.mediaQuery.startsWith(Wl)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(ql)}updateEvent(e){var i;let o=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(o=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==o?void 0:o.mediaQuery)&&void 0!==i?i:""),Nb(e,o)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new vs(!0,Wl))),e.updateStyles())},o=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(o)}interceptEvents(e){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const o=this.breakpoints.findByQuery(i.mediaQuery);if(o){const r=this.formerActivations&&this.formerActivations.includes(o),s=!this.formerActivations&&e.activatedBreakpoints.includes(o);(r||s)&&(this.deactivations.push(o),this.deactivations.sort(ql))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return t.\u0275fac=function(e){return new(e||t)(ie(ep),ie(er),ie(ut))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Lq{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(Nq),n.sort(ql),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)&&(this.printBreakpoints=function Fq(t){var n;return null!==(n=null==t?void 0:t.mediaQuery.startsWith(Wl))&&void 0!==n&&n}(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}}let Mn=(()=>{class t{constructor(e,i,o){this.matchMedia=e,this.breakpoints=i,this.hook=o,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new le,this.observeActivations()}get activatedAlias(){var e,i;return null!==(i=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==i?i:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);if(i){e=Nb(e,i);const o=this.activatedBreakpoints.indexOf(i);e.matches&&-1===o?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(ql),this.updateStyles()):!e.matches&&-1!==o&&(this._activatedBreakpoints.splice(o,1),this._activatedBreakpoints.sort(ql),this.updateStyles())}}init(e,i,o,r,s=[]){tI(this.updateMap,e,i,o),tI(this.clearMap,e,i,r),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,s)}getValue(e,i,o){const r=this.elementMap.get(e);if(r){const s=void 0!==o?r.get(o):this.getActivatedValues(r,i);if(s)return s.get(i)}}hasValue(e,i){const o=this.elementMap.get(e);if(o){const r=this.getActivatedValues(o,i);if(r)return void 0!==r.get(i)||!1}return!1}setValue(e,i,o,r){var s;let a=this.elementMap.get(e);if(a){const c=(null!==(s=a.get(r))&&void 0!==s?s:new Map).set(i,o);a.set(r,c),this.elementMap.set(e,a)}else a=(new Map).set(r,(new Map).set(i,o)),this.elementMap.set(e,a);const l=this.getValue(e,i);void 0!==l&&this.updateElement(e,i,l)}trackValue(e,i){return this.subject.asObservable().pipe(qt(o=>o.element===e&&o.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const o=new Set(this.elementKeyMap.get(i));let r=this.getActivatedValues(e);r&&r.forEach((s,a)=>{this.updateElement(i,a,s),o.delete(a)}),o.forEach(s=>{if(r=this.getActivatedValues(e,s),r){const a=r.get(s);this.updateElement(i,s,a)}else this.clearElement(i,s)})})}clearElement(e,i){const o=this.clearMap.get(e);if(o){const r=o.get(i);r&&(r(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,o){const r=this.updateMap.get(e);if(r){const s=r.get(i);s&&(s(o),this.subject.next({element:e,key:i,value:o}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(r=>r.unsubscribe()),this.watcherMap.delete(e));const o=this.elementMap.get(e);o&&(o.forEach((r,s)=>o.delete(s)),this.elementMap.delete(e))}triggerUpdate(e,i){const o=this.elementMap.get(e);if(o){const r=this.getActivatedValues(o,i);r&&(i?this.updateElement(e,i,r.get(i)):r.forEach((s,a)=>this.updateElement(e,a,s)))}}buildElementKeyMap(e,i){let o=this.elementKeyMap.get(e);o||(o=new Set,this.elementKeyMap.set(e,o)),o.add(i)}watchExtraTriggers(e,i,o){if(o&&o.length){let r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(i)){const a=ki(...o).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});r.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let r=0;r<this.activatedBreakpoints.length;r++){const a=e.get(this.activatedBreakpoints[r].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}if(!this._useFallbacks)return;const o=e.get("");return void 0===i||o&&o.has(i)?o:void 0}observeActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe($n(this.hook.interceptEvents(this)),qt(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(ie(Jf),ie(ep),ie(eI))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function tI(t,n,e,i){var o;if(void 0!==i){const r=null!==(o=t.get(n))&&void 0!==o?o:new Map;r.set(e,i),t.set(n,r)}}let Rn=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.styleBuilder=i,this.styler=o,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new le,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const o=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,o)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const o=this.styleBuilder,r=o.shouldCache;let s=this.styleCache.get(e);(!s||!r)&&(s=o.buildStyles(e,i),r&&this.styleCache.set(e,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),o.sideEffect(e,s,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[o,r]=this.styler.getFlowDirection(e);if(!r&&i){const s=GO(o);this.styler.applyStyleToElements(s,[e])}return o.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,o=this.nativeElement){this.styler.applyStyleToElement(o,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(jn),h(wn),h(Mn))},t.\u0275dir=ge({type:t,features:[zn]}),t})();EventTarget;let Uq=(()=>{class t{constructor(e,i,o){this.breakpoints=e,this.matchMedia=i,this.hook=o,this.filterOverlaps=!1,this.destroyed$=new le,this._media$=this.watchActivations()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(e){return function Gq(t){return t.flatMap(n=>n.split(",")).map(n=>n.trim())}(function jq(t){return Array.isArray(t)?t:[t]}(e)).some(o=>{const r=function Hq(t,n){var e,i;const o=null!==(e=n.findByAlias(t))&&void 0!==e?e:n.findByQuery(t);return null!==(i=null==o?void 0:o.mediaQuery)&&void 0!==i?i:null}(o,this.breakpoints);return null!==r&&this.matchMedia.isActive(r)})}watchActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);return this.buildObservable(e)}buildObservable(e){return this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(qt(s=>s.matches),Bu(0,Zh),Ri(s=>nt(this.findAllActivations())),Ue(s=>this.filterOverlaps?s.filter(a=>{var l;const c=this.breakpoints.findByQuery(a.mediaQuery);return null===(l=null==c?void 0:c.overlapping)||void 0===l||l}):s),qt(s=>s.filter(l=>l.mediaQuery.length>0).length>0),Vu((s,a)=>{if(s.length!==a.length)return!1;const l=s.map(d=>d.mediaQuery),c=new Set(a.map(d=>d.mediaQuery));return 0===new Set(l.filter(d=>!c.has(d))).size}),bt(this.destroyed$))}findAllActivations(){return this.matchMedia.activations.map(o=>new vs(!0,o)).map(o=>this.hook.isPrintEvent(o)?this.hook.updateEvent(o):o).map(o=>Nb(o,this.breakpoints.findByQuery(o.mediaQuery))).sort(ql)}}return t.\u0275fac=function(e){return new(e||t)(ie(ep),ie(Jf),ie(eI))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function nI(t,n="1",e="1"){let i=[n,e,t],o=t.indexOf("calc");if(o>0){i[2]=iI(t.substring(o).trim());let r=t.substr(0,o).trim().split(" ");2==r.length&&(i[0]=r[0],i[1]=r[1])}else if(0==o)i[2]=iI(t.trim());else{let r=t.split(" ");i=3===r.length?r:[n,e,t]}return i}function iI(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function tp(t,n){if(void 0===n)return t;const e=i=>{const o=+i.slice(0,-"x".length);return t.endsWith("x")&&!isNaN(o)?`${o*n.value}${n.unit}`:t};return t.includes(" ")?t.split(" ").map(e).join(" "):e(t)}let Qq=(()=>{class t extends Rn{constructor(e,i,o,r,s,a,l){super(e,null,i,o),this.ngClassInstance=l,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new Gi(r,s,e,a)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(wn),h(Mn),h($c),h(Us),h(Do),h(Gi,10))},t.\u0275dir=ge({type:t,inputs:{klass:["class","klass"]},features:[Te]}),t})();const Kq=["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"];let br=(()=>{class t extends Qq{constructor(){super(...arguments),this.inputs=Kq}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Te]}),t})();class tW{constructor(n,e,i=!0){this.key=n,this.value=e,this.key=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function rI(t){let n=typeof t;return"object"===n?t.constructor===Array?"array":t.constructor===Set?"set":"object":n}function aI(t){const[n,...e]=t.split(":");return new tW(n,e.join(":"))}function lI(t,n){return n.key&&(t[n.key]=n.value),t}let oW=(()=>{class t extends Rn{constructor(e,i,o,r,s,a,l,c,u){var d;super(e,null,i,o),this.sanitizer=r,this.ngStyleInstance=l,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new cl(e,s,a)),this.init();const f=null!==(d=this.nativeElement.getAttribute("style"))&&void 0!==d?d:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=c&&ul(u)}updateWithValue(e){const i=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),i),this.isServer&&this.applyStyleToElement(i),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const i=o=>{var r;return null!==(r=this.sanitizer.sanitize(Xt.STYLE,o))&&void 0!==r?r:""};if(e)switch(rI(e)){case"string":return cI(function nW(t,n=";"){return String(t).trim().split(n).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return cI(e,i);default:return function sI(t,n){let e=[];return"set"===rI(t)?t.forEach(i=>e.push(i)):Object.keys(t).forEach(i=>{e.push(`${i}:${t[i]}`)}),function iW(t,n){return t.map(aI).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(lI,{})}(e,n)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(wn),h(Mn),h(eu),h(Us),h(Do),h(cl,10),h(zl),h(To))},t.\u0275dir=ge({type:t,features:[Te]}),t})();const rW=["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"];let Fb=(()=>{class t extends oW{constructor(){super(...arguments),this.inputs=rW}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Te]}),t})();function cI(t,n){return t.map(aI).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(lI,{})}let uI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Pb]}),t})();var _s=B(9795);const sW=["*"];let np;function zu(t){var n;return(null===(n=function aW(){if(void 0===np&&(np=null,"undefined"!=typeof window)){const t=window;void 0!==t.trustedTypes&&(np=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return np}())||void 0===n?void 0:n.createHTML(t))||t}function dI(t){return Error(`Unable to find icon with the name "${t}"`)}function hI(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function fI(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class ca{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let ip=(()=>{class t{constructor(e,i,o,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,r){return this._addSvgIconConfig(e,i,new ca(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,r){const s=this._sanitizer.sanitize(Xt.HTML,o);if(!s)throw fI(o);const a=zu(s);return this._addSvgIconConfig(e,i,new ca("",a,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new ca(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const r=this._sanitizer.sanitize(Xt.HTML,i);if(!r)throw fI(i);const s=zu(r);return this._addSvgIconSetConfig(e,new ca("",s,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Xt.RESOURCE_URL,e);if(!i)throw hI(e);const o=this._cachedIconsByUrl.get(i);return o?nt(op(o)):this._loadSvgIconFromConfig(new ca(e,null)).pipe($n(r=>this._cachedIconsByUrl.set(i,r)),Ue(r=>op(r)))}getNamedSvgIcon(e,i=""){const o=pI(i,e);let r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Ol(dI(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?nt(op(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ue(i=>op(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?nt(o):$M(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Gr(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Xt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),nt(null)})))).pipe(Ue(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw dI(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(r),a=this._extractSvgIconFromSet(s,e,r.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe($n(i=>e.svgText=i),Ue(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?nt(null):this._fetchIcon(e).pipe($n(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const s=r.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,o);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),o);const a=this._svgElementFromString(zu("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,o)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const o=i.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(e){const i=this._svgElementFromString(zu("<svg></svg>")),o=e.attributes;for(let r=0;r<o.length;r++){const{name:s,value:a}=o[r];"id"!==s&&i.setAttribute(s,a)}for(let r=0;r<e.childNodes.length;r++)e.childNodes[r].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[r].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){var i;const{url:o,options:r}=e,s=null!==(i=null==r?void 0:r.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function lW(){return 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==o)throw Error(`Cannot fetch icon from URL "${o}".`);const a=this._sanitizer.sanitize(Xt.RESOURCE_URL,o);if(!a)throw hI(o);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:s}).pipe(Ue(u=>zu(u)),_f(()=>this._inProgressUrlFetches.delete(a)),Uy());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(pI(e,i),o),this}_addSvgIconSetConfig(e,i){const o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;o<this._resolvers.length;o++){const r=this._resolvers[o](i,e);if(r)return uW(r)?new ca(r.url,null,r.options):new ca(r,null)}}}return t.\u0275fac=function(e){return new(e||t)(ie(p_,8),ie(eu),ie(ut,8),ie(Ir))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function op(t){return t.cloneNode(!0)}function pI(t,n){return t+":"+n}function uW(t){return!(!t.url||!t.options)}const dW=aa(class{constructor(t){this._elementRef=t}}),hW=new Ie("MAT_ICON_DEFAULT_OPTIONS"),fW=new Ie("mat-icon-location",{providedIn:"root",factory:function pW(){const t=un(ut),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}}),gI=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],gW=gI.map(t=>`[${t}]`).join(", "),mW=/^url\(['"]?#(.*?)['"]?\)$/;let di=(()=>{class t extends dW{constructor(e,i,o,r,s,a){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=b.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ft(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const o=e.childNodes[i];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),i.forEach(o=>e.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((o,r)=>{o.forEach(s=>{r.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(gW),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r<i.length;r++)gI.forEach(s=>{const a=i[r],l=a.getAttribute(s),c=l?l.match(mW):null;if(c){let u=o.get(a);u||(u=[],o.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(yn(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${r.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(ip),Wo("aria-hidden"),h(fW),h(Ir),h(hW,8))},t.\u0275cmp=et({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(xt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),lt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Te],ngContentSelectors:sW,decls:1,vars:0,template:function(e,i){1&e&&(xn(),Dt(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),t})(),vW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Mt,Mt]}),t})();function _W(t,n){if(1&t&&(uc(),Je(0,"circle",4)),2&t){const e=re(),i=ji(1);Xi("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),xt("r",e._getCircleRadius())}}function bW(t,n){if(1&t&&(uc(),Je(0,"circle",4)),2&t){const e=re(),i=ji(1);Xi("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),xt("r",e._getCircleRadius())}}const CW=aa(class{constructor(t){this._elementRef=t}},"primary"),EW=new Ie("mat-progress-spinner-default-options",{providedIn:"root",factory:function SW(){return{diameter:100}}});class tr extends CW{constructor(n,e,i,o,r,s,a,l){super(n),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=b.EMPTY,this.mode="determinate";const c=tr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(i.head)||c.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!r&&!r._forceAnimations,"mat-spinner"===n.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),r&&(r.color&&(this.color=this.defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth)),e.isBrowser&&e.SAFARI&&a&&s&&l&&(this._resizeSubscription=a.change(150).subscribe(()=>{"indeterminate"===this.mode&&l.run(()=>s.markForCheck())}))}get diameter(){return this._diameter}set diameter(n){this._diameter=Wi(n),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(n){this._strokeWidth=Wi(n)}get value(){return"determinate"===this.mode?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,Wi(n)))}ngOnInit(){const n=this._elementRef.nativeElement;this._styleRoot=_M(n)||this._document.head,this._attachStyleNode(),n.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const n=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${n} ${n}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(n){var e;const i=50*(null!==(e=n.currentScale)&&void 0!==e?e:1);return`${i}% ${i}%`}_attachStyleNode(){const n=this._styleRoot,e=this._diameter,i=tr._diameters;let o=i.get(n);if(!o||!o.has(e)){const r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),n.appendChild(r),o||(o=new Set,i.set(n,o)),o.add(e)}}_getAnimationText(){const n=this._getStrokeCircumference();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*n).replace(/END_VALUE/g,""+.2*n).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}tr._diameters=new WeakMap,tr.\u0275fac=function(n){return new(n||tr)(h(Pe),h(ti),h(ut,8),h(pi,8),h(EW),h(Ut),h(hu),h(at))},tr.\u0275cmp=et({type:tr,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(n,e){2&n&&(xt("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),Xi("width",e.diameter,"px")("height",e.diameter,"px"),lt("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[Te],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(n,e){1&n&&(uc(),L(0,"svg",0,1),ne(2,_W,1,11,"circle",2),ne(3,bW,1,9,"circle",3),z()),2&n&&(Xi("width",e.diameter,"px")("height",e.diameter,"px"),q("ngSwitch","indeterminate"===e.mode),xt("viewBox",e._getViewBox()),x(2),q("ngSwitchCase",!0),x(1),q("ngSwitchCase",!1))},dependencies:[ll,Sh],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[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-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition: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)}}"],encapsulation:2,changeDetection:0});let wW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Mt,zi,Mt]}),t})();function DW(t,n){if(1&t){const e=ht();L(0,"div",2)(1,"button",3),we("click",function(){return Be(e),Ve(re().action())}),ce(2),z()()}if(2&t){const e=re();x(2),Ne(e.data.action)}}function MW(t,n){}const mI=new Ie("MatSnackBarData");class rp{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const TW=Math.pow(2,31)-1;class Vb{constructor(n,e){this._overlayRef=e,this._afterDismissed=new le,this._afterOpened=new le,this._onAction=new le,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,TW))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let xW=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(h(Vb),h(mI))},t.\u0275cmp=et({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(L(0,"span",0),ce(1),z(),ne(2,DW,3,1,"div",1)),2&e&&(x(1),Ne(i.data.message),x(1),q("ngIf",i.hasAction))},dependencies:[Jt,In],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}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),t})();const OW={snackBarState:qi("state",[gi("void, hidden",Pt({transform:"scale(0.8)",opacity:0})),gi("visible",Pt({transform:"scale(1)",opacity:1})),Vn("* => visible",Wn("150ms cubic-bezier(0, 0, 0.2, 1)")),Vn("* => void, * => hidden",Wn("75ms cubic-bezier(0.4, 0.0, 1, 1)",Pt({opacity:0})))])};let IW=(()=>{class t extends ef{constructor(e,i,o,r,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=o,this._platform=r,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new le,this._onExit=new le,this._onEnter=new le,this._animationState="void",this.attachDomPortal=a=>{this._assertNotAttached();const l=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),l},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:o}=e;if(("void"===o&&"void"!==i||"hidden"===o)&&this._completeExit(),"visible"===o){const r=this._onEnter;this._ngZone.run(()=>{r.next(),r.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(yn(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(o=>e.classList.add(o)):e.classList.add(i))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(o=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==o||o.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(h(at),h(Pe),h(Ut),h(ti),h(rp))},t.\u0275dir=ge({type:t,viewQuery:function(e,i){if(1&e&&St(vl,7),2&e){let o;xe(o=Oe())&&(i._portalOutlet=o.first)}},features:[Te]}),t})(),RW=(()=>{class t extends IW{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275cmp=et({type:t,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&Nc("@state.done",function(r){return i.onAnimationEnd(r)}),2&e&&Fc("@state",i._animationState)},features:[Te],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(L(0,"div",0),ne(1,MW,0,0,"ng-template",1),z(),Je(2,"div")),2&e&&(x(2),xt("aria-live",i._live)("role",i._role))},dependencies:[vl],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%}"],encapsulation:2,data:{animation:[OW.snackBarState]}}),t})(),vI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[wl,_l,zi,UO,Mt,Mt]}),t})();const _I=new Ie("mat-snack-bar-default-options",{providedIn:"root",factory:function PW(){return new rp}});let kW=(()=>{class t{constructor(e,i,o,r,s,a){this._overlay=e,this._live=i,this._injector=o,this._breakpointObserver=r,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",o){const r=Object.assign(Object.assign({},this._defaultConfig),o);return r.data={message:e,action:i},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const r=_n.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:rp,useValue:i}]}),s=new gl(this.snackBarContainerComponent,i.viewContainerRef,r),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const o=Object.assign(Object.assign(Object.assign({},new rp),this._defaultConfig),i),r=this._createOverlay(o),s=this._attachSnackBarContainer(r,o),a=new Vb(s,r);if(e instanceof mt){const l=new ml(e,null,{$implicit:o.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(o,a),c=new gl(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(bt(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(a,o),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new gu;i.direction=e.direction;let o=this._overlay.position().global();const r="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,a=!s&&"center"!==e.horizontalPosition;return s?o.left("0"):a?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(e,i){return _n.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Vb,useValue:i},{provide:mI,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(ie(to),ie(Cb),ie(_n),ie(Vf),ie(t,12),ie(_I))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),NW=(()=>{class t extends kW{constructor(e,i,o,r,s,a){super(e,i,o,r,s,a),this.simpleSnackBarComponent=xW,this.snackBarContainerComponent=RW,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(ie(to),ie(Cb),ie(_n),ie(Vf),ie(t,12),ie(_I))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:vI}),t})();const LW=["tooltip"],bI="tooltip-panel",yI=$s({passive:!0}),CI=new Ie("mat-tooltip-scroll-strategy"),jW={provide:CI,deps:[to],useFactory:function VW(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},UW=new Ie("mat-tooltip-default-options",{providedIn:"root",factory:function HW(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let GW=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,A){this._overlay=e,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=r,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new le,this._scrollStrategy=u,this._document=A,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),d.change.pipe(bt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=ft(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Wi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Wi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(bt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{e.removeEventListener(i,o,yI)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){var i;if(this.disabled||!this.message||this._isTooltipVisible())return void(null===(i=this._tooltipInstance)||void 0===i||i._cancelPendingAnimations());const o=this._createOverlay();this._detach(),this._portal=this._portal||new gl(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(bt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(bt(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${bI}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(bt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(bt(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(bt(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!eo(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),!(null===(e=this._defaultOptions)||void 0===e)&&e.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},o.main),r.main)),this._addOffset(Object.assign(Object.assign({},o.fallback),r.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});const{x:r,y:s}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:r,y:s}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(yn(1),bt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:o,originY:r}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===r?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${bI}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{var o;const r=i.relatedTarget;(!r||null===(o=this._overlayRef)||void 0===o||!o.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,yI)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){Ps()},t.\u0275dir=ge({type:t,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),nr=(()=>{class t extends GW{constructor(e,i,o,r,s,a,l,c,u,d,f,A){super(e,i,o,r,s,a,l,c,u,d,f,A),this._tooltipComponent=qW}}return t.\u0275fac=function(e){return new(e||t)(h(to),h(Pe),h(uu),h(ln),h(at),h(ti),h(mO),h(No),h(CI),h(go,8),h(UW,8),h(ut))},t.\u0275dir=ge({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Te]}),t})(),zW=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new le,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:o),i.classList.add(e?o:r),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(h(Ut),h(pi,8))},t.\u0275dir=ge({type:t}),t})(),qW=(()=>{class t extends zW{constructor(e,i,o){super(e,o),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return t.\u0275fac=function(e){return new(e||t)(h(Ut),h(Vf),h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&St(LW,7),2&e){let o;xe(o=Oe())&&(i._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&we("mouseleave",function(r){return i._handleMouseLeave(r)}),2&e&&Xi("zoom",i.isVisible()?1:null)},features:[Te],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(L(0,"div",0,1),we("animationend",function(r){return i._handleAnimationEnd(r)}),Ee(2,"async"),ce(3),z()),2&e){let o;lt("mat-tooltip-handset",null==(o=Ae(2,4,i._isHandset))?null:o.matches),q("ngClass",i.tooltipClass),x(3),Ne(i.message)}},dependencies:[Gi,Ww],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),t})(),WW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[jW],imports:[Sb,zi,wl,Mt,Mt,Ks]}),t})(),$W=(()=>{class t extends jn{buildStyles(e,{display:i}){const o=GO(e);return Object.assign(Object.assign({},o),{display:"none"===i?i:o.display})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const YW=["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"];let EI=(()=>{class t extends Rn{constructor(e,i,o,r,s){super(e,o,i,r),this._config=s,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const r=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=SI.get(r))&&void 0!==i?i:new Map,SI.set(r,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:r}),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(wn),h($W),h(Mn),h(er))},t.\u0275dir=ge({type:t,features:[Te]}),t})(),bs=(()=>{class t extends EI{constructor(){super(...arguments),this.inputs=YW}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Te]}),t})();const SI=new Map,AI={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let QW=(()=>{class t extends jn{constructor(e,i){super(),this._styler=e,this._config=i}buildStyles(e,i){return e.endsWith(ap)?function i7(t,n){const[e,i]=t.split(" "),r=c=>`-${c}`;let s="0px",a=r(null!=i?i:e),l="0px";return"rtl"===n?l=r(e):s=r(e),{margin:`0px ${s} ${a} ${l}`}}(e=tp(e=e.slice(0,e.indexOf(ap)),this._config.multiplier),i.directionality):{}}sideEffect(e,i,o){const r=o.items;if(e.endsWith(ap)){const s=function n7(t,n){const[e,i]=t.split(" ");let r="0px",a="0px";return"rtl"===n?a=e:r=e,{padding:`0px ${r} ${null!=i?i:e} ${a}`}}(e=tp(e=e.slice(0,e.indexOf(ap)),this._config.multiplier),o.directionality);this._styler.applyStyleToElements(s,o.items)}else{e=tp(e,this._config.multiplier),e=this.addFallbackUnit(e);const s=r.pop(),a=function o7(t,n){const e=wI(n.directionality,n.layout),i=Object.assign({},AI);return i[e]=t,i}(e,o);this._styler.applyStyleToElements(a,r),this._styler.applyStyleToElements(AI,[s])}}addFallbackUnit(e){return isNaN(+e)?e:`${e}${this._config.defaultUnit}`}}return t.\u0275fac=function(e){return new(e||t)(ie(wn),ie(er))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const KW=["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"];let ZW=(()=>{class t extends Rn{constructor(e,i,o,r,s,a){super(e,s,r,a),this.zone=i,this.directionality=o,this.styleUtils=r,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new le;const l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(bt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const e=this.nativeElement.children,i=[];for(let o=e.length;o--;)i[o]=e[o];return i}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){const o=e.value.split(" ");this.layout=o[0],Zf.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(e){const i=this.childrenNodes.filter(o=>1===o.nodeType&&this.willDisplay(o)).sort((o,r)=>{const s=+this.styler.lookupStyle(o,"order"),a=+this.styler.lookupStyle(r,"order");return isNaN(s)||isNaN(a)||s===a?0:s>a?1:-1});if(i.length>0){const o=this.directionality.value,r=this.layout;"row"===r&&"rtl"===o?this.styleCache=XW:"row"===r&&"rtl"!==o?this.styleCache=e7:"column"===r&&"rtl"===o?this.styleCache=JW:"column"===r&&"rtl"!==o&&(this.styleCache=t7),this.addStyles(e,{directionality:o,items:i,layout:r})}}clearStyles(){const e=Object.keys(this.mru).length>0,i=e?"padding":wI(this.directionality.value,this.layout);e&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(e){const i=this.marshal.getValue(e,"show-hide");return!0===i||void 0===i&&"none"!==this.styleUtils.lookupStyle(e,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(e=>{e.some(o=>o.addedNodes&&o.addedNodes.length>0||o.removedNodes&&o.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(at),h(go),h(wn),h(QW),h(Mn))},t.\u0275dir=ge({type:t,features:[Te]}),t})(),sp=(()=>{class t extends ZW{constructor(){super(...arguments),this.inputs=KW}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Te]}),t})();const XW=new Map,JW=new Map,e7=new Map,t7=new Map,ap=" grid";function wI(t,n){switch(n){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left"}}let r7=(()=>{class t extends jn{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[o,r,...s]=e.split(" "),a=s.join(" ");const l=i.direction.indexOf("column")>-1?"column":"row",c=Gu(l)?"max-width":"max-height",u=Gu(l)?"min-width":"min-height",d=String(a).indexOf("calc")>-1,f=d||"auto"===a,A=String(a).indexOf("%")>-1&&!d,H=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1;let te=d||H;o="0"==o?0:o,r="0"==r?0:r;const pe=!o&&!r;let he={};const _e={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":const fe=!1!==this.layoutConfig.useColumnBasisZero;a="row"===l?"0%":fe?"0.000000001px":"auto";break;case"initial":case"nogrow":o=0,a="auto";break;case"grow":a="100%";break;case"noshrink":r=0,a="auto";break;case"auto":break;case"none":o=0,r=0,a="auto";break;default:!te&&!A&&!isNaN(a)&&(a+="%"),"0%"===a&&(te=!0),"0px"===a&&(a="0%"),he=Wr(_e,d?{"flex-grow":o,"flex-shrink":r,"flex-basis":te?a:"100%"}:{flex:`${o} ${r} ${te?a:"100%"}`})}return he.flex||he["flex-grow"]||(he=Wr(_e,d?{"flex-grow":o,"flex-shrink":r,"flex-basis":a}:{flex:`${o} ${r} ${a}`})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(he[u]=pe||te&&o?a:null,he[c]=pe||!f&&r?a:null),he[u]||he[c]?i.hasWrap&&(he[d?"flex-basis":"flex"]=he[c]?d?he[c]:`${o} ${r} ${he[c]}`:d?he[u]:`${o} ${r} ${he[u]}`):he=Wr(_e,d?{"flex-grow":o,"flex-shrink":r,"flex-basis":a}:{flex:`${o} ${r} ${a}`}),Wr(he,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(ie(er))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const s7=["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"];let a7=(()=>{class t extends Rn{constructor(e,i,o,r,s){super(e,r,i,s),this.layoutConfig=o,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(bt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(bt(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const o=e.value.split(" ");this.direction=o[0],this.wrap=void 0!==o[1]&&"wrap"===o[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const o=this.direction,r=o.startsWith("row"),s=this.wrap;r&&s?this.styleCache=u7:r&&!s?this.styleCache=l7:!r&&s?this.styleCache=d7:!r&&!s&&(this.styleCache=c7);const l=nI(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:o,hasWrap:s})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=nI(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(wn),h(er),h(r7),h(Mn))},t.\u0275dir=ge({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Te]}),t})(),ua=(()=>{class t extends a7{constructor(){super(...arguments),this.inputs=s7}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Te]}),t})();const l7=new Map,c7=new Map,u7=new Map,d7=new Map;let h7=(()=>{class t extends jn{buildStyles(e){return{order:e&&parseInt(e,10)||""}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const f7=["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"];let p7=(()=>{class t extends Rn{constructor(e,i,o,r){super(e,o,i,r),this.DIRECTIVE_KEY="flex-order",this.styleCache=g7,this.init()}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(wn),h(h7),h(Mn))},t.\u0275dir=ge({type:t,features:[Te]}),t})();const g7=new Map;let jb=(()=>{class t extends p7{constructor(){super(...arguments),this.inputs=f7}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Te]}),t})();const x7={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let O7=(()=>{class t extends jn{buildStyles(e){return x7}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),DI=(()=>{class t extends Rn{constructor(e,i,o,r){super(e,o,i,r),this.styleCache=I7,this.addStyles("")}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(wn),h(O7),h(Mn))},t.\u0275dir=ge({type:t,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[Te]}),t})();const I7=new Map;let R7=(()=>{class t extends jn{buildStyles(e,i){const o={},[r,s]=e.split(" ");switch(r){case"center":o["justify-content"]="center";break;case"space-around":o["justify-content"]="space-around";break;case"space-between":o["justify-content"]="space-between";break;case"space-evenly":o["justify-content"]="space-evenly";break;case"end":case"flex-end":o["justify-content"]="flex-end";break;default:o["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":o["align-items"]=o["align-content"]="flex-start";break;case"center":o["align-items"]=o["align-content"]="center";break;case"end":case"flex-end":o["align-items"]=o["align-content"]="flex-end";break;case"space-between":o["align-content"]="space-between",o["align-items"]="stretch";break;case"space-around":o["align-content"]="space-around",o["align-items"]="stretch";break;case"baseline":o["align-content"]="stretch",o["align-items"]="baseline";break;default:o["align-items"]=o["align-content"]="stretch"}return Wr(o,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===s?Gu(i.layout)?null:"100%":null,"max-height":"stretch"===s&&Gu(i.layout)?"100%":null})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const P7=["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"];let k7=(()=>{class t extends Rn{constructor(e,i,o,r){super(e,o,i,r),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(bt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",o=this.inline;"row"===i&&o?this.styleCache=V7:"row"!==i||o?"row-reverse"===i&&o?this.styleCache=U7:"row-reverse"!==i||o?"column"===i&&o?this.styleCache=j7:"column"!==i||o?"column-reverse"===i&&o?this.styleCache=H7:"column-reverse"===i&&!o&&(this.styleCache=B7):this.styleCache=L7:this.styleCache=F7:this.styleCache=N7,this.addStyles(e,{layout:i,inline:o})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),Zf.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(wn),h(R7),h(Mn))},t.\u0275dir=ge({type:t,features:[Te]}),t})(),da=(()=>{class t extends k7{constructor(){super(...arguments),this.inputs=P7}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,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:[Te]}),t})();const N7=new Map,L7=new Map,F7=new Map,B7=new Map,V7=new Map,j7=new Map,U7=new Map,H7=new Map;let MI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Pb,pl]}),t})();function z7(t){return void 0===t}function Lo(t){return"boolean"==typeof t}function Cn(t,n){for(var e=t.length-1;e>=0;e--)t[e]===n&&t.splice(e,1)}function ha(t,n){for(var e=t.length-1;e>=0;e--)!0===n(t[e])&&t.splice(e,1)}function qu(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var $l=/[A-Za-z]/,Pi=/[\d]/,ir=/\s/,Ub=/['"]/,$7=/[\x00-\x1F\x7F]/,TI=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,K7=TI+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,xI=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,OI=(new RegExp("[".concat(TI+xI,"]")),K7+xI),fa=new RegExp("[".concat(OI,"]")),II=function(){function t(n){void 0===n&&(n={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=n.tagName||"",this.attrs=n.attrs||{},this.innerHTML=n.innerHtml||n.innerHTML||""}return t.prototype.setTagName=function(n){return this.tagName=n,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(n,e){return this.getAttrs()[n]=e,this},t.prototype.getAttr=function(n){return this.getAttrs()[n]},t.prototype.setAttrs=function(n){return Object.assign(this.getAttrs(),n),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(n){return this.setAttr("class",n)},t.prototype.addClass=function(n){for(var r,e=this.getClass(),i=e?e.split(ir):[],o=n.split(ir);r=o.shift();)-1===i.indexOf(r)&&i.push(r);return this.getAttrs().class=i.join(" "),this},t.prototype.removeClass=function(n){for(var r,e=this.getClass(),i=e?e.split(ir):[],o=n.split(ir);i.length&&(r=o.shift());){var s=i.indexOf(r);-1!==s&&i.splice(s,1)}return this.getAttrs().class=i.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(n){return-1!==(" "+this.getClass()+" ").indexOf(" "+n+" ")},t.prototype.setInnerHTML=function(n){return this.innerHTML=n,this},t.prototype.setInnerHtml=function(n){return this.setInnerHTML(n)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var n=this.getTagName(),e=this.buildAttrsStr();return["<",n,e=e?" "+e:"",">",this.getInnerHtml(),"</",n,">"].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var n=this.getAttrs(),e=[];for(var i in n)n.hasOwnProperty(i)&&e.push(i+'="'+n[i]+'"');return e.join(" ")},t}(),e$=function(){function t(n){void 0===n&&(n={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=n.newWindow||!1,this.truncate=n.truncate||{},this.className=n.className||""}return t.prototype.build=function(n){return new II({tagName:"a",attrs:this.createAttrs(n),innerHtml:this.processAnchorText(n.getAnchorText())})},t.prototype.createAttrs=function(n){var e={href:n.getAnchorHref()},i=this.createCssClass(n);return i&&(e.class=i),this.newWindow&&(e.target="_blank",e.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<n.getAnchorText().length&&(e.title=n.getAnchorHref()),e},t.prototype.createCssClass=function(n){var e=this.className;if(e){for(var i=[e],o=n.getCssClassSuffixes(),r=0,s=o.length;r<s;r++)i.push(e+"-"+o[r]);return i.join(" ")}return""},t.prototype.processAnchorText=function(n){return this.doTruncate(n)},t.prototype.doTruncate=function(n){var e=this.truncate;if(!e||!e.length)return n;var i=e.length,o=e.location;return"smart"===o?function Z7(t,n,e){var i,o;null==e?(e="&hellip;",o=3,i=8):(o=e.length,i=e.length);var s=function(_e){var fe="";return _e.scheme&&_e.host&&(fe+=_e.scheme+"://"),_e.host&&(fe+=_e.host),_e.path&&(fe+="/"+_e.path),_e.query&&(fe+="?"+_e.query),_e.fragment&&(fe+="#"+_e.fragment),fe},a=function(_e,fe){var ve=fe/2,He=Math.ceil(ve),dt=-1*Math.floor(ve),Wt="";return dt<0&&(Wt=_e.substr(dt)),_e.substr(0,He)+e+Wt};if(t.length<=n)return t;var fe,ve,He,l=n-o,c=(fe={},(He=(ve=t).match(/^([a-z]+):\/\//i))&&(fe.scheme=He[1],ve=ve.substr(He[0].length)),(He=ve.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(fe.host=He[1],ve=ve.substr(He[0].length)),(He=ve.match(/^\/(.*?)(?=(\?|#|$))/i))&&(fe.path=He[1],ve=ve.substr(He[0].length)),(He=ve.match(/^\?(.*?)(?=(#|$))/i))&&(fe.query=He[1],ve=ve.substr(He[0].length)),(He=ve.match(/^#(.*?)$/i))&&(fe.fragment=He[1]),fe);if(c.query){var u=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);u&&(c.query=c.query.substr(0,u[1].length),t=s(c))}if(t.length<=n||(c.host&&(c.host=c.host.replace(/^www\./,""),t=s(c)),t.length<=n))return t;var d="";if(c.host&&(d+=c.host),d.length>=l)return c.host.length==n?(c.host.substr(0,n-o)+e).substr(0,l+i):a(d,l).substr(0,l+i);var f="";if(c.path&&(f+="/"+c.path),c.query&&(f+="?"+c.query),f){if((d+f).length>=l)return(d+f).length==n?(d+f).substr(0,n):(d+a(f,l-d.length)).substr(0,l+i);d+=f}if(c.fragment){var H="#"+c.fragment;if((d+H).length>=l)return(d+H).length==n?(d+H).substr(0,n):(d+a(H,l-d.length)).substr(0,l+i);d+=H}if(c.scheme&&c.host){var pe=c.scheme+"://";if((d+pe).length<l)return(pe+d).substr(0,n)}if(d.length<=n)return d;var he="";return l>0&&(he=d.substr(-1*Math.floor(l/2))),(d.substr(0,Math.ceil(l/2))+e+he).substr(0,l+i)}(n,i):"middle"===o?function X7(t,n,e){if(t.length<=n)return t;var i,o;null==e?(e="&hellip;",i=8,o=3):(i=e.length,o=e.length);var r=n-o,s="";return r>0&&(s=t.substr(-1*Math.floor(r/2))),(t.substr(0,Math.ceil(r/2))+e+s).substr(0,r+i)}(n,i):function J7(t,n,e){return function W7(t,n,e){var i;return t.length>n&&(null==e?(e="&hellip;",i=3):i=e.length,t=t.substring(0,n-i)+e),t}(t,n,e)}(n,i)},t}(),Wu=function(){function t(n){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=n.tagBuilder,this.matchedText=n.matchedText,this.offset=n.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(n){this.offset=n},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.type]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t}(),n$=new RegExp("^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|verm\xf6gensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|verm\xf6gensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|\u043a\u0430\u0442\u043e\u043b\u0438\u043a|\u0627\u062a\u0635\u0627\u0644\u0627\u062a|\u0627\u0644\u0628\u062d\u0631\u064a\u0646|\u0627\u0644\u062c\u0632\u0627\u0626\u0631|\u0627\u0644\u0639\u0644\u064a\u0627\u0646|\u067e\u0627\u06a9\u0633\u062a\u0627\u0646|\u0643\u0627\u062b\u0648\u0644\u064a\u0643|\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|\u043c\u043e\u0441\u043a\u0432\u0430|\u043e\u043d\u043b\u0430\u0439\u043d|\u0627\u0628\u0648\u0638\u0628\u064a|\u0627\u0631\u0627\u0645\u0643\u0648|\u0627\u0644\u0627\u0631\u062f\u0646|\u0627\u0644\u0645\u063a\u0631\u0628|\u0627\u0645\u0627\u0631\u0627\u062a|\u0641\u0644\u0633\u0637\u064a\u0646|\u0645\u0644\u064a\u0633\u064a\u0627|\u092d\u093e\u0930\u0924\u092e\u094d|\u0b87\u0bb2\u0b99\u0bcd\u0b95\u0bc8|\u30d5\u30a1\u30c3\u30b7\u30e7\u30f3|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|\u05d9\u05e9\u05e8\u05d0\u05dc|\u0627\u06cc\u0631\u0627\u0646|\u0628\u0627\u0632\u0627\u0631|\u0628\u06be\u0627\u0631\u062a|\u0633\u0648\u062f\u0627\u0646|\u0633\u0648\u0631\u064a\u0629|\u0647\u0645\u0631\u0627\u0647|\u092d\u093e\u0930\u094b\u0924|\u0938\u0902\u0917\u0920\u0928|\u09ac\u09be\u0982\u09b2\u09be|\u0c2d\u0c3e\u0c30\u0c24\u0c4d|\u0d2d\u0d3e\u0d30\u0d24\u0d02|\u5609\u91cc\u5927\u9152\u5e97|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|\u0434\u0435\u0442\u0438|\u0441\u0430\u0439\u0442|\u0628\u0627\u0631\u062a|\u0628\u064a\u062a\u0643|\u0680\u0627\u0631\u062a|\u062a\u0648\u0646\u0633|\u0634\u0628\u0643\u0629|\u0639\u0631\u0627\u0642|\u0639\u0645\u0627\u0646|\u0645\u0648\u0642\u0639|\u092d\u093e\u0930\u0924|\u09ad\u09be\u09b0\u09a4|\u09ad\u09be\u09f0\u09a4|\u0a2d\u0a3e\u0a30\u0a24|\u0aad\u0abe\u0ab0\u0aa4|\u0b2d\u0b3e\u0b30\u0b24|\u0cad\u0cbe\u0cb0\u0ca4|\u0dbd\u0d82\u0d9a\u0dcf|\u30a2\u30de\u30be\u30f3|\u30b0\u30fc\u30b0\u30eb|\u30af\u30e9\u30a6\u30c9|\u30dd\u30a4\u30f3\u30c8|\u7ec4\u7ec7\u673a\u6784|\u96fb\u8a0a\u76c8\u79d1|\u9999\u683c\u91cc\u62c9|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|\u0431\u0435\u043b|\u043a\u043e\u043c|\u049b\u0430\u0437|\u043c\u043a\u0434|\u043c\u043e\u043d|\u043e\u0440\u0433|\u0440\u0443\u0441|\u0441\u0440\u0431|\u0443\u043a\u0440|\u0570\u0561\u0575|\u05e7\u05d5\u05dd|\u0639\u0631\u0628|\u0642\u0637\u0631|\u0643\u0648\u0645|\u0645\u0635\u0631|\u0915\u0949\u092e|\u0928\u0947\u091f|\u0e04\u0e2d\u0e21|\u0e44\u0e17\u0e22|\u0ea5\u0eb2\u0ea7|\u30b9\u30c8\u30a2|\u30bb\u30fc\u30eb|\u307f\u3093\u306a|\u4e2d\u6587\u7f51|\u4e9a\u9a6c\u900a|\u5929\u4e3b\u6559|\u6211\u7231\u4f60|\u65b0\u52a0\u5761|\u6de1\u9a6c\u9521|\u8bfa\u57fa\u4e9a|\u98de\u5229\u6d66|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|\u03b5\u03bb|\u03b5\u03c5|\u0431\u0433|\u0435\u044e|\u0440\u0444|\u10d2\u10d4|\ub2f7\ub137|\ub2f7\ucef4|\uc0bc\uc131|\ud55c\uad6d|\u30b3\u30e0|\u4e16\u754c|\u4e2d\u4fe1|\u4e2d\u56fd|\u4e2d\u570b|\u4f01\u4e1a|\u4f5b\u5c71|\u4fe1\u606f|\u5065\u5eb7|\u516b\u5366|\u516c\u53f8|\u516c\u76ca|\u53f0\u6e7e|\u53f0\u7063|\u5546\u57ce|\u5546\u5e97|\u5546\u6807|\u5609\u91cc|\u5728\u7ebf|\u5927\u62ff|\u5a31\u4e50|\u5bb6\u96fb|\u5e7f\u4e1c|\u5fae\u535a|\u6148\u5584|\u624b\u673a|\u62db\u8058|\u653f\u52a1|\u653f\u5e9c|\u65b0\u95fb|\u65f6\u5c1a|\u66f8\u7c4d|\u673a\u6784|\u6e38\u620f|\u6fb3\u9580|\u70b9\u770b|\u79fb\u52a8|\u7f51\u5740|\u7f51\u5e97|\u7f51\u7ad9|\u7f51\u7edc|\u8054\u901a|\u8c37\u6b4c|\u8d2d\u7269|\u901a\u8ca9|\u96c6\u56e2|\u98df\u54c1|\u9910\u5385|\u9999\u6e2f)$"),i$=/[\/?#]/,o$=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,RI=/[?!:,.;^]/,PI=/https?:\/\//i,r$=new RegExp("^"+PI.source,"i"),s$=new RegExp(RI.source+"$"),a$=/^(javascript|vbscript):/i,l$=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,c$=/^(?:\/\/)?([^/#?:]+)/;function Hb(t){return $l.test(t)}function kI(t){return $l.test(t)||Pi.test(t)||"+"===t||"-"===t||"."===t}function ys(t){return fa.test(t)}function Gb(t){return"_"===t||ys(t)}function NI(t){return fa.test(t)||o$.test(t)||RI.test(t)}function zb(t){return i$.test(t)}function LI(t){return n$.test(t.toLowerCase())}var h$=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,f$=/[:/?#]/,g$=/^(https?:\/\/)?(www\.)?/i,m$=/^\/\//,v$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="url",i.url="",i.urlMatchType="scheme",i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.protocolPrepended=!1,i.urlMatchType=e.urlMatchType,i.url=e.url,i.protocolRelativeMatch=e.protocolRelativeMatch,i.stripPrefix=e.stripPrefix,i.stripTrailingSlash=e.stripTrailingSlash,i.decodePercentEncoding=e.decodePercentEncoding,i}return $t(n,t),n.prototype.getType=function(){return"url"},n.prototype.getUrlMatchType=function(){return this.urlMatchType},n.prototype.getUrl=function(){var e=this.url;return!this.protocolRelativeMatch&&"scheme"!==this.urlMatchType&&!this.protocolPrepended&&(e=this.url="http://"+e,this.protocolPrepended=!0),e},n.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},n.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=function y$(t){return t.replace(m$,"")}(e)),this.stripPrefix.scheme&&(e=function _$(t){return t.replace(r$,"")}(e)),this.stripPrefix.www&&(e=function b$(t){return t.replace(g$,"$1")}(e)),this.stripTrailingSlash&&(e=function C$(t){return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t}(e)),this.decodePercentEncoding&&(e=function E$(t){var n=t.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(n)}catch(e){return n}}(e)),e},n}(Wu),S$=/^mailto:/i,A$=new RegExp("[".concat(OI,"!#$%&'*+/=?^_`{|}~-]"));function qb(t){return A$.test(t)}var M$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="email",i.email="",i.email=e.email,i}return $t(n,t),n.prototype.getType=function(){return"email"},n.prototype.getEmail=function(){return this.email},n.prototype.getAnchorHref=function(){return"mailto:"+this.email},n.prototype.getAnchorText=function(){return this.email},n}(Wu);function FI(t){return"_"===t||fa.test(t)}var x$=["twitter","facebook","instagram","tiktok"],O$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="hashtag",i.serviceName="twitter",i.hashtag="",i.serviceName=e.serviceName,i.hashtag=e.hashtag,i}return $t(n,t),n.prototype.getType=function(){return"hashtag"},n.prototype.getServiceName=function(){return this.serviceName},n.prototype.getHashtag=function(){return this.hashtag},n.prototype.getAnchorHref=function(){var e=this.serviceName,i=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+i;case"facebook":return"https://www.facebook.com/hashtag/"+i;case"instagram":return"https://instagram.com/explore/tags/"+i;case"tiktok":return"https://www.tiktok.com/tag/"+i;default:throw qu(e),new Error("Invalid hashtag service: ".concat(e))}},n.prototype.getAnchorText=function(){return"#"+this.hashtag},n.prototype.getCssClassSuffixes=function(){var e=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&e.push(i),e},n}(Wu),I$={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/},R$=/[-\w.]/;function BI(t){return R$.test(t)}var k$=["twitter","instagram","soundcloud","tiktok"],N$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="mention",i.serviceName="twitter",i.mention="",i.mention=e.mention,i.serviceName=e.serviceName,i}return $t(n,t),n.prototype.getType=function(){return"mention"},n.prototype.getMention=function(){return this.mention},n.prototype.getServiceName=function(){return this.serviceName},n.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},n.prototype.getAnchorText=function(){return"@"+this.mention},n.prototype.getCssClassSuffixes=function(){var e=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&e.push(i),e},n}(Wu),L$=/[-. ]/,F$=/[-. ()]/,B$=/[,;]/,U$=new RegExp("^".concat(/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source,"$"));function VI(t){return L$.test(t)}function Wb(t){return B$.test(t)}var G$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="phone",i.number="",i.plusSign=!1,i.number=e.number,i.plusSign=e.plusSign,i}return $t(n,t),n.prototype.getType=function(){return"phone"},n.prototype.getPhoneNumber=function(){return this.number},n.prototype.getNumber=function(){return this.getPhoneNumber()},n.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},n.prototype.getAnchorText=function(){return this.matchedText},n}(Wu);var q$=/[\(\{\[]/,jI=/[\)\}\]]/,UI={")":"(","}":"{","]":"["};function $b(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"scheme"}}function Yb(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"tld"}}function Qb(t,n){return{type:"phone",startIdx:t,state:n,acceptStateReached:!1}}var yr=function t(n){void 0===n&&(n={}),this.idx=void 0!==n.idx?n.idx:-1,this.type=n.type||"tag",this.name=n.name||"",this.isOpening=!!n.isOpening,this.isClosing=!!n.isClosing};const J$=function(){function t(n){void 0===n&&(n={}),this.version=t.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=function eY(t){return null==t&&(t=!0),Lo(t)?{schemeMatches:t,tldMatches:t,ipV4Matches:t}:{schemeMatches:!Lo(t.schemeMatches)||t.schemeMatches,tldMatches:!Lo(t.tldMatches)||t.tldMatches,ipV4Matches:!Lo(t.ipV4Matches)||t.ipV4Matches}}(n.urls),this.email=Lo(n.email)?n.email:this.email,this.phone=Lo(n.phone)?n.phone:this.phone,this.hashtag=n.hashtag||this.hashtag,this.mention=n.mention||this.mention,this.newWindow=Lo(n.newWindow)?n.newWindow:this.newWindow,this.stripPrefix=function tY(t){return null==t&&(t=!0),Lo(t)?{scheme:t,www:t}:{scheme:!Lo(t.scheme)||t.scheme,www:!Lo(t.www)||t.www}}(n.stripPrefix),this.stripTrailingSlash=Lo(n.stripTrailingSlash)?n.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=Lo(n.decodePercentEncoding)?n.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=n.sanitizeHtml||!1;var e=this.mention;if(!1!==e&&-1===k$.indexOf(e))throw new Error("invalid `mention` cfg '".concat(e,"' - see docs"));var i=this.hashtag;if(!1!==i&&-1===x$.indexOf(i))throw new Error("invalid `hashtag` cfg '".concat(i,"' - see docs"));this.truncate=function nY(t){return"number"==typeof t?{length:t,location:"end"}:function q7(t,n){for(var e in n)n.hasOwnProperty(e)&&z7(t[e])&&(t[e]=n[e]);return t}(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})}(n.truncate),this.className=n.className||this.className,this.replaceFn=n.replaceFn||this.replaceFn,this.context=n.context||this}return t.link=function(n,e){return new t(e).link(n)},t.parse=function(n,e){return new t(e).parse(n)},t.prototype.parse=function(n){var e=this,i=["a","style","script"],o=0,r=[];return function Z$(t,n){for(var e=n.onOpenTag,i=n.onCloseTag,o=n.onText,r=n.onComment,s=n.onDoctype,a=new yr,l=0,c=t.length,u=0,d=0,f=a;l<c;){var A=t.charAt(l);switch(u){case 0:"<"===A&&jt();break;case 1:"!"===(Fe=A)?u=13:"/"===Fe?(u=2,f=new yr(qe(qe({},f),{isClosing:!0}))):"<"===Fe?jt():$l.test(Fe)?(u=3,f=new yr(qe(qe({},f),{isOpening:!0}))):(u=0,f=a);break;case 2:he(A);break;case 3:pe(A);break;case 4:_e(A);break;case 5:fe(A);break;case 6:ve(A);break;case 7:He(A);break;case 8:dt(A);break;case 9:Wt(A);break;case 10:Tt(A);break;case 11:En(A);break;case 12:It(A);break;case 13:"--"===t.substr(l,2)?(l+=2,f=new yr(qe(qe({},f),{type:"comment"})),u=14):"DOCTYPE"===t.substr(l,7).toUpperCase()?(l+=7,f=new yr(qe(qe({},f),{type:"doctype"})),u=20):it();break;case 14:vi(A);break;case 15:Un(A);break;case 16:Di(A);break;case 17:bo(A);break;case 18:Ke(A);break;case 19:Ge(A);break;case 20:ot(A);break;default:qu(u)}l++}var Fe;function pe(Fe){ir.test(Fe)?(f=new yr(qe(qe({},f),{name:Bt()})),u=4):"<"===Fe?jt():"/"===Fe?(f=new yr(qe(qe({},f),{name:Bt()})),u=12):">"===Fe?(f=new yr(qe(qe({},f),{name:Bt()})),Sn()):!$l.test(Fe)&&!Pi.test(Fe)&&":"!==Fe&&it()}function he(Fe){">"===Fe?it():$l.test(Fe)?u=3:it()}function _e(Fe){ir.test(Fe)||("/"===Fe?u=12:">"===Fe?Sn():"<"===Fe?jt():"="===Fe||Ub.test(Fe)||$7.test(Fe)?it():u=5)}function fe(Fe){ir.test(Fe)?u=6:"/"===Fe?u=12:"="===Fe?u=7:">"===Fe?Sn():"<"===Fe?jt():Ub.test(Fe)&&it()}function ve(Fe){ir.test(Fe)||("/"===Fe?u=12:"="===Fe?u=7:">"===Fe?Sn():"<"===Fe?jt():Ub.test(Fe)?it():u=5)}function He(Fe){ir.test(Fe)||('"'===Fe?u=8:"'"===Fe?u=9:/[>=`]/.test(Fe)?it():"<"===Fe?jt():u=10)}function dt(Fe){'"'===Fe&&(u=11)}function Wt(Fe){"'"===Fe&&(u=11)}function Tt(Fe){ir.test(Fe)?u=4:">"===Fe?Sn():"<"===Fe&&jt()}function En(Fe){ir.test(Fe)?u=4:"/"===Fe?u=12:">"===Fe?Sn():"<"===Fe?jt():(u=4,function Ct(){l--}())}function It(Fe){">"===Fe?(f=new yr(qe(qe({},f),{isClosing:!0})),Sn()):u=4}function vi(Fe){"-"===Fe?u=15:">"===Fe?it():u=16}function Un(Fe){"-"===Fe?u=18:">"===Fe?it():u=16}function Di(Fe){"-"===Fe&&(u=17)}function bo(Fe){u="-"===Fe?18:16}function Ke(Fe){">"===Fe?Sn():"!"===Fe?u=19:"-"===Fe||(u=16)}function Ge(Fe){"-"===Fe?u=17:">"===Fe?Sn():u=16}function ot(Fe){">"===Fe?Sn():"<"===Fe&&jt()}function it(){u=0,f=a}function jt(){u=1,f=new yr({idx:l})}function Sn(){var Fe=t.slice(d,f.idx);Fe&&o(Fe,d),"comment"===f.type?r(f.idx):"doctype"===f.type?s(f.idx):(f.isOpening&&e(f.name,f.idx),f.isClosing&&i(f.name,f.idx)),it(),d=l+1}function Bt(){return t.slice(f.idx+(f.isClosing?2:1),l).toLowerCase()}d<l&&function oi(){var Fe=t.slice(d,l);o(Fe,d),d=l+1}()}(n,{onOpenTag:function(s){i.indexOf(s)>=0&&o++},onText:function(s,a){if(0===o){var c=s.split(/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),u=a;c.forEach(function(d,f){if(f%2==0){var A=e.parseText(d,u);r.push.apply(r,A)}u+=d.length})}},onCloseTag:function(s){i.indexOf(s)>=0&&(o=Math.max(o-1,0))},onComment:function(s){},onDoctype:function(s){}}),r=this.compactMatches(r),r=this.removeUnwantedMatches(r)},t.prototype.compactMatches=function(n){n.sort(function(l,c){return l.getOffset()-c.getOffset()});for(var e=0;e<n.length-1;){var i=n[e],o=i.getOffset(),r=i.getMatchedText().length,s=o+r;if(e+1<n.length){if(n[e+1].getOffset()===o){var a=n[e+1].getMatchedText().length>r?e:e+1;n.splice(a,1);continue}if(n[e+1].getOffset()<s){n.splice(e+1,1);continue}}e++}return n},t.prototype.removeUnwantedMatches=function(n){return this.hashtag||ha(n,function(e){return"hashtag"===e.getType()}),this.email||ha(n,function(e){return"email"===e.getType()}),this.phone||ha(n,function(e){return"phone"===e.getType()}),this.mention||ha(n,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||ha(n,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.tldMatches||ha(n,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),this.urls.ipV4Matches||ha(n,function(e){return"url"===e.getType()&&"ipV4"===e.getUrlMatchType()}),n},t.prototype.parseText=function(n,e){void 0===e&&(e=0),e=e||0;for(var i=function z$(t,n){for(var e=n.tagBuilder,i=n.stripPrefix,o=n.stripTrailingSlash,r=n.decodePercentEncoding,s=n.hashtagServiceName,a=n.mentionServiceName,l=[],c=t.length,u=[],d=0;d<c;d++){var f=t.charAt(d);if(0===u.length)pe(f);else for(var A=u.length-1;A>=0;A--){var H=u[A];switch(H.state){case 11:de=H,"/"===f?de.state=12:Cn(u,de);break;case 12:Wt(H,f);break;case 0:he(H,f);break;case 1:_e(H,f);break;case 2:fe(H,f);break;case 3:ve(H,f);break;case 4:He(H,f);break;case 5:Tt(H,f);break;case 6:En(H,f);break;case 7:It(H,f);break;case 13:hn(H,f);break;case 14:vi(H,f);break;case 8:Un(H,f);break;case 9:Di(H,f);break;case 10:bo(H,f);break;case 15:Ke(H,f);break;case 16:Ge(H,f);break;case 17:ot(H,f);break;case 18:it(H,f);break;case 19:jt(H,f);break;case 20:Sn(H,f);break;case 21:oi(H,f);break;case 22:Bt(H,f);break;case 23:Ct(H,f);break;case 24:Fe(H,f);break;case 25:yo(H,f);break;case 26:Tn(H,f);break;case 27:Yi(H,f);break;case 28:no(H,f);break;case 29:nc(H,f);break;case 30:nd(H,f);break;case 31:Aoe(H,f);break;case 32:Doe(H,f);break;case 33:Moe(H,f);break;case 34:Toe(H,f);break;case 35:xoe(H,f);break;case 36:Ooe(H,f);break;case 37:woe(H,f);break;case 38:Ioe(H,f);break;case 39:Roe(H,f);break;case 40:Poe(H,f);break;case 41:koe(H,f);break;default:qu(H.state)}}}for(var de,te=u.length-1;te>=0;te--)u.forEach(function(de){return kn(de)});return l;function pe(de){if("#"===de)u.push(function Q$(t,n){return{type:"hashtag",startIdx:t,state:n,acceptStateReached:!1}}(d,28));else if("@"===de)u.push(function K$(t,n){return{type:"mention",startIdx:t,state:n,acceptStateReached:!1}}(d,30));else if("/"===de)u.push(Yb(d,11));else if("+"===de)u.push(Qb(d,37));else if("("===de)u.push(Qb(d,32));else{if(Pi.test(de)&&(u.push(Qb(d,38)),u.push(function $$(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"ipV4",octetsEncountered:1}}(d,13))),function w$(t){return fa.test(t)}(de)){var be="m"===de.toLowerCase()?15:22;u.push(function Y$(t,n){return{type:"email",startIdx:t,state:n,acceptStateReached:!1}}(d,be))}Hb(de)&&u.push($b(d,0)),fa.test(de)&&u.push(Yb(d,5))}}function he(de,be){":"===be?de.state=2:"-"===be?de.state=1:kI(be)||Cn(u,de)}function _e(de,be){"-"===be||("/"===be?(Cn(u,de),u.push(Yb(d,11))):kI(be)?de.state=0:Cn(u,de))}function fe(de,be){"/"===be?de.state=3:"."===be?Cn(u,de):ys(be)?(de.state=5,Hb(be)&&u.push($b(d,0))):Cn(u,de)}function ve(de,be){"/"===be?de.state=4:NI(be)?(de.state=10,de.acceptStateReached=!0):kn(de)}function He(de,be){"/"===be?de.state=10:ys(be)?(de.state=5,de.acceptStateReached=!0):Cn(u,de)}function Wt(de,be){ys(be)?de.state=5:Cn(u,de)}function Tt(de,be){"."===be?de.state=7:"-"===be?de.state=6:":"===be?de.state=8:zb(be)?de.state=10:Gb(be)||kn(de)}function En(de,be){"-"===be||("."===be?kn(de):ys(be)?de.state=5:kn(de))}function It(de,be){"."===be?kn(de):ys(be)?(de.state=5,de.acceptStateReached=!0):kn(de)}function hn(de,be){"."===be?de.state=14:":"===be?de.state=8:Pi.test(be)||(zb(be)?de.state=10:fa.test(be)?Cn(u,de):kn(de))}function vi(de,be){Pi.test(be)?(de.octetsEncountered++,4===de.octetsEncountered&&(de.acceptStateReached=!0),de.state=13):kn(de)}function Un(de,be){Pi.test(be)?de.state=9:kn(de)}function Di(de,be){Pi.test(be)||(zb(be)?de.state=10:kn(de))}function bo(de,be){NI(be)||kn(de)}function Ke(de,be){"a"===be.toLowerCase()?de.state=16:Bt(de,be)}function Ge(de,be){"i"===be.toLowerCase()?de.state=17:Bt(de,be)}function ot(de,be){"l"===be.toLowerCase()?de.state=18:Bt(de,be)}function it(de,be){"t"===be.toLowerCase()?de.state=19:Bt(de,be)}function jt(de,be){"o"===be.toLowerCase()?de.state=20:Bt(de,be)}function Sn(de,be){":"===be.toLowerCase()?de.state=21:Bt(de,be)}function oi(de,be){qb(be)?de.state=22:Cn(u,de)}function Bt(de,be){"."===be?de.state=23:"@"===be?de.state=24:qb(be)?de.state=22:Cn(u,de)}function Ct(de,be){"."===be||"@"===be?Cn(u,de):qb(be)?de.state=22:Cn(u,de)}function Fe(de,be){ys(be)?de.state=25:Cn(u,de)}function yo(de,be){"."===be?de.state=27:"-"===be?de.state=26:Gb(be)||kn(de)}function Tn(de,be){"-"===be||"."===be?kn(de):Gb(be)?de.state=25:kn(de)}function Yi(de,be){"."===be||"-"===be?kn(de):ys(be)?(de.state=25,de.acceptStateReached=!0):kn(de)}function no(de,be){FI(be)?(de.state=29,de.acceptStateReached=!0):Cn(u,de)}function nc(de,be){FI(be)||kn(de)}function nd(de,be){BI(be)?(de.state=31,de.acceptStateReached=!0):Cn(u,de)}function Aoe(de,be){BI(be)||(fa.test(be)?Cn(u,de):kn(de))}function woe(de,be){Pi.test(be)?de.state=38:(Cn(u,de),pe(be))}function Doe(de,be){Pi.test(be)?de.state=33:Cn(u,de),pe(be)}function Moe(de,be){Pi.test(be)?de.state=34:Cn(u,de)}function Toe(de,be){Pi.test(be)?de.state=35:Cn(u,de)}function xoe(de,be){")"===be?de.state=36:Cn(u,de)}function Ooe(de,be){Pi.test(be)?de.state=38:VI(be)?de.state=39:Cn(u,de)}function Ioe(de,be){de.acceptStateReached=!0,Wb(be)?de.state=40:"#"===be?de.state=41:Pi.test(be)||("("===be?de.state=32:VI(be)?de.state=39:(kn(de),Hb(be)&&u.push($b(d,0))))}function Roe(de,be){Pi.test(be)?de.state=38:"("===be?de.state=32:(kn(de),pe(be))}function Poe(de,be){Wb(be)||("#"===be?de.state=41:Pi.test(be)?de.state=38:kn(de))}function koe(de,be){Wb(be)?de.state=40:Pi.test(be)?Cn(u,de):kn(de)}function kn(de){if(Cn(u,de),de.acceptStateReached){var be=de.startIdx,An=t.slice(de.startIdx,d);if(An=function W$(t){for(var n={"(":0,"{":0,"[":0},e=0;e<t.length;e++){var i=t.charAt(e);q$.test(i)?n[i]++:jI.test(i)&&n[UI[i]]--}for(var r,o=t.length-1;o>=0;)if(r=t.charAt(o),jI.test(r)){var s=UI[r];if(!(n[s]<0))break;n[s]++,o--}else{if(!s$.test(r))break;o--}return t.slice(0,o+1)}(An),"url"===de.type){if("@"===t.charAt(de.startIdx-1))return;var id=de.matchType;if("scheme"===id){var Ey=PI.exec(An);if(Ey&&(be+=Ey.index,An=An.slice(Ey.index)),!function u$(t){if(a$.test(t))return!1;var n=t.match(l$);if(!n)return!1;var i=n[2];return!!n[1]||!(-1===i.indexOf(".")||!$l.test(i))}(An))return}else if("tld"===id){if(!function d$(t){var n=t.match(c$);if(!n)return!1;var i=n[0].split(".");return!(i.length<2||!LI(i[i.length-1]))}(An))return}else if("ipV4"===id){if(!function p$(t){var n=t.split(f$,1)[0];return h$.test(n)}(An))return}else qu(id);l.push(new v$({tagBuilder:e,matchedText:An,offset:be,urlMatchType:id,url:An,protocolRelativeMatch:"//"===An.slice(0,2),stripPrefix:i,stripTrailingSlash:o,decodePercentEncoding:r}))}else if("email"===de.type)(function D$(t){return LI(t.split(".").pop()||"")})(An)&&l.push(new M$({tagBuilder:e,matchedText:An,offset:be,email:An.replace(S$,"")}));else if("hashtag"===de.type)(function T$(t){return t.length<=140})(An)&&l.push(new O$({tagBuilder:e,matchedText:An,offset:be,serviceName:s,hashtag:An.slice(1)}));else if("mention"===de.type)(function P$(t,n){return I$[n].test(t)})(An,a)&&l.push(new N$({tagBuilder:e,matchedText:An,offset:be,serviceName:a,mention:An.slice(1)}));else if("phone"===de.type){if(function H$(t){return("+"===t.charAt(0)||F$.test(t))&&U$.test(t)}(An=An.replace(/ +$/g,""))){var Loe=An.replace(/[^0-9,;#]/g,"");l.push(new G$({tagBuilder:e,matchedText:An,offset:be,number:Loe,plusSign:"+"===An.charAt(0)}))}}else qu(de)}}}(n,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),o=0,r=i.length;o<r;o++)i[o].setOffset(e+i[o].getOffset());return i},t.prototype.link=function(n){if(!n)return"";this.sanitizeHtml&&(n=n.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var e=this.parse(n),i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r];i.push(n.substring(o,a.getOffset())),i.push(this.createMatchReturnVal(a)),o=a.getOffset()+a.getMatchedText().length}return i.push(n.substring(o)),i.join("")},t.prototype.createMatchReturnVal=function(n){var e;return this.replaceFn&&(e=this.replaceFn.call(this.context,n)),"string"==typeof e?e:!1===e?n.getMatchedText():e instanceof II?e.toAnchorString():n.buildTag().toAnchorString()},t.prototype.getTagBuilder=function(){var n=this.tagBuilder;return n||(n=this.tagBuilder=new e$({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),n},t.version="4.0.0",t}(),lp=["*"],iY=["content"];function oY(t,n){if(1&t){const e=ht();L(0,"div",2),we("click",function(){return Be(e),Ve(re()._onBackdropClicked())}),z()}2&t&&lt("mat-drawer-shown",re()._isShowingBackdrop())}function rY(t,n){1&t&&(L(0,"mat-drawer-content"),Dt(1,2),z())}const sY=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],aY=["mat-drawer","mat-drawer-content","*"];function lY(t,n){if(1&t){const e=ht();L(0,"div",2),we("click",function(){return Be(e),Ve(re()._onBackdropClicked())}),z()}2&t&&lt("mat-drawer-shown",re()._isShowingBackdrop())}function cY(t,n){1&t&&(L(0,"mat-sidenav-content"),Dt(1,2),z())}const uY=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],dY=["mat-sidenav","mat-sidenav-content","*"],HI={transformDrawer:qi("transform",[gi("open, open-instant",Pt({transform:"none",visibility:"visible"})),gi("void",Pt({"box-shadow":"none",visibility:"hidden"})),Vn("void => open-instant",Wn("0ms")),Vn("void <=> open, open-instant => void",Wn("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},fY=new Ie("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function pY(){return!1}}),Kb=new Ie("MAT_DRAWER_CONTAINER");let cp=(()=>{class t extends du{constructor(e,i,o,r,s){super(o,r,s),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(Ut),h(Kt(()=>zI)),h(Pe),h(uu),h(at))},t.\u0275cmp=et({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&Xi("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[Ot([{provide:du,useExisting:t}]),Te],ngContentSelectors:lp,decls:1,vars:0,template:function(e,i){1&e&&(xn(),Dt(0))},encapsulation:2,changeDetection:0}),t})(),GI=(()=>{class t{constructor(e,i,o,r,s,a,l,c){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=r,this._ngZone=s,this._interactivityChecker=a,this._doc=l,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new le,this._animationEnd=new le,this._animationState="void",this.openedChange=new De(!0),this._openedStream=this.openedChange.pipe(qt(u=>u),Ue(()=>{})),this.openedStart=this._animationStarted.pipe(qt(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),vf(void 0)),this._closedStream=this.openedChange.pipe(qt(u=>!u),Ue(()=>{})),this.closedStart=this._animationStarted.pipe(qt(u=>u.fromState!==u.toState&&"void"===u.toState),vf(void 0)),this._destroyed=new le,this.onPositionChanged=new De,this._modeChanged=new le,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{hl(this._elementRef.nativeElement,"keydown").pipe(qt(u=>27===u.keyCode&&!this.disableClose&&!eo(u)),bt(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Vu((u,d)=>u.fromState===d.fromState&&u.toState===d.toState)).subscribe(u=>{const{fromState:d,toState:f}=u;(0===f.indexOf("open")&&"void"===d||"void"===f&&0===d.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=ft(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=ft(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(ft(e))}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,i,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(yn(1)).subscribe(s=>r(s?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Hf),h(No),h(ti),h(at),h(ju),h(ut,8),h(Kb,8))},t.\u0275cmp=et({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&St(iY,5),2&e){let o;xe(o=Oe())&&(i._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&Nc("@transform.start",function(r){return i._animationStarted.next(r)})("@transform.done",function(r){return i._animationEnd.next(r)}),2&e&&(xt("align",null),Fc("@transform",i._animationState),lt("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:lp,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(xn(),L(0,"div",0,1),Dt(2),z())},dependencies:[du],encapsulation:2,data:{animation:[HI.transformDrawer]},changeDetection:0}),t})(),zI=(()=>{class t{constructor(e,i,o,r,s,a=!1,l){this._dir=e,this._element=i,this._ngZone=o,this._changeDetectorRef=r,this._animationMode=l,this._drawers=new os,this.backdropClick=new De,this._destroyed=new le,this._doCheckSubject=new le,this._contentMargins={left:null,right:null},this._contentMarginChanges=new le,e&&e.change.pipe(bt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(bt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=ft(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:ft(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(mi(this._allDrawers),bt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(mi(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Bu(10),bt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();e+=o,i-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();i+=o,e-=o}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(qt(i=>i.fromState!==i.toState),bt(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(bt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(bt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(yn(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(bt(ki(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._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)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return t.\u0275fac=function(e){return new(e||t)(h(go,8),h(Pe),h(at),h(Ut),h(hu),h(fY),h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,cp,5),Xe(o,GI,5)),2&e){let r;xe(r=Oe())&&(i._content=r.first),xe(r=Oe())&&(i._allDrawers=r)}},viewQuery:function(e,i){if(1&e&&St(cp,5),2&e){let o;xe(o=Oe())&&(i._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&lt("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ot([{provide:Kb,useExisting:t}])],ngContentSelectors:aY,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(xn(sY),ne(0,oY,1,2,"div",0),Dt(1),Dt(2,1),ne(3,rY,2,0,"mat-drawer-content",1)),2&e&&(q("ngIf",i.hasBackdrop),x(3),q("ngIf",!i._content))},dependencies:[Jt,cp],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),Zb=(()=>{class t extends cp{constructor(e,i,o,r,s){super(e,i,o,r,s)}}return t.\u0275fac=function(e){return new(e||t)(h(Ut),h(Kt(()=>WI)),h(Pe),h(uu),h(at))},t.\u0275cmp=et({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,i){2&e&&Xi("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[Ot([{provide:du,useExisting:t}]),Te],ngContentSelectors:lp,decls:1,vars:0,template:function(e,i){1&e&&(xn(),Dt(0))},encapsulation:2,changeDetection:0}),t})(),qI=(()=>{class t extends GI{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=ft(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Wi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Wi(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275cmp=et({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,i){2&e&&(xt("align",null),Xi("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),lt("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened)("mat-sidenav-fixed",i.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Te],ngContentSelectors:lp,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(xn(),L(0,"div",0,1),Dt(2),z())},dependencies:[du],encapsulation:2,data:{animation:[HI.transformDrawer]},changeDetection:0}),t})(),WI=(()=>{class t extends zI{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275cmp=et({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,Zb,5),Xe(o,qI,5)),2&e){let r;xe(r=Oe())&&(i._content=r.first),xe(r=Oe())&&(i._allDrawers=r)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){2&e&&lt("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ot([{provide:Kb,useExisting:t}]),Te],ngContentSelectors:dY,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(xn(uY),ne(0,lY,1,2,"div",0),Dt(1),Dt(2,1),ne(3,cY,2,0,"mat-sidenav-content",1)),2&e&&(q("ngIf",i.hasBackdrop),x(3),q("ngIf",!i._content))},dependencies:[Jt,Zb],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),gY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[zi,Mt,Ks,Ks,Mt]}),t})();function $I(t,n){return n?e=>Su(n.pipe(yn(1),function mY(){return Le((t,n)=>{t.subscribe(ze(n,J))})}()),e.pipe($I(t))):si((e,i)=>t(e,i).pipe(yn(1),vf(e)))}function YI(t,n=Xh){const e=fM(t,n);return $I(()=>e)}const vY=["mat-menu-item",""];function _Y(t,n){1&t&&(uc(),L(0,"svg",2),Je(1,"polygon",3),z())}const QI=["*"];function bY(t,n){if(1&t){const e=ht();L(0,"div",0),we("keydown",function(o){return Be(e),Ve(re()._handleKeydown(o))})("click",function(){return Be(e),Ve(re().closed.emit("click"))})("@transformMenu.start",function(o){return Be(e),Ve(re()._onAnimationStart(o))})("@transformMenu.done",function(o){return Be(e),Ve(re()._onAnimationDone(o))}),L(1,"div",1),Dt(2),z()()}if(2&t){const e=re();q("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),xt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const up={transformMenu:qi("transformMenu",[gi("void",Pt({opacity:0,transform:"scale(0.8)"})),Vn("void => enter",Wn("120ms cubic-bezier(0, 0, 0.2, 1)",Pt({opacity:1,transform:"scale(1)"}))),Vn("* => void",Wn("100ms 25ms linear",Pt({opacity:0})))]),fadeInItems:qi("fadeInItems",[gi("showing",Pt({opacity:1})),Vn("void => *",[Pt({opacity:0}),Wn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},yY=new Ie("MatMenuContent"),Xb=new Ie("MAT_MENU_PANEL"),CY=ms(sa(class{}));let Cs=(()=>{class t extends CY{constructor(e,i,o,r,s){var a;super(),this._elementRef=e,this._document=i,this._focusMonitor=o,this._parentMenu=r,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new le,this._focused=new le,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==r?void 0:r.addItem)||void 0===a||a.call(r,this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const i=this._elementRef.nativeElement.cloneNode(!0),o=i.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<o.length;r++)o[r].remove();return(null===(e=i.textContent)||void 0===e?void 0:e.trim())||""}_setHighlighted(e){var i;this._highlighted=e,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(ut),h(No),h(Xb,8),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,i){1&e&&we("click",function(r){return i._checkDisabled(r)})("mouseenter",function(){return i._handleMouseEnter()}),2&e&&(xt("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),lt("mat-menu-item",!0)("mat-menu-item-highlighted",i._highlighted)("mat-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Te],attrs:vY,ngContentSelectors:QI,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(e,i){1&e&&(xn(),Dt(0),Je(1,"div",0),ne(2,_Y,2,0,"svg",1)),2&e&&(x(1),q("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),x(1),q("ngIf",i._triggersSubmenu))},dependencies:[Jt,la],encapsulation:2,changeDetection:0}),t})();const KI=new Ie("mat-menu-default-options",{providedIn:"root",factory:function EY(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let SY=0,$u=(()=>{class t{constructor(e,i,o,r){this._elementRef=e,this._ngZone=i,this._defaultOptions=o,this._changeDetectorRef=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new os,this._tabSubscription=b.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new le,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new De,this.close=this.closed,this.panelId="mat-menu-panel-"+SY++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=ft(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=ft(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new _b(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(mi(this._directDescendantItems),Ri(e=>ki(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var i;const o=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=o.activeItem)||void 0===i?void 0:i._hasFocus())){const r=e.toArray(),s=Math.max(0,Math.min(r.length-1,o.activeItemIndex||0));r[s]&&!r[s].disabled?o.setActiveItem(s):o.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(mi(this._directDescendantItems),Ri(i=>ki(...i.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,o=this._keyManager;switch(i){case 27:eo(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(yn(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,i=this.yPosition){var o;const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(mi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(at),h(KI),h(Ut))},t.\u0275dir=ge({type:t,contentQueries:function(e,i,o){if(1&e&&(Xe(o,yY,5),Xe(o,Cs,5),Xe(o,Cs,4)),2&e){let r;xe(r=Oe())&&(i.lazyContent=r.first),xe(r=Oe())&&(i._allItems=r),xe(r=Oe())&&(i.items=r)}},viewQuery:function(e,i){if(1&e&&St(mt,5),2&e){let o;xe(o=Oe())&&(i.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),Yu=(()=>{class t extends $u{constructor(e,i,o,r){super(e,i,o,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(at),h(KI),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&xt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ot([{provide:Xb,useExisting:t}]),Te],ngContentSelectors:QI,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(xn(),ne(0,bY,3,6,"ng-template"))},dependencies:[Gi],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[up.transformMenu,up.fadeInItems]},changeDetection:0}),t})();const ZI=new Ie("mat-menu-scroll-strategy"),wY={provide:ZI,deps:[to],useFactory:function AY(t){return()=>t.scrollStrategies.reposition()}},XI=$s({passive:!0});let DY=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u){this._overlay=e,this._element=i,this._viewContainerRef=o,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=b.EMPTY,this._hoverSubscription=b.EMPTY,this._menuCloseSubscription=b.EMPTY,this._handleTouchStart=d=>{yb(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new De,this.onMenuOpen=this.menuOpened,this.menuClosed=new De,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=s instanceof $u?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,XI),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,XI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),o=i.getConfig(),r=o.positionStrategy;this._setPosition(e,r),o.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof $u&&(e._startAnimation(),e._directDescendantItems.changes.pipe(bt(e.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){var i;if(!this._overlayRef||!this.menuOpen)return;const o=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,o instanceof $u?(o._resetAnimation(),o.lazyContent?o._animationDone.pipe(qt(r=>"void"===r.toState),yn(1),bt(o.lazyContent._attached)).subscribe({next:()=>o.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(i=null==o?void 0:o.lazyContent)||void 0===i||i.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,o=e.parentMenu;for(;o;)i++,o=o.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new gu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(o=>{const r="start"===o.connectionPair.overlayX?"after":"before",s="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(r,s)):e.setPositionClasses(r,s)})}_setPosition(e,i){let[o,r]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[u,d]=[o,r],f=0;if(this.triggersSubmenu()){if(d=o="before"===e.xPosition?"start":"end",r=u="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const A=this._parentMaterialMenu.items.first;this._parentInnerPadding=A?A._getHostElement().offsetTop:0}f="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l="top"===s?"bottom":"top",c="top"===a?"bottom":"top");i.withPositions([{originX:o,originY:l,overlayX:u,overlayY:s,offsetY:f},{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:f},{originX:o,originY:c,overlayX:u,overlayY:a,offsetY:-f},{originX:r,originY:c,overlayX:d,overlayY:a,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return ki(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:nt(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(qt(s=>s!==this._menuItemInstance),qt(()=>this._menuOpen)):nt(),i)}_handleMousedown(e){bb(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(qt(e=>e===this._menuItemInstance&&!e.disabled),YI(0,Zh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof $u&&this.menu._isAnimating?this.menu._animationDone.pipe(yn(1),YI(0,Zh),bt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ml(e.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(h(to),h(Pe),h(ln),h(ZI),h(Xb,8),h(Cs,10),h(go,8),h(No),h(at))},t.\u0275dir=ge({type:t,hostVars:3,hostBindings:function(e,i){1&e&&we("click",function(r){return i._handleClick(r)})("mousedown",function(r){return i._handleMousedown(r)})("keydown",function(r){return i._handleKeydown(r)}),2&e&&xt("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),Es=(()=>{class t extends DY{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Te]}),t})(),MY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[wY],imports:[zi,Mt,Hu,wl,Ks,Mt]}),t})();const TY=["connectionContainer"],xY=["inputContainer"],OY=["label"];function IY(t,n){1&t&&(yi(0),L(1,"div",14),Je(2,"div",15)(3,"div",16)(4,"div",17),z(),L(5,"div",18),Je(6,"div",15)(7,"div",16)(8,"div",17),z(),Ci())}function RY(t,n){if(1&t){const e=ht();L(0,"div",19),we("cdkObserveContent",function(){return Be(e),Ve(re().updateOutlineGap())}),Dt(1,1),z()}2&t&&q("cdkObserveContentDisabled","outline"!=re().appearance)}function PY(t,n){if(1&t&&(yi(0),Dt(1,2),L(2,"span"),ce(3),z(),Ci()),2&t){const e=re(2);x(3),Ne(e._control.placeholder)}}function kY(t,n){1&t&&Dt(0,3,["*ngSwitchCase","true"])}function NY(t,n){1&t&&(L(0,"span",23),ce(1," *"),z())}function LY(t,n){if(1&t){const e=ht();L(0,"label",20,21),we("cdkObserveContent",function(){return Be(e),Ve(re().updateOutlineGap())}),ne(2,PY,4,1,"ng-container",12),ne(3,kY,1,0,"ng-content",12),ne(4,NY,2,0,"span",22),z()}if(2&t){const e=re();lt("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),q("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),xt("for",e._control.id)("aria-owns",e._control.id),x(2),q("ngSwitchCase",!1),x(1),q("ngSwitchCase",!0),x(1),q("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function FY(t,n){1&t&&(L(0,"div",24),Dt(1,4),z())}function BY(t,n){if(1&t&&(L(0,"div",25),Je(1,"span",26),z()),2&t){const e=re();x(1),lt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function VY(t,n){1&t&&(L(0,"div"),Dt(1,5),z()),2&t&&q("@transitionMessages",re()._subscriptAnimationState)}function jY(t,n){if(1&t&&(L(0,"div",30),ce(1),z()),2&t){const e=re(2);q("id",e._hintLabelId),x(1),Ne(e.hintLabel)}}function UY(t,n){if(1&t&&(L(0,"div",27),ne(1,jY,2,2,"div",28),Dt(2,6),Je(3,"div",29),Dt(4,7),z()),2&t){const e=re();q("@transitionMessages",e._subscriptAnimationState),x(1),q("ngIf",e.hintLabel)}}const HY=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],GY=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],JI=new Ie("MatError"),WY={transitionMessages:qi("transitionMessages",[gi("enter",Pt({opacity:1,transform:"translateY(0%)"})),Vn("void => enter",[Pt({opacity:0,transform:"translateY(-5px)"}),Wn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let dp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t}),t})();const $Y=new Ie("MatHint");let Yl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["mat-label"]]}),t})(),YY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["mat-placeholder"]]}),t})();const QY=new Ie("MatPrefix"),e1=new Ie("MatSuffix");let t1=0;const XY=aa(class{constructor(t){this._elementRef=t}},"primary"),JY=new Ie("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Jb=new Ie("MatFormField");let hp=(()=>{class t extends XY{constructor(e,i,o,r,s,a,l){super(e),this._changeDetectorRef=i,this._dir=o,this._defaults=r,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new le,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+t1++,this._labelId="mat-form-field-label-"+t1++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=(null==r?void 0:r.appearance)||"legacy",r&&(this._hideRequiredMarker=Boolean(r.hideRequiredMarker),r.color&&(this.color=this.defaultColor=r.color))}get appearance(){return this._appearance}set appearance(e){var i;const o=this._appearance;this._appearance=e||(null===(i=this._defaults)||void 0===i?void 0:i.appearance)||"legacy","outline"===this._appearance&&o!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ft(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(mi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(bt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(bt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),ki(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(mi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(mi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(bt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,hl(this._label.nativeElement,"transitionend").pipe(yn(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,o=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",r=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=i.querySelectorAll(`${o}, ${r}`);for(let d=0;d<u.length;d++)u[d].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let s=0,a=0;const l=i.querySelectorAll(o),c=i.querySelectorAll(r);if(this._label&&this._label.nativeElement.children.length){const u=i.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const d=this._getStartEnd(u),f=e.children,A=this._getStartEnd(f[0].getBoundingClientRect());let H=0;for(let te=0;te<f.length;te++)H+=f[te].offsetWidth;s=Math.abs(A-d)-5,a=H>0?.75*H+10:0}for(let u=0;u<l.length;u++)l[u].style.width=`${s}px`;for(let u=0;u<c.length;u++)c[u].style.width=`${a}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ut),h(go,8),h(JY,8),h(ti),h(at),h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,dp,5),Xe(o,dp,7),Xe(o,Yl,5),Xe(o,Yl,7),Xe(o,YY,5),Xe(o,JI,5),Xe(o,$Y,5),Xe(o,QY,5),Xe(o,e1,5)),2&e){let r;xe(r=Oe())&&(i._controlNonStatic=r.first),xe(r=Oe())&&(i._controlStatic=r.first),xe(r=Oe())&&(i._labelChildNonStatic=r.first),xe(r=Oe())&&(i._labelChildStatic=r.first),xe(r=Oe())&&(i._placeholderChild=r.first),xe(r=Oe())&&(i._errorChildren=r),xe(r=Oe())&&(i._hintChildren=r),xe(r=Oe())&&(i._prefixChildren=r),xe(r=Oe())&&(i._suffixChildren=r)}},viewQuery:function(e,i){if(1&e&&(St(TY,7),St(xY,5),St(OY,5)),2&e){let o;xe(o=Oe())&&(i._connectionContainerRef=o.first),xe(o=Oe())&&(i._inputContainerRef=o.first),xe(o=Oe())&&(i._label=o.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,i){2&e&&lt("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[Ot([{provide:Jb,useExisting:t}]),Te],ngContentSelectors:GY,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",3,"cdkObserveContentDisabled","cdkObserveContent",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",3,"cdkObserveContentDisabled","cdkObserveContent"],[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"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,i){1&e&&(xn(HY),L(0,"div",0)(1,"div",1,2),we("click",function(r){return i._control.onContainerClick&&i._control.onContainerClick(r)}),ne(3,IY,9,0,"ng-container",3),ne(4,RY,2,1,"div",4),L(5,"div",5,6),Dt(7),L(8,"span",7),ne(9,LY,5,16,"label",8),z()(),ne(10,FY,2,0,"div",9),z(),ne(11,BY,2,4,"div",10),L(12,"div",11),ne(13,VY,2,1,"div",12),ne(14,UY,5,2,"div",13),z()()),2&e&&(x(3),q("ngIf","outline"==i.appearance),x(1),q("ngIf",i._prefixChildren.length),x(5),q("ngIf",i._hasFloatingLabel()),x(1),q("ngIf",i._suffixChildren.length),x(1),q("ngIf","outline"!=i.appearance),x(1),q("ngSwitch",i._getDisplayedMessages()),x(1),q("ngSwitchCase","error"),x(1),q("ngSwitchCase","hint"))},dependencies:[Jt,ll,Sh,uO],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}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.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:not([type=password])::-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;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-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{-webkit-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{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{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:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);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}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.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:rgba(0,0,0,0)}.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;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".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:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.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}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.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}"],encapsulation:2,data:{animation:[WY.transitionMessages]},changeDetection:0}),t})(),fp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[zi,Mt,gb,Mt]}),t})();const o1=$s({passive:!0});let eQ=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return jo;const i=Ur(e),o=this._monitoredElements.get(i);if(o)return o.subject;const r=new le,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,o1),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",a,o1)}}),r}stopMonitoring(e){const i=Ur(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return t.\u0275fac=function(e){return new(e||t)(ie(ti),ie(at))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),r1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();const tQ=new Ie("MAT_INPUT_VALUE_ACCESSOR"),nQ=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let iQ=0;const oQ=OO(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new le}});let ey=(()=>{class t extends oQ{constructor(e,i,o,r,s,a,l,c,u,d){super(a,r,s,o),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+iQ++,this.focused=!1,this.stateChanges=new le,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(H=>mM().has(H)),this._iOSKeyupListener=H=>{const te=H.target;!te.value&&0===te.selectionStart&&0===te.selectionEnd&&(te.setSelectionRange(1,1),te.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,A=f.nodeName.toLowerCase();this._inputValueAccessor=l||f,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===A,this._isTextarea="textarea"===A,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ft(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(__.required))&&void 0!==r&&r}set required(e){this._required=ft(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&mM().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ft(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const i=this._formField,o=!i||"legacy"!==i.appearance||null!==(e=i._hasLabel)&&void 0!==e&&e.call(i)?this.placeholder:null;if(o!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=o,o?r.setAttribute("placeholder",o):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){nQ.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(ti),h(vr,10),h(Tl,8),h(Eu,8),h(Db),h(tQ,10),h(eQ),h(at),h(Jb,8))},t.\u0275dir=ge({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&we("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(is("disabled",i.disabled)("required",i.required),xt("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),lt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Ot([{provide:dp,useExisting:t}]),Te,zn]}),t})(),rQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[Db],imports:[r1,fp,Mt,r1,fp]}),t})(),f1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Pb]}),t})(),MK=(()=>{class t{constructor(e,i){ul(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:er,useValue:Object.assign(Object.assign({},kb),e)},{provide:Xf,useValue:i,multi:!0},{provide:zl,useValue:!0}]:[{provide:er,useValue:Object.assign(Object.assign({},kb),e)},{provide:Xf,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(ie(zl),ie(To))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[MI,uI,f1,MI,uI,f1]}),t})();const TK=["*",[["mat-toolbar-row"]]],xK=["*","mat-toolbar-row"],OK=aa(class{constructor(t){this._elementRef=t}});let IK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),pp=(()=>{class t extends OK{constructor(e,i,o){super(e),this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(ti),h(ut))},t.\u0275cmp=et({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,i,o){if(1&e&&Xe(o,IK,5),2&e){let r;xe(r=Oe())&&(i._toolbarRows=r)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&lt("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Te],ngContentSelectors:xK,decls:2,vars:0,template:function(e,i){1&e&&(xn(TK),Dt(0),Dt(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%}"],encapsulation:2,changeDetection:0}),t})(),RK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Mt,Mt]}),t})(),PK=0;const kK=sa(class{}),p1="mat-badge-content";let NK=(()=>{class t extends kK{constructor(e,i,o,r,s){super(),this._ngZone=e,this._elementRef=i,this._ariaDescriber=o,this._renderer=r,this._animationMode=s,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=PK++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=ft(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=ft(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(p1),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){const i=`${null!=e?e:""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${p1}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return t.\u0275fac=function(e){return new(e||t)(h(at),h(Pe),h(mO),h(Do),h(pi,8))},t.\u0275dir=ge({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,i){2&e&&lt("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small","small"===i.size)("mat-badge-medium","medium"===i.size)("mat-badge-large","large"===i.size)("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[Te]}),t})(),LK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Sb,Mt,Mt]}),t})(),ty=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=ft(e)}get inset(){return this._inset}set inset(e){this._inset=ft(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=et({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(xt("aria-orientation",i.vertical?"vertical":"horizontal"),lt("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),t})(),g1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Mt,Mt]}),t})();class ny{constructor(n=!1,e,i=!0,o){this._multiple=n,this._emitChanges=i,this.compareWith=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new le,e&&e.length&&(n?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);const e=this.selected,i=new Set(n);n.forEach(r=>this._markSelected(r)),e.filter(r=>!i.has(r)).forEach(r=>this._unmarkSelected(r));const o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,n))return!0;return!1}return this._selection.has(n)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let m1=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const v1=["*"],_1='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',FK=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],BK=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],VK=["text"];function jK(t,n){if(1&t&&Je(0,"mat-pseudo-checkbox",5),2&t){const e=re();q("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const UK=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],HK=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],GK=sa(ms(class{})),zK=ms(class{}),b1=new Ie("MatList"),qK=new Ie("MatNavList");let gp=(()=>{class t extends GK{constructor(e){super(),this._elementRef=e,this._stateChanges=new le,"action-list"===this._getListType()&&(e.nativeElement.classList.add("mat-action-list"),e.nativeElement.setAttribute("role","group"))}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(h(Pe))},t.\u0275cmp=et({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[Ot([{provide:b1,useExisting:t}]),Te,zn],ngContentSelectors:v1,decls:1,vars:0,template:function(e,i){1&e&&(xn(),Dt(0))},styles:[_1],encapsulation:2,changeDetection:0}),t})(),mp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),vp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),WK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),_p=(()=>{class t extends zK{constructor(e,i,o,r){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new le,this._disabled=!1,this._isInteractiveList=!!(o||r&&"action-list"===r._getListType()),this._list=o||r;const s=this._getHostElement();"button"===s.nodeName.toLowerCase()&&!s.hasAttribute("type")&&s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(bt(this._destroyed)).subscribe(()=>{i.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=ft(e)}ngAfterContentInit(){IO(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ut),h(qK,8),h(b1,8))},t.\u0275cmp=et({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,mp,5),Xe(o,vp,5),Xe(o,Ul,5)),2&e){let r;xe(r=Oe())&&(i._avatar=r.first),xe(r=Oe())&&(i._icon=r.first),xe(r=Oe())&&(i._lines=r)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,i){2&e&&lt("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[Te],ngContentSelectors:BK,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,i){1&e&&(xn(FK),L(0,"span",0),Je(1,"span",1),Dt(2),L(3,"span",2),Dt(4,1),z(),Dt(5,2),z()),2&e&&(x(1),q("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},dependencies:[la],encapsulation:2,changeDetection:0}),t})();const $K=ms(class{}),YK=ms(class{}),QK={provide:mo,useExisting:Kt(()=>iy),multi:!0};class KK{constructor(n,e){this.source=n,this.options=e}}let y1=(()=>{class t extends YK{constructor(e,i,o){super(),this._element=e,this._changeDetector=i,this.selectionList=o,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new De,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(e){this._color=e}get value(){return this._value}set value(e){this.selected&&!this.selectionList.compareWith(e,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=e}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(e){const i=ft(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=ft(e);i!==this._selected&&(this._setSelected(i),(i||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const e=this.selectionList;e._value&&e._value.some(o=>e.compareWith(this._value,o))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){IO(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ut),h(Kt(()=>iy)))},t.\u0275cmp=et({type:t,selectors:[["mat-list-option"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,mp,5),Xe(o,vp,5),Xe(o,Ul,5)),2&e){let r;xe(r=Oe())&&(i._avatar=r.first),xe(r=Oe())&&(i._icon=r.first),xe(r=Oe())&&(i._lines=r)}},viewQuery:function(e,i){if(1&e&&St(VK,5),2&e){let o;xe(o=Oe())&&(i._text=o.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&we("focus",function(){return i._handleFocus()})("blur",function(){return i._handleBlur()})("click",function(){return i._handleClick()}),2&e&&(xt("aria-selected",i.selected)("aria-disabled",i.disabled)("tabindex",-1),lt("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)("mat-primary","primary"===i.color)("mat-accent","primary"!==i.color&&"warn"!==i.color)("mat-warn","warn"===i.color)("mat-list-single-selected-option",i.selected&&!i.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[Te],ngContentSelectors:HK,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,i){1&e&&(xn(UK),L(0,"div",0),Je(1,"div",1),ne(2,jK,1,2,"mat-pseudo-checkbox",2),L(3,"div",3,4),Dt(5),z(),Dt(6,1),z()),2&e&&(lt("mat-list-item-content-reverse","after"==i.checkboxPosition),x(1),q("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),x(1),q("ngIf",i.selectionList.multiple))},dependencies:[la,NO,Jt],encapsulation:2,changeDetection:0}),t})(),iy=(()=>{class t extends $K{constructor(e,i,o){super(),this._element=e,this._changeDetector=i,this._focusMonitor=o,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new De,this.color="accent",this.compareWith=(r,s)=>r===s,this._disabled=!1,this.selectedOptions=new ny(this._multiple),this._tabIndex=-1,this._onChange=r=>{},this._destroyed=new le,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=ft(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=ft(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new ny(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new _b(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(bt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(mi(null),bt(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(bt(this._destroyed)).subscribe(e=>{if(e.added)for(let i of e.added)i.selected=!0;if(e.removed)for(let i of e.removed)i.selected=!1}),this._focusMonitor.monitor(this._element).pipe(bt(this._destroyed)).subscribe(e=>{var i;if("keyboard"===e||"program"===e){let o=0;for(let r=0;r<this.options.length;r++)if(null!==(i=this.options.get(r))&&void 0!==i&&i.selected){o=r;break}this._keyManager.setActiveItem(o)}})}ngOnChanges(e){const i=e.disableRipple,o=e.color;(i&&!i.firstChange||o&&!o.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(e){this._element.nativeElement.focus(e)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_setFocusedOption(e){this._keyManager.updateActiveItem(e)}_removeOptionFromList(e){const i=this._getOptionIndex(e);return i>-1&&this._keyManager.activeItemIndex===i&&(i>0?this._keyManager.updateActiveItem(i-1):0===i&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(i+1,this.options.length-1))),this._keyManager.activeItem}_keydown(e){const i=e.keyCode,o=this._keyManager,r=o.activeItemIndex,s=eo(e);switch(i){case 32:case 13:!s&&!o.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&eo(e,"ctrlKey")&&!o.isTyping()){const a=this.options.some(l=>!l.disabled&&!l.selected);this._setAllOptionsSelected(a,!0,!0),e.preventDefault()}else o.onKeydown(e)}this.multiple&&(38===i||40===i)&&e.shiftKey&&o.activeItemIndex!==r&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new KK(this,e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_setOptionsFromValues(e){this.options.forEach(i=>i._setSelected(!1)),e.forEach(i=>{const o=this.options.find(r=>!r.selected&&this.compareWith(r.value,i));o&&o._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_toggleFocusedOption(){let e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){let i=this.options.toArray()[e];i&&!i.disabled&&(this._multiple||!i.selected)&&(i.toggle(),this._emitChangeEvent([i]))}}_setAllOptionsSelected(e,i,o){const r=[];return this.options.forEach(s=>{(!i||!s.disabled)&&s._setSelected(e)&&r.push(s)}),r.length&&(this._reportValueChange(),o&&this._emitChangeEvent(r)),r}_isValidIndex(e){return e>=0&&e<this.options.length}_getOptionIndex(e){return this.options.toArray().indexOf(e)}_markOptionsForCheck(){this.options&&this.options.forEach(e=>e._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ut),h(No))},t.\u0275cmp=et({type:t,selectors:[["mat-selection-list"]],contentQueries:function(e,i,o){if(1&e&&Xe(o,y1,5),2&e){let r;xe(r=Oe())&&(i.options=r)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&we("keydown",function(r){return i._keydown(r)}),2&e&&xt("aria-multiselectable",i.multiple)("aria-disabled",i.disabled.toString())("tabindex",i._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Ot([QK]),Te,zn],ngContentSelectors:v1,decls:1,vars:0,template:function(e,i){1&e&&(xn(),Dt(0))},styles:[_1],encapsulation:2,changeDetection:0}),t})(),ZK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Wf,Hu,Mt,Tb,zi,Wf,Mt,Tb,g1]}),t})();const XK=["trigger"],JK=["panel"];function eZ(t,n){if(1&t&&(L(0,"span",8),ce(1),z()),2&t){const e=re();x(1),Ne(e.placeholder)}}function tZ(t,n){if(1&t&&(L(0,"span",12),ce(1),z()),2&t){const e=re(2);x(1),Ne(e.triggerValue)}}function nZ(t,n){1&t&&Dt(0,0,["*ngSwitchCase","true"])}function iZ(t,n){1&t&&(L(0,"span",9),ne(1,tZ,2,1,"span",10),ne(2,nZ,1,0,"ng-content",11),z()),2&t&&(q("ngSwitch",!!re().customTrigger),x(2),q("ngSwitchCase",!0))}function oZ(t,n){if(1&t){const e=ht();L(0,"div",13)(1,"div",14,15),we("@transformPanel.done",function(o){return Be(e),Ve(re()._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){return Be(e),Ve(re()._handleKeydown(o))}),Dt(3,1),z()()}if(2&t){const e=re();q("@transformPanelWrap",void 0),x(1),AS("mat-select-panel ",e._getPanelTheme(),""),Xi("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),q("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),xt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const rZ=[[["mat-select-trigger"]],"*"],sZ=["mat-select-trigger","*"],C1={transformPanelWrap:qi("transformPanelWrap",[Vn("* => void",Dv("@transformPanel",[wv()],{optional:!0}))]),transformPanel:qi("transformPanel",[gi("void",Pt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),gi("showing",Pt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),gi("showing-multiple",Pt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Vn("void => *",Wn("120ms cubic-bezier(0, 0, 0.2, 1)")),Vn("* => void",Wn("100ms 25ms linear",Pt({opacity:0})))])};let E1=0;const A1=new Ie("mat-select-scroll-strategy"),uZ=new Ie("MAT_SELECT_CONFIG"),dZ={provide:A1,deps:[to],useFactory:function cZ(t){return()=>t.scrollStrategies.reposition()}};class hZ{constructor(n,e){this.source=n,this.value=e}}const fZ=ms(qf(sa(OO(class{constructor(t,n,e,i,o){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new le}})))),pZ=new Ie("MatSelectTrigger");let gZ=(()=>{class t extends fZ{constructor(e,i,o,r,s,a,l,c,u,d,f,A,H,te){var pe,he,_e;super(s,r,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=a,this._parentFormField=u,this._liveAnnouncer=H,this._defaultOptions=te,this._panelOpen=!1,this._compareWith=(fe,ve)=>fe===ve,this._uid="mat-select-"+E1++,this._triggerAriaLabelledBy=null,this._destroy=new le,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+E1++,this._panelDoneAnimatingStream=new le,this._overlayPanelClass=(null===(pe=this._defaultOptions)||void 0===pe?void 0:pe.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(_e=null===(he=this._defaultOptions)||void 0===he?void 0:he.disableOptionCentering)&&void 0!==_e&&_e,this.ariaLabel="",this.optionSelectionChanges=Au(()=>{const fe=this.options;return fe?fe.changes.pipe(mi(fe),Ri(()=>ki(...fe.map(ve=>ve.onSelectionChange)))):this._ngZone.onStable.pipe(yn(1),Ri(()=>this.optionSelectionChanges))}),this.openedChange=new De,this._openedStream=this.openedChange.pipe(qt(fe=>fe),Ue(()=>{})),this._closedStream=this.openedChange.pipe(qt(fe=>!fe),Ue(()=>{})),this.selectionChange=new De,this.valueChange=new De,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==te?void 0:te.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=te.typeaheadDebounceInterval),this._scrollStrategyFactory=A,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(__.required))&&void 0!==r&&r}set required(e){this._required=ft(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=ft(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=ft(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Wi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ny(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Vu(),bt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(bt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(mi(null),bt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,o=40===i||38===i||37===i||39===i,r=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&r&&!eo(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,o=e.keyCode,r=40===o||38===o,s=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(s||13!==o&&32!==o||!i.activeItem||eo(e))if(!s&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(yn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,e)}catch(r){return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new u9(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(bt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(bt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=ki(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(bt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ki(...this.options.map(i=>i._stateChanges)).pipe(bt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,e):e.indexOf(i)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let o=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(o+=" "+this.ariaLabelledby),o}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(h(hu),h(Ut),h(at),h(Db),h(Pe),h(go,8),h(Tl,8),h(Eu,8),h(Jb,8),h(vr,10),Wo("tabindex"),h(A1),h(Cb),h(uZ,8))},t.\u0275dir=ge({type:t,viewQuery:function(e,i){if(1&e&&(St(XK,5),St(JK,5),St(PM,5)),2&e){let o;xe(o=Oe())&&(i.trigger=o.first),xe(o=Oe())&&(i.panel=o.first),xe(o=Oe())&&(i._overlayDir=o.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Te,zn]}),t})(),oy=(()=>{class t extends gZ{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,o){const r=this._getItemHeight();return Math.min(Math.max(0,r*e-i+r/2),o)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(bt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(yn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=BO(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function K9(t,n,e,i){return t<e?t:t+n>e+i?Math.max(0,t-i+n):e}((e+i)*o,o,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new hZ(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),o=this._isRtl(),r=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}o||(s*=-1);const a=0-(e.left+s-(o?r:0)),l=e.right+s-i.width+(o?0:r);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,o){const r=this._getItemHeight(),s=(r-this._triggerRect.height)/2,a=Math.floor(256/r);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*r:this._scrollTop===o?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):i-r/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),o=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,s=o.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>r?this._adjustPanelDown(a,r,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const o=Math.round(e-i);this._scrollTop-=o,this._offsetY-=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,o){const r=Math.round(e-i);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=o)return this._scrollTop=o,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),o=Math.min(i*e,256),s=i*e-o;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=BO(a,this.options,this.optionGroups);const l=o/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275cmp=et({type:t,selectors:[["mat-select"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,pZ,5),Xe(o,xb,5),Xe(o,FO,5)),2&e){let r;xe(r=Oe())&&(i.customTrigger=r.first),xe(r=Oe())&&(i.options=r),xe(r=Oe())&&(i.optionGroups=r)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&we("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(xt("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),lt("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Ot([{provide:dp,useExisting:t},{provide:LO,useExisting:t}]),Te],ngContentSelectors:sZ,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(xn(rZ),L(0,"div",0,1),we("click",function(){return i.toggle()}),L(3,"div",2),ne(4,eZ,2,1,"span",3),ne(5,iZ,3,2,"span",4),z(),L(6,"div",5),Je(7,"div",6),z()(),ne(8,oZ,4,14,"ng-template",7),we("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const o=ji(1);xt("aria-owns",i.panelOpen?i.id+"-panel":null),x(3),q("ngSwitch",i.empty),xt("id",i._valueId),x(1),q("ngSwitchCase",!0),x(1),q("ngSwitchCase",!1),x(3),q("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[Gi,ll,Sh,zw,PM,RM],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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 rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[C1.transformPanelWrap,C1.transformPanel]},changeDetection:0}),t})(),mZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[dZ],imports:[zi,wl,Ob,Mt,Ks,fp,Ob,Mt]}),t})(),vZ=0;const ry=new Ie("CdkAccordion");let _Z=(()=>{class t{constructor(){this._stateChanges=new le,this._openCloseAllActions=new le,this.id="cdk-accordion-"+vZ++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=ft(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ge({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Ot([{provide:ry,useExisting:t}]),zn]}),t})(),bZ=0,yZ=(()=>{class t{constructor(e,i,o){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=b.EMPTY,this.closed=new De,this.opened=new De,this.destroyed=new De,this.expandedChange=new De,this.id="cdk-accordion-child-"+bZ++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((r,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==r&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=ft(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=ft(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return t.\u0275fac=function(e){return new(e||t)(h(ry,12),h(Ut),h(m1))},t.\u0275dir=ge({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ot([{provide:ry,useValue:void 0}])]}),t})(),CZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})();const EZ=["body"];function SZ(t,n){}const AZ=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],wZ=["mat-expansion-panel-header","*","mat-action-row"];function DZ(t,n){1&t&&Je(0,"span",2),2&t&&q("@indicatorRotate",re()._getExpandedState())}const MZ=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],TZ=["mat-panel-title","mat-panel-description","*"],sy=new Ie("MAT_ACCORDION"),w1="225ms cubic-bezier(0.4,0.0,0.2,1)",D1={indicatorRotate:qi("indicatorRotate",[gi("collapsed, void",Pt({transform:"rotate(0deg)"})),gi("expanded",Pt({transform:"rotate(180deg)"})),Vn("expanded <=> collapsed, void => collapsed",Wn(w1))]),bodyExpansion:qi("bodyExpansion",[gi("collapsed, void",Pt({height:"0px",visibility:"hidden"})),gi("expanded",Pt({height:"*",visibility:"visible"})),Vn("expanded <=> collapsed, void => collapsed",Wn(w1))])},M1=new Ie("MAT_EXPANSION_PANEL");let xZ=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(M1,8))},t.\u0275dir=ge({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),OZ=0;const T1=new Ie("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let x1=(()=>{class t extends yZ{constructor(e,i,o,r,s,a,l){super(e,i,o),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new De,this.afterCollapse=new De,this._inputChanges=new le,this._headerId="mat-expansion-panel-header-"+OZ++,this._bodyAnimationDone=new le,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(Vu((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=ft(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(mi(null),qt(()=>this.expanded&&!this._portal),yn(1)).subscribe(()=>{this._portal=new ml(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return t.\u0275fac=function(e){return new(e||t)(h(sy,12),h(Ut),h(m1),h(ln),h(ut),h(pi,8),h(T1,8))},t.\u0275cmp=et({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,o){if(1&e&&Xe(o,xZ,5),2&e){let r;xe(r=Oe())&&(i._lazyContent=r.first)}},viewQuery:function(e,i){if(1&e&&St(EZ,5),2&e){let o;xe(o=Oe())&&(i._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&lt("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ot([{provide:sy,useValue:void 0},{provide:M1,useExisting:t}]),Te,zn],ngContentSelectors:wZ,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(xn(AZ),Dt(0),L(1,"div",0,1),we("@bodyExpansion.done",function(r){return i._bodyAnimationDone.next(r)}),L(3,"div",2),Dt(4,1),ne(5,SZ,0,0,"ng-template",3),z(),Dt(6,2),z()),2&e&&(x(1),q("@bodyExpansion",i._getExpandedState())("id",i.id),xt("aria-labelledby",i._headerId),x(4),q("cdkPortalOutlet",i._portal))},dependencies:[vl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[D1.bodyExpansion]},changeDetection:0}),t})();class IZ{}const RZ=qf(IZ);let O1=(()=>{class t extends RZ{constructor(e,i,o,r,s,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=o,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=b.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(qt(u=>!(!u.hideToggle&&!u.togglePosition))):jo;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=ki(e.opened,e.closed,c,e._inputChanges.pipe(qt(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(qt(()=>e._containsFocus())).subscribe(()=>o.focusVia(i,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:eo(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(h(x1,1),h(Pe),h(No),h(Ut),h(T1,8),h(pi,8),Wo("tabindex"))},t.\u0275cmp=et({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&we("click",function(){return i._toggle()})("keydown",function(r){return i._keydown(r)}),2&e&&(xt("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),Xi("height",i._getHeaderHeight()),lt("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[Te],ngContentSelectors:TZ,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(xn(MZ),L(0,"span",0),Dt(1),Dt(2,1),Dt(3,2),z(),ne(4,DZ,1,1,"span",1)),2&e&&(lt("mat-content-hide-toggle",!i._showToggle()),x(4),q("ngIf",i._showToggle()))},dependencies:[Jt],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[D1.indicatorRotate]},changeDetection:0}),t})(),PZ=(()=>{class t extends _Z{constructor(){super(...arguments),this._ownHeaders=new os,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=ft(e)}ngAfterContentInit(){this._headers.changes.pipe(mi(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(i=>i.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new _b(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,i,o){if(1&e&&Xe(o,O1,5),2&e){let r;xe(r=Oe())&&(i._headers=r)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,i){2&e&&lt("mat-accordion-multi",i.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Ot([{provide:sy,useExisting:t}]),Te]}),t})(),kZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[zi,Mt,CZ,_l]}),t})();const NZ=["input"],LZ=function(t){return{enterDuration:t}},FZ=["*"],BZ=new Ie("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let VZ=0;const jZ={provide:mo,useExisting:Kt(()=>I1),multi:!0};class UZ{constructor(n,e){this.source=n,this.checked=e}}const HZ=qf(aa(ms(sa(class{constructor(t){this._elementRef=t}}))));let GZ=(()=>{class t extends HZ{constructor(e,i,o,r,s,a,l){super(e),this._focusMonitor=i,this._changeDetectorRef=o,this.defaults=s,this._onChange=c=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new De,this.toggleChange=new De,this.tabIndex=parseInt(r)||0,this.color=this.defaultColor=s.color||"accent",this._noopAnimations="NoopAnimations"===a,this.id=this._uniqueId=`${l}${++VZ}`}get required(){return this._required}set required(e){this._required=ft(e)}get checked(){return this._checked}set checked(e){this._checked=ft(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return t.\u0275fac=function(e){Ps()},t.\u0275dir=ge({type:t,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[Te]}),t})(),I1=(()=>{class t extends GZ{constructor(e,i,o,r,s,a){super(e,i,o,r,s,a,"mat-slide-toggle-")}_createChangeEvent(e){return new UZ(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(No),h(Ut),Wo("tabindex"),h(BZ),h(pi,8))},t.\u0275cmp=et({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,i){if(1&e&&St(NZ,5),2&e){let o;xe(o=Oe())&&(i._inputElement=o.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,i){2&e&&(is("id",i.id),xt("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),lt("mat-checked",i.checked)("mat-disabled",i.disabled)("mat-slide-toggle-label-before","before"==i.labelPosition)("_mat-animation-noopable",i._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[Ot([jZ]),Te],ngContentSelectors:FZ,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,i){if(1&e&&(xn(),L(0,"label",0,1)(2,"span",2)(3,"input",3,4),we("change",function(r){return i._onChangeEvent(r)})("click",function(r){return i._onInputClick(r)}),z(),L(5,"span",5),Je(6,"span",6),L(7,"span",7),Je(8,"span",8),z()()(),L(9,"span",9,10),we("cdkObserveContent",function(){return i._onLabelTextChange()}),L(11,"span",11),ce(12,"\xa0"),z(),Dt(13),z()()),2&e){const o=ji(1),r=ji(10);xt("for",i.inputId),x(2),lt("mat-slide-toggle-bar-no-side-margin",!r.textContent||!r.textContent.trim()),x(1),q("id",i.inputId)("required",i.required)("tabIndex",i.tabIndex)("checked",i.checked)("disabled",i.disabled),xt("name",i.name)("aria-checked",i.checked)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),x(4),q("matRippleTrigger",o)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",fi(18,LZ,i._noopAnimations?0:150))}},dependencies:[la,uO],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),t})(),R1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})(),WZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[R1,Hu,Mt,gb,R1,Mt]}),t})(),KZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Mt,Mt]}),t})(),JZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[Wf,Mt,Wf,Mt]}),t})(),uX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[zi,Mt,Mt]}),t})();function dX(t,n){if(1&t){const e=ht();L(0,"div",3)(1,"button",4),we("click",function(){return Be(e),Ve(re().close())}),ce(2),Ee(3,"translate"),z()()}2&t&&(x(2),Ne(Ae(3,1,"PANEL.CLOSE")))}function hX(t,n){if(1&t){const e=ht();L(0,"div",3)(1,"button",4),we("click",function(){return Be(e),Ve(re().close())}),ce(2),Ee(3,"translate"),z()()}2&t&&(x(2),Ne(Ae(3,1,"PANEL.CLOSE")))}const fX=["captionEventElement"],pX=function(t){return{"captions-offset":t}};function gX(t,n){if(1&t){const e=ht();L(0,"div",6)(1,"button",7),we("click",function(){return Be(e),Ve(re().onSettingsCliked())}),L(2,"mat-icon",8),ce(3,"settings"),z(),L(4,"span"),ce(5),z()()()}if(2&t){const e=re(),i=ji(1);q("ngClass",fi(2,pX,i.offsetWidth>=1e3)),x(5),Ne(e.captionLangSelected.name)}}const mX=function(t){return{color:t}},vX=function(t){return{"going-to-disappear":t}};function _X(t,n){if(1&t&&(L(0,"div",11)(1,"p",12),ce(2),z(),L(3,"div",13,14)(5,"span",15),ce(6),z()()()),2&t){const e=n.$implicit,i=n.index,o=re(2);q("@captionAnimation",void 0),x(1),q("ngStyle",fi(5,mX,e.color)),x(1),Fn(" ",e.nickname," "),x(1),q("ngClass",fi(7,vX,0===i&&o.captionEvents.length===o.MAX_EVENTS_LIMIT)),x(3),Ne(e.text)}}const bX=function(t,n,e,i,o,r,s){return{"events-one":t,"events-two":n,"events-three":e,"screen-xl":i,"screen-md":o,"screen-sm":r,"screen-xs":s}};function yX(t,n){if(1&t&&(L(0,"div",9),ne(1,_X,7,9,"div",10),z()),2&t){const e=re(),i=ji(1);q("ngClass",bA(2,bX,1===e.captionEvents.length,2===e.captionEvents.length,3===e.captionEvents.length,i.offsetWidth>=1e3,i.offsetWidth>=960&&i.offsetWidth<1e3,i.offsetWidth>=600&&i.offsetWidth<960,i.offsetWidth<600)),x(1),q("ngForOf",e.captionEvents)}}function CX(t,n){1&t&&(L(0,"div",16),Je(1,"mat-spinner",17),L(2,"span"),ce(3),Ee(4,"translate"),z()()),2&t&&(x(1),q("diameter",20),x(2),Ne(Ae(4,2,"ERRORS.SST_CONNECTION")))}function EX(t,n){1&t&&Je(0,"div",18)}const SX=["stream"],B1=["layout"];function AX(t,n){1&t&&rn(0)}const V1=function(t){return{OV_big:t}},ga=function(t){return{$implicit:t}};function wX(t,n){if(1&t&&(L(0,"div",6),ne(1,AX,1,0,"ng-container",7),z()),2&t){const e=n.$implicit,i=re();q("ngClass",fi(3,V1,e.videoEnlarged)),x(1),q("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",fi(5,ga,e))}}function DX(t,n){1&t&&rn(0)}function MX(t,n){if(1&t&&(L(0,"div",8),ne(1,DX,1,0,"ng-container",7),z()),2&t){const e=n.$implicit,i=re();q("ngClass",fi(3,V1,e.videoEnlarged)),x(1),q("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",fi(5,ga,e))}}function TX(t,n){1&t&&Je(0,"ov-captions",9)}function xX(t,n){if(1&t){const e=ht();L(0,"div",3)(1,"button",4),we("click",function(){return Be(e),Ve(re().seeMore())}),L(2,"span"),ce(3),Ee(4,"translate"),z(),L(5,"mat-icon"),ce(6,"open_in_new"),z()(),L(7,"button",4),we("click",function(){return Be(e),Ve(re().close())}),ce(8),Ee(9,"translate"),z()()}2&t&&(x(3),Ne(Ae(4,2,"PANEL.SEE_MORE")),x(5),Ne(Ae(9,4,"PANEL.CLOSE")))}const OX=["chatScroll"],IX=["chatInput"];function RX(t,n){1&t&&(L(0,"p"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PANEL.CHAT.YOU")))}function PX(t,n){if(1&t&&(L(0,"p"),ce(1),z()),2&t){const e=re().$implicit;x(1),Ne(e.nickname)}}function kX(t,n){if(1&t&&(L(0,"div",14)(1,"div",15)(2,"div",16),ne(3,RX,3,3,"p",17),ne(4,PX,2,1,"p",17),z(),L(5,"div",18),Je(6,"p",19),Ee(7,"linkify"),z()()()),2&t){const e=n.$implicit;q("ngClass",e.isLocal?"right":"left"),x(3),q("ngIf",e.isLocal),x(1),q("ngIf",!e.isLocal),x(2),q("innerHTML",Ae(7,4,e.message),pg)}}const NX=["toolbar"],LX=["panel"],FX=["sidenav"],BX=["videoContainer"],VX=["container"],jX=["layoutContainer"];function UX(t,n){1&t&&rn(0)}function HX(t,n){1&t&&rn(0)}function GX(t,n){1&t&&rn(0)}function zX(t,n){if(1&t&&(L(0,"div",11),ne(1,GX,1,0,"ng-container",6),z()),2&t){const e=re(2);x(1),q("ngTemplateOutlet",e.toolbarTemplate)}}const qX=function(t){return{big:t}};function WX(t,n){if(1&t&&(L(0,"div",1)(1,"mat-sidenav-container",2,3)(4,"mat-sidenav",4,5),ne(6,UX,1,0,"ng-container",6),z(),L(7,"mat-sidenav-content",7)(8,"div",8,9),ne(10,HX,1,0,"ng-container",6),z()()(),ne(11,zX,2,1,"div",10),z()),2&t){const e=re();q("@sessionAnimation",void 0),x(4),Yt("mode",e.sidenavMode),q("ngClass",fi(6,qX,e.settingsPanelOpened)),x(2),q("ngTemplateOutlet",e.panelTemplate),x(4),q("ngTemplateOutlet",e.layoutTemplate),x(1),q("ngIf",e.toolbarTemplate)}}const $X=function(t){return{"background-color":t}},YX=["videoElement"],QX=["menu"],KX=["streamContainer"],ZX=["nicknameInput"];function XX(t,n){if(1&t&&(L(0,"span",15),ce(1),z()),2&t){const e=re(4);x(1),Ne(e._stream.participant.nickname)}}function JX(t,n){if(1&t&&(L(0,"span",15),ce(1),z()),2&t){const e=re(4);x(1),Fn("",e._stream.participant.nickname,"_SCREEN")}}function eJ(t,n){if(1&t){const e=ht();L(0,"div",13),we("click",function(){return Be(e),Ve(re(3).toggleNicknameForm())}),ne(1,XX,2,1,"span",14),ne(2,JX,2,1,"span",14),z()}if(2&t){const e=re(3);x(1),q("ngIf","CAMERA"===e._stream.type),x(1),q("ngIf","SCREEN"===e._stream.type)}}function tJ(t,n){if(1&t){const e=ht();L(0,"div",16)(1,"input",17,18),we("ngModelChange",function(o){return Be(e),Ve(re(3).nickname=o)})("keypress",function(o){return Be(e),Ve(re(3).updateNickname(o))})("focusout",function(o){return Be(e),Ve(re(3).updateNickname(o))}),z()()}if(2&t){const e=re(3);lt("fullscreen",e.isFullscreen),x(1),q("ngModel",e.nickname)}}function nJ(t,n){if(1&t&&(L(0,"div",10),ne(1,eJ,3,2,"div",11),ne(2,tJ,3,3,"div",12),z()),2&t){const e=re(2);lt("fullscreen",e.isFullscreen),x(1),q("ngIf",!e.toggleNickname),x(1),q("ngIf",e.toggleNickname&&!(null!=e._stream.streamManager&&e._stream.streamManager.remote))}}function iJ(t,n){if(1&t&&(L(0,"div",19),Je(1,"ov-audio-wave",20),z()),2&t){const e=re(2);x(1),q("streamManager",e._stream.streamManager)}}function oJ(t,n){if(1&t&&Je(0,"ov-avatar-profile",21),2&t){const e=re(2);q("@posterAnimation",void 0)("name",e._stream.participant.nickname)("color",e._stream.participant.colorProfile)}}function rJ(t,n){1&t&&(L(0,"button",22)(1,"mat-icon"),ce(2,"mic_off"),z()())}function sJ(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"STREAM.ZOOM_OUT")))}function aJ(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"STREAM.ZOOM_IN")))}function lJ(t,n){1&t&&(L(0,"mat-icon"),ce(1,"volume_up"),z())}function cJ(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"STREAM.MUTE_SOUND")))}function uJ(t,n){1&t&&(L(0,"mat-icon"),ce(1,"volume_off"),z())}function dJ(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"STREAM.UNMUTE_SOUND")))}function hJ(t,n){if(1&t){const e=ht();L(0,"button",32),we("click",function(){return Be(e),Ve(re(3).toggleMuteForcibly())}),ne(1,lJ,2,0,"mat-icon",29),ne(2,cJ,3,3,"span",29),ne(3,uJ,2,0,"mat-icon",29),ne(4,dJ,3,3,"span",29),z()}if(2&t){const e=re(3);x(1),q("ngIf",!e._stream.participant.isMutedForcibly),x(1),q("ngIf",!e._stream.participant.isMutedForcibly),x(1),q("ngIf",e._stream.participant.isMutedForcibly),x(1),q("ngIf",e._stream.participant.isMutedForcibly)}}function fJ(t,n){if(1&t){const e=ht();L(0,"button",33),we("click",function(){return Be(e),Ve(re(3).replaceScreenTrack())}),L(1,"mat-icon"),ce(2,"picture_in_picture"),z(),L(3,"span"),ce(4),Ee(5,"translate"),z()()}2&t&&(x(4),Ne(Ae(5,1,"STREAM.REPLACE_SCREEN")))}function pJ(t,n){if(1&t){const e=ht();L(0,"div",23)(1,"button",24),we("click",function(o){return Be(e),Ve(re(2).toggleVideoMenu(o))}),Ee(2,"translate"),L(3,"mat-icon"),ce(4,"more_vert"),z()(),Je(5,"span",25),L(6,"mat-menu",26,27)(8,"button",28),we("click",function(){return Be(e),Ve(re(2).toggleVideoEnlarged())}),L(9,"mat-icon"),ce(10),z(),ne(11,sJ,3,3,"span",29),ne(12,aJ,3,3,"span",29),z(),ne(13,hJ,5,4,"button",30),ne(14,fJ,6,3,"button",31),z()()}if(2&t){const e=ji(7),i=re(2);x(1),Yt("matTooltip",Ae(2,7,"STREAM.SETTINGS")),x(4),q("matMenuTriggerFor",e),x(5),Ne(i.videoSizeIcon),x(1),q("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.NORMAL),x(1),q("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.BIG),x(1),q("ngIf",!i._stream.local),x(1),q("ngIf",!(null!=i._stream.streamManager&&i._stream.streamManager.remote)&&(null==i._stream.streamManager||null==i._stream.streamManager.stream?null:i._stream.streamManager.stream.typeOfVideo)===i.videoTypeEnum.SCREEN)}}const gJ=function(t){return{"no-size":t}};function mJ(t,n){if(1&t){const e=ht();L(0,"div",1,2),ne(2,nJ,3,4,"div",3),ne(3,iJ,2,1,"div",4),ne(4,oJ,1,3,"ov-avatar-profile",5),L(5,"ov-video",6),we("dblclick",function(){return Be(e),Ve(re().toggleVideoEnlarged())}),z(),L(6,"div",7),ne(7,rJ,3,0,"button",8),z(),ne(8,pJ,15,9,"div",9),z()}if(2&t){const e=re();q("ngClass",fi(9,gJ,!e.showVideo))("id","container-"+(null==e._stream.streamManager||null==e._stream.streamManager.stream?null:e._stream.streamManager.stream.streamId)),x(2),q("ngIf",!e.isMinimal&&e.showNickname),x(1),q("ngIf",!e.isMinimal&&e.showAudioDetection&&"CAMERA"===e._stream.type&&(null==e._stream.streamManager||null==e._stream.streamManager.stream?null:e._stream.streamManager.stream.audioActive)),x(1),q("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.videoActive)&&"CAMERA"===e._stream.type),x(1),q("streamManager",e._stream.streamManager)("mutedSound",null==e._stream||null==e._stream.participant?null:e._stream.participant.isMutedForcibly),x(2),q("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.audioActive)),x(1),q("ngIf",!e.isMinimal&&e.showSettingsButton)}}const vJ=["toolbarAdditionalButtons"],_J=["toolbarAdditionalPanelButtons"];function bJ(t,n){1&t&&Je(0,"img",30)}function yJ(t,n){if(1&t&&(L(0,"span",31),ce(1),z()),2&t){const e=re(2);x(1),Ne(e.session.sessionId)}}function CJ(t,n){if(1&t&&(L(0,"div",32)(1,"mat-icon",33),ce(2,"radio_button_checked"),z(),L(3,"span",33),ce(4,"REC"),z(),L(5,"span"),ce(6),Ee(7,"date"),z()()),2&t){const e=re(2);x(6),Fn(" | ",Bs(7,1,e.recordingTime,"H:mm:ss"),"")}}function EJ(t,n){if(1&t&&(L(0,"div",25)(1,"div"),ne(2,bJ,1,0,"img",26),L(3,"div",27),ne(4,yJ,2,1,"span",28),ne(5,CJ,8,4,"div",29),z()()()),2&t){const e=re();x(2),q("ngIf",!e.isMinimal&&e.showLogo),x(1),lt("colapsed",e.recordingStatus===e._recordingStatus.STARTED),x(1),q("ngIf",!e.isMinimal&&e.session&&e.session.sessionId&&e.showSessionName),x(1),q("ngIf",e.recordingStatus===e._recordingStatus.STARTED)}}function SJ(t,n){if(1&t&&(L(0,"mat-icon",34),Ee(1,"translate"),ce(2," mic "),z()),2&t){const e=re();Yt("matTooltip",Ae(1,2,"TOOLBAR.MUTE_AUDIO")),q("matTooltipDisabled",!e.hasAudioDevices)}}function AJ(t,n){if(1&t&&(L(0,"mat-icon",35),Ee(1,"translate"),ce(2," mic_off "),z()),2&t){const e=re();Yt("matTooltip",Ae(1,2,"TOOLBAR.UNMUTE_AUDIO")),q("matTooltipDisabled",!e.hasAudioDevices)}}function wJ(t,n){if(1&t&&(L(0,"mat-icon",36),Ee(1,"translate"),ce(2," videocam "),z()),2&t){const e=re();Yt("matTooltip",Ae(1,2,"TOOLBAR.MUTE_VIDEO")),q("matTooltipDisabled",!e.hasVideoDevices)}}function DJ(t,n){if(1&t&&(L(0,"mat-icon",37),Ee(1,"translate"),ce(2," videocam_off "),z()),2&t){const e=re();Yt("matTooltip",Ae(1,2,"TOOLBAR.UNMUTE_VIDEO")),q("matTooltipDisabled",!e.hasVideoDevices)}}function MJ(t,n){1&t&&(L(0,"mat-icon",40),Ee(1,"translate"),ce(2,"screen_share"),z()),2&t&&Yt("matTooltip",Ae(1,1,"TOOLBAR.ENABLE_SCREEN"))}function TJ(t,n){1&t&&(L(0,"mat-icon",40),Ee(1,"translate"),ce(2,"screen_share"),z()),2&t&&Yt("matTooltip",Ae(1,1,"TOOLBAR.DISABLE_SCREEN"))}function xJ(t,n){if(1&t){const e=ht();L(0,"button",38),we("click",function(){return Be(e),Ve(re().toggleScreenShare())}),ne(1,MJ,3,3,"mat-icon",39),ne(2,TJ,3,3,"mat-icon",39),z()}if(2&t){const e=re();lt("active-btn",e.isScreenShareActive),q("disabled",e.isConnectionLost),x(1),q("ngIf",!e.isScreenShareActive),x(1),q("ngIf",e.isScreenShareActive)}}function OJ(t,n){if(1&t&&(L(0,"button",41)(1,"mat-icon",40),Ee(2,"translate"),ce(3,"more_vert"),z()()),2&t){const e=re();q("matMenuTriggerFor",ji(12))("disabled",e.isConnectionLost),x(1),Yt("matTooltip",Ae(2,3,"TOOLBAR.MORE_OPTIONS"))}}function IJ(t,n){1&t&&(L(0,"mat-icon"),ce(1,"fullscreen"),z())}function RJ(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"TOOLBAR.FULLSCREEN")))}function PJ(t,n){1&t&&(L(0,"mat-icon"),ce(1,"fullscreen_exit"),z())}function kJ(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"TOOLBAR.EXIT_FULLSCREEN")))}function NJ(t,n){if(1&t){const e=ht();L(0,"button",42),we("click",function(){return Be(e),Ve(re().toggleFullscreen())}),ne(1,IJ,2,0,"mat-icon",19),ne(2,RJ,3,3,"span",19),ne(3,PJ,2,0,"mat-icon",19),ne(4,kJ,3,3,"span",19),z()}if(2&t){const e=re();x(1),q("ngIf",!e.isFullscreenActive),x(1),q("ngIf",!e.isFullscreenActive),x(1),q("ngIf",e.isFullscreenActive),x(1),q("ngIf",e.isFullscreenActive)}}function LJ(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Fn(" ",Ae(2,1,"TOOLBAR.START_RECORDING")," "))}function FJ(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Fn(" ",Ae(2,1,"TOOLBAR.STOP_RECORDING")," "))}function BJ(t,n){if(1&t){const e=ht();L(0,"button",43),we("click",function(){return Be(e),Ve(re().toggleRecording())}),L(1,"mat-icon",44),ce(2,"radio_button_checked"),z(),ne(3,LJ,3,3,"span",19),ne(4,FJ,3,3,"span",19),z()}if(2&t){const e=re();q("disabled",e.recordingStatus===e._recordingStatus.STARTING||e.recordingStatus===e._recordingStatus.STOPPING||!e.isSessionCreator),x(3),q("ngIf",e.recordingStatus===e._recordingStatus.STOPPED||e.recordingStatus===e._recordingStatus.STOPPING),x(1),q("ngIf",e.recordingStatus===e._recordingStatus.STARTED||e.recordingStatus===e._recordingStatus.STARTING)}}function VJ(t,n){if(1&t){const e=ht();L(0,"button",45),we("click",function(){return Be(e),Ve(re().toggleBackgroundEffects())}),L(1,"mat-icon"),ce(2,"auto_awesome"),z(),L(3,"span"),ce(4),Ee(5,"translate"),z()()}2&t&&(q("disabled",!re().isWebcamVideoActive),x(4),Ne(Ae(5,2,"TOOLBAR.BACKGROUND")))}function jJ(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"TOOLBAR.DISABLE_CAPTIONS")))}function UJ(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"TOOLBAR.ENABLE_CAPTIONS")))}function HJ(t,n){if(1&t){const e=ht();L(0,"button",46),we("click",function(){return Be(e),Ve(re().toggleCaptions())}),L(1,"mat-icon"),ce(2,"closed_caption"),z(),ne(3,jJ,3,3,"span",19),ne(4,UJ,3,3,"span",19),z()}if(2&t){const e=re();q("disabled",e.isConnectionLost),x(3),q("ngIf",e.captionsEnabled),x(1),q("ngIf",!e.captionsEnabled)}}function GJ(t,n){1&t&&Je(0,"mat-divider",47)}function zJ(t,n){if(1&t){const e=ht();L(0,"button",48),we("click",function(){return Be(e),Ve(re().toggleSettings())}),L(1,"mat-icon"),ce(2,"settings"),z(),L(3,"span"),ce(4),Ee(5,"translate"),z()()}2&t&&(x(4),Ne(Ae(5,1,"TOOLBAR.SETTINGS")))}function qJ(t,n){1&t&&rn(0)}function WJ(t,n){if(1&t&&(yi(0),ne(1,qJ,1,0,"ng-container",49),Ci()),2&t){const e=re();x(1),q("ngTemplateOutlet",e.toolbarAdditionalButtonsTemplate)}}function $J(t,n){if(1&t){const e=ht();L(0,"button",50),we("click",function(){return Be(e),Ve(re().leaveSession())}),L(1,"mat-icon",40),Ee(2,"translate"),ce(3,"call_end"),z()()}2&t&&(x(1),Yt("matTooltip",Ae(2,1,"TOOLBAR.LEAVE")))}function YJ(t,n){if(1&t){const e=ht();L(0,"button",51),we("click",function(){return Be(e),Ve(re().toggleActivitiesPanel())}),Ee(1,"translate"),L(2,"mat-icon"),ce(3,"category"),z()()}if(2&t){const e=re();lt("active-btn",e.isActivitiesOpened),Yt("matTooltip",Ae(1,4,"TOOLBAR.ACTIVITIES")),q("disabled",e.isConnectionLost)}}function QJ(t,n){if(1&t){const e=ht();L(0,"button",52),we("click",function(){return Be(e),Ve(re().toggleParticipantsPanel())}),Ee(1,"translate"),L(2,"mat-icon"),ce(3,"people"),z()()}if(2&t){const e=re();lt("active-btn",e.isParticipantsOpened),Yt("matTooltip",Ae(1,4,"TOOLBAR.PARTICIPANTS")),q("disabled",e.isConnectionLost)}}function KJ(t,n){if(1&t){const e=ht();L(0,"button",53),we("click",function(){return Be(e),Ve(re().toggleChatPanel())}),Ee(1,"translate"),L(2,"mat-icon",54),ce(3," chat "),z()()}if(2&t){const e=re();lt("active-btn",e.isChatOpened),Yt("matTooltip",Ae(1,6,"TOOLBAR.CHAT")),q("disabled",e.isConnectionLost),x(2),Yt("matBadge",e.unreadMessages),q("matBadgeHidden",0===e.unreadMessages)}}function ZJ(t,n){1&t&&rn(0)}function XJ(t,n){if(1&t&&(yi(0),ne(1,ZJ,1,0,"ng-container",49),Ci()),2&t){const e=re();x(1),q("ngTemplateOutlet",e.toolbarAdditionalPanelButtonsTemplate)}}const JJ=["participantsPanel"],eee=["backgroundEffectsPanel"],tee=["settingsPanel"],nee=["activitiesPanel"],iee=["chatPanel"],oee=["additionalPanels"];function ree(t,n){1&t&&rn(0)}function see(t,n){if(1&t&&(yi(0),ne(1,ree,1,0,"ng-container",1),Ci()),2&t){const e=re();x(1),q("ngTemplateOutlet",e.chatPanelTemplate)}}function aee(t,n){1&t&&rn(0)}function lee(t,n){if(1&t&&(yi(0),ne(1,aee,1,0,"ng-container",1),Ci()),2&t){const e=re();x(1),q("ngTemplateOutlet",e.participantsPanelTemplate)}}function cee(t,n){1&t&&rn(0)}function uee(t,n){if(1&t&&(yi(0),ne(1,cee,1,0,"ng-container",1),Ci()),2&t){const e=re();x(1),q("ngTemplateOutlet",e.backgroundEffectsPanelTemplate)}}function dee(t,n){1&t&&rn(0)}function hee(t,n){if(1&t&&(yi(0),ne(1,dee,1,0,"ng-container",1),Ci()),2&t){const e=re();x(1),q("ngTemplateOutlet",e.settingsPanelTemplate)}}function fee(t,n){1&t&&rn(0)}function pee(t,n){if(1&t&&(yi(0),ne(1,fee,1,0,"ng-container",1),Ci()),2&t){const e=re();x(1),q("ngTemplateOutlet",e.activitiesPanelTemplate)}}function gee(t,n){1&t&&rn(0)}function mee(t,n){if(1&t&&(yi(0),ne(1,gee,1,0,"ng-container",1),Ci()),2&t){const e=re();x(1),q("ngTemplateOutlet",e.additionalPanelsTemplate)}}const Zu=".panel-container[_ngcontent-%COMP%]{margin:20px;background-color:var(--ov-panel-background);border-radius:var(--ov-panel-radius);max-height:calc(100% - 40px);min-height:calc(100% - 40px)}.panel-header-container[_ngcontent-%COMP%]{padding:10px;display:flex}.panel-title[_ngcontent-%COMP%]{margin-left:5px;margin-top:auto;margin-bottom:auto}.panel-close-button[_ngcontent-%COMP%]{margin-left:auto;border-radius:var(--ov-buttons-radius)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#a7a7a7;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7c7c7c}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--ov-light-color);border-radius:4px}",vee=["participantPanelItemElements"];function _ee(t,n){1&t&&(L(0,"mat-icon"),ce(1,"volume_up"),z())}function bee(t,n){1&t&&(L(0,"mat-icon"),ce(1,"volume_off"),z())}function yee(t,n){if(1&t){const e=ht();L(0,"button",6),we("click",function(){return Be(e),Ve(re().toggleMuteForcibly())}),ne(1,_ee,2,0,"mat-icon",5),ne(2,bee,2,0,"mat-icon",5),z()}if(2&t){const e=re();lt("warn-btn",e._participant.isMutedForcibly),x(1),q("ngIf",!e._participant.isMutedForcibly),x(1),q("ngIf",e._participant.isMutedForcibly)}}function Cee(t,n){1&t&&rn(0)}function Eee(t,n){if(1&t&&(yi(0),ne(1,Cee,1,0,"ng-container",7),Ci()),2&t){const e=re();x(1),q("ngTemplateOutlet",e.participantPanelItemElementsTemplate)}}const See=["participantPanelItem"],j1=["defaultParticipantPanelItem"];function Aee(t,n){1&t&&rn(0)}function wee(t,n){1&t&&Je(0,"mat-divider")}function Dee(t,n){if(1&t&&(L(0,"div",8),ne(1,Aee,1,0,"ng-container",9),ne(2,wee,1,0,"mat-divider",10),z()),2&t){const e=re();x(1),q("ngTemplateOutlet",e.participantPanelItemTemplate)("ngTemplateOutletContext",fi(3,ga,e.localParticipant)),x(1),q("ngIf",!0)}}function Mee(t,n){1&t&&rn(0)}function Tee(t,n){if(1&t&&(L(0,"div",13),ne(1,Mee,1,0,"ng-container",9),z()),2&t){const e=n.$implicit,i=re(2);x(1),q("ngTemplateOutlet",i.participantPanelItemTemplate)("ngTemplateOutletContext",fi(2,ga,e))}}function xee(t,n){if(1&t&&(L(0,"div",11),ne(1,Tee,2,4,"div",12),z()),2&t){const e=re();x(1),q("ngForOf",e.remoteParticipants)}}function Oee(t,n){1&t&&Je(0,"ov-participant-panel-item",14),2&t&&q("participant",n.$implicit)}function Iee(t,n){if(1&t){const e=ht();L(0,"button",8),we("click",function(){const r=Be(e).$implicit;return Ve(re().applyBackground(r))}),L(1,"mat-icon",9),Ee(2,"translate"),Ee(3,"translate"),ce(4),z()()}if(2&t){const e=n.$implicit,i=re();lt("active-effect-btn",i.backgroundSelectedId===e.id),x(1),q("matTooltip",e.type===i.effectType.NONE?Ae(2,4,"PANEL.BACKGROUND.NO_EFFECTS"):Ae(3,6,"PANEL.BACKGROUND.BLURRED_EFFECT")),x(3),Ne(e.thumbnail)}}function Ree(t,n){if(1&t){const e=ht();L(0,"div",10),we("click",function(){const r=Be(e).$implicit;return Ve(re().applyBackground(r))}),Je(1,"img",11),z()}if(2&t){const e=n.$implicit;lt("active-effect-btn",re().backgroundSelectedId===e.id),x(1),q("src",e.thumbnail,Va)}}function Pee(t,n){if(1&t&&(L(0,"mat-icon",7),Ee(1,"translate"),ce(2," videocam "),z()),2&t){const e=re();Yt("matTooltip",Ae(1,2,"TOOLBAR.MUTE_VIDEO")),q("matTooltipDisabled",!e.hasVideoDevices)}}function kee(t,n){if(1&t&&(L(0,"mat-icon",8),Ee(1,"translate"),ce(2," videocam_off "),z()),2&t){const e=re();Yt("matTooltip",Ae(1,2,"TOOLBAR.UNMUTE_VIDEO")),q("matTooltipDisabled",!e.hasVideoDevices)}}function Nee(t,n){1&t&&(L(0,"mat-label"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PREJOIN.VIDEO_DEVICE")))}function Lee(t,n){1&t&&(L(0,"mat-label"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PREJOIN.NO_VIDEO_DEVICE")))}function Fee(t,n){if(1&t&&(L(0,"mat-option",9),ce(1),z()),2&t){const e=n.$implicit;q("value",e.device),x(1),Fn(" ",e.label," ")}}function Bee(t,n){if(1&t&&(L(0,"mat-icon",7),Ee(1,"translate"),ce(2," mic "),z()),2&t){const e=re();Yt("matTooltip",Ae(1,2,"TOOLBAR.MUTE_AUDIO")),q("matTooltipDisabled",!e.hasAudioDevices)}}function Vee(t,n){if(1&t&&(L(0,"mat-icon",8),Ee(1,"translate"),ce(2," mic_off "),z()),2&t){const e=re();Yt("matTooltip",Ae(1,2,"TOOLBAR.UNMUTE_AUDIO")),q("matTooltipDisabled",!e.hasAudioDevices)}}function jee(t,n){1&t&&(L(0,"mat-label"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PREJOIN.AUDIO_DEVICE")))}function Uee(t,n){1&t&&(L(0,"mat-label"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PREJOIN.NO_AUDIO_DEVICE")))}function Hee(t,n){if(1&t&&(L(0,"mat-option",9),ce(1),z()),2&t){const e=n.$implicit;q("value",e.device),x(1),Fn(" ",e.label," ")}}function Gee(t,n){if(1&t){const e=ht();L(0,"button",3),we("click",function(){const r=Be(e).$implicit;return Ve(re().onLangSelected(r.ISO))}),L(1,"span"),ce(2),z()()}if(2&t){const e=n.$implicit;x(2),Ne(e.name)}}function zee(t,n){1&t&&Je(0,"img",11)}function qee(t,n){if(1&t){const e=ht();L(0,"ov-lang-selector",12),we("onLangSelectorClicked",function(){return Be(e),Ve(re().onDeviceSelectorClicked())}),z()}}function Wee(t,n){1&t&&Je(0,"ov-background-effects-panel")}function $ee(t,n){1&t&&(L(0,"ov-panel"),ne(1,Wee,1,0,"ng-template",null,14,dn),z())}function Yee(t,n){1&t&&ne(0,$ee,3,0,"ng-template",null,13,dn)}function Qee(t,n){if(1&t){const e=ht();L(0,"button",18),we("click",function(){return Be(e),Ve(re(3).toggleBackgroundEffects())}),Ee(1,"translate"),L(2,"mat-icon"),ce(3,"auto_awesome"),z()()}if(2&t){const e=re().$implicit;Yt("matTooltip",Ae(1,2,"TOOLBAR.BACKGROUND")),q("disabled",!(null!=e.streamManager&&null!=e.streamManager.stream&&e.streamManager.stream.videoActive))}}function Kee(t,n){if(1&t&&(ne(0,Qee,4,4,"button",16),Je(1,"ov-stream",17)),2&t){const e=n.$implicit,i=re(2);q("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),x(1),q("stream",e)("displayParticipantName",!1)("settingsButton",!1)}}function Zee(t,n){1&t&&(L(0,"ov-layout"),ne(1,Kee,2,4,"ng-template",null,15,dn),z())}function Xee(t,n){1&t&&(L(0,"h4"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PREJOIN.NICKNAME_SECTION")))}function Jee(t,n){1&t&&Je(0,"hr")}function ete(t,n){1&t&&(L(0,"h4"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PREJOIN.DEVICE_SECTION")))}function tte(t,n){1&t&&Je(0,"hr")}function nte(t,n){if(1&t){const e=ht();L(0,"div",19)(1,"div",20)(2,"div",21)(3,"div",22),ne(4,Xee,3,3,"h4",8),ne(5,Jee,1,0,"hr",8),Je(6,"ov-nickname-input"),z(),L(7,"div",23),ne(8,ete,3,3,"h4",8),ne(9,tte,1,0,"hr",8),L(10,"ov-video-devices-select",24),we("onDeviceSelectorClicked",function(){return Be(e),Ve(re().onDeviceSelectorClicked())})("onVideoMutedClicked",function(o){return Be(e),Ve(re().onVideoMutedClicked(o))}),z(),L(11,"ov-audio-devices-select",25),we("onDeviceSelectorClicked",function(){return Be(e),Ve(re().onDeviceSelectorClicked())}),z()(),L(12,"div",26)(13,"button",27),we("click",function(){return Be(e),Ve(re().joinSession())}),ce(14),Ee(15,"translate"),z()()()()()}if(2&t){const e=re();x(4),q("ngIf",e.windowSize>=960),x(1),q("ngIf",e.windowSize>=960),x(3),q("ngIf",e.windowSize>=960),x(1),q("ngIf",e.windowSize>=960),x(5),Fn(" ",Ae(15,5,"PREJOIN.JOIN")," ")}}function ite(t,n){1&t&&(L(0,"mat-icon"),ce(1," video_camera_front "),z())}function ote(t,n){1&t&&(L(0,"mat-icon"),ce(1,"error"),z())}function rte(t,n){1&t&&(L(0,"mat-icon",9),ce(1,"radio_button_checked"),z())}function ste(t,n){1&t&&(L(0,"div"),Je(1,"img",15),z())}function ate(t,n){1&t&&(L(0,"h2"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PANEL.RECORDING.CONTENT_TITLE")))}function lte(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PANEL.RECORDING.CONTENT_SUBTITLE")))}function cte(t,n){if(1&t){const e=ht();L(0,"button",21),we("click",function(){return Be(e),Ve(re(3).stopRecording())}),L(1,"span"),ce(2),Ee(3,"translate"),z()()}2&t&&(x(2),Ne(Ae(3,1,"TOOLBAR.STOP_RECORDING")))}function ute(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"TOOLBAR.START_RECORDING")))}function dte(t,n){if(1&t){const e=ht();L(0,"button",22),we("click",function(){return Be(e),Ve(re(3).startRecording())}),ne(1,ute,3,3,"span",2),z()}if(2&t){const e=re(3);x(1),q("ngIf",e.recordingStatus===e.recStatusEnum.STOPPED)}}function hte(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Fn("",Ae(2,1,"PANEL.RECORDING.STARTING")," "))}function fte(t,n){1&t&&(L(0,"span"),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Fn("",Ae(2,1,"PANEL.RECORDING.STOPPING")," "))}function pte(t,n){1&t&&(L(0,"span"),ce(1,"Message: "),z())}function gte(t,n){if(1&t&&(L(0,"span",23),ce(1),Ee(2,"json"),z()),2&t){const e=re(3);x(1),Fn("",Ae(2,1,e.recordingError)," ")}}function mte(t,n){if(1&t){const e=ht();L(0,"button",24),we("click",function(){return Be(e),Ve(re(3).resetStatus())}),L(1,"span"),ce(2),Ee(3,"translate"),z()()}2&t&&(x(2),Ne(Ae(3,1,"PANEL.RECORDING.RESTORE")))}function vte(t,n){if(1&t&&(L(0,"div",16),ne(1,cte,4,3,"button",17),ne(2,dte,2,1,"button",18),ne(3,hte,3,3,"span",2),ne(4,fte,3,3,"span",2),ne(5,pte,2,0,"span",2),ne(6,gte,3,3,"span",19),L(7,"div"),ne(8,mte,4,3,"button",20),z()()),2&t){const e=re(2);x(1),q("ngIf",e.recordingAlive),x(1),q("ngIf",e.recordingStatus===e.recStatusEnum.STOPPED),x(1),q("ngIf",e.recordingStatus===e.recStatusEnum.STARTING),x(1),q("ngIf",e.recordingStatus===e.recStatusEnum.STOPPING),x(1),q("ngIf",e.recordingStatus===e.recStatusEnum.FAILED),x(1),q("ngIf",e.recordingStatus===e.recStatusEnum.FAILED),x(2),q("ngIf",e.recordingStatus===e.recStatusEnum.FAILED)}}function _te(t,n){1&t&&(L(0,"p",25),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PANEL.RECORDING.NO_MODERATOR")))}function bte(t,n){1&t&&Je(0,"mat-divider")}function yte(t,n){if(1&t){const e=ht();L(0,"mat-list-item")(1,"mat-icon",29),ce(2,"video_file"),z(),L(3,"div",30)(4,"span",31),ce(5),z()(),L(6,"div",32)(7,"span",33),ce(8),Ee(9,"duration"),z(),L(10,"span",34),ce(11),Ee(12,"number"),z()(),L(13,"div",35),ce(14),Ee(15,"date"),z(),L(16,"button",36),we("click",function(){const r=Be(e).$implicit;return Ve(re(3).play(r))}),Ee(17,"translate"),L(18,"mat-icon"),ce(19,"play_arrow"),z()(),L(20,"button",37),we("click",function(){const r=Be(e).$implicit;return Ve(re(3).download(r))}),Ee(21,"translate"),L(22,"mat-icon"),ce(23,"download"),z()(),L(24,"button",38),we("click",function(){const r=Be(e).$implicit;return Ve(re(3).deleteRecording(r.id))}),Ee(25,"translate"),L(26,"mat-icon"),ce(27,"delete"),z()()()}if(2&t){const e=n.$implicit;x(5),Ne(e.id),x(3),Fn(" ",Ae(9,7,e.duration)," "),x(3),Fn(" | ",Bs(12,9,e.size/1024/1024,"1.1-2")," MBs"),x(3),Ne(Bs(15,12,e.createdAt,"HH:mm - dd/MM/yyyy")),x(2),Yt("matTooltip",Ae(17,15,"PANEL.RECORDING.PLAY")),x(4),Yt("matTooltip",Ae(21,17,"PANEL.RECORDING.DOWNLOAD")),x(4),Yt("matTooltip",Ae(25,19,"PANEL.RECORDING.DELETE"))}}function Cte(t,n){if(1&t&&(L(0,"div",26)(1,"mat-list")(2,"div",27),ce(3),Ee(4,"translate"),z(),ne(5,yte,28,21,"mat-list-item",28),z()()),2&t){const e=re(2);x(3),Ne(Ae(4,2,"PANEL.RECORDING.RECORDINGS")),x(2),q("ngForOf",e.recordingsList)}}function Ete(t,n){if(1&t&&(L(0,"div",10)(1,"div",11),ne(2,ste,2,0,"div",2),ne(3,ate,3,3,"h2",2),ne(4,lte,3,3,"span",2),ne(5,vte,9,7,"div",12),ne(6,_te,3,3,"p",13),z(),ne(7,bte,1,0,"mat-divider",2),ne(8,Cte,6,4,"div",14),z()),2&t){const e=re();x(2),q("ngIf",0===e.recordingsList.length),x(1),q("ngIf",0===e.recordingsList.length),x(1),q("ngIf",0===e.recordingsList.length),x(1),q("ngIf",e.isSessionCreator),x(1),q("ngIf",!e.isSessionCreator),x(1),q("ngIf",e.recordingsList.length>0),x(1),q("ngIf",e.recordingsList.length>0)}}const U1=function(t,n,e,i){return{started:t,stopped:n,failed:e,pending:i}};function Ste(t,n){if(1&t){const e=ht();L(0,"ov-recording-activity",6),we("onStartRecordingClicked",function(){return Be(e),Ve(re()._onStartRecordingClicked())})("onStopRecordingClicked",function(){return Be(e),Ve(re()._onStopRecordingClicked())})("onDeleteRecordingClicked",function(o){return Be(e),Ve(re()._onDeleteRecordingClicked(o))}),z()}2&t&&q("expanded","recording"===re().expandedPanel)}function wte(t,n){if(1&t){const e=ht();L(0,"button",9),we("click",function(){const r=Be(e).$implicit;return Ve(re(2).onLangSelected(r))}),L(1,"span"),ce(2),z()()}if(2&t){const e=n.$implicit;q("id",e.lang),x(2),Ne(e.name)}}function Dte(t,n){if(1&t){const e=ht();L(0,"mat-list")(1,"div")(2,"mat-list-item")(3,"div",2),ce(4),Ee(5,"translate"),z(),L(6,"mat-slide-toggle",3),we("change",function(){return Be(e),Ve(re().toggleCaptions())}),z()()(),L(7,"div",4)(8,"mat-list-item")(9,"div",2),ce(10),Ee(11,"translate"),z(),L(12,"button",5)(13,"span"),ce(14),z(),L(15,"mat-icon"),ce(16,"expand_more"),z()(),L(17,"mat-menu",null,6),ne(19,wte,3,2,"button",7),z()(),L(20,"span",8),ce(21),Ee(22,"translate"),z()()()}if(2&t){const e=ji(18),i=re();x(4),Ne(Ae(5,9,"PANEL.SETTINGS.CAPTIONS")),x(2),q("checked",i.captionsEnabled)("disableRipple",!0),x(4),Ne(Ae(11,11,"PANEL.SETTINGS.LANGUAGE")),x(2),q("matMenuTriggerFor",e)("disabled",!i.isSttReady),x(2),Ne(i.langSelected),x(5),q("ngForOf",i.languagesAvailable),x(2),Ne(Ae(22,13,"PANEL.SETTINGS.CAPTIONS_LANG_TEXT"))}}function Mte(t,n){1&t&&(L(0,"div",10),Je(1,"img",11)(2,"p",12),Ee(3,"translate"),z()),2&t&&(x(2),q("innerHTML",Ae(3,1,"PANEL.PRO_FEATURE"),pg))}function Tte(t,n){1&t&&(L(0,"div",16),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PANEL.SETTINGS.GENERAL")))}function xte(t,n){1&t&&(L(0,"div",16),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PANEL.SETTINGS.VIDEO")))}function Ote(t,n){1&t&&(L(0,"div",16),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PANEL.SETTINGS.AUDIO")))}function Ite(t,n){1&t&&(L(0,"div",16),ce(1),Ee(2,"translate"),z()),2&t&&(x(1),Ne(Ae(2,1,"PANEL.SETTINGS.CAPTIONS")))}function Rte(t,n){if(1&t&&(L(0,"mat-list-option",17)(1,"mat-icon",9),ce(2,"closed_caption"),z(),ne(3,Ite,3,3,"div",10),z()),2&t){const e=re();q("selected",e.selectedOption===e.settingsOptions.CAPTIONS)("value",e.settingsOptions.CAPTIONS),x(3),q("ngIf",!e.isMobile)}}function Pte(t,n){1&t&&(L(0,"div"),Je(1,"ov-nickname-input"),L(2,"mat-list")(3,"mat-list-item")(4,"mat-icon",9),ce(5,"language"),z(),L(6,"div",16),ce(7),Ee(8,"translate"),z(),Je(9,"ov-lang-selector"),z()()()),2&t&&(x(7),Ne(Ae(8,1,"PANEL.SETTINGS.LANGUAGE")))}function kte(t,n){1&t&&Je(0,"ov-video-devices-select")}function Nte(t,n){1&t&&Je(0,"ov-audio-devices-select")}function Lte(t,n){1&t&&Je(0,"ov-captions-settings")}const Fte=function(t){return{mobile:t}},Bte=["defaultToolbar"],Vte=["defaultPanel"],jte=["defaultChatPanel"],Ute=["defaultParticipantsPanel"],Hte=["defaultActivitiesPanel"],Gte=["defaultLayout"],zte=["defaultStream"];function qte(t,n){1&t&&(L(0,"div",12),Je(1,"mat-spinner",13),L(2,"span"),ce(3),Ee(4,"translate"),z()()),2&t&&(x(1),q("diameter",50),x(2),Ne(Ae(4,2,"PREJOIN.PREPARING")))}function Wte(t,n){if(1&t){const e=ht();L(0,"div",14)(1,"ov-pre-join",15),we("onJoinButtonClicked",function(){return Be(e),Ve(re()._onJoinButtonClicked())}),z()()}2&t&&q("@inOutAnimation",void 0)}function $te(t,n){if(1&t&&(L(0,"div",12)(1,"mat-icon",16),ce(2,"error"),z(),L(3,"span"),ce(4),z()()),2&t){const e=re();x(4),Ne(e.errorMessage)}}function Yte(t,n){1&t&&rn(0)}function Qte(t,n){if(1&t&&(yi(0),ne(1,Yte,1,0,"ng-container",24),Ci()),2&t){const e=re(4);x(1),q("ngTemplateOutlet",e.openviduAngularToolbarTemplate)}}function Kte(t,n){1&t&&ne(0,Qte,2,1,"ng-container",23),2&t&&q("ngIf",re(3).openviduAngularToolbarTemplate)}function Zte(t,n){1&t&&rn(0)}function Xte(t,n){if(1&t&&(yi(0),ne(1,Zte,1,0,"ng-container",24),Ci()),2&t){const e=re(4);x(1),q("ngTemplateOutlet",e.openviduAngularPanelTemplate)}}function Jte(t,n){1&t&&ne(0,Xte,2,1,"ng-container",23),2&t&&q("ngIf",re(3).openviduAngularPanelTemplate)}function ene(t,n){1&t&&rn(0)}function tne(t,n){if(1&t&&(yi(0),ne(1,ene,1,0,"ng-container",24),Ci()),2&t){const e=re(4);x(1),q("ngTemplateOutlet",e.openviduAngularLayoutTemplate)}}function nne(t,n){1&t&&ne(0,tne,2,1,"ng-container",23),2&t&&q("ngIf",re(3).openviduAngularLayoutTemplate)}function ine(t,n){if(1&t){const e=ht();L(0,"ov-session",19),we("onNodeCrashed",function(){return Be(e),Ve(re(2)._onNodeCrashed())}),ne(1,Kte,1,1,"ng-template",null,20,dn),ne(3,Jte,1,1,"ng-template",null,21,dn),ne(5,nne,1,1,"ng-template",null,22,dn),z()}}function one(t,n){if(1&t&&(L(0,"div",17),ne(1,ine,7,0,"ov-session",18),z()),2&t){const e=re();q("@inOutAnimation",void 0),x(1),q("ngIf",e.isSessionInitialized&&!e.nodeCrashed)}}function rne(t,n){1&t&&rn(0)}function sne(t,n){1&t&&ne(0,rne,1,0,"ng-container",24),2&t&&q("ngTemplateOutlet",re(2).openviduAngularToolbarAdditionalButtonsTemplate)}function ane(t,n){1&t&&rn(0)}function lne(t,n){1&t&&ne(0,ane,1,0,"ng-container",24),2&t&&q("ngTemplateOutlet",re(2).openviduAngularToolbarAdditionalPanelButtonsTemplate)}function cne(t,n){if(1&t){const e=ht();L(0,"ov-toolbar",25),we("onLeaveButtonClicked",function(){return Be(e),Ve(re().onLeaveButtonClicked())})("onCameraButtonClicked",function(){return Be(e),Ve(re().onCameraButtonClicked())})("onMicrophoneButtonClicked",function(){return Be(e),Ve(re().onMicrophoneButtonClicked())})("onScreenshareButtonClicked",function(){return Be(e),Ve(re().onScreenshareButtonClicked())})("onFullscreenButtonClicked",function(){return Be(e),Ve(re().onFullscreenButtonClicked())})("onParticipantsPanelButtonClicked",function(){return Be(e),Ve(re().onParticipantsPanelButtonClicked())})("onChatPanelButtonClicked",function(){return Be(e),Ve(re().onChatPanelButtonClicked())})("onActivitiesPanelButtonClicked",function(){return Be(e),Ve(re().onActivitiesPanelButtonClicked())})("onStartRecordingClicked",function(){return Be(e),Ve(re().onStartRecordingClicked("toolbar"))})("onStopRecordingClicked",function(){return Be(e),Ve(re().onStopRecordingClicked("toolbar"))}),ne(1,sne,1,1,"ng-template",null,26,dn),ne(3,lne,1,1,"ng-template",null,27,dn),z()}}function une(t,n){1&t&&rn(0)}function dne(t,n){1&t&&ne(0,une,1,0,"ng-container",24),2&t&&q("ngTemplateOutlet",re(2).openviduAngularChatPanelTemplate)}function hne(t,n){1&t&&rn(0)}function fne(t,n){1&t&&ne(0,hne,1,0,"ng-container",24),2&t&&q("ngTemplateOutlet",re(2).openviduAngularParticipantsPanelTemplate)}function pne(t,n){1&t&&Je(0,"ov-background-effects-panel",35)}function gne(t,n){1&t&&Je(0,"ov-settings-panel",36)}function mne(t,n){1&t&&rn(0)}function vne(t,n){1&t&&ne(0,mne,1,0,"ng-container",24),2&t&&q("ngTemplateOutlet",re(2).openviduAngularActivitiesPanelTemplate)}function _ne(t,n){1&t&&rn(0)}function bne(t,n){1&t&&ne(0,_ne,1,0,"ng-container",24),2&t&&q("ngTemplateOutlet",re(2).openviduAngularAdditionalPanelsTemplate)}function yne(t,n){1&t&&(L(0,"ov-panel",28),ne(1,dne,1,1,"ng-template",null,29,dn),ne(3,fne,1,1,"ng-template",null,30,dn),ne(5,pne,1,0,"ng-template",null,31,dn),ne(7,gne,1,0,"ng-template",null,32,dn),ne(9,vne,1,1,"ng-template",null,33,dn),ne(11,bne,1,1,"ng-template",null,34,dn),z())}function Cne(t,n){1&t&&Je(0,"ov-chat-panel",37)}function Ene(t,n){if(1&t){const e=ht();L(0,"ov-activities-panel",38),we("onStartRecordingClicked",function(){return Be(e),Ve(re().onStartRecordingClicked("panel"))})("onStopRecordingClicked",function(){return Be(e),Ve(re().onStopRecordingClicked("panel"))})("onDeleteRecordingClicked",function(o){return Be(e),Ve(re().onDeleteRecordingClicked(o))}),z()}}function Sne(t,n){1&t&&rn(0)}function Ane(t,n){if(1&t&&ne(0,Sne,1,0,"ng-container",41),2&t){const e=n.$implicit;q("ngTemplateOutlet",re(2).openviduAngularParticipantPanelItemTemplate)("ngTemplateOutletContext",fi(2,ga,e))}}function wne(t,n){1&t&&(L(0,"ov-participants-panel",39),ne(1,Ane,1,4,"ng-template",null,40,dn),z())}function Dne(t,n){1&t&&rn(0)}function Mne(t,n){if(1&t&&ne(0,Dne,1,0,"ng-container",41),2&t){const e=re().$implicit;q("ngTemplateOutlet",re().openviduAngularParticipantPanelItemElementsTemplate)("ngTemplateOutletContext",fi(2,ga,e))}}function Tne(t,n){1&t&&(L(0,"ov-participant-panel-item",42),ne(1,Mne,1,4,"ng-template",null,43,dn),z()),2&t&&q("participant",n.$implicit)}function xne(t,n){1&t&&rn(0)}function One(t,n){if(1&t&&ne(0,xne,1,0,"ng-container",41),2&t){const e=n.$implicit;q("ngTemplateOutlet",re(2).openviduAngularStreamTemplate)("ngTemplateOutletContext",fi(2,ga,e))}}function Ine(t,n){1&t&&(L(0,"ov-layout",44),ne(1,One,1,4,"ng-template",null,45,dn),z())}function Rne(t,n){1&t&&Je(0,"ov-stream",46),2&t&&q("stream",n.$implicit)}var H1={LOGIN:"\u767b\u5f55",SECRET:"\u79d8\u5bc6",SECRET_REQURED:"\u5fc5\u987b\u63d0\u4f9b\u79d8\u5bc6",DASHBOARD:"\u4eea\u8868\u677f",NO_RECORDINGS:"\u6ca1\u6709\u5f55\u97f3",SEARCH:"\u641c\u7d22\u5f55\u97f3",DATE:"\u65e5\u671f",DURATION:"\u671f\u95f4",SIZE:"\u5c3a\u5bf8",STATUS:"\u5730\u4f4d",NAME:"\u59d3\u540d",SESSION:"\u4f1a\u8bae",OUTPUT:"\u8f93\u51fa\u65b9\u5f0f",POWERED_BY:"\u52a8\u529b b"},G1={NICKNAME_SECTION:"\u8bbe\u7f6e\u4f60\u7684\u7ef0\u53f7",NICKNAME:"\u6635\u79f0",DEVICE_SECTION:"\u9009\u62e9\u4f60\u7684\u8bbe\u5907",VIDEO_DEVICE:"\u89c6\u9891\u8bbe\u5907",AUDIO_DEVICE:"\u97f3\u9891\u8bbe\u5907",NO_VIDEO_DEVICE:"\u672a\u627e\u5230\u89c6\u9891\u8bbe\u5907",NO_AUDIO_DEVICE:"\u672a\u627e\u5230\u97f3\u9891\u8bbe\u5907",JOIN:"\u52a0\u5165\u4f1a\u8bdd",PREPARING:"\u7b79\u5907\u4f1a\u8bae"},z1={MUTE_AUDIO:"\u5c06\u4f60\u7684\u97f3\u9891\u9759\u97f3",UNMUTE_AUDIO:"\u53d6\u6d88\u97f3\u9891\u9759\u97f3",MUTE_VIDEO:"\u5c06\u4f60\u7684\u89c6\u9891\u9759\u97f3",UNMUTE_VIDEO:"\u53d6\u6d88\u4f60\u7684\u89c6\u9891\u9759\u97f3",ENABLE_SCREEN:"\u542f\u7528\u5c4f\u5e55\u5171\u4eab",DISABLE_SCREEN:"\u7981\u7528\u5c4f\u5e55\u5171\u4eab",MORE_OPTIONS:"\u66f4\u591a\u9009\u9879",FULLSCREEN:"\u5168\u5c4f",EXIT_FULLSCREEN:"\u9000\u51fa\u5168\u5c4f",ENABLE_CAPTIONS:"\u542f\u7528\u5b57\u5e55",DISABLE_CAPTIONS:"\u7981\u7528\u5b57\u5e55",BACKGROUND:"\u80cc\u666f\u6548\u679c",START_RECORDING:"\u5f00\u59cb\u5f55\u97f3",STOP_RECORDING:"\u505c\u6b62\u5f55\u5236",SETTINGS:"\u8bbe\u7f6e",LEAVE:"\u79bb\u5f00\u4f1a\u8bae",PARTICIPANTS:"\u53c2\u4e0e\u8005",CHAT:"\u804a\u5929",ACTIVITIES:"\u6d3b\u52a8"},q1={SETTINGS:"\u8bbe\u7f6e",MUTE_SOUND:"\u9759\u97f3",UNMUTE_SOUND:"\u53d6\u6d88\u9759\u97f3",ZOOM_IN:"\u653e\u5927",ZOOM_OUT:"\u7f29\u5c0f",REPLACE_SCREEN:"\u66f4\u6362\u5c4f\u5e55"},W1={CLOSE:"\u5173\u95ed",SEE_MORE:"\u67e5\u770b\u66f4\u591a",PRO_FEATURE:"\u6b64\u529f\u80fd\u5c5e\u4e8eOpenVidu PRO\u7ea7\u522b",CHAT:{TITLE:"\u804a\u5929",YOU:"\u4f60",SUBTITLE:"\u4fe1\u606f\u5c06\u5728\u4f1a\u8bae\u7ed3\u675f\u65f6\u88ab\u5220\u9664",PLACEHOLDER:"\u53d1\u9001\u6d88\u606f...",SEND:"\u53d1\u9001"},PARTICIPANTS:{TITLE:"\u53c2\u4e0e\u8005",CAMERA:"\u6444\u50cf\u5934",SCREEN:"\u5c4f\u5e55"},SETTINGS:{TITLE:"\u8bbe\u7f6e",GENERAL:"\u4e00\u822c\u7684",VIDEO:"\u89c6\u9891",AUDIO:"\u58f0\u97f3\u7684",LANGUAGE:"\u8bed",CAPTIONS:"\u5b57\u5e55",CAPTIONS_LANG_TEXT:"\u9009\u62e9\u4f1a\u8bdd\u53c2\u4e0e\u8005\u5c06\u4f7f\u7528\u7684\u8bed\u8a00\u3002\u5b57\u5e55\u5c06\u4ee5\u8be5\u8bed\u8a00\u663e\u793a\u3002"},BACKGROUND:{TITLE:"\u80cc\u666f\u6548\u679c",BLURRED_SECTION:"\u6ca1\u6709\u6548\u679c\u548c\u6a21\u7cca\u7684\u80cc\u666f",NO_EFFECTS:"\u6ca1\u6709\u80cc\u666f\u6548\u679c",BLURRED_EFFECT:"\u6a21\u7cca\u7684\u80cc\u666f",IMAGES_SECTION:"\u80cc\u666f\u56fe\u50cf"},RECORDING:{TITLE:"\u5f55\u97f3",SUBTITLE:"\u4e3a\u540e\u4eba\u8bb0\u5f55\u4f60\u7684\u4f1a\u8bae",CONTENT_TITLE:"\u8bb0\u5f55\u4f60\u7684\u89c6\u9891\u901a\u8bdd",CONTENT_SUBTITLE:"\u5f53\u5f55\u97f3\u5b8c\u6210\u540e\uff0c\u4f60\u5c06\u53ef\u4ee5\u8f7b\u677e\u5730\u4e0b\u8f7d\u5b83",STARTING:"\u5f00\u59cb\u5f55\u97f3",STOPPING:"\u505c\u6b62\u5f55\u5236",PLAY:"\u73a9",DELETE:"\u5220\u9664",CANCEL:"\u53d6\u6d88",DELETE_QUESTION:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u5f55\u97f3\u5417",DOWNLOAD:"\u4e0b\u8f7d",RECORDINGS:"\u5f55\u5236",NO_MODERATOR:"\u53ea\u6709\u4e3b\u6301\u4eba\u53ef\u4ee5\u5f00\u59cb\u5f55\u97f3"}},$1={SESSION:"\u8fde\u63a5\u5230\u4f1a\u8bdd\u65f6\u6709\u9519\u8bef",CONNECTION:"\u8fde\u63a5\u4e22\u5931",RECONNECT:"\u8bd5\u56fe\u91cd\u65b0\u8fde\u63a5\u5230\u4f1a\u8bdd",TOGGLE_CAMERA:"\u5207\u6362\u76f8\u673a\u65f6\u51fa\u73b0\u9519\u8bef",TOGGLE_MICROPHONE:"\u5207\u6362\u9ea6\u514b\u98ce\u65f6\u51fa\u73b0\u9519\u8bef",SCREEN_SHARING:"\u5206\u4eab\u5c4f\u5e55\u51fa\u9519",SCREEN_SUPPORT:"\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5c4f\u5e55\u5171\u4eab",MEDIA_ACCESS:"\u4e0d\u5141\u8bb8\u8bbf\u95ee\u5a92\u4f53\u8bbe\u5907",DEVICE_NOT_FOUND:"\u6ca1\u6709\u627e\u5230\u89c6\u9891\u6216\u97f3\u9891\u8bbe\u5907 \u8bf7\u81f3\u5c11\u8fde\u63a5\u4e00\u4e2a",SST_CONNECTION:"\u8fde\u63a5\u4e22\u5931\u3002\u6b63\u5728\u91cd\u65b0\u8fde\u63a5\u5230\u8bed\u97f3\u5230\u6587\u672c\u670d\u52a1"},Qne=Object.freeze({__proto__:null,ADMIN:H1,PREJOIN:G1,TOOLBAR:z1,STREAM:q1,PANEL:W1,ERRORS:$1,default:{ADMIN:H1,PREJOIN:G1,TOOLBAR:z1,STREAM:q1,PANEL:W1,ERRORS:$1}}),Y1={LOGIN:"Anmeldung",SECRET:"Geheimnis",SECRET_REQURED:"Geheimnis ist erforderlich",DASHBOARD:"Armaturenbrett",NO_RECORDINGS:"Aufnahmen gibt es nicht",SEARCH:"Suchen Sie eine Aufzeichnung",DATE:"Datum",DURATION:"Dauer",SIZE:"Gr\xf6\xdfe",STATUS:"Status",NAME:"Name",SESSION:"Sitzung",OUTPUT:"Ausgabemodus",POWERED_BY:"Unterst\xfctzt von"},Q1={NICKNAME_SECTION:"Legen Sie Ihren Spitznamen fest",NICKNAME:"Spitzname",DEVICE_SECTION:"W\xe4hlen Sie Ihre Ger\xe4te",VIDEO_DEVICE:"Videoger\xe4t",AUDIO_DEVICE:"Audioger\xe4t",NO_VIDEO_DEVICE:"Video-Ger\xe4t nicht gefunden",NO_AUDIO_DEVICE:"Audio-Ger\xe4t nicht gefunden",JOIN:"Sitzung beitreten",PREPARING:"Sitzung vorbereiten..."},K1={MUTE_AUDIO:"Stummschalten des Audios",UNMUTE_AUDIO:"Stummschaltung f\xfcr Audio aufheben",MUTE_VIDEO:"Stummschalten des Videos",UNMUTE_VIDEO:"Heben Sie die Stummschaltung Ihres Videos auf",ENABLE_SCREEN:"Bildschirmfreigabe aktivieren",DISABLE_SCREEN:"Bildschirmfreigabe deaktivieren",MORE_OPTIONS:"Weitere Optionen",FULLSCREEN:"Vollbild",EXIT_FULLSCREEN:"Vollbildmodus beenden",ENABLE_CAPTIONS:"Untertitel aktivieren",DISABLE_CAPTIONS:"Untertitel deaktivieren",BACKGROUND:"Hintergrund-Effekte",START_RECORDING:"Aufzeichnung starten",STOP_RECORDING:"Aufzeichnung stoppen",SETTINGS:"Einstellungen",LEAVE:"Die Sitzung verlassen",PARTICIPANTS:"Teilnehmer",CHAT:"Chat",ACTIVITIES:"Aktivit\xe4ten"},Z1={SETTINGS:"Einstellungen",MUTE_SOUND:"Ton stummschalten",UNMUTE_SOUND:"Stummschaltung aufheben",ZOOM_IN:"Vergr\xf6\xdfern",ZOOM_OUT:"Herauszoomen",REPLACE_SCREEN:"Bildschirm austauschen"},X1={CLOSE:"Schlie\xdfen",SEE_MORE:"Mehr sehen",PRO_FEATURE:"Diese Funktion ist Teil des OpenVidu PRO-Tiers",CHAT:{TITLE:"Chat",YOU:"Sie",SUBTITLE:"Nachrichten werden am Ende der Sitzung entfernt",PLACEHOLDER:"Eine Nachricht senden...",SEND:"Senden"},PARTICIPANTS:{TITLE:"Teilnehmer",CAMERA:"KAMERA",SCREEN:"BILDSCHIRM"},SETTINGS:{TITLE:"Einstellungen",GENERAL:"Allgemein",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Sprache",CAPTIONS:"Untertitel",CAPTIONS_LANG_TEXT:"W\xe4hlen Sie die Sprache, die die Teilnehmer der Sitzung verwenden. Die Untertitel werden in dieser Sprache angezeigt."},BACKGROUND:{TITLE:"Hintergrund-Effekte",BLURRED_SECTION:"Keine Effekte und unscharfer Hintergrund",NO_EFFECTS:"Kein Hintergrundeffekt",BLURRED_EFFECT:"Unscharfer Hintergrund",IMAGES_SECTION:"Hintergrundbilder"},RECORDING:{TITLE:"Aufnahme",SUBTITLE:"Zeichnen Sie Ihr Meeting f\xfcr die Nachwelt auf",CONTENT_TITLE:"Ihr Videogespr\xe4ch aufzeichnen",CONTENT_SUBTITLE:"Wenn die Aufzeichnung beendet ist, k\xf6nnen Sie sie ganz einfach herunterladen",STARTING:"Aufzeichnung starten",STOPPING:"Aufnahme stoppen",PLAY:"Spielen",DELETE:"L\xf6schen",CANCEL:"Absagen",DELETE_QUESTION:"M\xf6chten Sie die Aufzeichnung wirklich l\xf6schen?",DOWNLOAD:"Download",RECORDINGS:"AUFZEICHNUNGEN",NO_MODERATOR:"Nur der MODERATOR kann die Aufzeichnung starten"}},J1={SESSION:"Es ist ein Fehler beim Verbinden mit der Sitzung aufgetreten",CONNECTION:"Verbindung verloren",RECONNECT:"Ich versuche, die Verbindung zur Sitzung wiederherzustellen...",TOGGLE_CAMERA:"Es gab einen Fehler beim Umschalten der Kamera",TOGGLE_MICROPHONE:"Es ist ein Fehler beim Umschalten des Mikrofons aufgetreten",SCREEN_SHARING:"Fehler beim Teilen des Bildschirms",SCREEN_SUPPORT:"Ihr Browser unterst\xfctzt keine Bildschirmfreigabe",MEDIA_ACCESS:"Der Zugriff auf Medienger\xe4te war nicht erlaubt.",DEVICE_NOT_FOUND:"Es wurden keine Video- oder Audioger\xe4te gefunden. Bitte schlie\xdfen Sie mindestens eines an.",SST_CONNECTION:"Verbindung verloren. Wiederverbindung zum Sprach zu Text Service..."},Zne=Object.freeze({__proto__:null,ADMIN:Y1,PREJOIN:Q1,TOOLBAR:K1,STREAM:Z1,PANEL:X1,ERRORS:J1,default:{ADMIN:Y1,PREJOIN:Q1,TOOLBAR:K1,STREAM:Z1,PANEL:X1,ERRORS:J1}}),eR={LOGIN:"Login",SECRET:"Secret",SECRET_REQURED:"Secret is required",DASHBOARD:"Dashboard",NO_RECORDINGS:"There are no recordings",SEARCH:"Search a recording",DATE:"Date",DURATION:"Duration",SIZE:"Size",STATUS:"Status",NAME:"Name",SESSION:"Session",OUTPUT:"Output mode",POWERED_BY:"Powered by"},tR={NICKNAME_SECTION:"Set your nickname",NICKNAME:"Nickname",DEVICE_SECTION:"Choose your devices",VIDEO_DEVICE:"Video device",AUDIO_DEVICE:"Audio device",NO_VIDEO_DEVICE:"Video device not found",NO_AUDIO_DEVICE:"Audio device not found",JOIN:"Join session",PREPARING:"Preparing session..."},nR={MUTE_AUDIO:"Mute your audio",UNMUTE_AUDIO:"Unmute your audio",MUTE_VIDEO:"Mute your video",UNMUTE_VIDEO:"Unmute your video",ENABLE_SCREEN:"Enable screen share",DISABLE_SCREEN:"Disable screen share",MORE_OPTIONS:"More options",FULLSCREEN:"Fullscreen",EXIT_FULLSCREEN:"Exit fullscreen",ENABLE_CAPTIONS:"Enable captions",DISABLE_CAPTIONS:"Disable captions",BACKGROUND:"Background effects",START_RECORDING:"Start recording",STOP_RECORDING:"Stop recording",SETTINGS:"Settings",LEAVE:"Leave the session",PARTICIPANTS:"Participants",CHAT:"Chat",ACTIVITIES:"Activities"},iR={SETTINGS:"Settings",MUTE_SOUND:"Mute sound",UNMUTE_SOUND:"Unmute sound",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",REPLACE_SCREEN:"Replace screen"},oR={CLOSE:"Close",SEE_MORE:"See more",PRO_FEATURE:"This feature is part of OpenVidu PRO tier",CHAT:{TITLE:"Chat",YOU:"You",SUBTITLE:"Messages will be removed at the end of the session",PLACEHOLDER:"Send a message...",SEND:"Send"},PARTICIPANTS:{TITLE:"Participants",CAMERA:"CAMERA",SCREEN:"SCREEN"},SETTINGS:{TITLE:"Settings",GENERAL:"General",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Language",CAPTIONS:"Captions",CAPTIONS_LANG_TEXT:"Select the language that the participants of the session will use. The captions will appear in that language."},BACKGROUND:{TITLE:"Background effects",BLURRED_SECTION:"No effects and blurred background",NO_EFFECTS:"No background effect",BLURRED_EFFECT:"Blurred background",IMAGES_SECTION:"Background images"},RECORDING:{TITLE:"Recording",SUBTITLE:"Record your meeting for posterity",CONTENT_TITLE:"Record your video call",CONTENT_SUBTITLE:"When recording has finished you will be able to download it with ease",STARTING:"Starting recording",STOPPING:"Stopping recording",PLAY:"Play",DELETE:"Delete",CANCEL:"Cancel",RESTORE:"Restore",DELETE_QUESTION:"Are you sure you want to delete the recording?",DOWNLOAD:"Download",RECORDINGS:"RECORDINGS",NO_MODERATOR:"Only the MODERATOR can start the recording"}},rR={SESSION:"There was an error connecting to the session",CONNECTION:"Connection lost",RECONNECT:"Oops! Trying to reconnect to the session...",TOGGLE_CAMERA:"There was an error toggling camera",TOGGLE_MICROPHONE:"There was an error toggling microhpone",SCREEN_SHARING:"Error sharing screen",SCREEN_SUPPORT:"Your browser does not support screen sharing",MEDIA_ACCESS:"Access to media devices was not allowed.",DEVICE_NOT_FOUND:"No video or audio devices have been found. Please, connect at least one.",SST_CONNECTION:"Connection lost. Reconnecting to the speech to text service ..."},Jne=Object.freeze({__proto__:null,ADMIN:eR,PREJOIN:tR,TOOLBAR:nR,STREAM:iR,PANEL:oR,ERRORS:rR,default:{ADMIN:eR,PREJOIN:tR,TOOLBAR:nR,STREAM:iR,PANEL:oR,ERRORS:rR}}),sR={LOGIN:"Iniciar sesi\xf3n",SECRET:"Contrase\xf1a",SECRET_REQURED:"Contrase\xf1a obligatoria",DASHBOARD:"Panel",NO_RECORDINGS:"No se han encontrado grabaciones",SEARCH:"Busca una grabaci\xf3n",DATE:"Fecha",DURATION:"Duraci\xf3n",SIZE:"Tama\xf1o",STATUS:"Estado",NAME:"Nombre",SESSION:"Sesi\xf3n",OUTPUT:"Modo",POWERED_BY:"Construido por"},aR={NICKNAME_SECTION:"Elige tu nombre",NICKNAME:"Nombre",DEVICE_SECTION:"Elige tus dispositivos",VIDEO_DEVICE:"Dispositivo de video",AUDIO_DEVICE:"Dispositivo de audio",NO_VIDEO_DEVICE:"Dispositivo de v\xeddeo no encontrado",NO_AUDIO_DEVICE:"Dispositivo de audio no encontrado",PREPARING:"Preparando la session ...",JOIN:"Unirme ahora"},lR={MUTE_AUDIO:"Silenciar tu audio",UNMUTE_AUDIO:"Activar tu audio",MUTE_VIDEO:"Silenciar tu video",UNMUTE_VIDEO:"Activar tu video",ENABLE_SCREEN:"Compartir pantalla",DISABLE_SCREEN:"Dejar de compartir pantalla",MORE_OPTIONS:"M\xe1s opciones",EXIT_FULLSCREEN:"Quitar pantalla completa",FULLSCREEN:"Pantalla completa",ENABLE_CAPTIONS:"Activar subt\xedtulos",DISABLE_CAPTIONS:"Desactivar subt\xedtulos",BACKGROUND:"Efectos de fondo",START_RECORDING:"Iniciar grabaci\xf3n",STOP_RECORDING:"Detener grabaci\xf3n",SETTINGS:"Configuraci\xf3n",LEAVE:"Salir de la sesi\xf3n",PARTICIPANTS:"Participantes",CHAT:"Chat",ACTIVITIES:"Actividades"},cR={SETTINGS:"Ajustes",MUTE_SOUND:"Silenciar sonido",UNMUTE_SOUND:"Activar sonido",ZOOM_IN:"Aumentar tama\xf1o",ZOOM_OUT:"Disminuir tama\xf1o",REPLACE_SCREEN:"Reemplazar pantalla"},uR={CLOSE:"Cerrar",SEE_MORE:"Ver m\xe1s",PRO_FEATURE:"Esta funcionalidad es parte de OpenVidu PRO",CHAT:{TITLE:"Chat",YOU:"T\xfa",SUBTITLE:"Los mensajes se borrar\xe1n al finalizar la sesi\xf3n",PLACEHOLDER:"Enviar mensaje...",SEND:"Enviar"},PARTICIPANTS:{TITLE:"Participantes",CAMERA:"C\xc1MARA",SCREEN:"PANTALLA"},SETTINGS:{TITLE:"Configuraci\xf3n",GENERAL:"General",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Idioma",CAPTIONS:"Subt\xedtulos",CAPTIONS_LANG_TEXT:"Selecciona el idioma que usar\xe1n los participantes de la sesi\xf3n. Los subt\xedtulos aparecer\xe1n en ese idioma."},BACKGROUND:{TITLE:"Efectos de fondo",BLURRED_SECTION:"Sin efectos y fondo desenfocado",NO_EFFECTS:"Sin efecto",BLURRED_EFFECT:"Fondo desenfocado",IMAGES_SECTION:"Im\xe1genes de fondo"},RECORDING:{TITLE:"Grabaci\xf3n",SUBTITLE:"Graba tus llamadas para la posteridad",CONTENT_TITLE:"Graba tu video conferencia",CONTENT_SUBTITLE:"Cuando la grabaci\xf3n haya finalizado, podr\xe1s descargarla con facilidad",STARTING:"Iniciando grabaci\xf3n",STOPPING:"Parando grabaci\xf3n",PLAY:"Reproducir",DELETE:"Borrar",CANCEL:"Cancelar",DELETE_QUESTION:"\xbfEst\xe1s seguro/a de que deseas borrar la grabaci\xf3n?",DOWNLOAD:"Descargar",RECORDINGS:"GRABACIONES",NO_MODERATOR:"S\xf3lo el MODERADOR puede iniciar la grabaci\xf3n"}},dR={SESSION:"Hubo un error al conectar a la sesi\xf3n",CONNECTION:"Sin conexi\xf3n",RECONNECT:"Intentando reconectar a la sesi\xf3n...",TOGGLE_CAMERA:"Hubo un error cambiando la c\xe1mara",TOGGLE_MICROPHONE:"Hubo un error cambiando el micr\xf3fono",SCREEN_SHARING:"Hubo un error compartiendo pantalla",SCREEN_SUPPORT:"Tu navegador no soporta la pantalla compartida",MEDIA_ACCESS:"No se ha podido acceder a tus dispositivos",DEVICE_NOT_FOUND:"No se han encontrado dispositivos de audio o video. Por favor, conecta al menos uno.",SST_CONNECTION:"Conexi\xf3n perdida. Reconectando al servicio de transcripci\xf3n a texto..."},tie=Object.freeze({__proto__:null,ADMIN:sR,PREJOIN:aR,TOOLBAR:lR,STREAM:cR,PANEL:uR,ERRORS:dR,default:{ADMIN:sR,PREJOIN:aR,TOOLBAR:lR,STREAM:cR,PANEL:uR,ERRORS:dR}}),hR={LOGIN:"Connexion",SECRET:"Secret",SECRET_REQURED:"Le secret est requis",DASHBOARD:"Tableau de bord",NO_RECORDINGS:"Il n'y a pas d'enregistrements",SEARCH:"Rechercher un enregistrement",DATE:"Date",DURATION:"Dur\xe9e",SIZE:"Taille",STATUS:"Statut",NAME:"Nom",SESSION:"Session",OUTPUT:"Mode de sortie",POWERED_BY:"Aliment\xe9 par"},fR={NICKNAME_SECTION:"D\xe9finir votre surnom",NICKNAME:"Surnom",DEVICE_SECTION:"Choisissez vos appareils",VIDEO_DEVICE:"P\xe9riph\xe9rique vid\xe9o",AUDIO_DEVICE:"P\xe9riph\xe9rique audio",NO_VIDEO_DEVICE:"Appareil vid\xe9o introuvable",NO_AUDIO_DEVICE:"Appareil audio introuvable",JOIN:"Joindre une session",PREPARING:"Pr\xe9paration de la session ..."},pR={MUTE_AUDIO:"Mettez votre audio en sourdine",UNMUTE_AUDIO:"D\xe9sactiver le son",MUTE_VIDEO:"Couper le son de votre vid\xe9o",UNMUTE_VIDEO:"Unmute your video",ENABLE_SCREEN:"Activer le partage d'\xe9cran",DISABLE_SCREEN:"D\xe9sactiver le partage d'\xe9cran",MORE_OPTIONS:"Plus d'options",FULLSCREEN:"Plein \xe9cran",EXIT_FULLSCREEN:"Quitter le plein \xe9cran",ENABLE_CAPTIONS:"Activer les sous-titres",DISABLE_CAPTIONS:"D\xe9sactiver les sous-titres",BACKGROUND:"Effets de fond",START_RECORDING:"d\xe9marrer l'enregistrement",STOP_RECORDING:"Arr\xeater l'enregistrement",SETTINGS:"Param\xe8tres",LEAVE:"Quitter la session",PARTICIPANTS:"Participants",CHAT:"Chat",ACTIVITES:"Activit\xe9s"},gR={SETTINGS:"Param\xe8tres",MUTE_SOUND:"Couper le son",UNMUTE_SOUND:"D\xe9sactiver le son",ZOOM_IN:"Zoom avant",ZOOM_OUT:"Zoom arri\xe8re",REPLACE_SCREEN:"Remplacer l'\xe9cran"},mR={CLOSE:"Fermer",SEE_MORE:"Voir plus",PRO_FEATURE:"Cette fonctionnalit\xe9 fait partie de la gamme OpenVidu PRO",CHAT:{TITLE:"Chat",YOU:"Vous",SUBTITLE:"Les messages seront supprim\xe9s \xe0 la fin de la session",PLACEHOLDER:"Envoyer un message...",SEND:"Envoyer"},PARTICIPANTS:{TITLE:"Participants",CAMERA:"CAM\xc9RA",SCREEN:"\xc9CRAN"},SETTINGS:{TITLE:"Param\xe8tres",GENERAL:"G\xe9n\xe9ral",VIDEO:"Vid\xe9o",AUDIO:"l'audio",LANGUAGE:"Langue",CAPTIONS:"Les sous-titres",CAPTIONS_LANG_TEXT:"S\xe9lectionnez la langue que les participants de la session utiliseront. Les sous-titres appara\xeetront dans cette langue."},BACKGROUND:{TITLE:"Effets de fond",BLURRED_SECTION:"Aucun effet et arri\xe8re-plan flou",NO_EFFECTS:"Aucun effet de fond",BLURRED_EFFECT:"Arri\xe8re-plan flou",IMAGES_SECTION:"Images d'arri\xe8re-plan"},RECORDING:{TITLE:"Enregistrement",SUBTITLE:"Enregistrez votre r\xe9union pour la post\xe9rit\xe9",CONTENT_TITLE:"Enregistrez votre appel vid\xe9o",CONTENT_SUBTITLE:"Une fois l'enregistrement termin\xe9, vous pourrez le t\xe9l\xe9charger facilement",STARTING:"D\xe9but de l'enregistrement",STOPPING:"Arr\xeat de l'enregistrement",PLAY:"Jouer",DELETE:"Effacer",CANCEL:"Annuler",DELETE_QUESTION:"Voulez-vous vraiment supprimer l'enregistrement\xa0?",DOWNLOAD:"T\xe9l\xe9charger",RECORDINGS:"ENREGISTREMENTS",NO_MODERATOR:"Seul le MODERATEUR peut lancer l'enregistrement"}},vR={SESSION:"There was an error connecting to the session",CONNECTION:"Connexion perdue",RECONNECT:"Oups ! Tentative de reconnexion \xe0 la session...",TOGGLE_CAMERA:"There was an error toggle camera",TOGGLE_MICROPHONE:"There was an error toggling microhpone",SCREEN_SHARING:"Erreur de partage d'\xe9cran",SCREEN_SUPPORT:"Votre navigateur ne prend pas en charge le partage d'\xe9cran",MEDIA_ACCESS:"L'acc\xe8s aux p\xe9riph\xe9riques m\xe9dias n'a pas \xe9t\xe9 autoris\xe9",DEVICE_NOT_FOUND:"Aucun p\xe9riph\xe9rique vid\xe9o ou audio n'a \xe9t\xe9 trouv\xe9. Veuillez en connecter au moins un.",SST_CONNECTION:"Connexion perdue. Reconnexion au service de reconnaissance vocale..."},iie=Object.freeze({__proto__:null,ADMIN:hR,PREJOIN:fR,TOOLBAR:pR,STREAM:gR,PANEL:mR,ERRORS:vR,default:{ADMIN:hR,PREJOIN:fR,TOOLBAR:pR,STREAM:gR,PANEL:mR,ERRORS:vR}}),_R={LOGIN:"\u0932\u0949\u0917 \u0907\u0928 \u0915\u0930\u0947\u0902",SECRET:"\u0917\u0941\u092a\u094d\u0924",SECRET_REQURED:"\u0930\u0939\u0938\u094d\u092f \u0915\u0940 \u0906\u0935\u0936\u094d\u092f\u0915\u0924\u093e \u0939\u0948",DASHBOARD:"\u0921\u0948\u0936\u092c\u094b\u0930\u094d\u0921",NO_RECORDINGS:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0928\u0939\u0940\u0902 \u0939\u0948\u0902",SEARCH:"\u090f\u0915 \u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0916\u094b\u091c\u0947\u0902",DATE:"\u0926\u093f\u0928\u093e\u0902\u0915",DURATION:"\u0905\u0935\u0927\u093f",SIZE:"\u0906\u0915\u093e\u0930",STATUS:"\u0926\u0930\u094d\u091c\u093e",NAME:"\u0928\u093e\u092e",SESSION:"\u0938\u0924\u094d\u0930",OUTPUT:"\u0906\u0909\u091f\u092a\u0941\u091f \u092e\u094b\u0921",POWERED_BY:"\u0926\u094d\u0935\u093e\u0930\u093e \u0938\u0902\u091a\u093e\u0932\u093f\u0924"},bR={NICKNAME_SECTION:"\u0905\u092a\u0928\u093e \u0928\u093f\u0915\u0928\u0947\u092e \u0938\u0947\u091f \u0915\u0930\u0947\u0902",NICKNAME:"\u0928\u093f\u0915\u0928\u0947\u092e",DEVICE_SECTION:"\u0905\u092a\u0928\u0947 \u0921\u093f\u0935\u093e\u0907\u0938 \u091a\u0941\u0928\u0947\u0902",VIDEO_DEVICE:"\u0935\u0940\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938",AUDIO_DEVICE:"\u0911\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938",NO_VIDEO_DEVICE:"\u0935\u0940\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938 \u0928\u0939\u0940\u0902 \u092e\u093f\u0932\u093e",NO_AUDIO_DEVICE:"\u0911\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938 \u0928\u0939\u0940\u0902 \u092e\u093f\u0932\u093e",JOIN:"\u0938\u0924\u094d\u0930 \u092e\u0947\u0902 \u0936\u093e\u092e\u093f\u0932 \u0939\u094b\u0902",PREPARING:"\u0938\u0924\u094d\u0930 \u0924\u0948\u092f\u093e\u0930 \u0915\u0930 \u0930\u0939\u093e \u0939\u0948 ..."},yR={MUTE_AUDIO:"\u0905\u092a\u0928\u0940 \u0911\u0921\u093f\u092f\u094b \u0915\u094b \u092e\u094c\u0928 \u0915\u0930\u0947\u0902",UNMUTE_AUDIO:"\u0905\u092a\u0928\u0940 \u0911\u0921\u093f\u092f\u094b \u0915\u094b \u0905\u0928\u092e\u094c\u0928 \u0915\u0930\u0947\u0902",MUTE_VIDEO:"\u0905\u092a\u0928\u0940 \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u094b \u092e\u094c\u0928 \u0915\u0930\u0947\u0902",UNMUTE_VIDEO:"\u0905\u092a\u0928\u0940 \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u094b \u0905\u0928\u092e\u094c\u0928 \u0915\u0930\u0947\u0902",ENABLE_SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0936\u0947\u092f\u0930 \u0938\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",DISABLE_SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0936\u0947\u092f\u0930 \u0905\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",MORE_OPTIONS:"\u0905\u0927\u093f\u0915 \u0935\u093f\u0915\u0932\u094d\u092a",FULLSCREEN:"\u092a\u0942\u0930\u094d\u0923 \u0938\u094d\u0915\u094d\u0930\u0940\u0928",EXIT_FULLSCREEN:"\u092a\u0942\u0930\u094d\u0923 \u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0938\u0947 \u092c\u093e\u0939\u0930 \u0928\u093f\u0915\u0932\u0947\u0902",ENABLE_CAPTIONS:"\u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915 \u0938\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",DISABLE_CAPTIONS:"\u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915 \u0905\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",BACKGROUND:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u092a\u094d\u0930\u092d\u093e\u0935",START_RECORDING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u092a\u094d\u0930\u093e\u0930\u0902\u092d \u0915\u0930\u0947\u0902",STOP_RECORDING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0930\u094b\u0915\u0947\u0902",SETTINGS:"\u0938\u0947\u091f\u093f\u0902\u0917\u094d\u0938",LEAVE:"\u0938\u0924\u094d\u0930 \u091b\u094b\u0921\u093c\u0947\u0902",PARTICIPANTS:"\u0938\u0926\u0938\u094d\u092f",CHAT:"\u092c\u093e\u0924\u091a\u0940\u0924",ACTIVITIES:"\u0917\u0924\u093f\u0935\u093f\u0927\u093f\u092f\u093e\u0901"},CR={SETTINGS:"\u0938\u0947\u091f\u093f\u0902\u0917\u094d\u0938",MUTE_SOUND:"\u0927\u094d\u0935\u0928\u093f \u092c\u0902\u0926 \u0915\u0930\u0947\u0902",UNMUTE_SOUND:"\u0927\u094d\u0935\u0928\u093f \u091a\u093e\u0932\u0942 \u0915\u0930\u0947\u0902",ZOOM_IN:"\u091c\u093c\u0942\u092e \u0907\u0928 \u0915\u0930\u0947\u0902",ZOOM_OUT:"\u091c\u093c\u0942\u092e \u0906\u0909\u091f \u0915\u0930\u0947\u0902",REPLACE_SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0915\u094b \u092c\u0926\u0932\u0947\u0902"},ER={CLOSE:"\u092c\u0902\u0926 \u0915\u0930\u0947\u0902",SEE_MORE:"\u0914\u0930 \u0926\u0947\u0916\u0947\u0902",PRO_FEATURE:"\u092f\u0939 \u0938\u0941\u0935\u093f\u0927\u093e OpenVidu PRO \u091f\u093e\u092f\u0930 \u0915\u093e \u0939\u093f\u0938\u094d\u0938\u093e \u0939\u0948",CHAT:{TITLE:"\u092c\u093e\u0924\u091a\u0940\u0924",YOU:"\u0906\u092a",SUBTITLE:"\u0938\u0924\u094d\u0930 \u0938\u092e\u093e\u092a\u094d\u0924 \u0939\u094b\u0928\u0947 \u092a\u0930 \u0938\u0902\u0926\u0947\u0936 \u0939\u091f\u093e \u0926\u093f\u090f \u091c\u093e\u090f\u0902\u0917\u0947",PLACEHOLDER:"\u090f\u0915 \u0938\u0902\u0926\u0947\u0936 \u092d\u0947\u091c\u0947\u0902 ...",SEND:"\u092d\u0947\u091c\u0947\u0902"},PARTICIPANTS:{TITLE:"\u0938\u0926\u0938\u094d\u092f",CAMERA:"\u0915\u0948\u092e\u0930\u093e",SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928"},SETTINGS:{TITLE:"\u0938\u0947\u091f\u093f\u0902\u0917\u094d\u0938",GENERAL:"\u0938\u093e\u092e\u093e\u0928\u094d\u092f",VIDEO:"\u0935\u0940\u0921\u093f\u092f\u094b",AUDIO:"\u0911\u0921\u093f\u092f\u094b",LANGUAGE:"\u092d\u093e\u0937\u093e",CAPTIONS:"\u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915",CAPTIONS_LANG_TEXT:"\u0909\u0938 \u092d\u093e\u0937\u093e \u0915\u093e \u091a\u092f\u0928 \u0915\u0930\u0947\u0902 \u091c\u093f\u0938\u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0938\u0924\u094d\u0930 \u0915\u0947 \u092a\u094d\u0930\u0924\u093f\u092d\u093e\u0917\u0940 \u0915\u0930\u0947\u0902\u0917\u0947\u0964 \u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915 \u0909\u0938 \u092d\u093e\u0937\u093e \u092e\u0947\u0902 \u0926\u093f\u0916\u093e\u0908 \u0926\u0947\u0902\u0917\u0947\u0964"},BACKGROUND:{TITLE:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u092a\u094d\u0930\u092d\u093e\u0935",BLURRED_SECTION:"\u0915\u094b\u0908 \u092a\u094d\u0930\u092d\u093e\u0935 \u0928\u0939\u0940\u0902 \u0939\u0948 \u0914\u0930 \u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u0927\u0941\u0902\u0927\u0932\u0940 \u0939\u0948",NO_EFFECTS:"\u0915\u094b\u0908 \u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u092a\u094d\u0930\u092d\u093e\u0935 \u0928\u0939\u0940\u0902 \u0939\u0948",BLURRED_EFFECT:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u0927\u0941\u0902\u0927\u0932\u0940 \u0939\u0948",IMAGES_SECTION:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u091b\u0935\u093f\u092f\u093e\u0902"},RECORDING:{TITLE:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917",SUBTITLE:"\u0905\u092a\u0928\u0940 \u092c\u0948\u0920\u0915 \u0915\u094b \u092d\u093e\u0935\u0940 \u092a\u0940\u0922\u093c\u0940 \u0915\u0947 \u0932\u093f\u090f \u0930\u093f\u0915\u0949\u0930\u094d\u0921 \u0915\u0930\u0947\u0902",CONTENT_TITLE:"\u0905\u092a\u0928\u093e \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u0949\u0932 \u0930\u093f\u0915\u0949\u0930\u094d\u0921 \u0915\u0930\u0947\u0902",CONTENT_SUBTITLE:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0938\u092e\u093e\u092a\u094d\u0924 \u0939\u094b \u091c\u093e\u0928\u0947 \u092a\u0930 \u0906\u092a \u0907\u0938\u0947 \u0906\u0938\u093e\u0928\u0940 \u0938\u0947 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930 \u0938\u0915\u0947\u0902\u0917\u0947",STARTING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0936\u0941\u0930\u0942 \u0915\u0930 \u0930\u0939\u093e \u0939\u0948",STOPPING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u092c\u0902\u0926 \u0915\u0930\u0928\u093e",PLAY:"\u0916\u0947\u0932\u0947\u0902",DELETE:"\u092e\u093f\u091f\u093e\u0928\u093e",CANCEL:"\u0930\u0926\u094d\u0926 \u0915\u0930\u0928\u093e",DELETE_QUESTION:"\u0915\u094d\u092f\u093e \u0906\u092a \u0935\u093e\u0915\u0908 \u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0939\u091f\u093e\u0928\u093e \u091a\u093e\u0939\u0924\u0947 \u0939\u0948\u0902",DOWNLOAD:"\u0921\u093e\u0909\u0928\u0932\u094b\u0921",RECORDINGS:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917",NO_MODERATOR:"\u0915\u0947\u0935\u0932 \u092e\u0949\u0921\u0930\u0947\u091f\u0930 \u0939\u0940 \u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0936\u0941\u0930\u0942 \u0915\u0930 \u0938\u0915\u0924\u093e \u0939\u0948"}},SR={SESSION:"\u0938\u0924\u094d\u0930 \u0938\u0947 \u091c\u0941\u0921\u093c\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f \u0939\u0941\u0908",CONNECTION:"\u0915\u0928\u0947\u0915\u094d\u0936\u0928 \u0916\u094b \u0917\u092f\u093e",RECONNECT:"\u0913\u0939! \u0938\u0924\u094d\u0930 \u0938\u0947 \u092b\u093f\u0930 \u0938\u0947 \u0915\u0928\u0947\u0915\u094d\u091f \u0915\u0930\u0928\u0947 \u0915\u093e \u092a\u094d\u0930\u092f\u093e\u0938 \u0915\u0930 \u0930\u0939\u093e \u0939\u0948",TOGGLE_CAMERA:"\u0915\u0948\u092e\u0930\u093e \u091f\u0949\u0917\u0932 \u0915\u0930\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f \u0939\u0941\u0908",TOGGLE_MICROPHONE:"\u092e\u093e\u0907\u0915\u094d\u0930\u094b\u092b\u093c\u094b\u0928 \u0915\u094b \u091a\u093e\u0932\u0942 \u0915\u0930\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f \u0939\u0941\u0908",SCREEN_SHARING:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0938\u093e\u091d\u093e \u0915\u0930\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f",SCREEN_SUPPORT:"\u0906\u092a\u0915\u093e \u092c\u094d\u0930\u093e\u0909\u091c\u093c\u0930 \u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0938\u093e\u091d\u093e\u0915\u0930\u0923 \u0915\u093e \u0938\u092e\u0930\u094d\u0925\u0928 \u0928\u0939\u0940\u0902 \u0915\u0930\u0924\u093e",MEDIA_ACCESS:"\u092e\u0940\u0921\u093f\u092f\u093e \u0909\u092a\u0915\u0930\u0923\u094b\u0902 \u0924\u0915 \u092a\u0939\u0941\u0902\u091a \u0915\u0940 \u0905\u0928\u0941\u092e\u0924\u093f \u0928\u0939\u0940\u0902 \u0925\u0940\u0964",DEVICE_NOT_FOUND:"\u0915\u094b\u0908 \u0935\u0940\u0921\u093f\u092f\u094b \u092f\u093e \u0911\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938 \u0928\u0939\u0940\u0902 \u092e\u093f\u0932\u093e\u0964 \u0915\u0943\u092a\u092f\u093e, \u0915\u092e \u0938\u0947 \u0915\u092e \u090f\u0915 \u0915\u0928\u0947\u0915\u094d\u091f \u0915\u0930\u0947\u0902\u0964",SST_CONNECTION:"\u0916\u094b\u092f\u093e \u0924\u093e\u0930\u0964 \u0932\u0947\u0916 \u0938\u0947\u0935\u093e \u0938\u0947 \u0932\u093f\u092a\u094d\u092f\u0902\u0924\u0930\u0923 \u0938\u0947 \u092a\u0941\u0928: \u0915\u0928\u0947\u0915\u094d\u091f \u0939\u094b \u0930\u0939\u093e \u0939\u0948..."},rie=Object.freeze({__proto__:null,ADMIN:_R,PREJOIN:bR,TOOLBAR:yR,STREAM:CR,PANEL:ER,ERRORS:SR,default:{ADMIN:_R,PREJOIN:bR,TOOLBAR:yR,STREAM:CR,PANEL:ER,ERRORS:SR}}),AR={LOGIN:"Login",SECRET:"Segreto",SECRET_REQURED:"Il segreto \xe8 richiesto",DASHBOARD:"Pannello di controllo",NO_RECORDINGS:"Non ci sono registrazioni",SEARCH:"Cerca una registrazione",DATE:"Data",DURATION:"Durata",SIZE:"Dimensione",STATUS:"Stato",NAME:"Nome",SESSION:"Sessione",OUTPUT:"Modalit\xe0 di uscita",POWERED_BY:"Offerto da"},wR={NICKNAME_SECTION:"Imposta il tuo soprannome",NICKNAME:"Soprannome",DEVICE_SECTION:"Scegli i tuoi dispositivi",VIDEO_DEVICE:"Dispositivo video",AUDIO_DEVICE:"Dispositivo audio",NO_VIDEO_DEVICE:"Dispositivo video non trovato",NO_AUDIO_DEVICE:"Dispositivo audio non trovato",JOIN:"Unisciti alla sessione",PREPARING:"Preparazione della sessione in corso..."},DR={MUTE_AUDIO:"Disattiva l'audio",UNMUTE_AUDIO:"Attiva l'audio",MUTE_VIDEO:"Disattiva il video",UNMUTE_VIDEO:"Attiva il video",ENABLE_SCREEN:"Abilita la condivisione dello schermo",DISABLE_SCREEN:"Disabilita la condivisione dello schermo",MORE_OPTIONS:"Altre opzioni",FULLSCREEN:"Schermo intero",EXIT_FULLSCREEN:"Esci dallo schermo intero",ENABLE_CAPTIONS:"Abilita i sottotitoli",DISABLE_CAPTIONS:"Disabilita i sottotitoli",BACKGROUND:"Effetti di sfondo",START_RECORDING:"Avvia registrazione",STOP_RECORDING:"Interrompi registrazione",SETTINGS:"Impostazioni",LEAVE:"Abbandona la sessione",PARTICIPANTS:"Partecipanti",CHAT:"Chat",ACTIVITIES:"Attivit\xe0"},MR={SETTINGS:"Impostazioni",MUTE_SOUND:"Disattiva l'audio",UNMUTE_SOUND:"Attiva l'audio",ZOOM_IN:"Ingrandisci",ZOOM_OUT:"Riduci",REPLACE_SCREEN:"Sostituisci lo schermo"},TR={CLOSE:"Chiudi",SEE_MORE:"Vedi di pi\xf9",PRO_FEATURE:"Questa funzione fa parte del livello OpenVidu PRO",CHAT:{TITLE:"Chat",YOU:"Tu",SUBTITLE:"I messaggi verranno rimossi alla fine della sessione",PLACEHOLDER:"Invia un messaggio...",SEND:"Invia"},PARTICIPANTS:{TITLE:"Partecipanti",CAMERA:"CAMERA",SCREEN:"SCREEN"},SETTINGS:{TITLE:"Impostazioni",GENERAL:"Generale",VIDEO:"video",AUDIO:"Audio",LANGUAGE:"Lingua",CAPTIONS:"Sottotitoli",CAPTIONS_LANG_TEXT:"Seleziona la lingua che i partecipanti della sessione useranno. I sottotitoli appariranno in quella lingua."},BACKGROUND:{TITLE:"Effetti di sfondo",BLURRED_SECTION:"Nessun effetto e sfondo sfocato",NO_EFFECTS:"Nessun effetto di sfondo",BLURRED_EFFECT:"Sfondo sfocato",IMAGES_SECTION:"Immagini di sfondo"},RECORDING:{TITLE:"Registrazione",SUBTITLE:"Registra la tua riunione per i posteri",CONTENT_TITLE:"Registra la tua videochiamata",CONTENT_SUBTITLE:"Al termine della registrazione potrete scaricarla con facilit\xe0",STARTING:"Avvio della registrazione",STOPPING:"Interruzione della registrazione",PLAY:"Giocare a",DELETE:"Elimina",CANCEL:"Annulla",DELETE_QUESTION:"Sei sicuro di voler eliminare la registrazione?",DOWNLOAD:"Scarica",RECORDINGS:"REGISTRAZIONI",NO_MODERATOR:"Solo il MODERATORE pu\xf2 avviare la registrazione"}},xR={SESSION:"Si \xe8 verificato un errore di connessione alla sessione",CONNECTION:"Connessione persa",RECONNECT:"Oops! Si sta cercando di riconnettersi alla sessione...",TOGGLE_CAMERA:"Si \xe8 verificato un errore nell'attivazione della telecamera",TOGGLE_MICROPHONE:"Si \xe8 verificato un errore nell'attivazione del microfono",SCREEN_SHARING:"Errore nella condivisione dello schermo",SCREEN_SUPPORT:"Il browser non supporta la condivisione dello schermo",MEDIA_ACCESS:"L'accesso ai dispositivi multimediali non \xe8 stato consentito",DEVICE_NOT_FOUND:"Non sono stati trovati dispositivi video o audio. Si prega di collegarne almeno uno",SST_CONNECTION:"Connessione persa. Riconnessione al servizio di conversione testo da audio in corso..."},aie=Object.freeze({__proto__:null,ADMIN:AR,PREJOIN:wR,TOOLBAR:DR,STREAM:MR,PANEL:TR,ERRORS:xR,default:{ADMIN:AR,PREJOIN:wR,TOOLBAR:DR,STREAM:MR,PANEL:TR,ERRORS:xR}}),OR={LOGIN:"\u30ed\u30b0\u30a4\u30f3",SECRET:"\u3072\u307f\u3064",SECRET_REQURED:"\u79d8\u5bc6\u304c\u5fc5\u8981\u3067\u3059",DASHBOARD:"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9",NO_RECORDINGS:"\u9332\u97f3\u306f\u3042\u308a\u307e\u305b\u3093",SEARCH:"\u9332\u97f3\u3092\u691c\u7d22\u3059\u308b",DATE:"\u65e5\u306b\u3061",DURATION:"\u9593\u9694",SIZE:"\u30b5\u30a4\u30ba",STATUS:"\u72b6\u614b",NAME:"\u540d\u524d",SESSION:"\u30bb\u30c3\u30b7\u30e7\u30f3",OUTPUT:"\u51fa\u529b\u30e2\u30fc\u30c9",POWERED_BY:"\u642d\u8f09"},IR={NICKNAME_SECTION:"\u30cb\u30c3\u30af\u30cd\u30fc\u30e0\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044",NICKNAME:"\u30cb\u30c3\u30af\u30cd\u30fc\u30e0",DEVICE_SECTION:"\u30c7\u30d0\u30a4\u30b9\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044",VIDEO_DEVICE:"\u30d3\u30c7\u30aa\u30c7\u30d0\u30a4\u30b9",AUDIO_DEVICE:"\u30aa\u30fc\u30c7\u30a3\u30aa\u30c7\u30d0\u30a4\u30b9",NO_VIDEO_DEVICE:"\u30d3\u30c7\u30aa\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093",NO_AUDIO_DEVICE:"\u30aa\u30fc\u30c7\u30a3\u30aa\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093",JOIN:"\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u53c2\u52a0\u3059\u308b",PREPARING:"\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u6e96\u5099\u4e2d..."},RR={MUTE_AUDIO:"\u30aa\u30fc\u30c7\u30a3\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3059\u308b",UNMUTE_AUDIO:"\u30aa\u30fc\u30c7\u30a3\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3057\u306a\u3044",MUTE_VIDEO:"\u30d3\u30c7\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3059\u308b",UNMUTE_VIDEO:"\u30d3\u30c7\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3057\u306a\u3044",ENABLE_SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3\u5171\u6709\u3092\u6709\u52b9\u306b\u3059\u308b",DISABLE_SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3\u5171\u6709\u3092\u7121\u52b9\u306b\u3059\u308b",MORE_OPTIONS:"\u305d\u306e\u4ed6\u306e\u30aa\u30d7\u30b7\u30e7\u30f3",FULLSCREEN:"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3",EXIT_FULLSCREEN:"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u7d42\u4e86\u3059\u308b",ENABLE_CAPTIONS:"\u5b57\u5e55\u3092\u6709\u52b9\u306b\u3059\u308b",DISABLE_CAPTIONS:"\u5b57\u5e55\u3092\u7121\u52b9\u306b\u3059\u308b",BACKGROUND:"\u80cc\u666f\u52b9\u679c",START_RECORDING:"\u9332\u753b\u958b\u59cb",STOP_RECORDING:"\u9332\u753b\u306e\u505c\u6b62",SETTINGS:"\u8a2d\u5b9a",LEAVE:"\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u7d42\u4e86\u3059\u308b",PARTICIPANTS:"\u53c2\u52a0\u8005",CHAT:"\u30c1\u30e3\u30c3\u30c8",ACTIVITIES:"\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3"},PR={SETTINGS:"\u8a2d\u5b9a",MUTE_SOUND:"\u30b5\u30a6\u30f3\u30c9\u3092\u30df\u30e5\u30fc\u30c8\u3059\u308b",UNMUTE_SOUND:"\u30b5\u30a6\u30f3\u30c9\u3092\u30df\u30e5\u30fc\u30c8\u3057\u306a\u3044",ZOOM_IN:"\u62e1\u5927\u3059\u308b",ZOOM_OUT:"\u7e2e\u5c0f\u3059\u308b",REPLACE_SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u5165\u308c\u66ff\u3048\u308b"},kR={CLOSE:"\u9589\u3058\u308b",PRO_FEATURE:"\u3053\u306e\u6a5f\u80fd\u306fOpenVidu PRO\u306e\u6a5f\u80fd\u3067\u3059",SEE_MORE:"\u3082\u3063\u3068\u898b\u308b",CHAT:{TITLE:"\u30c1\u30e3\u30c3\u30c8",YOU:"\u3042\u306a\u305f",SUBTITLE:"\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u30bb\u30c3\u30b7\u30e7\u30f3\u7d42\u4e86\u6642\u306b\u524a\u9664\u3055\u308c\u307e\u3059",PLACEHOLDER:"\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1...",SEND:"\u9001\u4fe1\u3059\u308b"},PARTICIPANTS:{TITLE:"\u53c2\u52a0\u8005",CAMERA:"\u30ab\u30e1\u30e9",SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3"},SETTINGS:{TITLE:"\u8a2d\u5b9a",GENERAL:"\u5168\u822c\u7684",VIDEO:"\u30d3\u30c7\u30aa",AUDIO:"\u30aa\u30fc\u30c7\u30a3\u30aa",LANGUAGE:"\u8a00\u8a9e",CAPTIONS:"\u5b57\u5e55",CAPTIONS_LANG_TEXT:"\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u53c2\u52a0\u8005\u304c\u4f7f\u7528\u3059\u308b\u8a00\u8a9e\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3\u306f\u305d\u306e\u8a00\u8a9e\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002"},BACKGROUND:{TITLE:"\u80cc\u666f\u52b9\u679c",BLURRED_SECTION:"\u30a8\u30d5\u30a7\u30af\u30c8\u306a\u3057\u3001\u307c\u3084\u3051\u305f\u80cc\u666f",NO_EFFECTS:"\u80cc\u666f\u30a8\u30d5\u30a7\u30af\u30c8\u306a\u3057",BLURRED_EFFECT:"\u307c\u3084\u3051\u305f\u80cc\u666f",IMAGES_SECTION:"\u80cc\u666f\u753b\u50cf"},RECORDING:{TITLE:"\u30ec\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0",SUBTITLE:"\u4f1a\u8b70\u3092\u9332\u97f3\u3057\u3066\u5f8c\u4e16\u306b\u6b8b\u3059",CONTENT_TITLE:"\u30d3\u30c7\u30aa\u901a\u8a71\u3092\u9332\u97f3\u3059\u308b",CONTENT_SUBTITLE:"\u9332\u97f3\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u7c21\u5358\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059",STARTING:"\u9332\u753b\u958b\u59cb",STOPPING:"\u9332\u97f3\u3092\u505c\u6b62\u3057\u307e\u3059",PLAY:"\u904a\u3076",DELETE:"\u6d88\u53bb",CANCEL:"\u30ad\u30e3\u30f3\u30bb\u30eb",DELETE_QUESTION:"\u9332\u97f3\u3092\u524a\u9664\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b",DOWNLOAD:"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9",RECORDINGS:"\u9332\u753b",NO_MODERATOR:"\u9332\u97f3\u3092\u958b\u59cb\u3067\u304d\u308b\u306e\u306f\u3001\u30e2\u30c7\u30ec\u30fc\u30bf\u30fc\u306e\u307f\u3067\u3059"}},NR={SESSION:"\u30bb\u30c3\u30b7\u30e7\u30f3\u3078\u306e\u63a5\u7d9a\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",CONNECTION:"\u63a5\u7d9a\u304c\u5931\u308f\u308c\u307e\u3057\u305f",RECONNECT:"\u30bb\u30c3\u30b7\u30e7\u30f3\u3078\u306e\u518d\u63a5\u7d9a\u3092\u8a66\u307f\u3066\u3044\u307e\u3059",TOGGLE_CAMERA:"\u30ab\u30e1\u30e9\u306e\u30c8\u30b0\u30eb\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",TOGGLE_MICROPHONE:"\u30de\u30a4\u30af\u30ed\u30d5\u30a9\u30f3\u306e\u30c8\u30b0\u30eb\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",SCREEN_SHARING:"\u753b\u9762\u5171\u6709\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",SCREEN_SUPPORT:"\u304a\u4f7f\u3044\u306e\u30d6\u30e9\u30a6\u30b6\u306f\u753b\u9762\u5171\u6709\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093",MEDIA_ACCESS:"\u30e1\u30c7\u30a3\u30a2\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u8a31\u53ef\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f",DEVICE_NOT_FOUND:"\u30d3\u30c7\u30aa\u307e\u305f\u306f\u30aa\u30fc\u30c7\u30a3\u30aa\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f \u6700\u4f4e1\u53f0\u306f\u63a5\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044",SST_CONNECTION:"\u63a5\u7d9a\u304c\u5931\u308f\u308c\u307e\u3057\u305f\u3002\u97f3\u58f0\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u3078\u306e\u5909\u63db\u30b5\u30fc\u30d3\u30b9\u306b\u518d\u63a5\u7d9a\u3057\u3066\u3044\u307e\u3059"},cie=Object.freeze({__proto__:null,ADMIN:OR,PREJOIN:IR,TOOLBAR:RR,STREAM:PR,PANEL:kR,ERRORS:NR,default:{ADMIN:OR,PREJOIN:IR,TOOLBAR:RR,STREAM:PR,PANEL:kR,ERRORS:NR}}),LR={LOGIN:"Log in",SECRET:"Geheim",SECRET_REQURED:"Geheim is vereist",DASHBOARD:"Dashboard",NO_RECORDINGS:"Er zijn geen opnames",SEARCH:"Een opname zoeken",DATE:"Datum",DURATION:"Looptijd",SIZE:"Maat",STATUS:"Toestand",NAME:"Naam",SESSION:"Sessie",OUTPUT:"Uitgangsmodus",POWERED_BY:"Aangedreven door"},FR={NICKNAME_SECTION:"Stel je bijnaam in",NICKNAME:"Bijnaam",DEVICE_SECTION:"Kies je apparaten",VIDEO_DEVICE:"Videospeler",AUDIO_DEVICE:"Audiospeler",NO_VIDEO_DEVICE:"Videoapparaat niet gevonden",NO_AUDIO_DEVICE:"Audioapparaat niet gevonden",JOIN:"Deelnemen aan sessie",PREPARING:"Sessie voorbereiden ..."},BR={MUTE_AUDIO:"Audio dempen",UNMUTE_AUDIO:"Audio niet meer dempen",MUTE_VIDEO:"Video dempen",UNMUTE_VIDEO:"Video niet meer dempen",ENABLE_SCREEN:"Scherm delen inschakelen",DISABLE_SCREEN:"Scherm delen uitschakelen",MORE_OPTIONS:"Meer opties",FULLSCREEN:"Volledig scherm",EXIT_FULLSCREEN:"Volledig scherm verlaten",ENABLE_CAPTIONS:"Ondertiteling inschakelen",DISABLE_CAPTIONS:"Ondertiteling uitschakelen",BACKGROUND:"Achtergrondeffecten",START_RECORDING:"Start opname",STOP_RECORDING:"Stop opname",SETTINGS:"Instellingen",LEAVE:"Verlaat de sessie",PARTICIPANTS:"Deelnemers",CHAT:"Chat",ACTIVITIES:"Activiteiten"},VR={SETTINGS:"Instellingen",MUTE_SOUND:"Geluid dempen",UNMUTE_SOUND:"Geluid niet meer dempen",ZOOM_IN:"Inzoomen",ZOOM_OUT:"Uitzoomen",REPLACE_SCREEN:"Vervang scherm"},jR={CLOSE:"Sluiten",SEE_MORE:"Zie meer",PRO_FEATURE:"Deze functie is onderdeel van OpenVidu PRO tier",CHAT:{TITLE:"Chat",YOU:"Jij",SUBTITLE:"Berichten worden aan het einde van de sessie verwijderd",PLACEHOLDER:"Stuur een bericht ...",SEND:"Versturen"},PARTICIPANTS:{TITLE:"Deelnemers",CAMERA:"CAMERA",SCREEN:"SCHERM"},SETTINGS:{TITLE:"Instellingen",GENERAL:"Algemeen",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Taal",CAPTIONS:"Ondertitels",CAPTIONS_LANG_TEXT:"Selecteer de taal die de deelnemers van de sessie zullen gebruiken. De ondertiteling zal in die taal verschijnen."},BACKGROUND:{TITLE:"Achtergrondeffecten",BLURRED_SECTION:"Geen effecten en onscherpe achtergrond",NO_EFFECTS:"Geen achtergrondeffect",BLURRED_EFFECT:"Onscherpe achtergrond",IMAGES_SECTION:"Achtergrondafbeeldingen"},RECORDING:{TITLE:"Opname",SUBTITLE:"Neem uw vergadering op voor het nageslacht",CONTENT_TITLE:"Neem uw videogesprek op",CONTENT_SUBTITLE:"Als de opname klaar is kunt u deze met gemak downloaden",STARTING:"Beginnen met opnemen",STOPPING:"Opname stoppen",PLAY:"Toneelstuk",DELETE:"Verwijderen",CANCEL:"Annuleren",DELETE_QUESTION:"Weet je zeker dat je de opname wilt verwijderen?",DOWNLOAD:"Downloaden",RECORDINGS:"OPNAME",NO_MODERATOR:"Alleen de MOEDERATOR kan de opname starten"}},UR={SESSION:"Er is een fout opgetreden bij het verbinden met de sessie",CONNECTION:"Verbinding verloren",RECONNECT:"Proberen opnieuw verbinding te maken met de sessie...",TOGGLE_CAMERA:"Er is een fout opgetreden bij het overschakelen naar een andere camera",TOGGLE_MICROPHONE:"Er is een fout opgetreden bij het overschakelen naar een microfoon",SCREEN_SHARING:"Fout bij het delen van het scherm",SCREEN_SUPPORT:"Uw browser ondersteunt het delen van schermen niet",MEDIA_ACCESS:"Toegang tot media-apparaten was niet toegestaan.",DEVICE_NOT_FOUND:"Er zijn geen video- of audioapparaten gevonden. Sluit er alstublieft ten minste \xe9\xe9n aan.",SST_CONNECTION:"Verbinding verbroken. Opnieuw verbinden met de spraak-naar-tekstservice..."},die=Object.freeze({__proto__:null,ADMIN:LR,PREJOIN:FR,TOOLBAR:BR,STREAM:VR,PANEL:jR,ERRORS:UR,default:{ADMIN:LR,PREJOIN:FR,TOOLBAR:BR,STREAM:VR,PANEL:jR,ERRORS:UR}}),HR={LOGIN:"Conecte-se",SECRET:"Segredo",SECRET_REQURED:"O segredo \xe9 obrigat\xf3rio",DASHBOARD:"Painel",NO_RECORDINGS:"N\xe3o h\xe1 grava\xe7\xf5es",SEARCH:"Pesquisar uma grava\xe7\xe3o",DATE:"Encontro",DURATION:"Dura\xe7\xe3o",SIZE:"Tamanho",STATUS:"Status",NAME:"Nome",SESSION:"Sess\xe3o",OUTPUT:"Modo de sa\xedda",POWERED_BY:"Distribu\xeddo por"},GR={NICKNAME_SECTION:"Defina seu apelido",NICKNAME:"Apelido",DEVICE_SECTION:"Escolha seus dispositivos",VIDEO_DEVICE:"Dispositivo de v\xeddeo",AUDIO_DEVICE:"Dispositivo de \xe1udio",NO_VIDEO_DEVICE:"Dispositivo de v\xeddeo n\xe3o encontrado",NO_AUDIO_DEVICE:"Dispositivo de \xe1udio n\xe3o encontrado",JOIN:"Entrar na sess\xe3o",PREPARING:"Preparando sess\xe3o..."},zR={MUTE_AUDIO:"Mute seu \xe1udio",UNMUTE_AUDIO:"Desmute seu \xe1udio",MUTE_VIDEO:"Mute seu v\xeddeo",UNMUTE_VIDEO:"Desmute seu v\xeddeo",ENABLE_SCREEN:"Habilitar compartilhamento de tela",DISABLE_SCREEN:"Desabilitar compartilhamento de tela",MORE_OPTIONS:"Mais op\xe7\xf5es",FULLSCREEN:"Tela cheia",EXIT_FULLSCREEN:"Sair da tela cheia",ENABLE_CAPTIONS:"Ativar legendas",DISABLE_CAPTIONS:"Desativar legendas",BACKGROUND:"Efeitos de fundo",START_RECORDING:"Iniciar_grava\xe7\xe3o",STOP_RECORDING:"Parar de gravar",SETTINGS:"Configura\xe7\xf5es",LEAVE:"Sair da sess\xe3o",PARTICIPANTS:"Participantes",CHAT:"Chat",ACTIVITIES:"Actividades"},qR={SETTINGS:"Configura\xe7\xf5es",MUTE_SOUND:"Mudo",UNMUTE_SOUND:"Com som",ZOOM_IN:"Aumentar zoom",ZOOM_OUT:"Diminuir zoom",REPLACE_SCREEN:"Trocar tela"},WR={CLOSE:"Fechar",SEE_MORE:"Ver mais",PRO_FEATURE:"Esta funcionalidade \xe9 parte do OpenVidu PRO tier",CHAT:{TITLE:"Chat",YOU:"Voc\xea",SUBTITLE:"As mensagens ser\xe3o removidas no final da sess\xe3o",PLACEHOLDER:"Enviar uma mensagem...",SEND:"Enviar"},PARTICIPANTS:{TITLE:"Participantes",CAMERA:"C\xc2MERA",SCREEN:"TELA"},SETTINGS:{TITLE:"Configura\xe7\xf5es",GENERAL:"Em geral",VIDEO:"V\xeddeo",AUDIO:"\xc1udio",LANGUAGE:"Linguagem",CAPTIONS:"Legendas",CAPTIONS_LANG_TEXT:"Selecione o idioma que os participantes da sess\xe3o utilizar\xe3o. Os legendas aparecer\xe3o nesse idioma."},BACKGROUND:{TITLE:"Efeitos de fundo",BLURRED_SECTION:"Sem efeitos e fundo desfocado",NO_EFFECTS:"Sem efeito de fundo",BLURRED_EFFECT:"Fundo desfocado",IMAGES_SECTION:"Imagens de fundo"},RECORDING:{TITLE:"Grava\xe7\xe3o",SUBTITLE:"Grave a sua reuni\xe3o para a posteridade",CONTENT_TITLE:"Grave a sua videochamada",CONTENT_SUBTITLE:"Quando a grava\xe7\xe3o tiver terminado, poder\xe1 descarreg\xe1-la com facilidade",STARTING:"Come\xe7ar a grava\xe7\xe3o",STOPPING:"Parando a grava\xe7\xe3o",PLAY:"Toque",DELETE:"Excluir",CANCEL:"Cancelar",DELETE_QUESTION:"Tem certeza de que deseja excluir a grava\xe7\xe3o?",DOWNLOAD:"Download",RECORDINGS:"GRAVA\xc7\xd5ES",NO_MODERATOR:"S\xf3 o MODERADOR pode iniciar a grava\xe7\xe3o"}},$R={SESSION:"Houve um erro de liga\xe7\xe3o \xe0 sess\xe3o",CONNECTION:"Liga\xe7\xe3o perdida",RECONNECT:"A tentar restabelecer a liga\xe7\xe3o \xe0 sess\xe3o...",TOGGLE_CAMERA:"Houve um erro ao alternar a c\xe2mara",TOGGLE_MICROPHONE:"Houve um erro ao alternar microhpone",SCREEN_SHARING:"ecr\xe3_partilha de erros",SCREEN_SUPPORT:"O seu browser n\xe3o suporta a partilha de ecr\xe3s",MEDIA_ACCESS:"N\xe3o foi permitido o acesso a dispositivos de media",DEVICE_NOT_FOUND:"Nenhum dispositivo de v\xeddeo ou \xe1udio foi encontrado. Por favor, ligue pelo menos um",SST_CONNECTION:"Conex\xe3o perdida. Reconectando ao servi\xe7o de texto de voz..."},fie=Object.freeze({__proto__:null,ADMIN:HR,PREJOIN:GR,TOOLBAR:zR,STREAM:qR,PANEL:WR,ERRORS:$R,default:{ADMIN:HR,PREJOIN:GR,TOOLBAR:zR,STREAM:qR,PANEL:WR,ERRORS:$R}}),ii=(()=>{return(t=ii||(ii={})).USER_NICKNAME="openviduCallNickname",t.VIDEO_DEVICE="openviduCallVideoDevice",t.AUDIO_DEVICE="openviduCallAudioDevice",t.AUDIO_MUTED="openviduCallAudioMuted",t.VIDEO_MUTED="openviduCallVideoMuted",t.LANG="openviduCallLang",t.CAPTION_LANG="openviduCallCaptionLang",t.BACKGROUND="openviduCallBackground",ii;var t})();let Ft=(()=>{class t{constructor(e){this.minimal=new yt(!1),this.participantName=new yt(""),this.prejoin=new yt(!0),this.videoMuted=new yt(!1),this.audioMuted=new yt(!1),this.screenshareButton=new yt(!0),this.fullscreenButton=new yt(!0),this.captionsButton=new yt(!0),this.toolbarSettingsButton=new yt(!0),this.leaveButton=new yt(!0),this.participantsPanelButton=new yt(!0),this.chatPanelButton=new yt(!0),this.activitiesPanelButton=new yt(!0),this.displaySessionName=new yt(!0),this.displayLogo=new yt(!0),this.displayParticipantName=new yt(!0),this.displayAudioDetection=new yt(!0),this.streamSettingsButton=new yt(!0),this.participantItemMuteButton=new yt(!0),this.backgroundEffectsButton=new yt(!0),this.recordingsList=new yt([]),this.recordingButton=new yt(!0),this.recordingActivity=new yt(!0),this.recordingError=new yt(null),this.adminRecordingsList=new yt([]),this.adminLoginError=new yt(null),this.configuration=e,console.log(this.configuration),this.isProduction()&&console.log("OpenVidu Angular Production Mode"),this.minimalObs=this.minimal.asObservable(),this.participantNameObs=this.participantName.asObservable(),this.prejoinObs=this.prejoin.asObservable(),this.videoMutedObs=this.videoMuted.asObservable(),this.audioMutedObs=this.audioMuted.asObservable(),this.screenshareButtonObs=this.screenshareButton.asObservable(),this.fullscreenButtonObs=this.fullscreenButton.asObservable(),this.backgroundEffectsButtonObs=this.backgroundEffectsButton.asObservable(),this.leaveButtonObs=this.leaveButton.asObservable(),this.participantsPanelButtonObs=this.participantsPanelButton.asObservable(),this.chatPanelButtonObs=this.chatPanelButton.asObservable(),this.activitiesPanelButtonObs=this.activitiesPanelButton.asObservable(),this.displaySessionNameObs=this.displaySessionName.asObservable(),this.displayLogoObs=this.displayLogo.asObservable(),this.recordingButtonObs=this.recordingButton.asObservable(),this.toolbarSettingsButtonObs=this.toolbarSettingsButton.asObservable(),this.captionsButtonObs=this.captionsButton.asObservable(),this.displayParticipantNameObs=this.displayParticipantName.asObservable(),this.displayAudioDetectionObs=this.displayAudioDetection.asObservable(),this.streamSettingsButtonObs=this.streamSettingsButton.asObservable(),this.participantItemMuteButtonObs=this.participantItemMuteButton.asObservable(),this.recordingActivityObs=this.recordingActivity.asObservable(),this.recordingsListObs=this.recordingsList.asObservable(),this.recordingErrorObs=this.recordingError.asObservable(),this.adminRecordingsListObs=this.adminRecordingsList.asObservable(),this.adminLoginErrorObs=this.adminLoginError.asObservable()}getConfig(){return this.configuration}isProduction(){var e;return(null===(e=this.configuration)||void 0===e?void 0:e.production)||!1}hasParticipantFactory(){return"function"==typeof this.getConfig().participantFactory}getParticipantFactory(){return this.getConfig().participantFactory}}return t.\u0275fac=function(e){return new(e||t)(ie("OPENVIDU_ANGULAR_CONFIG"))},t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),or=(()=>{class t{constructor(e){this.openviduAngularConfigSrv=e,this.LOG_FNS=[],this.MSG_PREFIXES=[["[","]"],["[","] WARN: "],["[","] ERROR: "]]}getLoggerFns(e){return this.log=window.console,this.LOG_FNS=[this.log.log,this.log.warn,this.log.error],this.LOG_FNS.map((o,r)=>o.bind(this.log,this.MSG_PREFIXES[r][0]+e+this.MSG_PREFIXES[r][1]))}get(e){const i=this.openviduAngularConfigSrv.isProduction(),o=this;return{d:function(...r){i||o.getLoggerFns(e)[0].apply(this.log,arguments)},w:function(...r){o.getLoggerFns(e)[1].apply(this.log,arguments)},e:function(...r){o.getLoggerFns(e)[2].apply(this.log,arguments)}}}}return t.\u0275fac=function(e){return new(e||t)(ie(Ft))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Bo=(()=>{class t{constructor(e){this.loggerSrv=e,this.storage=window.localStorage,this.log=this.loggerSrv.get("StorageService")}getNickname(){return this.get(ii.USER_NICKNAME)}setNickname(e){this.set(ii.USER_NICKNAME,e)}getVideoDevice(){return this.get(ii.VIDEO_DEVICE)}setVideoDevice(e){this.set(ii.VIDEO_DEVICE,e)}getAudioDevice(){return this.get(ii.AUDIO_DEVICE)}setAudioDevice(e){this.set(ii.AUDIO_DEVICE,e)}isVideoMuted(){return"true"===this.get(ii.VIDEO_MUTED)}setVideoMuted(e){this.set(ii.VIDEO_MUTED,`${e}`)}isAudioMuted(){return"true"===this.get(ii.AUDIO_MUTED)}setAudioMuted(e){this.set(ii.AUDIO_MUTED,`${e}`)}setLang(e){this.set(ii.LANG,e)}getLang(){return this.get(ii.LANG)}setCaptionLang(e){this.set(ii.CAPTION_LANG,e)}getCaptionsLang(){return this.get(ii.CAPTION_LANG)}setBackground(e){this.set(ii.BACKGROUND,e)}getBackground(){return this.get(ii.BACKGROUND)}removeBackground(){this.remove(ii.BACKGROUND)}set(e,i){const o=JSON.stringify({item:i});this.storage.setItem(e,o)}get(e){const i=this.storage.getItem(e);return i?JSON.parse(i).item:null}remove(e){this.storage.removeItem(e)}clear(){this.log.d("Clearing localStorage"),this.storage.clear()}}return t.\u0275fac=function(e){return new(e||t)(ie(or))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ss=(()=>{class t{constructor(e){this.storageService=e,this.availableLanguages={en:Jne,es:tie,de:Zne,fr:iie,cn:Qne,hi:rie,it:aie,ja:cie,nl:die,pt:fie},this.langTitles=[{name:"English",ISO:"en"},{name:"Espa\xf1ol",ISO:"es"},{name:"Deutsch",ISO:"de"},{name:"Fran\xe7ais",ISO:"fr"},{name:"\u4e2d\u56fd",ISO:"cn"},{name:"\u0939\u093f\u0928\u094d\u0926\u0940",ISO:"hi"},{name:"Italiano",ISO:"it"},{name:"\u3084\u307e\u3068",ISO:"ja"},{name:"Dutch",ISO:"nl"},{name:"Portugu\xeas",ISO:"pt"}];const i=this.storageService.getLang()||"en";this.langSelected=this.langTitles.find(o=>o.ISO===i)||this.langTitles[0],this.currentLang=this.availableLanguages[this.langSelected.ISO]}setLanguage(e){this.langTitles.some(i=>i.ISO===e)&&(this.currentLang=this.availableLanguages[e],this.langSelected=this.langTitles.find(i=>i.ISO===e))}getLangSelected(){return this.langSelected}getLanguagesInfo(){return this.langTitles}translate(e){let i=this.currentLang;return e.split(".").forEach(o=>{try{i=i[o]}catch(r){return""}}),i}}return t.\u0275fac=function(e){return new(e||t)(ie(Bo))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Yn=(()=>{class t{constructor(e){this.translateService=e}transform(e){return this.translateService.translate(e).replace("OpenVidu PRO",'<a href="https://docs.openvidu.io/en/stable/openvidu-pro/" target="_blank">OpenVidu PRO</a>')}}return t.\u0275fac=function(e){return new(e||t)(h(Ss,16))},t.\u0275pipe=Gn({name:"translate",type:t,pure:!1}),t})(),YR=(()=>{class t{constructor(e){this.dialogRef=e}close(e=!1){this.dialogRef.close(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Gl))},t.\u0275cmp=et({type:t,selectors:[["app-delete-dialog"]],decls:10,vars:9,consts:[["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","","id","delete-recording-confirm-btn",3,"click"]],template:function(e,i){1&e&&(L(0,"div",0),ce(1),Ee(2,"translate"),z(),L(3,"div",1)(4,"button",2),we("click",function(){return i.close()}),ce(5),Ee(6,"translate"),z(),L(7,"button",3),we("click",function(){return i.close(!0)}),ce(8),Ee(9,"translate"),z()()),2&e&&(x(1),Ne(Ae(2,3,"PANEL.RECORDING.DELETE_QUESTION")),x(4),Ne(Ae(6,5,"PANEL.RECORDING.CANCEL")),x(3),Ne(Ae(9,7,"PANEL.RECORDING.DELETE")))},dependencies:[In,Qf,Kf,Yn]}),t})(),QR=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(h(Gl),h(Yf))},t.\u0275cmp=et({type:t,selectors:[["ov-dialog-template"]],decls:5,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"click"]],template:function(e,i){1&e&&(L(0,"h1",0),ce(1),z(),L(2,"div",1),ce(3),z(),ne(4,dX,4,3,"div",2)),2&e&&(x(1),Ne(i.data.title),x(2),Ne(i.data.description),x(1),q("ngIf",i.data.showActionButtons))},dependencies:[Jt,In,jO,Qf,Kf,Yn],encapsulation:2}),t})(),KR=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.src=i.src}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(h(Gl),h(Yf))},t.\u0275cmp=et({type:t,selectors:[["app-recording-dialog"]],decls:3,vars:2,consts:[["mat-dialog-content",""],["controls","","autoplay","",3,"src"],["mat-dialog-actions","","align","end",4,"ngIf"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(L(0,"div",0),Je(1,"video",1),z(),ne(2,hX,4,3,"div",2)),2&e&&(x(1),q("src",i.src,Va),x(1),q("ngIf",i.data.showActionButtons))},dependencies:[Jt,In,Qf,Kf,Yn],styles:["video[_ngcontent-%COMP%]{max-height:64vh;max-width:100%}"]}),t})(),pie=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovToolbar",""]]}),t})(),ZR=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovToolbarAdditionalButtons",""]]}),t})(),XR=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovToolbarAdditionalPanelButtons",""]]}),t})(),gie=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovPanel",""]]}),t})(),JR=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovAdditionalPanels",""]]}),t})(),eP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovChatPanel",""]]}),t})(),tP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovActivitiesPanel",""]]}),t})(),nP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovParticipantsPanel",""]]}),t})(),iP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovParticipantPanelItem",""]]}),t})(),oP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovParticipantPanelItemElements",""]]}),t})(),mie=(()=>{class t{constructor(e,i){this.template=e,this.container=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovLayout",""]]}),t})(),rP=(()=>{class t{constructor(e,i){this.template=e,this.container=i}}return t.\u0275fac=function(e){return new(e||t)(h(mt),h(ln))},t.\u0275dir=ge({type:t,selectors:[["","ovStream",""]]}),t})();var Vo=(()=>{return(t=Vo||(Vo={})).ROOT_ELEMENT="OT_root",t.BIG_ELEMENT="OV_big",t.SMALL_ELEMENT="OV_small",t.IGNORED_ELEMENT="OV_ignored",t.SIDENAV_CONTAINER="sidenav-container",t.NO_SIZE_ELEMENT="no-size",t.CLASS_NAME="layout",Vo;var t})(),Kl=(()=>{return(t=Kl||(Kl={})).OVER="over",t.SIDE="side",Kl;var t})(),Zl=(()=>{return(t=Zl||(Zl={})).START="start",t.CENTER="center",t.END="end",Zl;var t})();class vie{updateLayout(n,e){setTimeout(()=>{if(this.layoutContainer=n,this.opts=e,"none"===this.css(this.layoutContainer,"display"))return;let i=this.layoutContainer.id;i||(i="OT_"+this.cheapUUID(),this.layoutContainer.id=i),e.containerHeight=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"border-top")-this.getCSSNumber(this.layoutContainer,"border-bottom"),e.containerWidth=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"border-left")-this.getCSSNumber(this.layoutContainer,"border-right");const o=Array.prototype.filter.call(this.layoutContainer.querySelectorAll(`#${i}>*:not(.${Vo.IGNORED_ELEMENT})`),()=>this.filterDisplayNone),r=o.map(a=>{const l=this.getChildDims(a);return l.big=a.classList.contains(this.opts.bigClass),l});this.getLayout(e,r).boxes.forEach((a,l)=>{const c=o[l];this.css(c,"position","absolute");const u=a.width- -this.getCSSNumber(c,"margin-left")-this.getCSSNumber(c,"margin-right")-("border-box"!==this.css(c,"box-sizing")?this.getCSSNumber(c,"padding-left")+this.getCSSNumber(c,"padding-right")+this.getCSSNumber(c,"border-left")+this.getCSSNumber(c,"border-right"):0),d=a.height- -this.getCSSNumber(c,"margin-top")-this.getCSSNumber(c,"margin-bottom")-("border-box"!==this.css(c,"box-sizing")?this.getCSSNumber(c,"padding-top")+this.getCSSNumber(c,"padding-bottom")+this.getCSSNumber(c,"border-top")+this.getCSSNumber(c,"border-bottom"):0);this.positionElement(c,a.left,a.top,u,d,this.opts.animate)})},50)}initLayoutContainer(n,e){this.opts=e,this.layoutContainer=n,this.updateLayout(n,e)}getLayoutContainer(){return this.layoutContainer}css(n,e,i){if(i)return n.style[e]=i,NaN;if("object"==typeof e)return Object.keys(e).forEach(s=>{this.css(n,s,e[s])}),NaN;var r=window.getComputedStyle(n).getPropertyValue(e);return""===r&&(r=n.style[e]),r}height(n){return n.offsetHeight>0?`${n.offsetHeight}px`:this.css(n,"height")}width(n){return n.offsetWidth>0?`${n.offsetWidth}px`:this.css(n,"width")}defaults(n,e){var i=e;return Object.keys(e).forEach(o=>{n.hasOwnProperty(o)&&(i[o]=n[o])}),i}fixAspectRatio(n,e){const i=n.querySelector(`.${Vo.ROOT_ELEMENT}`);if(i){const o=i.style.width;i.style.width=`${e}px`,i.style.width=o||""}}positionElement(n,e,i,o,r,s){const a={left:`${e}px`,top:`${i}px`,width:`${o}px`,height:`${r}px`};this.fixAspectRatio(n,o),s?setTimeout(()=>{n.style.left=a.left,n.style.top=a.top,n.style.width=a.width,n.style.height=a.height,this.fixAspectRatio(n,o)},10):(this.css(n,a),n.classList.contains(Vo.CLASS_NAME)||n.classList.add(Vo.CLASS_NAME)),this.fixAspectRatio(n,o)}getChildDims(n){if(n){if(n.videoHeight&&n.videoWidth)return{height:n.videoHeight,width:n.videoWidth};const e=n.querySelector("video");if(e&&e.videoHeight&&e.videoWidth)return{height:e.videoHeight,width:e.videoWidth}}return{height:480,width:640}}getCSSNumber(n,e){const i=this.css(n,e);return i?parseInt(i.toString(),10):0}cheapUUID(){return(1e8*Math.random()).toFixed(0)}getHeight(n){const e=this.height(n);return e?parseInt(e.toString(),10):0}getWidth(n){const e=this.width(n);return e?parseInt(e.toString(),10):0}filterDisplayNone(n){return"none"!==this.css(n,"display")}getBestDimensions(n,e,i,o,r,s,a){let l,c,u,d,f,A,H,te;for(let pe=1;pe<=r;pe++){const he=pe,_e=Math.ceil(r/he);H=Math.floor(o/_e),A=Math.floor(i/he),te=H/A,te>e?(te=e,H=A*te):te<n&&(te=n,A=H/te),A=Math.min(s,A),H=Math.min(a,H);const fe=A*H*r;(void 0===l||fe>=l)&&(fe===l&&r%(he*_e)>r%(u*c)||(l=fe,d=H,f=A,c=he,u=_e))}return{maxArea:l,targetCols:c,targetRows:u,targetHeight:d,targetWidth:f,ratio:d/f}}getVideoRatio(n){return n.height/n.width}getLayout(n,e){const{maxRatio:i=1.5,minRatio:o=9/16,fixedRatio:r=!1,bigPercentage:s=.8,minBigPercentage:a=0,bigFixedRatio:l=!1,bigMaxRatio:c=1.5,bigMinRatio:u=9/16,bigFirst:d=!0,containerWidth:f=640,containerHeight:A=480,alignItems:H="center",bigAlignItems:te="center",smallAlignItems:pe="center",maxWidth:he=1/0,maxHeight:_e=1/0,smallMaxWidth:fe=1/0,smallMaxHeight:ve=1/0,bigMaxWidth:He=1/0,bigMaxHeight:dt=1/0,scaleLastRow:Wt=!0,bigScaleLastRow:Tt=!0}=n,En=A/f;let It=0,hn=0,vi=0,Un=0;const Di=[];let bo=[],Ke=[],Ge={big:null,small:null};const ot=e.filter(Bt=>!Bt.big),it=e.filter((Bt,Ct)=>!!Bt.big&&(Di.push(Ct),!0));if(it.length>0&&ot.length>0){let Bt,Ct,Fe=d;if(En>this.getVideoRatio(it[0])){if(Bt=f,Ct=Math.floor(A*s),a>0){let yo;if(l){const Yi=it[0].height/it[0].width;yo=this.getBestDimensions(Yi,Yi,Bt,Ct,it.length,He,dt)}else yo=this.getBestDimensions(u,c,Bt,Ct,it.length,He,dt);Ct=Math.max(A*a,Math.min(Ct,yo.targetHeight*yo.targetRows));const Tn=this.getBestDimensions(o,i,f,A-Ct,ot.length,fe,ve);Ct=Math.max(Ct,A-Tn.targetRows*Tn.targetHeight)}hn=Ct,vi=A-hn,"column"===d?Fe=!1:"row"===d&&(Fe=!0)}else{if(Ct=A,Bt=Math.floor(f*s),a>0){let yo;if(l){const Yi=it[0].height/it[0].width;yo=this.getBestDimensions(Yi,Yi,Bt,Ct,it.length,He,dt)}else yo=this.getBestDimensions(u,c,Bt,Ct,it.length,He,dt);Bt=Math.max(f*a,Math.min(Bt,yo.targetWidth*yo.targetCols));const Tn=this.getBestDimensions(o,i,f-Bt,A,ot.length,fe,ve);Bt=Math.max(Bt,f-Tn.targetCols*Tn.targetWidth)}It=Bt,Un=f-It,"column"===d?Fe=!0:"row"===d&&(Fe=!1)}Fe?(Ge.big={top:0,left:0,width:Bt,height:Ct},Ge.small={top:hn,left:It,width:f-It,height:A-hn}):(Ge.big={left:Un,top:vi,width:Bt,height:Ct},Ge.small={top:0,left:0,width:f-It,height:A-hn})}else it.length>0&&0===ot.length?Ge.big={top:0,left:0,width:f,height:A}:Ge.small={top:hn,left:It,width:f-It,height:A-hn};Ge.big&&(bo=this.getLayoutAux({containerWidth:Ge.big.width,containerHeight:Ge.big.height,offsetLeft:Ge.big.left,offsetTop:Ge.big.top,fixedRatio:l,minRatio:u,maxRatio:c,alignItems:te,maxWidth:He,maxHeight:dt,scaleLastRow:Tt},it)),Ge.small&&(Ke=this.getLayoutAux({containerWidth:Ge.small.width,containerHeight:Ge.small.height,offsetLeft:Ge.small.left,offsetTop:Ge.small.top,fixedRatio:r,minRatio:o,maxRatio:i,alignItems:Ge.big?pe:H,maxWidth:Ge.big?fe:he,maxHeight:Ge.big?ve:_e,scaleLastRow:Wt},ot));const jt=[];let Sn=0,oi=0;return e.forEach((Bt,Ct)=>{Di.indexOf(Ct)>-1?(jt[Ct]=bo[Sn],Sn+=1):(jt[Ct]=Ke[oi],oi+=1)}),{boxes:jt,areas:Ge}}getLayoutAux(n,e){const{maxRatio:i=1.5,minRatio:o=9/16,fixedRatio:r=!1,containerWidth:s=640,containerHeight:a=480,offsetLeft:l=0,offsetTop:c=0,alignItems:u="center",maxWidth:d=1/0,maxHeight:f=1/0,scaleLastRow:A=!0}=n,H=e.map(Tt=>Tt.height/Tt.width),te=H.length;let pe;if(r){const Tt=H.length>0?H[0]:null;pe=this.getBestDimensions(Tt,Tt,s,a,te,d,f)}else pe=this.getBestDimensions(o,i,s,a,te,d,f);let he=0,_e=0;const fe=[];let ve;const He=[];for(let Tt=0;Tt<H.length;Tt++){Tt%pe.targetCols==0&&(ve={ratios:[],width:0,height:0},fe.push(ve));const En=H[Tt];ve.ratios.push(En);let It=pe.targetWidth;const hn=pe.targetHeight;r&&(It=hn/En),ve.width+=It,ve.height=hn}let dt=0,Wt=0;for(let Tt=0;Tt<fe.length;Tt++)ve=fe[Tt],ve.width>s?(ve.height=Math.floor(ve.height*(s/ve.width)),ve.width=s):ve.width<s&&ve.height<f&&(Wt+=1),dt+=ve.height;if(A&&dt<a&&Wt>0){let Tt=a-dt;dt=0;for(let En=0;En<fe.length;En++){if(ve=fe[En],ve.width<s){let It=Tt/Wt;It/ve.height>(s-ve.width)/ve.width&&(It=Math.floor((s-ve.width)/ve.width*ve.height)),ve.width+=Math.floor(It/ve.height*ve.width),ve.height+=It,Tt-=It,Wt-=1}dt+=ve.height}}switch(u){case"start":_e=0;break;case"end":_e=a-dt;break;default:_e=(a-dt)/2}for(let Tt=0;Tt<fe.length;Tt++){let En,It;switch(ve=fe[Tt],u){case"start":En=0;break;case"end":En=s-ve.width;break;default:En=(s-ve.width)/2}he=En;for(let hn=0;hn<ve.ratios.length;hn++){const vi=ve.ratios[hn];let Un=pe.targetWidth;It=ve.height,r?Un=Math.floor(It/vi):It/Un!=pe.targetHeight/pe.targetWidth&&(Un=Math.floor(pe.targetWidth/pe.targetHeight*It)),He.push({left:he+l,top:_e+c,width:Un,height:It}),he+=Un}_e+=It}return He}}let ma=(()=>{class t{constructor(){this.layoutContainer=null,this.layoutWidth=new yt(0),this.captionsToggling=new yt(!1),this.layoutWidthObs=this.layoutWidth.asObservable(),this.captionsTogglingObs=this.captionsToggling.asObservable()}initialize(e){this.layoutContainer=e,this.openviduLayout=new vie,this.openviduLayoutOptions=this.getOptions(),this.layoutContainer&&this.openviduLayout.initLayoutContainer(this.layoutContainer,this.openviduLayoutOptions),this.sendLayoutWidthEvent()}getOptions(){return{maxRatio:1.5,minRatio:.5625,fixedRatio:!1,bigClass:Vo.BIG_ELEMENT,smallClass:Vo.SMALL_ELEMENT,ignoredClass:Vo.IGNORED_ELEMENT,bigPercentage:.8,minBigPercentage:0,bigFixedRatio:!1,bigMaxRatio:.5625,bigMinRatio:.5625,bigFirst:!0,animate:!0,alignItems:Zl.CENTER,bigAlignItems:Zl.CENTER,smallAlignItems:Zl.CENTER,maxWidth:1/0,maxHeight:1/0,smallMaxWidth:1/0,smallMaxHeight:1/0,bigMaxWidth:1/0,bigMaxHeight:1/0,scaleLastRow:!0,bigScaleLastRow:!0}}toggleCaptions(){this.captionsToggling.next(!this.captionsToggling.getValue())}update(e=null){const i=()=>{this.openviduLayout&&(this.openviduLayout.updateLayout(this.layoutContainer,this.openviduLayoutOptions),this.sendLayoutWidthEvent())};"number"==typeof e&&e>=0?setTimeout(()=>i(),e):i()}getLayout(){return this.openviduLayout}clear(){this.openviduLayout=null}sendLayoutWidthEvent(){var e;const i=this.getHTMLElementByClassName(null===(e=this.openviduLayout)||void 0===e?void 0:e.getLayoutContainer(),Vo.SIDENAV_CONTAINER);i&&i.clientWidth&&this.layoutWidth.next(i.clientWidth)}getHTMLElementByClassName(e,i){for(;e&&e!==document.body;){if(e.className.includes(i))return e;e=e.parentElement}return null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var en=(()=>{return(t=en||(en={})).CAMERA="CAMERA",t.SCREEN="SCREEN",t.CUSTOM="CUSTOM",en;var t})(),Xu=(()=>{return(t=Xu||(Xu={})).WINDOW="window",t.SCREEN="screen",Xu;var t})(),Xl=(()=>{return(t=Xl||(Xl={})).MODERATOR="MODERATOR",t.PUBLISHER="PUBLISHER",Xl;var t})();class bie extends class _ie{constructor(n,e){this.streams=new Map,this.id=n.id?n.id:(new Date).getTime().toString(),this.local=n.local,this.nickname=n.nickname,this.colorProfile=n.colorProfile?n.colorProfile:`hsl(${360*Math.random()}, 100%, 80%)`,this.isMutedForcibly="boolean"==typeof n.isMutedForcibly&&n.isMutedForcibly;let i={connected:!e||e.connected,type:e?e.type:en.CAMERA,streamManager:e?e.streamManager:null,videoEnlarged:!!e&&e.videoEnlarged,connectionId:e?e.connectionId:null,participant:this};this.streams.set(i.type,i)}addConnection(n){n.participant=this,this.streams.set(n.type,n)}hasAudioActive(){const n=this.getCameraConnection(),e=this.getScreenConnection();return n.connected?this.isCameraAudioActive():!!e.connected&&this.isScreenAudioActive()}isCameraAudioActive(){var n,e;const i=this.getCameraConnection();return!(null==i||!i.connected)&&(null===(e=null===(n=i.streamManager)||void 0===n?void 0:n.stream)||void 0===e?void 0:e.audioActive)}isCameraVideoActive(){var n,e;const i=this.getCameraConnection();return(null==i?void 0:i.connected)&&(null===(e=null===(n=null==i?void 0:i.streamManager)||void 0===n?void 0:n.stream)||void 0===e?void 0:e.videoActive)}isScreenAudioActive(){var n,e;const i=this.getScreenConnection();return!(null==i||!i.connected)&&(null===(e=null===(n=null==i?void 0:i.streamManager)||void 0===n?void 0:n.stream)||void 0===e?void 0:e.audioActive)}hasConnectionType(n){return this.streams.has(n)}getCameraConnection(){return this.streams.get(en.CAMERA)}getScreenConnection(){return this.streams.get(en.SCREEN)}getConnectionTypesActive(){let n=[];return this.isCameraActive()&&n.push(en.CAMERA),this.isScreenActive()&&n.push(en.SCREEN),n}setCameraConnectionId(n){this.getCameraConnection().connectionId=n}setScreenConnectionId(n){this.getScreenConnection().connectionId=n}removeConnection(n){const e=this.getConnectionById(n);return this.streams.delete(e.type),e}hasConnectionId(n){return Array.from(this.streams.values()).some(e=>e.connectionId===n)}getConnectionById(n){return Array.from(this.streams.values()).find(e=>e.connectionId===n)}getAvailableConnections(){return Array.from(this.streams.values()).filter(n=>n.connected)}isLocal(){return this.local}setNickname(n){this.nickname=n}getNickname(){return this.nickname}setCameraPublisher(n){const e=this.getCameraConnection();e&&(e.streamManager=n)}setScreenPublisher(n){const e=this.getScreenConnection();e&&(e.streamManager=n)}setPublisher(n,e){const i=this.streams.get(n);i&&(i.streamManager=e)}isCameraActive(){var n;return null===(n=this.getCameraConnection())||void 0===n?void 0:n.connected}enableCamera(){const n=this.getCameraConnection();n&&(n.connected=!0)}disableCamera(){const n=this.getCameraConnection();n&&(n.connected=!1)}isScreenActive(){var n;return null===(n=this.getScreenConnection())||void 0===n?void 0:n.connected}enableScreen(){const n=this.getScreenConnection();n&&(n.connected=!0)}disableScreen(){const n=this.getScreenConnection();n&&(n.connected=!1)}setAllVideoEnlarged(n){this.streams.forEach(e=>e.videoEnlarged=n)}setCameraEnlarged(n){this.streams.get(en.CAMERA).videoEnlarged=n}setScreenEnlarged(n){this.streams.get(en.SCREEN).videoEnlarged=n}toggleVideoEnlarged(n){this.streams.forEach(e=>{e.connectionId===n&&(e.videoEnlarged=!e.videoEnlarged)})}someHasVideoEnlarged(){return Array.from(this.streams.values()).some(n=>n.videoEnlarged)}setMutedForcibly(n){this.isMutedForcibly=n}getRole(){var n,e,i,o;return null===(o=null===(i=null===(e=null===(n=this.streams.get(en.CAMERA))||void 0===n?void 0:n.streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.role}}{}let wi=(()=>{class t{constructor(e,i){this.openviduAngularConfigSrv=e,this.loggerSrv=i,this._localParticipant=new yt(null),this._remoteParticipants=new yt([]),this.remoteParticipants=[],this.log=this.loggerSrv.get("ParticipantService"),this.localParticipantObs=this._localParticipant.asObservable(),this.remoteParticipantsObs=this._remoteParticipants.asObservable()}initLocalParticipant(e){this.localParticipant=this.newParticipant(e),this.updateLocalParticipant()}getLocalParticipant(){return this.localParticipant}getMyCameraPublisher(){return this.localParticipant.getCameraConnection().streamManager}setMyCameraPublisher(e){this.localParticipant.setCameraPublisher(e)}setMyCameraConnectionId(e){this.localParticipant.setCameraConnectionId(e)}getMyScreenPublisher(){var e;return null===(e=this.localParticipant.getScreenConnection())||void 0===e?void 0:e.streamManager}setMyScreenPublisher(e){this.localParticipant.setScreenPublisher(e)}setMyScreenConnectionId(e){this.localParticipant.setScreenConnectionId(e)}enableWebcamStream(){this.localParticipant.enableCamera(),this.updateLocalParticipant()}disableWebcamStream(){this.localParticipant.disableCamera(),this.updateLocalParticipant()}activeMyScreenShare(e){this.log.d("Enabling screen publisher");const i={type:en.SCREEN,videoEnlarged:!0,streamManager:e,connected:!0,connectionId:""};this.resetRemoteStreamsToNormalSize(),this.resetMyStreamsToNormalSize(),this.localParticipant.addConnection(i),this.updateLocalParticipant()}disableScreenStream(){this.localParticipant.disableScreen(),this.updateLocalParticipant()}setMyNickname(e){this.localParticipant.setNickname(e),this.updateLocalParticipant()}getMyNickname(){return this.localParticipant.nickname}getMyRole(){return this.localParticipant.getRole()}toggleMyVideoEnlarged(e){this.localParticipant.toggleVideoEnlarged(e)}resetMyStreamsToNormalSize(){this.localParticipant.someHasVideoEnlarged()&&(this.localParticipant.setAllVideoEnlarged(!1),this.updateLocalParticipant())}clear(){this.disableScreenStream(),this.remoteParticipants=[],this.updateRemoteParticipants(),this.updateLocalParticipant()}isMyCameraActive(){return this.localParticipant.isCameraActive()}isMyVideoActive(){return this.localParticipant.isCameraVideoActive()}isMyAudioActive(){var e;return null===(e=this.localParticipant)||void 0===e?void 0:e.hasAudioActive()}isMyScreenActive(){return this.localParticipant.isScreenActive()}isOnlyMyCameraActive(){return this.isMyCameraActive()&&!this.isMyScreenActive()}isOnlyMyScreenActive(){return this.isMyScreenActive()&&!this.isMyCameraActive()}haveICameraAndScreenActive(){return this.isMyCameraActive()&&this.isMyScreenActive()}hasScreenAudioActive(){return this.localParticipant.isScreenAudioActive()}updateLocalParticipant(){this._localParticipant.next(Object.assign(Object.create(this.localParticipant),this.localParticipant))}addRemoteConnection(e,i,o){const r=this.getTypeConnectionData(i),s={type:r,videoEnlarged:r===en.SCREEN,streamManager:o,connected:!0,connectionId:e},a=this.getParticipantIdFromData(i)||e,l=this.getRemoteParticipantById(a);if(l)this.log.d("Adding connection to existing participant: ",a),l.hasConnectionType(s.type)?(this.log.d("Participant has publisher, updating it"),l.setPublisher(s.type,o)):(this.log.d("Participant has not publisher, adding it"),s.type===en.SCREEN&&(this.resetRemoteStreamsToNormalSize(),this.resetMyStreamsToNormalSize()),l.addConnection(s));else{this.log.w("Creating new participant with id: ",a);const c={nickname:this.getNicknameFromConnectionData(i),local:!1,id:a},u=this.newParticipant(c,s);this.remoteParticipants.push(u)}this.updateRemoteParticipants()}getRemoteParticipants(){return this.remoteParticipants}resetRemoteStreamsToNormalSize(){this.remoteParticipants.forEach(e=>e.setAllVideoEnlarged(!1)),this.updateRemoteParticipants()}removeConnectionByConnectionId(e){let i;if(this.log.w("Deleting connection: ",e),i=this.localParticipant.hasConnectionId(e)?this.localParticipant:this.getRemoteParticipantByConnectionId(e),i){const o=i.removeConnection(e);if(0===i.streams.size&&(this.remoteParticipants=this.remoteParticipants.filter(r=>r!==i)),o.type===en.SCREEN){const r=this.remoteParticipants.filter(s=>s.isScreenActive());r.length>0?r[r.length-1].setScreenEnlarged(!0):this.localParticipant.isScreenActive()&&this.localParticipant.setScreenEnlarged(!0)}this.updateRemoteParticipants()}}getRemoteParticipantByConnectionId(e){return this.remoteParticipants.find(i=>i.hasConnectionId(e))}getRemoteParticipantById(e){return this.remoteParticipants.find(i=>i.id===e)}someoneIsSharingScreen(){return this.remoteParticipants.some(e=>e.someHasVideoEnlarged())}toggleRemoteVideoEnlarged(e){const i=this.getRemoteParticipantByConnectionId(e);null==i||i.toggleVideoEnlarged(e)}getNicknameFromConnectionData(e){try{return JSON.parse(e).clientData}catch(i){return"OpenVidu_User"}}setRemoteNickname(e,i){const o=this.getRemoteParticipantByConnectionId(e);o&&(o.setNickname(i),this.updateRemoteParticipants())}setRemoteMutedForcibly(e,i){const o=this.getRemoteParticipantById(e);o&&(o.setMutedForcibly(i),this.updateRemoteParticipants())}updateRemoteParticipants(){this._remoteParticipants.next([...this.remoteParticipants])}getTypeConnectionData(e){try{return JSON.parse(e).type}catch(i){return en.CAMERA}}getParticipantIdFromData(e){try{return JSON.parse(e).participantId}catch(i){return""}}newParticipant(e,i){return this.openviduAngularConfigSrv.hasParticipantFactory()?this.openviduAngularConfigSrv.getParticipantFactory().apply(this,[e,i]):new bie(e,i)}}return t.\u0275fac=function(e){return new(e||t)(ie(Ft),ie(or))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Gt=(()=>{return(t=Gt||(Gt={})).CHAT="chat",t.PARTICIPANTS="participants",t.BACKGROUND_EFFECTS="background-effects",t.ACTIVITIES="activities",t.SETTINGS="settings",Gt;var t})(),Jl=(()=>{return(t=Jl||(Jl={})).GENERAL="general",t.AUDIO="audio",t.VIDEO="video",t.CAPTIONS="captions",Jl;var t})();let vo=(()=>{class t{constructor(e){this.loggerSrv=e,this.isExternalOpened=!1,this._panelOpened=new yt({opened:!1}),this.panelMap=new Map,this.log=this.loggerSrv.get("PanelService"),this.panelOpenedObs=this._panelOpened.asObservable(),Object.values(Gt).forEach(i=>this.panelMap.set(i,!1))}togglePanel(e,i){let o=!1;this.panelMap.has(e)?(this.log.d(`Toggling ${e} menu`),this.panelMap.forEach((s,a)=>{a===e?(this.panelMap.set(a,!s),o=!s):this.panelMap.set(a,!1)})):(this.log.d("Toggling external panel"),this.panelMap.forEach((s,a)=>this.panelMap.set(a,!1)),this.isExternalOpened=!this.isExternalOpened||this.externalType!==e,this.externalType=this.isExternalOpened?e:"",o=this.isExternalOpened);const r=this._panelOpened.getValue().type;this._panelOpened.next({opened:o,type:e,expand:i,oldType:r})}isPanelOpened(){return Array.from(this.panelMap.values()).some(i=>i)||this.isExternalPanelOpened()}closePanel(){this.panelMap.forEach((e,i)=>this.panelMap.set(i,!1)),this._panelOpened.next({opened:!1})}isChatPanelOpened(){return!!this.panelMap.get(Gt.CHAT)}isParticipantsPanelOpened(){return!!this.panelMap.get(Gt.PARTICIPANTS)}isActivitiesPanelOpened(){return!!this.panelMap.get(Gt.ACTIVITIES)}isSettingsPanelOpened(){return!!this.panelMap.get(Gt.SETTINGS)}isBackgroundEffectsPanelOpened(){return!!this.panelMap.get(Gt.BACKGROUND_EFFECTS)}isExternalPanelOpened(){return this.isExternalOpened}}return t.\u0275fac=function(e){return new(e||t)(ie(or))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Yr=(()=>{return(t=Yr||(Yr={})).FRONT="FRONT",t.BACK="BACK",Yr;var t})(),Ju=(()=>{return(t=Ju||(Ju={})).AUDIO_INPUT="audioinput",t.VIDEO_INPUT="videoinput",Ju;var t})(),va=(()=>{return(t=va||(va={})).CE="CE",t.PRO="PRO",t.ENTERPRISE="ENTERPRISE",va;var t})();let ec=(()=>{class t{constructor(){}isMobile(){return this.isAndroid()||this.isIos()}isFirefox(){return/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)}isAndroid(){return/\b(\w*Android\w*)\b/.test(navigator.userAgent)&&/\b(\w*Mobile\w*)\b/.test(navigator.userAgent)}isIos(){return this.isIPhoneOrIPad(null==navigator?void 0:navigator.userAgent)}isIPhoneOrIPad(e){const i=/\b(\w*Macintosh\w*)\b/.test(e),o=/\b(\w*iPhone\w*)\b/.test(e)&&/\b(\w*Mobile\w*)\b/.test(e),r="ontouchend"in document;return(i||o)&&r}isSafariIos(){return this.isIos()&&this.isIOSWithSafari(null==navigator?void 0:navigator.userAgent)}isIOSWithSafari(e){return/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(e)&&!/\b(\w*CriOS\w*)\b/.test(e)&&!/\b(\w*FxiOS\w*)\b/.test(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tc=(()=>{class t{constructor(e,i,o,r){this.loggerSrv=e,this.platformSrv=i,this.storageSrv=o,this.libSrv=r,this.OV=null,this.cameras=[],this.microphones=[],this.videoDevicesEnabled=!0,this.audioDevicesEnabled=!0,this.deviceAccessDeniedError=!1,this.log=this.loggerSrv.get("DevicesService")}forceInitDevices(){return Re(this,void 0,void 0,function*(){this.clear(),this.OV=new _s.OpenVidu;try{yield this.OV.getUserMedia({audioSource:void 0,videoSource:void 0}),this.devices=yield this.getOpenViduDevices()}catch(e){this.deviceAccessDeniedError=e.name===_s.OpenViduErrorName.DEVICE_ACCESS_DENIED,this.deviceAccessDeniedError&&(this.disableVideoDevices(),this.disableAudioDevices())}finally{this.deviceAccessDeniedError?this.log.w("Media devices permissions were not granted."):(this.initializeCustomDevices(),this.updateAudioDeviceSelected(),this.updateVideoDeviceSelected(),this._isVideoMuted=this.storageSrv.isVideoMuted()||this.libSrv.videoMuted.getValue(),this._isAudioMuted=this.storageSrv.isAudioMuted()||this.libSrv.audioMuted.getValue(),this.log.d("Media devices",this.cameras,this.microphones))}})}refreshDevices(){return Re(this,void 0,void 0,function*(){this.deviceAccessDeniedError||(this.devices=yield this.getOpenViduDevices(),this.initializeCustomDevices())})}initializeCustomDevices(e=!0){const o=this.devices.filter(s=>s.kind===Ju.AUDIO_INPUT),r=this.devices.filter(s=>s.kind===Ju.VIDEO_INPUT);o.length>0&&(this.microphones=[],o.forEach(s=>{this.microphones.push({label:s.label,device:s.deviceId})})),r.length>0&&(this.cameras=[],r.forEach((s,a)=>{const l={label:s.label,device:s.deviceId,type:Yr.BACK};this.platformSrv.isMobile()?l.label.toLowerCase().includes(Yr.FRONT.toLowerCase())&&(l.type=Yr.FRONT):0===a&&(l.type=Yr.FRONT),this.cameras.push(l)}))}updateAudioDeviceSelected(){if(this.microphones.length>0){const e=this.getMicrophoneFromStogare();e?this.microphoneSelected=e:this.microphones.length>0&&(this.microphoneSelected=this.deviceAccessDeniedError&&this.microphones.length>1?this.microphones[1]:this.microphones[0])}}updateVideoDeviceSelected(){if(this.cameras.length>0){const e=this.getCameraFromStorage();e?this.cameraSelected=e:this.cameras.length>0&&(this.cameraSelected=this.deviceAccessDeniedError&&this.cameras.length>1?this.cameras[1]:this.cameras[0])}}isVideoMuted(){return this.hasVideoDeviceAvailable()&&this._isVideoMuted}isAudioMuted(){return this.hasAudioDeviceAvailable()&&this._isAudioMuted}getCameraSelected(){return this.cameraSelected}getMicrophoneSelected(){return this.microphoneSelected}setCameraSelected(e){this.cameraSelected=this.getCameraByDeviceField(e),this.saveCameraToStorage(this.cameraSelected)}setMicSelected(e){this.microphoneSelected=this.getMicrophoneByDeviceField(e),this.saveMicrophoneToStorage(this.microphoneSelected)}needUpdateVideoTrack(e){var i;return(null===(i=this.cameraSelected)||void 0===i?void 0:i.device)!==e}needUpdateAudioTrack(e){var i;return(null===(i=this.microphoneSelected)||void 0===i?void 0:i.device)!==e}getCameras(){return this.cameras}getMicrophones(){return this.microphones}hasVideoDeviceAvailable(){return this.videoDevicesEnabled&&this.cameras.length>0}hasAudioDeviceAvailable(){return this.audioDevicesEnabled&&this.microphones.length>0}cameraNeedsMirror(e){var i;return(null===(i=this.getCameraByDeviceField(e))||void 0===i?void 0:i.type)===Yr.FRONT}disableVideoDevices(){this.videoDevicesEnabled=!1}disableAudioDevices(){this.audioDevicesEnabled=!1}clear(){this.OV=null,this.devices=[],this.cameras=[],this.microphones=[],this.cameraSelected=null,this.microphoneSelected=null,this.videoDevicesEnabled=!0,this.audioDevicesEnabled=!0}getCameraByDeviceField(e){return this.cameras.find(i=>i.device===e||i.label===e)}getMicrophoneByDeviceField(e){return this.microphones.find(i=>i.device===e||i.label===e)}getMicrophoneFromStogare(){const e=this.storageSrv.getAudioDevice();if(e&&this.microphones.some(i=>i.device===e.device))return e}getCameraFromStorage(){const e=this.storageSrv.getVideoDevice();if(e&&this.cameras.some(i=>i.device===e.device))return e}saveCameraToStorage(e){this.storageSrv.setVideoDevice(e)}saveMicrophoneToStorage(e){this.storageSrv.setAudioDevice(e)}getOpenViduDevices(){var e;return Re(this,void 0,void 0,function*(){return((yield null===(e=this.OV)||void 0===e?void 0:e.getDevices())||[]).filter(o=>!!o.label&&!!o.deviceId)})}}return t.\u0275fac=function(e){return new(e||t)(ie(or),ie(ec),ie(Bo),ie(Ft))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_o=(()=>{class t{constructor(e,i,o,r,s){this.openviduAngularConfigSrv=e,this.platformService=i,this.loggerSrv=o,this.participantService=r,this.deviceService=s,this.webcamToken="",this.screenToken="",this.videoSource=void 0,this.audioSource=void 0,this.STT_TIMEOUT_MS=2e3,this._isSttReady=new yt(!0),this.log=this.loggerSrv.get("OpenViduService"),this.isSttReadyObs=this._isSttReady.asObservable()}initialize(){this.OV=new _s.OpenVidu,this.OV.setAdvancedConfiguration({publisherSpeakingEventsOptions:{interval:50}}),this.openviduAngularConfigSrv.isProduction()&&this.OV.enableProdMode(),this.webcamSession=this.OV.initSession(),this.platformService.isMobile()||(this.OVScreen=new _s.OpenVidu,this.openviduAngularConfigSrv.isProduction()&&this.OVScreen.enableProdMode(),this.screenSession=this.OVScreen.initSession())}setWebcamToken(e){this.webcamToken=e}setScreenToken(e){this.screenToken=e}getWebcamToken(){return this.webcamToken}getScreenToken(){return this.screenToken}isOpenViduCE(){return this.ovEdition===va.CE}isOpenViduPro(){return this.ovEdition===va.PRO}setOpenViduEdition(e){this.ovEdition=e}isSessionConnected(){return!!this.webcamSession.connection}clear(){var e,i,o,r;return Re(this,void 0,void 0,function*(){this.videoSource=void 0,this.audioSource=void 0,yield null===(i=null===(e=this.participantService.getMyCameraPublisher())||void 0===e?void 0:e.stream)||void 0===i?void 0:i.disposeMediaStream(),yield null===(r=null===(o=this.participantService.getMyScreenPublisher())||void 0===o?void 0:o.stream)||void 0===r?void 0:r.disposeMediaStream()})}getSession(){return this.getWebcamSession()}getWebcamSession(){return this.webcamSession}isWebcamSessionConnected(){return!!this.webcamSession.capabilities}getScreenSession(){return this.screenSession}isScreenSessionConnected(){return!!this.screenSession.capabilities}isSttReady(){return this._isSttReady.getValue()}setSTTReady(e){this._isSttReady.getValue()!==e&&this._isSttReady.next(e)}connectSession(e,i){return Re(this,void 0,void 0,function*(){if(i&&e){const o=this.participantService.getMyNickname(),r=this.participantService.getLocalParticipant().id;e===this.webcamSession?(this.log.d("Connecting webcam session"),yield this.webcamSession.connect(i,{clientData:o,participantId:r,type:en.CAMERA}),this.participantService.setMyCameraConnectionId(this.webcamSession.connection.connectionId)):e===this.screenSession&&(this.log.d("Connecting screen session"),yield this.screenSession.connect(i,{clientData:`${o}_${en.SCREEN}`,participantId:r,type:en.SCREEN}),this.participantService.setMyScreenConnectionId(this.screenSession.connection.connectionId))}})}disconnect(){this.disconnectSession(this.webcamSession),this.disconnectSession(this.screenSession)}initDefaultPublisher(){return Re(this,void 0,void 0,function*(){const e=this.deviceService.hasVideoDeviceAvailable(),i=this.deviceService.hasAudioDeviceAvailable(),o=!this.deviceService.isVideoMuted(),r=!this.deviceService.isAudioMuted();let s=!1,a=!1;e&&(s=this.deviceService.getCameraSelected().device),i&&(a=this.deviceService.getMicrophoneSelected().device);const c={videoSource:s,audioSource:a,publishVideo:o,publishAudio:r,mirror:this.deviceService.getCameraSelected()&&this.deviceService.getCameraSelected().type===Yr.FRONT};if(e||i){const u=yield this.initPublisher(void 0,c);return this.participantService.setMyCameraPublisher(u),this.participantService.updateLocalParticipant(),u}this.participantService.setMyCameraPublisher(null)})}initPublisher(e,i){return Re(this,void 0,void 0,function*(){return this.log.d("Initializing publisher with properties: ",i),yield this.OV.initPublisherAsync(e,i)})}publish(e){var i,o,r,s;return Re(this,void 0,void 0,function*(){if(e)if(e===this.participantService.getMyCameraPublisher()){if(null!==(o=null===(i=this.webcamSession)||void 0===i?void 0:i.capabilities)&&void 0!==o&&o.publish)return yield this.webcamSession.publish(e);this.log.e("Webcam publisher cannot be published")}else if(e===this.participantService.getMyScreenPublisher()){if(null!==(s=null===(r=this.screenSession)||void 0===r?void 0:r.capabilities)&&void 0!==s&&s.publish)return yield this.screenSession.publish(e);this.log.e("Screen publisher cannot be published")}})}unpublish(e){e&&(e===this.participantService.getMyCameraPublisher()?(this.publishAudioAux(this.participantService.getMyScreenPublisher(),this.participantService.isMyAudioActive()),this.webcamSession.unpublish(e)):e===this.participantService.getMyScreenPublisher()&&this.screenSession.unpublish(e))}publishVideo(e){return Re(this,void 0,void 0,function*(){const i=this.participantService.isMyAudioActive();if(this.participantService.haveICameraAndScreenActive())yield this.publishVideoAux(this.participantService.getMyCameraPublisher(),e),this.participantService.disableWebcamStream(),this.unpublish(this.participantService.getMyCameraPublisher()),this.publishAudioAux(this.participantService.getMyScreenPublisher(),i);else if(this.participantService.isOnlyMyScreenActive()){const o=this.participantService.hasScreenAudioActive();this.isWebcamSessionConnected()||(yield this.connectSession(this.getWebcamSession(),this.getWebcamToken())),yield this.publish(this.participantService.getMyCameraPublisher()),yield this.publishVideoAux(this.participantService.getMyCameraPublisher(),!0),this.publishAudioAux(this.participantService.getMyScreenPublisher(),!1),this.publishAudioAux(this.participantService.getMyCameraPublisher(),o),this.participantService.enableWebcamStream()}else yield this.publishVideoAux(this.participantService.getMyCameraPublisher(),e)})}publishVideoAux(e,i){var o;return Re(this,void 0,void 0,function*(){if(e){let r=!0;if(i){const s=null===(o=this.deviceService.getCameraSelected())||void 0===o?void 0:o.device;r=(yield this.createMediaStream({videoSource:s,audioSource:!1})).getVideoTracks()[0]}yield e.publishVideo(i,r),this.participantService.updateLocalParticipant()}})}publishAudio(e){return Re(this,void 0,void 0,function*(){this.participantService.isMyCameraActive()?(this.participantService.isMyScreenActive()&&this.participantService.hasScreenAudioActive()&&this.publishAudioAux(this.participantService.getMyScreenPublisher(),!1),this.publishAudioAux(this.participantService.getMyCameraPublisher(),e)):this.publishAudioAux(this.participantService.getMyScreenPublisher(),e)})}toggleScreenshare(){return Re(this,void 0,void 0,function*(){if(this.participantService.haveICameraAndScreenActive())this.participantService.disableScreenStream(),this.unpublish(this.participantService.getMyScreenPublisher());else if(this.participantService.isOnlyMyCameraActive()){const e=this.deviceService.hasAudioDeviceAvailable(),o=(!this.participantService.isMyCameraActive()||!this.participantService.isMyVideoActive())&&e&&this.participantService.isMyAudioActive(),r={videoSource:Xu.SCREEN,audioSource:!!e&&this.deviceService.getMicrophoneSelected().device,publishVideo:!0,publishAudio:o,mirror:!1},s=yield this.initPublisher(void 0,r);s.once("accessAllowed",()=>Re(this,void 0,void 0,function*(){s.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",()=>Re(this,void 0,void 0,function*(){this.log.d("Clicked native stop button. Stopping screen sharing"),yield this.toggleScreenshare()})),this.participantService.activeMyScreenShare(s),this.isScreenSessionConnected()||(yield this.connectSession(this.getScreenSession(),this.getScreenToken())),yield this.publish(this.participantService.getMyScreenPublisher()),this.participantService.isMyVideoActive()||(this.participantService.disableWebcamStream(),this.unpublish(this.participantService.getMyCameraPublisher()))})),s.once("accessDenied",a=>Promise.reject(a))}else{const e=this.participantService.hasScreenAudioActive();this.isWebcamSessionConnected()||(yield this.connectSession(this.getWebcamSession(),this.getWebcamToken())),yield this.publish(this.participantService.getMyCameraPublisher()),this.publishAudioAux(this.participantService.getMyCameraPublisher(),e),this.participantService.enableWebcamStream(),this.participantService.disableScreenStream(),this.unpublish(this.participantService.getMyScreenPublisher())}})}publishAudioAux(e,i){e&&(e.publishAudio(i),this.participantService.updateLocalParticipant())}sendSignal(e,i,o){const r={data:JSON.stringify(o),type:e,to:i&&i.length>0?i:void 0};this.webcamSession.signal(r)}replaceTrack(e,i){return Re(this,void 0,void 0,function*(){try{if(this.log.d(`Replacing ${e} track`,i),e===en.CAMERA){let o;const r=!!i.audioSource;if(i.videoSource){o=yield this.createMediaStream(i);const a=o.getVideoTracks()[0];yield this.participantService.getMyCameraPublisher().replaceTrack(a)}else if(r){o=yield this.createMediaStream(i);const a=o.getAudioTracks()[0];yield this.participantService.getMyCameraPublisher().replaceTrack(a)}}else if(e===en.SCREEN)try{let o=yield this.OVScreen.getUserMedia(i);this.participantService.getMyScreenPublisher().stream.getMediaStream().getVideoTracks()[0].stop(),yield this.participantService.getMyScreenPublisher().replaceTrack(o.getVideoTracks()[0])}catch(o){this.log.w("Cannot create the new MediaStream",o)}}catch(o){this.log.e("Error replacing track ",o)}})}subscribeRemotesToSTT(e){var i,o;return Re(this,void 0,void 0,function*(){const r=this.participantService.getRemoteParticipants();let s=0;for(const a of r){const l=null===(o=null===(i=a.getCameraConnection())||void 0===i?void 0:i.streamManager)||void 0===o?void 0:o.stream;if(l)try{yield this.subscribeStreamToStt(l,e),s++}catch(c){this.log.e(`Error subscribing ${l.streamId} to STT:`,c);break}}this.setSTTReady(s===r.length),this.isSttReady()||(this.log.w("STT is not ready. Retrying subscription..."),this.sttReconnectionTimeout=setTimeout(this.subscribeRemotesToSTT.bind(this,e),this.STT_TIMEOUT_MS))})}subscribeStreamToStt(e,i){return Re(this,void 0,void 0,function*(){yield this.getWebcamSession().subscribeToSpeechToText(e,i),this.log.d(`Subscribed stream ${e.streamId} to STT with ${i} language.`)})}unsubscribeRemotesFromSTT(){return Re(this,void 0,void 0,function*(){if(clearTimeout(this.sttReconnectionTimeout),this.isSttReady())for(const e of this.participantService.getRemoteParticipants()){const i=e.getCameraConnection().streamManager.stream;if(i)try{yield this.getWebcamSession().unsubscribeFromSpeechToText(i)}catch(o){this.log.e(`Error unsubscribing ${i.streamId} from STT:`,o)}}})}createMediaStream(e){return Re(this,void 0,void 0,function*(){let i;const o=this.platformService.isFirefox(),r=!!e.audioSource,s=!!e.videoSource;try{i=yield this.OV.getUserMedia(e)}catch(a){a.name===_s.OpenViduErrorName.DEVICE_ACCESS_DENIED&&o&&(this.log.w("The device requested is not available. Restoring the older one"),s?e.videoSource=this.deviceService.getCameraSelected().device:r&&(e.audioSource=this.deviceService.getMicrophoneSelected().device),i=yield this.OV.getUserMedia(e))}finally{return i}})}needSendNicknameSignal(){let e;try{e=JSON.parse(this.webcamSession.connection.data.split("%/%")[0]).clientData}catch(i){this.log.e(i)}return e!==this.participantService.getMyNickname()}isMyOwnConnection(e){var i,o,r,s;return(null===(o=null===(i=this.webcamSession)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.connectionId)===e||(null===(s=null===(r=this.screenSession)||void 0===r?void 0:r.connection)||void 0===s?void 0:s.connectionId)===e}getRemoteConnections(){return Array.from(this.webcamSession.remoteConnections.values()).filter(i=>{let o;return o=JSON.parse(i.data).type,o!==en.SCREEN})}disconnectSession(e){var i,o,r,s;e&&(e.sessionId===(null===(i=this.webcamSession)||void 0===i?void 0:i.sessionId)?(this.log.d("Disconnecting webcam session"),null===(o=this.webcamSession)||void 0===o||o.disconnect(),this.webcamSession=null):e.sessionId===(null===(r=this.screenSession)||void 0===r?void 0:r.sessionId)&&(this.log.d("Disconnecting screen session"),null===(s=this.screenSession)||void 0===s||s.disconnect(),this.screenSession=null))}}return t.\u0275fac=function(e){return new(e||t)(ie(Ft),ie(ec),ie(or),ie(wi),ie(tc))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ed=(()=>{class t{constructor(e){this.storageService=e,this.langsOptions=[{name:"English",lang:"en-US"},{name:"Espa\xf1ol",lang:"es-ES"},{name:"Deutsch",lang:"de-DE"},{name:"Fran\xe7ais",lang:"fr-FR"},{name:"\u4e2d\u56fd",lang:"zh-CN"},{name:"\u0939\u093f\u0928\u094d\u0926\u0940",lang:"hi-IN"},{name:"Italiano",lang:"it-IT"},{name:"\u3084\u307e\u3068",lang:"jp-JP"},{name:"Portugu\xeas",lang:"pt-PT"}],this._captionLang=new le,this.captionsEnabled=!1,this.updateLangSelected(),this.captionLangObs=this._captionLang.asObservable()}setLanguageOptions(e){e&&e.length>0&&(this.langsOptions=e,this.updateLangSelected())}setCaptionsEnabled(e){this.captionsEnabled=e}areCaptionsEnabled(){return this.captionsEnabled}setLanguage(e){const i=this.langsOptions.find(o=>o.lang===e);i&&i.lang!==this.captionLangSelected.lang&&(this.captionLangSelected=i,this.storageService.setCaptionLang(e),this._captionLang.next(this.captionLangSelected))}getLangSelected(){return this.captionLangSelected}getCaptionLanguages(){return this.langsOptions}updateLangSelected(){const e=this.storageService.getCaptionsLang(),i=this.langsOptions.find(o=>o.lang===e);this.captionLangSelected=e&&i?i:this.langsOptions[0]}}return t.\u0275fac=function(e){return new(e||t)(ie(Bo))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),sP=(()=>{class t{constructor(e,i,o,r,s){this.panelService=e,this.openviduService=i,this.participantService=o,this.captionService=r,this.cd=s,this.captionEvents=[],this.isSttReady=!0,this.DELETE_TIMEOUT=1e4,this.MAX_EVENTS_LIMIT=3}set captionEventRef(e){setTimeout(()=>{e&&(this.scrollContainer=e)},0)}ngOnInit(){return Re(this,void 0,void 0,function*(){this.subscribeToSTTStatus(),this.captionService.setCaptionsEnabled(!0),this.captionLangSelected=this.captionService.getLangSelected(),this.session=this.openviduService.getWebcamSession(),yield this.openviduService.subscribeRemotesToSTT(this.captionLangSelected.lang),this.subscribeToCaptionLanguage(),this.subscribeToPanelToggling(),this.subscribeToTranscription()})}ngOnDestroy(){return Re(this,void 0,void 0,function*(){yield this.openviduService.unsubscribeRemotesFromSTT(),this.captionService.setCaptionsEnabled(!1),this.screenSizeSub&&this.screenSizeSub.unsubscribe(),this.panelTogglingSubscription&&this.panelTogglingSubscription.unsubscribe(),this.sttStatusSubscription&&this.sttStatusSubscription.unsubscribe(),this.session.off("speechToTextMessage"),this.captionEvents=[]})}onSettingsCliked(){this.panelService.togglePanel(Gt.SETTINGS,Jl.CAPTIONS)}subscribeToTranscription(){this.session.on("speechToTextMessage",e=>{var i;if(e.text){clearInterval(this.deleteAllTimeout);const{connectionId:o,data:r}=e.connection,s=this.participantService.getNicknameFromConnectionData(r),a=(null===(i=this.participantService.getRemoteParticipantByConnectionId(o))||void 0===i?void 0:i.colorProfile)||"";this.updateCaption({connectionId:o,nickname:s,color:a,text:e.text,type:e.reason}),this.deleteAllEventsAfterDelay(this.DELETE_TIMEOUT),this.cd.markForCheck()}})}updateCaption(e){let i=[...this.captionEvents],o=i.length;if(0===o)i.push(e);else{const r=i[o-1],a="recognized"===r.type;if(r.connectionId===e.connectionId)a?e.text!==r.text&&(this.deleteFirstEventAfterDelay(this.DELETE_TIMEOUT),i.push(e)):(r.text=e.text,r.type=e.type);else if(i.some(c=>c.connectionId===e.connectionId))if(a)this.deleteFirstEventAfterDelay(this.DELETE_TIMEOUT),i.push(e);else{const c=i.find(u=>u.connectionId===e.connectionId);c&&("recognized"===c.type?i.push(e):(c.text=e.text,c.type=e.type))}else this.deleteFirstEventAfterDelay(this.DELETE_TIMEOUT),i.push(e)}i.length===this.MAX_EVENTS_LIMIT&&(clearInterval(this.deleteFirstTimeout),i.shift()),this.captionEvents=[...i],this.scrollToBottom()}deleteFirstEventAfterDelay(e){this.deleteFirstTimeout=setTimeout(()=>{this.captionEvents.shift(),this.cd.markForCheck()},e)}deleteAllEventsAfterDelay(e){this.deleteAllTimeout=setTimeout(()=>{this.captionEvents=[],this.cd.markForCheck()},e)}subscribeToSTTStatus(){this.sttStatusSubscription=this.openviduService.isSttReadyObs.subscribe(e=>{this.isSttReady=e,this.cd.markForCheck()})}subscribeToCaptionLanguage(){this.captionLanguageSubscription=this.captionService.captionLangObs.subscribe(e=>{this.captionLangSelected=e,this.cd.markForCheck()})}subscribeToPanelToggling(){this.panelTogglingSubscription=this.panelService.panelOpenedObs.subscribe(e=>{this.settingsPanelOpened=e.opened,setTimeout(()=>this.cd.markForCheck(),300)})}scrollToBottom(){setTimeout(()=>{try{this.scrollContainer.forEach((e,i)=>{var o;e.nativeElement.scroll({top:null===(o=this.scrollContainer.get(i))||void 0===o?void 0:o.nativeElement.scrollHeight,left:0})})}catch(e){}},20)}}return t.\u0275fac=function(e){return new(e||t)(h(vo),h(_o),h(wi),h(ed),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["ov-captions"]],viewQuery:function(e,i){if(1&e&&St(fX,5),2&e){let o;xe(o=Oe())&&(i.captionEventRef=o)}},decls:6,vars:4,consts:[[1,"captions-container"],["captionsContainer",""],["class","captions-offset",3,"ngClass",4,"ngIf"],["class","captions-center-container",3,"ngClass",4,"ngIf"],["class","captions-center-container error-container",4,"ngIf"],["class","captions-offset",4,"ngIf"],[1,"captions-offset",3,"ngClass"],["id","caption-settings-btn","mat-flat-button","",3,"click"],["id","subtitle-settings-icon"],[1,"captions-center-container",3,"ngClass"],["class","element",4,"ngFor","ngForOf"],[1,"element"],["id","speaker",3,"ngStyle"],["id","caption-event",1,"caption-event",3,"ngClass"],["captionEventElement",""],["id","caption-text",1,"caption-text"],[1,"captions-center-container","error-container"],[3,"diameter"],[1,"captions-offset"]],template:function(e,i){if(1&e&&(L(0,"div",0,1),ne(2,gX,6,4,"div",2),ne(3,yX,2,10,"div",3),ne(4,CX,5,4,"div",4),ne(5,EX,1,0,"div",5),z()),2&e){const o=ji(1);x(2),q("ngIf",o.offsetWidth>=600&&!i.settingsPanelOpened),x(1),q("ngIf",i.isSttReady),x(1),q("ngIf",!i.isSttReady),x(1),q("ngIf",o.offsetWidth>=600&&!i.settingsPanelOpened)}},dependencies:[Gi,Io,Jt,cl,In,di,tr,br,Fb,Yn],styles:[".captions-container[_ngcontent-%COMP%]{display:flex;height:var(--ov-captions-height, 230px);margin:0 10px}.captions-offset[_ngcontent-%COMP%]{height:var(--ov-captions-height, 230px);width:15%;text-align:center}.captions-offset-xl[_ngcontent-%COMP%]{width:25%!important}.captions-center-container[_ngcontent-%COMP%]{flex-grow:1;align-self:center;max-height:var(--ov-captions-height, 230px);width:70%;overflow:hidden;height:var(--ov-captions-height, 230px);padding:0px 10vw}.error-container[_ngcontent-%COMP%]{display:grid;text-align:center;color:var(--ov-text-color);font-size:18px}mat-spinner[_ngcontent-%COMP%]{position:relative;inset:35% 0 0;margin:auto}.captions-center-container.screen-xl[_ngcontent-%COMP%]{padding:0px 14vw}.captions-center-container.screen-xl[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:22px}.captions-center-container.screen-xl[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:16px}.captions-center-container.screen-xl.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:140px}.captions-center-container.screen-xl.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:69px}.captions-center-container.screen-xl.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:35px}.captions-center-container.screen-md[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:20px}.captions-center-container.screen-md[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:14px}.captions-center-container.screen-md.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:140px}.captions-center-container.screen-md.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:69px}.captions-center-container.screen-md.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:35px}.captions-center-container.screen-sm[_ngcontent-%COMP%]{padding:0px 2vw}.captions-center-container.screen-sm[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:20px}.captions-center-container.screen-sm[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:12px}.captions-center-container.screen-sm.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:127px}.captions-center-container.screen-sm.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:64px}.captions-center-container.screen-sm.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:33px}.captions-center-container.screen-xs[_ngcontent-%COMP%]{padding:0px 2vw}.captions-center-container.screen-xs[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:20px}.captions-center-container.screen-xs[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:12px}.captions-center-container.screen-xs.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:130px}.captions-center-container.screen-xs.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:69px}.captions-center-container.screen-xs.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:35px}.captions-center-container[_ngcontent-%COMP%] .going-to-disappear[_ngcontent-%COMP%]{max-height:30px!important}#caption-settings-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-secondary-color)}#caption-settings-icon[_ngcontent-%COMP%]{font-size:15px;height:15px;width:15px;padding-right:5px}#speaker[_ngcontent-%COMP%]{margin-bottom:2px;font-weight:700;margin-left:-5px;width:fit-content}.captions-center-container[_ngcontent-%COMP%] .element[_ngcontent-%COMP%]{margin:8px 0}.caption-event[_ngcontent-%COMP%]{overflow:auto;pointer-events:none}.caption-text[_ngcontent-%COMP%], #speaker[_ngcontent-%COMP%]{color:var(--ov-text-color);font-family:Roboto,arial,sans-serif}.caption-text[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);padding:4.5px;line-height:1.6;word-break:break-word}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}"],data:{animation:[qi("captionAnimation",[Vn(":enter",[Pt({opacity:0}),Wn("50ms ease-in",Pt({opacity:1}))])])]},changeDetection:0}),t})(),yie=(()=>{class t{constructor(){}transform(e){let i=[];return e&&Object.keys(e).length>0&&(Array.isArray(e)?e.forEach(o=>{i=i.concat(o.getAvailableConnections())}):i=e.getAvailableConnections()),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Gn({name:"streams",type:t,pure:!0}),t})(),Cie=(()=>{class t{constructor(e){this.translateService=e}transform(e){let i="";const r=(null==e?void 0:e.getConnectionTypesActive().toString()).split(",");return r.forEach((s,a)=>{i+=this.translateService.translate(`PANEL.PARTICIPANTS.${s}`),r.length>0&&a<r.length-1&&(i+=", ")}),`(${i})`}}return t.\u0275fac=function(e){return new(e||t)(h(Ss,16))},t.\u0275pipe=Gn({name:"streamTypesEnabled",type:t,pure:!0}),t})(),ly=(()=>{class t{constructor(e,i,o){this.layoutService=e,this.participantService=i,this.cd=o,this.remoteParticipants=[],this.captionsEnabled=!0}set externalStream(e){e&&(this.streamTemplate=e.template)}ngOnInit(){this.subscribeToParticipants(),this.subscribeToCaptions()}ngAfterViewInit(){this.layoutService.initialize(this.layoutContainer.element.nativeElement)}ngOnDestroy(){this.localParticipant=null,this.remoteParticipants=[],this.localParticipantSubs&&this.localParticipantSubs.unsubscribe(),this.remoteParticipantsSubs&&this.remoteParticipantsSubs.unsubscribe(),this.captionsSubs&&this.captionsSubs.unsubscribe(),this.layoutService.clear()}subscribeToCaptions(){this.captionsSubs=this.layoutService.captionsTogglingObs.subscribe(e=>{this.captionsEnabled=e,this.cd.markForCheck(),this.layoutService.update()})}subscribeToParticipants(){this.localParticipantSubs=this.participantService.localParticipantObs.subscribe(e=>{this.localParticipant=e,this.layoutService.update(),this.cd.markForCheck()}),this.remoteParticipantsSubs=this.participantService.remoteParticipantsObs.subscribe(e=>{this.remoteParticipants=e,this.layoutService.update(),this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(ma),h(wi),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["ov-layout"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,SX,5,mt),Xe(o,rP,5)),2&e){let r;xe(r=Oe())&&(i.streamTemplate=r.first),xe(r=Oe())&&(i.externalStream=r.first)}},viewQuery:function(e,i){if(1&e&&St(B1,5,ln),2&e){let o;xe(o=Oe())&&(i.layoutContainer=o.first)}},decls:8,vars:9,consts:[[1,"container"],["id","layout",1,"layout"],["layout",""],["class","OT_root OT_publisher",3,"ngClass",4,"ngFor","ngForOf"],["class","OT_root OT_publisher","id","remote-participant",3,"ngClass",4,"ngFor","ngForOf"],["class","OV_ignored",4,"ngIf"],[1,"OT_root","OT_publisher",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["id","remote-participant",1,"OT_root","OT_publisher",3,"ngClass"],[1,"OV_ignored"]],template:function(e,i){1&e&&(L(0,"div",0)(1,"div",1,2),ne(3,wX,2,7,"div",3),Ee(4,"streams"),ne(5,MX,2,7,"div",4),Ee(6,"streams"),z(),ne(7,TX,1,0,"ov-captions",5),z()),2&e&&(lt("withCaptions",i.captionsEnabled),x(3),q("ngForOf",Ae(4,5,i.localParticipant)),x(2),q("ngForOf",Ae(6,7,i.remoteParticipants)),x(2),q("ngIf",i.captionsEnabled))},dependencies:[Gi,Io,Jt,rs,br,sP,yie],styles:['#remote-participant[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{height:100%}.withCaptions[_ngcontent-%COMP%]{height:calc(100% - var(--ov-captions-height, 250px))!important}.layout[_ngcontent-%COMP%]{position:relative;inset:0;min-width:350px!important;min-height:100%;width:inherit;height:-webkit-fill-available;height:-moz-available}.OT_root[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:#fff;margin:0;padding:0;border:0;font-size:100%;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%]:link, .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active{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:0px;min-height:0px;padding:3px;transition-duration:.1s;transition-timing-function:ease-in-out}.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_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_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_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:#fffc;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;-webkit-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}.OT_mini[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_bar.OT_mode-mini[_ngcontent-%COMP%], .OT_bar.OT_mode-mini-auto[_ngcontent-%COMP%]{bottom:0;height:auto}.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%] .OT_name.OT_mode-auto[_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}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{right:0;top:0;border-left:1px solid rgba(255,255,255,.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-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_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_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_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-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%], .OT_publisher[_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-auto[_ngcontent-%COMP%], .OT_publisher[_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-mini-auto[_ngcontent-%COMP%]{top:auto;bottom:-25px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_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-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_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%]: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_subscriber[_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%]: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:#000000bf}.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;animation:OT_spin 2s linear infinite}@keyframes OT_spin{to{transform:rotate(360deg)}}.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%]{object-fit:cover}@media only screen and (orientation: portrait){.OT_subscriber.OT_ForceContain.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{object-fit:contain!important}}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{object-fit:contain}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:center bottom}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:center}.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:#000c}.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 center}.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,rgba(151,206,0,1) 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:bottom right;pointer-events:none;inset:0 3px 3px 0}.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:center;pointer-events:none;inset: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:center;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:58px auto;pointer-events:none;inset: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:#000c}.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:center;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}'],changeDetection:0}),t})();var As=(()=>{return(t=As||(As={})).NICKNAME_CHANGED="nicknameChanged",t.CHAT="chat",As;var t})();let aP=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i}close(){this.dialogRef.close()}seeMore(){var e;null===(e=window.open("https://docs.openvidu.io/en/stable/openvidu-pro/","_blank"))||void 0===e||e.focus()}}return t.\u0275fac=function(e){return new(e||t)(h(Gl),h(Yf))},t.\u0275cmp=et({type:t,selectors:[["ov-pro-feature-template"]],decls:5,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"click"]],template:function(e,i){1&e&&(L(0,"h1",0),ce(1),z(),L(2,"div",1),ce(3),z(),ne(4,xX,10,6,"div",2)),2&e&&(x(1),Ne(i.data.title),x(2),Ne(i.data.description),x(1),q("ngIf",i.data.showActionButtons))},dependencies:[Jt,In,di,jO,Qf,Kf,Yn],encapsulation:2}),t})(),Cr=(()=>{class t{constructor(e,i){this.snackBar=e,this.dialog=i}launchNotification(e,i){e.config||(e.config={duration:3e3,verticalPosition:"top",horizontalPosition:"end"});const o=this.snackBar.open(e.message,e.buttonActionText,e.config);i&&o.onAction().subscribe(()=>{i()})}openDialog(e,i,o=!0){try{this.closeDialog()}catch(r){}finally{this.dialogRef=this.dialog.open(QR,{minWidth:"250px",data:{title:e,description:i,showActionButtons:o},disableClose:!o}),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(s=>{this.dialogRef=void 0})}}openProFeatureDialog(e,i,o=!0){try{this.closeDialog()}catch(r){}finally{this.dialogRef=this.dialog.open(aP,{minWidth:"250px",data:{title:e,description:i,showActionButtons:o},disableClose:!o}),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(s=>{this.dialogRef=void 0})}}openDeleteRecordingDialog(e){try{this.closeDialog()}catch(i){}finally{this.dialogRef=this.dialog.open(YR),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(i=>{i&&e()})}}openRecordingPlayerDialog(e,i=!0){try{this.closeDialog()}catch(o){}finally{this.dialogRef=this.dialog.open(KR,{minWidth:"250px",data:{src:e,showActionButtons:i},disableClose:!i})}}closeDialog(){var e;null===(e=this.dialogRef)||void 0===e||e.close(),this.dialogSubscription&&this.dialogSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(ie(NW),ie(Ib))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),yp=(()=>{class t{constructor(e,i,o,r,s){this.loggerSrv=e,this.openviduService=i,this.participantService=o,this.panelService=r,this.actionService=s,this._messageList=new yt([]),this.messageList=[],this.log=this.loggerSrv.get("ChatService"),this.messagesObs=this._messageList.asObservable(),this.messageSound=new Audio("data:audio/wav;base64,SUQzAwAAAAAAekNPTU0AAAAmAAAAAAAAAFJlY29yZGVkIG9uIDI3LjAxLjIwMjEgaW4gRWRpc29uLkNPTU0AAAAmAAAAWFhYAFJlY29yZGVkIG9uIDI3LjAxLjIwMjEgaW4gRWRpc29uLlRYWFgAAAAQAAAAU29mdHdhcmUARWRpc29u//uQxAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAAJAAALNABMTExMTExMTExMTGxsbGxsbGxsbGxsiIiIiIiIiIiIiIijo6Ojo6Ojo6Ojo76+vr6+vr6+vr6+1NTU1NTU1NTU1NTk5OTk5OTk5OTk5PX19fX19fX19fX1//////////////8AAAA8TEFNRTMuMTAwBK8AAAAAAAAAABUgJAadQQABzAAACzQeSO05AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//vAxAAABsADb7QQACOOLW3/NaBQzcKNbIACRU4IPh+H1Bhx+D7xQH4IHBIcLh+D/KOk4PwQcUOfy7/5c/IQQdrP8p1g+/////4YmoaJIwUxAFESnqIkyedtyHBoIBBD8xRVFILBVXBA8OKGuWmpLAiIAgcMHgAiQM8uBWBHlMp9xxWyoxCaksudVh8KBx50YE0aK0syZbR704cguOpoXYAqcWGp2LDxF/YFSUFkYWDpfFqiICYsMX7nYBeBwqWVu/eWkW9sxXVlRstdTUjZp2R1qWXSSnooIdGHXZlVt/VA7kSkOMsgTHdzVqrds5Sqe3Kqamq8ytRR2V2unJ5+Ua5TV8qW5jlnW3u7DOvu5Z1a1rC5hWwzy1rD8KXWeW/y3hjrPLe61NvKVWix61qlzMpXARASAAS9weVYFrKBrMWqu6jjUZ7fTbfURVYa/M7yswHEFcSLKLxqmslA6BeR7roKj6JqOin0zpcOsgrR+x0kUiko0SNUDpLOuSprSMjVJNz6/rpOpNHRUlRNVImJq6lJPd3dE1b0ldExPFbgZMgYOwaBR942K9XsCn9m9lwgoQgAACZu3yILcRAQaUpwkvPr+a6+6KdVuq9gQIb1U7y4HjTa7HGscIisVOM5lXYFkWydyDBYmjp7oKgOUYUacqINdIqIEMd0FBAWiz/UyMqbMzMchf7XOtKFoSXM8QcfQaNlmA8HQ0tbXsD56lKDIvZ3XYxS3vulF0MAQQnvwnBXQfZPwLwVAMkYoSghSkIpckFJOBBNJZmYhE4E7P58SGQAgjVRZ1ZtNmo2rHq7nz3mS2U6OiXGtkhZehWmijBt/3d1TGcQEq42sxqOUFEQVDwWBY0tRsAioZKw6WJhg69O6pJra3XaSp791mB2IASQldhZLfOAk7DIgCXxTHo0nWBshqN0Y84zMGzCMKRtYGbVvz7WAVC5NzrmykQLIlrfN2qHXQ6Z/qUmDKX/+3DE1gAPtQ9b/YaAIeAiqv2GFazATncobkc9EAAkvb9pnMjVsk3wQhM9Llh+HCIRFERd4sLROgTPOK2jHfzHpU382nQFIAgACc2fGGBODtNkTQqhIzJHrH4NFkIEcw6PKxgocFSm3CrgiDYp1tMRSzjwCVaVDj43vWr7jWiC4oaHsHa27zUKxJKDNef/jXeGuxlKTY2dTwOFKA+y6l2TnRhImDKhYQgEia822x5Zt6y5b96ngYYjIBDeuCFQwnowEHFcp3F3Q2yFFZLvS54JdWCn+lVJXjs1V1u3qntRpyU8I7Uq3/ay03bW1ndLf92/uUxpELIO44f3Kr6CBbEYW5dOlWo5LKwRnMbRHsUId8KFVgUFXg+GEpWg9Vv41YxbN1tuymfD5Cr/3HMVUhALLdtDLQpBOv1r//tgxO0ADnD3V+ekTeG+G6q9hY30qMDU1SSNOegcyOxBoQ6FNCdLvxHr23ta0sU9ysR0WbGp8xM0j1rmy6Zr61vFbVi1920wDjexZD1Z+TpXaAnGC+1gfGlRYSgYUZSeasoiXkDdS8A7z2CJdo8X3+M5NAxThdP9vO5OpACoq7KA8i6CmgsiBNQ+BkMg9yVkFKk5DiSpPVTGZJJ0XCtvGs0fKYhJ1Sb+MYfbrmtaZw+f619TVxvG5msonGaUczjGdaJoY6OcuBcGi5RYaShYxh1TNgZGJNCzgoXIN4rdR1pV0JWhFmfyldXv/JcJhgBTctuDPFGOdFAmCeC4h9ncJKcguVzY//tgxPOADhDdUeelDSHXH6o9gwrUqD7gLVJhOFnCIov6lFMYCyLz5OtEnP0OCssoUOxoKYq1NRqMpI7E75LkV8jKdIyOCknQELjSQSIuahE0OjfSySUn1W63D7/HmEXCJq83cxwh1KJ2/AANk0J/F+vsgcl1QRtTY1iDZMF0eTtOv4KncRPWe0b0xGlbTjXSib4W3AlD5TypIs2e3aqryiyIkpcxOMeN3GtGH12uYqkWhO0dqSlA9aq6uwhmNp3cAAinFeOC6lmceR2EiGUjwM14WJE5cVj0Ss0zW1vY5ZjnpSSL3Fs/V2kvm3VN90v4Zn8/mlRoVZF07uiFRV3nb+Mxz9LI//tgxPgADjytT+w8beHFFen88ZuE0l3ZwRBEJJwAAVdxwnIVhoQyXVGAWpKYIQ8VhfxuratfsU5ID7+4IOeoYj0s3vrerQYt1oo8FPA5Yi/j+ig7Cprmx3iziji76xilapmKJEQCVJQABLYVBTxyRmsXMv5AC/C2TmwTQviGYc5ILASBakpWy1I4As5Z++CQmtb3UTMNv1opus8JJzSpx8Pgv8Ul6ktLZ3Oy7QEI6CIkVHyXmE+tt69/P0V0lIuLQGmhCSAQCJEiVa9VVEiSQV+QU26Kx/Tv/EGG5PBQoapMQU1FMy4xMDCqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//tQxP4ADRjPT+ekbSFXFqi9h5k0qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpMQU1FMy4xMDCqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7MMT8AAmom0HsMTJpKRLmPPYiUKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7MMTzgElMmTfnpNJo1AimfPSZgaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7EMTWA8AAAaQAAAAgAAA0gAAABKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"),this.messageSound.volume=.6}subscribeToChat(){this.openviduService.getWebcamSession().on(`signal:${As.CHAT}`,i=>{const o=i.from.connectionId,r=JSON.parse(i.data),s=this.openviduService.isMyOwnConnection(o);if(this.messageList.push({isLocal:s,nickname:r.nickname,message:r.message}),!this.panelService.isChatPanelOpened()){const a={message:`${r.nickname.toUpperCase()} sent a message`,cssClassName:"messageSnackbar",buttonActionText:"READ"};this.launchNotification(a),this.messageSound.play().catch(()=>{})}this._messageList.next(this.messageList)})}sendMessage(e){if(""!==(e=e.replace(/ +(?= )/g,""))&&" "!==e){const i={message:e,nickname:this.participantService.getMyNickname()};this.openviduService.sendSignal(As.CHAT,void 0,i)}}launchNotification(e){this.actionService.launchNotification(e,this.panelService.togglePanel.bind(this.panelService,Gt.CHAT))}}return t.\u0275fac=function(e){return new(e||t)(ie(or),ie(_o),ie(wi),ie(vo),ie(Cr))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Eie={urls:{schemeMatches:!0,tldMatches:!0},email:!0,phone:!0,mention:"twitter",hashtag:"twitter",stripPrefix:!1,stripTrailingSlash:!1,newWindow:!0,truncate:{length:0,location:"end"},decodePercentEncoding:!0};class Sie{constructor(){this.autolinker=new J$(Eie)}link(n){return this.autolinker.link(n)}}let Aie=(()=>{class t{constructor(){this.linkifer=new Sie}transform(e){return e&&this.linkifer.link(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Gn({name:"linkify",type:t,pure:!0}),t})(),lP=(()=>{class t{constructor(e,i,o){this.chatService=e,this.panelService=i,this.cd=o,this.messageList=[]}ngOnInit(){this.subscribeToMessages()}ngAfterViewInit(){setTimeout(()=>{this.scrollToBottom(),this.chatInput.nativeElement.focus()},100)}ngOnDestroy(){this.chatMessageSubscription&&this.chatMessageSubscription.unsubscribe()}eventKeyPress(e){e&&13===e.keyCode&&(e.preventDefault(),this.sendMessage())}sendMessage(){this.message&&(this.chatService.sendMessage(this.message),this.message="")}scrollToBottom(){setTimeout(()=>{try{this.chatScroll.nativeElement.scrollTop=this.chatScroll.nativeElement.scrollHeight}catch(e){}},20)}close(){this.panelService.togglePanel(Gt.CHAT)}subscribeToMessages(){this.chatMessageSubscription=this.chatService.messagesObs.subscribe(e=>{this.messageList=e,this.panelService.isChatPanelOpened()&&(this.scrollToBottom(),this.cd.markForCheck())})}}return t.\u0275fac=function(e){return new(e||t)(h(yp),h(vo),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["ov-chat-panel"]],viewQuery:function(e,i){if(1&e&&(St(OX,5),St(IX,5)),2&e){let o;xe(o=Oe())&&(i.chatScroll=o.first),xe(o=Oe())&&(i.chatInput=o.first)}},decls:24,vars:17,consts:[["id","chat-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","20px",1,"text-container"],[1,"text-info"],["fxFlex","75%","fxLayoutAlign","space-evenly none",1,"messages-container"],["chatScroll",""],["class","message",3,"ngClass",4,"ngFor","ngForOf"],["fxFlex","55px","fxFlexOrder","3","fxLayoutAlign","space-evenly none",1,"input-container"],["maxlength","500","rows","4","autocomplete","off","id","chat-input",3,"placeholder","ngModel","keypress","ngModelChange"],["chatInput",""],["mat-icon-button","","id","send-btn",3,"click"],[3,"matTooltip"],[1,"message",3,"ngClass"],[1,"msg-detail"],[1,"nickname-container"],[4,"ngIf"],[1,"msg-content"],[3,"innerHTML"]],template:function(e,i){1&e&&(L(0,"div",0)(1,"div",1)(2,"h3",2),ce(3),Ee(4,"translate"),z(),L(5,"button",3),we("click",function(){return i.close()}),Ee(6,"translate"),L(7,"mat-icon"),ce(8,"close"),z()()(),L(9,"div",4)(10,"p",5),ce(11),Ee(12,"translate"),z()(),L(13,"div",6,7),ne(15,kX,8,6,"div",8),z(),L(16,"div",9)(17,"textarea",10,11),we("keypress",function(r){return i.eventKeyPress(r)})("ngModelChange",function(r){return i.message=r}),Ee(19,"translate"),z(),L(20,"button",12),we("click",function(){return i.sendMessage()}),L(21,"mat-icon",13),Ee(22,"translate"),ce(23,"send"),z()()()()),2&e&&(x(3),Ne(Ae(4,7,"PANEL.CHAT.TITLE")),x(2),Yt("matTooltip",Ae(6,9,"PANEL.CLOSE")),x(6),Ne(Ae(12,11,"PANEL.CHAT.SUBTITLE")),x(4),q("ngForOf",i.messageList),x(2),Yt("placeholder",Ae(19,13,"PANEL.CHAT.PLACEHOLDER")),q("ngModel",i.message),x(4),Yt("matTooltip",Ae(22,15,"PANEL.CHAT.SEND")))},dependencies:[Gi,Io,Jt,ds,Dl,xl,Js,In,di,nr,bs,da,jb,ua,br,Aie,Yn],styles:[".panel-container[_ngcontent-%COMP%]{margin:20px;background-color:var(--ov-panel-background);border-radius:var(--ov-panel-radius);max-height:calc(100% - 40px);min-height:calc(100% - 40px)}.panel-header-container[_ngcontent-%COMP%]{padding:10px;display:flex}.panel-title[_ngcontent-%COMP%]{margin-left:5px;margin-top:auto;margin-bottom:auto}.panel-close-button[_ngcontent-%COMP%]{margin-left:auto;border-radius:var(--ov-buttons-radius)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#a7a7a7;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7c7c7c}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--ov-light-color);border-radius:4px}",".text-container[_ngcontent-%COMP%]{background-color:var(--ov-light-color);color:var(--ov-panel-text-color);text-align:center;font-size:12px}.text-info[_ngcontent-%COMP%]{margin:3px}.messages-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.input-container[_ngcontent-%COMP%]{height:25px;display:flex;background-color:var(--ov-light-color);padding:10px;margin:10px;border-radius:var(--ov-panel-radius)}.input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;height:16px;margin:auto;background-color:transparent;display:block;border:none;padding:0;word-wrap:break-word;white-space:pre-wrap;resize:none;outline:none;box-shadow:none;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif}.message[_ngcontent-%COMP%]{position:relative;padding:3px 0}.msg-detail[_ngcontent-%COMP%]{width:95%;display:inline-block}.msg-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.nickname-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:var(--ov-panel-text-color)}.msg-content[_ngcontent-%COMP%]{position:relative;border-radius:var(--ov-panel-radius);padding:8px;color:#000;width:auto;max-width:95%;font-size:13px;word-break:break-all}#send-btn[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .nickname-container[_ngcontent-%COMP%]{text-align:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{float:left}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .nickname-container[_ngcontent-%COMP%]{text-align:right}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{float:right} a:-webkit-any-link{color:#1a73e8}"],changeDetection:0}),t})();var Pn=(()=>{return(t=Pn||(Pn={})).STARTING="starting",t.STARTED="started",t.STOPPING="stopping",t.STOPPED="stopped",t.FAILED="failed",t.READY="ready",Pn;var t})();let td=(()=>{class t{constructor(e,i){this.actionService=e,this.sanitizer=i,this.currentRecording={status:Pn.STOPPED},this.recordingStatus=new yt(null),this.baseUrl="/"+(window.location.pathname.split("/")[1]?window.location.pathname.split("/")[1]+"/":""),this.recordingStatusObs=this.recordingStatus.asObservable()}updateStatus(e){this.currentRecording={status:e},this.recordingStatus.next({info:this.currentRecording})}startRecording(e){this.currentRecording={status:Pn.STARTED,id:e.id,name:e.name,reason:e.reason},this.startRecordingTime(),this.recordingStatus.next({info:this.currentRecording,time:this.recordingTime})}stopRecording(e){this.currentRecording.status=Pn.STOPPED,this.currentRecording.reason=e.reason,this.recordingStatus.next({info:this.currentRecording,time:null}),this.stopRecordingTime()}playRecording(e){const i=e.id;this.actionService.openRecordingPlayerDialog(`${this.baseUrl}recordings/${i}/${i}.mp4`)}downloadRecording(e){const i=e.id,r=document.createElement("a");r.href=`/recordings/${i}/${i}.mp4`,r.download=`${i}.mp4`,r.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{r.remove()},100)}startRecordingTime(){this.recordingTime=new Date,this.recordingTime.setHours(0,0,0,0),this.recordingTimeInterval=setInterval(()=>{this.recordingTime.setSeconds(this.recordingTime.getSeconds()+1),this.recordingTime=new Date(this.recordingTime.getTime()),this.recordingStatus.next({info:this.currentRecording,time:this.recordingTime})},1e3)}stopRecordingTime(){clearInterval(this.recordingTimeInterval),this.recordingTime=null}}return t.\u0275fac=function(e){return new(e||t)(ie(Cr),ie(eu))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var sn=(()=>{return(t=sn||(sn={})).NONE="NONE",t.BLUR="BLUR",t.IMAGE="IMAGE",sn;var t})();let cy=(()=>{class t{constructor(e,i,o){this.participantService=e,this.storageService=i,this.openviduService=o,this.backgroundSelected=new yt(""),this.backgrounds=[{id:"no_effect",type:sn.NONE,thumbnail:"block"},{id:"soft_blur",type:sn.BLUR,thumbnail:"blur_on"},{id:"1",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-1.jpg",src:"assets/backgrounds/bg-1.jpg"},{id:"2",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-2.jpg",src:"assets/backgrounds/bg-2.jpg"},{id:"3",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-3.jpg",src:"assets/backgrounds/bg-3.jpg"},{id:"4",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-4.jpg",src:"assets/backgrounds/bg-4.jpg"},{id:"19",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-19.jpg",src:"assets/backgrounds/bg-19.jpg"},{id:"5",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-5.jpg",src:"assets/backgrounds/bg-5.jpg"},{id:"6",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-6.jpg",src:"assets/backgrounds/bg-6.jpg"},{id:"7",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-7.jpg",src:"assets/backgrounds/bg-7.jpg"},{id:"8",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-8.jpg",src:"assets/backgrounds/bg-8.jpg"},{id:"9",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-9.jpg",src:"assets/backgrounds/bg-9.jpg"},{id:"10",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-10.jpg",src:"assets/backgrounds/bg-10.jpg"},{id:"11",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-11.jpg",src:"assets/backgrounds/bg-11.jpg"},{id:"12",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-12.jpg",src:"assets/backgrounds/bg-12.jpg"},{id:"13",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-13.jpg",src:"assets/backgrounds/bg-13.jpg"},{id:"14",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-14.jpg",src:"assets/backgrounds/bg-14.jpg"},{id:"15",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-15.jpg",src:"assets/backgrounds/bg-15.jpg"},{id:"16",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-16.jpg",src:"assets/backgrounds/bg-16.jpg"},{id:"17",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-17.jpg",src:"assets/backgrounds/bg-17.jpg"},{id:"18",type:sn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-18.jpg",src:"assets/backgrounds/bg-18.jpg"}],this.backgroundSelectedObs=this.backgroundSelected.asObservable()}getBackgrounds(){return this.backgrounds}isBackgroundApplied(){const e=this.backgroundSelected.getValue();return!!e&&"no_effect"!==e}applyBackgroundFromStorage(){return Re(this,void 0,void 0,function*(){const e=this.storageService.getBackground();if(e){const i=this.backgrounds.find(o=>o.id===e);i&&this.applyBackground(i)}})}applyBackground(e){return Re(this,void 0,void 0,function*(){if(e.id!==this.backgroundSelected.getValue()){const i=this.participantService.getMyCameraPublisher().stream.filter,o=!!i&&i.type.startsWith("VB:");let r={token:this.openviduService.getWebcamToken(),url:""};e.type===sn.IMAGE&&(r.url=e.src),o&&this.hasSameTypeAsAbove(e.type)?this.replaceBackground(e):(yield this.removeBackground(),yield this.participantService.getMyCameraPublisher().stream.applyFilter(`VB:${e.type.toLowerCase()}`,r)),this.storageService.setBackground(e.id),this.backgroundSelected.next(e.id)}})}removeBackground(){return Re(this,void 0,void 0,function*(){this.isBackgroundApplied()&&(this.backgroundSelected.next("no_effect"),yield this.participantService.getMyCameraPublisher().stream.removeFilter(),this.storageService.removeBackground())})}replaceBackground(e){return Re(this,void 0,void 0,function*(){yield this.participantService.getMyCameraPublisher().stream.filter.execMethod("update",{url:e.src})})}hasSameTypeAsAbove(e){const i=this.backgrounds.find(o=>o.id===this.backgroundSelected.getValue());return(null==i?void 0:i.type)===e}}return t.\u0275fac=function(e){return new(e||t)(ie(wi),ie(Bo),ie(_o))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),uy=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,A,H,te){this.actionService=e,this.openviduService=i,this.participantService=o,this.loggerSrv=r,this.chatService=s,this.libService=a,this.layoutService=l,this.panelService=c,this.recordingService=u,this.translateService=d,this.captionService=f,this.platformService=A,this.backgroundService=H,this.cd=te,this.usedInPrejoinPage=!1,this.onNodeCrashed=new De,this.sidenavMode=Kl.SIDE,this.preparing=!0,this.SIDENAV_WIDTH_LIMIT_MODE=790,this.log=this.loggerSrv.get("SessionComponent")}beforeunloadHandler(){this.leaveSession()}sizeChange(){this.layoutService.update()}set sidenavMenu(e){setTimeout(()=>{e&&(this.sideMenu=e,this.subscribeToTogglingMenu())},0)}set videoContainer(e){setTimeout(()=>{e&&!this.toolbarTemplate&&(e.nativeElement.style.height="100%",e.nativeElement.style.minHeight="100%",this.layoutService.update())},0)}set container(e){setTimeout(()=>{e&&(this.drawer=e,this.drawer._contentMarginChanges.subscribe(()=>{setTimeout(()=>{this.stopUpdateLayoutInterval(),this.layoutService.update(),this.drawer.autosize=!1},250)}))},0)}set layoutContainer(e){setTimeout(()=>Re(this,void 0,void 0,function*(){e&&(yield this.backgroundService.applyBackgroundFromStorage())}),0)}ngOnInit(){return Re(this,void 0,void 0,function*(){this.usedInPrejoinPage||(this.openviduService.getScreenToken()||this.libService.screenshareButton.next(!1),this.session=this.openviduService.getWebcamSession(),this.sessionScreen=this.openviduService.getScreenSession(),this.subscribeToOpenViduException(),this.subscribeToCaptionLanguage(),this.subscribeToConnectionCreatedAndDestroyed(),this.subscribeToStreamCreated(),this.subscribeToStreamDestroyed(),this.subscribeToStreamPropertyChange(),this.subscribeToNicknameChanged(),this.chatService.subscribeToChat(),this.subscribeToReconnection(),this.libService.recordingButton.getValue()&&this.libService.recordingActivity.getValue()&&this.subscribeToRecordingEvents(),yield this.connectToSession(),this.platformService.isIos()&&this.participantService.isMyCameraActive()&&(yield this.openviduService.publishVideo(!1),yield this.openviduService.publishVideo(!0))),this.preparing=!1,this.cd.markForCheck()})}ngOnDestroy(){var e;null===(e=this.session)||void 0===e||e.off("reconnecting"),this.participantService.clear(),this.session=null,this.sessionScreen=null,this.menuSubscription&&this.menuSubscription.unsubscribe(),this.layoutWidthSubscription&&this.layoutWidthSubscription.unsubscribe()}leaveSession(){this.log.d("Leaving session..."),this.openviduService.disconnect()}subscribeToTogglingMenu(){this.sideMenu.openedChange.subscribe(()=>{this.stopUpdateLayoutInterval(),this.layoutService.update()}),this.sideMenu.openedStart.subscribe(()=>{this.startUpdateLayoutInterval()}),this.sideMenu.closedStart.subscribe(()=>{this.startUpdateLayoutInterval()}),this.menuSubscription=this.panelService.panelOpenedObs.pipe(Bl(1)).subscribe(e=>{this.sideMenu&&(this.settingsPanelOpened=e.opened&&e.type===Gt.SETTINGS,this.sideMenu.opened&&e.opened&&(e.type===Gt.SETTINGS||e.oldType===Gt.SETTINGS)&&(this.drawer.autosize=!0,this.startUpdateLayoutInterval()),e.opened?this.sideMenu.open():this.sideMenu.close())})}subscribeToLayoutWidth(){this.layoutWidthSubscription=this.layoutService.layoutWidthObs.subscribe(e=>{this.sidenavMode=e<=this.SIDENAV_WIDTH_LIMIT_MODE?Kl.OVER:Kl.SIDE})}connectToSession(){return Re(this,void 0,void 0,function*(){try{const e=this.openviduService.getWebcamToken(),i=this.openviduService.getScreenToken();this.participantService.haveICameraAndScreenActive()?(yield this.openviduService.connectSession(this.openviduService.getWebcamSession(),e),yield this.openviduService.connectSession(this.openviduService.getScreenSession(),i),yield this.openviduService.publish(this.participantService.getMyCameraPublisher()),yield this.openviduService.publish(this.participantService.getMyScreenPublisher())):this.participantService.isOnlyMyScreenActive()?(yield this.openviduService.connectSession(this.openviduService.getScreenSession(),i),yield this.openviduService.publish(this.participantService.getMyScreenPublisher())):(yield this.openviduService.connectSession(this.openviduService.getWebcamSession(),e),yield this.openviduService.publish(this.participantService.getMyCameraPublisher()))}catch(e){this.log.e("There was an error connecting to the session:",e.code,e.message),this.actionService.openDialog(this.translateService.translate("ERRORS.SESSION"),(null==e?void 0:e.error)||(null==e?void 0:e.message)||e)}})}subscribeToOpenViduException(){this.session.on("exception",e=>Re(this,void 0,void 0,function*(){e.name===_s.ExceptionEventName.SPEECH_TO_TEXT_DISCONNECTED?(this.log.w(e.name,e.message),this.openviduService.setSTTReady(!1),yield this.openviduService.subscribeRemotesToSTT(this.captionService.getLangSelected().lang)):this.log.e(e.name,e.message)}))}subscribeToConnectionCreatedAndDestroyed(){this.session.on("connectionCreated",e=>{var i,o;const r=null===(i=e.connection)||void 0===i?void 0:i.connectionId,s=this.participantService.getNicknameFromConnectionData(e.connection.data),a=!this.openviduService.isMyOwnConnection(r),l=!(null!=s&&s.includes(`_${en.SCREEN}`)),c=null===(o=e.connection)||void 0===o?void 0:o.data;if(a&&l&&(this.participantService.addRemoteConnection(r,c,null),this.openviduService.needSendNicknameSignal())){const u={clientData:this.participantService.getMyNickname()};this.openviduService.sendSignal(As.NICKNAME_CHANGED,[e.connection],u)}}),this.session.on("connectionDestroyed",e=>{const i=this.participantService.getNicknameFromConnectionData(e.connection.data),o=!this.openviduService.isMyOwnConnection(e.connection.connectionId),r=!(null!=i&&i.includes(`_${en.SCREEN}`));o&&r&&this.participantService.removeConnectionByConnectionId(e.connection.connectionId)})}subscribeToStreamCreated(){this.session.on("streamCreated",e=>Re(this,void 0,void 0,function*(){var i,o,r,s;const a=null===(o=null===(i=e.stream)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.connectionId,l=null===(s=null===(r=e.stream)||void 0===r?void 0:r.connection)||void 0===s?void 0:s.data,c=this.participantService.getTypeConnectionData(l)===en.CAMERA,u=!this.openviduService.isMyOwnConnection(a),d=this.captionService.getLangSelected().lang;if(u){const f=this.session.subscribe(e.stream,void 0);if(this.participantService.addRemoteConnection(a,l,f),this.openviduService.isSttReady()&&this.captionService.areCaptionsEnabled()&&c)try{yield this.openviduService.subscribeStreamToStt(e.stream,d)}catch(A){this.log.e("Error subscribing from STT: ",A),yield this.openviduService.subscribeRemotesToSTT(d)}}}))}subscribeToStreamDestroyed(){this.session.on("streamDestroyed",e=>Re(this,void 0,void 0,function*(){var i,o;const r=e.stream.connection.connectionId,s=null===(o=null===(i=e.stream)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.data,a=!this.openviduService.isMyOwnConnection(r),l=this.participantService.getTypeConnectionData(s)===en.CAMERA;if(this.participantService.removeConnectionByConnectionId(r),this.openviduService.isSttReady()&&this.captionService.areCaptionsEnabled()&&a&&l)try{yield this.session.unsubscribeFromSpeechToText(e.stream)}catch(c){this.log.e("Error unsubscribing from STT: ",c)}}))}subscribeToCaptionLanguage(){this.captionLanguageSubscription=this.captionService.captionLangObs.subscribe(e=>Re(this,void 0,void 0,function*(){this.captionService.areCaptionsEnabled()&&(this.log.d("Re-subscribe from STT because of language changed to ",e.lang),yield this.openviduService.unsubscribeRemotesFromSTT(),yield this.openviduService.subscribeRemotesToSTT(e.lang))}))}subscribeToStreamPropertyChange(){this.session.on("streamPropertyChanged",e=>{!this.openviduService.isMyOwnConnection(e.stream.connection.connectionId)&&this.participantService.updateRemoteParticipants()})}subscribeToNicknameChanged(){this.session.on(`signal:${As.NICKNAME_CHANGED}`,e=>{const i=e.from.connectionId;if(!this.openviduService.isMyOwnConnection(i)){const r=this.participantService.getNicknameFromConnectionData(e.data);this.participantService.setRemoteNickname(i,r)}})}subscribeToReconnection(){this.session.on("reconnecting",()=>{this.log.w("Connection lost: Reconnecting"),this.actionService.openDialog(this.translateService.translate("ERRORS.CONNECTION"),this.translateService.translate("ERRORS.RECONNECT"),!1)}),this.session.on("reconnected",()=>{this.log.w("Connection lost: Reconnected"),this.actionService.closeDialog()}),this.session.on("sessionDisconnected",e=>{"nodeCrashed"===e.reason?(this.actionService.openDialog(this.translateService.translate("ERRORS.CONNECTION"),this.translateService.translate("ERRORS.RECONNECT"),!1),this.onNodeCrashed.emit()):"networkDisconnect"===e.reason&&(this.actionService.closeDialog(),this.leaveSession())})}subscribeToRecordingEvents(){this.session.on("recordingStarted",e=>{this.recordingService.startRecording(e)}),this.session.on("recordingStopped",e=>{this.recordingService.stopRecording(e)})}startUpdateLayoutInterval(){this.updateLayoutInterval=setInterval(()=>{this.layoutService.update()},50)}stopUpdateLayoutInterval(){this.updateLayoutInterval&&clearInterval(this.updateLayoutInterval)}}return t.\u0275fac=function(e){return new(e||t)(h(Cr),h(_o),h(wi),h(or),h(yp),h(Ft),h(ma),h(vo),h(td),h(Ss),h(ed),h(ec),h(cy),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["ov-session"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,NX,5,mt),Xe(o,LX,5,mt),Xe(o,B1,5,mt)),2&e){let r;xe(r=Oe())&&(i.toolbarTemplate=r.first),xe(r=Oe())&&(i.panelTemplate=r.first),xe(r=Oe())&&(i.layoutTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&(St(FX,5),St(BX,5,Pe),St(VX,5),St(jX,5)),2&e){let o;xe(o=Oe())&&(i.sidenavMenu=o.first),xe(o=Oe())&&(i.videoContainer=o.first),xe(o=Oe())&&(i.container=o.first),xe(o=Oe())&&(i.layoutContainer=o.first)}},hostBindings:function(e,i){1&e&&we("beforeunload",function(){return i.beforeunloadHandler()},0,Mc)("resize",function(){return i.sizeChange()},!1,Mc)},inputs:{usedInPrejoinPage:"usedInPrejoinPage"},outputs:{onNodeCrashed:"onNodeCrashed"},decls:1,vars:1,consts:[["id","session-container",4,"ngIf"],["id","session-container"],[1,"sidenav-container"],["container","","videoContainer",""],["position","end","fixedInViewport","true","fixedTopGap","0","fixedBottomGap","0",1,"sidenav-menu",3,"mode","ngClass"],["sidenav",""],[4,"ngTemplateOutlet"],[1,"sidenav-main"],["id","layout-container"],["layoutContainer",""],["id","footer-container",4,"ngIf"],["id","footer-container"]],template:function(e,i){1&e&&ne(0,WX,12,8,"div",0),2&e&&q("ngIf",!i.preparing)},dependencies:[Gi,Jt,rs,qI,WI,Zb,br],styles:["#session-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color);height:100%}.sidenav-container[_ngcontent-%COMP%]{position:relative;height:calc(100% - 70px);min-height:calc(100% - 70px);padding-top:0;width:100%;overflow:hidden}.sidenav-menu[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:380px;background-color:var(--ov-primary-color);border-left:none;position:absolute;z-index:1}.big[_ngcontent-%COMP%]{width:650px;max-width:100%}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%]{z-index:0!important}.sidenav-main[_ngcontent-%COMP%]{height:100%;overflow:hidden;min-height:-webkit-fill-available;min-height:-moz-available}#layout-container[_ngcontent-%COMP%]{height:inherit;width:inherit}.mat-drawer-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color)}#toolbar-container[_ngcontent-%COMP%], #footer-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color);width:100%;height:70px}#footer[_ngcontent-%COMP%]{color:#fff;height:25px;background-color:#333;padding:0 14px 0 0;position:absolute;bottom:0;left:0;z-index:999999}.reconnecting-container[_ngcontent-%COMP%]{width:100%;height:100%;z-index:1000;background-color:#000;opacity:80%;position:absolute}@media only screen and (max-width: 600px){#session-container[_ngcontent-%COMP%]{width:100%}} .mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:1px!important} .mat-input-element{caret-color:#000} .mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#000} .mat-form-field-label{color:var(--ov-panel-text-color)!important} .mat-form-field.mat-focused .mat-form-field-ripple{background-color:var(--ov-panel-text-color)!important} .mat-drawer{background-color:transparent!important}"],data:{animation:[qi("sessionAnimation",[Vn(":enter",[Pt({opacity:0}),Wn("50ms",Pt({opacity:1}))])])]},changeDetection:0}),t})();var _a=(()=>{return(t=_a||(_a={})).BIG="zoom_in",t.NORMAL="zoom_out",_a;var t})();let dy=(()=>{class t extends Al{constructor(){super(...arguments),this.containerSelector=".sidenav-main",this.customClass="cdk-overlay-container"}_createContainer(){const e=document.createElement("div");e.classList.add(this.customClass);let i=this.getElement(this.containerSelector);i||(i=this.getElement("body")),this._containerElement=i.appendChild(e)}setSelector(e){const i=this.getElement("."+this.customClass);if(i&&this.containerSelector!==e){const o=this.getElement(e);this.containerSelector=e,null==o||o.appendChild(i)}}getElement(e){return document.querySelector(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275prov=ye({token:t,factory:t.\u0275fac}),t})(),cP=(()=>{class t{constructor(e){this.cdkOverlayModel=e}setSelector(e){this.cdkOverlayModel.setSelector(e)}}return t.\u0275fac=function(e){return new(e||t)(ie(dy))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),uP=(()=>{class t{constructor(){this.isSpeaking=!1}ngOnInit(){this.subscribeSpeakingEvents()}ngOnDestroy(){this.unsubscribeSpeakingEvents()}subscribeSpeakingEvents(){this.streamManager&&(this.streamManager.on("publisherStartSpeaking",e=>this.isSpeaking=!0),this.streamManager.on("publisherStopSpeaking",e=>this.isSpeaking=!1))}unsubscribeSpeakingEvents(){this.streamManager&&(this.streamManager.off("publisherStartSpeaking"),this.streamManager.off("publisherStopSpeaking"))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=et({type:t,selectors:[["ov-audio-wave"]],inputs:{streamManager:"streamManager"},decls:4,vars:3,consts:[[1,"audio-container"],[1,"stick","normal",3,"ngClass"],[1,"stick","loud",3,"ngClass"]],template:function(e,i){1&e&&(L(0,"div",0),Je(1,"div",1)(2,"div",2)(3,"div",1),z()),2&e&&(x(1),q("ngClass",i.isSpeaking?"play":"pause"),x(1),q("ngClass",i.isSpeaking?"play":"pause"),x(1),q("ngClass",i.isSpeaking?"play":"pause"))},dependencies:[Gi,br],styles:["@keyframes normal{0%{height:20%}50%{height:40%}to{height:20%}}@keyframes loud{0%{height:30%}50%{height:80%}to{height:30%}}.audio-container[_ngcontent-%COMP%]{background-color:var(--ov-tertiary-color);padding:5px;max-width:15px;max-height:15px;height:15px;width:15px;border-radius:var(--ov-buttons-radius);display:flex;justify-content:space-between}.stick[_ngcontent-%COMP%]{margin:auto;height:80%;width:3px;background:var(--ov-text-color);border-radius:8px}.pause[_ngcontent-%COMP%]{animation-play-state:paused;height:1px}.play[_ngcontent-%COMP%]{animation-duration:1.2s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-play-state:running}.normal[_ngcontent-%COMP%]{animation-name:normal}.loud[_ngcontent-%COMP%]{animation-name:loud}"]}),t})(),dP=(()=>{class t{constructor(){}set name(e){this.letter=e[0]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=et({type:t,selectors:[["ov-avatar-profile"]],inputs:{name:"name",color:"color"},decls:4,vars:4,consts:[["id","video-poster",1,"poster"],[1,"initial",3,"ngStyle"],["id","poster-text"]],template:function(e,i){1&e&&(L(0,"div",0)(1,"div",1)(2,"span",2),ce(3),z()()()),2&e&&(x(1),q("ngStyle",fi(2,$X,i.color)),x(2),Ne(i.letter))},dependencies:[cl,Fb],styles:[".poster[_ngcontent-%COMP%]{height:100%;width:100%;background-color:#000;position:absolute;z-index:1}.initial[_ngcontent-%COMP%]{position:absolute;display:inline-grid;z-index:1;margin:auto;inset:0;height:70px;width:70px;border-radius:var(--ov-video-radius);border:2px solid var(--ov-text-color);color:#000}#poster-text[_ngcontent-%COMP%]{padding:0!important;font-weight:700;font-size:40px;margin:auto}"]}),t})(),hP=(()=>{class t{constructor(){this.type=en.CAMERA}ngAfterViewInit(){setTimeout(()=>{this._streamManager&&this._videoElement&&(this.updateVideoStyles(),this._streamManager.addVideoElement(this._videoElement.nativeElement))})}set videoElement(e){this._videoElement=e}set streamManager(e){e&&(this._streamManager=e,this._videoElement&&this._streamManager&&(this.updateVideoStyles(),this._streamManager.addVideoElement(this._videoElement.nativeElement)))}updateVideoStyles(){var e,i;this.type=null===(i=null===(e=this._streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.typeOfVideo,this.type===en.SCREEN?(this._videoElement.nativeElement.style.objectFit="contain",this._videoElement.nativeElement.classList.add("screen-type")):(this._videoElement.nativeElement.style.objectFit="cover",this._videoElement.nativeElement.classList.add("camera-type"))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=et({type:t,selectors:[["ov-video"]],viewQuery:function(e,i){if(1&e&&St(YX,5),2&e){let o;xe(o=Oe())&&(i.videoElement=o.first)}},inputs:{mutedSound:"mutedSound",streamManager:"streamManager"},decls:2,vars:2,consts:[[1,"OT_video-element",3,"muted"],["videoElement",""]],template:function(e,i){1&e&&Je(0,"video",0,1),2&e&&(q("muted",i.mutedSound),xt("id",i.streamManager&&i._streamManager.stream?"video-"+i._streamManager.stream.streamId:"video-undefined"))},styles:["video[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%;border-radius:var(--ov-video-radius);background-color:#000}"]}),t})(),hy=(()=>{class t{constructor(e,i,o,r,s,a){this.openviduService=e,this.layoutService=i,this.participantService=o,this.storageService=r,this.cdkSrv=s,this.libService=a,this.videoSizeIconEnum=_a,this.videoTypeEnum=en,this.videoSizeIcon=_a.BIG,this.isMinimal=!1,this.showNickname=!0,this.showAudioDetection=!0,this.showSettingsButton=!0}set streamContainer(e){setTimeout(()=>{e&&(this._streamContainer=e,setTimeout(()=>{this.showVideo=!0},100))},0)}set stream(e){this._stream=e,this.checkVideoEnlarged(),this._stream.participant&&(this.nickname=this._stream.participant.nickname)}set nicknameInputElement(e){setTimeout(()=>{null==e||e.nativeElement.focus()})}ngOnInit(){this.subscribeToStreamDirectives()}ngOnDestroy(){this.cdkSrv.setSelector("body"),this.settingsButtonSub&&this.settingsButtonSub.unsubscribe(),this.displayAudioDetectionSub&&this.displayAudioDetectionSub.unsubscribe(),this.displayParticipantNameSub&&this.displayParticipantNameSub.unsubscribe(),this.minimalSub&&this.minimalSub.unsubscribe()}toggleVideoEnlarged(){var e,i,o,r,s,a,l,c,u,d,f,A;!(null===(o=null===(i=null===(e=this._stream.streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.connection)||void 0===o)&&o.connectionId&&(this.openviduService.isMyOwnConnection(null===(a=null===(s=null===(r=this._stream.streamManager)||void 0===r?void 0:r.stream)||void 0===s?void 0:s.connection)||void 0===a?void 0:a.connectionId)?this.participantService.toggleMyVideoEnlarged(null===(u=null===(c=null===(l=this._stream.streamManager)||void 0===l?void 0:l.stream)||void 0===c?void 0:c.connection)||void 0===u?void 0:u.connectionId):this.participantService.toggleRemoteVideoEnlarged(null===(A=null===(f=null===(d=this._stream.streamManager)||void 0===d?void 0:d.stream)||void 0===f?void 0:f.connection)||void 0===A?void 0:A.connectionId)),this.layoutService.update()}toggleVideoMenu(e){var i,o;this.menuTrigger.menuOpen?this.menuTrigger.closeMenu():(this.cdkSrv.setSelector("#container-"+(null===(o=null===(i=this._stream.streamManager)||void 0===i?void 0:i.stream)||void 0===o?void 0:o.streamId)),this.menuTrigger.openMenu())}toggleMuteForcibly(){this.participantService.setRemoteMutedForcibly(this._stream.participant.id,!this._stream.participant.isMutedForcibly)}toggleNicknameForm(){var e,i;null!==(i=null===(e=this._stream)||void 0===e?void 0:e.participant)&&void 0!==i&&i.local&&(this.toggleNickname=!this.toggleNickname)}updateNickname(e){(13===(null==e?void 0:e.keyCode)||"focusout"===(null==e?void 0:e.type))&&(this.nickname&&(this.participantService.setMyNickname(this.nickname),this.storageService.setNickname(this.nickname),this.openviduService.sendSignal(As.NICKNAME_CHANGED,void 0,{clientData:this.nickname})),this.toggleNicknameForm())}replaceScreenTrack(){return Re(this,void 0,void 0,function*(){const e={videoSource:Xu.SCREEN,publishVideo:!0,publishAudio:!this.participantService.isMyCameraActive(),mirror:!1};yield this.openviduService.replaceTrack(en.SCREEN,e)})}checkVideoEnlarged(){this.videoSizeIcon=this._stream.videoEnlarged?_a.NORMAL:_a.BIG}subscribeToStreamDirectives(){this.minimalSub=this.libService.minimalObs.subscribe(e=>{this.isMinimal=e}),this.displayParticipantNameSub=this.libService.displayParticipantNameObs.subscribe(e=>{this.showNickname=e}),this.displayAudioDetectionSub=this.libService.displayAudioDetectionObs.subscribe(e=>{this.showAudioDetection=e}),this.settingsButtonSub=this.libService.streamSettingsButtonObs.subscribe(e=>{this.showSettingsButton=e})}}return t.\u0275fac=function(e){return new(e||t)(h(_o),h(ma),h(wi),h(Bo),h(cP),h(Ft))},t.\u0275cmp=et({type:t,selectors:[["ov-stream"]],viewQuery:function(e,i){if(1&e&&(St(Es,5),St(QX,5),St(KX,5,Pe),St(ZX,5)),2&e){let o;xe(o=Oe())&&(i.menuTrigger=o.first),xe(o=Oe())&&(i.menu=o.first),xe(o=Oe())&&(i.streamContainer=o.first),xe(o=Oe())&&(i.nicknameInputElement=o.first)}},inputs:{stream:"stream"},decls:1,vars:1,consts:[["class","OV_stream",3,"ngClass","id",4,"ngIf"],[1,"OV_stream",3,"ngClass","id"],["streamContainer",""],["id","nickname-container","class","nickname",3,"fullscreen",4,"ngIf"],["id","audio-wave-container",4,"ngIf"],[3,"name","color",4,"ngIf"],[3,"streamManager","mutedSound","dblclick"],[1,"status-icons"],["mat-icon-button","","id","statusMic","disabled","",4,"ngIf"],["id","settings-container","class","videoButtons",4,"ngIf"],["id","nickname-container",1,"nickname"],["class","nicknameContainer","selected","",3,"click",4,"ngIf"],["id","nickname-input-container",3,"fullscreen",4,"ngIf"],["selected","",1,"nicknameContainer",3,"click"],["id","nickname",4,"ngIf"],["id","nickname"],["id","nickname-input-container"],["matInput","","autocomplete","off","maxlength","20",3,"ngModel","ngModelChange","keypress","focusout"],["nicknameInput",""],["id","audio-wave-container"],[3,"streamManager"],[3,"name","color"],["mat-icon-button","","id","statusMic","disabled",""],["id","settings-container",1,"videoButtons"],["mat-icon-button","","matTooltipPosition","above","aria-label","Video settings menu",3,"matTooltip","click"],[3,"matMenuTriggerFor"],["yPosition","above","xPosition","before"],["menu","matMenu"],["mat-menu-item","","id","videoZoomButton",3,"click"],[4,"ngIf"],["mat-menu-item","","id","volumeButton",3,"click",4,"ngIf"],["mat-menu-item","","id","changeScreenButton",3,"click",4,"ngIf"],["mat-menu-item","","id","volumeButton",3,"click"],["mat-menu-item","","id","changeScreenButton",3,"click"]],template:function(e,i){1&e&&ne(0,mJ,9,11,"div",0),2&e&&q("ngIf",i._stream)},dependencies:[Gi,Jt,ds,Dl,xl,Js,In,di,ey,nr,br,Yu,Cs,Es,uP,dP,hP,Yn],styles:[".no-size[_ngcontent-%COMP%]{height:0px!important;width:0px!important}.nickname[_ngcontent-%COMP%]{padding:0;position:absolute;z-index:999;border-radius:var(--ov-video-radius);color:var(--ov-text-color);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif}.nicknameContainer[_ngcontent-%COMP%]{background-color:var(--ov-secondary-color);padding:5px;color:var(--ov-text-color);font-weight:700;border-radius:var(--ov-video-radius)}#nickname-input-container[_ngcontent-%COMP%]{background-color:var(--ov-secondary-color);border-radius:var(--ov-video-radius)}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}#audio-wave-container[_ngcontent-%COMP%]{position:absolute;right:0;z-index:2;padding:5px}.fullscreen[_ngcontent-%COMP%]{top:40px}video[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.status-icons[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%]{position:absolute;bottom:0;z-index:10;text-align:center}.status-icons[_ngcontent-%COMP%]{left:0}.status-icons[_ngcontent-%COMP%] button[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--ov-text-color);width:26px;height:26px;margin:5px;border-radius:var(--ov-buttons-radius)}.status-icons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)}.status-icons[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{line-height:0px}.status-icons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px}#settings-container[_ngcontent-%COMP%]{right:0}#settings-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--ov-secondary-color)}.OV_stream[_ngcontent-%COMP%]{width:100%;height:100%;position:relative;overflow:hidden;background-color:transparent;border-radius:var(--ov-video-radius)}input[_ngcontent-%COMP%]{caret-color:#fff!important}"],data:{animation:[qi("posterAnimation",[Vn(":enter",[Pt({opacity:0}),Wn("100ms",Pt({opacity:1}))]),Vn(":leave",[Pt({opacity:1}),Wn("200ms",Pt({opacity:0}))])])]}}),t})(),fP=(()=>{class t{constructor(e){this.media=e,this.screenSizeObs=this.media.asObservable()}toggleFullscreen(e){const i=window.document,o=i.getElementById(e);i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement?i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():i.webkitExitFullscreen&&i.webkitExitFullscreen():o.requestFullscreen?o.requestFullscreen():o.msRequestFullscreen?o.msRequestFullscreen():o.mozRequestFullScreen?o.mozRequestFullScreen():o.webkitRequestFullscreen&&o.webkitRequestFullscreen()}isSmallElement(e){return null==e?void 0:e.className.includes(Vo.SMALL_ELEMENT)}}return t.\u0275fac=function(e){return new(e||t)(ie(Uq))},t.\u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),pP=(()=>{class t{constructor(e){this.elementRef=e,this.defaultLogo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ0AAADtCAMAAACS/9AMAAACLlBMVEUAAAAAiqoAiKoAiKr/zAD/zAD/zAD/zAD+zAH/zAD/zAD+zAH/zAD/zAAAiKoBiKoAian/zAAAiKoAiKoAiKoAiKr/zAD/zAAAiKr/zAAAiKoAiKr/zAD/zAD/zAD/zAAAiKsAiKr/zAD/zQAAiKsAiKr/zAD/zQD/zAAAiKoAiKr/zAD/zAD/zQD/zAAAiKr+zAD/zAAAiar/zAD/zAD/zAAAian/zAAAiKr/zAD/zAD/zQAAiKv/zAAAiKr/zAAAiKr/zAD/zAAAiKoAiKoAiKr+zAD/zQAAiKr/zAAAiKr/zAAAiKr/zAAAiKr/zAAAiKoAiKoAiKoAiKoAiKoBian/zQBHwlYWymQAiKr/zAAG02IAiKr///8G0mMJ02EA02j7zAH9zAEA02UI02EG1mBl0D3+//4FxW+sziEG02MG1l/9//0ExHED02AJ1GT7/v0S1Wns/PMI02MA0FgA0VoG2F0Ag68C0l4Ah6sAha0B0lwi2HQN1GYBmJsEwXP2/vnL9t7a+egCpI8FzWhNzknk++7A9Ni789Sk78Z66KwAjqRV4pQu2nze+euE6rJh5JwEu3kX12yUzyqO67hx5qUDqopD3ok83YU13IADtIAO01880kxg0D/Hzhav8c2Z7b9o5aBN4I8DsYMFyGwU012A0DLnzQnxzQXx/ffp+/HU+OSS7Lsw0lGfzyalzyO0zh27zhvUzRHczg0Ai6cBk6Ad0lkm0lVy0De/zhkyJ1GVAAAAWnRSTlMAAvz+/AX6gAT7cQMB/qYDBAJh9p7h7BoO0beJbsyfPy1YZwjbvXtbUicU9XYg45FjMyDYxcGxsIFFKRQI8Oq7q6mJeW5COg3So5iYUujIkGRQRjszoU7vu07Vus4OAAANMUlEQVR42uzWPWsCQRDG8adYz93MTLGNEvAFTtADX1CiiEoQLGIl9vP9P0i8GIJNCvdOcBd/H+CKPzOzh5eXuzF7Imtt48lZS54ZD8TeEqJC1uMxiHDBx22/yN8mw+ZTm3TyYrHzANgy6sbEQGOR95anTCNhxt1ePgVAHrUihv86vBv9IcY5lz0154xoabzKd2Bi1MZ7DEYrKXM7IyIaBxHjjIq2Dm14X+NgFB8q4kwsHW6IMaKtSQOEWli01+VHNVZiRLsLEKM6wmamEbcoGaPjeR05CPNM427x2+MAz5Vj5LEPxpWUOahqjCLmi3FLnA6r5fDYthJYk7/pKECoYpVMDFWjpy08QhE6CcVQdboGIxCjPdMIf7j+V2VXCE11mhKjSwYjBOOY2GhUGQ6LUVJX41pjjzCMdXI1RLMtfNgN/UxtUVSdDmFxP0pwUcJXxeKc2ItSEm3twAGLgn2Cs3GxAQXUGCT3vpaMdgIOh8c0S7GG03NADUJfU6zxzX4drDQMBAEYnk08iApbqIJaBREL1kuhB/FQFNFeRDwIRdgEs9utUiM+Rp+gx1ZvrV6sUA/q2zmth4gYIQu7W0N+8gQfM8tkhh3CgoLGdhoxUOMgu0S//6oALCTX2Eypxvq8isZaCs+NscbKrIrGXKaRaWQamUamkWn8Fw0xrmG0Lw1Cyc8ozeVylACxoiEEsxNq/Hl9IYlpjQnF48dw8H5ttPs2dlFf/KWT8t7x6cYyYJSY1BD4PQx6/ZAbT0ou7/zYnP1ioVYFIMSUBi7vU6cXchl6zcBCty0nLndCslQoAaHEiIZgYvjGpRc0PStdXrX82Fx3QpKvl4ASAxqCjXpcBoFnqUgjngRB8kcUiHYNwW66XGEsTGlEHqs7QDVrCNaRocJcGNOIPPwt3BatGojBPYXBMK6BIUcFiEYNXBOpgGFHAznOqkC0aTTYqC8VMCxpIEdZnwbW5gpvhiUNzPVrQDVpCPYyBRhJNBy/qO/dEM/29ySRBg7HOdBII32jkUjD8XeBRBqpezWSzka+AkSDRoO9dkNvCkqigcPxyY6967YNQ2EAdtu96dBOXfoGfYUOHfsGLKcEEUIQomySgABZgOMhdgxfgsBG4ilxgAC5DVnzdjmKRSYGsgiIACX8/0HQ/OHw8PD8bX2rQYMGr0aURlWNPzXVxu471Pjy/wdNYE7jw90olTU+/6pF4+pymzUhlTSI419r6801aCpvxDlxGpXa6FtrUBN9aMSNUl3jZy0a9804KJU1fre2atDYa0YTrazxvfUJGl7jKzSgAQ1oQAMa0IAGNKARtIZWLI7pK6DBhM5MnOfCmlTp0DUEs8v5oD/dP1x1yUMEraHT/FzyIhHv3HVNrES4GoKpIZeJpCSSPEbHhUeoGtrOeRLxdSL6Oxi1ySNMDZ1NejziPrLwWLQNUyFqKDPjiaPwHtNVTh7habCYugbfjJQR768UeYSmEedTr7HpcXu0Qx5BaYi43Snaxqse+2NmmYLG2oOTR2yFgob3uEjJAxrOY3BCHhoapUc0PMms1tAokkguz05tpjU0So/kbGkzpaHhPA4nNlUaGuVzrrf2gIbzOO8a8oCG87grPAQ0So/r+ZMHNEqPzuxpPQaN0uNmvS6Exsa6EBp+PbbIDdPQcB79o51MQcOvgwYTq6Dh6oNfj62CRpmEy7FR0CgjeW+ZaWj46himqI3nRKeZhoYvjpFR0PAaM2i80FhAwyXiyQR945G98+pxGggC8CYxkJBYTui99957Eb33ItiYhHYCJaEJSAjlQi8CUQSiwwNdIJpE+3mM44QhIoBnbbi143m4p9Pp9Gm+bTPrxdS4dNifYX/AuHr8iE+jsrXfcv7eYX8tarLIbTl13N+nVEssJ68dPObvYavlpuNw3OOfbxil6hyUIuHo3D/7MtsYjkFZ1j8XNVugjJYOv4KwyzwPhXYfv7pUrh0YZ+X7/Mpjpc4GLPyqdLUmDTU2v0a/P1fpV8j4/Rs5o9fJ7+35scC4eNfv+6ouMIweWr8n0Cy4vrkCCwy/X7Q8kVwt383we4nNxhW4x9RAfeavkcavTV5GU1Pj3EGA2zqnt+T+vMBonPspgONCPRq5cvOwwaKR7i7BLT+4APr7BUaD3Ws7ePgOjhu1l1L2HWy8O4+GKvvrnuY04H1YSI67+xFH7sdpTkPelYaR4/D1XdWL9LuqpzmNeo/eyI4np82xw+iKNU5zGvcbC2UcJ65fOnX6zcVbTw4Yk2ojf3/DwLH30OHMiX3wE062ZPg2y4iWpJHMwGwKH+7ZhywcopEVodGKDfLmN52ye4RotOGtPUmj5NNAGvlS0aeBNG4c9ccNpHG/4LoZFsNxGreFaIzhigdpJJvOCNCIso1c9SKNVLPAuJFgYxWueo9G09lPAnNKjE2f6UEaOKUQaSR6csWDNG4XBGiwKFvGI56jgcMGjQZMKt7LDdilFHURGgk2cjhXvUYDRaHRYDE2mSseo5E8e7koRiPKBnuNRir/FFOD9EQZ5Eb/8Vzx0ts6qSZIDTKNSkTZGOdofJTg3aVUHlfl1l96rESMxSY6hGM7f5xs8cCVF/3dS3N1PpwrXnnmMZV9hp4Qxw10xZlZ9tWXFho4EMbZz5gapDkFcQziiuLIyPGwZSYV1ORsc0Gn01jKNOYYDlTlUUu+eplK5vdgZlBoTGFxpBGDVcdw4OHqF1FTqWzyqY4wKDRWmzQQx7QJXFUU25NKy4yigCKZzZaaC0UBGCE9tK4ybqAsrfqNAh4RVbWVHV///8CRAhRN+WTpTBETg0Zj1jCTBkYiwRa1Hc+BRSSiqKqoKt+sqJJyMJJAIp989rS5iMMnVZRuCANtgVX6xl6jTBBgTQRCcVAVZNGUdSLyRjQlU7tv3G7+VKiTF7QHUX/lAT8WLRw0Z/xM5d89Og4snu2xHaVS6caN+09vn2m+rB8VQ4Fvjg/F3KjlkWAQ4eljpw7u13bEoB5zuErdquzY+ZdZ8OwZ3YkoFo8WII4WdVuBK9G6QBLhBKtEGAqTEWeWHDgL3r9c0GWKkL4AadQlEktEw+Fwqyh9t6/yl192pH8rSb48C8oUQX0DwLAQxGoLbuszO38rCcyCUkVQHzDOGo0w1qxJON7tyNTJDgklKQ+h65hmBUaMMTz5IOF4n96RdoEkRma0X2MNBp6n03E8frs1k5ZdEj0U1GctsAgDROmHqUHE8erFA+CRlncmMViE9IHjrMCwW1zYDsdgjx5s3ZpJptM7D8onSQhQhPSOqzUCjOmdhAtP6jbOX94893zH1q07ks9AEvMfEIpgyDEGRgSD5h9cPL8LCwSYxYiyIUKpgekBQD68ePRw06QB7YM2/XY42i8evSDOAhYTw1bBGvNju6LyCQtZLD6sz9rl7QSjb/f2uiPpEZrVseOAxSu7LZ23fJyRE5rVxDDLTqNsHqUrCl8xJsoCMWYvhk7SHdAlpPdlXWZUN6uawYKSGr05V+2xiCzrzBJRBhHQtLhoQD6vGWBXFzwLDmhx6yRwfp1rRxS1Ikk0xmwH+N1lim1dYA6ZUTtsUkSJYtePUGJ06hdl0QRzJLSAI7rgUosYCTatNVfFWSi9qpI4xQN1EValO4szemBfragkPXvXSiKDLiF9scYCTCxmc0VYkh6tCJJQdOmGugjQCPYRoxFjnWHHJockmB6oi6Aq84RUMbvjZJHEti5YKhAdRJdwRR5JbOqCRzt4zkUSZdEKrkokSU16sL4d6bpgwZUaZje+XJLU6kLeu2CjhgiNVTwimyQ1uvQh6YIVV9jF00VpBaUD6SQR1wVxbGYafQxdqHJVQklEdUFVRpNoYI1NTkkwNEbXJaQPgJ0bVRQ2gSuSSmJLFyCHjSukHZu0kgjqgi1eVFF6cEVmScRnl5C+MoDJYb10ILUkQrpgswZxxzaTq5JLIqILNvJYC7ykIb8kZF2wp5xGoxePuEASmi6oCjQAknZs0CrpCkloumAhgVRVmuoeSei6BPUOLEAsHbhGErIuUEgg7NxiLNyVKy6ShK7LWlTFWrOXqyQh6EIsJJifeXKZJCRdoJAQt6pKrFw6cJ0kBF2gkLAeaBCavVwoSa0uA1EXC4UEcrOXKr0kVnUBGgPhdyzmxpx6NECSrtJLYkUXLCTQm71Qkpkj+rtAkjq6iBUSsNlL/VUSPmekOySxogveOqA3e6mGJFPdI4kFXfDq1u8DvzHgckkwNIa61OJYzjRCsxdKorpPkj/pgi1gFksHHpCkhsew0YYupEICluYjPy+32rpVku9DqV1CENkFMZHAT1whimhueQ7hTIKSPBiF4NkFMZFA1JAoJ+8wySS4swvhiQTE0SRsnCycwEwyZGsS7MEBzy6IiQRiZg9MQZUK7/DIJDiyC2LIh3CLQ93T3N9tuGQSBOAHZRcmYHYhZXkgDyQQBIdLJkEARljtwsQkTPR6OB4Obh7u4ZRJMLMLM2Tb54gHwOSh5Swl5aw1GhiQ8ICkktHAgGYXAUZGgdHAIAAAQBR1+dE1+L0AAAAASUVORK5CYII="}loadDefaultLogo(){this.elementRef.nativeElement.src=this.ovLogo||this.defaultLogo}}return t.\u0275fac=function(e){return new(e||t)(h(Pe))},t.\u0275dir=ge({type:t,selectors:[["img","ovLogo",""]],hostBindings:function(e,i){1&e&&we("error",function(){return i.loadDefaultLogo()})},inputs:{ovLogo:"ovLogo"}}),t})(),gP=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,A,H,te,pe){this.documentService=e,this.chatService=i,this.panelService=o,this.participantService=r,this.openviduService=s,this.oVDevicesService=a,this.actionService=l,this.loggerSrv=c,this.layoutService=u,this.cd=d,this.libService=f,this.platformService=A,this.recordingService=H,this.translateService=te,this.storageSrv=pe,this.onLeaveButtonClicked=new De,this.onCameraButtonClicked=new De,this.onMicrophoneButtonClicked=new De,this.onFullscreenButtonClicked=new De,this.onScreenshareButtonClicked=new De,this.onParticipantsPanelButtonClicked=new De,this.onChatPanelButtonClicked=new De,this.onActivitiesPanelButtonClicked=new De,this.onStartRecordingClicked=new De,this.onStopRecordingClicked=new De,this.unreadMessages=0,this.messageList=[],this.isFullscreenActive=!1,this.isChatOpened=!1,this.isParticipantsOpened=!1,this.isActivitiesOpened=!1,this.isMinimal=!1,this.showScreenshareButton=!0,this.showFullscreenButton=!0,this.showBackgroundEffectsButton=!0,this.showLeaveButton=!0,this.showRecordingButton=!0,this.showSettingsButton=!0,this.showMoreOptionsButton=!0,this.showParticipantsPanelButton=!0,this.showActivitiesPanelButton=!0,this.showChatPanelButton=!0,this.showLogo=!0,this.showSessionName=!0,this.showCaptionsButton=!0,this.videoMuteChanging=!1,this.recordingStatus=Pn.STOPPED,this._recordingStatus=Pn,this.isSessionCreator=!1,this.currentWindowHeight=window.innerHeight,this.log=this.loggerSrv.get("ToolbarComponent")}set externalAdditionalButtons(e){e&&(this.toolbarAdditionalButtonsTemplate=e.template)}set externalAdditionalPanelButtons(e){e&&(this.toolbarAdditionalPanelButtonsTemplate=e.template)}sizeChange(e){this.currentWindowHeight>=window.innerHeight&&(this.isFullscreenActive=!1,this.currentWindowHeight=window.innerHeight)}keyDown(e){if("F11"===e.key)return e.preventDefault(),this.toggleFullscreen(),this.currentWindowHeight=window.innerHeight,!1}ngOnInit(){return Re(this,void 0,void 0,function*(){this.subscribeToToolbarDirectives(),this.hasVideoDevices=this.oVDevicesService.hasVideoDeviceAvailable(),this.hasAudioDevices=this.oVDevicesService.hasAudioDeviceAvailable(),this.session=this.openviduService.getWebcamSession(),this.subscribeToUserMediaProperties(),this.subscribeToReconnection(),this.subscribeToMenuToggling(),this.subscribeToChatMessages(),this.subscribeToRecordingStatus(),this.subscribeToScreenSize(),this.subscribeToCaptionsToggling()})}ngAfterViewInit(){var e;null===(e=this.menuTrigger)||void 0===e||e.menuOpened.subscribe(()=>{this.isSessionCreator=this.participantService.getMyRole()===Xl.MODERATOR})}ngOnDestroy(){this.panelTogglingSubscription&&this.panelTogglingSubscription.unsubscribe(),this.chatMessagesSubscription&&this.chatMessagesSubscription.unsubscribe(),this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe(),this.screenshareButtonSub&&this.screenshareButtonSub.unsubscribe(),this.fullscreenButtonSub&&this.fullscreenButtonSub.unsubscribe(),this.backgroundEffectsButtonSub&&this.backgroundEffectsButtonSub.unsubscribe(),this.leaveButtonSub&&this.leaveButtonSub.unsubscribe(),this.recordingButtonSub&&this.recordingButtonSub.unsubscribe(),this.participantsPanelButtonSub&&this.participantsPanelButtonSub.unsubscribe(),this.chatPanelButtonSub&&this.chatPanelButtonSub.unsubscribe(),this.displayLogoSub&&this.displayLogoSub.unsubscribe(),this.displaySessionNameSub&&this.displaySessionNameSub.unsubscribe(),this.minimalSub&&this.minimalSub.unsubscribe(),this.activitiesPanelButtonSub&&this.activitiesPanelButtonSub.unsubscribe(),this.recordingSubscription&&this.recordingSubscription.unsubscribe(),this.screenSizeSub&&this.screenSizeSub.unsubscribe(),this.settingsButtonSub&&this.settingsButtonSub.unsubscribe(),this.captionsSubs&&this.captionsSubs.unsubscribe()}toggleMicrophone(){return Re(this,void 0,void 0,function*(){this.onMicrophoneButtonClicked.emit();try{yield this.openviduService.publishAudio(!this.isAudioActive)}catch(e){this.log.e("There was an error toggling microphone:",e.code,e.message),this.actionService.openDialog(this.translateService.translate("ERRORS.TOGGLE_MICROPHONE"),(null==e?void 0:e.error)||(null==e?void 0:e.message)||e)}})}toggleCamera(){return Re(this,void 0,void 0,function*(){this.videoMuteChanging=!0,this.onCameraButtonClicked.emit();try{const e=!this.participantService.isMyVideoActive();this.panelService.isExternalPanelOpened()&&!e&&this.panelService.togglePanel(Gt.BACKGROUND_EFFECTS),yield this.openviduService.publishVideo(e)}catch(e){this.log.e("There was an error toggling camera:",e.code,e.message),this.actionService.openDialog(this.translateService.translate("ERRORS.TOGGLE_CAMERA"),(null==e?void 0:e.error)||(null==e?void 0:e.message)||e)}this.videoMuteChanging=!1})}toggleScreenShare(){return Re(this,void 0,void 0,function*(){this.onScreenshareButtonClicked.emit();try{yield this.openviduService.toggleScreenshare()}catch(e){this.log.e("There was an error toggling screen share",e.code,e.message),e&&"SCREEN_SHARING_NOT_SUPPORTED"===e.name&&this.actionService.openDialog(this.translateService.translate("ERRORS.SCREEN_SHARING"),this.translateService.translate("ERRORS.SCREEN_SUPPORT"))}})}leaveSession(){this.log.d("Leaving session..."),this.openviduService.disconnect(),this.onLeaveButtonClicked.emit()}toggleRecording(){this.recordingStatus===Pn.STARTED?(this.log.d("Stopping recording"),this.onStopRecordingClicked.emit(),this.recordingService.updateStatus(Pn.STOPPING)):this.recordingStatus===Pn.STOPPED&&(this.onStartRecordingClicked.emit(),this.recordingService.updateStatus(Pn.STARTING),this.showActivitiesPanelButton&&!this.isActivitiesOpened&&this.toggleActivitiesPanel("recording"))}toggleBackgroundEffects(){this.openviduService.isOpenViduPro()?this.panelService.togglePanel(Gt.BACKGROUND_EFFECTS):this.actionService.openProFeatureDialog(this.translateService.translate("PANEL.BACKGROUND.TITLE"),this.translateService.translate("PANEL.PRO_FEATURE"))}toggleCaptions(){this.openviduService.isOpenViduPro()?this.layoutService.toggleCaptions():this.actionService.openProFeatureDialog(this.translateService.translate("PANEL.SETTINGS.CAPTIONS"),this.translateService.translate("PANEL.PRO_FEATURE"))}toggleSettings(){this.panelService.togglePanel(Gt.SETTINGS)}toggleParticipantsPanel(){this.onParticipantsPanelButtonClicked.emit(),this.panelService.togglePanel(Gt.PARTICIPANTS)}toggleChatPanel(){this.onChatPanelButtonClicked.emit(),this.panelService.togglePanel(Gt.CHAT)}toggleFullscreen(){this.isFullscreenActive=!this.isFullscreenActive,this.documentService.toggleFullscreen("session-container"),this.onFullscreenButtonClicked.emit()}toggleActivitiesPanel(e){this.onActivitiesPanelButtonClicked.emit(),this.panelService.togglePanel(Gt.ACTIVITIES,e)}subscribeToReconnection(){this.session.on("reconnecting",()=>{this.panelService.isPanelOpened()&&this.panelService.closePanel(),this.isConnectionLost=!0}),this.session.on("reconnected",()=>{this.isConnectionLost=!1})}subscribeToMenuToggling(){this.panelTogglingSubscription=this.panelService.panelOpenedObs.subscribe(e=>{this.isChatOpened=e.opened&&e.type===Gt.CHAT,this.isParticipantsOpened=e.opened&&e.type===Gt.PARTICIPANTS,this.isActivitiesOpened=e.opened&&e.type===Gt.ACTIVITIES,this.isChatOpened&&(this.unreadMessages=0),this.cd.markForCheck()})}subscribeToChatMessages(){this.chatMessagesSubscription=this.chatService.messagesObs.pipe(Bl(1)).subscribe(e=>{this.panelService.isChatPanelOpened()||this.unreadMessages++,this.messageList=e,this.cd.markForCheck()})}subscribeToUserMediaProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.isWebcamVideoActive=e.isCameraVideoActive(),this.isAudioActive=e.hasAudioActive(),this.isScreenShareActive=e.isScreenActive(),this.isSessionCreator=e.getRole()===Xl.MODERATOR,this.storageSrv.setAudioMuted(!this.isAudioActive),this.storageSrv.setVideoMuted(!this.isWebcamVideoActive),this.cd.markForCheck())})}subscribeToRecordingStatus(){this.recordingSubscription=this.recordingService.recordingStatusObs.pipe(Bl(1)).subscribe(e=>{this.recordingStatus=e.info.status,e.time&&(this.recordingTime=e.time),this.cd.markForCheck()})}subscribeToToolbarDirectives(){this.minimalSub=this.libService.minimalObs.subscribe(e=>{this.isMinimal=e,this.cd.markForCheck()}),this.screenshareButtonSub=this.libService.screenshareButtonObs.subscribe(e=>{this.showScreenshareButton=e&&!this.platformService.isMobile(),this.cd.markForCheck()}),this.fullscreenButtonSub=this.libService.fullscreenButtonObs.subscribe(e=>{this.showFullscreenButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.leaveButtonSub=this.libService.leaveButtonObs.subscribe(e=>{this.showLeaveButton=e,this.cd.markForCheck()}),this.recordingButtonSub=this.libService.recordingButtonObs.subscribe(e=>{this.showRecordingButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.settingsButtonSub=this.libService.toolbarSettingsButtonObs.subscribe(e=>{this.showSettingsButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.chatPanelButtonSub=this.libService.chatPanelButtonObs.subscribe(e=>{this.showChatPanelButton=e,this.cd.markForCheck()}),this.participantsPanelButtonSub=this.libService.participantsPanelButtonObs.subscribe(e=>{this.showParticipantsPanelButton=e,this.cd.markForCheck()}),this.activitiesPanelButtonSub=this.libService.activitiesPanelButtonObs.subscribe(e=>{this.showActivitiesPanelButton=e,this.cd.markForCheck()}),this.backgroundEffectsButtonSub=this.libService.backgroundEffectsButton.subscribe(e=>{this.showBackgroundEffectsButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.displayLogoSub=this.libService.displayLogoObs.subscribe(e=>{this.showLogo=e,this.cd.markForCheck()}),this.displaySessionNameSub=this.libService.displaySessionNameObs.subscribe(e=>{this.showSessionName=e,this.cd.markForCheck()}),this.captionsSubs=this.libService.captionsButtonObs.subscribe(e=>{this.showCaptionsButton=e,this.cd.markForCheck()})}subscribeToScreenSize(){this.screenSizeSub=this.documentService.screenSizeObs.subscribe(e=>{this.screenSize=e[0].mqAlias,this.cd.markForCheck()})}subscribeToCaptionsToggling(){this.captionsSubs=this.layoutService.captionsTogglingObs.subscribe(e=>{this.captionsEnabled=e,this.cd.markForCheck()})}checkDisplayMoreOptions(){this.showMoreOptionsButton=this.showFullscreenButton||this.showBackgroundEffectsButton||this.showRecordingButton||this.showSettingsButton}}return t.\u0275fac=function(e){return new(e||t)(h(fP),h(yp),h(vo),h(wi),h(_o),h(tc),h(Cr),h(or),h(ma),h(Ut),h(Ft),h(ec),h(td),h(Ss),h(Bo))},t.\u0275cmp=et({type:t,selectors:[["ov-toolbar"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,vJ,5,mt),Xe(o,_J,5,mt),Xe(o,ZR,5),Xe(o,XR,5)),2&e){let r;xe(r=Oe())&&(i.toolbarAdditionalButtonsTemplate=r.first),xe(r=Oe())&&(i.toolbarAdditionalPanelButtonsTemplate=r.first),xe(r=Oe())&&(i.externalAdditionalButtons=r.first),xe(r=Oe())&&(i.externalAdditionalPanelButtons=r.first)}},viewQuery:function(e,i){if(1&e&&St(Es,5),2&e){let o;xe(o=Oe())&&(i.menuTrigger=o.first)}},hostBindings:function(e,i){1&e&&we("resize",function(r){return i.sizeChange(r)},0,Mc)("keydown",function(r){return i.keyDown(r)},!1,A0)},outputs:{onLeaveButtonClicked:"onLeaveButtonClicked",onCameraButtonClicked:"onCameraButtonClicked",onMicrophoneButtonClicked:"onMicrophoneButtonClicked",onFullscreenButtonClicked:"onFullscreenButtonClicked",onScreenshareButtonClicked:"onScreenshareButtonClicked",onParticipantsPanelButtonClicked:"onParticipantsPanelButtonClicked",onChatPanelButtonClicked:"onChatPanelButtonClicked",onActivitiesPanelButtonClicked:"onActivitiesPanelButtonClicked",onStartRecordingClicked:"onStartRecordingClicked",onStopRecordingClicked:"onStopRecordingClicked"},decls:26,vars:25,consts:[["id","toolbar","role","heading","fxLayout","","fxLayoutAlign","center","fxLayoutGap","40px"],["fxFlex","20%","fxLayoutAlign","start center","id","info-container",4,"ngIf"],["fxFlex","60%","fxFlexOrder","2","fxLayoutAlign","center center","id","media-buttons-container"],["id","mic-btn","mat-icon-button","",3,"disabled","click"],["id","mic",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","mic_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","camera-btn","mat-icon-button","",3,"disabled","click"],["id","videocam",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","videocam_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["mat-icon-button","","id","screenshare-btn",3,"disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","more-options-btn",3,"matMenuTriggerFor","disabled",4,"ngIf"],["id","more-options-menu"],["menu","matMenu"],["mat-menu-item","","id","fullscreen-btn",3,"click",4,"ngIf"],["mat-menu-item","","id","recording-btn",3,"disabled","click",4,"ngIf"],["mat-menu-item","","id","virtual-bg-btn",3,"disabled","click",4,"ngIf"],["mat-menu-item","","id","captions-btn",3,"disabled","click",4,"ngIf"],["class","divider",4,"ngIf"],["mat-menu-item","","id","toolbar-settings-btn",3,"click",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","id","leave-btn",3,"click",4,"ngIf"],["fxFlex","20%","fxFlexOrder","3","fxLayoutAlign","end center","id","menu-buttons-container"],["mat-icon-button","","id","activities-panel-btn",3,"matTooltip","disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","participants-panel-btn",3,"matTooltip","disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","chat-panel-btn",3,"matTooltip","disabled","active-btn","click",4,"ngIf"],["fxFlex","20%","fxLayoutAlign","start center","id","info-container"],["id","branding-logo","src","assets/images/logo.png","ovLogo","",4,"ngIf"],["id","session-info-container"],["id","session-name",4,"ngIf"],["id","recording-tag","class","recording-tag",4,"ngIf"],["id","branding-logo","src","assets/images/logo.png","ovLogo",""],["id","session-name"],["id","recording-tag",1,"recording-tag"],[1,"blink"],["id","mic",3,"matTooltipDisabled","matTooltip"],["id","mic_off",3,"matTooltipDisabled","matTooltip"],["id","videocam",3,"matTooltipDisabled","matTooltip"],["id","videocam_off",3,"matTooltipDisabled","matTooltip"],["mat-icon-button","","id","screenshare-btn",3,"disabled","click"],[3,"matTooltip",4,"ngIf"],[3,"matTooltip"],["mat-icon-button","","id","more-options-btn",3,"matMenuTriggerFor","disabled"],["mat-menu-item","","id","fullscreen-btn",3,"click"],["mat-menu-item","","id","recording-btn",3,"disabled","click"],["color","warn"],["mat-menu-item","","id","virtual-bg-btn",3,"disabled","click"],["mat-menu-item","","id","captions-btn",3,"disabled","click"],[1,"divider"],["mat-menu-item","","id","toolbar-settings-btn",3,"click"],[4,"ngTemplateOutlet"],["mat-icon-button","","id","leave-btn",3,"click"],["mat-icon-button","","id","activities-panel-btn",3,"matTooltip","disabled","click"],["mat-icon-button","","id","participants-panel-btn",3,"matTooltip","disabled","click"],["mat-icon-button","","id","chat-panel-btn",3,"matTooltip","disabled","click"],["matBadgePosition","above before","matBadgeSize","small","matBadgeColor","accent",3,"matBadge","matBadgeHidden"]],template:function(e,i){1&e&&(L(0,"mat-toolbar",0),ne(1,EJ,6,5,"div",1),L(2,"div",2)(3,"button",3),we("click",function(){return i.toggleMicrophone()}),ne(4,SJ,3,4,"mat-icon",4),ne(5,AJ,3,4,"mat-icon",5),z(),L(6,"button",6),we("click",function(){return i.toggleCamera()}),ne(7,wJ,3,4,"mat-icon",7),ne(8,DJ,3,4,"mat-icon",8),z(),ne(9,xJ,3,5,"button",9),ne(10,OJ,4,5,"button",10),L(11,"mat-menu",11,12),ne(13,NJ,5,4,"button",13),ne(14,BJ,5,3,"button",14),ne(15,VJ,6,4,"button",15),ne(16,HJ,5,3,"button",16),ne(17,GJ,1,0,"mat-divider",17),ne(18,zJ,6,3,"button",18),z(),ne(19,WJ,2,1,"ng-container",19),ne(20,$J,4,3,"button",20),z(),L(21,"div",21),ne(22,YJ,4,6,"button",22),ne(23,QJ,4,6,"button",23),ne(24,KJ,4,8,"button",24),ne(25,XJ,2,1,"ng-container",19),z()()),2&e&&(x(1),q("ngIf","xs"!==i.screenSize),x(2),lt("warn-btn",!i.isAudioActive),q("disabled",i.isConnectionLost||!i.hasAudioDevices),x(1),q("ngIf",i.isAudioActive),x(1),q("ngIf",!i.isAudioActive),x(1),lt("warn-btn",!i.isWebcamVideoActive),q("disabled",i.isConnectionLost||!i.hasVideoDevices||i.videoMuteChanging),x(1),q("ngIf",i.isWebcamVideoActive),x(1),q("ngIf",!i.isWebcamVideoActive),x(1),q("ngIf",!i.isMinimal&&i.showScreenshareButton),x(1),q("ngIf",!i.isMinimal&&i.showMoreOptionsButton),x(3),q("ngIf",i.showFullscreenButton),x(1),q("ngIf",!i.isMinimal&&i.showRecordingButton),x(1),q("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),x(1),q("ngIf",!i.isMinimal&&i.showCaptionsButton),x(1),q("ngIf",!i.isMinimal&&i.showSettingsButton),x(1),q("ngIf",!i.isMinimal&&i.showSettingsButton),x(1),q("ngIf",i.toolbarAdditionalButtonsTemplate),x(1),q("ngIf",i.showLeaveButton),x(2),q("ngIf",!i.isMinimal&&i.showActivitiesPanelButton),x(1),q("ngIf",!i.isMinimal&&i.showParticipantsPanelButton),x(1),q("ngIf",!i.isMinimal&&i.showChatPanelButton),x(1),q("ngIf",i.toolbarAdditionalPanelButtonsTemplate))},dependencies:[Jt,rs,In,pp,di,nr,NK,bs,sp,da,jb,ua,Yu,Cs,Es,ty,pP,Ah,Yn],styles:["#toolbar[_ngcontent-%COMP%]{height:100%;background-color:transparent;color:var(--ov-text-color)}.buttonsContainer[_ngcontent-%COMP%]{position:absolute;left:0;right:0}#info-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}#media-buttons-container[_ngcontent-%COMP%]{max-height:100%!important}#media-buttons-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%], #media-buttons-container>button, #media-buttons-container[_ngcontent-%COMP%]:not(#media-buttons-container > button)[_ngcontent-%COMP%] button[_ngcontent-%COMP%], #media-buttons-container:not(#media-buttons-container > button) button{width:40px;height:40px;background-color:var(--ov-secondary-color);margin:6px}.warn-btn[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)!important}.active-btn[_ngcontent-%COMP%], .active-btn{background-color:var(--ov-tertiary-color)!important}#media-buttons-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px}#media-buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], #menu-buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}#branding-logo[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);border-radius:var(--ov-panel-radius);max-width:35px;max-height:35px;padding:10px}#session-name[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:700;font-size:15px;height:fit-content;padding:0 15px}#session-info-container[_ngcontent-%COMP%]{display:flex}.colapsed[_ngcontent-%COMP%]{flex-direction:column}.recording-tag[_ngcontent-%COMP%]{padding:0 10px;background-color:var(--ov-warn-color);border-radius:var(--ov-panel-radius);width:fit-content;font-size:12px;text-align:center;line-height:20px;margin:auto}.recording-tag[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;display:inline;vertical-align:sub;margin-right:5px}.blink[_ngcontent-%COMP%]{animation:blinker 1.5s linear infinite}#point[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:12px;right:33px;border-radius:var(--ov-buttons-radius);background-color:#ffa600;border:1px solid #000;z-index:99999}#leave-btn[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)!important;border-radius:var(--ov-leave-button-radius)!important;width:60px!important}.tooltipList[_ngcontent-%COMP%]{white-space:pre}#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}.divider[_ngcontent-%COMP%]{margin:8px 0} .mat-menu-item{height:40px;line-height:40px}@media (max-width: 750px){#session-name[_ngcontent-%COMP%]{display:none}}@media (max-width: 850px){#branding-logo[_ngcontent-%COMP%]{display:none}}@media (max-width: 550px){#toolbar[_ngcontent-%COMP%]{padding:0;place-content:space-evenly}}@keyframes blinker{50%{opacity:.3}}"],changeDetection:0}),t})(),mP=(()=>{class t{transform(e){if(e<60)return Math.floor(e)+"s";if(e<3600)return Math.floor(e/60)+"m "+Math.floor(e%60)+"s";{const i=Math.floor(e/3600);return i+"h "+Math.floor((e-3600*i)/60)+"m"}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Gn({name:"duration",type:t,pure:!0}),t})(),fy=(()=>{class t{constructor(e,i){this.panelService=e,this.cd=i}set externalParticipantPanel(e){e&&(this.participantsPanelTemplate=e.template)}set externalActivitiesPanel(e){e&&(this.activitiesPanelTemplate=e.template)}set externalChatPanel(e){e&&(this.chatPanelTemplate=e.template)}set externalAdditionalPanels(e){e&&(this.additionalPanelsTemplate=e.template)}ngOnInit(){this.subscribeToPanelToggling()}ngOnDestroy(){this.isChatPanelOpened=!1,this.isParticipantsPanelOpened=!1,this.panelSubscription&&this.panelSubscription.unsubscribe()}subscribeToPanelToggling(){this.panelSubscription=this.panelService.panelOpenedObs.pipe(Bl(1)).subscribe(e=>{this.isChatPanelOpened=e.opened&&e.type===Gt.CHAT,this.isParticipantsPanelOpened=e.opened&&e.type===Gt.PARTICIPANTS,this.isBackgroundEffectsPanelOpened=e.opened&&e.type===Gt.BACKGROUND_EFFECTS,this.isSettingsPanelOpened=e.opened&&e.type===Gt.SETTINGS,this.isActivitiesPanelOpened=e.opened&&e.type===Gt.ACTIVITIES,this.isExternalPanelOpened=e.opened&&e.type!==Gt.PARTICIPANTS&&e.type!==Gt.CHAT,this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(vo),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["ov-panel"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,JJ,5,mt),Xe(o,eee,5,mt),Xe(o,tee,5,mt),Xe(o,nee,5,mt),Xe(o,iee,5,mt),Xe(o,oee,5,mt),Xe(o,nP,5),Xe(o,tP,5),Xe(o,eP,5),Xe(o,JR,5)),2&e){let r;xe(r=Oe())&&(i.participantsPanelTemplate=r.first),xe(r=Oe())&&(i.backgroundEffectsPanelTemplate=r.first),xe(r=Oe())&&(i.settingsPanelTemplate=r.first),xe(r=Oe())&&(i.activitiesPanelTemplate=r.first),xe(r=Oe())&&(i.chatPanelTemplate=r.first),xe(r=Oe())&&(i.additionalPanelsTemplate=r.first),xe(r=Oe())&&(i.externalParticipantPanel=r.first),xe(r=Oe())&&(i.externalActivitiesPanel=r.first),xe(r=Oe())&&(i.externalChatPanel=r.first),xe(r=Oe())&&(i.externalAdditionalPanels=r.first)}},decls:6,vars:6,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(ne(0,see,2,1,"ng-container",0),ne(1,lee,2,1,"ng-container",0),ne(2,uee,2,1,"ng-container",0),ne(3,hee,2,1,"ng-container",0),ne(4,pee,2,1,"ng-container",0),ne(5,mee,2,1,"ng-container",0)),2&e&&(q("ngIf",i.isChatPanelOpened),x(1),q("ngIf",i.isParticipantsPanelOpened),x(1),q("ngIf",i.isBackgroundEffectsPanelOpened),x(1),q("ngIf",i.isSettingsPanelOpened),x(1),q("ngIf",i.isActivitiesPanelOpened),x(1),q("ngIf",i.additionalPanelsTemplate&&i.isExternalPanelOpened))},dependencies:[Jt,rs],styles:[Zu],changeDetection:0}),t})(),py=(()=>{class t{constructor(e,i,o){this.libService=e,this.participantService=i,this.cd=o,this.showMuteButton=!0}set externalItemElements(e){e&&(this.participantPanelItemElementsTemplate=e.template)}set participant(e){this._participant=e}ngOnInit(){this.subscribeToParticipantPanelItemDirectives()}ngOnDestroy(){this.muteButtonSub&&this.muteButtonSub.unsubscribe()}toggleMuteForcibly(){this.participantService.setRemoteMutedForcibly(this._participant.id,!this._participant.isMutedForcibly)}subscribeToParticipantPanelItemDirectives(){this.muteButtonSub=this.libService.participantItemMuteButton.subscribe(e=>{this.showMuteButton=e,this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(Ft),h(wi),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["ov-participant-panel-item"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,vee,5,mt),Xe(o,oP,5)),2&e){let r;xe(r=Oe())&&(i.participantPanelItemElementsTemplate=r.first),xe(r=Oe())&&(i.externalItemElements=r.first)}},inputs:{participant:"participant"},decls:12,vars:6,consts:[["matListAvatar","",1,"participant-avatar"],["matLine","",1,"participant-nickname"],["matLine","",1,"participant-subtitle"],[1,"participant-action-buttons"],["mat-icon-button","","id","mute-btn",3,"warn-btn","click",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","id","mute-btn",3,"click"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(L(0,"mat-list")(1,"mat-list-item")(2,"mat-icon",0),ce(3,"person"),z(),L(4,"h3",1),ce(5),z(),L(6,"p",2),ce(7),Ee(8,"streamTypesEnabled"),z(),L(9,"div",3),ne(10,yee,3,4,"button",4),ne(11,Eee,2,1,"ng-container",5),z()()()),2&e&&(x(5),Ne(i._participant.nickname),x(2),Ne(Ae(8,4,i._participant)),x(3),q("ngIf",!i._participant.local&&i.showMuteButton),x(1),q("ngIf",i.participantPanelItemElementsTemplate))},dependencies:[Jt,rs,In,di,Ul,gp,_p,mp,Cie],styles:[".participant-subtitle[_ngcontent-%COMP%]{font-style:italic;font-size:11px!important}.participant-nickname[_ngcontent-%COMP%]{font-weight:700!important}.participant-action-buttons[_ngcontent-%COMP%]{display:flex} .participant-action-buttons>*:not(#mute-btn){display:contents} .participant-action-buttons>*:not(#mute-btn)>*{margin:auto}mat-list-item[_ngcontent-%COMP%]{height:max-content!important;padding-bottom:10px!important}mat-list[_ngcontent-%COMP%]{padding:3px}.participant-avatar[_ngcontent-%COMP%]{display:contents}#mute-btn[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}.warn-btn[_ngcontent-%COMP%]{color:var(--ov-warn-color)}"],changeDetection:0}),t})(),vP=(()=>{class t{constructor(e,i,o){this.participantService=e,this.panelService=i,this.cd=o,this.remoteParticipants=[]}set externalParticipantPanelItem(e){e&&(this.participantPanelItemTemplate=e.template)}ngOnInit(){this.localParticipantSubs=this.participantService.localParticipantObs.subscribe(e=>{this.localParticipant=e,this.cd.markForCheck()}),this.remoteParticipantsSubs=this.participantService.remoteParticipantsObs.subscribe(e=>{const i=[];e.forEach(o=>{i.push(Object.create(o))}),this.remoteParticipants=i,this.cd.markForCheck()})}ngOnDestroy(){this.localParticipantSubs&&this.localParticipantSubs.unsubscribe()}ngAfterViewInit(){this.participantPanelItemTemplate||(this.participantPanelItemTemplate=this.defaultParticipantPanelItemTemplate,this.cd.detectChanges())}close(){this.panelService.closePanel()}}return t.\u0275fac=function(e){return new(e||t)(h(wi),h(vo),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["ov-participants-panel"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,See,5,mt),Xe(o,iP,5)),2&e){let r;xe(r=Oe())&&(i.participantPanelItemTemplate=r.first),xe(r=Oe())&&(i.externalParticipantPanelItem=r.first)}},viewQuery:function(e,i){if(1&e&&St(j1,5,mt),2&e){let o;xe(o=Oe())&&(i.defaultParticipantPanelItemTemplate=o.first)}},decls:14,vars:8,consts:[["id","participants-container",1,"panel-container"],[1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],[1,"scrollable"],["class","local-participant-container",4,"ngIf"],["class","remote-participants-container","id","remote-participants-container",4,"ngIf"],["defaultParticipantPanelItem",""],[1,"local-participant-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["id","remote-participants-container",1,"remote-participants-container"],["id","remote-participant-item",4,"ngFor","ngForOf"],["id","remote-participant-item"],["id","default-participant-panel-item",3,"participant"]],template:function(e,i){1&e&&(L(0,"div",0)(1,"div",1)(2,"h3",2),ce(3),Ee(4,"translate"),z(),L(5,"button",3),we("click",function(){return i.close()}),Ee(6,"translate"),L(7,"mat-icon"),ce(8,"close"),z()()(),L(9,"div",4),ne(10,Dee,3,5,"div",5),ne(11,xee,2,1,"div",6),z()(),ne(12,Oee,1,1,"ng-template",null,7,dn)),2&e&&(x(3),Ne(Ae(4,4,"PANEL.PARTICIPANTS.TITLE")),x(2),Yt("matTooltip",Ae(6,6,"PANEL.CLOSE")),x(5),q("ngIf",i.localParticipant),x(1),q("ngIf",i.remoteParticipants.length>0))},dependencies:[Io,Jt,rs,In,di,nr,ty,py,Yn],styles:[Zu,".local-participant-container[_ngcontent-%COMP%], .remote-participants-container[_ngcontent-%COMP%]{margin:5px 10px}.scrollable[_ngcontent-%COMP%]{height:calc(100% - 60px);max-height:calc(100% - 60px);overflow:auto}.message-container[_ngcontent-%COMP%]{padding:5px;background-color:var(--ov-light-color);color:var(--ov-panel-text-color);text-align:center;margin:5px;font-size:12px}.message-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),t})(),_P=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set streamDisplayParticipantName(e){this.displayParticipantNameValue=e,this.update(this.displayParticipantNameValue)}set displayParticipantName(e){this.displayParticipantNameValue=e,this.update(this.displayParticipantNameValue)}ngOnDestroy(){this.clear()}ngAfterViewInit(){this.update(this.displayParticipantNameValue)}update(e){this.libService.displayParticipantName.getValue()!==e&&this.libService.displayParticipantName.next(e)}clear(){this.update(!0)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","streamDisplayParticipantName",""],["ov-stream","displayParticipantName",""]],inputs:{streamDisplayParticipantName:"streamDisplayParticipantName",displayParticipantName:"displayParticipantName"}}),t})(),Mie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set streamDisplayAudioDetection(e){this.displayAudioDetectionValue=e,this.update(this.displayAudioDetectionValue)}set displayAudioDetection(e){this.displayAudioDetectionValue=e,this.update(this.displayAudioDetectionValue)}ngAfterViewInit(){this.update(this.displayAudioDetectionValue)}ngOnDestroy(){this.clear()}update(e){this.libService.displayAudioDetection.getValue()!==e&&this.libService.displayAudioDetection.next(e)}clear(){this.update(!0)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","streamDisplayAudioDetection",""],["ov-stream","displayAudioDetection",""]],inputs:{streamDisplayAudioDetection:"streamDisplayAudioDetection",displayAudioDetection:"displayAudioDetection"}}),t})(),bP=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set streamSettingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}set settingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}ngAfterViewInit(){this.update(this.settingsValue)}ngOnDestroy(){this.clear()}update(e){this.libService.streamSettingsButton.getValue()!==e&&this.libService.streamSettingsButton.next(e)}clear(){this.update(!0)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","streamSettingsButton",""],["ov-stream","settingsButton",""]],inputs:{streamSettingsButton:"streamSettingsButton",settingsButton:"settingsButton"}}),t})(),gy=(()=>{class t{constructor(e,i,o){this.panelService=e,this.backgroundService=i,this.cd=o,this.effectType=sn,this.backgroundImages=[],this.noEffectAndBlurredBackground=[]}ngOnInit(){this.subscribeToBackgroundSelected(),this.backgrounds=this.backgroundService.getBackgrounds(),this.noEffectAndBlurredBackground=this.backgrounds.filter(e=>e.type===sn.BLUR||e.type===sn.NONE),this.backgroundImages=this.backgrounds.filter(e=>e.type===sn.IMAGE)}ngOnDestroy(){this.backgroundSubs&&this.backgroundSubs.unsubscribe()}subscribeToBackgroundSelected(){this.backgroundSubs=this.backgroundService.backgroundSelectedObs.subscribe(e=>{this.backgroundSelectedId=e,this.cd.markForCheck()})}close(){this.panelService.togglePanel(Gt.BACKGROUND_EFFECTS)}applyBackground(e){return Re(this,void 0,void 0,function*(){e.type===sn.NONE?yield this.removeBackground():yield this.backgroundService.applyBackground(e)})}removeBackground(){return Re(this,void 0,void 0,function*(){yield this.backgroundService.removeBackground()})}}return t.\u0275fac=function(e){return new(e||t)(h(vo),h(cy),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["ov-background-effects-panel"]],decls:23,vars:14,consts:[["id","background-effects-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","100%","fxLayoutAlign","space-evenly none",1,"effects-container"],["mat-icon-button","","class","effect-button",3,"active-effect-btn","click",4,"ngFor","ngForOf"],[1,"grid"],["class","effect-button",3,"active-effect-btn","click",4,"ngFor","ngForOf"],["mat-icon-button","",1,"effect-button",3,"click"],[3,"matTooltip"],[1,"effect-button",3,"click"],[3,"src"]],template:function(e,i){1&e&&(L(0,"div",0)(1,"div",1)(2,"h3",2),ce(3),Ee(4,"translate"),z(),L(5,"button",3),we("click",function(){return i.close()}),Ee(6,"translate"),L(7,"mat-icon"),ce(8,"close"),z()()(),L(9,"div",4)(10,"div")(11,"h4"),ce(12),Ee(13,"translate"),z(),L(14,"div"),ne(15,Iee,5,8,"button",5),z()(),Je(16,"hr"),L(17,"div")(18,"h4"),ce(19),Ee(20,"translate"),z(),L(21,"div",6),ne(22,Ree,2,3,"div",7),z()()()()),2&e&&(x(3),Ne(Ae(4,6,"PANEL.BACKGROUND.TITLE")),x(2),Yt("matTooltip",Ae(6,8,"PANEL.CLOSE")),x(7),Ne(Ae(13,10,"PANEL.BACKGROUND.BLURRED_SECTION")),x(3),q("ngForOf",i.noEffectAndBlurredBackground),x(4),Ne(Ae(20,12,"PANEL.BACKGROUND.IMAGES_SECTION")),x(3),q("ngForOf",i.backgroundImages))},dependencies:[Io,In,di,nr,bs,da,ua,Yn],styles:[Zu,".effects-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.effect-button[_ngcontent-%COMP%]{margin:5px;border-radius:var(--ov-panel-radius);background-color:var(--ov-light-color);width:60px;height:60px}.effect-button[_ngcontent-%COMP%]:hover{cursor:pointer}.active-effect-btn[_ngcontent-%COMP%]{border:2px solid var(--ov-tertiary-color)}#hard-blur-btn[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-weight:700!important}.grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,70px)}.grid[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:100%;border-radius:var(--ov-panel-radius)} .mat-slider-thumb{visibility:hidden} .mat-slider-vertical .mat-slider-track-fill, .mat-slider-vertical .mat-slider-track-background, .mat-slider-vertical .mat-slider-track-wrapper{width:10px!important}"],changeDetection:0}),t})(),my=(()=>{class t{constructor(e,i,o,r,s,a){this.openviduService=e,this.panelService=i,this.storageSrv=o,this.deviceSrv=r,this.participantService=s,this.backgroundService=a,this.onDeviceSelectorClicked=new De,this.onVideoMutedClicked=new De,this.cameras=[]}ngOnInit(){return Re(this,void 0,void 0,function*(){this.subscribeToParticipantMediaProperties(),this.openviduService.isSessionConnected()&&(yield this.deviceSrv.refreshDevices()),this.hasVideoDevices=this.deviceSrv.hasVideoDeviceAvailable(),this.hasVideoDevices&&(this.cameras=this.deviceSrv.getCameras(),this.cameraSelected=this.deviceSrv.getCameraSelected()),this.isVideoMuted=this.openviduService.isSessionConnected()?!this.participantService.getLocalParticipant().isCameraVideoActive():this.deviceSrv.isVideoMuted()})}ngOnDestroy(){return Re(this,void 0,void 0,function*(){this.cameras=[],this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe()})}toggleCam(){return Re(this,void 0,void 0,function*(){this.videoMuteChanging=!0;const e=this.isVideoMuted;yield this.openviduService.publishVideo(e),this.isVideoMuted&&this.panelService.isExternalPanelOpened()&&this.panelService.togglePanel(Gt.BACKGROUND_EFFECTS),this.videoMuteChanging=!1,this.onVideoMutedClicked.emit(e)})}onCameraSelected(e){return Re(this,void 0,void 0,function*(){const i=null==e?void 0:e.value;if(this.deviceSrv.needUpdateVideoTrack(i)){const o=this.deviceSrv.cameraNeedsMirror(i),r=this.backgroundService.backgroundSelected.getValue(),s=this.backgroundService.isBackgroundApplied();s&&(yield this.backgroundService.removeBackground());const a={videoSource:i,audioSource:!1,mirror:o};if(yield this.openviduService.replaceTrack(en.CAMERA,a),s){const l=this.backgroundService.backgrounds.find(c=>c.id===r);l&&(yield this.backgroundService.applyBackground(l))}this.deviceSrv.setCameraSelected(i),this.cameraSelected=this.deviceSrv.getCameraSelected()}})}subscribeToParticipantMediaProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.isVideoMuted=!e.isCameraVideoActive(),this.storageSrv.setVideoMuted(this.isVideoMuted))})}}return t.\u0275fac=function(e){return new(e||t)(h(_o),h(vo),h(Bo),h(tc),h(wi),h(cy))},t.\u0275cmp=et({type:t,selectors:[["ov-video-devices-select"]],outputs:{onDeviceSelectorClicked:"onDeviceSelectorClicked",onVideoMutedClicked:"onVideoMutedClicked"},decls:9,vars:10,consts:[[1,"device-container-element"],["mat-icon-button","","id","camera-button",3,"disabled","click"],["id","videocam",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","videocam_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],[4,"ngIf"],[3,"disabled","value","click","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","videocam",3,"matTooltipDisabled","matTooltip"],["id","videocam_off",3,"matTooltipDisabled","matTooltip"],[3,"value"]],template:function(e,i){1&e&&(L(0,"div",0)(1,"button",1),we("click",function(){return i.toggleCam()}),ne(2,Pee,3,4,"mat-icon",2),ne(3,kee,3,4,"mat-icon",3),z(),L(4,"mat-form-field"),ne(5,Nee,3,3,"mat-label",4),ne(6,Lee,3,3,"mat-label",4),L(7,"mat-select",5),we("click",function(){return i.onDeviceSelectorClicked.emit()})("selectionChange",function(r){return i.onCameraSelected(r)}),ne(8,Fee,2,2,"mat-option",6),z()()()),2&e&&(x(1),lt("warn-btn",i.isVideoMuted),q("disabled",!i.hasVideoDevices||i.videoMuteChanging),x(1),q("ngIf",!i.isVideoMuted),x(1),q("ngIf",i.isVideoMuted),x(2),q("ngIf",i.hasVideoDevices),x(1),q("ngIf",!i.hasVideoDevices),x(1),q("disabled",i.isVideoMuted||!i.hasVideoDevices)("value",null==i.cameraSelected?null:i.cameraSelected.device),x(1),q("ngForOf",i.cameras))},dependencies:[Io,Jt,In,di,hp,Yl,nr,oy,xb,Yn],styles:["#camera-button[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}.device-container-element[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px;color:#000}.device-container-element[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:auto 10px auto auto}.device-container-element[_ngcontent-%COMP%]{display:flex}.warn-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-warn-color)!important}"]}),t})(),vy=(()=>{class t{constructor(e,i,o,r){this.openviduService=e,this.deviceSrv=i,this.storageSrv=o,this.participantService=r,this.onDeviceSelectorClicked=new De,this.onAudioMutedClicked=new De,this.microphones=[]}ngOnInit(){return Re(this,void 0,void 0,function*(){this.subscribeToParticipantMediaProperties(),this.openviduService.isSessionConnected()&&(yield this.deviceSrv.refreshDevices()),this.hasAudioDevices=this.deviceSrv.hasAudioDeviceAvailable(),this.hasAudioDevices&&(this.microphones=this.deviceSrv.getMicrophones(),this.microphoneSelected=this.deviceSrv.getMicrophoneSelected()),this.isAudioMuted=this.deviceSrv.isAudioMuted(),this.isAudioMuted=this.openviduService.isSessionConnected()?!this.participantService.isMyAudioActive():this.deviceSrv.isAudioMuted()})}ngOnDestroy(){this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe()}toggleMic(){const e=this.isAudioMuted;this.openviduService.publishAudio(e),this.onAudioMutedClicked.emit(e)}onMicrophoneSelected(e){return Re(this,void 0,void 0,function*(){const i=null==e?void 0:e.value;if(this.deviceSrv.needUpdateAudioTrack(i)){const o={audioSource:i,videoSource:!1};yield this.openviduService.replaceTrack(en.CAMERA,o),this.deviceSrv.setMicSelected(i),this.microphoneSelected=this.deviceSrv.getMicrophoneSelected()}})}subscribeToParticipantMediaProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.isAudioMuted=!e.hasAudioActive(),this.storageSrv.setAudioMuted(this.isAudioMuted))})}}return t.\u0275fac=function(e){return new(e||t)(h(_o),h(tc),h(Bo),h(wi))},t.\u0275cmp=et({type:t,selectors:[["ov-audio-devices-select"]],outputs:{onDeviceSelectorClicked:"onDeviceSelectorClicked",onAudioMutedClicked:"onAudioMutedClicked"},decls:9,vars:10,consts:[[1,"device-container-element"],["mat-icon-button","","id","microphone-button",3,"disabled","click"],["id","mic",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","mic_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],[4,"ngIf"],[3,"disabled","value","click","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","mic",3,"matTooltipDisabled","matTooltip"],["id","mic_off",3,"matTooltipDisabled","matTooltip"],[3,"value"]],template:function(e,i){1&e&&(L(0,"div",0)(1,"button",1),we("click",function(){return i.toggleMic()}),ne(2,Bee,3,4,"mat-icon",2),ne(3,Vee,3,4,"mat-icon",3),z(),L(4,"mat-form-field"),ne(5,jee,3,3,"mat-label",4),ne(6,Uee,3,3,"mat-label",4),L(7,"mat-select",5),we("click",function(){return i.onDeviceSelectorClicked.emit()})("selectionChange",function(r){return i.onMicrophoneSelected(r)}),ne(8,Hee,2,2,"mat-option",6),z()()()),2&e&&(x(1),lt("warn-btn",i.isAudioMuted),q("disabled",!i.hasAudioDevices),x(1),q("ngIf",!i.isAudioMuted),x(1),q("ngIf",i.isAudioMuted),x(2),q("ngIf",i.hasAudioDevices),x(1),q("ngIf",!i.hasAudioDevices),x(1),q("disabled",i.isAudioMuted||!i.hasAudioDevices)("value",null==i.microphoneSelected?null:i.microphoneSelected.device),x(1),q("ngForOf",i.microphones))},dependencies:[Io,Jt,In,di,hp,Yl,nr,oy,xb,Yn],styles:[".device-container-element[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px;color:#000}.device-container-element[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:auto 10px auto auto}.device-container-element[_ngcontent-%COMP%]{display:flex}.warn-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-warn-color)!important}"]}),t})(),_y=(()=>{class t{constructor(e,i){this.participantService=e,this.storageSrv=i}ngOnInit(){this.subscribeToParticipantProperties(),this.nickname=this.participantService.getMyNickname()}updateNickname(){this.nickname=""===this.nickname?this.participantService.getMyNickname():this.nickname,this.participantService.setMyNickname(this.nickname),this.storageSrv.setNickname(this.nickname)}subscribeToParticipantProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.nickname=e.getNickname())})}}return t.\u0275fac=function(e){return new(e||t)(h(wi),h(Bo))},t.\u0275cmp=et({type:t,selectors:[["ov-nickname-input"]],decls:9,vars:4,consts:[["id","nickname-input-container"],["mat-icon-button","","disabled",""],["appearance","standard"],["matInput","","type","text","maxlength","20","autocomplete","off",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(L(0,"div",0)(1,"button",1)(2,"mat-icon"),ce(3,"person"),z()(),L(4,"mat-form-field",2)(5,"mat-label"),ce(6),Ee(7,"translate"),z(),L(8,"input",3),we("ngModelChange",function(r){return i.nickname=r})("change",function(){return i.updateNickname()}),z()()()),2&e&&(x(6),Ne(Ae(7,2,"PREJOIN.NICKNAME")),x(2),q("ngModel",i.nickname))},dependencies:[ds,Dl,xl,Js,In,di,hp,Yl,ey,Yn],styles:["#nickname-input-container[_ngcontent-%COMP%]{display:flex}#nickname-input-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:auto 10px auto auto}#nickname-input-container[_ngcontent-%COMP%] button.mat-button-disabled[_ngcontent-%COMP%]{color:#000!important}#nickname-input-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px;color:#000}#nickname-input-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{color:#000}"]}),t})(),by=(()=>{class t{constructor(e,i){this.translateService=e,this.storageSrv=i,this.onLangSelectorClicked=new De,this.languages=[]}ngOnInit(){this.languages=this.translateService.getLanguagesInfo(),this.langSelected=this.translateService.getLangSelected()}ngAfterViewInit(){var e,i;null===(e=this.menuTrigger)||void 0===e||e.menuOpened.subscribe(()=>{this.onLangSelectorClicked.emit()}),null===(i=this.matSelect)||void 0===i||i.openedChange.subscribe(()=>{this.onLangSelectorClicked.emit()})}onLangSelected(e){this.translateService.setLanguage(e),this.storageSrv.setLang(e),this.langSelected=this.translateService.getLangSelected()}}return t.\u0275fac=function(e){return new(e||t)(h(Ss),h(Bo))},t.\u0275cmp=et({type:t,selectors:[["ov-lang-selector"]],viewQuery:function(e,i){if(1&e&&(St(Es,5),St(oy,5)),2&e){let o;xe(o=Oe())&&(i.menuTrigger=o.first),xe(o=Oe())&&(i.matSelect=o.first)}},outputs:{onLangSelectorClicked:"onLangSelectorClicked"},decls:8,vars:3,consts:[["mat-flat-button","",1,"lang-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"]],template:function(e,i){1&e&&(L(0,"button",0)(1,"span"),ce(2),z(),L(3,"mat-icon"),ce(4,"expand_more"),z()(),L(5,"mat-menu",null,1),ne(7,Gee,3,1,"button",2),z()),2&e&&(q("matMenuTriggerFor",ji(6)),x(2),Ne(null==i.langSelected?null:i.langSelected.name),x(5),q("ngForOf",i.languages))},dependencies:[Io,In,di,Yu,Cs,Es],styles:[".lang-button[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);color:var(--ov-text-color)}"]}),t})();const Tie={provide:Xf,useValue:[{alias:"landscape",suffix:"Landscape",mediaQuery:"screen and (orientation: landscape)",overlapping:!1,priority:2001}],multi:!0},xie=["fxLayout.landscape"];let Oie=(()=>{class t extends EI{constructor(){super(...arguments),this.inputs=xie}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=tt(t)))(i||t)}}(),t.\u0275dir=ge({type:t,selectors:[["","fxLayout.landscape",""]],inputs:{"fxLayout.landscape":"fxLayout.landscape"},features:[Te]}),t})(),yP=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u){this.layoutService=e,this.loggerSrv=i,this.participantService=o,this.panelService=r,this.libService=s,this.cdkSrv=a,this.openviduService=l,this.translateService=c,this.actionService=u,this.onJoinButtonClicked=new De,this.isLoading=!0,this.showBackgroundEffectsButton=!0,this.isMinimal=!1,this.showLogo=!0,this.log=this.loggerSrv.get("PreJoinComponent")}sizeChange(){this.windowSize=window.innerWidth,this.layoutService.update()}ngOnInit(){this.subscribeToPrejoinDirectives(),this.subscribeToLocalParticipantEvents(),this.windowSize=window.innerWidth,this.isLoading=!1}ngOnDestroy(){return Re(this,void 0,void 0,function*(){this.cdkSrv.setSelector("body"),this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe(),this.screenShareStateSubscription&&this.screenShareStateSubscription.unsubscribe(),this.backgroundEffectsButtonSub&&this.backgroundEffectsButtonSub.unsubscribe(),this.minimalSub&&this.minimalSub.unsubscribe(),this.panelService.closePanel()})}onDeviceSelectorClicked(){this.cdkSrv.setSelector("#prejoin-container")}onVideoMutedClicked(e){e||this.panelService.closePanel()}joinSession(){this.onJoinButtonClicked.emit(),this.panelService.closePanel()}toggleBackgroundEffects(){this.openviduService.isOpenViduPro()?this.panelService.togglePanel(Gt.BACKGROUND_EFFECTS):this.actionService.openProFeatureDialog(this.translateService.translate("PANEL.BACKGROUND.TITLE"),this.translateService.translate("PANEL.PRO_FEATURE"))}subscribeToLocalParticipantEvents(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{this.localParticipant=e,this.nickname=this.localParticipant.getNickname()})}subscribeToPrejoinDirectives(){this.minimalSub=this.libService.minimalObs.subscribe(e=>{this.isMinimal=e}),this.displayLogoSub=this.libService.displayLogoObs.subscribe(e=>{this.showLogo=e}),this.backgroundEffectsButtonSub=this.libService.backgroundEffectsButton.subscribe(e=>{this.showBackgroundEffectsButton=e})}}return t.\u0275fac=function(e){return new(e||t)(h(ma),h(or),h(wi),h(vo),h(Ft),h(cP),h(_o),h(Ss),h(Cr))},t.\u0275cmp=et({type:t,selectors:[["ov-pre-join"]],hostBindings:function(e,i){1&e&&we("resize",function(){return i.sizeChange()},0,Mc)},outputs:{onJoinButtonClicked:"onJoinButtonClicked"},decls:12,vars:5,consts:[[1,"prejoin-toolbar"],["id","toolbar"],["id","branding-logo","src","assets/images/logo.png","ovLogo","",4,"ngIf"],[1,"spacer"],[3,"onLangSelectorClicked",4,"ngIf"],["id","prejoin-container","fxLayout.landscape","row","fxLayout.lt-md","column","fxLayout.md","row","fxLayout.gt-md","row",1,"container"],["fxFlex.lt-sm","50%","fxFlex.lt-md","50%","fxFlex.md","45%","fxFlex.gt-md","45%","fxLayoutAlign","center center","id","layout-container"],[1,"ov-session",3,"usedInPrejoinPage"],[4,"ngIf"],["layout",""],["fxFlex.lt-md","50%","fxFlex.md","55%","fxFlex.gt-md","55%","fxLayoutAlign","center center","class","media-panel",4,"ngIf"],["id","branding-logo","src","assets/images/logo.png","ovLogo",""],[3,"onLangSelectorClicked"],["panel",""],["backgroundEffectsPanel",""],["stream",""],["mat-icon-button","","id","background-effects-btn",3,"disabled","matTooltip","click",4,"ngIf"],[3,"stream","displayParticipantName","settingsButton"],["mat-icon-button","","id","background-effects-btn",3,"disabled","matTooltip","click"],["fxFlex.lt-md","50%","fxFlex.md","55%","fxFlex.gt-md","55%","fxLayoutAlign","center center",1,"media-panel"],["fxLayout","column","fxLayoutGap","10px",1,"media-panel-container"],["fxLayout.gt-sm","column","fxLayout.lt-md","column","fxLayoutGap","10px","fxFlex","33%"],["fxFlex.gt-sm","100%","fxFlex.lt-md","33%","fxLayoutAlign","center center","fxFlexFill","",1,"nickname-container"],["fxFlex.gt-sm","100%","fxFlex.lt-md","33%","fxLayoutAlign","center center","fxFlexFill","",1,"buttons-container"],[3,"onDeviceSelectorClicked","onVideoMutedClicked"],[3,"onDeviceSelectorClicked"],["fxFlex.gt-sm","60%","fxLayout.lt-md","column","fxLayoutAlign","center center","fxFlexFill","",1,"join-btn-container"],["mat-flat-button","","form","nicknameForm","id","join-button",3,"click"]],template:function(e,i){1&e&&(L(0,"div",0)(1,"mat-toolbar",1),ne(2,zee,1,0,"img",2),Je(3,"span",3),ne(4,qee,1,0,"ov-lang-selector",4),z()(),L(5,"div",5)(6,"div",6)(7,"ov-session",7),ne(8,Yee,2,0,null,8),ne(9,Zee,3,0,"ng-template",null,9,dn),z()(),ne(11,nte,16,7,"div",10),z()),2&e&&(x(2),q("ngIf",!i.isMinimal&&i.showLogo),x(2),q("ngIf",!i.isMinimal),x(3),q("usedInPrejoinPage",!0),x(1),q("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),x(3),q("ngIf",i.localParticipant))},dependencies:[Jt,In,pp,di,nr,bs,sp,da,DI,ua,_P,bP,pP,fy,hy,ly,uy,gy,my,vy,_y,by,Oie,Yn],styles:[".container[_ngcontent-%COMP%]{height:calc(100% - 64px);padding:30px 60px;background-color:var(--ov-light-color)}.prejoin-toolbar[_ngcontent-%COMP%]{max-height:40px;height:40px}#toolbar[_ngcontent-%COMP%]{background-color:var(--ov-light-color);height:100%}#toolbar[_ngcontent-%COMP%] .lang-button{height:25px!important;font-size:14px!important;line-height:0px;align-items:unset!important}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}#branding-logo[_ngcontent-%COMP%]{border-radius:var(--ov-panel-radius);max-width:35px;max-height:35px;height:-webkit-fill-available;height:-moz-available;padding:10px;margin-right:10px}#layout-container[_ngcontent-%COMP%]{display:block!important}h4[_ngcontent-%COMP%]{margin-bottom:1px;font-weight:700}hr[_ngcontent-%COMP%]{margin:0}#prejoin-container[_ngcontent-%COMP%]{height:calc(100% - 40px)}#prejoin-container[_ngcontent-%COMP%] .sidenav-container{padding-top:0!important}#prejoin-container[_ngcontent-%COMP%] #background-effects-container{margin:0!important;max-height:100%!important;height:100%!important}#prejoin-container[_ngcontent-%COMP%] .mat-drawer-container, #prejoin-container[_ngcontent-%COMP%] .sidenav-menu, #prejoin-container[_ngcontent-%COMP%] #session-container{background-color:transparent!important}#prejoin-container[_ngcontent-%COMP%] .sidenav-menu{width:320px}#prejoin-container[_ngcontent-%COMP%] .layout{min-width:0px!important}#prejoin-container[_ngcontent-%COMP%] .OT_root{padding:0!important}#background-effects-btn[_ngcontent-%COMP%]{position:absolute;z-index:2;background-color:var(--ov-secondary-color);bottom:5px;right:5px}.media-panel[_ngcontent-%COMP%]{background-color:var(--ov-light-color)}.media-panel-container[_ngcontent-%COMP%]{width:100%;padding:20px 0 20px 20px}.nickname-container[_ngcontent-%COMP%]{display:block!important;margin-bottom:0!important}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{border-radius:var(--ov-video-radius)}.buttons-container[_ngcontent-%COMP%]{border-radius:5px;padding:10px 0;height:100px;display:block!important}.join-btn-container[_ngcontent-%COMP%]{width:inherit;text-align:center}#join-button[_ngcontent-%COMP%]{width:100%;font-weight:700;color:var(--ov-text-color);background-color:var(--ov-tertiary-color);border-radius:var(--ov-video-radius)}@media only screen and (max-width: 480px){.container[_ngcontent-%COMP%], .media-panel-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%]{padding:0}.nickname-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%], .join-btn-container[_ngcontent-%COMP%]{width:90%!important;margin:auto}.join-btn-container[_ngcontent-%COMP%]{padding:0 10px}.media-panel[_ngcontent-%COMP%]{align-items:flex-start!important}}@media only screen and (min-width: 480px) and (max-width: 959px){.media-panel-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%]{padding:0}.nickname-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%], .join-btn-container[_ngcontent-%COMP%]{width:80%!important;min-width:80%!important;margin:auto}.buttons-container[_ngcontent-%COMP%], .media-panel-container[_ngcontent-%COMP%]{padding-top:0;max-width:600px}}"]}),t})(),CP=(()=>{class t{constructor(e,i,o,r,s){this.recordingService=e,this.participantService=i,this.libService=o,this.actionService=r,this.cd=s,this.onStartRecordingClicked=new De,this.onStopRecordingClicked=new De,this.onDeleteRecordingClicked=new De,this.recordingStatus=Pn.STOPPED,this.opened=!1,this.recStatusEnum=Pn,this.isSessionCreator=!1,this.recordingAlive=!1,this.recordingsList=[]}ngOnInit(){this.subscribeToRecordingStatus(),this.subscribeToRecordingActivityDirective(),this.isSessionCreator=this.participantService.getMyRole()===Xl.MODERATOR}ngOnDestroy(){this.recordingStatusSubscription&&this.recordingStatusSubscription.unsubscribe(),this.recordingListSubscription&&this.recordingListSubscription.unsubscribe(),this.recordingErrorSub&&this.recordingErrorSub.unsubscribe()}panelOpened(){this.opened=!0}panelClosed(){this.opened=!1}resetStatus(){let e=this.oldRecordingStatus;this.oldRecordingStatus===Pn.STARTING?e=Pn.STOPPED:this.oldRecordingStatus===Pn.STOPPING&&(e=Pn.STARTED),this.recordingService.updateStatus(e)}startRecording(){this.onStartRecordingClicked.emit(),this.recordingService.updateStatus(Pn.STARTING)}stopRecording(){this.onStopRecordingClicked.emit(),this.recordingService.updateStatus(Pn.STOPPING)}deleteRecording(e){this.actionService.openDeleteRecordingDialog(()=>{this.onDeleteRecordingClicked.emit(e)})}download(e){this.recordingService.downloadRecording(e)}play(e){this.recordingService.playRecording(e)}subscribeToRecordingStatus(){this.recordingStatusSubscription=this.recordingService.recordingStatusObs.subscribe(e=>{null!=e&&e.info&&(this.recordingStatus!==Pn.FAILED&&(this.oldRecordingStatus=this.recordingStatus),this.recordingStatus=e.info.status,this.recordingAlive=e.info.status===Pn.STARTED),this.cd.markForCheck()})}subscribeToRecordingActivityDirective(){this.recordingListSubscription=this.libService.recordingsListObs.subscribe(e=>{this.recordingsList=e,this.cd.markForCheck()}),this.recordingErrorSub=this.libService.recordingErrorObs.subscribe(e=>{var i;e&&(this.recordingService.updateStatus(Pn.FAILED),this.recordingError=(null===(i=e.error)||void 0===i?void 0:i.message)||e.message||e)})}}return t.\u0275fac=function(e){return new(e||t)(h(td),h(wi),h(Ft),h(Cr),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["ov-recording-activity"]],inputs:{expanded:"expanded"},outputs:{onStartRecordingClicked:"onStartRecordingClicked",onStopRecordingClicked:"onStopRecordingClicked",onDeleteRecordingClicked:"onDeleteRecordingClicked"},decls:20,vars:26,consts:[[3,"expanded","opened","closed"],["matListAvatar","",1,"activity-icon",3,"ngClass"],[4,"ngIf"],["class","blink",4,"ngIf"],["matLine","",1,"activity-title"],["matLine","",1,"activity-subtitle"],[1,"activity-action-buttons"],["id","recording-status",3,"ngClass"],["class","panel-body-container",4,"ngIf"],[1,"blink"],[1,"panel-body-container"],[1,"content"],["class","item recording-action-buttons",4,"ngIf"],["class","not-allowed-message",4,"ngIf"],["class","item",4,"ngIf"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAACyCAMAAABcOSIOAAAC+lBMVEUAAAAXf/wpbeLk19IWf/zq2Mnf19vc3OYWf/ze3ujc3OcVf/0Wf/wXffvY2OQWf/3d3efd3OYWf/3d3efe3ujd3egVf/3d3ecVfv3d3efb2+bc3Ofc3Ofd3ejc3ejd3ugVf/3/zJcXf/zc3Obd3ugVf/0Wf/zPz93c3OdZW9QVf/3d3efZ2eQVf/0Vf/zb2+j7voHe3ugVf/39zJgLDxbX2OUYgPv/zJcXfvz/zJfd3eja2uZTVHd6e6Lc3Of/zJd4ead7fKOevuxXXNX+zJj+yZP/zJd2d55an/T/zJelpsZfd9b/ypRXXNXkhiOiqc0BBw9ZW9T/zZYAAAD1ljH8y5lxc9jyjiXwkCr+/f3/zZfsjCYAAACbq9EBCBDzlzjtiyVtbpYAAQLjw6b4okg9j/PjyLX3sWlrbJNCZ+JTVHegyv0SaM1clt6WmMlIXI8Vf/3/zJf////V1eT/lSalpsbe3unY2OVZW9RTVHflhiLnuIgAAADU1OT9/P5RUnYTf/+qq8lWWNT+liimp8bp6fFyc9BhlODu7vT8lCZ6fKTKyt22t88qhfW8vdD+y5bc3OgggvhYWXzFxtpcX9SUw/2am+WPkMqio8dT2WpiY4Q/aeSTos0ld/NUXtf3kin+nTfqiiXx8fYyiO/39/rk5O44gd5HZd+Ojqf6yZbxjST/tGaGiKHyyJ3+xId8ftntvoz+qVBIjuV3eJ5eX4D/vXiGs/A9i+j2xZIhf/GKi9uEos7ywpDgwqf/yJDslDjZtJC1s7fMsJcZd+hrmdWlq7dydJlxqPG4rKO3yepTkuB3m8pQhceaq8PGubBTYHZTXXZTrG7vq2Tlw6JTcXS4km0MLFXik0A7kPhek9Q1abhoh7TOvK1uZntUVnhT0WuZoLTnu5JsbYxKW4wLQoRUU3VTwWzJkVgWa9KqkYfbrX7yoUs0Kh8OV66WiYdpVUGGnr54iaP1s293YEjMpH6qjnW3iV2ZelpLOyzd0MtdX7WHiMxkgKclYKhp7MdAAAAAcHRSTlMA/gcE5w4JFvPvtSTcEPg9lHLQNPg8GqAuKuuI29K/qk7ycVZ9i18fyb2wRE3FfyMd37k8/eem15jmZmGV1FwuGm/87MeGnE3+roJpYz313q6ZUsi/uuXWl4pxbVs3kWBGNibl3NPFpH3w6efczLu2U2kwRQAAFbNJREFUeNrs2T+L02AcwPHnic8QeJ4QyFAyaQgkQ6EZOpQOFhSHG8TB0fE2/ww+PRCa5eJB9aAnelSP6tXecuILsIODJ4g9dJK7wk0HVUQUXHwDLvaBmIfmkvTZmofmO2XI8uF5fvDwPKCoqKioqKioqKioqGgmDWOsKWDZUrBbNxBCRtVx8TLxS24ZQRoGUdktgeUIewakM0HimECg1ZuXLwF5K3mEJoTq5nx4o9NpSItXXIOmhLzsbb9y2+/ufpIWj2uQplexQEYXfd8PpMXrBs1MdbRMurx4i9B5Vc0surR4C9H5GXoGXVa8SahIxEqnS4pXylQsZKXSJcW7kApG9DS6nHilOk8MB/1+f8C+DJxClxNvornwvVartdcfQEprWjJdTrwFBeAshoe2GJ3jV0B+c6EQ/NnDv73e4T7BAnSOH3YaqyC3WVAI3nvenvbybT2dfhwV4Xc7nRwvOyZi8Hus9jtiptGPxr/Cxkd+WHeYZzqoC8NZb+w0+vH4Rdi3E0noJhGCbzze2nrUbm+WlWQ6W3bZ6MBSBeBPH6yvrb3a3tisaPGJuetHdtnowFWF4KztON10yOlPbpeNDlwkAmetf57Z8HodUcro3B6nXwX5Tq/ATDhvxwNRJoOHdG6P0V87GOQ6za6oGXDeHTOacQdRFhz98GfWPUanhpXz+3zNvpUO512IfifRkIxOGZ7bY3Sq1vN8nX/u2vUrGXDeDcBSLDYhvCk+4PYYfVpFBzlNDM7pZk2lsUbDiR+E9pOvcTpFbh42vVLSXdtzHM92dawIwzm95CF6pv33339HeD8IOJ3f6S42xbTLRIXhkKqk6lhCcE5Pfqu4f/ik2fyPD7qTSTdGp7C20IFXrBo6c3ITgfPOlyFN6kuTxfD+5M+Hg4OPE04Pq2KwsPSa6JE1vR2aGPxHvJnFuhCFcXyq2lJUq6ra20W0KC1CXJFKPNSLRCTEKx48e+iozHmo1lgaFblpG9uLhFSLxi5xqX0N1/ZA7EsIYt9iT0icMzPt12lnalp6/Sy36t6H33zf9z8L9xRNC/IvH9OEl0tAXWDAYOr/0A9GtBHxXDaRSOb+pJ65Sos59A7Uwf3/BH2fUaomxLN5FInEIgi/X1/9fqX3rtMvHzyEhhff6fbo7qzvP6CZiudRLMKTUF71+5f2F8kmh1cvCjlIfrKqBfNmzp49c858qvvo37eJGc+msbgAyimZdcL1/SxZ54n8syf3tvK9Vnz79ObTM29vTljMMXsO1WrAXLk4mOOSAwlQl014wtWLsMN78kIYshc3ibDgzb3sLvfBAxoQB/NIBbF8XfWDx0pjTmouUCyWngIxFzO7e3q+3/hGxMFcuXqm3O+npJb9p4trmUd1B8MUiwNxJtaA+qWCYF5YyYZrOAOdDkzojrIP6aVYHMhHxMTqzfrB6+VJz0hscl+AegXdMO2DBjQsDu0OJEFdvt3pS2EpdfDt3o4fplwcyAvtrmhxO1ugBY5tCUsgXfWZLd/a9O+pWBzIoep+Z+KgLp3uhCvSi/5NKfXZrVbvMVG5OJCI1fa7nLrqXIour2zS+b/9zf+oev9eDYpDvIuLLqfO3jlKlzgFISe+xvj8XUKdajGTGheHfgeysie3jgvloqfOstL7nV303m/fa9RbfG0zvYGLCCBbbZ6XP7ReOkRLhxywfxf+y1ck6yZ8e19WfzuUaiUzpjYhDurQ7rLqB0+mZEIOuEjUU9+w7if6cyntJ7zo2dLT+yzeXCzeqHosnZO9pVE9gqLvuhiWrTpx/7T4/VH6xmKBm6rw+Ba2fI+RvHkD4jDrYJ6VvaBiLz6Got+HkKuZdcL7xTdo+lOp6HfZsApavkXqazesUCwOCQ/dnpO/m8tcgHinj1QrQ8LTmL1vJrzCvwnmP7s68KVN6y4q+0zliw7iCkmWxSN5MK9VPxst0PKLOjygG1Eat/qbvTjsePO351EIN8mw5ry0I6g/MXwbpw7iSoknIjHsHYswWfjCWvUtF/am6DonFziuf4++erP4e6Fw6D0352/D0xDqzIR7NndHa/N5qD8wkVdfCgmtmGw+nWbyIC6pfimqpN9Zclx/gzv9/aGj9NFvnz79OsMSdRS63WTZLQN7m7RVjWARvTGoL6+eXtgM8Th4S6tvOV2/30GdY8KNvQUuDjvwm+cRpmtac9PuH8gMNGqoSkyOseKDOlFfdhimtXniEseXD1FF/c6+5dXfR49Ce3QiQuz8UJ26KXWGcesoYHLvgRaqgjEqTn3934snmTSTyFWpHzxd2e8bJbXham7C03t7U+U9nyqEePeQa2wTDd+bwegh7IL4jSmi/+j+j9Tj+UgM/0hneXUoerRyP8PWccc30S/wsR5u7zJdSKDd1rj6iHGMyN1DHoVJNOqg/pfmHDGU5NSh6NFUnf07y7KqTLFYVJFX5NeR8nb39u1MCAnYm1BX67Eq9LxtHAPqWv68Cup/b05AWaIORd9LE6CWld7Fy/feffn6/PnzG18+Xi5i8477NMc5rN7VWVY3BEWLtMZj0nF25oBG3j3I8Fg15FOtTFld49WTLx8eBvW/NIdzzDqId+j36qWNzVx+9/zE8kUlNj3feXnrORojBPx5BLTrdeBk1iPkIR+tdojsWkY4BXevWph8ftY1Rmagn1zKgfpfmgPJdbCmRyuWttRKtlL8xglBGuyv0RX31ZlOVEGw3MiT2xFR17Xhj8Z60R9M8+q9AxTVxhCIstZIHgFJuT+ox3PZZDKbizdgHmPWlW8ocL+nJFf1rV82LaplByyDHWHsHgF1vVbYpBkNZPjNNj0ZBD+lMfstOml1jZ7h8em0LoYwDjeJiSx6+EH2G1BXPZ5kEDe/sGeTIBERgzpL11JR0ahfL6UcW/x4C3yB5Qfgk6+oOs6fD4G7YwRfcgf/IMw+7s2AyWU3GJywbRNhK7W8SedgCPj5WezCzPfpWU89y0RiQiXxspXIyW3lZdQz57D6Ubom4NmtN1YtkmLzbvjkwpHbXSgG6nYzkTEZ+NjzuviPdsRjlI47CzYmOM1OIeXUbv4FCfg66kkUEzUygtLLm4M6u/8kVj9UW/WLr8BWrH6cBnYdmdaFAIOFGmG2OYTU86EqrDZpd6HuJq738eOz2RnCZPKdHaBea17thA9pyXidOQd1YWWDlIN/a8sc2bV7s7T6vhRdQeHKtBCqrLqx3WpAcjiMgRFqiZ53DySqRhO3xKupKXzc4eAbGgZ1eXOg3PcwErLqHaejXMoBVw+GVftPpejUPhl1WsTuz/c6V1fMuhW1ozoYHO6geOa1Go1aO4UU3kqq3dtfSvreeHrGyKpnUUQGlE/mhPTPo4icOgk5IeWAY+dOcfdQB2A5Fwc8cPzAvs2LTnxeU+5oNTUZuQx13X0Qd1qbx2t1+Xwu4xSL18EYyYwb1aUt3jicmZPk1HPpiCw4fJhEIpkg6S+vrnoUhZSrAjpeJuB379jMP53XxxAmsjo0l6I8BquhjrjeU866EUG9Pc0IOLz+oImazJDtj46ffRd+RBPxhnEtqFddvNWx5+9n6qmTnRyknJjUvnoBD+LkzSjW7brda7A6YHW3tfNj7UQ1uKZAyOtcjAjn5IDfbMfRVko5I7ejyYT2LAN1CK/mYZKdfL9DytUgrX68JC7qhWs/8JG9Y3qbCYd4wEHy3T+izY7b28DFn8vR3u50T9FRgDbo603SDfC524xkGMz8fjbIfZvueSShnvwb8Th/fHnUiDoE/HGR+HLMIuyOutb4TIGA16gnvs6xlN+JjCbSA4YpurFja64yNGaPqc3tGsdlmsvttnrbvNryIb63BauPvh1L16rn0F+Ik/M6v4mFgFekvmofCcB9y8FbQBh4ZCDaXKnbyK2j3cL1AF6xZFCrPaT2A91+Nf6Dx6srVd2BX/Ub3cmAumjQmxXHxIn6wZMQ8IrUScCnSMnBHAb+MQKwvB67jHWb8BnOQKJfFttvWu4ltIkgjAP4yJpdsqBsSMKSbJIiu9BCAjGIiBYUREVBFMQXelDwdRXERCPxgc/YGFP1JEJTX2grRcX6topY3ydFVIQivQgKooKC4sGZnazfms3ETTb7P4ivy8/vm/lmpo20v71yEP+lhBRCQoTOd0xfl6tB3+sMfiB9lXwD+DbY4C0ZosJ8FX2IlBzk5sY32dskUdWbWiBvrAkBsePpSNN4pSRCcdmPZOPWPm5hGujQ7s7gdIf/AnTGcMv39VTRoRdAbtT95XjjPBMWVQ7ZjC9tJDLNg4Jt8aCXHmjwmAM67O45J3Ay9R/hqY6XOnutD+4m8l6oOmhryUl/fFqvQctLgg121ZgriUEUFFUJ39/ohmelH3AIx3lEdzn2Dt+PnyV6sxY6Q06zWDWdZxRkM/TKRhOexvlFLRZQaT9Y6KdLjuAkR/fTAw3zSHP4Ur4vm832WXhWOpQ9vwHoHdORbXsM7AEN/1KR9ZaRrfQzTuG5o7v20w2e2fEDZSyvT6914vkJTzYeZDuClgJ7J0pENYTDxyz0kxmHcP1D3PSuztzoBnuzJD02ig7J57+RyU7jQw0k6RMjXm84IkqSFA/K0STd+4EOI90RfNfmzQad0fKHr7/INkCHlO9IsvFCG0SNhBNC/pDAkZ+0t0syX4u+1zkc6LXt529vo/TevD06ZO1E5e9w5xuye0LxuB/b6a6vIcRX00+XHMMJna51sB82lxz/BtAby+7ZSjNfihISEr7OBLxReXqSvlolENdWRT+TcwYHOn6igVw8/xd+kfz6o07vY9NZf7LWN94Y7Qm7vR5UooG/sz0lkS+xd0b9SAN6I3tciQUH+phhYgT89fP4uyVuEzjJXSz/8SPPlLP+VfKrYkbZO22w4TEe4hUTHFI6ksEA0G3vccVzw9sZcKDvfLatTj4t+PH7xldm0fuYa2Gxz3iLtTfZ4WESEpBDfJtI3ujhvr7XHvz4joenGXCgk8XOzP1z5GuLF1jynmyWRd+9Rpkmjqdv03bDqzHvv/iI2t4h4zPNTONt7nTGHnzHjocnWXCgj3nPcN97/ODUGPwqzaTne+vMvRdhP0++6NYhNLK/x/X1DvH64pFo+skbSodrS304zpX3JQYc6OQ7p2q6n13rxm4cJr2v3sgvr08ipIbhEG97l5cjJn1A0gKZucaL7F678AtF7AY4g45bfriKfX8Yu+FrrV9ZRa97xl1OIMr4OGo47aochc6PpSaPrdBPZmzDM0w40Em63w7fv1dRP37/7Kne50B/l2es9Lozf9lEUkM52Qjao0nKND+PkBCc7lMUSRY7IqmUt1L1myXHcMhlQzfm1OW3OE8vn+oes5O6gf68dlf/73y/UsdwjdB5UX+d9CVRJZxHaE/KTw5Reuvge251m4A4gLZBz2N33Y5f7EENx08vbynJz5l+M/wI6E7gkFunLMya9LN3GZtc/Y7vWY0aj6+UhgdKI9KTY0BvAfzE/kMbndLrd/zyhtBwprPgQ5PxkQbo7sOB/pqxv0PHsza6Zlue4tsSPNKjAN19OJsO+zt0PL2/lstl/RILB3nURDrNU12k+ORSS8Pnil2uwtn0PKFDx+8uXxocGBgaGBjsv1SmfPx7G7gm6JyG7YBv89NPQVTRc+eOFzKuwoFuXepQ9t3l/gG46BM+Tv/g0JSJqCn7Pyf5sCYYdKh4rmt05L2LcKCzpjpNuX/I+par/7AINWVXo2lzYn6DDhXvGt1xxF04u+FN9Lsgr8oc1FyS0j+FT3X+Q9crjv+DJHfhMNysuxzkG4sOHd9guLhoxoeXmnb4jF5xLHcXDqc561K3UfYJk1Cz4YNaWzQVDodTkZiimqte1Cu+deSge3C4vjB2ORtln40chPO0h0KhpMDDNkfHGan4kZGCa3Cgf2YsdRtlX8KjFsSgZ3Q4lo9cKIyO7Mq4BIfc+MCa6pAXDPrUGc1ZBVVRpgUFjlaf5yndmONHjhRyo8eLGdfgsNRZRYe8nmBlOxhv8Y4AOchGRUnTFFmMiUu34PyqzPFdoyOFTbuKbsEh3d+Z+ztk+ZxWLnY1nIYE8FsFfowm9Moc7yIVz2xyDQ6bnI2iL5s4aULrFns8ZT7IxtuFUCetemWc5dytOLT7a6u8r0q+YBXi5rVssvMiVZdKAW9sOg+fZN53rkDHmasVh+PMB7Yc2p1DaH7LJjsX9Cmar1NV1YTfg5CJXtzk+jgD+Y1XNuT6vXzG1Nr2+chpgL6n2JVzFw7p/sxe59Du+kOUZwpjn2shHX98vVBwFQ752mPZ263ylagefR7XQjrELThc2djNDnJqY23xszwu0F2CQ268si3nJs1iXt5coLsGh4nOaHbIYrzOPRMnrZgHNa/KVBfo7sDph3Xh7M4uee+f9u6etW0gDOD4SZHLgXQIbhAaZYEUIiohZJDlyR1kgxOXUtMsgUylY4uzdSy00DEYOnQIlOCpFHcIlA4mKQZnSXGGeM0naLasXXoXhyqt6/pFl8Ry9IPgBLz8L7asF6xnd/fbk2q1VAkLpHukbJF5Ovtw8g3N5lH3e7vd7h41G9GlttcXPtBU6uzs7OTk5PycnobMbm+Nk80xTmcfzjW7h6f91qCl1T/u7fz4NPBl4DNxcHCw/WftrafHD9/r9UkTa+xf8OyPztp95s3RETsDj6N0NuEcFCRse5b3vLV1XfIumzuPDac/mjGcE7DlmLKqIJ5wS2GeKFzDCoT3mN1vjqZH4aubujBDtmeYKgJXZajl++vM08uAjYcrL9+9fxOFLwMAZIubKts2tGgUO88jpCiKSJFHtBkyLt+uAUbQ2srPq+EUMvGE3RAHpspfJCuqZuqGb3k2liRJoMgjxs929plu6cMMYObB2oso/JKiY25stuTrMqLVoub4tiTAEU9sdnud4+PDzuBDPqZsDbDEb66uRuHRgP3/ZVuOrPD0eZphC2OWidw1r9EgP829t+1e53S/9XHm8kIVXLNoEMpwtWAHOs2mZAPD+hRe0VVofj3qtg87T/OF7LTh5Ry4Ibyo6YGHJeGChD3fMWURgUtiINRnQg9nGoK/lqttlMqVkKzB+H33bL6yUVwCN4pHiqgSooL4ofkRsUBP4+mFMNct5mpVsgrlynpIdgYKhexv5I98uF4uVXPuEpgXCq7HBi0ZROgVoUzGJStRLOYGyG+um5mf6GiCa3yCPg+DraYkwzoLMIHtyKozAU2QOCpm047neYjfCDKjdh0kj+pxLNJ9kEB0OmV8VvI2dJSo2zBuugESCsnRAcxMhLmd1zkBpGqOhYXZ/v2cAxKOR6JsOr4nTbkCnJHMd/owerZGNywMucnKobMo5dECmMEk2z+sgUWEZGdMvWAkcEduQkjz4ejwQAWLjJetf8ZDW5/zwetM4gMJ/n3FwpERuBOUwdnqwfm9QNfEBduqj4EUkVDQ3apOpVKpVCqVSk3sF8syBtQPXiTJAAAAAElFTkSuQmCC"],[1,"item","recording-action-buttons"],["mat-flat-button","","id","stop-recording-btn",3,"click",4,"ngIf"],["mat-flat-button","","id","start-recording-btn",3,"click",4,"ngIf"],["class","recording-error",4,"ngIf"],["mat-flat-button","","id","reset-recording-status-btn",3,"click",4,"ngIf"],["mat-flat-button","","id","stop-recording-btn",3,"click"],["mat-flat-button","","id","start-recording-btn",3,"click"],[1,"recording-error"],["mat-flat-button","","id","reset-recording-status-btn",3,"click"],[1,"not-allowed-message"],[1,"item"],["mat-subheader",""],[4,"ngFor","ngForOf"],["mat-list-icon","",1,"recording-icon"],["mat-line",""],[1,"recording-name"],["mat-line","",1,"time-container"],[1,"recording-duration"],[1,"recording-size"],["mat-line","",1,"recording-date"],["mat-icon-button","","id","play-recording-btn",3,"matTooltip","click"],["mat-icon-button","","id","download-recording-btn",3,"matTooltip","click"],["mat-icon-button","","id","delete-recording-btn",1,"delete-recording-btn",3,"matTooltip","click"]],template:function(e,i){1&e&&(L(0,"mat-expansion-panel",0),we("opened",function(){return i.panelOpened()})("closed",function(){return i.panelClosed()}),L(1,"mat-expansion-panel-header")(2,"mat-list")(3,"mat-list-item")(4,"div",1),ne(5,ite,2,0,"mat-icon",2),ne(6,ote,2,0,"mat-icon",2),ne(7,rte,2,0,"mat-icon",3),z(),L(8,"h3",4),ce(9),Ee(10,"translate"),z(),L(11,"p",5),ce(12),Ee(13,"translate"),z(),L(14,"div",6)(15,"div",7)(16,"span"),ce(17),Ee(18,"uppercase"),z()()()()()(),ne(19,Ete,9,7,"div",8),z()),2&e&&(q("expanded",i.expanded),x(4),q("ngClass",xm(16,U1,i.recordingStatus===i.recStatusEnum.STARTED,i.recordingStatus===i.recStatusEnum.STOPPED,i.recordingStatus===i.recStatusEnum.FAILED,i.recordingStatus===i.recStatusEnum.STARTING||i.recordingStatus===i.recStatusEnum.STOPPING)),x(1),q("ngIf",i.recordingStatus!==i.recStatusEnum.FAILED&&i.recordingStatus!==i.recStatusEnum.STARTED),x(1),q("ngIf",i.recordingStatus===i.recStatusEnum.FAILED),x(1),q("ngIf",i.recordingStatus===i.recStatusEnum.STARTED),x(2),Ne(Ae(10,10,"PANEL.RECORDING.TITLE")),x(3),Ne(Ae(13,12,"PANEL.RECORDING.SUBTITLE")),x(3),q("ngClass",xm(21,U1,i.recordingStatus===i.recStatusEnum.STARTED,i.recordingStatus===i.recStatusEnum.STOPPED,i.recordingStatus===i.recStatusEnum.FAILED,i.recordingStatus===i.recStatusEnum.STARTING||i.recordingStatus===i.recStatusEnum.STOPPING)),x(2),Ne(Ae(18,14,i.recordingStatus)),x(2),q("ngIf",i.opened))},dependencies:[Gi,Io,Jt,In,di,nr,Ul,br,ty,gp,_p,mp,vp,WK,x1,O1,$w,Yw,pv,Ah,mP,Yn],styles:["#recording-status[_ngcontent-%COMP%]{color:var(--ov-text-color);display:inline;padding:5px;font-size:12px;border-radius:var(--ov-panel-radius)}.time-container[_ngcontent-%COMP%]{padding:2px}.recording-icon[_ngcontent-%COMP%]{font-size:32px!important;height:32px!important;width:32px!important}.recording-duration[_ngcontent-%COMP%]{background-color:var(--ov-light-color);padding:4px 8px;border-radius:var(--ov-panel-radius);font-weight:500}.recording-duration[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.started[_ngcontent-%COMP%]{background-color:#3b7430!important;color:var(--ov-text-color)}.activity-icon.started[_ngcontent-%COMP%], .failed[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)!important;color:var(--ov-text-color)}.stopped[_ngcontent-%COMP%]{background-color:var(--ov-light-color);color:var(--ov-panel-text-color)!important}.pending[_ngcontent-%COMP%]{background-color:#ffd79b!important;color:var(--ov-panel-text-color)!important}.panel-body-container[_ngcontent-%COMP%]{padding:10px}.panel-body-container[_ngcontent-%COMP%] > .content[_ngcontent-%COMP%]{align-items:stretch;justify-content:center;display:flex;flex-direction:column;box-flex:1;flex-grow:1;text-align:center}.recording-error[_ngcontent-%COMP%]{color:var(--ov-warn-color);font-weight:600}.recording-name[_ngcontent-%COMP%]{font-size:16px;font-weight:700}.recording-date[_ngcontent-%COMP%]{font-size:12px!important;font-style:italic}.not-allowed-message[_ngcontent-%COMP%]{margin-top:10px;font-weight:700}.recording-action-buttons[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}#start-recording-btn[_ngcontent-%COMP%]{width:100%;background-color:var(--ov-tertiary-color);color:var(--ov-text-color)}#stop-recording-btn[_ngcontent-%COMP%]{width:100%;background-color:var(--ov-warn-color);color:var(--ov-text-color)}.delete-recording-btn[_ngcontent-%COMP%]{color:var(--ov-warn-color)}#reset-recording-status-btn[_ngcontent-%COMP%]{width:100%;background-color:var(--ov-light-color)}mat-expansion-panel[_ngcontent-%COMP%]{margin:0 0 15px}.blink[_ngcontent-%COMP%]{animation:blinker 1.5s linear infinite!important}@keyframes blinker{50%{opacity:.4}}",".activities-body-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.activity-icon[_ngcontent-%COMP%]{display:inherit;background-color:var(--ov-light-color);border-radius:var(--ov-panel-radius)}.activity-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:auto}.activity-subtitle[_ngcontent-%COMP%]{font-style:italic;font-size:11px!important}.activity-title[_ngcontent-%COMP%]{font-weight:700!important}.activity-action-buttons[_ngcontent-%COMP%]{align-self:flex-start;margin-top:15px;font-weight:600} .mat-list-text{padding-left:10px!important} .mat-expansion-panel-header{padding:0 10px!important;height:65px!important} .mat-list-base .mat-list-item .mat-list-item-content, .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{padding:0!important} mat-expansion-panel .mat-expansion-panel-body{padding:0!important;min-height:400px} .mat-expansion-panel-header-description{flex-grow:0!important} .mat-expansion-panel{box-shadow:none!important}"],changeDetection:0}),t})(),EP=(()=>{class t{constructor(e,i,o){this.panelService=e,this.libService=i,this.cd=o,this.onStartRecordingClicked=new De,this.onStopRecordingClicked=new De,this.onDeleteRecordingClicked=new De,this.expandedPanel="",this.showRecordingActivity=!0}ngOnInit(){this.subscribeToPanelToggling(),this.subscribeToActivitiesPanelDirective()}ngOnDestroy(){this.panelSubscription&&this.panelSubscription.unsubscribe(),this.recordingActivitySub&&this.recordingActivitySub.unsubscribe()}close(){this.panelService.togglePanel(Gt.ACTIVITIES)}_onStartRecordingClicked(){this.onStartRecordingClicked.emit()}_onStopRecordingClicked(){this.onStopRecordingClicked.emit()}_onDeleteRecordingClicked(e){this.onDeleteRecordingClicked.emit(e)}subscribeToPanelToggling(){this.panelSubscription=this.panelService.panelOpenedObs.subscribe(e=>{e.type===Gt.ACTIVITIES&&e.expand&&(this.expandedPanel=e.expand)})}subscribeToActivitiesPanelDirective(){this.recordingActivitySub=this.libService.recordingActivity.subscribe(e=>{this.showRecordingActivity=e,this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(vo),h(Ft),h(Ut))},t.\u0275cmp=et({type:t,selectors:[["ov-activities-panel"]],outputs:{onStartRecordingClicked:"onStartRecordingClicked",onStopRecordingClicked:"onStopRecordingClicked",onDeleteRecordingClicked:"onDeleteRecordingClicked"},decls:11,vars:4,consts:[["id","activities-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","75%","fxLayoutAlign","space-evenly none",1,"activities-body-container"],["id","recording-activity",3,"expanded","onStartRecordingClicked","onStopRecordingClicked","onDeleteRecordingClicked",4,"ngIf"],["id","recording-activity",3,"expanded","onStartRecordingClicked","onStopRecordingClicked","onDeleteRecordingClicked"]],template:function(e,i){1&e&&(L(0,"div",0)(1,"div",1)(2,"h3",2),ce(3,"Activities"),z(),L(4,"button",3),we("click",function(){return i.close()}),Ee(5,"translate"),L(6,"mat-icon"),ce(7,"close"),z()()(),L(8,"div",4)(9,"mat-accordion"),ne(10,Ste,1,1,"ov-recording-activity",5),z()()()),2&e&&(x(4),Yt("matTooltip",Ae(5,2,"PANEL.CLOSE")),x(6),q("ngIf",i.showRecordingActivity))},dependencies:[Jt,In,di,nr,bs,da,ua,PZ,CP,Yn],styles:[Zu,".activities-body-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.activity-icon[_ngcontent-%COMP%]{display:inherit;background-color:var(--ov-light-color);border-radius:var(--ov-panel-radius)}.activity-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:auto}.activity-subtitle[_ngcontent-%COMP%]{font-style:italic;font-size:11px!important}.activity-title[_ngcontent-%COMP%]{font-weight:700!important}.activity-action-buttons[_ngcontent-%COMP%]{align-self:flex-start;margin-top:15px;font-weight:600} .mat-list-text{padding-left:10px!important} .mat-expansion-panel-header{padding:0 10px!important;height:65px!important} .mat-list-base .mat-list-item .mat-list-item-content, .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{padding:0!important} mat-expansion-panel .mat-expansion-panel-body{padding:0!important;min-height:400px} .mat-expansion-panel-header-description{flex-grow:0!important} .mat-expansion-panel{box-shadow:none!important}"],changeDetection:0}),t})(),SP=(()=>{class t{constructor(e,i,o){this.layoutService=e,this.captionService=i,this.openviduService=o,this.isSttReady=!0,this.languagesAvailable=[],this.isOpenViduPro=!1}ngOnInit(){this.isOpenViduPro=this.openviduService.isOpenViduPro(),this.isOpenViduPro&&(this.subscribeToSttStatus(),this.subscribeToCaptionsStatus(),this.langSelected=this.captionService.getLangSelected().name,this.languagesAvailable=this.captionService.getCaptionLanguages())}ngOnDestroy(){this.captionsStatusSubs&&this.captionsStatusSubs.unsubscribe(),this.sttStatusSubs&&this.sttStatusSubs.unsubscribe()}onLangSelected(e){this.langSelected=e.name,this.captionService.setLanguage(e.lang)}toggleCaptions(){this.layoutService.toggleCaptions()}subscribeToSttStatus(){this.sttStatusSubs=this.openviduService.isSttReadyObs.subscribe(e=>{this.isSttReady=e})}subscribeToCaptionsStatus(){this.captionsStatusSubs=this.layoutService.captionsTogglingObs.subscribe(e=>{this.captionsEnabled=e})}}return t.\u0275fac=function(e){return new(e||t)(h(ma),h(ed),h(_o))},t.\u0275cmp=et({type:t,selectors:[["ov-captions-settings"]],decls:3,vars:2,consts:[[4,"ngIf"],["class","pro-feature",4,"ngIf"],["mat-line",""],["id","captions-toggle-slide",3,"checked","disableRipple","change"],["id","lang-section"],["mat-flat-button","",1,"lang-button",3,"matMenuTriggerFor","disabled"],["menu","matMenu"],["mat-menu-item","",3,"id","click",4,"ngFor","ngForOf"],[1,"section-description"],["mat-menu-item","",3,"id","click"],[1,"pro-feature"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAAEOCAMAAABPbwmXAAAC/VBMVEUAAADr6+s1Nzzo6Ojr1dHr7Ozq5eTr6+vq6+vo6OhAOkDo6Ojr6+vr6+vr6+vs7Ozs7Ozr6+vr7OzETk7q6urr6+vs7Ozr6+zr6+vs7OzCTEzs7Ozr6+vr6+vWbWXr6+vq6ur8+vslMTcvP0br7Ozq6urs7Ozs7Ozt7e3r6+vs7Ozs7OwsOUDr6+vr6+vs7OzCTEzs7Ozs7OzSUlLs7Ozr6+vr6+vs6+s1PkU3R0/t7e3s7Ozs7OyztLXYVFTs7OwzQkkyP0bhdW8zQkrggXM4SVHs7OyXTlHt7u4yP0bKT0/mkX/wu7jLhHU3R083R08zQ0vrlIE4SFHc3Nzb29vIUFA1REzJYF/slIE1RU3rlIHDTU3IT084Rk1IUFSum5c3R0/d3t7rk4DMVlY2Q0uDTVHb29s3R0/CTEzWVlXXWVjX2Njjy8vrlIHslYLmk4PokH7KzM3slIG+wMCSmJvV1tdJVVsmMjinp6icoaTc3Nzojn17fYDv8PDx8fEmMjjc3NzCxMXZ2dmmqKmhb2bYn597VlS5vb/linrrlIHEfHNLVlxdZGfJysyWZWGvsbOlRUfPxMWymZrGgnP+/v5jcHeVR0mudmrcsbHSjo7o6Oj+4drEgXLXVFTr6+vCTEw3R0/b29vslIHs7e3///8lMjjXU1M1REympqbglZU1Rk7HTk7CSkraVFTZWVjt7u7p6OjTU1POUVLk5OQ0Q0u9S0vaqanm5uYyQUnETk7f39/w8PDd3d3GUlPi4eHMzM2wSkq/UFG3T1DV1dXnhnefR0ibnZ7pkn/75eM/SVCoTU+3SkrFxcbWinuURkgwPkW6vL2PkZLfjn3caGdKSE+pR0jPfX3aYV+HioxuTVHS0tL0zMt9Qkb19vapq6xbSk82Njv88PCVl5h0en2jpKSioaK0fHJgaW1QOj7429rY2dpEOT28gnjKbWxxQETpp6Tgu7yXbGV5XlvRWlpiPUHn2dnVnZ3Tk49ZXF/gfX2udWrjiYmHYlu3kIyya2wPP+XLAAAAnXRSTlMA/QUEB/kKHxgOCxT1L91mX+zBa0o96LdYnfqQKSQYQzj9LhTxgGzlr04z0ifu2M+vo5Y4qot3Ux784Mtx/fHGbDr+vy+xhv25XlBM/f3n1IptMNi+vJr+993T05F8SST06sJ9UP727ujix2b96qGU3ZldXFQt/vfSp6GAbPnv46+efHv94+HJuq6l69/ZxIx5Ovrb2p2c1sm4spxqGmVgbgAAGPJJREFUeNrswYEAAAAAgKD9qRepAgAAAAAAAAAAAAAAAAAAmF3zjk0iDMP4h4C1trYVoaXSYlGqdbXWVW2r1VpnxbhHXXHExL333ivuFY1cLRwajSJ6USIC2jqoA2NAxT1iorFq3Ns//I4DDnoDSUDj+P1hG2xiv+fe93mf7z3/85///Oc///nP3wyvYng4+HeBx68UllBPJBRHZyc3a9w0TpAlEIJ/iwjX8SXx+PFTo2IbRvI5iBv9sLFc8C+RQRyfAX3RqOR/qmHq8hEIsxxFRXMqgb+EWtM2TJ48eepQwEyNSIQFXRGk93TwN1B52jq+DEXRe5mTmQWp15BVDmMRpFcN8OdTawMfdSHL2gQYSIj1Jwdk2Fjwp1N59kmUJJOp4MMyERY4UA6cUUsqgj+beRz00f47aNdXstL9z1C0E8N5KqX+hBx/vqG2WIeij+xd0Ve5smeOO7BfxAy5I41VDrPRYDCbzRiGNQs00/3+wFKhMlkcaihHLpTji6zUDuVAO/EAHeE5CBscjjuUNA3keBHZcYKU5CQe/IV+G5U7t2vXtyYgmC1zy4GW2mGzoFvD6J9iHPJzxPHAz5OM6M8UYcPmbGvfAvwCIgAQVuH6FEbbNu1majSahZ0JaVaiuBx30Fff0NJcXA5ZEqCD27T8MNFjEL0OKYcgEDOVcLCi27fLTj1d2xOEHK44JzojKjbe+3k3WIiLgevRwDllcTlkX6CVeuRgCA/xvjHU7DJPI1YuuqdFgJ8nMb0Oduby+acXZgyuAEJNbTmCt3SdRK/i6K5xMaAWUR2kHI8IOeoxPEjEC6yIxOyrR2pAo4WbuG3G58f37z9tH3r3EPOR+vEpcnlMmKefay7UPL/1EKrxYEVNj3egdx6hpXdQGfwCvYPhOB3Ky2E0GogKwRBvMsMCmWsNQOebl423e00LvXdwxXxBIuDGREamVgEu2s7U3LJ9fXvru3XZYGKy6FCoQyla+swlR1NAT3PfFGrAdHCa6I24Lj7+EZsAGIiWxCRV4npZeoPKDVqEx3PKTpmTQcipKKnDEeNfOyF8oac6Zmq+q1QKhUr1pC+RSe+haKnjFbrf/uiOtiuzdYBoXyPluDyEUh4NYbMxzSZOw9SUDuIqEVxn37ZoC/0immM+Ze4UyuxG/vP8uniRpCANM4CL3Q80T1S2NwrbsjfO6hgyCreLrs/QZ3fQR11LUbQxY+fRbzsM5eWIFDHF/ChXRKma1jQ5I2FIA8KhOZghpwr4BTRGkHg49ZJi64vCAYG04MlbG6wOm/XNsiH4YJl172Sk952lU0SACw9zeTlgJdIjkiMkZ4b1Sm8uTAwHwrT6kkTwK6gXk8VPj8lORVJ4nooZ/sSqUqm+K6xvd0jx4pi9dNq0pcNkKIEsPiLAhQdVDo7Yf7epDVcxNVSuTk58bXFSaG99VPuLIt2thwKXw2ZRvFjFw/vXOe2HLk49KZPJFsTVZQnYSXLacI43i28UiwZ+J3UZxlF7mitK0DhaBGdf6GneEMlpnlVfSJ4y32qBclgUX60TvKPq0GlTx06dzpqEqlRl2goafF0lm8HZBV61oUd8kUftmg5CTsWkZiKQ4NWavNVfbXh1vLCqeoDASMxkKo5yZ0tmdVKIHtMhFLBFwV89h8OT82oLmZtxSv83X6EcUJLxeSAwKrmPUz6OmRFfJP6852qZms6DloAgk5ieVo9XVx4ZJ6ZXWlptkurJtSd4u/QPoDiYFx56MoSRxDPcGDwVVcahHdjDkkAw4dZNg64piMWjUA1aMUZrz6osbx+uWD18Qn7glZfD2iokTdmvgLpTOoZla+8IEEQqZbHeKruMsWuVuSqYwTr2GdGkcuCprhNLq/hfeIQLPD5Kb8mQ4Eb12rAIq3ZKgT1ehxKUpSNaKx3KvQ7YKBatUtl6zKAuUt/TSvPy8vPz86SMxZdCfaJkq/hdeCTWQQjIDQnlijxMCIJINAcRiCpywyR8JKtZts8zyuujJIDlkUt8d2T0CEKGoXn5PeZOGF4wvn9/i1WxZQ1TH6XTHQFDKGTRGpeQ71Ljqo4hzUF6hYFgkVA3C8ms4hyv+OKqvne/NBmjVRJoc3O1xcWH4HcnlLkTJk4kZFC5sVkVCsVcKVPmpx6B5mypldguxNgpxjQHmcMLVsSIg62SDpxk8KGnegndZbTWriQ48k5rv/jedEh59ARsHAoWi8VmtU7ksS88yNubkWZIRIWx1RamZ3xtBRk1FgQFYpfpWuqLIuFwqeKlBqwKJcHefu+0px++P6osOZqrooKLYbXZ5rI9X/KJkoHU78Ij3OXz6qtn1LR6YJhzmdRrevDur/Cu5jaRWEEVjxqtlS60eHmUKC9qNHdNJQ4LrRxQD4V1Uh5jcPBfHQ3rsb3TLMMQJnQ6zGxYFKQLXTJci8oznHE4B8kUhXPJ2iC0eKe043oUl3ScCfWAxcGMZRKNn8aUPzpmNJpp5IgUsa0HDDqEDQ5staCQIKxdFamTnZBYVwBNhHRRqAbRKsVHCF1Ob+8+U/Ow41kVHf3HFwyH7mqZCChk6LwhXjWRavhZeCQjLloZKM1CGdNBQgJ/xdhMPj7s3BrnjbEr92rte3E5TIQc77ZX7rxQs6I/nRgTYfDg8QaN7jewEYU+N7wZx3gqTgbbWxo4i1hpDIIG+SqkqtCVvvq4TANytJiYLf1MXUDbdkPyJxSMp0gyadWaufl5Aw8eLKThoDevDyNMxLBceNRFGHt1RINgEZECazdTIqmKZLk3HIOUbhzaIyUOKEZx8VFHNQAqV4BawRg6ZUoPgik9httsMHh8tahWXbxU6I+Dxw8j0PkwumedzbIsUV8+xSoHNJ7g6SGOk9cGILuxu1WqtVa60WqVp99pTSUmRy40Bjqk+euHF0zaUjBhzZVj/uX4qHZGJzovTWbbO2Ps1QGdNIhUFEXARuV6bFRLCEFQUmwyOc5aoEVMAbQ0aCGVSiuCjacL/cvxifj/YHRW0IwtwnFO6f288A4V0jHO0aqFfzgxFeNi4BRQcwXsHjeD4HEvXfIjxw1SDv9uyCOvf2p8+aNWEy9qqEhAyBjhTqLufjF5ssZqyjhrMbKFW5g+hYXXr/iVQwebhT6WplO7uL53/tTpL58xtyorumrAsPJTKQaEilrrjyq9gfcWMolOlFJ+3C2HdCAsDr/N8hJD9AajQU9X8FzKnE13H1eQg9xvpbttTluSqjPqb7fS+zqJPAmEisEtbx09RNSG1kGMWy2ZvQrm5jG0aZPqhf452O/D4cOw6g/TIOBRF6XywxB1WvTQeVFlZw7HdggDtefDTxD9ZT3lNhwSenbbt+9W8SGH3ctN99pVJOOH96BdH3epDjl26Vh1Cie8MH08zsTyalSWO/9iRLWNG3ceP755DfxkBPwIQqTUkDtphb579u058KAEKkHiKg9SkdVThrqGysiaFdyWUwi5fuW6v/pghvGnr59zfnf9tOcj0zif6ugAQgQsjgN79hy41vHIIY8WZHmQTJowZSgPqkdOlkaFIeOSO9D8IObaflyIwvjUaCkti1VbSiUu67bYpbtucQnW5QFxS1zjfk9IxAsh4kG8+gM6ViZMMoymTRsrtVTpg6J92Y2QTXiSJptsPIhn35kz06/mDKWdnfk9bPdyXua33/f7fuf7zpxcRs+59+9FYYwPB5pDhLUQHARvIWF0KQUFIb30NwZcunNtSQUOPLISz5CMVA55yaQyKVWRXz93B0NTVBld5MLegMUYtlEGOpJJSeru3ZRQoKpoOLf/zRMWqysQtRTxitgg+YfcvMvkUn3fXM1jh8P2AlS0aWRwviVKyo9gq+x2kivJ7mKxW+r6sqnno6KQIFFWb91w7OPDqH2IPysTYKzeECDvfo5XS2to5dIQ2JMOS5R0apuH8dvbpK4y5K7eT5vy4NFfZW8vI2bVTjzSnx50lMGziyO50Z1joWXl5Syb0Y5tDjFKeprQgSCh0tvb+7ZrB25zbQHSkTLZGJ5Zws2bRNsR4Un1OlLcETRUoQP46Ia0gc/Th7kJUTuRKEfHPRYHpjWMIVMQv7d9nDDOmrriD7DbhGX7fqdDSnYn6XfrZyypQS3rpyNVMHEj54I+2hKc47KsMbjKxNyOWg9S+jt0fnZMOxu1D6ilKdM2QSWC1gycoF3LjOx3yJKRDu0Xp0/YqqXxRxobfeY9tQrM5uoCNt5EpgN1+IiRDrlb+2b9nqideIQmzIie76KA8IW5uoDjIHHzcDPj8Tu6dYJOKlH7gOJhti0WmePbVkwjxeap/5AtWnjIn6L2AenIpdimyQtLRyx4BO36XM6Adacl2ZgtMv38kojaiLhOxzuTlpp1IxYc90HEpTtNdy2/Q6+1va/szBYsLSbteMtHLLNIS0qMsa+wbVkuyUy2UORtpAO1lJ1XQGGxbsSCTWpRFFGHUEyZ8Chqv9hkPx2APiMdPRdEK0cs2KQWxethtlnaZQyPbhoe8smojUCbnmEKi1CBzXUrKR5BE9OrTBpixvCQipqWxqP2AekoZAyF5amFIxY0YWSMk25l/7aXhgebLb09URsR/8Oe9vEHa4fVWGfFWJo5sOcFZypLptnyNutAaQH09TGFxeIRCx8UVKQDBiMWbvOO2mgMD6nomJay+5Zn32PWj1j89Oi8QUv5sYHxHqi1ssRmC9FS2+lg1RSGCkMxYpm7goZHZe55Ot3CHB5qbReTLU7ZdJwomBeWCGcRoL0GiEUqqm8QeA/SWisx2eKMTUc5RYtu+bAaX6sSIRo0eIOiRveCfYbwkIsytelR+4BaCnhXMO/9tFg2rPY3q3SUS4unTZWoVaa1tphUS4sjNh3VA3s/1g+r2w02fVY6LeoH+NadliVGPJwoLYi+d2a9nzm8Za8PU1t6Q5voddxIp2OiMFPdEUGtTTLi4ZRNR/NBC4vb0mE13sojEj60lseI+SQ2RHHMCNN9rVx0xqazanrgbmN768qA25Jh9eiReGcTSRUwprTSRtIxrONkwmCoLaqWyvbbdESGdk0Xq4/h75i1dP44V4u/Tv0cH5nHl19hFAGxTjp0oRnpG6tPGIx0SM7YdEZND5Yt42h/02xv3YoRaA3z9AYGsmkRxTYaHGD/NwenzB2ub2sZOhzqACFSKh8TOCsx1gXP3RYqv2gSSy/lyY6OFJVFjXgICKUUk8U5m47eY/ISDmHRVlZc2MSDeFKXTjrRDTHtrXtsIBt9mJPd9Iqu6ZlpnKWYQiQj7ev0cnPHqaWWvP7WCiUWQC7uoHVWNgRHsuhkN72iTbjH4st+po8j+pmOtXm5pmbabIQqAxpCPN4IvX2cNOkPOmjTccawmLMWfCu1X7EIz00cL6g3QHWkVTrcWllZsF0yBAc5H9Vlv01/+IhJluNmj8RzfO3hATHR4hPS5OFHRnxCwM9NEUnNdUWGszpKIQEc7ADhQG7yVpOteWuTZ1Xtd72EZ83unAnx0TwdiG0ItMzzrBGJw5ui9aRPHKHPjli+fbmUdLCbjtPrM2xhaQoIgTUzhYUTa/emK9USO8lLKm9geihQycaM9bIxOPatPSJrdHxyzqan1HM/Zi9i+wJuCPJ6+ugilBd1quBpnd4RE5EN6P1oOoo4tGAbyR/HbDqO4/YMM+rGyHbX+PDUjoW+hpF8rd404lLL7QriMxomzqpkY53uRxH7ls3YTjhy1qanMmjREaFF7nHT1VfEfeNrvrnCs2qFOrFuI8E2cSm0BL36TBItBwYHbGEIHY7a9Iy5Rfe3wD0bdI42po5WkD/YAgFyA/Qn3LhSwPvZ1i5PGoNj+zKO20i6p9VtuqJUJ0sB1EAHMR0mhSU0RmgmqtHoc60cWY//CM9xwxCO58JNK8b4cSLJWI7la8kpGEJHdZuezeWr+rRXeVxTFQmMDYIzG5g490eEOf7RE9e420P1dcY8TYsECI/Gsc3QjtbdOauj62fQo/vJqja9ZxAurRzoT/z1+fphzVdmTRUtTZHYwMJivCwpML8FrzSoHSOCYpCb2942HFOF0dEjJ1QvshwkpcqgNvHjgYr+vz3eIF0zGP8PLX2nHfEwt+gNMwXfGCi04brbpby3fVGoY1YjP5wSsnMfq6P0gtR1xHj8vbQouQcUXytWKAQVa/JftTV55V9tel8GT+kfNHuKxkmzR3fOmVhvE/nKzd27dx/dBYDP8B9S5fQ6jkA1HlVs+uADDQV9hdKTLxRyWXxVSOnX1/T/Gx2JTEpvof+59+Mdznk89e9tT91HnGdShWKHfiYI6Khi038Y6YgXSqUfP0oDP/JlOgYZOqoAjUeV3o/VdECq6I+M2E6vB0Xjwdp09j+fUygb/QOFnng0ke0vy6tSQMpqsOnQ+xk6TL35+bWO3dNJqkgSW2TxDEyV85RKVtOFUkJ79AEqIko0UxpMaFV2gK4ZeFWDTcfez5Dg7vsyzpNUkZENLLIEaDwAb/94nrKg8jGQoX/vKaGGZEt6ucmpa77marHpUFiGEpdflnGLpAqygUVWx1pCRzWbnh8slfpf6YUGogQrCiUJkIU1g9naWh7HuaHELZSOq2yqAPbi/hGMh1SttEBaJOLwhSILAorIvcI1iahSEx1g0YcSEaRjt1mq7NuJa8F4SP95Nl1hfqiz5QG9nyEEf7PMxvNfxN1PSBRhFADwWcV2/VNtpYIklJZg7oohmxo55B4KFiSEgi6lROCloyVbeAmDDlpBpyB22WWNGaagEiHr4B4WBgXDHeqwjDiHmV0XQzET0ovRm3FnHsuMJ3e++R28rAfn+ea9t9/MN5O+wTGc+ZsswsHDudV0GNFtVHkrrkspHHNwHcXBg/z9lFhLce3HHu6bcR1/mTuwjhqDB/yGEytAWDzuUHY6es84VUbxVLGoozh4OLuafoqyU+2wcaowMc66jqIBIxwc4W1PhBrLg3iBDJcNZjjredQ0eDh3oRbWfuzUgqdKjJuZnWUs6ygOHgzjTGsh0VjAk/g+Or/Aabt4ZjFFYFc1wsHDmW1PREb0I0afFff+/ITigSmCdRT5cV8H6dV0Io3FY/TZ6PzyzrNdPUUY/Xt9Ebwzm3xrIdJYHul9dk59qdna5nohRRiGuxyiEA4eXMzJWgprP3aqM1Z/VqZA03z/zhakiL4+anIN4sAxGsL3UxJY+8E+K0p00gUJAimyvLkKKRK7EaQsDMQ46MezKsJjur1rP2VlZVVgBF6t+xTQLMtKaS1FmprW+r9vTQw0+5uLBYPB5oGYyrkLtReb9/lVPZpzmioAx0SVxFCY1dDJOVpabJqa7x/r6/OXmcAdUvuhUDnRWu6b/iLtR4mNs7yQZVVyRkzTK1PPQ+eCIcqsJ/RyFayrNiIkvccR3W6VYX50SWFVOSUjZenhsSp/n5+y8nZe1x8haRrXfuz2kBWW3uVZTS6j5POTd/tCPZSlwJTu93aEoM84otttHJIiL7MFgrI7OjFIHaBhpUDM/SD+EDFY+yFg6FWY57OsTlbyu5PYZ8uPVLsb2850e3tbTjcEXtAFsrJBKBxYPO5QZAyNhwWBL4rHoKfxbK2361JD68mOY/XtNa6oKpHUw5YV/hEPxymKlOqRx0JGyLEaXoDg3Kw/b37bXyLJGtYjRGAt/fqms8Vbe9RdWU7Zr3IkzGcysv7fl9KfElGrcAhKIY32IiRNw+5ZdTNxxYljVwOXjtc2VtsWlHJPm/d665UTc0nJSJEsb/WynITIL+hN6PU20Vpa/LyfivqO1uveNk/JY+Kp6w342l3awSa+pNKQIlBXeUHmF13mcKQwHLnbZFuLvpkYudp9gd46Twlj0d3pqyk6Xte3RUgRWT1pJDFhCkdcEhQ5m83mAOHW8mEnEbVQ4+vsLk1E3F0dxdUSUwSSg2XT5g/naDYHlTajIt1aYDOxtYqOLjd1aBd8UWRKEV7m0y6LN0v9SqVEUUyCvxGSpvGxDBZ8F6hDgrtTkVWKSEmrTwwf/7N37zoKAlEYgMfMoBAuzhARDBIouAhEDIZLgiS0Psw+E80mJttsYrVPsY+yic0W2+1UdtKgKMl85VRz/vzFqWbePgesx+lMn2XooKxBPxFpu7xfv9q65XfYNf2n8zokAv3AmrS9fP2dBnT+bjuQGoK+tLRfIJePIV3am0iqgTuAkaeSduSI6kUQ3IkQzdMd3cJGabLdpfNIAPclRjjXY8K1I8KRWM9xJILHQLwc1nt9F0gv3pSJFOz0fR3KPAKPhkRLMwozU5PAfbGycG6QqJlZGJolIjAoOOUtJ8SFmepNUhGJe1JjJpxEqqTRU7PAoWPxUwieCwm8JWsh9j1ztTk2sRIQ94Hp0PldEihxc9ysTM/HoSZbvIDAK4JIEGk4jr0wsF94+X6VbXS1OcSJUgVLsnVdSeKoCXVjWoqjJMl1t2QZVEoSHxpV32Srfe4VPjYWtkMDEAUEwQhBNBVoRrOZtZZlx9FsexGWpWFgjOeUfzWn6KFhlGW4sG3NcWR5bc1mdHJhOs7ZGYZhGIZhGIZhGIZh/tuDAxIAAAAAQf9ftyNQAQAAAAAAAAAAAABgKnFticyleiBsAAAAAElFTkSuQmCC"],[3,"innerHTML"]],template:function(e,i){1&e&&(L(0,"div"),ne(1,Dte,23,15,"mat-list",0),ne(2,Mte,4,3,"div",1),z()),2&e&&(x(1),q("ngIf",i.isOpenViduPro),x(1),q("ngIf",!i.isOpenViduPro))},dependencies:[Io,Jt,In,di,Ul,Yu,Cs,Es,gp,_p,I1,Yn],styles:["#lang-section[_ngcontent-%COMP%]{margin-top:10px}.section-description[_ngcontent-%COMP%]{color:var(--ov-panel-text-color);font-size:12px;padding:0 5px;display:block}.lang-button[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);color:var(--ov-text-color)}.pro-feature[_ngcontent-%COMP%]{text-align:center}.pro-feture[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px} .mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:var(--ov-tertiary-color)} .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:var(--ov-light-color)}"]}),t})(),AP=(()=>{class t{constructor(e,i,o){this.panelService=e,this.platformService=i,this.libService=o,this.settingsOptions=Jl,this.selectedOption=Jl.GENERAL,this.showCaptions=!0,this.isMobile=!1}ngOnInit(){this.isMobile=this.platformService.isMobile(),this.subscribeToPanelToggling(),this.subscribeToDirectives()}ngOnDestroy(){this.captionsSubs&&this.captionsSubs.unsubscribe()}close(){this.panelService.togglePanel(Gt.SETTINGS)}onSelectionChanged(e){this.selectedOption=e}subscribeToDirectives(){this.captionsSubs=this.libService.captionsButtonObs.subscribe(e=>{this.showCaptions=e})}subscribeToPanelToggling(){this.panelSubscription=this.panelService.panelOpenedObs.subscribe(e=>{e.type===Gt.SETTINGS&&e.expand&&(this.selectedOption=e.expand)})}}return t.\u0275fac=function(e){return new(e||t)(h(vo),h(ec),h(Ft))},t.\u0275cmp=et({type:t,selectors:[["ov-settings-panel"]],decls:31,vars:24,consts:[["id","settings-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","100%","fxLayoutAlign","space-evenly none",1,"settings-container"],[1,"item-menu",3,"ngClass"],[3,"multiple","selectionChange"],["optionList",""],["id","general-opt",1,"option",3,"selected","value"],["mat-list-icon",""],["mat-line","",4,"ngIf"],["id","video-opt",1,"option",3,"selected","value"],["id","audio-opt",1,"option",3,"selected","value"],["class","option","id","captions-opt",3,"selected","value",4,"ngIf"],[1,"item-content"],[4,"ngIf"],["mat-line",""],["id","captions-opt",1,"option",3,"selected","value"]],template:function(e,i){if(1&e){const o=ht();L(0,"div",0)(1,"div",1)(2,"h3",2),ce(3),Ee(4,"translate"),z(),L(5,"button",3),we("click",function(){return i.close()}),Ee(6,"translate"),L(7,"mat-icon"),ce(8,"close"),z()()(),L(9,"div",4)(10,"div",5)(11,"mat-selection-list",6,7),we("selectionChange",function(){Be(o);const s=ji(12);return Ve(i.onSelectionChanged(null==s.selectedOptions.selected[0]?null:s.selectedOptions.selected[0].value))}),L(13,"mat-list-option",8)(14,"mat-icon",9),ce(15,"manage_accounts"),z(),ne(16,Tte,3,3,"div",10),z(),L(17,"mat-list-option",11)(18,"mat-icon",9),ce(19,"videocam"),z(),ne(20,xte,3,3,"div",10),z(),L(21,"mat-list-option",12)(22,"mat-icon",9),ce(23,"mic"),z(),ne(24,Ote,3,3,"div",10),z(),ne(25,Rte,4,3,"mat-list-option",13),z()(),L(26,"div",14),ne(27,Pte,10,3,"div",15),ne(28,kte,1,0,"ov-video-devices-select",15),ne(29,Nte,1,0,"ov-audio-devices-select",15),ne(30,Lte,1,0,"ov-captions-settings",15),z()()()}2&e&&(x(3),Ne(Ae(4,18,"PANEL.SETTINGS.TITLE")),x(2),Yt("matTooltip",Ae(6,20,"PANEL.CLOSE")),x(5),q("ngClass",fi(22,Fte,i.isMobile)),x(1),q("multiple",!1),x(2),q("selected",i.selectedOption===i.settingsOptions.GENERAL)("value",i.settingsOptions.GENERAL),x(3),q("ngIf",!i.isMobile),x(1),q("selected",i.selectedOption===i.settingsOptions.VIDEO)("value",i.settingsOptions.VIDEO),x(3),q("ngIf",!i.isMobile),x(1),q("selected",i.selectedOption===i.settingsOptions.AUDIO)("value",i.settingsOptions.AUDIO),x(3),q("ngIf",!i.isMobile),x(1),q("ngIf",i.showCaptions),x(2),q("ngIf",i.selectedOption===i.settingsOptions.GENERAL),x(1),q("ngIf",i.selectedOption===i.settingsOptions.VIDEO),x(1),q("ngIf",i.selectedOption===i.settingsOptions.AUDIO),x(1),q("ngIf",i.selectedOption===i.settingsOptions.CAPTIONS&&i.showCaptions))},dependencies:[Gi,Jt,In,di,nr,Ul,bs,da,ua,br,gp,_p,vp,iy,y1,my,vy,_y,by,SP,Yn],styles:[Zu,".settings-container[_ngcontent-%COMP%]{display:flex;padding:10px}.item-menu[_ngcontent-%COMP%]{padding-right:5px;border-right:1px solid var(--ov-secondary-color);width:170px}.item-menu.mobile[_ngcontent-%COMP%]{width:50px!important}.item-content[_ngcontent-%COMP%]{padding:16px;flex-grow:1;width:min-content}.option[_ngcontent-%COMP%]{border-radius:var(--ov-panel-radius)}.lang-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}mat-list-option[aria-selected=true][_ngcontent-%COMP%]{background:var(--ov-tertiary-color);font-weight:700!important;color:var(--ov-panel-background)} .mat-list-item-content{padding:5px!important}"]}),t})(),yy=(()=>{class t{constructor(e,i,o,r,s,a,l,c){this.loggerSrv=e,this.storageSrv=i,this.participantService=o,this.deviceSrv=r,this.openviduService=s,this.actionService=a,this.libService=l,this.translateService=c,this.onJoinButtonClicked=new De,this.onToolbarLeaveButtonClicked=new De,this.onToolbarCameraButtonClicked=new De,this.onToolbarMicrophoneButtonClicked=new De,this.onToolbarScreenshareButtonClicked=new De,this.onToolbarFullscreenButtonClicked=new De,this.onToolbarParticipantsPanelButtonClicked=new De,this.onToolbarChatPanelButtonClicked=new De,this.onToolbarActivitiesPanelButtonClicked=new De,this.onToolbarStartRecordingClicked=new De,this.onToolbarStopRecordingClicked=new De,this.onActivitiesPanelStartRecordingClicked=new De,this.onActivitiesPanelStopRecordingClicked=new De,this.onActivitiesPanelDeleteRecordingClicked=new De,this.onActivitiesPanelPlayRecordingClicked=new De,this.onSessionCreated=new De,this.onParticipantCreated=new De,this.onNodeCrashed=new De,this.showVideoconference=!1,this.participantReady=!1,this.error=!1,this.errorMessage="",this.showPrejoin=!0,this.isSessionInitialized=!1,this.loading=!0,this.nodeCrashed=!1,this.log=this.loggerSrv.get("VideoconferenceComponent")}set tokens(e){let i;if(e&&e.webcam){try{i=new URL(e.webcam).searchParams.get("edition")}catch(o){return void this.log.e("Token received does not seem to be valid: ",e.webcam)}this.log.d("Tokens received"),this.openviduService.setOpenViduEdition(i?va.PRO:va.CE),this.openviduService.setWebcamToken(e.webcam),e.screen?this.openviduService.setScreenToken(e.screen):this.log.w("No screen token found. Screenshare feature will be disabled"),this.start()}else this.log.e("No tokens received")}ngOnInit(){return Re(this,void 0,void 0,function*(){this.subscribeToVideconferenceDirectives()})}ngOnDestroy(){return Re(this,void 0,void 0,function*(){this.prejoinSub&&this.prejoinSub.unsubscribe(),this.participantNameSub&&this.participantNameSub.unsubscribe(),this.deviceSrv.clear(),yield this.openviduService.clear()})}ngAfterViewInit(){this.externalToolbar?(this.log.d("Setting EXTERNAL TOOLBAR"),this.openviduAngularToolbarTemplate=this.externalToolbar.template):(this.log.d("Setting DEFAULT TOOLBAR"),this.externalToolbarAdditionalButtons&&(this.log.d("Setting EXTERNAL TOOLBAR ADDITIONAL BUTTONS"),this.openviduAngularToolbarAdditionalButtonsTemplate=this.externalToolbarAdditionalButtons.template),this.externalToolbarAdditionalPanelButtons&&(this.log.d("Setting EXTERNAL TOOLBAR ADDITIONAL PANEL BUTTONS"),this.openviduAngularToolbarAdditionalPanelButtonsTemplate=this.externalToolbarAdditionalPanelButtons.template),this.openviduAngularToolbarTemplate=this.defaultToolbarTemplate),this.externalPanel?(this.log.d("Setting EXTERNAL PANEL"),this.openviduAngularPanelTemplate=this.externalPanel.template):(this.log.d("Setting DEFAULT PANEL"),this.externalParticipantsPanel?(this.openviduAngularParticipantsPanelTemplate=this.externalParticipantsPanel.template,this.log.d("Setting EXTERNAL PARTICIPANTS PANEL")):(this.log.d("Setting DEFAULT PARTICIPANTS PANEL"),this.externalParticipantPanelItem?(this.log.d("Setting EXTERNAL P ITEM"),this.openviduAngularParticipantPanelItemTemplate=this.externalParticipantPanelItem.template):(this.externalParticipantPanelItemElements&&(this.log.d("Setting EXTERNAL PARTICIPANT PANEL ITEM ELEMENT"),this.openviduAngularParticipantPanelItemElementsTemplate=this.externalParticipantPanelItemElements.template),this.openviduAngularParticipantPanelItemTemplate=this.defaultParticipantPanelItemTemplate,this.log.d("Setting DEFAULT P ITEM")),this.openviduAngularParticipantsPanelTemplate=this.defaultParticipantsPanelTemplate),this.externalChatPanel?(this.log.d("Setting EXTERNAL CHAT PANEL"),this.openviduAngularChatPanelTemplate=this.externalChatPanel.template):(this.log.d("Setting DEFAULT CHAT PANEL"),this.openviduAngularChatPanelTemplate=this.defaultChatPanelTemplate),this.externalActivitiesPanel?(this.log.d("Setting EXTERNAL ACTIVITIES PANEL"),this.openviduAngularActivitiesPanelTemplate=this.externalActivitiesPanel.template):(this.log.d("Setting DEFAULT ACTIVITIES PANEL"),this.openviduAngularActivitiesPanelTemplate=this.defaultActivitiesPanelTemplate),this.externalAdditionalPanels&&(this.log.d("Setting EXTERNAL ADDITIONAL PANELS"),this.openviduAngularAdditionalPanelsTemplate=this.externalAdditionalPanels.template),this.openviduAngularPanelTemplate=this.defaultPanelTemplate),this.externalLayout?(this.log.d("Setting EXTERNAL LAYOUT"),this.openviduAngularLayoutTemplate=this.externalLayout.template):(this.log.d("Setting DEAFULT LAYOUT"),this.externalStream?(this.log.d("Setting EXTERNAL STREAM"),this.openviduAngularStreamTemplate=this.externalStream.template):(this.log.d("Setting DEFAULT STREAM"),this.openviduAngularStreamTemplate=this.defaultStreamTemplate),this.openviduAngularLayoutTemplate=this.defaultLayoutTemplate)}start(){return Re(this,void 0,void 0,function*(){yield this.deviceSrv.forceInitDevices();const e=this.externalParticipantName||this.storageSrv.getNickname()||`OpenVidu_User${Math.floor(100*Math.random())}`;this.participantService.initLocalParticipant({local:!0,nickname:e}),this.openviduService.initialize(),(this.deviceSrv.hasVideoDeviceAvailable()||this.deviceSrv.hasAudioDeviceAvailable())&&(yield this.initwebcamPublisher()),this.isSessionInitialized=!0,this.onSessionCreated.emit(this.openviduService.getWebcamSession()),this.onParticipantCreated.emit(this.participantService.getLocalParticipant()),this.loading=!1,this.participantReady=!0,this.nodeCrashed&&(this.nodeCrashed=!1,this.actionService.closeDialog())})}initwebcamPublisher(){return Re(this,void 0,void 0,function*(){return new Promise((e,i)=>Re(this,void 0,void 0,function*(){try{const o=yield this.openviduService.initDefaultPublisher();o&&(o.once("accessDenied",r=>Re(this,void 0,void 0,function*(){yield this.handlePublisherError(r),e()})),o.once("accessAllowed",()=>e()))}catch(o){this.actionService.openDialog(o.name.replace(/_/g," "),o.message,!0),this.log.e(o),i()}}))})}_onJoinButtonClicked(){this.showVideoconference=!0,this.showPrejoin=!1,this.onJoinButtonClicked.emit()}onLeaveButtonClicked(){this.showVideoconference=!1,this.participantReady=!1,this.onToolbarLeaveButtonClicked.emit()}onCameraButtonClicked(){this.onToolbarCameraButtonClicked.emit()}onMicrophoneButtonClicked(){this.onToolbarMicrophoneButtonClicked.emit()}onScreenshareButtonClicked(){this.onToolbarScreenshareButtonClicked.emit()}onFullscreenButtonClicked(){this.onToolbarFullscreenButtonClicked.emit()}onParticipantsPanelButtonClicked(){this.onToolbarParticipantsPanelButtonClicked.emit()}onChatPanelButtonClicked(){this.onToolbarChatPanelButtonClicked.emit()}onActivitiesPanelButtonClicked(){this.onToolbarActivitiesPanelButtonClicked.emit()}onStartRecordingClicked(e){"toolbar"===e?this.onToolbarStartRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStartRecordingClicked.emit()}onStopRecordingClicked(e){"toolbar"===e?this.onToolbarStopRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStopRecordingClicked.emit()}onDeleteRecordingClicked(e){this.onActivitiesPanelDeleteRecordingClicked.emit(e)}_onNodeCrashed(){this.nodeCrashed=!0,this.onNodeCrashed.emit()}handlePublisherError(e){return Re(this,void 0,void 0,function*(){let i="";if(e.name===_s.OpenViduErrorName.DEVICE_ALREADY_IN_USE)return this.log.w("Video device already in use. Disabling video device..."),this.deviceSrv.disableVideoDevices(),yield this.initwebcamPublisher();e.name===_s.OpenViduErrorName.NO_INPUT_SOURCE_SET&&(i=this.translateService.translate("ERRORS.DEVICE_NOT_FOUND")),this.actionService.openDialog(e.name.replace(/_/g," "),i,!0),this.log.e(e.message)})}subscribeToVideconferenceDirectives(){this.prejoinSub=this.libService.prejoin.subscribe(e=>{this.showPrejoin=e}),this.participantNameSub=this.libService.participantName.subscribe(e=>{this.externalParticipantName=e})}}return t.\u0275fac=function(e){return new(e||t)(h(or),h(Bo),h(wi),h(tc),h(_o),h(Cr),h(Ft),h(Ss))},t.\u0275cmp=et({type:t,selectors:[["ov-videoconference"]],contentQueries:function(e,i,o){if(1&e&&(Xe(o,pie,5),Xe(o,ZR,5),Xe(o,XR,5),Xe(o,JR,5),Xe(o,gie,5),Xe(o,eP,5),Xe(o,tP,5),Xe(o,nP,5),Xe(o,iP,5),Xe(o,oP,5),Xe(o,mie,5),Xe(o,rP,5)),2&e){let r;xe(r=Oe())&&(i.externalToolbar=r.first),xe(r=Oe())&&(i.externalToolbarAdditionalButtons=r.first),xe(r=Oe())&&(i.externalToolbarAdditionalPanelButtons=r.first),xe(r=Oe())&&(i.externalAdditionalPanels=r.first),xe(r=Oe())&&(i.externalPanel=r.first),xe(r=Oe())&&(i.externalChatPanel=r.first),xe(r=Oe())&&(i.externalActivitiesPanel=r.first),xe(r=Oe())&&(i.externalParticipantsPanel=r.first),xe(r=Oe())&&(i.externalParticipantPanelItem=r.first),xe(r=Oe())&&(i.externalParticipantPanelItemElements=r.first),xe(r=Oe())&&(i.externalLayout=r.first),xe(r=Oe())&&(i.externalStream=r.first)}},viewQuery:function(e,i){if(1&e&&(St(Bte,5,mt),St(Vte,5,mt),St(jte,5,mt),St(Ute,5,mt),St(Hte,5,mt),St(j1,5,mt),St(Gte,5,mt),St(zte,5,mt)),2&e){let o;xe(o=Oe())&&(i.defaultToolbarTemplate=o.first),xe(o=Oe())&&(i.defaultPanelTemplate=o.first),xe(o=Oe())&&(i.defaultChatPanelTemplate=o.first),xe(o=Oe())&&(i.defaultParticipantsPanelTemplate=o.first),xe(o=Oe())&&(i.defaultActivitiesPanelTemplate=o.first),xe(o=Oe())&&(i.defaultParticipantPanelItemTemplate=o.first),xe(o=Oe())&&(i.defaultLayoutTemplate=o.first),xe(o=Oe())&&(i.defaultStreamTemplate=o.first)}},inputs:{tokens:"tokens"},outputs:{onJoinButtonClicked:"onJoinButtonClicked",onToolbarLeaveButtonClicked:"onToolbarLeaveButtonClicked",onToolbarCameraButtonClicked:"onToolbarCameraButtonClicked",onToolbarMicrophoneButtonClicked:"onToolbarMicrophoneButtonClicked",onToolbarScreenshareButtonClicked:"onToolbarScreenshareButtonClicked",onToolbarFullscreenButtonClicked:"onToolbarFullscreenButtonClicked",onToolbarParticipantsPanelButtonClicked:"onToolbarParticipantsPanelButtonClicked",onToolbarChatPanelButtonClicked:"onToolbarChatPanelButtonClicked",onToolbarActivitiesPanelButtonClicked:"onToolbarActivitiesPanelButtonClicked",onToolbarStartRecordingClicked:"onToolbarStartRecordingClicked",onToolbarStopRecordingClicked:"onToolbarStopRecordingClicked",onActivitiesPanelStartRecordingClicked:"onActivitiesPanelStartRecordingClicked",onActivitiesPanelStopRecordingClicked:"onActivitiesPanelStopRecordingClicked",onActivitiesPanelDeleteRecordingClicked:"onActivitiesPanelDeleteRecordingClicked",onActivitiesPanelPlayRecordingClicked:"onActivitiesPanelPlayRecordingClicked",onSessionCreated:"onSessionCreated",onParticipantCreated:"onParticipantCreated",onNodeCrashed:"onNodeCrashed"},decls:21,vars:4,consts:[["id","call-container"],["id","spinner",4,"ngIf"],["id","pre-join-container",4,"ngIf"],["id","vc-container",4,"ngIf"],["defaultToolbar",""],["defaultPanel",""],["defaultChatPanel",""],["defaultActivitiesPanel",""],["defaultParticipantsPanel",""],["defaultParticipantPanelItem",""],["defaultLayout",""],["defaultStream",""],["id","spinner"],[3,"diameter"],["id","pre-join-container"],[3,"onJoinButtonClicked"],[1,"error-icon"],["id","vc-container"],[3,"onNodeCrashed",4,"ngIf"],[3,"onNodeCrashed"],["toolbar",""],["panel",""],["layout",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["id","default-toolbar",3,"onLeaveButtonClicked","onCameraButtonClicked","onMicrophoneButtonClicked","onScreenshareButtonClicked","onFullscreenButtonClicked","onParticipantsPanelButtonClicked","onChatPanelButtonClicked","onActivitiesPanelButtonClicked","onStartRecordingClicked","onStopRecordingClicked"],["toolbarAdditionalButtons",""],["toolbarAdditionalPanelButtons",""],["id","default-panel"],["chatPanel",""],["participantsPanel",""],["backgroundEffectsPanel",""],["settingsPanel",""],["activitiesPanel",""],["additionalPanels",""],["id","default-background-effects-panel"],["id","default-settings-panel"],["id","default-chat-panel"],["id","default-activities-panel",3,"onStartRecordingClicked","onStopRecordingClicked","onDeleteRecordingClicked"],["id","default-participants-panel"],["participantPanelItem",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["id","default-participant-panel-item",3,"participant"],["participantPanelItemElements",""],["id","default-layout"],["stream",""],["id","default-stream",3,"stream"]],template:function(e,i){1&e&&(L(0,"div",0),ne(1,qte,5,4,"div",1),ne(2,Wte,2,1,"div",2),ne(3,$te,5,1,"div",1),ne(4,one,2,2,"div",3),z(),ne(5,cne,5,0,"ng-template",null,4,dn),ne(7,yne,13,0,"ng-template",null,5,dn),ne(9,Cne,1,0,"ng-template",null,6,dn),ne(11,Ene,1,0,"ng-template",null,7,dn),ne(13,wne,3,0,"ng-template",null,8,dn),ne(15,Tne,3,1,"ng-template",null,9,dn),ne(17,Ine,3,0,"ng-template",null,10,dn),ne(19,Rne,1,1,"ng-template",null,11,dn)),2&e&&(x(1),q("ngIf",i.loading),x(1),q("ngIf",i.showPrejoin&&i.participantReady&&!i.loading),x(1),q("ngIf",!i.loading&&i.error),x(1),q("ngIf",i.showVideoconference||!i.showPrejoin&&!i.loading&&!i.error))},dependencies:[Jt,rs,di,tr,gP,fy,EP,vP,py,lP,hy,ly,yP,uy,gy,AP,Yn],styles:["#call-container[_ngcontent-%COMP%], #vc-container[_ngcontent-%COMP%]{height:100%}#vc-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color)}#pre-join-container[_ngcontent-%COMP%]{height:inherit}.error-icon[_ngcontent-%COMP%]{color:var(--ov-warn-color)}#spinner[_ngcontent-%COMP%]{position:absolute;inset:40% 0 0;margin:auto;text-align:-webkit-center;text-align:-moz-center;color:var(--ov-panel-text-color)}#call-container[_ngcontent-%COMP%]{--ov-captions-height: 230px}"],data:{animation:[qi("inOutAnimation",[Vn(":enter",[Pt({opacity:0}),Wn("300ms ease-out",Pt({opacity:1}))])])]}}),t})(),kie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingActivityValue=!0}set activitiesPanelRecordingActivity(e){this.recordingActivityValue=e,this.update(this.recordingActivityValue)}set recordingActivity(e){this.recordingActivityValue=e,this.update(this.recordingActivityValue)}ngAfterViewInit(){this.update(this.recordingActivityValue)}ngOnDestroy(){this.clear()}clear(){this.recordingActivityValue=!0,this.update(!0)}update(e){this.libService.recordingActivity.getValue()!==e&&this.libService.recordingActivity.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","activitiesPanelRecordingActivity",""],["ov-activities-panel","recordingActivity",""]],inputs:{activitiesPanelRecordingActivity:"activitiesPanelRecordingActivity",recordingActivity:"recordingActivity"}}),t})(),Nie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.muteValue=!0}set participantPanelItemMuteButton(e){this.muteValue=e,this.update(this.muteValue)}set muteButton(e){this.muteValue=e,this.update(this.muteValue)}ngAfterViewInit(){this.update(this.muteValue)}ngOnDestroy(){this.clear()}clear(){this.muteValue=!0,this.update(!0)}update(e){this.libService.participantItemMuteButton.getValue()!==e&&this.libService.participantItemMuteButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","participantPanelItemMuteButton",""],["ov-participant-panel-item","muteButton",""]],inputs:{participantPanelItemMuteButton:"participantPanelItemMuteButton",muteButton:"muteButton"}}),t})(),Lie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingsValue=[]}set recordingActivityRecordingsList(e){this.recordingsValue=e,this.update(this.recordingsValue)}set recordingsList(e){this.recordingsValue=e,this.update(this.recordingsValue)}ngAfterViewInit(){this.update(this.recordingsValue)}ngOnDestroy(){this.clear()}clear(){this.recordingsValue=[],this.update([])}update(e){this.libService.recordingsList.getValue()!==e&&this.libService.recordingsList.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","recordingActivityRecordingsList",""],["ov-recording-activity","recordingsList",""]],inputs:{recordingActivityRecordingsList:"recordingActivityRecordingsList",recordingsList:"recordingsList"}}),t})(),Fie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingErrorValue=null}set recordingActivityRecordingError(e){this.recordingErrorValue=e,this.update(this.recordingErrorValue)}set recordingError(e){this.recordingErrorValue=e,this.update(this.recordingErrorValue)}ngAfterViewInit(){this.update(this.recordingErrorValue)}ngOnDestroy(){this.clear()}clear(){this.recordingErrorValue=null,this.update(null)}update(e){this.libService.recordingError.getValue()!==e&&this.libService.recordingError.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","recordingActivityRecordingError",""],["ov-recording-activity","recordingError",""]],inputs:{recordingActivityRecordingError:"recordingActivityRecordingError",recordingError:"recordingError"}}),t})(),Bie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.screenshareValue=!0}set toolbarScreenshareButton(e){this.screenshareValue=e,this.update(this.screenshareValue)}set screenshareButton(e){this.screenshareValue=e,this.update(this.screenshareValue)}ngAfterViewInit(){this.update(this.screenshareValue)}ngOnDestroy(){this.clear()}clear(){this.screenshareValue=!0,this.update(!0)}update(e){this.libService.screenshareButton.getValue()!==e&&this.libService.screenshareButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarScreenshareButton",""],["ov-toolbar","screenshareButton",""]],inputs:{toolbarScreenshareButton:"toolbarScreenshareButton",screenshareButton:"screenshareButton"}}),t})(),Vie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingValue=!0}set toolbarRecordingButton(e){this.recordingValue=e,this.update(this.recordingValue)}set recordingButton(e){this.recordingValue=e,this.update(this.recordingValue)}ngAfterViewInit(){this.update(this.recordingValue)}ngOnDestroy(){this.clear()}clear(){this.recordingValue=!0,this.update(!0)}update(e){this.libService.recordingButton.getValue()!==e&&this.libService.recordingButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarRecordingButton",""],["ov-toolbar","recordingButton",""]],inputs:{toolbarRecordingButton:"toolbarRecordingButton",recordingButton:"recordingButton"}}),t})(),jie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.fullscreenValue=!0}set toolbarFullscreenButton(e){this.fullscreenValue=e,this.update(this.fullscreenValue)}set fullscreenButton(e){this.fullscreenValue=e,this.update(this.fullscreenValue)}ngAfterViewInit(){this.update(this.fullscreenValue)}ngOnDestroy(){this.clear()}clear(){this.fullscreenValue=!0,this.update(!0)}update(e){this.libService.fullscreenButton.getValue()!==e&&this.libService.fullscreenButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarFullscreenButton",""],["ov-toolbar","fullscreenButton",""]],inputs:{toolbarFullscreenButton:"toolbarFullscreenButton",fullscreenButton:"fullscreenButton"}}),t})(),Uie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.backgroundEffectsValue=!0}set toolbarBackgroundEffectsButton(e){this.backgroundEffectsValue=e,this.update(this.backgroundEffectsValue)}set backgroundEffectsButton(e){this.backgroundEffectsValue=e,this.update(this.backgroundEffectsValue)}ngAfterViewInit(){this.update(this.backgroundEffectsValue)}ngOnDestroy(){this.clear()}clear(){this.backgroundEffectsValue=!0,this.update(!0)}update(e){this.libService.backgroundEffectsButton.getValue()!==e&&this.libService.backgroundEffectsButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarBackgroundEffectsButton",""],["ov-toolbar","backgroundEffectsButton",""]],inputs:{toolbarBackgroundEffectsButton:"toolbarBackgroundEffectsButton",backgroundEffectsButton:"backgroundEffectsButton"}}),t})(),Hie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.captionsButtonValue=!0}set toolbarCaptionsButton(e){this.captionsButtonValue=e,this.update(this.captionsButtonValue)}set captionsButton(e){this.captionsButtonValue=e,this.update(this.captionsButtonValue)}ngAfterViewInit(){this.update(this.captionsButtonValue)}ngOnDestroy(){this.clear()}clear(){this.captionsButtonValue=!0,this.update(!0)}update(e){this.libService.captionsButton.getValue()!==e&&this.libService.captionsButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarCaptionsButton",""],["ov-toolbar","captionsButton",""]],inputs:{toolbarCaptionsButton:"toolbarCaptionsButton",captionsButton:"captionsButton"}}),t})(),Gie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.settingsValue=!0}set toolbarSettingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}set settingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}ngAfterViewInit(){this.update(this.settingsValue)}ngOnDestroy(){this.clear()}clear(){this.settingsValue=!0,this.update(!0)}update(e){this.libService.toolbarSettingsButton.getValue()!==e&&this.libService.toolbarSettingsButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarSettingsButton",""],["ov-toolbar","settingsButton",""]],inputs:{toolbarSettingsButton:"toolbarSettingsButton",settingsButton:"settingsButton"}}),t})(),zie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.leaveValue=!0}set toolbarLeaveButton(e){this.leaveValue=e,this.update(this.leaveValue)}set leaveButton(e){this.leaveValue=e,this.update(this.leaveValue)}ngAfterViewInit(){this.update(this.leaveValue)}ngOnDestroy(){this.clear()}clear(){this.leaveValue=!0,this.update(!0)}update(e){this.libService.leaveButton.getValue()!==e&&this.libService.leaveButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarLeaveButton",""],["ov-toolbar","leaveButton",""]],inputs:{toolbarLeaveButton:"toolbarLeaveButton",leaveButton:"leaveButton"}}),t})(),qie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.participantsPanelValue=!0}set toolbarParticipantsPanelButton(e){this.participantsPanelValue=e,this.update(this.participantsPanelValue)}set participantsPanelButton(e){this.participantsPanelValue=e,this.update(this.participantsPanelValue)}ngAfterViewInit(){this.update(this.participantsPanelValue)}ngOnDestroy(){this.clear()}clear(){this.participantsPanelValue=!0,this.update(!0)}update(e){this.libService.participantsPanelButton.getValue()!==e&&this.libService.participantsPanelButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarParticipantsPanelButton",""],["ov-toolbar","participantsPanelButton",""]],inputs:{toolbarParticipantsPanelButton:"toolbarParticipantsPanelButton",participantsPanelButton:"participantsPanelButton"}}),t})(),Wie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.toolbarChatPanelValue=!0}set toolbarChatPanelButton(e){this.toolbarChatPanelValue=e,this.update(this.toolbarChatPanelValue)}set chatPanelButton(e){this.toolbarChatPanelValue=e,this.update(this.toolbarChatPanelValue)}ngAfterViewInit(){this.update(this.toolbarChatPanelValue)}ngOnDestroy(){this.clear()}clear(){this.toolbarChatPanelValue=!0,this.update(!0)}update(e){this.libService.chatPanelButton.getValue()!==e&&this.libService.chatPanelButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarChatPanelButton",""],["ov-toolbar","chatPanelButton",""]],inputs:{toolbarChatPanelButton:"toolbarChatPanelButton",chatPanelButton:"chatPanelButton"}}),t})(),$ie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.toolbarActivitiesPanelValue=!0}set toolbarActivitiesPanelButton(e){this.toolbarActivitiesPanelValue=e,this.update(this.toolbarActivitiesPanelValue)}set activitiesPanelButton(e){this.toolbarActivitiesPanelValue=e,this.update(this.toolbarActivitiesPanelValue)}ngAfterViewInit(){this.update(this.toolbarActivitiesPanelValue)}ngOnDestroy(){this.clear()}clear(){this.toolbarActivitiesPanelValue=!0,this.update(!0)}update(e){this.libService.activitiesPanelButton.getValue()!==e&&this.libService.activitiesPanelButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarActivitiesPanelButton",""],["ov-toolbar","activitiesPanelButton",""]],inputs:{toolbarActivitiesPanelButton:"toolbarActivitiesPanelButton",activitiesPanelButton:"activitiesPanelButton"}}),t})(),Yie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.displaySessionValue=!0}set toolbarDisplaySessionName(e){this.displaySessionValue=e,this.update(this.displaySessionValue)}set displaySessionName(e){this.displaySessionValue=e,this.update(this.displaySessionValue)}ngAfterViewInit(){this.update(this.displaySessionValue)}ngOnDestroy(){this.clear()}clear(){this.displaySessionValue=!0,this.update(!0)}update(e){this.libService.displaySessionName.getValue()!==e&&this.libService.displaySessionName.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarDisplaySessionName",""],["ov-toolbar","displaySessionName",""]],inputs:{toolbarDisplaySessionName:"toolbarDisplaySessionName",displaySessionName:"displaySessionName"}}),t})(),Qie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.displayLogoValue=!0}set toolbarDisplayLogo(e){this.displayLogoValue=e,this.update(this.displayLogoValue)}set displayLogo(e){this.displayLogoValue=e,this.update(this.displayLogoValue)}ngAfterViewInit(){this.update(this.displayLogoValue)}ngOnDestroy(){this.clear()}clear(){this.displayLogoValue=!0,this.update(!0)}update(e){this.libService.displayLogo.getValue()!==e&&this.libService.displayLogo.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","toolbarDisplayLogo",""],["ov-toolbar","displayLogo",""]],inputs:{toolbarDisplayLogo:"toolbarDisplayLogo",displayLogo:"displayLogo"}}),t})(),Kie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set minimal(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!1)}update(e){this.libService.minimal.getValue()!==e&&this.libService.minimal.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","minimal",""]],inputs:{minimal:"minimal"}}),t})(),Zie=(()=>{class t{constructor(e,i){this.elementRef=e,this.translateService=i}set lang(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update("en")}update(e){this.translateService.setLanguage(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ss))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","lang",""]],inputs:{lang:"lang"}}),t})(),Xie=(()=>{class t{constructor(e,i){this.elementRef=e,this.captionService=i}set captionsLang(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update("en-US")}update(e){this.captionService.setLanguage(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(ed))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","captionsLang",""]],inputs:{captionsLang:"captionsLang"}}),t})(),Jie=(()=>{class t{constructor(e,i){this.elementRef=e,this.captionService=i}set captionsLangOptions(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(void 0)}update(e){this.captionService.setLanguageOptions(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(ed))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","captionsLangOptions",""]],inputs:{captionsLangOptions:"captionsLangOptions"}}),t})(),eoe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}ngOnInit(){this.update(this.participantName)}ngOnDestroy(){this.clear()}clear(){this.update("")}update(e){this.libService.participantName.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","participantName",""]],inputs:{participantName:"participantName"}}),t})(),toe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set prejoin(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!0)}update(e){this.libService.prejoin.getValue()!==e&&this.libService.prejoin.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","prejoin",""]],inputs:{prejoin:"prejoin"}}),t})(),noe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set videoMuted(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!1)}update(e){this.libService.videoMuted.getValue()!==e&&this.libService.videoMuted.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","videoMuted",""]],inputs:{videoMuted:"videoMuted"}}),t})(),ioe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set audioMuted(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!1)}update(e){this.libService.audioMuted.getValue()!==e&&this.libService.audioMuted.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(Ft))},t.\u0275dir=ge({type:t,selectors:[["ov-videoconference","audioMuted",""]],inputs:{audioMuted:"audioMuted"}}),t})(),wP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})(),DP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({}),t})(),ooe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({imports:[uM,UO,KZ,RK,vW,rQ,fp,cq,WW,LK,JZ,mZ,Ob,wW,uX,gY,vI,MK,MY,g1,ZK,kZ,WZ]}),t})(),roe=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[Ft,{provide:"OPENVIDU_ANGULAR_CONFIG",useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[Cr,dy,{provide:Al,useClass:dy},Tie,yp,vo,tc,fP,ma,or,ec,wi,Bo,_o,td],imports:[zi,OG,Pz,kz,K6.forRoot([]),ooe,DP,wP,zi,DP,wP]}),t})();function soe(t,n){if(1&t){const e=ht();L(0,"ov-videoconference",1),we("onJoinButtonClicked",function(){return Be(e),Ve(re()._onJoinButtonClicked())})("onToolbarLeaveButtonClicked",function(){return Be(e),Ve(re()._onToolbarLeaveButtonClicked())})("onToolbarCameraButtonClicked",function(){return Be(e),Ve(re()._onToolbarCameraButtonClicked())})("onToolbarMicrophoneButtonClicked",function(){return Be(e),Ve(re()._onToolbarMicrophoneButtonClicked())})("onToolbarScreenshareButtonClicked",function(){return Be(e),Ve(re()._onToolbarScreenshareButtonClicked())})("onToolbarParticipantsPanelButtonClicked",function(){return Be(e),Ve(re()._onToolbarParticipantsPanelButtonClicked())})("onToolbarChatPanelButtonClicked",function(){return Be(e),Ve(re()._onToolbarChatPanelButtonClicked())})("onToolbarActivitiesPanelButtonClicked",function(){return Be(e),Ve(re()._onToolbarActivitiesPanelButtonClicked())})("onToolbarFullscreenButtonClicked",function(){return Be(e),Ve(re()._onToolbarFullscreenButtonClicked())})("onToolbarStartRecordingClicked",function(){return Be(e),Ve(re().onStartRecordingClicked("toolbar"))})("onToolbarStopRecordingClicked",function(){return Be(e),Ve(re().onStopRecordingClicked("toolbar"))})("onActivitiesPanelStartRecordingClicked",function(){return Be(e),Ve(re().onStartRecordingClicked("panel"))})("onActivitiesPanelStopRecordingClicked",function(){return Be(e),Ve(re().onStopRecordingClicked("panel"))})("onActivitiesPanelDownloadRecordingClicked",function(o){return Be(e),Ve(re()._onActivitiesDownloadRecordingClicked(o))})("onActivitiesPanelDeleteRecordingClicked",function(o){return Be(e),Ve(re()._onActivitiesDeleteRecordingClicked(o))})("onSessionCreated",function(o){return Be(e),Ve(re()._onSessionCreated(o))})("onParticipantCreated",function(o){return Be(e),Ve(re()._onParticipantCreated(o))}),z()}if(2&t){const e=re();q("participantName",e._participantName)("tokens",e._tokens)("minimal",e._minimal)("lang",e._lang)("captionsLang",e._captionsLang)("captionsLangOptions",e._captionsLangOptions)("prejoin",e._prejoin)("videoMuted",e._videoMuted)("audioMuted",e._audioMuted)("toolbarScreenshareButton",e._toolbarScreenshareButton)("toolbarRecordingButton",e._toolbarRecordingButton)("toolbarFullscreenButton",e._toolbarFullscreenButton)("toolbarBackgroundEffectsButton",e._toolbarBackgroundEffectsButton)("toolbarSettingsButton",e._toolbarSettingsButton)("toolbarLeaveButton",e._toolbarLeaveButton)("toolbarActivitiesPanelButton",e._toolbarActivitiesPanelButton)("toolbarChatPanelButton",e._toolbarChatPanelButton)("toolbarParticipantsPanelButton",e._toolbarParticipantsPanelButton)("toolbarDisplayLogo",e._toolbarDisplayLogo)("toolbarDisplaySessionName",e._toolbarDisplaySessionName)("toolbarCaptionsButton",e._toolbarCaptionsButton)("streamDisplayParticipantName",e._streamDisplayParticipantName)("streamDisplayAudioDetection",e._streamDisplayAudioDetection)("streamSettingsButton",e._streamSettingsButton)("participantPanelItemMuteButton",e._participantPanelItemMuteButton)("activitiesPanelRecordingActivity",e._activitiesPanelRecordingActivity)("recordingActivityRecordingsList",e._recordingActivityRecordingsList)("recordingActivityRecordingError",e._recordingActivityRecordingError)}}let aoe=(()=>{class t{constructor(e,i){this.host=e,this.openviduService=i,this._minimal=!1,this._lang="",this._captionsLang="",this._prejoin=!0,this._videoMuted=!1,this._audioMuted=!1,this._toolbarScreenshareButton=!0,this._toolbarRecordingButton=!0,this._toolbarFullscreenButton=!0,this._toolbarBackgroundEffectsButton=!0,this._toolbarSettingsButton=!0,this._toolbarLeaveButton=!0,this._toolbarChatPanelButton=!0,this._toolbarActivitiesPanelButton=!0,this._toolbarParticipantsPanelButton=!0,this._toolbarDisplayLogo=!0,this._toolbarDisplaySessionName=!0,this._toolbarCaptionsButton=!0,this._streamDisplayParticipantName=!0,this._streamDisplayAudioDetection=!0,this._streamSettingsButton=!0,this._participantPanelItemMuteButton=!0,this._recordingActivityRecordingError=null,this._activitiesPanelRecordingActivity=!0,this._recordingActivityRecordingsList=[],this.onJoinButtonClicked=new De,this.onToolbarLeaveButtonClicked=new De,this.onToolbarCameraButtonClicked=new De,this.onToolbarMicrophoneButtonClicked=new De,this.onToolbarScreenshareButtonClicked=new De,this.onToolbarFullscreenButtonClicked=new De,this.onToolbarParticipantsPanelButtonClicked=new De,this.onToolbarChatPanelButtonClicked=new De,this.onToolbarActivitiesPanelButtonClicked=new De,this.onToolbarStartRecordingClicked=new De,this.onToolbarStopRecordingClicked=new De,this.onActivitiesPanelStartRecordingClicked=new De,this.onActivitiesPanelStopRecordingClicked=new De,this.onActivitiesPanelDownloadRecordingClicked=new De,this.onActivitiesPanelDeleteRecordingClicked=new De,this.onSessionCreated=new De,this.onParticipantCreated=new De,this.success=!1,this.host.nativeElement.disconnect=this.disconnect.bind(this)}set minimal(e){this._minimal=this.castToBoolean(e)}set lang(e){this._lang=e}set captionsLang(e){this._captionsLang=e}set captionsLangOptions(e){this._captionsLangOptions=this.castToArray(e)}set participantName(e){this._participantName=e}set prejoin(e){this._prejoin=this.castToBoolean(e)}set videoMuted(e){this._videoMuted=this.castToBoolean(e)}set audioMuted(e){this._audioMuted=this.castToBoolean(e)}set toolbarScreenshareButton(e){this._toolbarScreenshareButton=this.castToBoolean(e)}set toolbarRecordingButton(e){this._toolbarRecordingButton=this.castToBoolean(e)}set toolbarFullscreenButton(e){this._toolbarFullscreenButton=this.castToBoolean(e)}set toolbarBackgroundEffectsButton(e){this._toolbarBackgroundEffectsButton=this.castToBoolean(e)}set toolbarSettingsButton(e){this._toolbarSettingsButton=this.castToBoolean(e)}set toolbarLeaveButton(e){this._toolbarLeaveButton=this.castToBoolean(e)}set toolbarChatPanelButton(e){this._toolbarChatPanelButton=this.castToBoolean(e)}set toolbarActivitiesPanelButton(e){this._toolbarActivitiesPanelButton=this.castToBoolean(e)}set toolbarParticipantsPanelButton(e){this._toolbarParticipantsPanelButton=this.castToBoolean(e)}set toolbarDisplayLogo(e){this._toolbarDisplayLogo=this.castToBoolean(e)}set toolbarDisplaySessionName(e){this._toolbarDisplaySessionName=this.castToBoolean(e)}set toolbarCaptionsButton(e){this._toolbarCaptionsButton=this.castToBoolean(e)}set streamDisplayParticipantName(e){this._streamDisplayParticipantName=this.castToBoolean(e)}set streamDisplayAudioDetection(e){this._streamDisplayAudioDetection=this.castToBoolean(e)}set streamSettingsButton(e){this._streamSettingsButton=this.castToBoolean(e)}set participantPanelItemMuteButton(e){this._participantPanelItemMuteButton=this.castToBoolean(e)}set recordingActivityRecordingError(e){this._recordingActivityRecordingError=e}set activitiesPanelRecordingActivity(e){this._activitiesPanelRecordingActivity=this.castToBoolean(e)}set recordingActivityRecordingsList(e){this._recordingActivityRecordingsList=e}ngOnInit(){}set tokens(e){var i,o;try{this._tokens=this.castToJson(e),this.success=!(null===(i=this._tokens)||void 0===i||!i.webcam||null===(o=this._tokens)||void 0===o||!o.screen)}catch(r){"string"==typeof e&&""!==e?(console.debug("Single token received."),this._tokens={webcam:e},this.success=!0):(console.error(r),console.error("Tokens parameter received is incorrect: ",e),console.error("Session cannot start"))}}_onJoinButtonClicked(){this.onJoinButtonClicked.emit()}_onToolbarLeaveButtonClicked(){this.success=!1,this.onToolbarLeaveButtonClicked.emit()}_onToolbarCameraButtonClicked(){this.onToolbarCameraButtonClicked.emit()}_onToolbarMicrophoneButtonClicked(){this.onToolbarMicrophoneButtonClicked.emit()}_onToolbarScreenshareButtonClicked(){this.onToolbarScreenshareButtonClicked.emit()}_onToolbarParticipantsPanelButtonClicked(){this.onToolbarParticipantsPanelButtonClicked.emit()}_onToolbarChatPanelButtonClicked(){this.onToolbarChatPanelButtonClicked.emit()}_onToolbarActivitiesPanelButtonClicked(){this.onToolbarActivitiesPanelButtonClicked.emit()}_onToolbarFullscreenButtonClicked(){this.onToolbarFullscreenButtonClicked.emit()}onStartRecordingClicked(e){"toolbar"===e?this.onToolbarStartRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStartRecordingClicked.emit()}onStopRecordingClicked(e){"toolbar"===e?this.onToolbarStopRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStopRecordingClicked.emit()}_onActivitiesDownloadRecordingClicked(e){this.onActivitiesPanelDownloadRecordingClicked.emit(e)}_onActivitiesDeleteRecordingClicked(e){this.onActivitiesPanelDeleteRecordingClicked.emit(e)}_onSessionCreated(e){this.onSessionCreated.emit(e)}_onParticipantCreated(e){this.onParticipantCreated.emit(e)}disconnect(){this.openviduService.disconnect()}castToBoolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"!==e&&"false"!==e)throw new Error("Parameter has an incorrect string value.");return"true"===e}throw new Error("Parameter has not a valid type. The parameters must to be string or boolean.")}castToJson(e){if("string"!=typeof e){if("object"==typeof e)return e;throw new Error("Parameter has not a valid type. The parameters must to be string or TokenModel {webcam:string, screen: string}.")}try{return JSON.parse(e)}catch(i){throw"Unexpected JSON"+i}}castToArray(e){if("string"!=typeof e){if("object"==typeof e&&e.length>0)return e;throw new Error("Parameter has not a valid type. The parameters must to be string or CaptionsLangOptions [] [{name:string, ISO: string}].")}try{return JSON.parse(e)}catch(i){throw"Unexpected JSON"+i}}}return t.\u0275fac=function(e){return new(e||t)(h(Pe),h(_o))},t.\u0275cmp=et({type:t,selectors:[["ng-component"]],inputs:{minimal:"minimal",lang:"lang",captionsLang:"captionsLang",captionsLangOptions:"captionsLangOptions",participantName:"participantName",prejoin:"prejoin",videoMuted:"videoMuted",audioMuted:"audioMuted",toolbarScreenshareButton:"toolbarScreenshareButton",toolbarRecordingButton:"toolbarRecordingButton",toolbarFullscreenButton:"toolbarFullscreenButton",toolbarBackgroundEffectsButton:"toolbarBackgroundEffectsButton",toolbarSettingsButton:"toolbarSettingsButton",toolbarLeaveButton:"toolbarLeaveButton",toolbarChatPanelButton:"toolbarChatPanelButton",toolbarActivitiesPanelButton:"toolbarActivitiesPanelButton",toolbarParticipantsPanelButton:"toolbarParticipantsPanelButton",toolbarDisplayLogo:"toolbarDisplayLogo",toolbarDisplaySessionName:"toolbarDisplaySessionName",toolbarCaptionsButton:"toolbarCaptionsButton",streamDisplayParticipantName:"streamDisplayParticipantName",streamDisplayAudioDetection:"streamDisplayAudioDetection",streamSettingsButton:"streamSettingsButton",participantPanelItemMuteButton:"participantPanelItemMuteButton",recordingActivityRecordingError:"recordingActivityRecordingError",activitiesPanelRecordingActivity:"activitiesPanelRecordingActivity",recordingActivityRecordingsList:"recordingActivityRecordingsList",tokens:"tokens"},outputs:{onJoinButtonClicked:"onJoinButtonClicked",onToolbarLeaveButtonClicked:"onToolbarLeaveButtonClicked",onToolbarCameraButtonClicked:"onToolbarCameraButtonClicked",onToolbarMicrophoneButtonClicked:"onToolbarMicrophoneButtonClicked",onToolbarScreenshareButtonClicked:"onToolbarScreenshareButtonClicked",onToolbarFullscreenButtonClicked:"onToolbarFullscreenButtonClicked",onToolbarParticipantsPanelButtonClicked:"onToolbarParticipantsPanelButtonClicked",onToolbarChatPanelButtonClicked:"onToolbarChatPanelButtonClicked",onToolbarActivitiesPanelButtonClicked:"onToolbarActivitiesPanelButtonClicked",onToolbarStartRecordingClicked:"onToolbarStartRecordingClicked",onToolbarStopRecordingClicked:"onToolbarStopRecordingClicked",onActivitiesPanelStartRecordingClicked:"onActivitiesPanelStartRecordingClicked",onActivitiesPanelStopRecordingClicked:"onActivitiesPanelStopRecordingClicked",onActivitiesPanelDownloadRecordingClicked:"onActivitiesPanelDownloadRecordingClicked",onActivitiesPanelDeleteRecordingClicked:"onActivitiesPanelDeleteRecordingClicked",onSessionCreated:"onSessionCreated",onParticipantCreated:"onParticipantCreated"},decls:1,vars:1,consts:[[3,"participantName","tokens","minimal","lang","captionsLang","captionsLangOptions","prejoin","videoMuted","audioMuted","toolbarScreenshareButton","toolbarRecordingButton","toolbarFullscreenButton","toolbarBackgroundEffectsButton","toolbarSettingsButton","toolbarLeaveButton","toolbarActivitiesPanelButton","toolbarChatPanelButton","toolbarParticipantsPanelButton","toolbarDisplayLogo","toolbarDisplaySessionName","toolbarCaptionsButton","streamDisplayParticipantName","streamDisplayAudioDetection","streamSettingsButton","participantPanelItemMuteButton","activitiesPanelRecordingActivity","recordingActivityRecordingsList","recordingActivityRecordingError","onJoinButtonClicked","onToolbarLeaveButtonClicked","onToolbarCameraButtonClicked","onToolbarMicrophoneButtonClicked","onToolbarScreenshareButtonClicked","onToolbarParticipantsPanelButtonClicked","onToolbarChatPanelButtonClicked","onToolbarActivitiesPanelButtonClicked","onToolbarFullscreenButtonClicked","onToolbarStartRecordingClicked","onToolbarStopRecordingClicked","onActivitiesPanelStartRecordingClicked","onActivitiesPanelStopRecordingClicked","onActivitiesPanelDownloadRecordingClicked","onActivitiesPanelDeleteRecordingClicked","onSessionCreated","onParticipantCreated",4,"ngIf"],[3,"participantName","tokens","minimal","lang","captionsLang","captionsLangOptions","prejoin","videoMuted","audioMuted","toolbarScreenshareButton","toolbarRecordingButton","toolbarFullscreenButton","toolbarBackgroundEffectsButton","toolbarSettingsButton","toolbarLeaveButton","toolbarActivitiesPanelButton","toolbarChatPanelButton","toolbarParticipantsPanelButton","toolbarDisplayLogo","toolbarDisplaySessionName","toolbarCaptionsButton","streamDisplayParticipantName","streamDisplayAudioDetection","streamSettingsButton","participantPanelItemMuteButton","activitiesPanelRecordingActivity","recordingActivityRecordingsList","recordingActivityRecordingError","onJoinButtonClicked","onToolbarLeaveButtonClicked","onToolbarCameraButtonClicked","onToolbarMicrophoneButtonClicked","onToolbarScreenshareButtonClicked","onToolbarParticipantsPanelButtonClicked","onToolbarChatPanelButtonClicked","onToolbarActivitiesPanelButtonClicked","onToolbarFullscreenButtonClicked","onToolbarStartRecordingClicked","onToolbarStopRecordingClicked","onActivitiesPanelStartRecordingClicked","onActivitiesPanelStopRecordingClicked","onActivitiesPanelDownloadRecordingClicked","onActivitiesPanelDeleteRecordingClicked","onSessionCreated","onParticipantCreated"]],template:function(e,i){1&e&&ne(0,soe,1,28,"ov-videoconference",0),2&e&&q("ngIf",i.success)},dependencies:[Jt,yy,Kie,Zie,Jie,Xie,toe,noe,ioe,Bie,jie,Uie,Hie,zie,Vie,qie,Wie,$ie,Yie,Qie,Gie,_P,Mie,bP,Nie,eoe,kie,Lie,Fie],encapsulation:2}),t})();const MP={production:!0};class loe extends le{constructor(n=1/0,e=1/0,i=t_){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;e||(i.push(n),!o&&i.push(r.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let s=0;s<r.length&&!n.closed;s+=i?1:2)n.next(r[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){const{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:o}=this,r=(o?1:2)*n;if(n<1/0&&r<i.length&&i.splice(0,i.length-r),!o){const s=e.now();let a=0;for(let l=1;l<i.length&&i[l]<=s;l+=2)a=l;a&&i.splice(0,a+1)}}}const Cp={schedule(t,n){const e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if("undefined"==typeof window)return Cp.schedule(t,0);if(void 0===window.requestAnimationFrame)return Cp.schedule(t,16);const n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};let Cy;function voe(t,n,e){let i=e;return function uoe(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&n.some((o,r)=>!("*"===o||!function hoe(t,n){if(!Cy){const e=Element.prototype;Cy=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&Cy.call(t,n)}(t,o)||(i=r,0))),i}class boe{constructor(n,e){this.componentFactory=e.get(xr).resolveComponentFactory(n)}create(n){return new yoe(this.componentFactory,n)}}class yoe{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new loe(1),this.events=this.eventEmitters.pipe(Ri(i=>ki(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(at),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Cp.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){this.runInZone(()=>{null!==this.componentRef?function foe(t,n){return t===n||t!=t&&n!=n}(e,this.getInputValue(n))&&(void 0!==e||!this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges()):this.initialInputValues.set(n,e)})}initializeComponent(n){const e=_n.create({providers:[],parent:this.injector}),i=function moe(t,n){const e=t.childNodes,i=n.map(()=>[]);let o=-1;n.some((r,s)=>"*"===r&&(o=s,!0));for(let r=0,s=e.length;r<s;++r){const a=e[r],l=voe(a,n,o);-1!==l&&i[l].push(a)}return i}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(Ut),this.implementsOnChanges=function doe(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Vs).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n))}),this.initialInputValues.clear()}initializeOutputs(n){const e=this.componentFactory.outputs.map(({propName:i,templateName:o})=>n.instance[i].pipe(Ue(s=>({name:o,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Cp.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[n];if(i)return void(i.currentValue=e);const o=this.unchangedInputs.has(n),r=o?void 0:this.getInputValue(n);this.inputChanges[n]=new Xy(r,e,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class Coe extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}let Soe=(()=>{class t{constructor(e){this.injector=e}ngDoBootstrap(){const e=function Eoe(t,n){const e=function goe(t,n){return n.get(xr).resolveComponentFactory(t).inputs}(t,n.injector),i=n.strategyFactory||new boe(t,n.injector),o=function poe(t){const n={};return t.forEach(({propName:e,templateName:i})=>{n[function coe(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(i)]=e}),n}(e);class r extends Coe{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(o[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return r.observedAttributes=Object.keys(o),e.forEach(({propName:s})=>{Object.defineProperty(r.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),r}(aoe,{injector:this.injector});customElements.define("openvidu-webcomponent",e)}}return t.\u0275fac=function(e){return new(e||t)(ie(_n))},t.\u0275mod=st({type:t}),t.\u0275inj=rt({providers:[{provide:iv,useValue:"/"},yy],imports:[zi,vD,uM,roe.forRoot(MP)]}),t})();MP.production&&function B3(){gw=!1}(),iU().bootstrapModule(Soe).catch(t=>console.error(t))},9272:Ce=>{"use strict";Ce.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"]')},6410:Ce=>{"use strict";Ce.exports=[]},9469:Ce=>{"use strict";Ce.exports=JSON.parse('{"author":"OpenVidu","dependencies":{"freeice":"2.2.2","hark":"1.2.3","jsnlog":"2.30.0","mime":"3.0.0","platform":"1.3.6","semver":"7.3.8","uuid":"9.0.0","wolfy87-eventemitter":"5.2.9","events":"3.3.0","inherits":"2.0.4"},"description":"OpenVidu Browser","devDependencies":{"@types/node":"18.11.9","@types/platform":"1.3.4","browserify":"17.0.0","grunt":"1.5.3","grunt-cli":"1.4.3","grunt-contrib-copy":"1.0.0","grunt-contrib-sass":"2.0.0","grunt-contrib-uglify":"5.2.2","grunt-contrib-watch":"1.1.0","grunt-postcss":"0.9.0","grunt-string-replace":"1.3.3","grunt-ts":"6.0.0-beta.22","terser":"5.15.1","tsify":"5.0.4","tslint":"6.1.3","typedoc":"0.23.21","typescript":"4.9.3"},"license":"Apache-2.0","main":"lib/index.js","name":"openvidu-browser","repository":{"type":"git","url":"git://github.com/OpenVidu/openvidu"},"scripts":{"browserify":"VERSION=${VERSION:-dev}; mkdir -p static/js/ && cd src && ../node_modules/browserify/bin/cmd.js Main.ts -p [ tsify ] --exclude kurento-browser-extensions --debug -o ../static/js/openvidu-browser-$VERSION.js -v","browserify-prod":"VERSION=${VERSION:-dev}; mkdir -p static/js/ && cd src && ../node_modules/browserify/bin/cmd.js --debug Main.ts -p [ tsify ] --exclude kurento-browser-extensions | ../node_modules/terser/bin/terser --source-map content=inline --output ../static/js/openvidu-browser-$VERSION.min.js","build":"cd src/OpenVidu && ./../../node_modules/typescript/bin/tsc && cd ../.. && ./node_modules/typescript/bin/tsc --declaration src/index.ts --outDir ./lib --sourceMap --target es5 --lib dom,es5,es2015.promise,scripthost && rm -rf ./ts4.4 && mkdir -p ./ts4.4/lib && cp -r ./lib ./ts4.4 && find ./ts4.4/lib -type f ! -iname \'*.d.ts\' -delete && ./config/replace_for_ts44.sh","docs":"./generate-docs.sh"},"types":"lib/index.d.ts","typesVersions":{"<4.4":{"*":["ts4.4/*"]}},"version":"2.25.0"}')}},Ce=>{Ce(Ce.s=3749)}]);
"use strict";(self.webpackChunkopenvidu_webcomponent=self.webpackChunkopenvidu_webcomponent||[]).push([[429],{7435:(Ee,Pe,we)=>{we(609)},609:(Ee,Pe,we)=>{var De;void 0!==(De=function(){!function(e){var r=e.performance;function t(h){r&&r.mark&&r.mark(h)}function n(h,a){r&&r.measure&&r.measure(h,a)}t("Zone");var u=e.__Zone_symbol_prefix||"__zone_symbol__";function c(h){return u+h}var l=!0===e[c("forceDuplicateZoneCheck")];if(e.Zone){if(l||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var v=function(){function h(a,o){this._parent=a,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,o)}return h.assertZonePatched=function(){if(e.Promise!==F.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(h,"root",{get:function(){for(var a=h.current;a.parent;)a=a.parent;return a},enumerable:!1,configurable:!0}),Object.defineProperty(h,"current",{get:function(){return A.zone},enumerable:!1,configurable:!0}),Object.defineProperty(h,"currentTask",{get:function(){return ie},enumerable:!1,configurable:!0}),h.__load_patch=function(a,o,i){if(void 0===i&&(i=!1),F.hasOwnProperty(a)){if(!i&&l)throw Error("Already loaded patch: "+a)}else if(!e["__Zone_disable_"+a]){var P="Zone:"+a;t(P),F[a]=o(e,h,w),n(P,P)}},Object.defineProperty(h.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),h.prototype.get=function(a){var o=this.getZoneWith(a);if(o)return o._properties[a]},h.prototype.getZoneWith=function(a){for(var o=this;o;){if(o._properties.hasOwnProperty(a))return o;o=o._parent}return null},h.prototype.fork=function(a){if(!a)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,a)},h.prototype.wrap=function(a,o){if("function"!=typeof a)throw new Error("Expecting function got: "+a);var i=this._zoneDelegate.intercept(this,a,o),P=this;return function(){return P.runGuarded(i,this,arguments,o)}},h.prototype.run=function(a,o,i,P){A={parent:A,zone:this};try{return this._zoneDelegate.invoke(this,a,o,i,P)}finally{A=A.parent}},h.prototype.runGuarded=function(a,o,i,P){void 0===o&&(o=null),A={parent:A,zone:this};try{try{return this._zoneDelegate.invoke(this,a,o,i,P)}catch(z){if(this._zoneDelegate.handleError(this,z))throw z}}finally{A=A.parent}},h.prototype.runTask=function(a,o,i){if(a.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");if(a.state!==j||a.type!==R&&a.type!==Y){var P=a.state!=k;P&&a._transitionTo(k,U),a.runCount++;var z=ie;ie=a,A={parent:A,zone:this};try{a.type==Y&&a.data&&!a.data.isPeriodic&&(a.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,a,o,i)}catch(se){if(this._zoneDelegate.handleError(this,se))throw se}}finally{a.state!==j&&a.state!==I&&(a.type==R||a.data&&a.data.isPeriodic?P&&a._transitionTo(U,k):(a.runCount=0,this._updateTaskCount(a,-1),P&&a._transitionTo(j,k,j))),A=A.parent,ie=z}}},h.prototype.scheduleTask=function(a){if(a.zone&&a.zone!==this)for(var o=this;o;){if(o===a.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+a.zone.name);o=o.parent}a._transitionTo(V,j);var i=[];a._zoneDelegates=i,a._zone=this;try{a=this._zoneDelegate.scheduleTask(this,a)}catch(P){throw a._transitionTo(I,V,j),this._zoneDelegate.handleError(this,P),P}return a._zoneDelegates===i&&this._updateTaskCount(a,1),a.state==V&&a._transitionTo(U,V),a},h.prototype.scheduleMicroTask=function(a,o,i,P){return this.scheduleTask(new p(ee,a,o,i,P,void 0))},h.prototype.scheduleMacroTask=function(a,o,i,P,z){return this.scheduleTask(new p(Y,a,o,i,P,z))},h.prototype.scheduleEventTask=function(a,o,i,P,z){return this.scheduleTask(new p(R,a,o,i,P,z))},h.prototype.cancelTask=function(a){if(a.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");a._transitionTo($,U,k);try{this._zoneDelegate.cancelTask(this,a)}catch(o){throw a._transitionTo(I,$),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(a,-1),a._transitionTo(j,$),a.runCount=0,a},h.prototype._updateTaskCount=function(a,o){var i=a._zoneDelegates;-1==o&&(a._zoneDelegates=null);for(var P=0;P<i.length;P++)i[P]._updateTaskCount(a.type,o)},h}();v.__symbol__=c;var X,T={name:"",onHasTask:function(h,a,o,i){return h.hasTask(o,i)},onScheduleTask:function(h,a,o,i){return h.scheduleTask(o,i)},onInvokeTask:function(h,a,o,i,P,z){return h.invokeTask(o,i,P,z)},onCancelTask:function(h,a,o,i){return h.cancelTask(o,i)}},d=function(){function h(a,o,i){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=a,this._parentDelegate=o,this._forkZS=i&&(i&&i.onFork?i:o._forkZS),this._forkDlgt=i&&(i.onFork?o:o._forkDlgt),this._forkCurrZone=i&&(i.onFork?this.zone:o._forkCurrZone),this._interceptZS=i&&(i.onIntercept?i:o._interceptZS),this._interceptDlgt=i&&(i.onIntercept?o:o._interceptDlgt),this._interceptCurrZone=i&&(i.onIntercept?this.zone:o._interceptCurrZone),this._invokeZS=i&&(i.onInvoke?i:o._invokeZS),this._invokeDlgt=i&&(i.onInvoke?o:o._invokeDlgt),this._invokeCurrZone=i&&(i.onInvoke?this.zone:o._invokeCurrZone),this._handleErrorZS=i&&(i.onHandleError?i:o._handleErrorZS),this._handleErrorDlgt=i&&(i.onHandleError?o:o._handleErrorDlgt),this._handleErrorCurrZone=i&&(i.onHandleError?this.zone:o._handleErrorCurrZone),this._scheduleTaskZS=i&&(i.onScheduleTask?i:o._scheduleTaskZS),this._scheduleTaskDlgt=i&&(i.onScheduleTask?o:o._scheduleTaskDlgt),this._scheduleTaskCurrZone=i&&(i.onScheduleTask?this.zone:o._scheduleTaskCurrZone),this._invokeTaskZS=i&&(i.onInvokeTask?i:o._invokeTaskZS),this._invokeTaskDlgt=i&&(i.onInvokeTask?o:o._invokeTaskDlgt),this._invokeTaskCurrZone=i&&(i.onInvokeTask?this.zone:o._invokeTaskCurrZone),this._cancelTaskZS=i&&(i.onCancelTask?i:o._cancelTaskZS),this._cancelTaskDlgt=i&&(i.onCancelTask?o:o._cancelTaskDlgt),this._cancelTaskCurrZone=i&&(i.onCancelTask?this.zone:o._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var P=i&&i.onHasTask;(P||o&&o._hasTaskZS)&&(this._hasTaskZS=P?i:T,this._hasTaskDlgt=o,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=a,i.onScheduleTask||(this._scheduleTaskZS=T,this._scheduleTaskDlgt=o,this._scheduleTaskCurrZone=this.zone),i.onInvokeTask||(this._invokeTaskZS=T,this._invokeTaskDlgt=o,this._invokeTaskCurrZone=this.zone),i.onCancelTask||(this._cancelTaskZS=T,this._cancelTaskDlgt=o,this._cancelTaskCurrZone=this.zone))}return h.prototype.fork=function(a,o){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,a,o):new v(a,o)},h.prototype.intercept=function(a,o,i){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,a,o,i):o},h.prototype.invoke=function(a,o,i,P,z){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,a,o,i,P,z):o.apply(i,P)},h.prototype.handleError=function(a,o){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,a,o)},h.prototype.scheduleTask=function(a,o){var i=o;if(this._scheduleTaskZS)this._hasTaskZS&&i._zoneDelegates.push(this._hasTaskDlgtOwner),(i=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,a,o))||(i=o);else if(o.scheduleFn)o.scheduleFn(o);else{if(o.type!=ee)throw new Error("Task is missing scheduleFn.");g(o)}return i},h.prototype.invokeTask=function(a,o,i,P){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,a,o,i,P):o.callback.apply(i,P)},h.prototype.cancelTask=function(a,o){var i;if(this._cancelTaskZS)i=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,a,o);else{if(!o.cancelFn)throw Error("Task is not cancelable");i=o.cancelFn(o)}return i},h.prototype.hasTask=function(a,o){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,a,o)}catch(i){this.handleError(a,i)}},h.prototype._updateTaskCount=function(a,o){var i=this._taskCounts,P=i[a],z=i[a]=P+o;if(z<0)throw new Error("More tasks executed then were scheduled.");0!=P&&0!=z||this.hasTask(this.zone,{microTask:i.microTask>0,macroTask:i.macroTask>0,eventTask:i.eventTask>0,change:a})},h}(),p=function(){function h(a,o,i,P,z,se){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=a,this.source=o,this.data=P,this.scheduleFn=z,this.cancelFn=se,!i)throw new Error("callback is not defined");this.callback=i;var f=this;this.invoke=a===R&&P&&P.useG?h.invokeTask:function(){return h.invokeTask.call(e,f,this,arguments)}}return h.invokeTask=function(a,o,i){a||(a=this),ne++;try{return a.runCount++,a.zone.runTask(a,o,i)}finally{1==ne&&m(),ne--}},Object.defineProperty(h.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),h.prototype.cancelScheduleRequest=function(){this._transitionTo(j,V)},h.prototype._transitionTo=function(a,o,i){if(this._state!==o&&this._state!==i)throw new Error(this.type+" '"+this.source+"': can not transition to '"+a+"', expecting state '"+o+"'"+(i?" or '"+i+"'":"")+", was '"+this._state+"'.");this._state=a,a==j&&(this._zoneDelegates=null)},h.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},h.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},h}(),y=c("setTimeout"),b=c("Promise"),O=c("then"),N=[],M=!1;function g(h){if(0===ne&&0===N.length)if(X||e[b]&&(X=e[b].resolve(0)),X){var a=X[O];a||(a=X.then),a.call(X,m)}else e[y](m,0);h&&N.push(h)}function m(){if(!M){for(M=!0;N.length;){var h=N;N=[];for(var a=0;a<h.length;a++){var o=h[a];try{o.zone.runTask(o,null,null)}catch(i){w.onUnhandledError(i)}}}w.microtaskDrainDone(),M=!1}}var B={name:"NO ZONE"},j="notScheduled",V="scheduling",U="scheduled",k="running",$="canceling",I="unknown",ee="microTask",Y="macroTask",R="eventTask",F={},w={symbol:c,currentZoneFrame:function(){return A},onUnhandledError:H,microtaskDrainDone:H,scheduleMicroTask:g,showUncaughtError:function(){return!v[c("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:H,patchMethod:function(){return H},bindArguments:function(){return[]},patchThen:function(){return H},patchMacroTask:function(){return H},patchEventPrototype:function(){return H},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return H},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return H},wrapWithCurrentZone:function(){return H},filterProperties:function(){return[]},attachOriginToPatched:function(){return H},_redefineProperty:function(){return H},patchCallbacks:function(){return H}},A={parent:null,zone:new v(null,null)},ie=null,ne=0;function H(){}n("Zone","Zone"),e.Zone=v}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);var Oe=Object.getOwnPropertyDescriptor,xe=Object.defineProperty,Be=Object.getPrototypeOf,Pr=Object.create,wr=Array.prototype.slice,Fe="addEventListener",Ge="removeEventListener",Ve=Zone.__symbol__(Fe),Ue=Zone.__symbol__(Ge),fe="true",le="false",Se=Zone.__symbol__("");function ze(e,r){return Zone.current.wrap(e,r)}function We(e,r,t,n,u){return Zone.current.scheduleMacroTask(e,r,t,n,u)}var G=Zone.__symbol__,Ze="undefined"!=typeof window,ye=Ze?window:void 0,J=Ze&&ye||"object"==typeof self&&self||global,Sr=[null];function Xe(e,r){for(var t=e.length-1;t>=0;t--)"function"==typeof e[t]&&(e[t]=ze(e[t],r+"_"+t));return e}function rr(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var tr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Ne=!("nw"in J)&&void 0!==J.process&&"[object process]"==={}.toString.call(J.process),qe=!Ne&&!tr&&!(!Ze||!ye.HTMLElement),nr=void 0!==J.process&&"[object process]"==={}.toString.call(J.process)&&!tr&&!(!Ze||!ye.HTMLElement),Le={},or=function(e){if(e=e||J.event){var r=Le[e.type];r||(r=Le[e.type]=G("ON_PROPERTY"+e.type));var u,t=this||e.target||J,n=t[r];return qe&&t===ye&&"error"===e.type?!0===(u=n&&n.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null!=(u=n&&n.apply(this,arguments))&&!u&&e.preventDefault(),u}};function ar(e,r,t){var n=Oe(e,r);if(!n&&t&&Oe(t,r)&&(n={enumerable:!0,configurable:!0}),n&&n.configurable){var c=G("on"+r+"patched");if(!e.hasOwnProperty(c)||!e[c]){delete n.writable,delete n.value;var l=n.get,v=n.set,T=r.substr(2),d=Le[T];d||(d=Le[T]=G("ON_PROPERTY"+T)),n.set=function(p){var y=this;!y&&e===J&&(y=J),y&&(y[d]&&y.removeEventListener(T,or),v&&v.apply(y,Sr),"function"==typeof p?(y[d]=p,y.addEventListener(T,or,!1)):y[d]=null)},n.get=function(){var p=this;if(!p&&e===J&&(p=J),!p)return null;var y=p[d];if(y)return y;if(l){var b=l&&l.call(this);if(b)return n.set.call(this,b),"function"==typeof p.removeAttribute&&p.removeAttribute(r),b}return null},xe(e,r,n),e[c]=!0}}}function ir(e,r,t){if(r)for(var n=0;n<r.length;n++)ar(e,"on"+r[n],t);else{var u=[];for(var c in e)"on"==c.substr(0,2)&&u.push(c);for(var l=0;l<u.length;l++)ar(e,u[l],t)}}var ue=G("originalInstance");function Re(e){var r=J[e];if(r){J[G(e)]=r,J[e]=function(){var u=Xe(arguments,e);switch(u.length){case 0:this[ue]=new r;break;case 1:this[ue]=new r(u[0]);break;case 2:this[ue]=new r(u[0],u[1]);break;case 3:this[ue]=new r(u[0],u[1],u[2]);break;case 4:this[ue]=new r(u[0],u[1],u[2],u[3]);break;default:throw new Error("Arg list too long.")}},he(J[e],r);var n,t=new r(function(){});for(n in t)"XMLHttpRequest"===e&&"responseBlob"===n||function(u){"function"==typeof t[u]?J[e].prototype[u]=function(){return this[ue][u].apply(this[ue],arguments)}:xe(J[e].prototype,u,{set:function(c){"function"==typeof c?(this[ue][u]=ze(c,e+"."+u),he(this[ue][u],c)):this[ue][u]=c},get:function(){return this[ue][u]}})}(n);for(n in r)"prototype"!==n&&r.hasOwnProperty(n)&&(J[e][n]=r[n])}}function ve(e,r,t){for(var n=e;n&&!n.hasOwnProperty(r);)n=Be(n);!n&&e[r]&&(n=e);var u=G(r),c=null;if(n&&(!(c=n[u])||!n.hasOwnProperty(u))&&(c=n[u]=n[r],rr(n&&Oe(n,r)))){var v=t(c,u,r);n[r]=function(){return v(this,arguments)},he(n[r],c)}return c}function Cr(e,r,t){var n=null;function u(c){var l=c.data;return l.args[l.cbIdx]=function(){c.invoke.apply(this,arguments)},n.apply(l.target,l.args),c}n=ve(e,r,function(c){return function(l,v){var T=t(l,v);return T.cbIdx>=0&&"function"==typeof v[T.cbIdx]?We(T.name,v[T.cbIdx],T,u):c.apply(l,v)}})}function he(e,r){e[G("OriginalDelegate")]=r}var sr=!1,Ye=!1;function Zr(){if(sr)return Ye;sr=!0;try{var e=ye.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ye=!0)}catch(r){}return Ye}Zone.__load_patch("ZoneAwarePromise",function(e,r,t){var n=Object.getOwnPropertyDescriptor,u=Object.defineProperty;var l=t.symbol,v=[],T=!0===e[l("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=l("Promise"),p=l("then");t.onUnhandledError=function(f){if(t.showUncaughtError()){var E=f&&f.rejection;E?console.error("Unhandled Promise rejection:",E instanceof Error?E.message:E,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",E,E instanceof Error?E.stack:void 0):console.error(f)}},t.microtaskDrainDone=function(){for(var f=function(){var E=v.shift();try{E.zone.runGuarded(function(){throw E.throwOriginal?E.rejection:E})}catch(s){!function O(f){t.onUnhandledError(f);try{var E=r[b];"function"==typeof E&&E.call(this,f)}catch(s){}}(s)}};v.length;)f()};var b=l("unhandledPromiseRejectionHandler");function N(f){return f&&f.then}function M(f){return f}function X(f){return o.reject(f)}var g=l("state"),m=l("value"),B=l("finally"),j=l("parentPromiseValue"),V=l("parentPromiseState"),k=null,$=!0,I=!1;function Y(f,E){return function(s){try{A(f,E,s)}catch(_){A(f,!1,_)}}}var w=l("currentTaskTrace");function A(f,E,s){var _=function(){var f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}}();if(f===s)throw new TypeError("Promise resolved with itself");if(f[g]===k){var S=null;try{("object"==typeof s||"function"==typeof s)&&(S=s&&s.then)}catch(Z){return _(function(){A(f,!1,Z)})(),f}if(E!==I&&s instanceof o&&s.hasOwnProperty(g)&&s.hasOwnProperty(m)&&s[g]!==k)ne(s),A(f,s[g],s[m]);else if(E!==I&&"function"==typeof S)try{S.call(s,_(Y(f,E)),_(Y(f,!1)))}catch(Z){_(function(){A(f,!1,Z)})()}else{f[g]=E;var C=f[m];if(f[m]=s,f[B]===B&&E===$&&(f[g]=f[V],f[m]=f[j]),E===I&&s instanceof Error){var L=r.currentTask&&r.currentTask.data&&r.currentTask.data.__creationTrace__;L&&u(s,w,{configurable:!0,enumerable:!1,writable:!0,value:L})}for(var x=0;x<C.length;)H(f,C[x++],C[x++],C[x++],C[x++]);if(0==C.length&&E==I){f[g]=0;var D=s;try{throw new Error("Uncaught (in promise): "+function c(f){return f&&f.toString===Object.prototype.toString?(f.constructor&&f.constructor.name||"")+": "+JSON.stringify(f):f?f.toString():Object.prototype.toString.call(f)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(Z){D=Z}T&&(D.throwOriginal=!0),D.rejection=s,D.promise=f,D.zone=r.current,D.task=r.currentTask,v.push(D),t.scheduleMicroTask()}}}return f}var ie=l("rejectionHandledHandler");function ne(f){if(0===f[g]){try{var E=r[ie];E&&"function"==typeof E&&E.call(this,{rejection:f[m],promise:f})}catch(_){}f[g]=I;for(var s=0;s<v.length;s++)f===v[s].promise&&v.splice(s,1)}}function H(f,E,s,_,S){ne(f);var C=f[g],L=C?"function"==typeof _?_:M:"function"==typeof S?S:X;E.scheduleMicroTask("Promise.then",function(){try{var x=f[m],D=!!s&&B===s[B];D&&(s[j]=x,s[V]=C);var Z=E.run(L,void 0,D&&L!==X&&L!==M?[]:[x]);A(s,!0,Z)}catch(W){A(s,!1,W)}},s)}var a=function(){},o=function(){function f(E){var s=this;if(!(s instanceof f))throw new Error("Must be an instanceof Promise.");s[g]=k,s[m]=[];try{E&&E(Y(s,$),Y(s,I))}catch(_){A(s,!1,_)}}return f.toString=function(){return"function ZoneAwarePromise() { [native code] }"},f.resolve=function(E){return A(new this(null),$,E)},f.reject=function(E){return A(new this(null),I,E)},f.race=function(E){var s,_,S=new this(function(W,re){s=W,_=re});function C(W){s(W)}function L(W){_(W)}for(var x=0,D=E;x<D.length;x++){var Z=D[x];N(Z)||(Z=this.resolve(Z)),Z.then(C,L)}return S},f.all=function(E){return f.allWithCallback(E)},f.allSettled=function(E){return(this&&this.prototype instanceof f?this:f).allWithCallback(E,{thenCallback:function(_){return{status:"fulfilled",value:_}},errorCallback:function(_){return{status:"rejected",reason:_}}})},f.allWithCallback=function(E,s){for(var _,S,C=new this(function(K,Q){_=K,S=Q}),L=2,x=0,D=[],Z=function(K){N(K)||(K=W.resolve(K));var Q=x;try{K.then(function(oe){D[Q]=s?s.thenCallback(oe):oe,0==--L&&_(D)},function(oe){s?(D[Q]=s.errorCallback(oe),0==--L&&_(D)):S(oe)})}catch(oe){S(oe)}L++,x++},W=this,re=0,ce=E;re<ce.length;re++)Z(ce[re]);return 0==(L-=2)&&_(D),C},Object.defineProperty(f.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,Symbol.species,{get:function(){return f},enumerable:!1,configurable:!0}),f.prototype.then=function(E,s){var _=this.constructor[Symbol.species];(!_||"function"!=typeof _)&&(_=this.constructor||f);var S=new _(a),C=r.current;return this[g]==k?this[m].push(C,S,E,s):H(this,C,S,E,s),S},f.prototype.catch=function(E){return this.then(null,E)},f.prototype.finally=function(E){var s=this.constructor[Symbol.species];(!s||"function"!=typeof s)&&(s=f);var _=new s(a);_[B]=B;var S=r.current;return this[g]==k?this[m].push(S,_,E,E):H(this,S,_,E,E),_},f}();o.resolve=o.resolve,o.reject=o.reject,o.race=o.race,o.all=o.all;var i=e[d]=e.Promise;e.Promise=o;var P=l("thenPatched");function z(f){var E=f.prototype,s=n(E,"then");if(!s||!1!==s.writable&&s.configurable){var _=E.then;E[p]=_,f.prototype.then=function(S,C){var L=this;return new o(function(D,Z){_.call(L,D,Z)}).then(S,C)},f[P]=!0}}return t.patchThen=z,i&&(z(i),ve(e,"fetch",function(f){return function se(f){return function(E,s){var _=f.apply(E,s);if(_ instanceof o)return _;var S=_.constructor;return S[P]||z(S),_}}(f)})),Promise[r.__symbol__("uncaughtPromiseErrors")]=v,o}),Zone.__load_patch("toString",function(e){var r=Function.prototype.toString,t=G("OriginalDelegate"),n=G("Promise"),u=G("Error"),c=function(){if("function"==typeof this){var d=this[t];if(d)return"function"==typeof d?r.call(d):Object.prototype.toString.call(d);if(this===Promise){var p=e[n];if(p)return r.call(p)}if(this===Error){var y=e[u];if(y)return r.call(y)}}return r.call(this)};c[t]=r,Function.prototype.toString=c;var l=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":l.call(this)}});var me=!1;if("undefined"!=typeof window)try{var Me=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(e){me=!1}var Nr={useG:!0},ae={},ur={},cr=new RegExp("^"+Se+"(\\w+)(true|false)$"),Ke=G("propagationStopped");function fr(e,r){var t=(r?r(e):e)+le,n=(r?r(e):e)+fe,u=Se+t,c=Se+n;ae[e]={},ae[e][le]=u,ae[e][fe]=c}function Lr(e,r,t){var n=t&&t.add||Fe,u=t&&t.rm||Ge,c=t&&t.listeners||"eventListeners",l=t&&t.rmAll||"removeAllListeners",v=G(n),T="."+n+":",d="prependListener",y=function(g,m,B){if(!g.isRemoved){var j=g.callback;"object"==typeof j&&j.handleEvent&&(g.callback=function(k){return j.handleEvent(k)},g.originalDelegate=j),g.invoke(g,m,[B]);var V=g.options;V&&"object"==typeof V&&V.once&&m[u].call(m,B.type,g.originalDelegate?g.originalDelegate:g.callback,V)}},b=function(g){if(g=g||e.event){var m=this||g.target||e,B=m[ae[g.type][le]];if(B)if(1===B.length)y(B[0],m,g);else for(var j=B.slice(),V=0;V<j.length&&(!g||!0!==g[Ke]);V++)y(j[V],m,g)}},O=function(g){if(g=g||e.event){var m=this||g.target||e,B=m[ae[g.type][fe]];if(B)if(1===B.length)y(B[0],m,g);else for(var j=B.slice(),V=0;V<j.length&&(!g||!0!==g[Ke]);V++)y(j[V],m,g)}};function N(g,m){if(!g)return!1;var B=!0;m&&void 0!==m.useG&&(B=m.useG);var j=m&&m.vh,V=!0;m&&void 0!==m.chkDup&&(V=m.chkDup);var U=!1;m&&void 0!==m.rt&&(U=m.rt);for(var k=g;k&&!k.hasOwnProperty(n);)k=Be(k);if(!k&&g[n]&&(k=g),!k||k[v])return!1;var w,$=m&&m.eventNameToString,I={},ee=k[v]=k[n],Y=k[G(u)]=k[u],R=k[G(c)]=k[c],F=k[G(l)]=k[l];function A(s,_){return!me&&"object"==typeof s&&s?!!s.capture:me&&_?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}m&&m.prepend&&(w=k[G(m.prepend)]=k[m.prepend]);var o=B?function(s){if(!I.isExisting)return ee.call(I.target,I.eventName,I.capture?O:b,I.options)}:function(s){return ee.call(I.target,I.eventName,s.invoke,I.options)},i=B?function(s){if(!s.isRemoved){var _=ae[s.eventName],S=void 0;_&&(S=_[s.capture?fe:le]);var C=S&&s.target[S];if(C)for(var L=0;L<C.length;L++)if(C[L]===s){C.splice(L,1),s.isRemoved=!0,0===C.length&&(s.allRemoved=!0,s.target[S]=null);break}}if(s.allRemoved)return Y.call(s.target,s.eventName,s.capture?O:b,s.options)}:function(s){return Y.call(s.target,s.eventName,s.invoke,s.options)},z=m&&m.diff?m.diff:function(s,_){var S=typeof _;return"function"===S&&s.callback===_||"object"===S&&s.originalDelegate===_},se=Zone[G("UNPATCHED_EVENTS")],f=e[G("PASSIVE_EVENTS")],E=function(s,_,S,C,L,x){return void 0===L&&(L=!1),void 0===x&&(x=!1),function(){var D=this||e,Z=arguments[0];m&&m.transferEventName&&(Z=m.transferEventName(Z));var W=arguments[1];if(!W)return s.apply(this,arguments);if(Ne&&"uncaughtException"===Z)return s.apply(this,arguments);var re=!1;if("function"!=typeof W){if(!W.handleEvent)return s.apply(this,arguments);re=!0}if(!j||j(s,W,D,arguments)){var ce=me&&!!f&&-1!==f.indexOf(Z),te=A(arguments[2],ce);if(se)for(var K=0;K<se.length;K++)if(Z===se[K])return ce?s.call(D,Z,W,te):s.apply(this,arguments);var Q=!!te&&("boolean"==typeof te||te.capture),oe=!(!te||"object"!=typeof te)&&te.once,at=Zone.current,$e=ae[Z];$e||(fr(Z,$),$e=ae[Z]);var Tr=$e[Q?fe:le],ke=D[Tr],gr=!1;if(ke){if(gr=!0,V)for(K=0;K<ke.length;K++)if(z(ke[K],W))return}else ke=D[Tr]=[];var He,br=D.constructor.name,kr=ur[br];kr&&(He=kr[Z]),He||(He=br+_+($?$(Z):Z)),I.options=te,oe&&(I.options.once=!1),I.target=D,I.capture=Q,I.eventName=Z,I.isExisting=gr;var Ce=B?Nr:void 0;Ce&&(Ce.taskData=I);var _e=at.scheduleEventTask(He,W,Ce,S,C);if(I.target=null,Ce&&(Ce.taskData=null),oe&&(te.once=!0),!me&&"boolean"==typeof _e.options||(_e.options=te),_e.target=D,_e.capture=Q,_e.eventName=Z,re&&(_e.originalDelegate=W),x?ke.unshift(_e):ke.push(_e),L)return D}}};return k[n]=E(ee,T,o,i,U),w&&(k[d]=E(w,".prependListener:",function(s){return w.call(I.target,I.eventName,s.invoke,I.options)},i,U,!0)),k[u]=function(){var s=this||e,_=arguments[0];m&&m.transferEventName&&(_=m.transferEventName(_));var S=arguments[2],C=!!S&&("boolean"==typeof S||S.capture),L=arguments[1];if(!L)return Y.apply(this,arguments);if(!j||j(Y,L,s,arguments)){var D,x=ae[_];x&&(D=x[C?fe:le]);var Z=D&&s[D];if(Z)for(var W=0;W<Z.length;W++){var re=Z[W];if(z(re,L))return Z.splice(W,1),re.isRemoved=!0,0===Z.length&&(re.allRemoved=!0,s[D]=null,"string"==typeof _)&&(s[Se+"ON_PROPERTY"+_]=null),re.zone.cancelTask(re),U?s:void 0}return Y.apply(this,arguments)}},k[c]=function(){var s=this||e,_=arguments[0];m&&m.transferEventName&&(_=m.transferEventName(_));for(var S=[],C=lr(s,$?$(_):_),L=0;L<C.length;L++){var x=C[L];S.push(x.originalDelegate?x.originalDelegate:x.callback)}return S},k[l]=function(){var s=this||e,_=arguments[0];if(_){m&&m.transferEventName&&(_=m.transferEventName(_));var Z=ae[_];if(Z){var ce=s[Z[le]],te=s[Z[fe]];if(ce)for(var K=ce.slice(),C=0;C<K.length;C++)this[u].call(this,_,(Q=K[C]).originalDelegate?Q.originalDelegate:Q.callback,Q.options);if(te)for(K=te.slice(),C=0;C<K.length;C++){var Q;this[u].call(this,_,(Q=K[C]).originalDelegate?Q.originalDelegate:Q.callback,Q.options)}}}else{var S=Object.keys(s);for(C=0;C<S.length;C++){var x=cr.exec(S[C]),D=x&&x[1];D&&"removeListener"!==D&&this[l].call(this,D)}this[l].call(this,"removeListener")}if(U)return this},he(k[n],ee),he(k[u],Y),F&&he(k[l],F),R&&he(k[c],R),!0}for(var M=[],X=0;X<r.length;X++)M[X]=N(r[X],t);return M}function lr(e,r){if(!r){var t=[];for(var n in e){var u=cr.exec(n),c=u&&u[1];if(c&&(!r||c===r)){var l=e[n];if(l)for(var v=0;v<l.length;v++)t.push(l[v])}}return t}var T=ae[r];T||(fr(r),T=ae[r]);var d=e[T[le]],p=e[T[fe]];return d?p?d.concat(p):d.slice():p?p.slice():[]}function Mr(e,r){var t=e.Event;t&&t.prototype&&r.patchMethod(t.prototype,"stopImmediatePropagation",function(n){return function(u,c){u[Ke]=!0,n&&n.apply(u,c)}})}function Ir(e,r,t,n,u){var c=Zone.__symbol__(n);if(!r[c]){var l=r[c]=r[n];r[n]=function(v,T,d){return T&&T.prototype&&u.forEach(function(p){var y=t+"."+n+"::"+p,b=T.prototype;if(b.hasOwnProperty(p)){var O=e.ObjectGetOwnPropertyDescriptor(b,p);O&&O.value?(O.value=e.wrapWithCurrentZone(O.value,y),e._redefineProperty(T.prototype,p,O)):b[p]&&(b[p]=e.wrapWithCurrentZone(b[p],y))}else b[p]&&(b[p]=e.wrapWithCurrentZone(b[p],y))}),l.call(r,v,T,d)},e.attachOriginToPatched(r[n],l)}}var Ie,Ae,pr,Er,pe,e,r,Je=["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"],xr=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],vr=["load"],hr=["blur","error","focus","load","resize","scroll","messageerror"],Ur=["bounce","finish","start"],dr=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Te=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],zr=["close","error","open","message"],Wr=["error","message"],ge=["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"],Je,["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 _r(e,r,t){if(!t||0===t.length)return r;var n=t.filter(function(c){return c.target===e});if(!n||0===n.length)return r;var u=n[0].ignoreProperties;return r.filter(function(c){return-1===u.indexOf(c)})}function q(e,r,t,n){e&&ir(e,_r(e,r,t),n)}function Xr(e,r){if((!Ne||nr)&&!Zone[e.symbol("patchEvents")]){var t="undefined"!=typeof WebSocket,n=r.__Zone_ignore_on_properties;if(qe){var u=window,c=function Dr(){try{var e=ye.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(r){}return!1}()?[{target:u,ignoreProperties:["error"]}]:[];q(u,ge.concat(["messageerror"]),n&&n.concat(c),Be(u)),q(Document.prototype,ge,n),void 0!==u.SVGElement&&q(u.SVGElement.prototype,ge,n),q(Element.prototype,ge,n),q(HTMLElement.prototype,ge,n),q(HTMLMediaElement.prototype,xr,n),q(HTMLFrameSetElement.prototype,Je.concat(hr),n),q(HTMLBodyElement.prototype,Je.concat(hr),n),q(HTMLFrameElement.prototype,vr,n),q(HTMLIFrameElement.prototype,vr,n);var l=u.HTMLMarqueeElement;l&&q(l.prototype,Ur,n);var v=u.Worker;v&&q(v.prototype,Wr,n)}var T=r.XMLHttpRequest;T&&q(T.prototype,dr,n);var d=r.XMLHttpRequestEventTarget;d&&q(d&&d.prototype,dr,n),"undefined"!=typeof IDBIndex&&(q(IDBIndex.prototype,Te,n),q(IDBRequest.prototype,Te,n),q(IDBOpenDBRequest.prototype,Te,n),q(IDBDatabase.prototype,Te,n),q(IDBTransaction.prototype,Te,n),q(IDBCursor.prototype,Te,n)),t&&q(WebSocket.prototype,zr,n)}}function Yr(e,r,t){var n=t.configurable;return mr(e,r,t=Qe(e,r,t),n)}function yr(e,r){return e&&e[pe]&&e[pe][r]}function Qe(e,r,t){return Object.isFrozen(t)||(t.configurable=!0),t.configurable||(!e[pe]&&!Object.isFrozen(e)&&Ae(e,pe,{writable:!0,value:{}}),e[pe]&&(e[pe][r]=!0)),t}function mr(e,r,t,n){try{return Ae(e,r,t)}catch(l){if(!t.configurable)throw l;void 0===n?delete t.configurable:t.configurable=n;try{return Ae(e,r,t)}catch(v){var u=!1;if(("createdCallback"===r||"attachedCallback"===r||"detachedCallback"===r||"attributeChangedCallback"===r)&&(u=!0),!u)throw v;var c=null;try{c=JSON.stringify(t)}catch(T){c=t.toString()}console.log("Attempting to configure '"+r+"' with descriptor '"+c+"' on object '"+e+"' and got error, giving up: "+v)}}}function Qr(e,r){var t=e.getGlobalObjects();if((!t.isNode||t.isMix)&&!function $r(e,r){var t=e.getGlobalObjects();if((t.isBrowser||t.isMix)&&!e.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var c=e.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick");if(c&&!c.configurable)return!1;if(c){e.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}});var v=!!document.createElement("div").onclick;return e.ObjectDefineProperty(Element.prototype,"onclick",c),v}}var T=r.XMLHttpRequest;if(!T)return!1;var d="onreadystatechange",p=T.prototype,y=e.ObjectGetOwnPropertyDescriptor(p,d);if(y)return e.ObjectDefineProperty(p,d,{enumerable:!0,configurable:!0,get:function(){return!0}}),v=!!(b=new T).onreadystatechange,e.ObjectDefineProperty(p,d,y||{}),v;var O=e.symbol("fake");e.ObjectDefineProperty(p,d,{enumerable:!0,configurable:!0,get:function(){return this[O]},set:function(g){this[O]=g}});var b,N=function(){};return(b=new T).onreadystatechange=N,v=b[O]===N,b.onreadystatechange=null,v}(e,r)){var c="undefined"!=typeof WebSocket;(function et(e){for(var r=e.getGlobalObjects().eventNames,t=e.symbol("unbound"),n=function(c){var l=r[c],v="on"+l;self.addEventListener(l,function(T){var p,y,d=T.target;for(y=d?d.constructor.name+"."+v:"unknown."+v;d;)d[v]&&!d[v][t]&&((p=e.wrapWithCurrentZone(d[v],y))[t]=d[v],d[v]=p),d=d.parentElement},!0)},u=0;u<r.length;u++)n(u)})(e),e.patchClass("XMLHttpRequest"),c&&function Jr(e,r){var t=e.getGlobalObjects(),n=t.ADD_EVENT_LISTENER_STR,u=t.REMOVE_EVENT_LISTENER_STR,c=r.WebSocket;r.EventTarget||e.patchEventTarget(r,[c.prototype]),r.WebSocket=function(T,d){var y,b,p=arguments.length>1?new c(T,d):new c(T),O=e.ObjectGetOwnPropertyDescriptor(p,"onmessage");return O&&!1===O.configurable?(y=e.ObjectCreate(p),b=p,[n,u,"send","close"].forEach(function(N){y[N]=function(){var M=e.ArraySlice.call(arguments);if(N===n||N===u){var X=M.length>0?M[0]:void 0;if(X){var g=Zone.__symbol__("ON_PROPERTY"+X);p[g]=y[g]}}return p[N].apply(p,M)}})):y=p,e.patchOnProperties(y,["close","error","message","open"],b),y};var l=r.WebSocket;for(var v in c)l[v]=c[v]}(e,r),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(e,r,t){t.patchOnProperties=ir,t.patchMethod=ve,t.bindArguments=Xe,t.patchMacroTask=Cr;var n=r.__symbol__("BLACK_LISTED_EVENTS"),u=r.__symbol__("UNPATCHED_EVENTS");e[u]&&(e[n]=e[u]),e[n]&&(r[n]=r[u]=e[n]),t.patchEventPrototype=Mr,t.patchEventTarget=Lr,t.isIEOrEdge=Zr,t.ObjectDefineProperty=xe,t.ObjectGetOwnPropertyDescriptor=Oe,t.ObjectCreate=Pr,t.ArraySlice=wr,t.patchClass=Re,t.wrapWithCurrentZone=ze,t.filterProperties=_r,t.attachOriginToPatched=he,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Ir,t.getGlobalObjects=function(){return{globalSources:ur,zoneSymbolEventNames:ae,eventNames:ge,isBrowser:qe,isMix:nr,isNode:Ne,TRUE_STR:fe,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Se,ADD_EVENT_LISTENER_STR:Fe,REMOVE_EVENT_LISTENER_STR:Ge}}}),e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=e.__Zone_symbol_prefix||"__zone_symbol__",e[function t(n){return r+n}("legacyPatch")]=function(){var n=e.Zone;n.__load_patch("defineProperty",function(u,c,l){l._redefineProperty=Yr,function qr(){Ie=Zone.__symbol__,Ae=Object[Ie("defineProperty")]=Object.defineProperty,pr=Object[Ie("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Er=Object.create,pe=Ie("unconfigurables"),Object.defineProperty=function(e,r,t){if(yr(e,r))throw new TypeError("Cannot assign to read only property '"+r+"' of "+e);var n=t.configurable;return"prototype"!==r&&(t=Qe(e,r,t)),mr(e,r,t,n)},Object.defineProperties=function(e,r){return Object.keys(r).forEach(function(t){Object.defineProperty(e,t,r[t])}),e},Object.create=function(e,r){return"object"==typeof r&&!Object.isFrozen(r)&&Object.keys(r).forEach(function(t){r[t]=Qe(e,t,r[t])}),Er(e,r)},Object.getOwnPropertyDescriptor=function(e,r){var t=pr(e,r);return t&&yr(e,r)&&(t.configurable=!1),t}}()}),n.__load_patch("registerElement",function(u,c,l){!function rt(e,r){var t=r.getGlobalObjects();(t.isBrowser||t.isMix)&&"registerElement"in e.document&&r.patchCallbacks(r,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(u,l)}),n.__load_patch("EventTargetLegacy",function(u,c,l){(function Kr(e,r){var t=r.getGlobalObjects(),n=t.eventNames,u=t.globalSources,c=t.zoneSymbolEventNames,l=t.TRUE_STR,v=t.FALSE_STR,T=t.ZONE_SYMBOL_PREFIX,p="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(","),y="EventTarget",b=[],O=e.wtf,N="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(",");O?b=N.map(function(H){return"HTML"+H+"Element"}).concat(p):e[y]?b.push(y):b=p;for(var M=e.__Zone_disable_IE_check||!1,X=e.__Zone_enable_cross_context_check||!1,g=r.isIEOrEdge(),B="[object FunctionWrapper]",j="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",V={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},U=0;U<n.length;U++){var ee=T+((k=n[U])+v),Y=T+(k+l);c[k]={},c[k][v]=ee,c[k][l]=Y}for(U=0;U<N.length;U++)for(var R=N[U],F=u[R]={},w=0;w<n.length;w++){var k;F[k=n[w]]=R+".addEventListener:"+k}var ie=[];for(U=0;U<b.length;U++){var ne=e[b[U]];ie.push(ne&&ne.prototype)}return r.patchEventTarget(e,ie,{vh:function(H,h,a,o){if(!M&&g)if(X)try{if((i=h.toString())===B||i==j)return H.apply(a,o),!1}catch(P){return H.apply(a,o),!1}else{var i;if((i=h.toString())===B||i==j)return H.apply(a,o),!1}else if(X)try{h.toString()}catch(P){return H.apply(a,o),!1}return!0},transferEventName:function(H){return V[H]||H}}),Zone[r.symbol("patchEventTarget")]=!!e[y],!0})(u,l),Qr(l,u)})};var je=G("zoneTask");function be(e,r,t,n){var u=null,c=null;t+=n;var l={};function v(d){var p=d.data;return p.args[0]=function(){return d.invoke.apply(this,arguments)},p.handleId=u.apply(e,p.args),d}function T(d){return c.call(e,d.data.handleId)}u=ve(e,r+=n,function(d){return function(p,y){if("function"==typeof y[0]){var b={isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?y[1]||0:void 0,args:y},O=y[0];y[0]=function(){try{return O.apply(this,arguments)}finally{b.isPeriodic||("number"==typeof b.handleId?delete l[b.handleId]:b.handleId&&(b.handleId[je]=null))}};var N=We(r,y[0],b,v,T);if(!N)return N;var M=N.data.handleId;return"number"==typeof M?l[M]=N:M&&(M[je]=N),M&&M.ref&&M.unref&&"function"==typeof M.ref&&"function"==typeof M.unref&&(N.ref=M.ref.bind(M),N.unref=M.unref.bind(M)),"number"==typeof M||M?M:N}return d.apply(e,y)}}),c=ve(e,t,function(d){return function(p,y){var O,b=y[0];"number"==typeof b?O=l[b]:(O=b&&b[je])||(O=b),O&&"string"==typeof O.type?"notScheduled"!==O.state&&(O.cancelFn&&O.data.isPeriodic||0===O.runCount)&&("number"==typeof b?delete l[b]:b&&(b[je]=null),O.zone.cancelTask(O)):d.apply(e,y)}})}Zone.__load_patch("legacy",function(e){var r=e[Zone.__symbol__("legacyPatch")];r&&r()}),Zone.__load_patch("queueMicrotask",function(e,r,t){t.patchMethod(e,"queueMicrotask",function(n){return function(u,c){r.current.scheduleMicroTask("queueMicrotask",c[0])}})}),Zone.__load_patch("timers",function(e){var r="set",t="clear";be(e,r,t,"Timeout"),be(e,r,t,"Interval"),be(e,r,t,"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,r){for(var t=["alert","prompt","confirm"],n=0;n<t.length;n++)ve(e,t[n],function(c,l,v){return function(T,d){return r.current.run(c,e,d,v)}})}),Zone.__load_patch("EventTarget",function(e,r,t){(function ot(e,r){r.patchEventPrototype(e,r)})(e,t),function nt(e,r){if(!Zone[r.symbol("patchEventTarget")]){for(var t=r.getGlobalObjects(),n=t.eventNames,u=t.zoneSymbolEventNames,c=t.TRUE_STR,l=t.FALSE_STR,v=t.ZONE_SYMBOL_PREFIX,T=0;T<n.length;T++){var d=n[T],b=v+(d+l),O=v+(d+c);u[d]={},u[d][l]=b,u[d][c]=O}var N=e.EventTarget;if(N&&N.prototype)return r.patchEventTarget(e,[N&&N.prototype]),!0}}(e,t);var n=e.XMLHttpRequestEventTarget;n&&n.prototype&&t.patchEventTarget(e,[n.prototype])}),Zone.__load_patch("MutationObserver",function(e,r,t){Re("MutationObserver"),Re("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",function(e,r,t){Re("IntersectionObserver")}),Zone.__load_patch("FileReader",function(e,r,t){Re("FileReader")}),Zone.__load_patch("on_property",function(e,r,t){Xr(t,e)}),Zone.__load_patch("customElements",function(e,r,t){!function tt(e,r){var t=r.getGlobalObjects();(t.isBrowser||t.isMix)&&e.customElements&&"customElements"in e&&r.patchCallbacks(r,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,t)}),Zone.__load_patch("XHR",function(e,r){!function T(d){var p=d.XMLHttpRequest;if(p){var y=p.prototype,O=y[Ve],N=y[Ue];if(!O){var M=d.XMLHttpRequestEventTarget;if(M){var X=M.prototype;O=X[Ve],N=X[Ue]}}var g="readystatechange",m="scheduled",U=ve(y,"open",function(){return function(R,F){return R[n]=0==F[2],R[l]=F[1],U.apply(R,F)}}),$=G("fetchTaskAborting"),I=G("fetchTaskScheduling"),ee=ve(y,"send",function(){return function(R,F){if(!0===r.current[I]||R[n])return ee.apply(R,F);var w={target:R,url:R[l],isPeriodic:!1,args:F,aborted:!1},A=We("XMLHttpRequest.send",j,w,B,V);R&&!0===R[v]&&!w.aborted&&A.state===m&&A.invoke()}}),Y=ve(y,"abort",function(){return function(R,F){var w=function b(R){return R[t]}(R);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===r.current[$])return Y.apply(R,F)}})}function B(R){var F=R.data,w=F.target;w[c]=!1,w[v]=!1;var A=w[u];O||(O=w[Ve],N=w[Ue]),A&&N.call(w,g,A);var ie=w[u]=function(){if(w.readyState===w.DONE)if(!F.aborted&&w[c]&&R.state===m){var H=w[r.__symbol__("loadfalse")];if(0!==w.status&&H&&H.length>0){var h=R.invoke;R.invoke=function(){for(var a=w[r.__symbol__("loadfalse")],o=0;o<a.length;o++)a[o]===R&&a.splice(o,1);!F.aborted&&R.state===m&&h.call(R)},H.push(R)}else R.invoke()}else!F.aborted&&!1===w[c]&&(w[v]=!0)};return O.call(w,g,ie),w[t]||(w[t]=R),ee.apply(w,F.args),w[c]=!0,R}function j(){}function V(R){var F=R.data;return F.aborted=!0,Y.apply(F.target,F.args)}}(e);var t=G("xhrTask"),n=G("xhrSync"),u=G("xhrListener"),c=G("xhrScheduled"),l=G("xhrURL"),v=G("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",function(e){e.navigator&&e.navigator.geolocation&&function Rr(e,r){for(var t=e.constructor.name,n=function(c){var d,p,l=r[c],v=e[l];if(v){if(!rr(Oe(e,l)))return"continue";e[l]=(p=function(){return d.apply(this,Xe(arguments,t+"."+l))},he(p,d=v),p)}},u=0;u<r.length;u++)n(u)}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(e,r){function t(n){return function(u){lr(e,n).forEach(function(l){var v=e.PromiseRejectionEvent;if(v){var T=new v(n,{promise:u.promise,reason:u.rejection});l.invoke(T)}})}}e.PromiseRejectionEvent&&(r[G("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),r[G("rejectionHandledHandler")]=t("rejectionhandled"))})}.call(Pe,we,Pe,Ee))&&(Ee.exports=De)}},Ee=>{Ee(Ee.s=7435)}]);