openvidu-livekit-tutorials/openvidu-webcomponent/web/openvidu-webcomponent-2.23.0.js
2022-09-22 14:13:45 +02:00

3 lines
1.4 MiB

(()=>{"use strict";var e,s={},v={};function n(e){var a=v[e];if(void 0!==a)return a.exports;var r=v[e]={id:e,loaded:!1,exports:{}};return s[e].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=s,e=[],n.O=(a,r,f,o)=>{if(!r){var c=1/0;for(t=0;t<e.length;t++){for(var[r,f,o]=e[t],i=!0,l=0;l<r.length;l++)(!1&o||c>=o)&&Object.keys(n.O).every(_=>n.O[_](r[l]))?r.splice(l--,1):(i=!1,o<c&&(c=o));if(i){e.splice(t--,1);var u=f();void 0!==u&&(a=u)}}return a}o=o||0;for(var t=e.length;t>0&&e[t-1][2]>o;t--)e[t]=e[t-1];e[t]=[r,f,o]},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.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};n.O.j=f=>0===e[f];var a=(f,o)=>{var l,u,[t,c,i]=o,d=0;if(t.some(b=>0!==e[b])){for(l in c)n.o(c,l)&&(n.m[l]=c[l]);if(i)var p=i(n)}for(f&&f(o);d<t.length;d++)n.o(e,u=t[d])&&e[u]&&e[u][0](),e[u]=0;return n.O(p)},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:(ke,te,U)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Connection=void 0;var S=U(8770),q=U(1829),j=U(4131),E=q.OpenViduLogger.getInstance(),w=function(){function P(C,b){this.session=C,this.disposed=!1;var O="'Connection' created ";b.role?(this.localOptions=b,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,O+="(local)"):(this.remoteOptions=b,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),O+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),E.info(O)}return P.prototype.sendIceCandidate=function(C){var b=this;E.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,C),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:C.candidate,sdpMid:C.sdpMid,sdpMLineIndex:C.sdpMLineIndex},function(O,D){O&&(E.error("Error sending ICE candidate: "+JSON.stringify(O)),b.session.emitEvent("exception",[new j.ExceptionEvent(b.session,j.ExceptionEventName.ICE_CANDIDATE_ERROR,b.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",O)]))})},P.prototype.initRemoteStreams=function(C){var b=this;C.forEach(function(O){var D={id:O.id,createdAt:O.createdAt,connection:b,hasAudio:O.hasAudio,hasVideo:O.hasVideo,audioActive:O.audioActive,videoActive:O.videoActive,typeOfVideo:O.typeOfVideo,frameRate:O.frameRate,videoDimensions:O.videoDimensions?JSON.parse(O.videoDimensions):void 0,filter:O.filter?O.filter:void 0},$=new S.Stream(b.session,D);b.addStream($)}),E.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},P.prototype.addStream=function(C){C.connection=this,this.stream=C},P.prototype.removeStream=function(C){delete this.stream},P.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},P}();te.Connection=w},2768:(ke,te,U)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.EventDispatcher=void 0;var S=U(2937),j=U(1829).OpenViduLogger.getInstance(),E=function(){function w(){this.userHandlerArrowHandler=new WeakMap,this.ee=new S}return w.prototype.onAux=function(P,C,b){var O=function(D){D?j.info(C,D):j.info(C),b(D)};return this.userHandlerArrowHandler.set(b,O),this.ee.on(P,O),this},w.prototype.onceAux=function(P,C,b){var O=this,D=function($){$?j.info(C,$):j.info(C),b($),O.userHandlerArrowHandler.delete(b)};return this.userHandlerArrowHandler.set(b,D),this.ee.once(P,D),this},w.prototype.offAux=function(P,C){if(C){var b=this.userHandlerArrowHandler.get(C);b&&this.ee.off(P,b),this.userHandlerArrowHandler.delete(C)}else this.ee.removeAllListeners(P);return this},w}();te.EventDispatcher=E},5481:(ke,te,U)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Filter=void 0;var S=U(9383),q=U(9303),E=U(1829).OpenViduLogger.getInstance(),w=function(){function P(C,b){this.handlers=new Map,this.type=C,this.options=b}return P.prototype.execMethod=function(C,b){var O=this;return new Promise(function(D,$){var oe;E.info("Executing filter method to stream "+O.stream.streamId);var Z,H=function(z){E.info("Filter method successfully executed on Stream "+O.stream.streamId);var M=Object.assign({},O.stream.filter);return O.stream.filter.lastExecMethod={method:C,params:Z},z&&(O.stream.session.emitEvent("streamPropertyChanged",[new S.StreamPropertyChangedEvent(O.stream.session,O.stream,"filter",O.stream.filter,M,"execFilterMethod")]),O.stream.streamManager.emitEvent("streamPropertyChanged",[new S.StreamPropertyChangedEvent(O.stream.streamManager,O.stream,"filter",O.stream.filter,M,"execFilterMethod")])),D()};if(O.type.startsWith("VB:")){if("string"==typeof b)try{b=JSON.parse(b)}catch(z){return $(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Wrong params syntax: "+z))}if(Z=b,"update"!==C)return $(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Unknown Virtual Background method "'.concat(C,'"')));if(!(null===(oe=O.stream.virtualBackgroundSinkElements)||void 0===oe?void 0:oe.VB))return $(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"There is no Virtual Background filter applied"));O.stream.virtualBackgroundSinkElements.VB.updateValues(b).then(function(){return H(!1)}).catch(function(z){return $(z.name===q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new q.OpenViduError(z.name,z.message):new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Error updating values on Virtual Background filter: "+z))})}else{var pe=void 0;if("string"!=typeof b)try{pe=JSON.stringify(b)}catch(z){var de="'params' property must be a JSON formatted object";return E.error(de),$(de)}else pe=b;Z=pe,O.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:O.stream.streamId,method:C,params:pe},function(z,M){return z?(E.error("Error executing filter method for Stream "+O.stream.streamId,z),$(401===z.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):z)):H(!0)})}})},P.prototype.addEventListener=function(C,b){var O=this;return new Promise(function(D,$){E.info("Adding filter event listener to event "+C+" to stream "+O.stream.streamId),O.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:O.stream.streamId,eventType:C},function(oe,Z){return oe?(E.error("Error adding filter event listener to event "+C+"for Stream "+O.stream.streamId,oe),$(401===oe.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):oe)):(O.handlers.set(C,b),E.info("Filter event listener to event "+C+" successfully applied on Stream "+O.stream.streamId),D())})})},P.prototype.removeEventListener=function(C){var b=this;return new Promise(function(O,D){E.info("Removing filter event listener to event "+C+" to stream "+b.stream.streamId),b.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:b.stream.streamId,eventType:C},function($,oe){return $?(E.error("Error removing filter event listener to event "+C+"for Stream "+b.stream.streamId,$),D(401===$.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):$)):(b.handlers.delete(C),E.info("Filter event listener to event "+C+" successfully removed on Stream "+b.stream.streamId),O())})})},P}();te.Filter=w},8499:(ke,te,U)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.LocalRecorder=void 0;var P,S=U(1216),q=U(1829),j=U(1171),E=U(1397),w=q.OpenViduLogger.getInstance(),C=function(){function b(O){this.stream=O,this.chunks=[],P=j.PlatformUtils.getInstance(),this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=S.LocalRecorderState.READY}return b.prototype.record=function(O){var D=this;return new Promise(function($,oe){try{if("string"==typeof O||O instanceof String)return oe("When calling LocalRecorder.record(options) parameter 'options' cannot be a string. Must be an object like { mimeType: \"".concat(O,'" }'));if("undefined"==typeof MediaRecorder)throw w.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(D.state!==S.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+D.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");w.log("Starting local recording of stream '"+D.stream.streamId+"' of connection '"+D.connectionId+"'"),O?O.mimeType||(O.mimeType="video/webm"):O={mimeType:"video/webm"},D.mediaRecorder=new MediaRecorder(D.stream.getMediaStream(),O),D.mediaRecorder.start()}catch(Z){return oe(Z)}return D.mediaRecorder.ondataavailable=function(Z){Z.data.size>0&&D.chunks.push(Z.data)},D.mediaRecorder.onerror=function(Z){w.error("MediaRecorder error: ",Z)},D.mediaRecorder.onstart=function(){w.log("MediaRecorder started (state="+D.mediaRecorder.state+")")},D.mediaRecorder.onstop=function(){D.onStopDefault()},D.mediaRecorder.onpause=function(){w.log("MediaRecorder paused (state="+D.mediaRecorder.state+")")},D.mediaRecorder.onresume=function(){w.log("MediaRecorder resumed (state="+D.mediaRecorder.state+")")},D.state=S.LocalRecorderState.RECORDING,$()})},b.prototype.stop=function(){var O=this;return new Promise(function(D,$){try{if(O.state===S.LocalRecorderState.READY||O.state===S.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+O.state+"'). Call 'LocalRecorder.start()' before");O.mediaRecorder.onstop=function(){return O.onStopDefault(),D()},O.mediaRecorder.stop()}catch(oe){return $(oe)}})},b.prototype.pause=function(){var O=this;return new Promise(function(D,$){try{return O.state!==S.LocalRecorderState.RECORDING?$(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+O.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")):(O.mediaRecorder.pause(),O.state=S.LocalRecorderState.PAUSED,D())}catch(oe){return $(oe)}})},b.prototype.resume=function(){var O=this;return new Promise(function(D,$){try{if(O.state!==S.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+O.state+"'). Call 'LocalRecorder.pause()' before");return O.mediaRecorder.resume(),O.state=S.LocalRecorderState.RECORDING,D()}catch(oe){return $(oe)}})},b.prototype.preview=function(O){if(this.state!==S.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,P.isSafariBrowser()&&(this.videoPreview.playsInline=!0),"string"==typeof O){var D=document.getElementById(O);D&&(this.videoPreview=D.appendChild(this.videoPreview))}else this.videoPreview=O.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},b.prototype.clean=function(){var O=this,D=function(){delete O.blob,O.chunks=[],O.state=S.LocalRecorderState.READY};this.state===S.LocalRecorderState.RECORDING||this.state===S.LocalRecorderState.PAUSED?this.stop().then(function(){return D()}).catch(function(){return D()}):D()},b.prototype.download=function(){if(this.state!==S.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var O=document.createElement("a");O.style.display="none",document.body.appendChild(O);var D=globalThis.URL.createObjectURL(this.blob);O.href=D,O.download=this.id+"."+E.getExtension(this.blob.type),O.click(),globalThis.URL.revokeObjectURL(D),document.body.removeChild(O)},b.prototype.getBlob=function(){if(this.state!==S.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},b.prototype.uploadAsBinary=function(O,D){var $=this;return new Promise(function(oe,Z){if($.state!==S.LocalRecorderState.FINISHED)return Z(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+$.state+"'). Call 'LocalRecorder.stop()' before"));var H=new XMLHttpRequest;if(H.open("POST",O,!0),"object"==typeof D)for(var pe=0,de=Object.keys(D);pe<de.length;pe++){var z=de[pe];H.setRequestHeader(z,D[z])}H.onreadystatechange=function(){if(4===H.readyState)return"2"===H.status.toString().charAt(0)?oe(H.responseText):Z(H.status)},H.send($.blob)})},b.prototype.uploadAsMultipartfile=function(O,D){var $=this;return new Promise(function(oe,Z){if($.state!==S.LocalRecorderState.FINISHED)return Z(Error("'LocalRecord.uploadAsMultipartfile()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+$.state+"'). Call 'LocalRecorder.stop()' before"));var H=new XMLHttpRequest;if(H.open("POST",O,!0),"object"==typeof D)for(var pe=0,de=Object.keys(D);pe<de.length;pe++){var z=de[pe];H.setRequestHeader(z,D[z])}var M=new FormData;M.append("file",$.blob,$.id+"."+E.getExtension($.blob.type)),H.onreadystatechange=function(){if(4===H.readyState)return"2"===H.status.toString().charAt(0)?oe(H.responseText):Z(H.status)},H.send(M)})},b.prototype.onStopDefault=function(){w.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=S.LocalRecorderState.FINISHED},b}();te.LocalRecorder=C},3634:function(ke,te,U){"use strict";var S=this&&this.__awaiter||function(A,m,y,Y){return new(y||(y=Promise))(function(x,B){function p(F){try{V(Y.next(F))}catch(N){B(N)}}function L(F){try{V(Y.throw(F))}catch(N){B(N)}}function V(F){F.done?x(F.value):function R(x){return x instanceof y?x:new y(function(B){B(x)})}(F.value).then(p,L)}V((Y=Y.apply(A,m||[])).next())})},q=this&&this.__generator||function(A,m){var Y,R,x,B,y={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return B={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(B[Symbol.iterator]=function(){return this}),B;function p(V){return function(F){return function L(V){if(Y)throw new TypeError("Generator is already executing.");for(;y;)try{if(Y=1,R&&(x=2&V[0]?R.return:V[0]?R.throw||((x=R.return)&&x.call(R),0):R.next)&&!(x=x.call(R,V[1])).done)return x;switch(R=0,x&&(V=[2&V[0],x.value]),V[0]){case 0:case 1:x=V;break;case 4:return y.label++,{value:V[1],done:!1};case 5:y.label++,R=V[1],V=[0];continue;case 7:V=y.ops.pop(),y.trys.pop();continue;default:if(!(x=(x=y.trys).length>0&&x[x.length-1])&&(6===V[0]||2===V[0])){y=0;continue}if(3===V[0]&&(!x||V[1]>x[0]&&V[1]<x[3])){y.label=V[1];break}if(6===V[0]&&y.label<x[1]){y.label=x[1],x=V;break}if(x&&y.label<x[2]){y.label=x[2],y.ops.push(V);break}x[2]&&y.ops.pop(),y.trys.pop();continue}V=m.call(A,y)}catch(F){V=[6,F],R=0}finally{Y=x=0}if(5&V[0])throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}([V,F])}}};Object.defineProperty(te,"__esModule",{value:!0}),te.OpenVidu=void 0;var W,j=U(8499),E=U(4302),w=U(5607),P=U(1690),C=U(9383),b=U(9303),O=U(7167),D=U(1829),$=U(1171),oe=U(467),Z=U(48),H=U(1438),pe=U(2937),de=U(4940),z=U(9469),M=D.OpenViduLogger.getInstance(),J=function(){function A(){var m=this;this.masterNodeHasCrashed=!1,this.publishers=[],this.secret="",this.recorder=!1,this.life=-1,this.advancedConfiguration={},this.webrtcStatsInterval=-1,this.sendBrowserLogs=H.OpenViduLoggerConfiguration.disabled,this.isAtLeastPro=!1,this.isEnterprise=!1,this.ee=new pe,W=$.PlatformUtils.getInstance(),this.libraryVersion=z.version,M.info("OpenVidu initialized"),M.info("Platform detected: "+W.getDescription()),M.info("openvidu-browser version: "+this.libraryVersion),(W.isMobileDevice()||W.isReactNative())&&this.onOrientationChanged(function(){m.publishers.forEach(function(y){y.stream.isLocalStreamPublished&&y.stream&&y.stream.hasVideo&&m.sendNewVideoDimensionsIfRequired(y,"deviceRotated",75,10)})})}return A.prototype.initSession=function(){return this.session=new w.Session(this),this.session},A.prototype.initPublisher=function(m,y,Y){var R;R=y&&"function"!=typeof y?{audioSource:void 0!==(R=y).audioSource?R.audioSource:void 0,frameRate:"undefined"!=typeof MediaStreamTrack&&R.videoSource instanceof MediaStreamTrack?void 0:void 0!==R.frameRate?R.frameRate:void 0,insertMode:void 0!==R.insertMode?"string"==typeof R.insertMode?O.VideoInsertMode[R.insertMode]:R.insertMode:O.VideoInsertMode.APPEND,mirror:void 0===R.mirror||R.mirror,publishAudio:void 0===R.publishAudio||R.publishAudio,publishVideo:void 0===R.publishVideo||R.publishVideo,resolution:"undefined"!=typeof MediaStreamTrack&&R.videoSource instanceof MediaStreamTrack?void 0:void 0!==R.resolution?R.resolution:"640x480",videoSource:void 0!==R.videoSource?R.videoSource:void 0,videoSimulcast:R.videoSimulcast,filter:R.filter}:{insertMode:O.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var B,x=new E.Publisher(m,R,this);return y&&"function"==typeof y?B=y:Y&&(B=Y),x.initialize().then(function(){void 0!==B&&B(void 0),x.emitEvent("accessAllowed",[])}).catch(function(p){void 0!==B&&B(p),x.emitEvent("accessDenied",[p])}),this.publishers.push(x),x},A.prototype.initPublisherAsync=function(m,y){var Y=this;return new Promise(function(R,x){var B,p=function(L){return L?x(L):R(B)};B=y?Y.initPublisher(m,y,p):Y.initPublisher(m,p)})},A.prototype.initLocalRecorder=function(m){return new j.LocalRecorder(m)},A.prototype.checkSystemRequirements=function(){return W.isIPhoneOrIPad()?W.isIOSWithSafari()||W.isChromeMobileBrowser()||W.isFirefoxMobileBrowser()||W.isOperaMobileBrowser()||W.isEdgeMobileBrowser()||W.isIonicIos():W.isChromeBrowser()||W.isChromeMobileBrowser()||W.isFirefoxBrowser()||W.isFirefoxMobileBrowser()||W.isOperaBrowser()||W.isOperaMobileBrowser()||W.isEdgeBrowser()||W.isEdgeMobileBrowser()||W.isSamsungBrowser()||W.isSafariBrowser()||W.isAndroidBrowser()||W.isElectron()||W.isNodeJs()},A.prototype.checkScreenSharingCapabilities=function(){return W.canScreenShare()},A.prototype.getDevices=function(){return new Promise(function(m,y){navigator.mediaDevices.enumerateDevices().then(function(Y){var R,x=[];if(!W.isIonicAndroid()||"undefined"==typeof cordova||!(null===(R=null==cordova?void 0:cordova.plugins)||void 0===R?void 0:R.EnumerateDevicesPlugin))return Y.forEach(function(B){("audioinput"===B.kind||"videoinput"===B.kind)&&x.push({kind:B.kind,deviceId:B.deviceId,label:B.label})}),m(x);cordova.plugins.EnumerateDevicesPlugin.getEnumerateDevices().then(function(B){var p=[],L=[],V=[];return p=B.filter(function(F){return"audioinput"===F.kind}),L=Y.filter(function(F){return"videoinput"===F.kind}),V=Y.filter(function(F){return"audioinput"===F.kind}),L.forEach(function(F,N){x.push(F.label?{kind:F.kind,deviceId:F.deviceId,label:F.label}:{kind:F.kind,deviceId:F.deviceId,label:0===N?"Front Camera":1===N?"Back Camera":"Unknown Camera"})}),V.forEach(function(F,N){if(F.label)x.push({kind:F.kind,deviceId:F.deviceId,label:F.label});else{var k="";switch(N){case 0:k="Default";break;case 1:var X=p.filter(function(De){return De.label.includes("Built")})[0];k=X?X.label:"Built-in Microphone";break;case 2:var ee=p.filter(function(De){return De.label.includes("Wired")})[0];k=ee?ee.label:"Headset earpiece";break;case 3:var Ee=p.filter(function(De){return De.label.includes("Bluetooth")})[0];k=Ee?Ee.label:"Wireless";break;default:k="Unknown Microphone"}x.push({kind:F.kind,deviceId:F.deviceId,label:k})}}),m(x)})}).catch(function(Y){return M.error("Error getting devices",Y),y(Y)})})},A.prototype.getUserMedia=function(m){var y=this;return new Promise(function(Y,R){return S(y,void 0,void 0,function(){var x,B,p,L,V,F,N,k,X,ee,De,_e,Ee=this;return q(this,function(Ae){switch(Ae.label){case 0:x=function(Ye,Be){return S(Ee,void 0,void 0,function(){var Et,ze,he;return q(this,function(tn){switch(tn.label){case 0:Et={audio:void 0===Be.audio||Be.audio,video:!1},tn.label=1;case 1:return tn.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia(Et)];case 2:return ze=tn.sent(),Ye.addTrack(ze.getAudioTracks()[0]),[2,Y(Ye)];case 3:return he=tn.sent(),Ye.getAudioTracks().forEach(function(et){et.stop()}),Ye.getVideoTracks().forEach(function(et){et.stop()}),[2,R(this.generateAudioDeviceError(he,Et))];case 4:return[2]}})})},Ae.label=1;case 1:return Ae.trys.push([1,20,,21]),[4,this.generateMediaConstraints(m)];case 2:return(B=Ae.sent()).videoTrack&&B.audioTrack||B.audioTrack&&!1===(null===(De=B.constraints)||void 0===De?void 0:De.video)||B.videoTrack&&!1===(null===(_e=B.constraints)||void 0===_e?void 0:_e.audio)?[2,Y(this.addAlreadyProvidedTracks(B,new MediaStream))]:[3,3];case 3:if(B.videoTrack&&delete B.constraints.video,B.audioTrack&&delete B.constraints.audio,p=!1,"string"!=typeof m.videoSource)return[3,12];if(!("screen"===m.videoSource||"window"===m.videoSource||W.isElectron()&&m.videoSource.startsWith("screen:")))return[3,12];if(p=!B.audioTrack&&null!==m.audioSource&&!1!==m.audioSource,!navigator.mediaDevices.getDisplayMedia||W.isElectron())return[3,11];Ae.label=4;case 4:return Ae.trys.push([4,9,,10]),[4,navigator.mediaDevices.getDisplayMedia({video:!0})];case 5:return F=Ae.sent(),this.addAlreadyProvidedTracks(B,F),p?[4,x(F,B.constraints)]:[3,7];case 6:return Ae.sent(),[2];case 7:return[2,Y(F)];case 8:return[3,10];case 9:return L=Ae.sent(),k=b.OpenViduErrorName.SCREEN_CAPTURE_DENIED,X=L.toString(),[2,R(new b.OpenViduError(k,X))];case 10:return[3,11];case 11:return[3,12];case 12:V=p?{video:B.constraints.video}:B.constraints,Ae.label=13;case 13:return Ae.trys.push([13,18,,19]),[4,navigator.mediaDevices.getUserMedia(V)];case 14:return F=Ae.sent(),this.addAlreadyProvidedTracks(B,F),p?[4,x(F,B.constraints)]:[3,16];case 15:return Ae.sent(),[3,17];case 16:return[2,Y(F)];case 17:return[3,19];case 18:return N=Ae.sent(),k=void 0,X=N.toString(),[2,R(new b.OpenViduError(k="screen"!==m.videoSource?b.OpenViduErrorName.DEVICE_ACCESS_DENIED:b.OpenViduErrorName.SCREEN_CAPTURE_DENIED,X))];case 19:return[3,21];case 20:return ee=Ae.sent(),R(ee),[3,21];case 21:return[2]}})})})},A.prototype.enableProdMode=function(){M.enableProdMode()},A.prototype.setAdvancedConfiguration=function(m){this.advancedConfiguration=m},A.prototype.onOrientationChanged=function(m){globalThis.addEventListener("orientationchange",m)},A.prototype.sendNewVideoDimensionsIfRequired=function(m,y,Y,R){var B,p,L,V,x=this,F=0,N=(null===(p=null===(B=null==m?void 0:m.stream)||void 0===B?void 0:B.videoDimensions)||void 0===p?void 0:p.width)||0,k=(null===(V=null===(L=null==m?void 0:m.stream)||void 0===L?void 0:L.videoDimensions)||void 0===V?void 0:V.height)||0,X=setInterval(function(){++F>R&&clearTimeout(X),m.getVideoDimensions().then(function(ee){(ee.width!==N||ee.height!==k)&&(clearTimeout(X),x.sendVideoDimensionsChangedEvent(m,y,N,k,ee.width,ee.height))})},Y)},A.prototype.sendVideoDimensionsChangedEvent=function(m,y,Y,R,x,B){var p=this;m.stream.videoDimensions={width:x||0,height:B||0},this.sendRequest("streamPropertyChanged",{streamId:m.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(m.stream.videoDimensions),reason:y},function(L,V){L?M.error("Error sending 'streamPropertyChanged' event",L):(p.session.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(p.session,m.stream,"videoDimensions",m.stream.videoDimensions,{width:Y,height:R},y)]),m.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(m,m.stream,"videoDimensions",m.stream.videoDimensions,{width:Y,height:R},y)]),p.session.sendVideoData(m))})},A.prototype.sendTrackChangedEvent=function(m,y,Y,R,x){var B=this,p={label:Y},L={label:R};m.stream.isLocalStreamPublished?this.sendRequest("streamPropertyChanged",{streamId:m.stream.streamId,property:x,newValue:JSON.stringify({newLabel:R}),reason:y},function(V,F){V?M.error("Error sending 'streamPropertyChanged' event",V):(B.session.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(B.session,m.stream,x,L,p,y)]),m.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(m,m.stream,x,L,p,y)]))}):(this.session.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(this.session,m.stream,x,L,p,y)]),m.emitEvent("streamPropertyChanged",[new C.StreamPropertyChangedEvent(m,m.stream,x,L,p,y)]))},A.prototype.generateMediaConstraints=function(m){var y=this;return new Promise(function(Y,R){var x={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},B=m.audioSource,p=m.videoSource;if((null===B||!1===B)&&(x.constraints.audio=!1),(null===p||!1===p)&&(x.constraints.video=!1),!1===x.constraints.audio&&!1===x.constraints.video)return R(new b.OpenViduError(b.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time"));if("undefined"!=typeof MediaStreamTrack&&B instanceof MediaStreamTrack&&(x.audioTrack=B),"undefined"!=typeof MediaStreamTrack&&p instanceof MediaStreamTrack&&(x.videoTrack=p),void 0===B&&(x.constraints.audio=!0),void 0===p&&(x.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==p&&!1!==p){if(m.resolution){var L=m.resolution.toLowerCase().split("x"),V=Number(L[0]),F=Number(L[1]);x.constraints.video={width:{ideal:V},height:{ideal:F}}}m.frameRate&&(x.constraints.video.frameRate={ideal:m.frameRate})}return y.configureDeviceIdOrScreensharing(x,m,Y,R),Y(x)})},A.prototype.startWs=function(m){var y={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:m,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this),ismasternodecrashed:this.isMasterNodeCrashed.bind(this)},rpc:{requestTimeout:1e4,heartbeatRequestTimeout:5e3,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),connectionPropertyChanged:this.session.onConnectionPropertyChanged.bind(this.session),networkQualityLevelChanged:this.session.onNetworkQualityLevelChangedChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session),masterNodeCrashedNotification:this.onMasterNodeCrashedNotification.bind(this),forciblyReconnectSubscriber:this.session.onForciblyReconnectSubscriber.bind(this.session)}};this.jsonRpcClient=new de.clients.JsonRpcClient(y)},A.prototype.onMasterNodeCrashedNotification=function(m){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},A.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},A.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},A.prototype.sendRequest=function(m,y,Y){var R;y&&y instanceof Function&&(Y=y,y={}),M.debug('Sending request: {method:"'+m+'", params: '+JSON.stringify(y)+"}"),null===(R=this.jsonRpcClient)||void 0===R||R.send(m,y,Y)},A.prototype.getWsUri=function(){return this.wsUri},A.prototype.getSecret=function(){return this.secret},A.prototype.getRecorder=function(){return this.recorder},A.prototype.generateAudioDeviceError=function(m,y){var Y,R;switch("Error"===m.name&&(m.name=m.constructor.name),m.name.toLowerCase()){case"notfounderror":return Y=b.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,R=m.toString(),new b.OpenViduError(Y,R);case"notallowederror":return Y=b.OpenViduErrorName.DEVICE_ACCESS_DENIED,R=m.toString(),new b.OpenViduError(Y,R);case"overconstrainederror":return"deviceid"===m.constraint.toLowerCase()?(Y=b.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,R="Audio input device with deviceId '"+y.audio.deviceId.exact+"' not found"):(Y=b.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,R="Audio input device doesn't support the value passed for constraint '"+m.constraint+"'"),new b.OpenViduError(Y,R);case"notreadableerror":return Y=b.OpenViduErrorName.DEVICE_ALREADY_IN_USE,R=m.toString(),new b.OpenViduError(Y,R);default:return new b.OpenViduError(b.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,m.toString())}},A.prototype.addAlreadyProvidedTracks=function(m,y,Y){return m.videoTrack&&(y.addTrack(m.videoTrack),Y&&(Y.lastVideoTrackConstraints=m.constraints.video?m.constraints.video:m.videoTrack.getConstraints())),m.audioTrack&&y.addTrack(m.audioTrack),y},A.prototype.configureDeviceIdOrScreensharing=function(m,y,Y,R){var x=this,B=y.audioSource,p=y.videoSource;if("string"==typeof B&&(m.constraints.audio={deviceId:{exact:B}}),"string"==typeof p){if(this.isScreenShare(p)){if(this.checkScreenSharingCapabilities()){if(W.isElectron()){var V="screen:",N=p.substr(p.indexOf(V)+V.length);return m.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:N}},Y(m)}if(!this.advancedConfiguration.screenShareChromeExtension||W.isFirefoxBrowser()||W.isFirefoxMobileBrowser()||navigator.mediaDevices.getDisplayMedia){if(navigator.mediaDevices.getDisplayMedia)return Y(m);var k=W.isFirefoxBrowser()||W.isFirefoxMobileBrowser()?y.videoSource:void 0;return void oe.getScreenId(k,function(X,ee,Ee){if(X){if("not-installed"===X){var _e=new b.OpenViduError(b.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,x.advancedConfiguration.screenShareChromeExtension?x.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");return M.error(_e),R(_e)}return"installed-disabled"===X?(_e=new b.OpenViduError(b.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),M.error(_e),R(_e)):"permission-denied"===X?(_e=new b.OpenViduError(b.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),M.error(_e),R(_e)):(_e=new b.OpenViduError(b.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),M.error(_e),M.error(X),R(_e))}return m.constraints.video=Ee.video,Y(m)})}return void Z.getScreenConstraints(function(X,ee){if(!(X||ee.mandatory&&"screen"===ee.mandatory.chromeMediaSource))return m.constraints.video=ee,Y(m);if("permission-denied"===X||"PermissionDeniedError"===X){var Ee=new b.OpenViduError(b.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");return M.error(Ee),R(Ee)}var De=x.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();Z.getChromeExtensionStatus(De,function(_e){if("installed-disabled"===_e){var Ae=new b.OpenViduError(b.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");return M.error(Ae),R(Ae)}if("not-installed"===_e){var Ye=new b.OpenViduError(b.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,x.advancedConfiguration.screenShareChromeExtension);return M.error(Ye),R(Ye)}})})}var L=new b.OpenViduError(b.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: "+W.getName()+" "+W.getVersion());return M.error(L),R(L)}this.setVideoSource(m,p)}},A.prototype.setVideoSource=function(m,y){m.constraints.video||(m.constraints.video={}),m.constraints.video.deviceId={exact:y}},A.prototype.disconnectCallback=function(){M.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},A.prototype.reconnectingCallback=function(){M.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},A.prototype.reconnectWebsocketThroughRpcConnectMethod=function(m){var y=this;this.sendRequest("connect",{sessionId:m,reconnect:!0},function(Y,R){if(Y)if(y.isMasterNodeCrashed())M.warn("Master Node has crashed!");else{M.error(Y);var x=function(p,L){M.warn(L),y.session.onLostConnection(p),y.jsonRpcClient.close(4101,"Reconnection fault: "+L)};40007===Y.code&&"reconnection error"===Y.message&&console.error("Invalid RPC sessionId. Client network disconnection or Master Node crash"),-1===y.life?x("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):y.sendRequest("sessionStatus",{sessionId:y.session.sessionId},function(p,L){null!=p?console.error("Error checking session status",p):y.life===L.life?x("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):x("nodeCrashed","WS successfully reconnected to OpenVidu Server but your Master Node crashed")})}else y.jsonRpcClient.resetPing(),y.session.onRecoveredConnection()})},A.prototype.reconnectedCallback=function(){if(M.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.reconnectWebsocketThroughRpcConnectMethod(this.session.connection.rpcSessionId);else{M.warn("There was no previous connection when running reconnection callback");var m=new P.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[m]),m.callDefaultBehavior()}else alert("Connection error. Please reload page.")},A.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},A.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof w.Session||(M.warn("Session instance not found"),!1)},A.prototype.isScreenShare=function(m){return"screen"===m||"window"===m||W.isElectron()&&m.startsWith("screen:")},A}();te.OpenVidu=J},4302:function(ke,te,U){"use strict";var de,S=this&&this.__extends||(de=function(z,M){return(de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,J){W.__proto__=J}||function(W,J){for(var A in J)Object.prototype.hasOwnProperty.call(J,A)&&(W[A]=J[A])})(z,M)},function(z,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=z}de(z,M),z.prototype=null===M?Object.create(M):(W.prototype=M.prototype,new W)}),q=this&&this.__awaiter||function(de,z,M,W){return new(M||(M=Promise))(function(A,m){function y(x){try{R(W.next(x))}catch(B){m(B)}}function Y(x){try{R(W.throw(x))}catch(B){m(B)}}function R(x){x.done?A(x.value):function J(A){return A instanceof M?A:new M(function(m){m(A)})}(x.value).then(y,Y)}R((W=W.apply(de,z||[])).next())})},j=this&&this.__generator||function(de,z){var W,J,A,m,M={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return m={next:y(0),throw:y(1),return:y(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function y(R){return function(x){return function Y(R){if(W)throw new TypeError("Generator is already executing.");for(;M;)try{if(W=1,J&&(A=2&R[0]?J.return:R[0]?J.throw||((A=J.return)&&A.call(J),0):J.next)&&!(A=A.call(J,R[1])).done)return A;switch(J=0,A&&(R=[2&R[0],A.value]),R[0]){case 0:case 1:A=R;break;case 4:return M.label++,{value:R[1],done:!1};case 5:M.label++,J=R[1],R=[0];continue;case 7:R=M.ops.pop(),M.trys.pop();continue;default:if(!(A=(A=M.trys).length>0&&A[A.length-1])&&(6===R[0]||2===R[0])){M=0;continue}if(3===R[0]&&(!A||R[1]>A[0]&&R[1]<A[3])){M.label=R[1];break}if(6===R[0]&&M.label<A[1]){M.label=A[1],A=R;break}if(A&&M.label<A[2]){M.label=A[2],M.ops.push(R);break}A[2]&&M.ops.pop(),M.trys.pop();continue}R=z.call(de,M)}catch(x){R=[6,x],J=0}finally{W=A=0}if(5&R[0])throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}([R,x])}}};Object.defineProperty(te,"__esModule",{value:!0}),te.Publisher=void 0;var H,E=U(5607),w=U(8770),P=U(7373),C=U(3980),b=U(9383),O=U(9303),D=U(1829),$=U(1171),oe=U(7879),Z=D.OpenViduLogger.getInstance(),pe=function(de){function z(M,W,J){var A=de.call(this,new w.Stream(J.session?J.session:new E.Session(J),{publisherProperties:W,mediaConstraints:{}}),M)||this;return A.accessAllowed=!1,A.isSubscribedToRemote=!1,A.accessDenied=!1,H=$.PlatformUtils.getInstance(),A.properties=W,A.openvidu=J,A.stream.ee.on("local-stream-destroyed",function(m){A.stream.isLocalStreamPublished=!1;var y=new C.StreamEvent(!0,A,"streamDestroyed",A.stream,m);A.emitEvent("streamDestroyed",[y]),y.callDefaultBehavior()}),A}return S(z,de),z.prototype.publishAudio=function(M){var W=this;this.stream.audioActive!==M&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getAudioTracks().forEach(function(A){A.enabled=M}),!!this.session&&!!this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:M,reason:"publishAudio"},function(A,m){A?Z.error("Error sending 'streamPropertyChanged' event",A):(W.session.emitEvent("streamPropertyChanged",[new b.StreamPropertyChangedEvent(W.session,W.stream,"audioActive",M,!M,"publishAudio")]),W.emitEvent("streamPropertyChanged",[new b.StreamPropertyChangedEvent(W,W.stream,"audioActive",M,!M,"publishAudio")]),W.session.sendVideoData(W.stream.streamManager))}),this.stream.audioActive=M,Z.info("'Publisher' has "+(M?"published":"unpublished")+" its audio stream"))},z.prototype.publishVideo=function(M,W){var J=this;return new Promise(function(A,m){return q(J,void 0,void 0,function(){var y,Y,R,x,B,p,L=this;return j(this,function(V){switch(V.label){case 0:return this.stream.videoActive===M?[3,9]:(y=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream(),Y=!1,y.getVideoTracks().forEach(function(F){F.enabled=M,M||!0!==W?M&&"ended"===F.readyState&&(Y=!0):F.stop()}),!M&&!0===W&&this.stream.filter&&this.stream.filter.type.startsWith("VB:")?(this.stream.lastVBFilter=this.stream.filter,[4,this.stream.removeFilterAux(!0)]):[3,2]);case 1:V.sent(),V.label=2;case 2:return Y?(R=y.getVideoTracks()[0],y.removeTrack(R),x=function(F){return q(L,void 0,void 0,function(){var N=this;return j(this,function(k){switch(k.label){case 0:return y.addTrack(F),this.stream.isLocalStreamPublished?[4,this.replaceTrackInRtcRtpSender(F)]:[3,2];case 1:k.sent(),k.label=2;case 2:return this.stream.lastVBFilter&&setTimeout(function(){return q(N,void 0,void 0,function(){var X,ee;return j(this,function(Ee){switch(Ee.label){case 0:return X=this.stream.lastVBFilter.options,!!(ee=this.stream.lastVBFilter.lastExecMethod)&&"update"===ee.method&&(X=Object.assign({},X,ee.params)),[4,this.stream.applyFilter(this.stream.lastVBFilter.type,X)];case 1:return Ee.sent(),delete this.stream.lastVBFilter,[2]}})})},1),[2]}})})},W&&W instanceof MediaStreamTrack?[4,x(W)]:[3,4]):[3,8];case 3:return V.sent(),[3,8];case 4:return V.trys.push([4,7,,8]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:this.stream.lastVideoTrackConstraints})];case 5:return B=V.sent(),[4,x(B.getVideoTracks()[0])];case 6:return V.sent(),[3,8];case 7:return p=V.sent(),[2,m(p)];case 8:return!!this.session&&!!this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:M,reason:"publishVideo"},function(F,N){F?Z.error("Error sending 'streamPropertyChanged' event",F):(L.session.emitEvent("streamPropertyChanged",[new b.StreamPropertyChangedEvent(L.session,L.stream,"videoActive",M,!M,"publishVideo")]),L.emitEvent("streamPropertyChanged",[new b.StreamPropertyChangedEvent(L,L.stream,"videoActive",M,!M,"publishVideo")]),L.session.sendVideoData(L.stream.streamManager))}),this.stream.videoActive=M,Z.info("'Publisher' has "+(M?"published":"unpublished")+" its video stream"),[2,A()];case 9:return[2]}})})})},z.prototype.subscribeToRemote=function(M){this.isSubscribedToRemote=M=void 0===M||M,this.stream.subscribeToMyRemote(M)},z.prototype.on=function(M,W){var J=this;return de.prototype.on.call(this,M,W),"streamCreated"===M&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new C.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",function(){J.emitEvent("streamCreated",[new C.StreamEvent(!1,J,"streamCreated",J.stream,"")])})),"accessAllowed"===M&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===M&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},z.prototype.once=function(M,W){var J=this;return de.prototype.once.call(this,M,W),"streamCreated"===M&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new C.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",function(){J.emitEvent("streamCreated",[new C.StreamEvent(!1,J,"streamCreated",J.stream,"")])})),"accessAllowed"===M&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===M&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},z.prototype.off=function(M,W){return de.prototype.off.call(this,M,W),this},z.prototype.replaceTrack=function(M){return q(this,void 0,void 0,function(){return j(this,function(W){return[2,this.replaceTrackAux(M,!0)]})})},z.prototype.initialize=function(){var M=this;return new Promise(function(W,J){return q(M,void 0,void 0,function(){var A,m,y,Y,R,x,B,p,L,F,N,k,X,Ee,De,ee=this;return j(this,function(_e){switch(_e.label){case 0:A={},m={},y=2e3,R=function(Ae){return ee.accessDenied=!0,ee.accessAllowed=!1,Z.error("Publisher initialization failed. ".concat(Ae.name,": ").concat(Ae.message)),J(Ae)},x=function(Ae){var Ye,Be;if(ee.accessAllowed=!0,ee.accessDenied=!1,"undefined"!=typeof MediaStreamTrack&&ee.properties.audioSource instanceof MediaStreamTrack&&(Ae.removeTrack(Ae.getAudioTracks()[0]),Ae.addTrack(ee.properties.audioSource)),"undefined"!=typeof MediaStreamTrack&&ee.properties.videoSource instanceof MediaStreamTrack&&(Ae.removeTrack(Ae.getVideoTracks()[0]),Ae.addTrack(ee.properties.videoSource)),Ae.getAudioTracks()[0]){var qe=null!=ee.stream.audioActive?ee.stream.audioActive:!!ee.stream.outboundStreamOpts.publisherProperties.publishAudio;Ae.getAudioTracks()[0].enabled=qe}Ae.getVideoTracks()[0]&&(qe=null!=ee.stream.videoActive?ee.stream.videoActive:!!ee.stream.outboundStreamOpts.publisherProperties.publishVideo,Ae.getVideoTracks()[0].enabled=qe);for(var Et=0,ze=Ae.getAudioTracks();Et<ze.length;Et++)(null===(Ye=(he=ze[Et]).contentHint)||void 0===Ye?void 0:Ye.length)||(he.contentHint="",Z.info("Audio track Content Hint set: '".concat(he.contentHint,"'")));for(var tn=0,et=Ae.getVideoTracks();tn<et.length;tn++){var he;if(!(null===(Be=(he=et[tn]).contentHint)||void 0===Be?void 0:Be.length)){switch(ee.stream.typeOfVideo){case oe.TypeOfVideo.SCREEN:he.contentHint="detail";break;case oe.TypeOfVideo.CUSTOM:Z.warn("CUSTOM type video track was provided without Content Hint!"),he.contentHint="motion";break;default:he.contentHint="motion"}Z.info("Video track Content Hint set: '".concat(he.contentHint,"'"))}}return ee.initializeVideoReference(Ae),ee.stream.displayMyRemote()||ee.stream.updateMediaStreamInVideos(),delete ee.firstVideoElement,ee.stream.isSendVideo()?ee.getVideoDimensions().then(function(sn){ee.stream.videoDimensions={width:sn.width,height:sn.height},ee.stream.isSendScreen()&&(ee.screenShareResizeInterval=setInterval(function(){var ue=Ae.getVideoTracks()[0].getSettings(),ve=ue.width,ce=ue.height;ee.stream.isLocalStreamPublished&&(null!=ve&&ve!==ee.stream.videoDimensions.width||null!=ce&&ce!==ee.stream.videoDimensions.height)&&ee.openvidu.sendVideoDimensionsChangedEvent(ee,"screenResized",ee.stream.videoDimensions.width,ee.stream.videoDimensions.height,ve||0,ce||0)},650)),ee.stream.isLocalStreamReadyToPublish=!0,ee.stream.ee.emitEvent("stream-ready-to-publish",[])}):(ee.stream.isLocalStreamReadyToPublish=!0,ee.stream.ee.emitEvent("stream-ready-to-publish",[])),W()},B=function(Ae,Ye){return q(ee,void 0,void 0,function(){var Be,qe;return j(this,function(Et){switch(Et.label){case 0:if(this.clearPermissionDialogTimer(Y,y),!this.stream.isSendScreen()||!this.stream.isSendAudio())return[3,5];m.audio=Ye,m.video=!1,Y=Date.now(),this.setPermissionDialogTimer(y),Et.label=1;case 1:return Et.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia(m)];case 2:return Be=Et.sent(),this.clearPermissionDialogTimer(Y,y),Ae.addTrack(Be.getAudioTracks()[0]),x(Ae),[3,4];case 3:return qe=Et.sent(),this.clearPermissionDialogTimer(Y,y),Ae.getAudioTracks().forEach(function(ze){ze.stop()}),Ae.getVideoTracks().forEach(function(ze){ze.stop()}),R(this.openvidu.generateAudioDeviceError(qe,A)),[2];case 4:return[3,6];case 5:x(Ae),Et.label=6;case 6:return[2]}})})},p=function(Ae){return q(ee,void 0,void 0,function(){var Ye,Be,Et,he;return j(this,function(tn){switch(tn.label){case 0:switch(Z.error("getMediaError: ".concat(Ae.toString())),this.clearPermissionDialogTimer(Y,y),"Error"===Ae.name&&(Ae.name=Ae.constructor.name),Ae.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 tn.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:A.video})];case 2:return tn.sent().getVideoTracks().forEach(function(et){et.stop()}),Ye=O.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,Be=Ae.toString(),R(new O.OpenViduError(Ye,Be)),[3,4];case 3:return Et=tn.sent(),Ye=O.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,Be=Et.toString(),R(new O.OpenViduError(Ye,Be)),[3,4];case 4:case 9:return[3,12];case 5:return Ye=this.stream.isSendScreen()?O.OpenViduErrorName.SCREEN_CAPTURE_DENIED:O.OpenViduErrorName.DEVICE_ACCESS_DENIED,Be=Ae.toString(),R(new O.OpenViduError(Ye,Be)),[3,12];case 6:return tn.trys.push([6,8,,9]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:A.video})];case 7:return tn.sent().getVideoTracks().forEach(function(et){et.stop()}),"deviceid"===Ae.constraint.toLowerCase()?(Ye=O.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,Be="Audio input device with deviceId '"+A.audio.deviceId.exact+"' not found"):(Ye=O.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,Be="Audio input device doesn't support the value passed for constraint '"+Ae.constraint+"'"),R(new O.OpenViduError(Ye,Be)),[3,9];case 8:return"deviceid"===(he=tn.sent()).constraint.toLowerCase()?(Ye=O.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,Be="Video input device with deviceId '"+A.video.deviceId.exact+"' not found"):(Ye=O.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,Be="Video input device doesn't support the value passed for constraint '"+he.constraint+"'"),R(new O.OpenViduError(Ye,Be)),[3,9];case 10:return Ye=O.OpenViduErrorName.DEVICE_ALREADY_IN_USE,Be=Ae.toString(),R(new O.OpenViduError(Ye,Be)),[3,12];case 11:return Ye=O.OpenViduErrorName.GENERIC_ERROR,Be=Ae.toString(),R(new O.OpenViduError(Ye,Be)),[3,12];case 12:return[2]}})})},_e.label=1;case 1:return _e.trys.push([1,14,,15]),[4,this.openvidu.generateMediaConstraints(this.properties)];case 2:return(L=_e.sent()).videoTrack&&L.audioTrack||L.audioTrack&&!1===(null===(Ee=L.constraints)||void 0===Ee?void 0:Ee.video)||L.videoTrack&&!1===(null===(De=L.constraints)||void 0===De?void 0:De.audio)?(x(this.openvidu.addAlreadyProvidedTracks(L,new MediaStream,this.stream)),[3,13]):[3,3];case 3:this.stream.setOutboundStreamOptions({mediaConstraints:A=L.constraints,publisherProperties:this.properties}),F=void 0===A.audio||A.audio,m.audio=!this.stream.isSendScreen()&&F,m.video=A.video,Y=Date.now(),this.setPermissionDialogTimer(y),_e.label=4;case 4:return _e.trys.push([4,11,,13]),this.stream.isSendScreen()&&navigator.mediaDevices.getDisplayMedia&&!H.isElectron()?[4,navigator.mediaDevices.getDisplayMedia({video:!0})]:[3,7];case 5:return N=_e.sent(),this.openvidu.addAlreadyProvidedTracks(L,N),[4,B(N,F)];case 6:return _e.sent(),[3,10];case 7:return this.stream.lastVideoTrackConstraints=m.video,[4,navigator.mediaDevices.getUserMedia(m)];case 8:return N=_e.sent(),this.openvidu.addAlreadyProvidedTracks(L,N,this.stream),[4,B(N,F)];case 9:_e.sent(),_e.label=10;case 10:return[3,13];case 11:return k=_e.sent(),[4,p(k)];case 12:return _e.sent(),[3,13];case 13:return[3,15];case 14:return X=_e.sent(),R(X),[3,15];case 15:return[2]}})})})},z.prototype.replaceTrackAux=function(M,W){return q(this,void 0,void 0,function(){var J,A;return j(this,function(m){switch(m.label){case 0:J=M.enabled,"video"===M.kind?M.enabled=this.stream.videoActive:"audio"===M.kind&&(M.enabled=this.stream.audioActive),m.label=1;case 1:return m.trys.push([1,5,,6]),this.stream.isLocalStreamPublished?(this.replaceTrackInMediaStream(M,W),[4,this.replaceTrackInRtcRtpSender(M)]):[3,3];case 2:return[2,m.sent()];case 3:return[2,this.replaceTrackInMediaStream(M,W)];case 4:return[3,6];case 5:throw A=m.sent(),M.enabled=J,A;case 6:return[2]}})})},z.prototype.getVideoDimensions=function(){var M=this;return new Promise(function(W,J){var m,A=H.isIonicIos()||H.isIOSWithSafari(),y=function(){var Y,R;if("function"==typeof M.stream.getMediaStream().getVideoTracks()[0].getSettings){var x=M.stream.getMediaStream().getVideoTracks()[0].getSettings();Y=x.width||M.videoReference.videoWidth,R=x.height||M.videoReference.videoHeight}else Z.warn("MediaStreamTrack does not have getSettings method on "+H.getDescription()),Y=M.videoReference.videoWidth,R=M.videoReference.videoHeight;return null!=m&&M.videoReference.removeEventListener("loadedmetadata",m),A&&document.body.removeChild(M.videoReference),W({width:Y,height:R})};M.videoReference.readyState>=1?y():(M.videoReference.addEventListener("loadedmetadata",m=function(){if(M.videoReference.videoWidth)y();else var Y=setInterval(function(){M.videoReference.videoWidth&&(clearInterval(Y),y())},40)}),A&&document.body.appendChild(M.videoReference))})},z.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},z.prototype.initializeVideoReference=function(M){this.videoReference=document.createElement("video"),this.videoReference.style.display="none",this.videoReference.muted=!0,this.videoReference.autoplay=!0,this.videoReference.controls=!1,(H.isSafariBrowser()||H.isIPhoneOrIPad()&&(H.isChromeMobileBrowser()||H.isEdgeMobileBrowser()||H.isOperaMobileBrowser()||H.isFirefoxMobileBrowser()))&&(this.videoReference.playsInline=!0),this.stream.setMediaStream(M),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=this.stream.getMediaStream()},z.prototype.replaceTrackInMediaStream=function(M,W){var A,J=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream();"video"===M.kind?(A=J.getVideoTracks()[0],W&&(this.stream.lastVideoTrackConstraints=M.getConstraints())):A=J.getAudioTracks()[0],A.enabled=!1,A.stop(),J.removeTrack(A),J.addTrack(M);var m={oldLabel:(null==A?void 0:A.label)||"",newLabel:(null==M?void 0:M.label)||""};"video"===M.kind&&W?(this.openvidu.sendNewVideoDimensionsIfRequired(this,"trackReplaced",50,30),this.openvidu.sendTrackChangedEvent(this,"trackReplaced",m.oldLabel,m.newLabel,"videoActive"),this.stream.isLocalStreamPublished&&this.session.sendVideoData(this.stream.streamManager,5,!0,5)):"audio"===M.kind&&W&&this.openvidu.sendTrackChangedEvent(this,"trackReplaced",m.oldLabel,m.newLabel,"audioActive"),"audio"===M.kind&&(this.stream.disableHarkSpeakingEvent(!1),this.stream.disableHarkStoppedSpeakingEvent(!1),this.stream.disableHarkVolumeChangeEvent(!1),this.stream.initHarkEvents())},z.prototype.setPermissionDialogTimer=function(M){var W=this;this.permissionDialogTimeout=setTimeout(function(){W.emitEvent("accessDialogOpened",[])},M)},z.prototype.clearPermissionDialogTimer=function(M,W){clearTimeout(this.permissionDialogTimeout),Date.now()-M>W&&this.emitEvent("accessDialogClosed",[])},z.prototype.replaceTrackInRtcRtpSender=function(M){return q(this,void 0,void 0,function(){var W,J;return j(this,function(A){switch(A.label){case 0:if(W=this.stream.getRTCPeerConnection().getSenders(),"video"===M.kind){if(!(J=W.find(function(m){return!!m.track&&"video"===m.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}else{if("audio"!==M.kind)throw new Error("Unknown track kind "+M.kind);if(!(J=W.find(function(m){return!!m.track&&"audio"===m.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}return[4,J.replaceTrack(M)];case 1:return A.sent(),[2]}})})},z}(P.StreamManager);te.Publisher=pe},5607:function(ke,te,U){"use strict";var x,S=this&&this.__extends||(x=function(B,p){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,V){L.__proto__=V}||function(L,V){for(var F in V)Object.prototype.hasOwnProperty.call(V,F)&&(L[F]=V[F])})(B,p)},function(B,p){if("function"!=typeof p&&null!==p)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function L(){this.constructor=B}x(B,p),B.prototype=null===p?Object.create(p):(L.prototype=p.prototype,new L)}),q=this&&this.__awaiter||function(x,B,p,L){return new(p||(p=Promise))(function(F,N){function k(Ee){try{ee(L.next(Ee))}catch(De){N(De)}}function X(Ee){try{ee(L.throw(Ee))}catch(De){N(De)}}function ee(Ee){Ee.done?F(Ee.value):function V(F){return F instanceof p?F:new p(function(N){N(F)})}(Ee.value).then(k,X)}ee((L=L.apply(x,B||[])).next())})},j=this&&this.__generator||function(x,B){var L,V,F,N,p={label:0,sent:function(){if(1&F[0])throw F[1];return F[1]},trys:[],ops:[]};return N={next:k(0),throw:k(1),return:k(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function k(ee){return function(Ee){return function X(ee){if(L)throw new TypeError("Generator is already executing.");for(;p;)try{if(L=1,V&&(F=2&ee[0]?V.return:ee[0]?V.throw||((F=V.return)&&F.call(V),0):V.next)&&!(F=F.call(V,ee[1])).done)return F;switch(V=0,F&&(ee=[2&ee[0],F.value]),ee[0]){case 0:case 1:F=ee;break;case 4:return p.label++,{value:ee[1],done:!1};case 5:p.label++,V=ee[1],ee=[0];continue;case 7:ee=p.ops.pop(),p.trys.pop();continue;default:if(!(F=(F=p.trys).length>0&&F[F.length-1])&&(6===ee[0]||2===ee[0])){p=0;continue}if(3===ee[0]&&(!F||ee[1]>F[0]&&ee[1]<F[3])){p.label=ee[1];break}if(6===ee[0]&&p.label<F[1]){p.label=F[1],F=ee;break}if(F&&p.label<F[2]){p.label=F[2],p.ops.push(ee);break}F[2]&&p.ops.pop(),p.trys.pop();continue}ee=B.call(x,p)}catch(Ee){ee=[6,Ee],V=0}finally{L=F=0}if(5&ee[0])throw ee[1];return{value:ee[0]?ee[1]:void 0,done:!0}}([ee,Ee])}}};Object.defineProperty(te,"__esModule",{value:!0}),te.Session=void 0;var Y,E=U(7576),w=U(5481),P=U(3343),C=U(2768),b=U(1698),O=U(5132),D=U(5449),$=U(1690),oe=U(1659),Z=U(3980),H=U(9383),pe=U(9005),de=U(9900),z=U(9303),M=U(7167),W=U(1829),J=U(1171),A=U(1892),m=U(9897),y=W.OpenViduLogger.getInstance(),R=function(x){function B(p){var L=x.call(this)||this;return L.streamManagers=[],L.remoteStreamsCreated=new Map,L.remoteConnections=new Map,Y=J.PlatformUtils.getInstance(),L.openvidu=p,L}return S(B,x),B.prototype.connect=function(p,L){var V=this;return new Promise(function(F,N){if(V.processToken(p),!V.openvidu.checkSystemRequirements())return N(new z.OpenViduError(z.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+Y.getName()+" (version "+Y.getVersion()+") for "+Y.getFamily()+" is not supported in OpenVidu"));V.options={sessionId:V.sessionId,participantId:p,metadata:L?V.stringClientMetadata(L):""},V.connectAux(p).then(function(){return F()}).catch(function(k){return N(k)})})},B.prototype.disconnect=function(){this.leave(!1,"disconnect")},B.prototype.subscribe=function(p,L,V,F){var N={};N=V&&"function"!=typeof V?{insertMode:void 0!==V.insertMode?"string"==typeof V.insertMode?M.VideoInsertMode[V.insertMode]:N.insertMode:M.VideoInsertMode.APPEND,subscribeToAudio:void 0===V.subscribeToAudio||V.subscribeToAudio,subscribeToVideo:void 0===V.subscribeToVideo||V.subscribeToVideo}:{insertMode:M.VideoInsertMode.APPEND,subscribeToAudio:!0,subscribeToVideo:!0};var k=void 0;if(V&&"function"==typeof V?k=V:F&&(k=F),!this.sessionConnected())throw void 0!==k&&k(this.notConnectedError()),this.notConnectedError();y.info("Subscribing to "+p.connection.connectionId),p.subscribe().then(function(){y.info("Subscribed correctly to "+p.connection.connectionId),void 0!==k&&k(void 0)}).catch(function(ee){void 0!==k&&k(ee)});var X=new P.Subscriber(p,L,N);return X.targetElement&&p.streamManager.createVideoElement(X.targetElement,N.insertMode),X},B.prototype.subscribeAsync=function(p,L,V){var F=this;return new Promise(function(N,k){if(!F.sessionConnected())return k(F.notConnectedError());var X,ee=function(Ee){return Ee?k(Ee):N(X)};X=V?F.subscribe(p,L,V,ee):F.subscribe(p,L,ee)})},B.prototype.unsubscribe=function(p){var L=this;return new Promise(function(V,F){if(!L.sessionConnected())return F(L.notConnectedError());var N=p.stream.connection.connectionId;y.info("Unsubscribing from "+N),L.openvidu.sendRequest("unsubscribeFromVideo",{sender:p.stream.connection.connectionId},function(k,X){return k?(y.error("Error unsubscribing from "+N),F(k)):(y.info("Unsubscribed correctly from "+N),p.stream.streamManager.removeAllVideos(),p.stream.disposeWebRtcPeer(),p.stream.disposeMediaStream(),V())})})},B.prototype.publish=function(p){var L=this;return new Promise(function(V,F){if(!L.sessionConnected())return F(L.notConnectedError());p.session=L,p.stream.session=L,p.stream.publishedOnce?p.initialize().then(function(){L.connection.addStream(p.stream),p.reestablishStreamPlayingEvent(),p.stream.publish().then(function(){return L.sendVideoData(p,8,!0,5),V()}).catch(function(N){return F(N)})}).catch(function(N){return F(N)}):(L.connection.addStream(p.stream),p.stream.publish().then(function(){return L.sendVideoData(p,8,!0,5),V()}).catch(function(N){return F(N)}))})},B.prototype.unpublish=function(p){var L=this;return new Promise(function(V,F){if(!L.sessionConnected())throw L.notConnectedError();var N=p.stream;return N.connection?N.connection!==L.connection?F(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")):(y.info("Unpublishing local media ("+N.connection.connectionId+")"),void L.openvidu.sendRequest("unpublishVideo",function(k,X){if(k)return F(k);y.info("Media unpublished correctly"),N.disposeWebRtcPeer(),N.connection.stream==N&&delete N.connection.stream;var ee=new Z.StreamEvent(!0,p,"streamDestroyed",p.stream,"unpublish");return p.emitEvent("streamDestroyed",[ee]),ee.callDefaultBehavior(),V()})):F(new Error("The associated Connection object of this Publisher is null"))})},B.prototype.forceDisconnect=function(p){var L=this;return new Promise(function(V,F){if(!L.sessionConnected())return F(L.notConnectedError());y.info("Forcing disconnect for connection "+p.connectionId),L.openvidu.sendRequest("forceDisconnect",{connectionId:p.connectionId},function(N,k){return N?(y.error("Error forcing disconnect for Connection "+p.connectionId,N),F(401===N.code?new z.OpenViduError(z.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):N)):(y.info("Forcing disconnect correctly for Connection "+p.connectionId),V())})})},B.prototype.forceUnpublish=function(p){var L=this;return new Promise(function(V,F){if(!L.sessionConnected())return F(L.notConnectedError());y.info("Forcing unpublish for stream "+p.streamId),L.openvidu.sendRequest("forceUnpublish",{streamId:p.streamId},function(N,k){return N?(y.error("Error forcing unpublish for Stream "+p.streamId,N),F(401===N.code?new z.OpenViduError(z.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):N)):(y.info("Forcing unpublish correctly for Stream "+p.streamId),V())})})},B.prototype.signal=function(p){var L=this;return new Promise(function(V,F){if(!L.sessionConnected())return F(L.notConnectedError());var N={};if(p.to&&p.to.length>0){var k=[];p.to.forEach(function(ee){ee.connectionId&&k.push(ee.connectionId)}),N.to=k}else N.to=[];N.data=p.data?p.data:"";var X=p.type?p.type:"signal";X&&"signal:"!==X.substring(0,7)&&(X="signal:"+X),N.type=X,L.openvidu.sendRequest("sendMessage",{message:JSON.stringify(N)},function(ee,Ee){return ee?F(ee):V()})})},B.prototype.on=function(p,L){var V,F,N,k;return x.prototype.onAux.call(this,p,"Event '"+p+"' triggered by 'Session'",L),"publisherStartSpeaking"===p&&(this.remoteConnections.forEach(function(X){var ee;(null===(ee=X.stream)||void 0===ee?void 0:ee.hasAudio)&&X.stream.enableHarkSpeakingEvent()}),(null===(F=null===(V=this.connection)||void 0===V?void 0:V.stream)||void 0===F?void 0:F.hasAudio)&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===p&&(this.remoteConnections.forEach(function(X){var ee;(null===(ee=X.stream)||void 0===ee?void 0:ee.hasAudio)&&X.stream.enableHarkStoppedSpeakingEvent()}),(null===(k=null===(N=this.connection)||void 0===N?void 0:N.stream)||void 0===k?void 0:k.hasAudio)&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},B.prototype.once=function(p,L){var V,F,N,k;return x.prototype.onceAux.call(this,p,"Event '"+p+"' triggered once by 'Session'",L),"publisherStartSpeaking"===p&&(this.remoteConnections.forEach(function(X){var ee;(null===(ee=X.stream)||void 0===ee?void 0:ee.hasAudio)&&X.stream.enableOnceHarkSpeakingEvent()}),(null===(F=null===(V=this.connection)||void 0===V?void 0:V.stream)||void 0===F?void 0:F.hasAudio)&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===p&&(this.remoteConnections.forEach(function(X){var ee;(null===(ee=X.stream)||void 0===ee?void 0:ee.hasAudio)&&X.stream.enableOnceHarkStoppedSpeakingEvent()}),(null===(k=null===(N=this.connection)||void 0===N?void 0:N.stream)||void 0===k?void 0:k.hasAudio)&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},B.prototype.off=function(p,L){var F,N,k,X,V=this;return x.prototype.offAux.call(this,p,L),"publisherStartSpeaking"===p&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(ee){var Ee;(null===(Ee=ee.stream)||void 0===Ee?void 0:Ee.streamManager)&&(V.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,ee.stream.streamManager)||ee.stream.disableHarkSpeakingEvent(!1))}),(null===(N=null===(F=this.connection)||void 0===F?void 0:F.stream)||void 0===N?void 0:N.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===p&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(ee){var Ee;(null===(Ee=ee.stream)||void 0===Ee?void 0:Ee.streamManager)&&(V.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,ee.stream.streamManager)||ee.stream.disableHarkStoppedSpeakingEvent(!1))}),(null===(X=null===(k=this.connection)||void 0===k?void 0:k.stream)||void 0===X?void 0:X.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},B.prototype.onParticipantJoined=function(p){var L=this;this.getConnection(p.id,"").then(function(V){y.warn("Connection "+V.connectionId+" already exists in connections list")}).catch(function(V){var F=new E.Connection(L,p);L.remoteConnections.set(p.id,F),L.ee.emitEvent("connectionCreated",[new b.ConnectionEvent(!1,L,"connectionCreated",F,"")])})},B.prototype.onParticipantLeft=function(p){var L=this;this.getRemoteConnection(p.connectionId,"onParticipantLeft").then(function(V){if(V.stream){var F=V.stream,N=new Z.StreamEvent(!0,L,"streamDestroyed",F,p.reason);L.ee.emitEvent("streamDestroyed",[N]),N.callDefaultBehavior(),L.remoteStreamsCreated.delete(F.streamId)}L.remoteConnections.delete(V.connectionId),L.ee.emitEvent("connectionDestroyed",[new b.ConnectionEvent(!1,L,"connectionDestroyed",V,p.reason)])}).catch(function(V){y.error(V)})},B.prototype.onParticipantPublished=function(p){var F,L=this,V=function(N){L.remoteConnections.set(N.connectionId,N),L.remoteStreamsCreated.get(N.stream.streamId)||L.ee.emitEvent("streamCreated",[new Z.StreamEvent(!1,L,"streamCreated",N.stream,"")]),L.remoteStreamsCreated.set(N.stream.streamId,!0)};this.getRemoteConnection(p.id,"onParticipantPublished").then(function(N){F=N,p.metadata=N.data,F.remoteOptions=p,F.initRemoteStreams(p.streams),V(F)}).catch(function(N){F=new E.Connection(L,p),V(F)})},B.prototype.onParticipantUnpublished=function(p){var L=this;p.connectionId===this.connection.connectionId?this.stopPublisherStream(p.reason):this.getRemoteConnection(p.connectionId,"onParticipantUnpublished").then(function(V){var F=new Z.StreamEvent(!0,L,"streamDestroyed",V.stream,p.reason);L.ee.emitEvent("streamDestroyed",[F]),F.callDefaultBehavior();var N=V.stream.streamId;L.remoteStreamsCreated.delete(N),V.removeStream(N)}).catch(function(V){y.error(V)})},B.prototype.onParticipantEvicted=function(p){p.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,p.reason)},B.prototype.onNewMessage=function(p){var L=this;y.info("New signal: "+JSON.stringify(p));var V=p.type?p.type.replace(/^(signal:)/,""):void 0;p.from?this.getConnection(p.from,"Connection '"+p.from+"' unknown when 'onNewMessage'. Existing remote connections: "+JSON.stringify(this.remoteConnections.keys())+". Existing local connection: "+this.connection.connectionId).then(function(F){L.ee.emitEvent("signal",[new oe.SignalEvent(L,V,p.data,F)]),p.type&&"signal"!==p.type&&L.ee.emitEvent(p.type,[new oe.SignalEvent(L,V,p.data,F)])}).catch(function(F){y.error(F)}):(this.ee.emitEvent("signal",[new oe.SignalEvent(this,V,p.data,void 0)]),p.type&&"signal"!==p.type&&this.ee.emitEvent(p.type,[new oe.SignalEvent(this,V,p.data,void 0)]))},B.prototype.onStreamPropertyChanged=function(p){var L=this,V=function(F){if(F.stream&&F.stream.streamId===p.streamId){var N=F.stream,k=void 0;switch(p.property){case"audioActive":k=N.audioActive,p.newValue="true"===p.newValue,N.audioActive=p.newValue;break;case"videoActive":k=N.videoActive,p.newValue="true"===p.newValue,N.videoActive=p.newValue;break;case"videoDimensions":k=N.videoDimensions,p.newValue=JSON.parse(JSON.parse(p.newValue)),N.videoDimensions=p.newValue;break;case"filter":k=N.filter,p.newValue=Object.keys(p.newValue).length>0?p.newValue:void 0,void 0!==p.newValue?(N.filter=new w.Filter(p.newValue.type,p.newValue.options),N.filter.stream=N,p.newValue.lastExecMethod&&(N.filter.lastExecMethod=p.newValue.lastExecMethod)):delete N.filter,p.newValue=N.filter}L.ee.emitEvent("streamPropertyChanged",[new H.StreamPropertyChangedEvent(L,N,p.property,p.newValue,k,p.reason)]),N.streamManager&&N.streamManager.emitEvent("streamPropertyChanged",[new H.StreamPropertyChangedEvent(N.streamManager,N,p.property,p.newValue,k,p.reason)])}else y.error("No stream with streamId '"+p.streamId+"' found for connection '"+p.connectionId+"' on 'streamPropertyChanged' event")};p.connectionId===this.connection.connectionId?V(this.connection):this.getRemoteConnection(p.connectionId,"onStreamPropertyChanged").then(function(F){V(F)}).catch(function(F){y.error(F)})},B.prototype.onConnectionPropertyChanged=function(p){var L;switch(p.property){case"role":L=this.connection.role.slice(),this.connection.role=p.newValue,this.connection.localOptions.role=p.newValue;break;case"record":L=this.connection.record,p.newValue="true"===p.newValue,this.connection.record=p.newValue,this.connection.localOptions.record=p.newValue}this.ee.emitEvent("connectionPropertyChanged",[new pe.ConnectionPropertyChangedEvent(this,this.connection,p.property,p.newValue,L)])},B.prototype.onNetworkQualityLevelChangedChanged=function(p){var L=this;p.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new de.NetworkQualityLevelChangedEvent(this,p.newValue,p.oldValue,this.connection)]):this.getConnection(p.connectionId,"Connection not found for connectionId "+p.connectionId).then(function(V){L.ee.emitEvent("networkQualityLevelChanged",[new de.NetworkQualityLevelChangedEvent(L,p.newValue,p.oldValue,V)])}).catch(function(V){y.error(V)})},B.prototype.recvIceCandidate=function(p){var V=new RTCIceCandidate({candidate:p.candidate,sdpMLineIndex:p.sdpMLineIndex,sdpMid:p.sdpMid});this.getConnection(p.senderConnectionId,"Connection not found for connectionId "+p.senderConnectionId+" owning endpoint "+p.endpointName+". Ice candidate will be ignored: "+V).then(function(F){var N=F.stream;N.getWebRtcPeer().addIceCandidate(V).catch(function(k){y.error("Error adding candidate for "+N.streamId+" stream of endpoint "+p.endpointName+": "+k)})}).catch(function(F){y.error(F)})},B.prototype.onSessionClosed=function(p){y.info("Session closed: "+JSON.stringify(p));var L=p.sessionId;void 0!==L?this.ee.emitEvent("session-closed",[{session:L}]):y.warn("Session undefined on session closed",p)},B.prototype.onLostConnection=function(p){y.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,p)},B.prototype.onRecoveredConnection=function(){y.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},B.prototype.onMediaError=function(p){y.error("Media error: "+JSON.stringify(p));var L=p.error;L?this.ee.emitEvent("error-media",[{error:L}]):y.warn("Received undefined media error:",p)},B.prototype.onRecordingStarted=function(p){this.ee.emitEvent("recordingStarted",[new D.RecordingEvent(this,"recordingStarted",p.id,p.name)])},B.prototype.onRecordingStopped=function(p){this.ee.emitEvent("recordingStopped",[new D.RecordingEvent(this,"recordingStopped",p.id,p.name,p.reason)])},B.prototype.onFilterEventDispatched=function(p){var L=this,V=p.connectionId;this.getConnection(V,"No connection found for connectionId "+V).then(function(F){y.info('Filter event of type "'.concat(p.eventType,'" dispatched'));var N=F.stream;if(!N||!N.filter)return y.error('Filter event of type "'.concat(p.eventType,'" dispatched for stream ').concat(N.streamId," but there is no ").concat(N?"filter":"stream"," defined"));var k=N.filter.handlers.get(p.eventType);if(!k||"function"!=typeof k){var X=Array.from(N.filter.handlers.keys());return y.error('Filter event of type "'.concat(p.eventType,'" not handled or not a function! Active filter events: ').concat(X.join(",")))}k.call(L,new O.FilterEvent(N.filter,p.eventType,p.data))})},B.prototype.onForciblyReconnectSubscriber=function(p){var L=this;return new Promise(function(V,F){L.getRemoteConnection(p.connectionId,"onForciblyReconnectSubscriber").then(function(N){if(!N.stream||N.stream.streamId!==p.streamId){var ee="No stream with streamId '"+p.streamId+"' found for connection '"+p.connectionId+"' on 'streamPropertyChanged' event";return y.error(ee),F(ee)}var k=N.stream;if(k.setupReconnectionEventEmitter(V,F)){if(null!=k.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)return k.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=p,F("Ongoing forced subscriber reconnection");k.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=p;var X=function(){var Ee=k.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete k.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,L.onForciblyReconnectSubscriber(Ee)};return k.reconnectionEventEmitter.once("success",function(){X()}),void k.reconnectionEventEmitter.once("error",function(){X()})}k.completeWebRtcPeerReceive(!0,!0,p.sdpOffer).then(function(){return k.finalResolveForSubscription(!0,V)}).catch(function(Ee){return k.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream ".concat(p.streamId,": ").concat(Ee.toString()),F)})}).catch(function(N){return y.error(N),F(N)})})},B.prototype.reconnectBrokenStreams=function(){y.info("Re-establishing media connections...");var p=!1;!!this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(y.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),p=!0),this.remoteConnections.forEach(function(L){L.stream&&L.stream.streamIceConnectionStateBroken()&&(y.warn("Re-establishing Subscriber "+L.stream.streamId),L.stream.initWebRtcPeerReceive(!0),p=!0)}),p||y.info("There were no media streams in need of a reconnection")},B.prototype.emitEvent=function(p,L){this.ee.emitEvent(p,L)},B.prototype.leave=function(p,L){var V=this;if(y.info("Leaving Session (forced="+(p=!!p)+")"),this.stopVideoDataIntervals(),this.connection){if(this.connection.disposed||p?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(N,k){N&&y.error("leaveRoom error: ".concat(JSON.stringify(N))),V.openvidu.closeWs()}),this.stopPublisherStream(L),!this.connection.disposed){var F=new $.SessionDisconnectedEvent(this,L);this.ee.emitEvent("sessionDisconnected",[F]),F.callDefaultBehavior()}}else y.warn("You were not connected to the session "+this.sessionId);y.flush()},B.prototype.initializeParams=function(p){return{token:p||"",session:this.sessionId,platform:Y.getDescription()?Y.getDescription():"unknown",sdkVersion:this.openvidu.libraryVersion,metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder()}},B.prototype.sendVideoData=function(p,L,V,F){var k,X,N=this;if(void 0===L&&(L=1),void 0===V&&(V=!1),void 0===F&&(F=1),Y.isChromeBrowser()||Y.isChromeMobileBrowser()||Y.isOperaBrowser()||Y.isOperaMobileBrowser()||Y.isEdgeBrowser()||Y.isEdgeMobileBrowser()||Y.isElectron()||Y.isSafariBrowser()&&!Y.isIonicIos()||Y.isAndroidBrowser()||Y.isSamsungBrowser()||Y.isIonicAndroid()||Y.isIOSWithSafari()){var ee=function(){return q(N,void 0,void 0,function(){var De,_e,Ae;return j(this,function(Ye){switch(Ye.label){case 0:return"connected"!==(De=p.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,De.getStats()];case 1:_e=Ye.sent(),Ae=[],_e.forEach(function(Be){"frameWidth"in Be&&"frameHeight"in Be&&0===Ae.length&&Ae.push(Be)}),Ae.length>0&&this.openvidu.sendRequest("videoData",{height:Ae[0].frameHeight,width:Ae[0].frameWidth,videoActive:null!=p.stream.videoActive&&p.stream.videoActive,audioActive:null!=p.stream.audioActive&&p.stream.audioActive},function(Be,qe){Be&&y.error("Error sending 'videoData' event",Be)}),Ye.label=2;case 2:return[2]}})})};if(V){var Ee=1;this.videoDataInterval=setInterval(function(){Ee<F?(Ee++,ee()):clearInterval(N.videoDataInterval)},1e3*L)}else this.videoDataTimeout=setTimeout(ee,1e3*L)}else Y.isFirefoxBrowser()||Y.isFirefoxMobileBrowser()||Y.isIonicIos()||Y.isReactNative()?this.openvidu.sendRequest("videoData",{height:(null===(k=p.stream.videoDimensions)||void 0===k?void 0:k.height)||0,width:(null===(X=p.stream.videoDimensions)||void 0===X?void 0:X.width)||0,videoActive:null!=p.stream.videoActive&&p.stream.videoActive,audioActive:null!=p.stream.audioActive&&p.stream.audioActive},function(De,_e){De&&y.error("Error sending 'videoData' event",De)}):y.error("Browser "+Y.getName()+" (version "+Y.getVersion()+") for "+Y.getFamily()+" is not supported in OpenVidu for Network Quality")},B.prototype.sessionConnected=function(){return null!=this.connection},B.prototype.notConnectedError=function(){return new z.OpenViduError(z.OpenViduErrorName.OPENVIDU_NOT_CONNECTED,"There is no connection to the session. Method 'Session.connect' must be successfully completed first")},B.prototype.anySpeechEventListenerEnabled=function(p,L,V){var F=this.ee.getListeners(p);if(L&&(F=F.filter(function(ee){return ee.once})),F.length>0)return!0;var k=0;if(V){var X=V.ee.getListeners(p);L&&(X=X.filter(function(ee){return ee.once})),k=X.length}return k>0},B.prototype.getTokenParams=function(p){var L=p.match(/^(wss?)\:\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(L){var V={protocol:L[1],host:L[2],hostname:L[3],port:L[4],pathname:L[5],search:L[6],hash:L[7]},F=p.split("?"),N=decodeURI(F[1]).split("&").map(function(k){return k.split("=")}).reduce(function(k,X){return k[X[0]]=X[1],k},{});return{sessionId:N.sessionId,secret:N.secret,recorder:N.recorder,webrtcStatsInterval:N.webrtcStatsInterval,sendBrowserLogs:N.sendBrowserLogs,edition:N.edition,wsUri:V.protocol+"://"+V.host+"/openvidu",httpUri:"https://"+V.host}}throw new Error('Token not valid: "'.concat(p,'"'))},B.prototype.connectAux=function(p){var L=this;return new Promise(function(V,F){L.openvidu.startWs(function(N){if(N)return F(N);var k=L.initializeParams(p);L.openvidu.sendRequest("joinRoom",k,function(X,ee){if(X)return F(X);L.processJoinRoomResponse(ee,p),L.connection=new E.Connection(L,ee);var Ee={connections:new Array,streams:new Array};return ee.value.forEach(function(_e){var Ae=new E.Connection(L,_e);L.remoteConnections.set(Ae.connectionId,Ae),Ee.connections.push(Ae),Ae.stream&&(L.remoteStreamsCreated.set(Ae.stream.streamId,!0),Ee.streams.push(Ae.stream))}),L.ee.emitEvent("connectionCreated",[new b.ConnectionEvent(!1,L,"connectionCreated",L.connection,"")]),Ee.connections.forEach(function(_e){L.ee.emitEvent("connectionCreated",[new b.ConnectionEvent(!1,L,"connectionCreated",_e,"")])}),Ee.streams.forEach(function(_e){L.ee.emitEvent("streamCreated",[new Z.StreamEvent(!1,L,"streamCreated",_e,"")])}),!!ee.recordingId&&!!ee.recordingName&&L.ee.emitEvent("recordingStarted",[new D.RecordingEvent(L,"recordingStarted",ee.recordingId,ee.recordingName)]),V()})})})},B.prototype.stopPublisherStream=function(p){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[p]))},B.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},B.prototype.stringClientMetadata=function(p){return"string"!=typeof p?JSON.stringify(p):p},B.prototype.getConnection=function(p,L){var V=this;return new Promise(function(F,N){var k=V.remoteConnections.get(p);return k?F(k):V.connection.connectionId===p?F(V.connection):N(new z.OpenViduError(z.OpenViduErrorName.GENERIC_ERROR,L))})},B.prototype.getRemoteConnection=function(p,L){var V=this;return new Promise(function(F,N){var k=V.remoteConnections.get(p);if(k)return F(k);var X="Remote connection "+p+" unknown when '"+L+"'. Existing remote connections: "+JSON.stringify(V.remoteConnections.keys());return N(new z.OpenViduError(z.OpenViduErrorName.GENERIC_ERROR,X))})},B.prototype.processToken=function(p){var L=this.getTokenParams(p);this.sessionId=L.sessionId,L.secret&&(this.openvidu.secret=L.secret),L.recorder&&(this.openvidu.recorder=!0),L.webrtcStatsInterval&&(this.openvidu.webrtcStatsInterval=L.webrtcStatsInterval),L.sendBrowserLogs&&(this.openvidu.sendBrowserLogs=L.sendBrowserLogs),this.openvidu.isAtLeastPro="pro"===L.edition||"enterprise"===L.edition,this.openvidu.isEnterprise="enterprise"===L.edition,this.openvidu.wsUri=L.wsUri,this.openvidu.httpUri=L.httpUri},B.prototype.processJoinRoomResponse=function(p,L){if(this.sessionId=p.session,null!=p.customIceServers&&p.customIceServers.length>0){this.openvidu.iceServers=[];for(var V=0,F=p.customIceServers;V<F.length;V++){var N=F[V],k={urls:[N.url]};y.log("STUN/TURN server IP: "+N.url),null!=N.username&&null!=N.credential&&(k.username=N.username,k.credential=N.credential,y.log("TURN credentials ["+N.username+":"+N.credential+"]")),this.openvidu.iceServers.push(k)}}this.openvidu.role=p.role,this.openvidu.finalUserId=p.finalUserId,this.openvidu.mediaServer=p.mediaServer,this.openvidu.videoSimulcast=p.videoSimulcast,this.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==this.openvidu.role,forceUnpublish:"MODERATOR"===this.openvidu.role,forceDisconnect:"MODERATOR"===this.openvidu.role},y.info("openvidu-server version: "+p.version),null!=p.life&&(this.openvidu.life=p.life);var X=m(p.version)-m(this.openvidu.libraryVersion);A(p.version)!==A(this.openvidu.libraryVersion)||0!=X&&1!=X?y.error("openvidu-browser (".concat(this.openvidu.libraryVersion,") and openvidu-server (").concat(p.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==X&&y.warn("openvidu-browser version ".concat(this.openvidu.libraryVersion," does not match openvidu-server version ").concat(p.version,". ")+"These versions are still compatible with each other, but openvidu-browser version must be updated as soon as possible to ".concat(A(p.version),".").concat(m(p.version),".x. ")+"This client using openvidu-browser ".concat(this.openvidu.libraryVersion," will become incompatible with the next release of openvidu-server")),W.OpenViduLogger.configureJSNLog(this.openvidu,L),this.token=L},B}(C.EventDispatcher);te.Session=R},8770:function(ke,te,U){"use strict";var S=this&&this.__awaiter||function(A,m,y,Y){return new(y||(y=Promise))(function(x,B){function p(F){try{V(Y.next(F))}catch(N){B(N)}}function L(F){try{V(Y.throw(F))}catch(N){B(N)}}function V(F){F.done?x(F.value):function R(x){return x instanceof y?x:new y(function(B){B(x)})}(F.value).then(p,L)}V((Y=Y.apply(A,m||[])).next())})},q=this&&this.__generator||function(A,m){var Y,R,x,B,y={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return B={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(B[Symbol.iterator]=function(){return this}),B;function p(V){return function(F){return function L(V){if(Y)throw new TypeError("Generator is already executing.");for(;y;)try{if(Y=1,R&&(x=2&V[0]?R.return:V[0]?R.throw||((x=R.return)&&x.call(R),0):R.next)&&!(x=x.call(R,V[1])).done)return x;switch(R=0,x&&(V=[2&V[0],x.value]),V[0]){case 0:case 1:x=V;break;case 4:return y.label++,{value:V[1],done:!1};case 5:y.label++,R=V[1],V=[0];continue;case 7:V=y.ops.pop(),y.trys.pop();continue;default:if(!(x=(x=y.trys).length>0&&x[x.length-1])&&(6===V[0]||2===V[0])){y=0;continue}if(3===V[0]&&(!x||V[1]>x[0]&&V[1]<x[3])){y.label=V[1];break}if(6===V[0]&&y.label<x[1]){y.label=x[1],x=V;break}if(x&&y.label<x[2]){y.label=x[2],y.ops.push(V);break}x[2]&&y.ops.pop(),y.trys.pop();continue}V=m.call(A,y)}catch(F){V=[6,F],R=0}finally{Y=x=0}if(5&V[0])throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}([V,F])}}};Object.defineProperty(te,"__esModule",{value:!0}),te.Stream=void 0;var W,j=U(5481),E=U(3343),w=U(1530),P=U(7153),C=U(4131),b=U(8887),O=U(7818),D=U(9383),$=U(9303),oe=U(7879),Z=U(1829),H=U(1171),pe=U(8201),de=U(2877),z=U(2937),M=Z.OpenViduLogger.getInstance(),J=function(){function A(m,y){var Y=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 z,W=H.PlatformUtils.getInstance(),this.session=m,y.hasOwnProperty("id")?(this.inboundStreamOpts=y,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=y,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?oe.TypeOfVideo.CUSTOM:this.isSendScreen()?oe.TypeOfVideo.SCREEN:oe.TypeOfVideo.CAMERA),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){var R;Y.streamManager.updateMediaStream(Y.mediaStream),M.debug("Video srcObject ["+(null===(R=Y.mediaStream)||void 0===R?void 0:R.id)+"] updated in stream ["+Y.streamId+"]")})}return A.prototype.reconnect=function(){return this.reconnectStream("API")},A.prototype.applyFilter=function(m,y){var Y=this;return new Promise(function(R,x){return S(Y,void 0,void 0,function(){var B,p,L,V,F,N,k=this;return q(this,function(X){if(this.filter)return[2,x(new $.OpenViduError($.OpenViduErrorName.GENERIC_ERROR,"There is already a filter applied to Stream "+this.streamId))];if(B=function(ee,Ee){if(ee)return M.error("Error applying filter for Stream "+k.streamId,ee),x(401===ee.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):ee);M.info("Filter successfully applied on Stream "+k.streamId);var De=k.filter;return k.filter=new j.Filter(m,y),k.filter.stream=k,Ee&&(k.session.emitEvent("streamPropertyChanged",[new D.StreamPropertyChangedEvent(k.session,k,"filter",k.filter,De,"applyFilter")]),k.streamManager.emitEvent("streamPropertyChanged",[new D.StreamPropertyChangedEvent(k.streamManager,k,"filter",k.filter,De,"applyFilter")])),R(k.filter)},m.startsWith("VB:")){if(!this.hasVideo)return[2,x(new $.OpenViduError($.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,x(new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The StreamManager requires some video element to be attached to it in order to apply a Virtual Background filter"))];if(!(p=this.session.token?this.session.token:y.token))return[2,x(new $.OpenViduError($.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"!==(L=this.session.getTokenParams(p)).edition&&"enterprise"!==L.edition)return[2,x(new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"OpenVidu Virtual Background API is available from OpenVidu Pro edition onwards"))];p=encodeURIComponent(btoa(p)),M.info("Applying Virtual Background to stream "+this.streamId),V=function(){return S(k,void 0,void 0,function(){var ee,Ee,De,_e,Ae,Be;return q(this,function(qe){switch(qe.label){case 0:return qe.trys.push([0,8,,9]),ee=this.streamId+"_"+(0,pe.v4)(),Ee=this.mediaStream.clone(),(De=this.streamManager.videos[0].video.cloneNode(!1)).id=VirtualBackground.VirtualBackground.SOURCE_VIDEO_PREFIX+ee,De.srcObject=Ee,De.muted=!0,this.virtualBackgroundSourceElements={videoClone:De,mediaStreamClone:Ee},VirtualBackground.VirtualBackground.hideHtmlElement(De,!1),VirtualBackground.VirtualBackground.appendHtmlElementToHiddenContainer(De,ee),[4,De.play()];case 1:switch(qe.sent(),_e=new VirtualBackground.VirtualBackground({id:ee,openviduServerUrl:new URL(L.httpUri),openviduToken:p,inputVideo:De,inputResolution:"160x96",outputFramerate:24}),Ae=void 0,m){case"VB:blur":return[3,2];case"VB:image":return[3,4]}return[3,6];case 2:return[4,_e.backgroundBlur(y)];case 3:case 5:return Ae=qe.sent(),[3,7];case 4:return[4,_e.backgroundImage(y)];case 6:throw new Error("Unknown Virtual Background filter: "+m);case 7:return this.virtualBackgroundSinkElements={VB:_e,video:Ae},De.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),B(void 0,!1),[3,9];case 8:return Be=qe.sent(),B(Be.name===$.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new $.OpenViduError($.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,Be.message):Be,!1),[3,9];case 9:return[2]}})})},"undefined"==typeof VirtualBackground?((F=document.createElement("script")).type="text/javascript",F.src=L.httpUri+"/openvidu/virtual-background/openvidu-virtual-background.js?token="+p,F.onload=function(){return S(k,void 0,void 0,function(){var ee;return q(this,function(Ee){switch(Ee.label){case 0:return Ee.trys.push([0,2,,3]),[4,V()];case 1:return Ee.sent(),R(new j.Filter(m,y)),[3,3];case 2:return ee=Ee.sent(),x(ee),[3,3];case 3:return[2]}})})},document.body.appendChild(F)):V().then(function(){return R(new j.Filter(m,y))}).catch(function(ee){return x(ee)})}else{if(!this.session.sessionConnected())return[2,x(this.session.notConnectedError())];M.info("Applying server filter to stream "+this.streamId),"string"!=typeof(N=y=null!=y?y:{})&&(N=JSON.stringify(N)),this.session.openvidu.sendRequest("applyFilter",{streamId:this.streamId,type:m,options:N},function(ee,Ee){B(ee,!0)})}return[2]})})})},A.prototype.removeFilter=function(){return S(this,void 0,void 0,function(){return q(this,function(m){switch(m.label){case 0:return[4,this.removeFilterAux(!1)];case 1:return[2,m.sent()]}})})},A.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},A.prototype.getMediaStream=function(){return this.mediaStream},A.prototype.removeFilterAux=function(m){var y=this;return new Promise(function(Y,R){return S(y,void 0,void 0,function(){var x,B,p,V,L=this;return q(this,function(F){switch(F.label){case 0:if(x=function(N,k){if(N)return delete L.filter,M.error("Error removing filter for Stream "+L.streamId,N),R(401===N.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):N);M.info("Filter successfully removed from Stream "+L.streamId);var X=L.filter;return delete L.filter,k&&(L.session.emitEvent("streamPropertyChanged",[new D.StreamPropertyChangedEvent(L.session,L,"filter",L.filter,X,"applyFilter")]),L.streamManager.emitEvent("streamPropertyChanged",[new D.StreamPropertyChangedEvent(L.streamManager,L,"filter",L.filter,X,"applyFilter")])),Y()},!this.filter)return[3,11];if(!(null===(V=this.filter)||void 0===V?void 0:V.type.startsWith("VB:")))return[3,9];F.label=1;case 1:return F.trys.push([1,7,,8]),B=this.virtualBackgroundSourceElements.mediaStreamClone,m?[3,5]:this.streamManager.remote?(this.streamManager.replaceTrackInMediaStream(B.getVideoTracks()[0],!1),[3,4]):[3,2];case 2:return[4,this.streamManager.replaceTrackAux(B.getVideoTracks()[0],!1)];case 3:F.sent(),F.label=4;case 4:return[3,6];case 5:B.getTracks().forEach(function(N){return N.stop()}),F.label=6;case 6:return this.virtualBackgroundSinkElements.VB.cleanUp(),delete this.virtualBackgroundSinkElements,delete this.virtualBackgroundSourceElements,[2,x(void 0,!1)];case 7:return p=F.sent(),[2,x(p,!1)];case 8:return[3,10];case 9:if(!this.session.sessionConnected())return[2,R(this.session.notConnectedError())];M.info("Removing filter of stream "+this.streamId),this.session.openvidu.sendRequest("removeFilter",{streamId:this.streamId},function(N,k){return x(N,!0)}),F.label=10;case 10:return[3,12];case 11:return[2,R(new $.OpenViduError($.OpenViduErrorName.GENERIC_ERROR,"Stream "+this.streamId+" has no filter applied"))];case 12:return[2]}})})})},A.prototype.setMediaStream=function(m){this.mediaStream=m},A.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},A.prototype.getWebRtcPeer=function(){return this.webRtcPeer},A.prototype.subscribeToMyRemote=function(m){this.isSubscribeToRemote=m},A.prototype.setOutboundStreamOptions=function(m){this.outboundStreamOpts=m},A.prototype.subscribe=function(){var m=this;return new Promise(function(y,Y){m.initWebRtcPeerReceive(!1).then(function(){return y()}).catch(function(R){return Y(R)})})},A.prototype.publish=function(){var m=this;return new Promise(function(y,Y){m.isLocalStreamReadyToPublish?m.initWebRtcPeerSend(!1).then(function(){return y()}).catch(function(R){return Y(R)}):m.ee.once("stream-ready-to-publish",function(){m.publish().then(function(){return y()}).catch(function(R){return Y(R)})})})},A.prototype.disposeWebRtcPeer=function(){var m;this.webRtcPeer&&(this.webRtcPeer.dispose(),m=this.webRtcPeer.getId()),this.stopWebRtcStats(),M.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+m+"] from 'Stream' with id ["+this.streamId+"] is now closed")},A.prototype.disposeMediaStream=function(){return S(this,void 0,void 0,function(){var m;return q(this,function(y){switch(y.label){case 0:if(!this.filter||!this.filter.type.startsWith("VB:"))return[3,4];y.label=1;case 1:return y.trys.push([1,3,,4]),[4,this.removeFilterAux(!0)];case 2:return y.sent(),console.debug("Success removing Virtual Background filter for stream ".concat(this.streamId)),[3,4];case 3:return m=y.sent(),console.error("Error removing Virtual Background filter for stream ".concat(this.streamId),m),[3,4];case 4:return this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(Y){Y.stop()}),this.mediaStream.getVideoTracks().forEach(function(Y){Y.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function(Y){Y.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function(Y){Y.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),M.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed"),[2]}})})},A.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},A.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},A.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},A.prototype.isSendScreen=function(){var m="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return W.isElectron()&&(m="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&m},A.prototype.enableHarkSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabled&&this.speechEvent&&(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){m.session.emitEvent("publisherStartSpeaking",[new b.PublisherSpeakingEvent(m.session,"publisherStartSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStartSpeaking",[new b.PublisherSpeakingEvent(m.streamManager,"publisherStartSpeaking",m.connection,m.streamId)]),m.harkSpeakingEnabledOnce=!1}))},A.prototype.enableOnceHarkSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabledOnce&&this.speechEvent&&(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){m.harkSpeakingEnabledOnce&&(m.session.emitEvent("publisherStartSpeaking",[new b.PublisherSpeakingEvent(m.session,"publisherStartSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStartSpeaking",[new b.PublisherSpeakingEvent(m.streamManager,"publisherStartSpeaking",m.connection,m.streamId)])),m.disableHarkSpeakingEvent(!0)}))},A.prototype.disableHarkSpeakingEvent=function(m){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,m){if(this.harkSpeakingEnabled)return}else this.harkSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},A.prototype.enableHarkStoppedSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabled&&this.speechEvent&&(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){m.session.emitEvent("publisherStopSpeaking",[new b.PublisherSpeakingEvent(m.session,"publisherStopSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStopSpeaking",[new b.PublisherSpeakingEvent(m.streamManager,"publisherStopSpeaking",m.connection,m.streamId)]),m.harkStoppedSpeakingEnabledOnce=!1}))},A.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var m=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabledOnce&&this.speechEvent&&(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){m.harkStoppedSpeakingEnabledOnce&&(m.session.emitEvent("publisherStopSpeaking",[new b.PublisherSpeakingEvent(m.session,"publisherStopSpeaking",m.connection,m.streamId)]),m.streamManager.emitEvent("publisherStopSpeaking",[new b.PublisherSpeakingEvent(m.streamManager,"publisherStopSpeaking",m.connection,m.streamId)])),m.disableHarkStoppedSpeakingEvent(!0)}))},A.prototype.disableHarkStoppedSpeakingEvent=function(m){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,m){if(this.harkStoppedSpeakingEnabled)return}else this.harkStoppedSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce?this.speechEvent.off("stopped_speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},A.prototype.enableHarkVolumeChangeEvent=function(m){var y=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabled||m)&&(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function(Y){var x={newValue:Y,oldValue:y.speechEvent.oldVolumeValue};y.speechEvent.oldVolumeValue=Y,y.streamManager.emitEvent("streamAudioVolumeChange",[new O.StreamManagerEvent(y.streamManager,"streamAudioVolumeChange",x)])})):this.harkVolumeChangeEnabled=!0},A.prototype.enableOnceHarkVolumeChangeEvent=function(m){var y=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabledOnce||m)&&(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function(Y){var x={newValue:Y,oldValue:y.speechEvent.oldVolumeValue};y.speechEvent.oldVolumeValue=Y,y.disableHarkVolumeChangeEvent(!0),y.streamManager.emitEvent("streamAudioVolumeChange",[new O.StreamManagerEvent(y.streamManager,"streamAudioVolumeChange",x)])})):this.harkVolumeChangeEnabledOnce=!0},A.prototype.disableHarkVolumeChangeEvent=function(m){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,m){if(this.harkVolumeChangeEnabled)return}else this.harkVolumeChangeEnabled=!1;this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("volume_change"):(this.speechEvent.stop(),delete this.speechEvent)}},A.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},A.prototype.getSelectedIceCandidate=function(){var m=this;return new Promise(function(y,Y){m.webRtcStats.getSelectedIceCandidateInfo().then(function(R){return y(R)}).catch(function(R){return Y(R)})})},A.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},A.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},A.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal()&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return M.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Stream '.concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") will force a reconnection")),!0;var m=this.getRTCPeerConnection().iceConnectionState;return"connected"!==m&&"completed"!==m},A.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var m=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};m.interval="number"==typeof m.interval?m.interval:100,m.threshold="number"==typeof m.threshold?m.threshold:-50,this.speechEvent=de(this.mediaStream,m)}return!0}return!1},A.prototype.setupReconnectionEventEmitter=function(m,y){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new z,!1):(console.warn("Trying to reconnect stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but an ongoing reconnection process is active. Waiting for response...")),this.reconnectionEventEmitter.once("success",function(){return m()}),this.reconnectionEventEmitter.once("error",function(Y){return y(Y)}),!0)},A.prototype.initWebRtcPeerSend=function(m){var y=this;return new Promise(function(Y,R){var x;if(m){if(y.setupReconnectionEventEmitter(Y,R))return}else y.initHarkEvents();var p=function(F){var N;return m&&(null===(N=y.reconnectionEventEmitter)||void 0===N||N.emitEvent("error",[F]),delete y.reconnectionEventEmitter),R(F)},V={mediaConstraints:{audio:y.hasAudio,video:y.hasVideo},simulcast:null!==(x=y.outboundStreamOpts.publisherProperties.videoSimulcast)&&void 0!==x?x:y.session.openvidu.videoSimulcast,onIceCandidate:y.connection.sendIceCandidate.bind(y.connection),onIceConnectionStateException:function(F,N,k){y.session.emitEvent("exception",[new C.ExceptionEvent(y.session,F,y,N,k)])},iceServers:y.getIceServersConf(),mediaStream:y.mediaStream,mediaServer:y.session.openvidu.mediaServer,typeOfVideo:y.typeOfVideo?oe.TypeOfVideo[y.typeOfVideo]:void 0};"mediasoup"!==y.session.openvidu.mediaServer&&(V.simulcast=!1),m&&y.disposeWebRtcPeer(),y.webRtcPeer=y.displayMyRemote()?new w.WebRtcPeerSendrecv(V):new w.WebRtcPeerSendonly(V),y.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+y.connection.connectionId),y.webRtcPeer.createOffer().then(function(F){y.webRtcPeer.processLocalOffer(F).then(function(){!function(F){M.debug("Sending SDP offer to publish as "+y.streamId,F);var k,N=m?"reconnectStream":"publishVideo";if(m)k={stream:y.streamId,sdpString:F};else{var X=void 0;y.isSendVideo()&&(X="undefined"!=typeof MediaStreamTrack&&y.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?oe.TypeOfVideo.CUSTOM:y.isSendScreen()?oe.TypeOfVideo.SCREEN:oe.TypeOfVideo.CAMERA),k={doLoopback:y.displayMyRemote()||!1,hasAudio:y.isSendAudio(),hasVideo:y.isSendVideo(),audioActive:y.audioActive,videoActive:y.videoActive,typeOfVideo:X,frameRate:y.frameRate?y.frameRate:-1,videoDimensions:JSON.stringify(y.videoDimensions),filter:y.outboundStreamOpts.publisherProperties.filter,sdpOffer:F}}y.session.openvidu.sendRequest(N,k,function(ee,Ee){ee?p(401===ee.code?new $.OpenViduError($.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(ee)):y.webRtcPeer.processRemoteAnswer(Ee.sdpAnswer).then(function(){y.streamId=Ee.id,y.creationTime=Ee.createdAt,y.isLocalStreamPublished=!0,y.publishedOnce=!0,y.displayMyRemote()&&(y.localMediaStreamWhenSubscribedToRemote=y.mediaStream,y.remotePeerSuccessfullyEstablished(m)),y.ee.emitEvent(m?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),y.initWebRtcStats(),M.info("'Publisher' ("+y.streamId+") successfully "+(m?"reconnected":"published")+" to session"),function(){var F;m&&(null===(F=y.reconnectionEventEmitter)||void 0===F||F.emitEvent("success"),delete y.reconnectionEventEmitter),Y()}()}).catch(function(De){p(De)})})}(F.sdp)}).catch(function(N){p(new Error("(publish) SDP process local offer error: "+JSON.stringify(N)))})}).catch(function(F){p(new Error("(publish) SDP create offer error: "+JSON.stringify(F)))})})},A.prototype.finalResolveForSubscription=function(m,y){var Y;return M.info("'Subscriber' ("+this.streamId+") successfully "+(m?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(m),this.initWebRtcStats(),m&&(null===(Y=this.reconnectionEventEmitter)||void 0===Y||Y.emitEvent("success"),delete this.reconnectionEventEmitter),y()},A.prototype.finalRejectForSubscription=function(m,y,Y){var R;return M.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(m?"reconnect":"subscribe")+": "+y.toString()),m&&(null===(R=this.reconnectionEventEmitter)||void 0===R||R.emitEvent("error",[y]),delete this.reconnectionEventEmitter),Y(y)},A.prototype.initWebRtcPeerReceive=function(m){var y=this;return new Promise(function(Y,R){m&&y.setupReconnectionEventEmitter(Y,R)||("mediasoup"===y.session.openvidu.mediaServer?y.initWebRtcPeerReceiveFromServer(m).then(function(){return y.finalResolveForSubscription(m,Y)}).catch(function(x){return y.finalRejectForSubscription(m,x,R)}):y.initWebRtcPeerReceiveFromClient(m).then(function(){return y.finalResolveForSubscription(m,Y)}).catch(function(x){return y.finalRejectForSubscription(m,x,R)}))})},A.prototype.initWebRtcPeerReceiveFromClient=function(m){var y=this;return new Promise(function(Y,R){y.completeWebRtcPeerReceive(m,!1).then(function(x){y.webRtcPeer.processRemoteAnswer(x.sdpAnswer).then(function(){return Y()}).catch(function(B){return R(B)})}).catch(function(x){return R(x)})})},A.prototype.initWebRtcPeerReceiveFromServer=function(m){var y=this;return new Promise(function(Y,R){y.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:y.streamId,reconnect:m},function(x,B){if(x)return R(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(x)));y.completeWebRtcPeerReceive(m,!1,B.sdpOffer).then(function(){return Y()}).catch(function(p){return R(p)})})})},A.prototype.completeWebRtcPeerReceive=function(m,y,Y){var R=this;return new Promise(function(x,B){M.debug("'Session.subscribe(Stream)' called");var p=function(V){M.debug("Sending local SDP ".concat(Y?"answer":"offer"," to subscribe to ").concat(R.streamId),V);var F=m?"reconnectStream":"receiveVideoFrom",N={};N[m?"stream":"sender"]=R.streamId,Y?N[m?"sdpString":"sdpAnswer"]=V:N.sdpOffer=V,m&&(N.forciblyReconnect=y),R.session.openvidu.sendRequest(F,N,function(k,X){return k?B(new Error("Error on "+F+" : "+JSON.stringify(k))):x(X)})},L={mediaConstraints:{audio:R.hasAudio,video:R.hasVideo},simulcast:!1,onIceCandidate:R.connection.sendIceCandidate.bind(R.connection),onIceConnectionStateException:function(V,F,N){R.session.emitEvent("exception",[new C.ExceptionEvent(R.session,V,R,F,N)])},iceServers:R.getIceServersConf(),mediaServer:R.session.openvidu.mediaServer,typeOfVideo:R.typeOfVideo?oe.TypeOfVideo[R.typeOfVideo]:void 0};m&&R.disposeWebRtcPeer(),R.webRtcPeer=new w.WebRtcPeerRecvonly(L),R.webRtcPeer.addIceConnectionStateChangeListener(R.streamId),Y?R.webRtcPeer.processRemoteOffer(Y).then(function(){R.webRtcPeer.createAnswer().then(function(V){R.webRtcPeer.processLocalAnswer(V).then(function(){p(V.sdp)}).catch(function(F){return B(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(F)))})}).catch(function(V){return B(new Error("(subscribe) SDP create answer error: "+JSON.stringify(V)))})}).catch(function(V){return B(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(V)))}):R.webRtcPeer.createOffer().then(function(V){R.webRtcPeer.processLocalOffer(V).then(function(){p(V.sdp)}).catch(function(F){return B(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(F)))})}).catch(function(V){return B(new Error("(subscribe) SDP create offer error: "+JSON.stringify(V)))})})},A.prototype.remotePeerSuccessfullyEstablished=function(m){m&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var y,Y=0,R=this.webRtcPeer.pc.getReceivers();Y<R.length;Y++)(y=R[Y]).track&&this.mediaStream.addTrack(y.track);if(M.debug("Peer remote stream",this.mediaStream),this.mediaStream){if(this.streamManager instanceof E.Subscriber){if(this.mediaStream.getAudioTracks()[0]){var x=m?this.audioActive:!!this.streamManager.properties.subscribeToAudio;this.mediaStream.getAudioTracks()[0].enabled=x}this.mediaStream.getVideoTracks()[0]&&(x=m?this.videoActive:!!this.streamManager.properties.subscribeToVideo,this.mediaStream.getVideoTracks()[0].enabled=x)}this.updateMediaStreamInVideos(),this.initHarkEvents()}},A.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))},A.prototype.onIceConnectionStateExceptionHandler=function(m,y,Y){switch(m){case C.ExceptionEventName.ICE_CONNECTION_FAILED:this.onIceConnectionFailed();break;case C.ExceptionEventName.ICE_CONNECTION_DISCONNECTED:this.onIceConnectionDisconnected()}this.session.emitEvent("exception",[new C.ExceptionEvent(this.session,m,this,y,Y)])},A.prototype.onIceConnectionFailed=function(){M.log("[ICE_CONNECTION_FAILED] Handling ICE_CONNECTION_FAILED event. Reconnecting stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",")")),this.reconnectStreamAndLogResultingIceConnectionState(C.ExceptionEventName.ICE_CONNECTION_FAILED)},A.prototype.onIceConnectionDisconnected=function(){var m=this;M.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 y=this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3;this.awaitWebRtcPeerConnectionState(y).then(function(Y){switch(Y){case"failed":M.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(m.streamId," (").concat(m.isLocal()?"Publisher":"Subscriber",") is now failed after ICE_CONNECTION_DISCONNECTED"));break;case"connected":case"completed":M.log("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(m.streamId," (").concat(m.isLocal()?"Publisher":"Subscriber",") automatically restored after ICE_CONNECTION_DISCONNECTED. Current ICE connection state: ").concat(Y));break;case"closed":case"checking":case"new":case"disconnected":M.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(m.streamId," (").concat(m.isLocal()?"Publisher":"Subscriber",") couldn't be restored after ICE_CONNECTION_DISCONNECTED event. Current ICE connection state after ").concat(y," ms: ").concat(Y)),m.reconnectStreamAndLogResultingIceConnectionState(C.ExceptionEventName.ICE_CONNECTION_DISCONNECTED)}})},A.prototype.reconnectStreamAndLogResultingIceConnectionState=function(m){return S(this,void 0,void 0,function(){var y,Y;return q(this,function(R){switch(R.label){case 0:return R.trys.push([0,2,,3]),[4,this.reconnectStreamAndReturnIceConnectionState(m)];case 1:switch(y=R.sent()){case"connected":case"completed":M.log("[".concat(m,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") successfully reconnected after ").concat(m,". Current ICE connection state: ").concat(y));break;default:M.error("[".concat(m,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") failed to reconnect after ").concat(m,". Current ICE connection state: ").concat(y))}return[3,3];case 2:return Y=R.sent(),M.error("[".concat(m,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after ").concat(m,": ").concat(Y)),[3,3];case 3:return[2]}})})},A.prototype.reconnectStreamAndReturnIceConnectionState=function(m){return S(this,void 0,void 0,function(){var Y;return q(this,function(R){switch(R.label){case 0:M.log("[".concat(m,"] Reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after event ").concat(m)),R.label=1;case 1:return R.trys.push([1,3,,4]),[4,this.reconnectStream(m)];case 2:return R.sent(),[2,this.awaitWebRtcPeerConnectionState(this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3)];case 3:return Y=R.sent(),M.warn("[".concat(m,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber","). Reason: ").concat(Y)),[2,this.awaitWebRtcPeerConnectionState(1)];case 4:return[2]}})})},A.prototype.reconnectStream=function(m){return S(this,void 0,void 0,function(){var Y;return q(this,function(R){switch(R.label){case 0:return[4,this.isWebsocketConnected(m,3e3)];case 1:if(R.sent())return M.log("[".concat(m,"] 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 Y="[".concat(m,"] Trying to reconnect stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but the websocket wasn't opened"),M.error(Y),Error(Y)}})})},A.prototype.isWebsocketConnected=function(m,y){var Y=this;return new Promise(function(R,x){var B=Y.session.openvidu.getWsReadyState();if(1!==B)return console.warn("[".concat(m,"] Websocket readyState is ").concat(B)),R(!1);var p=setTimeout(function(){return console.warn("[".concat(m,"] Websocket timeout of ").concat(y,"ms")),R(!1)},y);Y.session.openvidu.sendRequest("echo",{},function(L,V){return clearTimeout(p),L?(console.warn("[".concat(m,"] Websocket 'echo' returned error: ").concat(L)),R(!1)):R(!0)})})},A.prototype.awaitWebRtcPeerConnectionState=function(m){return S(this,void 0,void 0,function(){var y,Y,R,x;return q(this,function(B){switch(B.label){case 0:y=this.getRTCPeerConnection().iceConnectionState,Y=150,R=Math.ceil(m/Y),x=0,B.label=1;case 1:return x<R?"connected"===(y=this.getRTCPeerConnection().iceConnectionState)||"completed"===y?[3,4]:[4,new Promise(function(p){return setTimeout(p,Y)})]:[3,4];case 2:B.sent(),B.label=3;case 3:return x++,[3,1];case 4:return[2,y]}})})},A.prototype.initWebRtcStats=function(){this.webRtcStats=new P.WebRtcStats(this),this.webRtcStats.initWebRtcStats()},A.prototype.stopWebRtcStats=function(){this.webRtcStats&&this.webRtcStats.isEnabled()&&this.webRtcStats.stopWebRtcStats()},A.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},A.prototype.gatherStatsForPeer=function(){var m=this;return new Promise(function(y,Y){m.isLocal()?m.getRTCPeerConnection().getSenders().forEach(function(R){return R.getStats().then(function(x){x.forEach(function(B){if(m.isReportWanted(B)){var p={};p.type=B.type,p.timestamp=B.timestamp,p.id=B.id,"outbound-rtp"===B.type&&(p.ssrc=B.ssrc,p.firCount=B.firCount,p.pliCount=B.pliCount,p.nackCount=B.nackCount,p.qpSum=B.qpSum,p.mediaType=B.kind?B.kind:B.mediaType?B.mediaType:-1!==B.id.indexOf("VideoStream")?"video":"audio","video"===p.mediaType&&(p.framesEncoded=B.framesEncoded),p.packetsSent=B.packetsSent,p.bytesSent=B.bytesSent),"candidate-pair"===B.type&&void 0!==B.totalRoundTripTime&&(p.availableOutgoingBitrate=B.availableOutgoingBitrate,p.rtt=B.currentRoundTripTime,p.averageRtt=B.totalRoundTripTime/B.responsesReceived),M.log(p)}})})}):m.getRTCPeerConnection().getReceivers().forEach(function(R){return R.getStats().then(function(x){x.forEach(function(B){if(m.isReportWanted(B)){var p={};p.type=B.type,p.timestamp=B.timestamp,p.id=B.id,"inbound-rtp"===B.type&&(p.ssrc=B.ssrc,p.firCount=B.firCount,p.pliCount=B.pliCount,p.nackCount=B.nackCount,p.qpSum=B.qpSum,p.mediaType=B.kind?B.kind:B.mediaType?B.mediaType:-1!==B.id.indexOf("VideoStream")?"video":"audio","video"===p.mediaType&&(p.framesDecoded=B.framesDecoded),p.packetsReceived=B.packetsReceived,p.packetsLost=B.packetsLost,p.jitter=B.jitter,p.bytesReceived=B.bytesReceived),"candidate-pair"===B.type&&void 0!==B.totalRoundTripTime&&(p.availableIncomingBitrate=B.availableIncomingBitrate,p.rtt=B.currentRoundTripTime,p.averageRtt=B.totalRoundTripTime/B.responsesReceived),M.log(p)}})})})})},A.prototype.isReportWanted=function(m){return"inbound-rtp"===m.type&&!this.isLocal()||"outbound-rtp"===m.type&&this.isLocal()||"candidate-pair"===m.type&&m.nominated&&m.bytesSent>0},A}();te.Stream=J},7373:function(ke,te,U){"use strict";var oe,S=this&&this.__extends||(oe=function(Z,H){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,de){pe.__proto__=de}||function(pe,de){for(var z in de)Object.prototype.hasOwnProperty.call(de,z)&&(pe[z]=de[z])})(Z,H)},function(Z,H){if("function"!=typeof H&&null!==H)throw new TypeError("Class extends value "+String(H)+" is not a constructor or null");function pe(){this.constructor=Z}oe(Z,H),Z.prototype=null===H?Object.create(H):(pe.prototype=H.prototype,new pe)});Object.defineProperty(te,"__esModule",{value:!0}),te.StreamManager=void 0;var D,q=U(2768),j=U(7818),E=U(6320),w=U(4131),P=U(7167),C=U(1829),b=U(1171),O=C.OpenViduLogger.getInstance(),$=function(oe){function Z(H,pe){var de=oe.call(this)||this;if(de.videos=[],de.lazyLaunchVideoElementCreatedEvent=!1,D=b.PlatformUtils.getInstance(),de.stream=H,de.stream.streamManager=de,de.remote=!de.stream.isLocal(),pe){var z=void 0;"string"==typeof pe?z=document.getElementById(pe):pe instanceof HTMLElement&&(z=pe),z&&(de.firstVideoElement={targetElement:z,video:document.createElement("video"),id:"",canplayListenerAdded:!1},(D.isSafariBrowser()||D.isIPhoneOrIPad()&&(D.isChromeMobileBrowser()||D.isEdgeMobileBrowser()||D.isOperaMobileBrowser()||D.isFirefoxMobileBrowser()))&&(de.firstVideoElement.video.playsInline=!0),de.targetElement=z,de.element=z)}return de.canPlayListener=function(){de.deactivateStreamPlayingEventExceptionTimeout(),de.ee.emitEvent("streamPlaying",[new j.StreamManagerEvent(de,"streamPlaying",void 0)])},de}return S(Z,oe),Z.prototype.on=function(H,pe){return oe.prototype.onAux.call(this,H,"Event '"+H+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",pe),"videoElementCreated"===H&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new E.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"===H&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.ee.emitEvent("streamPlaying",[new j.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===H&&this.stream.enableHarkSpeakingEvent(),"publisherStopSpeaking"===H&&this.stream.enableHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===H&&this.stream.enableHarkVolumeChangeEvent(!1)),this},Z.prototype.once=function(H,pe){return oe.prototype.onceAux.call(this,H,"Event '"+H+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",pe),"videoElementCreated"===H&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new E.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"===H&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.ee.emitEvent("streamPlaying",[new j.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===H&&this.stream.enableOnceHarkSpeakingEvent(),"publisherStopSpeaking"===H&&this.stream.enableOnceHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===H&&this.stream.enableOnceHarkVolumeChangeEvent(!1)),this},Z.prototype.off=function(H,pe){return oe.prototype.offAux.call(this,H,pe),"publisherStartSpeaking"===H&&0===this.ee.getListeners(H).length+this.stream.session.ee.getListeners(H).length&&this.stream.disableHarkSpeakingEvent(!1),"publisherStopSpeaking"===H&&0===this.ee.getListeners(H).length+this.stream.session.ee.getListeners(H).length&&this.stream.disableHarkStoppedSpeakingEvent(!1),"streamAudioVolumeChange"===H&&0===this.ee.getListeners(H).length&&this.stream.disableHarkVolumeChangeEvent(!1),this},Z.prototype.addVideoElement=function(H){this.initializeVideoProperties(H),!this.remote&&this.stream.displayMyRemote()&&H.srcObject!==this.stream.getMediaStream()&&(H.srcObject=this.stream.getMediaStream());for(var pe=0,de=this.videos;pe<de.length;pe++)if(de[pe].video===H)return 0;for(var M=1,W=0,J=this.stream.session.streamManagers;W<J.length;W++)if(J[W].disassociateVideo(H)){M=-1;break}return this.stream.session.streamManagers.forEach(function(m){m.disassociateVideo(H)}),this.pushNewStreamManagerVideo({video:H,id:H.id,canplayListenerAdded:!1}),O.info("New video element associated to ",this),M},Z.prototype.createVideoElement=function(H,pe){var de;if("string"==typeof H){if(!(de=document.getElementById(H)))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+H)}else{if(!(H instanceof HTMLElement))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+H);de=H}var z=this.createVideo();this.initializeVideoProperties(z);var M=pe||P.VideoInsertMode.APPEND;switch(M){case P.VideoInsertMode.AFTER:de.parentNode.insertBefore(z,de.nextSibling);break;case P.VideoInsertMode.APPEND:de.appendChild(z);break;case P.VideoInsertMode.BEFORE:de.parentNode.insertBefore(z,de);break;case P.VideoInsertMode.PREPEND:de.insertBefore(z,de.childNodes[0]);break;case P.VideoInsertMode.REPLACE:de.parentNode.replaceChild(z,de);break;default:M=P.VideoInsertMode.APPEND,de.appendChild(z)}var W={targetElement:de,video:z,insertMode:M,id:z.id,canplayListenerAdded:!1};return this.pushNewStreamManagerVideo(W),this.ee.emitEvent("videoElementCreated",[new E.VideoElementEvent(W.video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!!this.firstVideoElement,z},Z.prototype.updatePublisherSpeakingEventsOptions=function(H){var pe=this.stream.harkOptions?this.stream.harkOptions:this.stream.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{},de="number"==typeof H.interval?H.interval:"number"==typeof pe.interval?pe.interval:100,z="number"==typeof H.threshold?H.threshold:"number"==typeof pe.threshold?pe.threshold:-50;this.stream.harkOptions={interval:de,threshold:z},this.stream.speechEvent&&(this.stream.speechEvent.setInterval(de),this.stream.speechEvent.setThreshold(z))},Z.prototype.initializeVideoProperties=function(H){!this.remote&&this.stream.displayMyRemote()||H.srcObject!==this.stream.getMediaStream()&&(H.srcObject=this.stream.getMediaStream()),H.autoplay=!0,H.controls=!1,(D.isSafariBrowser()||D.isIPhoneOrIPad()&&(D.isChromeMobileBrowser()||D.isEdgeMobileBrowser()||D.isOperaMobileBrowser()||D.isFirefoxMobileBrowser()))&&(H.playsInline=!0),H.id||(H.id=(this.remote?"remote-":"local-")+"video-"+this.stream.streamId,!this.id&&!!this.targetElement&&(this.id=H.id)),this.remote&&this.isMirroredVideo(H)?this.removeMirrorVideo(H):!this.remote&&!this.stream.displayMyRemote()&&(H.muted=!0,this.isMirroredVideo(H)&&!this.stream.outboundStreamOpts.publisherProperties.mirror?this.removeMirrorVideo(H):this.stream.outboundStreamOpts.publisherProperties.mirror&&!this.stream.isSendScreen()&&this.mirrorVideo(H))},Z.prototype.removeAllVideos=function(){for(var H=this,pe=this.stream.session.streamManagers.length-1;pe>=0;--pe)this.stream.session.streamManagers[pe]===this&&this.stream.session.streamManagers.splice(pe,1);this.videos.forEach(function(de){!!de.video&&!!de.video.removeEventListener&&de.video.removeEventListener("canplay",H.canPlayListener),de.canplayListenerAdded=!1,de.targetElement&&(de.video.parentNode.removeChild(de.video),H.ee.emitEvent("videoElementDestroyed",[new E.VideoElementEvent(de.video,H,"videoElementDestroyed")])),H.removeSrcObject(de),H.videos.filter(function(z){return!z.targetElement})})},Z.prototype.disassociateVideo=function(H){for(var pe=!1,de=0;de<this.videos.length;de++)if(this.videos[de].video===H){this.videos[de].video.removeEventListener("canplay",this.canPlayListener),this.videos.splice(de,1),pe=!0,O.info("Video element disassociated from ",this);break}return pe},Z.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)},Z.prototype.updateMediaStream=function(H){this.videos.forEach(function(pe){if(pe.video.srcObject=H,D.isIonicIos()){var z=pe.video;pe.video.parentElement.replaceChild(z,pe.video),pe.video=z}})},Z.prototype.emitEvent=function(H,pe){this.ee.emitEvent(H,pe)},Z.prototype.createVideo=function(){return document.createElement("video")},Z.prototype.removeSrcObject=function(H){H.video.srcObject=null,this.deactivateStreamPlayingEventExceptionTimeout()},Z.prototype.pushNewStreamManagerVideo=function(H){this.videos.push(H),this.addPlayEventToFirstVideo(),-1===this.stream.session.streamManagers.indexOf(this)&&this.stream.session.streamManagers.push(this)},Z.prototype.mirrorVideo=function(H){D.isIonicIos()||(H.style.transform="rotateY(180deg)",H.style.webkitTransform="rotateY(180deg)")},Z.prototype.removeMirrorVideo=function(H){H.style.transform="unset",H.style.webkitTransform="unset"},Z.prototype.isMirroredVideo=function(H){return"rotateY(180deg)"===H.style.transform||"rotateY(180deg)"===H.style.webkitTransform},Z.prototype.activateStreamPlayingEventExceptionTimeout=function(){var H=this;if(this.remote&&null==this.streamPlayingEventExceptionTimeout){var pe=this.stream.session.openvidu.advancedConfiguration.noStreamPlayingEventExceptionTimeout||4e3;this.streamPlayingEventExceptionTimeout=setTimeout(function(){var de="StreamManager of Stream "+H.stream.streamId+" ("+(H.remote?"Subscriber":"Publisher")+') did not trigger "streamPlaying" event in '+pe+" ms";O.warn(de),H.stream.session.emitEvent("exception",[new w.ExceptionEvent(H.stream.session,w.ExceptionEventName.NO_STREAM_PLAYING_EVENT,H,de)]),delete H.streamPlayingEventExceptionTimeout},pe)}},Z.prototype.deactivateStreamPlayingEventExceptionTimeout=function(){clearTimeout(this.streamPlayingEventExceptionTimeout),delete this.streamPlayingEventExceptionTimeout},Z}(q.EventDispatcher);te.StreamManager=$},3343:function(ke,te,U){"use strict";var P,S=this&&this.__extends||(P=function(C,b){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,D){O.__proto__=D}||function(O,D){for(var $ in D)Object.prototype.hasOwnProperty.call(D,$)&&(O[$]=D[$])})(C,b)},function(C,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function O(){this.constructor=C}P(C,b),C.prototype=null===b?Object.create(b):(O.prototype=b.prototype,new O)});Object.defineProperty(te,"__esModule",{value:!0}),te.Subscriber=void 0;var q=U(7373),E=U(1829).OpenViduLogger.getInstance(),w=function(P){function C(b,O,D){var $=P.call(this,b,O)||this;return $.element=$.targetElement,$.stream=b,$.properties=D,$}return S(C,P),C.prototype.subscribeToAudio=function(b){return this.stream.getMediaStream().getAudioTracks().forEach(function(O){O.enabled=b}),this.stream.audioActive=b,E.info("'Subscriber' has "+(b?"subscribed to":"unsubscribed from")+" its audio stream"),this},C.prototype.subscribeToVideo=function(b){return this.stream.getMediaStream().getVideoTracks().forEach(function(O){O.enabled=b}),this.stream.videoActive=b,E.info("'Subscriber' has "+(b?"subscribed to":"unsubscribed from")+" its video stream"),this},C.prototype.replaceTrackInMediaStream=function(b,O){var $,D=this.stream.getMediaStream();"video"===b.kind?($=D.getVideoTracks()[0],O&&(this.stream.lastVideoTrackConstraints=b.getConstraints())):$=D.getAudioTracks()[0],D.removeTrack($),$.stop(),D.addTrack(b)},C}(q.StreamManager);te.Subscriber=w},1216:(ke,te)=>{"use strict";var S;Object.defineProperty(te,"__esModule",{value:!0}),te.LocalRecorderState=void 0,(S=te.LocalRecorderState||(te.LocalRecorderState={})).READY="READY",S.RECORDING="RECORDING",S.PAUSED="PAUSED",S.FINISHED="FINISHED"},9303:(ke,te)=>{"use strict";var q;Object.defineProperty(te,"__esModule",{value:!0}),te.OpenViduError=te.OpenViduErrorName=void 0,(q=te.OpenViduErrorName||(te.OpenViduErrorName={})).BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",q.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",q.DEVICE_ALREADY_IN_USE="DEVICE_ALREADY_IN_USE",q.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",q.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",q.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",q.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",q.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",q.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",q.INPUT_AUDIO_DEVICE_GENERIC_ERROR="INPUT_AUDIO_DEVICE_GENERIC_ERROR",q.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",q.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",q.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",q.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",q.VIRTUAL_BACKGROUND_ERROR="VIRTUAL_BACKGROUND_ERROR",q.GENERIC_ERROR="GENERIC_ERROR",te.OpenViduError=function q(j,E){this.name=j,this.message=E}},7879:(ke,te)=>{"use strict";var S;Object.defineProperty(te,"__esModule",{value:!0}),te.TypeOfVideo=void 0,(S=te.TypeOfVideo||(te.TypeOfVideo={})).CAMERA="CAMERA",S.SCREEN="SCREEN",S.CUSTOM="CUSTOM",S.IPCAM="IPCAM"},7167:(ke,te)=>{"use strict";var S;Object.defineProperty(te,"__esModule",{value:!0}),te.VideoInsertMode=void 0,(S=te.VideoInsertMode||(te.VideoInsertMode={})).AFTER="AFTER",S.APPEND="APPEND",S.BEFORE="BEFORE",S.PREPEND="PREPEND",S.REPLACE="REPLACE"},1698:function(ke,te,U){"use strict";var E,S=this&&this.__extends||(E=function(w,P){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,b){C.__proto__=b}||function(C,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(C[O]=b[O])})(w,P)},function(w,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function C(){this.constructor=w}E(w,P),w.prototype=null===P?Object.create(P):(C.prototype=P.prototype,new C)});Object.defineProperty(te,"__esModule",{value:!0}),te.ConnectionEvent=void 0;var j=function(E){function w(P,C,b,O,D){var $=E.call(this,P,C,b)||this;return $.connection=O,$.reason=D,$}return S(w,E),w.prototype.callDefaultBehavior=function(){},w}(U(616).Event);te.ConnectionEvent=j},9005:function(ke,te,U){"use strict";var E,S=this&&this.__extends||(E=function(w,P){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,b){C.__proto__=b}||function(C,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(C[O]=b[O])})(w,P)},function(w,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function C(){this.constructor=w}E(w,P),w.prototype=null===P?Object.create(P):(C.prototype=P.prototype,new C)});Object.defineProperty(te,"__esModule",{value:!0}),te.ConnectionPropertyChangedEvent=void 0;var j=function(E){function w(P,C,b,O,D){var $=E.call(this,!1,P,"connectionPropertyChanged")||this;return $.connection=C,$.changedProperty=b,$.newValue=O,$.oldValue=D,$}return S(w,E),w.prototype.callDefaultBehavior=function(){},w}(U(616).Event);te.ConnectionPropertyChangedEvent=j},616:(ke,te)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Event=void 0;var U=function(){function S(q,j,E){this.hasBeenPrevented=!1,this.cancelable=q,this.target=j,this.type=E}return S.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},S.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},S}();te.Event=U},4131:function(ke,te,U){"use strict";var w,S=this&&this.__extends||(w=function(P,C){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,O){b.__proto__=O}||function(b,O){for(var D in O)Object.prototype.hasOwnProperty.call(O,D)&&(b[D]=O[D])})(P,C)},function(P,C){if("function"!=typeof C&&null!==C)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function b(){this.constructor=P}w(P,C),P.prototype=null===C?Object.create(C):(b.prototype=C.prototype,new b)});Object.defineProperty(te,"__esModule",{value:!0}),te.ExceptionEvent=te.ExceptionEventName=void 0;var q=U(616);!function(w){w.ICE_CANDIDATE_ERROR="ICE_CANDIDATE_ERROR",w.ICE_CONNECTION_FAILED="ICE_CONNECTION_FAILED",w.ICE_CONNECTION_DISCONNECTED="ICE_CONNECTION_DISCONNECTED",w.NO_STREAM_PLAYING_EVENT="NO_STREAM_PLAYING_EVENT"}(te.ExceptionEventName||(te.ExceptionEventName={}));var E=function(w){function P(C,b,O,D,$){var oe=w.call(this,!1,C,"exception")||this;return oe.name=b,oe.origin=O,oe.message=D,oe.data=$,oe}return S(P,w),P.prototype.callDefaultBehavior=function(){},P}(q.Event);te.ExceptionEvent=E},5132:function(ke,te,U){"use strict";var E,S=this&&this.__extends||(E=function(w,P){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,b){C.__proto__=b}||function(C,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(C[O]=b[O])})(w,P)},function(w,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function C(){this.constructor=w}E(w,P),w.prototype=null===P?Object.create(P):(C.prototype=P.prototype,new C)});Object.defineProperty(te,"__esModule",{value:!0}),te.FilterEvent=void 0;var j=function(E){function w(P,C,b){var O=E.call(this,!1,P,C)||this;return O.data=b,O}return S(w,E),w.prototype.callDefaultBehavior=function(){},w}(U(616).Event);te.FilterEvent=j},9900:function(ke,te,U){"use strict";var E,S=this&&this.__extends||(E=function(w,P){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,b){C.__proto__=b}||function(C,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(C[O]=b[O])})(w,P)},function(w,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function C(){this.constructor=w}E(w,P),w.prototype=null===P?Object.create(P):(C.prototype=P.prototype,new C)});Object.defineProperty(te,"__esModule",{value:!0}),te.NetworkQualityLevelChangedEvent=void 0;var j=function(E){function w(P,C,b,O){var D=E.call(this,!1,P,"networkQualityLevelChanged")||this;return D.newValue=C,D.oldValue=b,D.connection=O,D}return S(w,E),w.prototype.callDefaultBehavior=function(){},w}(U(616).Event);te.NetworkQualityLevelChangedEvent=j},8887:function(ke,te,U){"use strict";var E,S=this&&this.__extends||(E=function(w,P){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,b){C.__proto__=b}||function(C,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(C[O]=b[O])})(w,P)},function(w,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function C(){this.constructor=w}E(w,P),w.prototype=null===P?Object.create(P):(C.prototype=P.prototype,new C)});Object.defineProperty(te,"__esModule",{value:!0}),te.PublisherSpeakingEvent=void 0;var j=function(E){function w(P,C,b,O){var D=E.call(this,!1,P,C)||this;return D.type=C,D.connection=b,D.streamId=O,D}return S(w,E),w.prototype.callDefaultBehavior=function(){},w}(U(616).Event);te.PublisherSpeakingEvent=j},5449:function(ke,te,U){"use strict";var E,S=this&&this.__extends||(E=function(w,P){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,b){C.__proto__=b}||function(C,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(C[O]=b[O])})(w,P)},function(w,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function C(){this.constructor=w}E(w,P),w.prototype=null===P?Object.create(P):(C.prototype=P.prototype,new C)});Object.defineProperty(te,"__esModule",{value:!0}),te.RecordingEvent=void 0;var j=function(E){function w(P,C,b,O,D){var $=E.call(this,!1,P,C)||this;return $.id=b,O!==b&&($.name=O),$.reason=D,$}return S(w,E),w.prototype.callDefaultBehavior=function(){},w}(U(616).Event);te.RecordingEvent=j},1690:function(ke,te,U){"use strict";var P,S=this&&this.__extends||(P=function(C,b){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,D){O.__proto__=D}||function(O,D){for(var $ in D)Object.prototype.hasOwnProperty.call(D,$)&&(O[$]=D[$])})(C,b)},function(C,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function O(){this.constructor=C}P(C,b),C.prototype=null===b?Object.create(b):(O.prototype=b.prototype,new O)});Object.defineProperty(te,"__esModule",{value:!0}),te.SessionDisconnectedEvent=void 0;var q=U(616),E=U(1829).OpenViduLogger.getInstance(),w=function(P){function C(b,O){var D=P.call(this,!0,b,"sessionDisconnected")||this;return D.reason=O,D}return S(C,P),C.prototype.callDefaultBehavior=function(){E.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var b=this.target;b.remoteConnections.forEach(function(O){var D,$,oe,Z,H,pe,de,z,M=O.connectionId;if(null===(D=b.remoteConnections.get(M))||void 0===D?void 0:D.stream){null===($=b.remoteConnections.get(M))||void 0===$||$.stream.disposeWebRtcPeer(),null===(oe=b.remoteConnections.get(M))||void 0===oe||oe.stream.disposeMediaStream(),(null===(Z=b.remoteConnections.get(M))||void 0===Z?void 0:Z.stream.streamManager)&&(null===(H=b.remoteConnections.get(M))||void 0===H||H.stream.streamManager.removeAllVideos());var W=null===(de=null===(pe=b.remoteConnections.get(M))||void 0===pe?void 0:pe.stream)||void 0===de?void 0:de.streamId;W&&b.remoteStreamsCreated.delete(W),null===(z=b.remoteConnections.get(M))||void 0===z||z.dispose()}b.remoteConnections.delete(M)})},C}(q.Event);te.SessionDisconnectedEvent=w},1659:function(ke,te,U){"use strict";var E,S=this&&this.__extends||(E=function(w,P){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,b){C.__proto__=b}||function(C,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(C[O]=b[O])})(w,P)},function(w,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function C(){this.constructor=w}E(w,P),w.prototype=null===P?Object.create(P):(C.prototype=P.prototype,new C)});Object.defineProperty(te,"__esModule",{value:!0}),te.SignalEvent=void 0;var j=function(E){function w(P,C,b,O){var D=E.call(this,!1,P,"signal")||this;return C&&(D.type="signal:"+C),D.data=b,D.from=O,D}return S(w,E),w.prototype.callDefaultBehavior=function(){},w}(U(616).Event);te.SignalEvent=j},3980:function(ke,te,U){"use strict";var b,S=this&&this.__extends||(b=function(O,D){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,oe){$.__proto__=oe}||function($,oe){for(var Z in oe)Object.prototype.hasOwnProperty.call(oe,Z)&&($[Z]=oe[Z])})(O,D)},function(O,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function $(){this.constructor=O}b(O,D),O.prototype=null===D?Object.create(D):($.prototype=D.prototype,new $)});Object.defineProperty(te,"__esModule",{value:!0}),te.StreamEvent=void 0;var q=U(616),j=U(4302),E=U(5607),P=U(1829).OpenViduLogger.getInstance(),C=function(b){function O(D,$,oe,Z,H){var pe=b.call(this,D,$,oe)||this;return pe.stream=Z,pe.reason=H,pe}return S(O,b),O.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof E.Session)P.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof j.Publisher){P.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var D=this.target.openvidu.publishers,$=0;$<D.length;$++)if(D[$]===this.target){D.splice($,1);break}}this.stream.disposeMediaStream(),this.stream.streamManager&&this.stream.streamManager.removeAllVideos(),this.stream.session.remoteStreamsCreated.delete(this.stream.streamId);var oe=this.stream.session.remoteConnections.get(this.stream.connection.connectionId);if(oe&&oe.remoteOptions){var Z=oe.remoteOptions.streams;for($=Z.length-1;$>=0;--$)Z[$].id===this.stream.streamId&&Z.splice($,1)}}},O}(q.Event);te.StreamEvent=C},7818:function(ke,te,U){"use strict";var E,S=this&&this.__extends||(E=function(w,P){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,b){C.__proto__=b}||function(C,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(C[O]=b[O])})(w,P)},function(w,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function C(){this.constructor=w}E(w,P),w.prototype=null===P?Object.create(P):(C.prototype=P.prototype,new C)});Object.defineProperty(te,"__esModule",{value:!0}),te.StreamManagerEvent=void 0;var j=function(E){function w(P,C,b){var O=E.call(this,!1,P,C)||this;return O.value=b,O}return S(w,E),w.prototype.callDefaultBehavior=function(){},w}(U(616).Event);te.StreamManagerEvent=j},9383:function(ke,te,U){"use strict";var E,S=this&&this.__extends||(E=function(w,P){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,b){C.__proto__=b}||function(C,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(C[O]=b[O])})(w,P)},function(w,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function C(){this.constructor=w}E(w,P),w.prototype=null===P?Object.create(P):(C.prototype=P.prototype,new C)});Object.defineProperty(te,"__esModule",{value:!0}),te.StreamPropertyChangedEvent=void 0;var j=function(E){function w(P,C,b,O,D,$){var oe=E.call(this,!1,P,"streamPropertyChanged")||this;return oe.stream=C,oe.changedProperty=b,oe.newValue=O,oe.oldValue=D,oe.reason=$,oe}return S(w,E),w.prototype.callDefaultBehavior=function(){},w}(U(616).Event);te.StreamPropertyChangedEvent=j},6320:function(ke,te,U){"use strict";var E,S=this&&this.__extends||(E=function(w,P){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,b){C.__proto__=b}||function(C,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(C[O]=b[O])})(w,P)},function(w,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function C(){this.constructor=w}E(w,P),w.prototype=null===P?Object.create(P):(C.prototype=P.prototype,new C)});Object.defineProperty(te,"__esModule",{value:!0}),te.VideoElementEvent=void 0;var j=function(E){function w(P,C,b){var O=E.call(this,!1,C,b)||this;return O.element=P,O}return S(w,E),w.prototype.callDefaultBehavior=function(){},w}(U(616).Event);te.VideoElementEvent=j},8229:ke=>{function te(){var U={};this.forEach=function(S){for(var q in U){var j=U[q];for(var E in j)S(j[E])}},this.get=function(S,q){var j=U[q];if(null!=j)return j[S]},this.remove=function(S,q){var j=U[q];if(null!=j){for(var E in delete j[S],j)return!1;delete U[q]}},this.set=function(S,q,j){if(null==S)return this.remove(q,j);var E=U[j];null==E&&(U[j]=E={}),E[q]=S}}te.prototype.pop=function(U,S){var q=this.get(U,S);if(null!=q)return this.remove(U,S),q},ke.exports=te},1780:(ke,te,U)=>{var S=U(2245);te.JsonRpcClient=S},2245:(ke,te,U)=>{var S=U(4940),q=U(6738),j=U(1829).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var w="RECONNECTING",P="CONNECTED",C="DISCONNECTED",b=j.getInstance();ke.exports=function O(D){var z,$=this,oe=D.ws,Z=-1,H=0,pe=!0,de=!1,M=C,W=oe.onreconnecting,J=oe.onreconnected,A=oe.onconnected,m=oe.onerror;D.rpc.pull=function(V,F){F.reply(null,"push")},oe.onreconnecting=function(){b.debug("--------- ONRECONNECTING -----------"),M!==w?(L(),M=w,W&&W()):b.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},oe.onreconnected=function(){b.debug("--------- ONRECONNECTED -----------"),M!==P?(M=P,x(),J&&J()):b.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},oe.onconnected=function(){b.debug("--------- ONCONNECTED -----------"),M!==P?(M=P,pe=!0,p(),A&&A()):b.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},oe.onerror=function(V){b.debug("--------- ONERROR -----------"),M=C,L(),m&&m(V)};var y=new q(oe);b.debug("Connecting websocket to URI: "+oe.uri);var R=new S(S.packers.JsonRPC,{request_timeout:D.rpc.requestTimeout,ping_request_timeout:D.rpc.heartbeatRequestTimeout},y,function(V){b.debug("Received request: "+JSON.stringify(V));try{var F=D.rpc[V.method];void 0===F?b.error("Method "+V.method+" not registered in client"):F(V.params,V)}catch(N){b.error("Exception processing request: "+JSON.stringify(V)),b.error(N)}});function x(){b.debug("notReconnectIfNumLessThan = "+H+" (old="+Z+")"),Z=H}function B(){if(pe){var V=null;(0==H||H==Z)&&(V={interval:D.heartbeat||5e3}),H++,$.send("ping",V,(F=H,function(N,k){N&&(b.debug("Error in ping request #"+F+" ("+N.message+")"),F>Z&&(pe=!1,x(),b.debug("Server did not respond to ping message #"+F+". Reconnecting... "),y.reconnectWs()))}))}else b.debug("Trying to send ping, but ping is not enabled");var F}function p(){de||(b.debug("Starting ping (if configured)"),de=!0,null!=D.heartbeat&&(z=setInterval(B,D.heartbeat),B()))}function L(){clearInterval(z),de=!1,pe=!1,H=-1,R.cancel()}this.send=function(V,F,N){var k=Date.now();R.encode(V,F,function(X,ee){if(X){try{b.error("ERROR:"+X.message+" in Request: method:"+V+" params:"+JSON.stringify(F)+" request:"+X.request),X.data&&b.error("ERROR DATA:"+JSON.stringify(X.data))}catch(Ee){}X.requestTime=k}N&&(null!=ee&&"pong"!==ee.value&&b.debug("Response: "+JSON.stringify(ee)),N(X,ee))})},this.close=function(V,F){b.debug("Closing with code: "+V+" because: "+F),null!=z&&(b.debug("Clearing ping interval"),clearInterval(z)),de=!1,pe=!1,y.close(V,F)},this.reconnect=function(){y.reconnectWs()},this.resetPing=function(){pe=!0,H=0,p()},this.getReadyState=function(){return y.getReadyState()}}},7526:(ke,te,U)=>{var S=U(6738);te.WebSocketWithReconnection=S},6738:(ke,te,U)=>{"use strict";var q=U(1829).OpenViduLogger.getInstance();ke.exports=function O(D){var oe,$=!1,Z=D.uri,H=!1,pe=new WebSocket(Z);pe.onopen=function(){q.debug("WebSocket connected to "+Z),D.onconnected&&D.onconnected()},pe.onerror=function(J){q.error("Could not connect to "+Z+" (invoking onerror if defined)",J),D.onerror&&D.onerror(J)};var de=function(){3===pe.readyState?$?q.debug("Connection closed by user"):D.ismasternodecrashed()?q.error("Master Node has crashed. Stopping reconnection process"):(q.debug("Connection closed unexpectedly. Reconnecting..."),z(2e3,1)):q.debug("Close callback from previous websocket. Ignoring it")};function z(J,A){if(q.debug("reconnect (attempt #"+A+", max="+J+")"),1===A){if(H)return void q.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");H=!0,D.onreconnecting&&D.onreconnecting()}!function W(J,A){q.debug("Reconnection attempt #"+A),pe.close(4104,"Connection closed for reconnection"),Z=function M(J){var A=new URLSearchParams(new URL(J).search);return A.has("reconnect")||(J=Array.from(A).length>0?J+"&reconnect=true":J+"?reconnect=true"),J}(Z),(pe=new WebSocket(Z)).onopen=function(){q.debug("Reconnected to "+Z+" after "+A+" attempts..."),H=!1,oe(),D.onreconnected()&&D.onreconnected(),pe.onclose=de},pe.onerror=function(m){q.warn("Reconnection error: ",m),A===J?D.ondisconnect&&D.ondisconnect():setTimeout(function(){z(J,A+1)},3e3)}}(J,A)}pe.onclose=de,this.close=function(J,A){$=!0,pe.close(J,A)},this.reconnectWs=function(){q.debug("reconnectWs"),z(2e3,1)},this.send=function(J){pe.send(J)},this.addEventListener=function(J,A){(oe=function(){pe.addEventListener(J,A)})()},this.getReadyState=function(){return pe.readyState}}},4940:(ke,te,U)=>{var S=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(Z){S=!0}Function.prototype.bind||(Function.prototype.bind=function(Z){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var H=Array.prototype.slice.call(arguments,1),pe=this,de=function(){},z=function(){return pe.apply(this instanceof de&&Z?this:Z,H.concat(Array.prototype.slice.call(arguments)))};return de.prototype=this.prototype,z.prototype=new de,z});var q=U(7945).EventEmitter,j=U(9543),E=U(2907),w=U(8229),P=5e3;function b(Z){if(Z){if(Z instanceof Function)return{send:Z};if(Z.send instanceof Function)return Z;if(Z.postMessage instanceof Function)return Z.send=Z.postMessage,Z;if(Z.write instanceof Function)return Z.send=Z.write,Z;if(void 0===Z.onmessage&&!(Z.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function O(Z,H){S?(this.method=Z,this.params=H):(Object.defineProperty(this,"method",{value:Z,enumerable:!0}),Object.defineProperty(this,"params",{value:H,enumerable:!0}))}function D(Z,H,pe,de){var z=this;if(!Z)throw new SyntaxError("Packer is not defined");if(!Z.pack||!Z.unpack)throw new SyntaxError("Packer is invalid");var M=function C(Z){if(!Z)return{};for(var H in Z){var pe=Z[H];"string"==typeof pe&&(Z[H]={response:pe})}return Z}(Z.responseMethods);if(H instanceof Function){if(null!=pe)throw new SyntaxError("There can't be parameters after onRequest");de=H,pe=void 0,H=void 0}if(H&&H.send instanceof Function){if(pe&&!(pe instanceof Function))throw new SyntaxError("Only a function can be after transport");de=pe,pe=H,H=void 0}if(pe instanceof Function){if(null!=de)throw new SyntaxError("There can't be parameters after onRequest");de=pe,pe=void 0}if(pe&&pe.send instanceof Function&&de&&!(de instanceof Function))throw new SyntaxError("Only a function can be after transport");H=H||{},q.call(this),de&&this.on("request",de),S?this.peerID=H.peerID:Object.defineProperty(this,"peerID",{value:H.peerID});var W=H.max_retries||0;function J(X){z.decode(X.data||X)}this.getTransport=function(){return pe},this.setTransport=function(X){pe&&(pe.removeEventListener?pe.removeEventListener("message",J):pe.removeListener&&pe.removeListener("data",J)),X&&(X.addEventListener?X.addEventListener("message",J):X.addListener&&X.addListener("data",J)),pe=b(X)},S||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(pe);var A=H.request_timeout||P,m=H.ping_request_timeout||A,y=H.response_timeout||P,Y=H.duplicates_timeout||P,R=0,x=new w,B=new w,p=new w,L={};function F(X,ee){var Ee=setTimeout(function(){p.remove(X,ee)},Y);p.set(Ee,X,ee)}function N(X,ee,Ee,De,_e){O.call(this,X,ee),this.getTransport=function(){return _e},this.setTransport=function(Be){_e=b(Be)},S||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var Ae=B.get(Ee,De);_e||z.getTransport()||(S?this.duplicated=Boolean(Ae):Object.defineProperty(this,"duplicated",{value:Boolean(Ae)}));var Ye=M[X];this.pack=Z.pack.bind(Z,this,Ee),this.reply=function(Be,qe,Et){if(Be instanceof Function||Be&&Be.send instanceof Function){if(null!=qe)throw new SyntaxError("There can't be parameters after callback");Et=Be,qe=null,Be=void 0}else if(qe instanceof Function||qe&&qe.send instanceof Function){if(null!=Et)throw new SyntaxError("There can't be parameters after callback");Et=qe,qe=null}var ze;return Et=b(Et),Ae&&clearTimeout(Ae.timeout),null!=De&&(Be&&(Be.dest=De),qe&&(qe.dest=De)),Be||null!=qe?(null!=z.peerID&&(Be?Be.from=z.peerID:qe.from=z.peerID),ze=Z.pack(ze=Ye?null==Ye.error&&Be?{error:Be}:{method:Be?Ye.error:Ye.response,params:Be||qe}:{error:Be,result:qe},Ee)):ze=Ae?Ae.message:Z.pack({result:null},Ee),function V(X,ee,Ee){var De={message:X,timeout:setTimeout(function(){B.remove(ee,Ee)},y)};B.set(De,ee,Ee)}(ze,Ee,De),(Et=Et||this.getTransport()||z.getTransport())?Et.send(ze):ze}}function k(X){var ee=L[X];if(ee){delete L[X];var Ee=x.pop(ee.id,ee.dest);!Ee||(clearTimeout(Ee.timeout),F(ee.id,ee.dest))}}j(N,O),this.cancel=function(X){if(X)return k(X);for(var X in L)k(X)},this.close=function(){var X=this.getTransport();X&&X.close&&X.close(4003,"Cancel request"),this.cancel(),p.forEach(clearTimeout),B.forEach(function(ee){clearTimeout(ee.timeout)})},this.encode=function(X,ee,Ee,De,_e){if(ee instanceof Function){if(null!=Ee)throw new SyntaxError("There can't be parameters after callback");_e=ee,De=void 0,Ee=void 0,ee=void 0}else if(Ee instanceof Function){if(null!=De)throw new SyntaxError("There can't be parameters after callback");_e=Ee,De=void 0,Ee=void 0}else if(De instanceof Function){if(null!=_e)throw new SyntaxError("There can't be parameters after callback");_e=De,De=void 0}null!=z.peerID&&((ee=ee||{}).from=z.peerID),null!=Ee&&((ee=ee||{}).dest=Ee);var Ae={method:X,params:ee};if(_e){let sn=function(ne,re){z.cancel(Ae),_e(ne,re)},ue=function(ne){return qe.timeout=setTimeout(ce,("ping"===X?m:A)*Math.pow(2,Be++)),L[Ae]={id:Ye,dest:Ee},x.set(qe,Ye,Ee),(ne=ne||Et||z.getTransport())?ne.send(Ae):Ae},ve=function(ne){ne=b(ne),console.warn(Be+" retry for request message:",Ae);var re=p.pop(Ye,Ee);return clearTimeout(re),ue(ne)},ce=function(){if(Be<W)return ve(De);var ne=new Error("Request has timed out");ne.request=Ae,ne.retry=ve,sn(ne)};var Ye=R++,Be=0,qe={message:Ae=Z.pack(Ae,Ye),callback:sn,responseMethods:M[X]||{}},Et=b(De);return ue(De)}return Ae=Z.pack(Ae),(De=De||this.getTransport())?De.send(Ae):Ae},this.decode=function(X,ee){if(!X)throw new TypeError("Message is not defined");try{X=Z.unpack(X)}catch(ce){return console.debug(ce,X)}var Ee=X.id,De=X.ack,_e=X.method,Ae=X.params||{},Ye=Ae.from,Be=Ae.dest;if(null==z.peerID||Ye!=z.peerID){if(null==Ee&&null==De){var qe=new O(_e,Ae);return z.emit("request",qe)?void 0:qe}if(_e){if(null==Be||Be==z.peerID){if(ve=x.get(De,Ye)){var tn=ve.responseMethods;return _e==tn.error?ze(ve,Ae):_e==tn.response?ze(ve,null,Ae):Et()}if(et=p.get(De,Ye))return he(et)}return Et()}var sn=X.error,ue=X.result;if(!(sn&&sn.dest&&sn.dest!=z.peerID||ue&&ue.dest&&ue.dest!=z.peerID)){var ve,et;if(!(ve=x.get(De,Ye)))return(et=p.get(De,Ye))?he(et):console.warn("No callback was defined for this message",X);ze(ve,sn,ue)}}function Et(){if(ee=b(ee)||z.getTransport()){var ce=B.get(Ee,Ye);if(ce)return ee.send(ce.message)}var re=new N(_e,Ae,null!=Ee?Ee:De,Ye,ee);if(!z.emit("request",re))return re}function ze(ce,ne,re){ce.callback(ne,re)}function he(ce){console.warn("Response already processed",X),clearTimeout(ce),F(De,Ye)}}}j(D,q),D.RpcNotification=O,ke.exports=D;var $=U(1780),oe=U(7526);(D.clients=$).transports=oe,D.packers=E},3815:(ke,te)=>{te.pack=function U(q,j){var E={jsonrpc:"2.0"};if(q.method)E.method=q.method,q.params&&(E.params=q.params),null!=j&&(E.id=j);else if(null!=j){if(q.error){if(void 0!==q.result)throw new TypeError("Both result and error are defined");E.error=q.error}else{if(void 0===q.result)throw new TypeError("No result or error is defined");E.result=q.result}E.id=j}return JSON.stringify(E)},te.unpack=function S(q){var j=q;("string"==typeof q||q instanceof String)&&(j=JSON.parse(q));var E=j.jsonrpc;if("2.0"!==E)throw new TypeError("Invalid JsonRPC version '"+E+"': "+q);if(null==j.method){if(null==j.id)throw new TypeError("Invalid message: "+q);var w=void 0!==j.result,P=void 0!==j.error;if(w&&P)throw new TypeError("Both result and error are defined: "+q);if(!w&&!P)throw new TypeError("No result or error is defined: "+q);j.ack=j.id,delete j.id}return j}},3303:(ke,te)=>{te.pack=function U(q){throw new TypeError("Not yet implemented")},te.unpack=function S(q){throw new TypeError("Not yet implemented")}},2907:(ke,te,U)=>{var S=U(3815),q=U(3303);te.JsonRPC=S,te.XmlRPC=q},0:(ke,te)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ConsoleLogger=void 0,te.ConsoleLogger=function S(q){this.logger=q,this.log=q.log,this.info=q.info,this.debug=q.debug,this.warn=q.warn,this.error=q.error}},1829:(ke,te,U)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OpenViduLogger=void 0;var S=U(5163),q=U(0),j=U(1438),E=function(){function w(){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 q.ConsoleLogger(globalThis.console),this.isProdMode=!1,this.isJSNLogSetup=!1}return w.configureJSNLog=function(P,C){var b=this;try{if(globalThis.LOG_JSNLOG_RESULTS||this.instance&&P.isAtLeastPro&&this.instance.isOpenViduBrowserLogsDebugActive(P)&&this.instance.canConfigureJSNLog(P,this.instance)){P.sendBrowserLogs===j.OpenViduLoggerConfiguration.debug_app&&this.instance.replaceWindowConsole(),this.instance.isJSNLogSetup=!1,this.instance.info("Configuring JSNLogs.");var O=P.finalUserId,D=P.session.sessionId;this.instance.currentAppender=S.JL.createAjaxAppender("appender-".concat(O,"-").concat(D)),this.instance.currentAppender.setOptions({beforeSend:function(Z){var H=Z.onreadystatechange;Z.onreadystatechange=function(){b.isInvalidResponse(Z)&&(Object.defineProperty(Z,"readyState",{value:4}),Object.defineProperty(Z,"status",{value:200}),b.instance.disableLogger()),H()},Z.setRequestHeader("Authorization","Basic "+btoa("".concat(O,"%/%").concat(D)+":"+C)),Z.setRequestHeader("X-Requested-With","XMLHttpRequest"),Z.setRequestHeader("OV-Final-User-Id",O),Z.setRequestHeader("OV-Session-Id",D),Z.setRequestHeader("OV-Token",C)},maxBatchSize:1e3,batchSize:this.instance.MAX_JSNLOG_BATCH_LOG_MESSAGES,batchTimeout:this.instance.MAX_MSECONDS_BATCH_MESSAGES}),S.JL.setOptions({defaultAjaxUrl:P.httpUri+this.instance.JSNLOG_URL,serialize:function(Z){var de,pe=JSON.stringify(Z,(de=new WeakSet,function(z,M){if("object"==typeof M&&null!=M){if(de.has(M)||globalThis.HTMLElement&&M instanceof HTMLElement)return;de.add(M)}return M}));return pe.length>b.instance.MAX_LENGTH_STRING_JSON&&(pe="".concat(pe.substring(0,b.instance.MAX_LENGTH_STRING_JSON),"...")),globalThis.LOG_JSNLOG_RESULTS&&console.log(pe),pe},enabled:!0}),(0,S.JL)().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=D,this.instance.info("JSNLog configured.")}}catch(Z){console.error("Error configuring JSNLog: "),console.error(Z),this.instance.disableLogger()}},w.getInstance=function(){return w.instance||(w.instance=new w),w.instance},w.isInvalidResponse=function(P){return 401==P.status||403==P.status||404==P.status||0==P.status},w.prototype.canConfigureJSNLog=function(P,C){return P.session.sessionId!=C.loggingSessionId},w.prototype.isOpenViduBrowserLogsDebugActive=function(P){return P.sendBrowserLogs===j.OpenViduLoggerConfiguration.debug||P.sendBrowserLogs===j.OpenViduLoggerConfiguration.debug_app},w.prototype.getConsoleWithJSNLog=function(){return P=this,{log:function(){for(var C=[],b=0;b<arguments.length;b++)C[b]=arguments[b];P.defaultConsoleLogger.log.apply(P.defaultConsoleLogger.logger,arguments),P.isJSNLogSetup&&(0,S.JL)().info(arguments)},info:function(){for(var C=[],b=0;b<arguments.length;b++)C[b]=arguments[b];P.defaultConsoleLogger.info.apply(P.defaultConsoleLogger.logger,arguments),P.isJSNLogSetup&&(0,S.JL)().info(arguments)},debug:function(){for(var C=[],b=0;b<arguments.length;b++)C[b]=arguments[b];P.defaultConsoleLogger.debug.apply(P.defaultConsoleLogger.logger,arguments)},warn:function(){for(var C=[],b=0;b<arguments.length;b++)C[b]=arguments[b];P.defaultConsoleLogger.warn.apply(P.defaultConsoleLogger.logger,arguments),P.isJSNLogSetup&&(0,S.JL)().warn(arguments)},error:function(){for(var C=[],b=0;b<arguments.length;b++)C[b]=arguments[b];P.defaultConsoleLogger.error.apply(P.defaultConsoleLogger.logger,arguments),P.isJSNLogSetup&&(0,S.JL)().error(arguments)}};var P},w.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},w.prototype.disableLogger=function(){S.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},w.prototype.log=function(){for(var P=[],C=0;C<arguments.length;C++)P[C]=arguments[C];this.isProdMode||this.defaultConsoleLogger.log.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,S.JL)().info(arguments)},w.prototype.debug=function(){for(var P=[],C=0;C<arguments.length;C++)P[C]=arguments[C];this.isProdMode||this.defaultConsoleLogger.debug.apply(this.defaultConsoleLogger.logger,arguments)},w.prototype.info=function(){for(var P=[],C=0;C<arguments.length;C++)P[C]=arguments[C];this.isProdMode||this.defaultConsoleLogger.info.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,S.JL)().info(arguments)},w.prototype.warn=function(){for(var P=[],C=0;C<arguments.length;C++)P[C]=arguments[C];this.defaultConsoleLogger.warn.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,S.JL)().warn(arguments)},w.prototype.error=function(){for(var P=[],C=0;C<arguments.length;C++)P[C]=arguments[C];this.defaultConsoleLogger.error.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,S.JL)().error(arguments)},w.prototype.flush=function(){this.isJSNLogSetup&&null!=this.currentAppender&&this.currentAppender.sendBatch()},w.prototype.enableProdMode=function(){this.isProdMode=!0},w}();te.OpenViduLogger=E},1438:(ke,te)=>{"use strict";var S;Object.defineProperty(te,"__esModule",{value:!0}),te.OpenViduLoggerConfiguration=void 0,(S=te.OpenViduLoggerConfiguration||(te.OpenViduLoggerConfiguration={})).disabled="disabled",S.debug="debug",S.debug_app="debug_app"},467:(ke,te)=>{function U(w,P,C){var b={audio:!1,video:{mandatory:{chromeMediaSource:w?"screen":"desktop",maxWidth:globalThis.screen.width>1920?globalThis.screen.width:1920,maxHeight:globalThis.screen.height>1080?globalThis.screen.height:1080},optional:[]}};return C&&(b.audio={mandatory:{chromeMediaSource:w?"screen":"desktop"},optional:[]}),P&&(b.video.mandatory.chromeMediaSourceId=P,b.audio&&b.audio.mandatory&&(b.audio.mandatory.chromeMediaSourceId=P)),b}function S(w){q?q.isLoaded?q.contentWindow.postMessage(w?w.forEach?{captureCustomSourceId:w}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){S(w)},100):j(function(){S(w)})}var q;function j(w){q?w():((q=document.createElement("iframe")).onload=function(){q.isLoaded=!0,w()},q.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",q.style.display="none",(document.body||document.documentElement).appendChild(q))}function E(){q?q.isLoaded?q.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(E,100):j(E)}globalThis.getScreenId=function(w,P,C){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?P(null,"firefox",{video:{mozMediaSource:w,mediaSource:w}}):(globalThis.addEventListener("message",function b(O){!O.data||(O.data.chromeMediaSourceId&&("PermissionDeniedError"===O.data.chromeMediaSourceId?P("permission-denied"):P(null,O.data.chromeMediaSourceId,U(null,O.data.chromeMediaSourceId,O.data.canRequestAudioTrack)),globalThis.removeEventListener("message",b)),O.data.chromeExtensionStatus&&(P(O.data.chromeExtensionStatus,null,U(O.data.chromeExtensionStatus)),globalThis.removeEventListener("message",b)))}),setTimeout(C?function(){S(C)}:S,100)):P({video:!0})},globalThis.getScreenConstraints=function(w){j(function(){getScreenId(function(P,C,b){b||(b={video:!0}),w(P,b.video)})})},globalThis.getChromeExtensionStatus=function(w){navigator.mozGetUserMedia?w("installed-enabled"):(globalThis.addEventListener("message",function P(C){!C.data||C.data.chromeExtensionStatus&&(w(C.data.chromeExtensionStatus),globalThis.removeEventListener("message",P))}),setTimeout(E,100))},te.getScreenId=globalThis.getScreenId},48:(ke,te)=>{var S,q,U="screen";if("undefined"!=typeof window&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent){var j=void 0!==window.InstallTrigger;!!window.opera||navigator.userAgent.indexOf(" OPR/");window,window.addEventListener("message",function(H){H.origin==window.location.origin&&function P(H){if("PermissionDeniedError"==H){if(q)return q("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==H&&(U="desktop"),H.sourceId&&q&&q(S=H.sourceId,!0===H.canRequestAudioTrack)}(H.data)})}function b(H){if(!H)throw'"callback" parameter is mandatory.';if(S)return H(S);q=H,window.postMessage("get-sourceId","*")}function Z(H,pe){if(S="",j)return H(null,{mozMediaSource:"window",mediaSource:"window"});var z={mandatory:{chromeMediaSource:U,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=U||S?("desktop"==U&&(z.mandatory.chromeMediaSourceId=S),H(null,z)):pe?function D(H){if(!H)throw'"callback" parameter is mandatory.';if(S)return H(S);q=H,window.postMessage("audio-plus-tab","*")}(function(M,W){z.mandatory.chromeMediaSourceId=M,W&&(z.canRequestAudioTrack=!0),H("PermissionDeniedError"==M?M:null,z)}):b(function(M){z.mandatory.chromeMediaSourceId=M,H("PermissionDeniedError"==M?M:null,z)})}te.getScreenConstraints=Z,te.getScreenConstraintsWithAudio=function oe(H){Z(H,!0)},te.isChromeExtensionAvailable=function C(H){if(H){if("desktop"==U)return H(!0);window.postMessage("are-you-there","*"),setTimeout(function(){H("screen"!=U)},2e3)}},te.getChromeExtensionStatus=function $(H,pe){if(j)return pe("not-chrome");2!=arguments.length&&(pe=H,H="lfcgfepafnobdloecchnfaclibenjold");var de=document.createElement("img");de.src="chrome-extension://"+H+"/icon.png",de.onload=function(){U="screen",window.postMessage("are-you-there","*"),setTimeout(function(){pe("screen"==U?"installed-disabled":"installed-enabled")},2e3)},de.onerror=function(){pe("not-installed")}},te.getSourceId=b},1171:(ke,te,U)=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.PlatformUtils=void 0;var S=U(6218),q=function(){function j(){}return j.getInstance=function(){return this.instance||(this.instance=new j),j.instance},j.prototype.isChromeBrowser=function(){return"Chrome"===S.name},j.prototype.isSafariBrowser=function(){return"Safari"===S.name},j.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===S.name},j.prototype.isFirefoxBrowser=function(){return"Firefox"===S.name},j.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===S.name||"Firefox for iOS"===S.name},j.prototype.isOperaBrowser=function(){return"Opera"===S.name},j.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===S.name},j.prototype.isEdgeBrowser=function(){var E=(null==S?void 0:S.version)?parseFloat(S.version):-1;return"Microsoft Edge"===S.name&&E>=80},j.prototype.isEdgeMobileBrowser=function(){var E,w,P=(null==S?void 0:S.version)?parseFloat(S.version):-1;return"Microsoft Edge"===S.name&&("Android"===(null===(E=S.os)||void 0===E?void 0:E.family)||"iOS"===(null===(w=S.os)||void 0===w?void 0:w.family))&&P>45},j.prototype.isAndroidBrowser=function(){return"Android Browser"===S.name},j.prototype.isElectron=function(){return"Electron"===S.name},j.prototype.isNodeJs=function(){return"Node.js"===S.name},j.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===S.name||"Samsung Internet"===S.name},j.prototype.isIPhoneOrIPad=function(){var E=S.ua?S.ua:navigator.userAgent,w="ontouchend"in document,P=/\b(\w*Macintosh\w*)\b/.test(E)&&w,C=/\b(\w*iPhone\w*)\b/.test(E)&&/\b(\w*Mobile\w*)\b/.test(E)&&w;return P||C},j.prototype.isIOSWithSafari=function(){var E=S.ua?S.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(E)&&!/\b(\w*CriOS\w*)\b/.test(E)&&!/\b(\w*FxiOS\w*)\b/.test(E)},j.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===S.ua.indexOf("Safari")},j.prototype.isIonicAndroid=function(){return"Android"===S.os.family&&"Android Browser"==S.name},j.prototype.isMobileDevice=function(){return"iOS"===S.os.family||"Android"===S.os.family},j.prototype.isReactNative=function(){return!1},j.prototype.isChromium=function(){return this.isChromeBrowser()||this.isChromeMobileBrowser()||this.isOperaBrowser()||this.isOperaMobileBrowser()||this.isEdgeBrowser()||this.isEdgeMobileBrowser()||this.isSamsungBrowser()||this.isIonicAndroid()||this.isIonicIos()||this.isElectron()},j.prototype.canScreenShare=function(){var E=(null==S?void 0:S.version)?parseFloat(S.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&E>=13)},j.prototype.getName=function(){return S.name||""},j.prototype.getVersion=function(){return S.version||""},j.prototype.getFamily=function(){return S.os.family||""},j.prototype.getDescription=function(){return S.description||""},j}();te.PlatformUtils=q},1530:function(ke,te,U){"use strict";var de,S=this&&this.__extends||(de=function(z,M){return(de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,J){W.__proto__=J}||function(W,J){for(var A in J)Object.prototype.hasOwnProperty.call(J,A)&&(W[A]=J[A])})(z,M)},function(z,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=z}de(z,M),z.prototype=null===M?Object.create(M):(W.prototype=M.prototype,new W)}),q=this&&this.__assign||function(){return q=Object.assign||function(de){for(var z,M=1,W=arguments.length;M<W;M++)for(var J in z=arguments[M])Object.prototype.hasOwnProperty.call(z,J)&&(de[J]=z[J]);return de},q.apply(this,arguments)},j=this&&this.__awaiter||function(de,z,M,W){return new(M||(M=Promise))(function(A,m){function y(x){try{R(W.next(x))}catch(B){m(B)}}function Y(x){try{R(W.throw(x))}catch(B){m(B)}}function R(x){x.done?A(x.value):function J(A){return A instanceof M?A:new M(function(m){m(A)})}(x.value).then(y,Y)}R((W=W.apply(de,z||[])).next())})},E=this&&this.__generator||function(de,z){var W,J,A,m,M={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return m={next:y(0),throw:y(1),return:y(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function y(R){return function(x){return function Y(R){if(W)throw new TypeError("Generator is already executing.");for(;M;)try{if(W=1,J&&(A=2&R[0]?J.return:R[0]?J.throw||((A=J.return)&&A.call(J),0):J.next)&&!(A=A.call(J,R[1])).done)return A;switch(J=0,A&&(R=[2&R[0],A.value]),R[0]){case 0:case 1:A=R;break;case 4:return M.label++,{value:R[1],done:!1};case 5:M.label++,J=R[1],R=[0];continue;case 7:R=M.ops.pop(),M.trys.pop();continue;default:if(!(A=(A=M.trys).length>0&&A[A.length-1])&&(6===R[0]||2===R[0])){M=0;continue}if(3===R[0]&&(!A||R[1]>A[0]&&R[1]<A[3])){M.label=R[1];break}if(6===R[0]&&M.label<A[1]){M.label=A[1],A=R;break}if(A&&M.label<A[2]){M.label=A[2],M.ops.push(R);break}A[2]&&M.ops.pop(),M.trys.pop();continue}R=z.call(de,M)}catch(x){R=[6,x],J=0}finally{W=A=0}if(5&R[0])throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}([R,x])}}};Object.defineProperty(te,"__esModule",{value:!0}),te.WebRtcPeerSendrecv=te.WebRtcPeerSendonly=te.WebRtcPeerRecvonly=te.WebRtcPeer=void 0;var w=U(8145),P=U(8201),C=U(4131),b=U(1829),O=U(1171),D=b.OpenViduLogger.getInstance(),oe=function(){function de(z){var M=this;this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],this.candidategatheringdone=!1,O.PlatformUtils.getInstance(),this.configuration=q(q({},z),{iceServers:z.iceServers&&z.iceServers.length>0?z.iceServers:w(),mediaStream:void 0!==z.mediaStream?z.mediaStream:null,mode:z.mode?z.mode:"sendrecv",id:z.id?z.id:this.generateUniqueId()}),D.debug("[WebRtcPeer] configuration:\n".concat(JSON.stringify(this.configuration,null,2))),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.pc.addEventListener("icecandidate",function(W){if(null!==W.candidate){var A=new RTCIceCandidate(W.candidate);M.configuration.onIceCandidate(A),""!==A.candidate&&M.localCandidatesQueue.push(A)}}),this.pc.addEventListener("signalingstatechange",function(){if("stable"===M.pc.signalingState)for(;M.iceCandidateList.length>0;){var W=M.iceCandidateList.shift();M.pc.addIceCandidate(W)}})}return de.prototype.getId=function(){return this.configuration.id},de.prototype.dispose=function(){if(D.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},de.prototype.createOfferLegacy=function(){this.configuration.mediaStream&&this.deprecatedPeerConnectionTrackApi();var W={offerToReceiveAudio:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.audio,offerToReceiveVideo:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.video};return D.debug("[createOfferLegacy] RTCPeerConnection.createOffer() options:",JSON.stringify(W)),this.pc.createOffer(W)},de.prototype.createOffer=function(){var z,M,W,J,A,m,y,Y;return j(this,void 0,void 0,function(){var R,x,B,p,L,V,F,N,k,X,ee,Ee,De,_e,Ae,Ye,Be,qe,Et,ze,he,tn,et;return E(this,function(sn){switch(sn.label){case 0:if(!("addTransceiver"in this.pc))return D.warn("[createOffer] Method RTCPeerConnection.addTransceiver() is NOT available; using LEGACY offerToReceive{Audio,Video}"),[2,this.createOfferLegacy()];if(D.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"));R=0,x=this.configuration.mediaStream.getTracks(),sn.label=1;case 1:if(!(R<x.length))return[3,6];if(p={direction:this.configuration.mode,streams:[this.configuration.mediaStream]},"video"===(B=x[R]).kind&&this.configuration.simulcast)for(L=B.getSettings(),V=B.getConstraints(),F=null!==(W=null!==(M=null!==(z=L.width)&&void 0!==z?z:V.width.ideal)&&void 0!==M?M:V.width)&&void 0!==W?W:0,N=null!==(m=null!==(A=null!==(J=L.height)&&void 0!==J?J:V.height.ideal)&&void 0!==A?A:V.height)&&void 0!==m?m:0,D.info("[createOffer] Video track dimensions: ".concat(F,"x").concat(N)),0,X=(k=F*N)>=518400?3:k>=129600?2:1,p.sendEncodings=[],ee=0;ee<X;ee++)Ee=Math.pow(2,X-ee-1),De={rid:"rdiv"+Ee.toString(),scalabilityMode:"L1T1"},["detail","text"].includes(B.contentHint)?(De.scaleResolutionDownBy=1,De.maxFramerate=Math.floor(30/Ee)):De.scaleResolutionDownBy=Ee,p.sendEncodings.push(De);if(_e=this.pc.addTransceiver(B,p),"video"!==B.kind)return[3,5];if(Ae=_e.sender.getParameters(),Ye=!1,(null===(y=Ae.degradationPreference)||void 0===y?void 0:y.length)||(Ae.degradationPreference=["detail","text"].includes(B.contentHint)?"maintain-resolution":"balanced",D.info("[createOffer] Video sender Degradation Preference set: ".concat(Ae.degradationPreference)),Ye=!0),this.configuration.simulcast&&(null===(Y=Ae.encodings)||void 0===Y?void 0:Y.length)!==p.sendEncodings.length&&(Ae.encodings=p.sendEncodings,Ye=!0),!Ye)return[3,5];D.debug("[createOffer] Setting new RTCRtpSendParameters to video sender"),sn.label=2;case 2:return sn.trys.push([2,4,,5]),[4,_e.sender.setParameters(Ae)];case 3:return sn.sent(),[3,5];case 4:throw Be=sn.sent(),et="[WebRtcPeer.createOffer] Cannot set RTCRtpSendParameters to video sender",Be instanceof Error&&(et+=": ".concat(Be.message)),new Error(et);case 5:return R++,[3,1];case 6:return[3,8];case 7:for(qe=0,Et=["audio","video"];qe<Et.length;qe++)this.configuration.mediaConstraints[ze=Et[qe]]&&(this.configuration.mediaStream=new MediaStream,this.pc.addTransceiver(ze,{direction:this.configuration.mode,streams:[this.configuration.mediaStream]}));sn.label=8;case 8:return sn.trys.push([8,10,,11]),[4,this.pc.createOffer()];case 9:return he=sn.sent(),[3,11];case 10:throw tn=sn.sent(),et="[WebRtcPeer.createOffer] Browser failed creating an SDP Offer",tn instanceof Error&&(et+=": ".concat(tn.message)),new Error(et);case 11:return[2,he]}})})},de.prototype.deprecatedPeerConnectionTrackApi=function(){for(var z=0,M=this.configuration.mediaStream.getTracks();z<M.length;z++)this.pc.addTrack(M[z],this.configuration.mediaStream)},de.prototype.createAnswer=function(){var z=this;return new Promise(function(M,W){if("getTransceivers"in z.pc){D.debug("[createAnswer] Method RTCPeerConnection.getTransceivers() is available; using it");for(var J=function(p){if(!z.configuration.mediaConstraints[p])return"continue";var L=z.pc.getTransceivers().find(function(V){return V.receiver.track.kind===p});if(!L)return{value:W(new Error("".concat(p," requested, but no transceiver was created from remote description")))};L.direction=z.configuration.mode},A=0,m=["audio","video"];A<m.length;A++){var Y=J(m[A]);if("object"==typeof Y)return Y.value}z.pc.createAnswer().then(function(p){return M(p)}).catch(function(p){return W(p)})}else z.configuration.mediaConstraints&&z.pc.createAnswer({offerToReceiveAudio:"boolean"!=typeof z.configuration.mediaConstraints.audio||z.configuration.mediaConstraints.audio,offerToReceiveVideo:"boolean"!=typeof z.configuration.mediaConstraints.video||z.configuration.mediaConstraints.video}).then(function(p){return M(p)}).catch(function(p){return W(p)})})},de.prototype.processLocalOffer=function(z){var M=this;return new Promise(function(W,J){M.pc.setLocalDescription(z).then(function(){var A=M.pc.localDescription;return A?(D.debug("Local description set",A.sdp),W()):J("Local description is not defined")}).catch(function(A){return J(A)})})},de.prototype.processRemoteOffer=function(z){var M=this;return new Promise(function(W,J){var A={type:"offer",sdp:z};if(D.debug("SDP offer received, setting remote description",A),"closed"===M.pc.signalingState)return J("RTCPeerConnection is closed when trying to set remote description");M.setRemoteDescription(A).then(function(){return W()}).catch(function(m){return J(m)})})},de.prototype.processLocalAnswer=function(z){var M=this;return new Promise(function(W,J){if(D.debug("SDP answer created, setting local description"),"closed"===M.pc.signalingState)return J("RTCPeerConnection is closed when trying to set local description");M.pc.setLocalDescription(z).then(function(){return W()}).catch(function(A){return J(A)})})},de.prototype.processRemoteAnswer=function(z){var M=this;return new Promise(function(W,J){var A={type:"answer",sdp:z};if(D.debug("SDP answer received, setting remote description"),"closed"===M.pc.signalingState)return J("RTCPeerConnection is closed when trying to set remote description");M.setRemoteDescription(A).then(function(){W()}).catch(function(m){return J(m)})})},de.prototype.setRemoteDescription=function(z){return j(this,void 0,void 0,function(){return E(this,function(M){return[2,this.pc.setRemoteDescription(z)]})})},de.prototype.addIceCandidate=function(z){var M=this;return new Promise(function(W,J){switch(D.debug("Remote ICE candidate received",z),M.remoteCandidatesQueue.push(z),M.pc.signalingState){case"closed":J(new Error("PeerConnection object is closed"));break;case"stable":M.pc.remoteDescription?M.pc.addIceCandidate(z).then(function(){return W()}).catch(function(A){return J(A)}):(M.iceCandidateList.push(z),W());break;default:M.iceCandidateList.push(z),W()}})},de.prototype.addIceConnectionStateChangeListener=function(z){var M=this;this.pc.addEventListener("iceconnectionstatechange",function(){switch(M.pc.iceConnectionState){case"disconnected":var J="IceConnectionState of RTCPeerConnection "+M.configuration.id+" ("+z+') change to "disconnected". Possible network disconnection';D.warn(J),M.configuration.onIceConnectionStateException(C.ExceptionEventName.ICE_CONNECTION_DISCONNECTED,J);break;case"failed":var A="IceConnectionState of RTCPeerConnection "+M.configuration.id+" ("+z+') to "failed"';D.error(A),M.configuration.onIceConnectionStateException(C.ExceptionEventName.ICE_CONNECTION_FAILED,A);break;case"closed":D.log("IceConnectionState of RTCPeerConnection "+M.configuration.id+" ("+z+') change to "closed"');break;case"new":D.log("IceConnectionState of RTCPeerConnection "+M.configuration.id+" ("+z+') change to "new"');break;case"checking":D.log("IceConnectionState of RTCPeerConnection "+M.configuration.id+" ("+z+') change to "checking"');break;case"connected":D.log("IceConnectionState of RTCPeerConnection "+M.configuration.id+" ("+z+') change to "connected"');break;case"completed":D.log("IceConnectionState of RTCPeerConnection "+M.configuration.id+" ("+z+') change to "completed"')}})},de.prototype.generateUniqueId=function(){return(0,P.v4)()},de}();te.WebRtcPeer=oe;var Z=function(de){function z(M){return M.mode="recvonly",de.call(this,M)||this}return S(z,de),z}(oe);te.WebRtcPeerRecvonly=Z;var H=function(de){function z(M){return M.mode="sendonly",de.call(this,M)||this}return S(z,de),z}(oe);te.WebRtcPeerSendonly=H;var pe=function(de){function z(M){return M.mode="sendrecv",de.call(this,M)||this}return S(z,de),z}(oe);te.WebRtcPeerSendrecv=pe},7153:function(ke,te,U){"use strict";var S=this&&this.__awaiter||function(b,O,D,$){return new(D||(D=Promise))(function(Z,H){function pe(M){try{z($.next(M))}catch(W){H(W)}}function de(M){try{z($.throw(M))}catch(W){H(W)}}function z(M){M.done?Z(M.value):function oe(Z){return Z instanceof D?Z:new D(function(H){H(Z)})}(M.value).then(pe,de)}z(($=$.apply(b,O||[])).next())})},q=this&&this.__generator||function(b,O){var $,oe,Z,H,D={label:0,sent:function(){if(1&Z[0])throw Z[1];return Z[1]},trys:[],ops:[]};return H={next:pe(0),throw:pe(1),return:pe(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function pe(z){return function(M){return function de(z){if($)throw new TypeError("Generator is already executing.");for(;D;)try{if($=1,oe&&(Z=2&z[0]?oe.return:z[0]?oe.throw||((Z=oe.return)&&Z.call(oe),0):oe.next)&&!(Z=Z.call(oe,z[1])).done)return Z;switch(oe=0,Z&&(z=[2&z[0],Z.value]),z[0]){case 0:case 1:Z=z;break;case 4:return D.label++,{value:z[1],done:!1};case 5:D.label++,oe=z[1],z=[0];continue;case 7:z=D.ops.pop(),D.trys.pop();continue;default:if(!(Z=(Z=D.trys).length>0&&Z[Z.length-1])&&(6===z[0]||2===z[0])){D=0;continue}if(3===z[0]&&(!Z||z[1]>Z[0]&&z[1]<Z[3])){D.label=z[1];break}if(6===z[0]&&D.label<Z[1]){D.label=Z[1],Z=z;break}if(Z&&D.label<Z[2]){D.label=Z[2],D.ops.push(z);break}Z[2]&&D.ops.pop(),D.trys.pop();continue}z=O.call(b,D)}catch(M){z=[6,M],oe=0}finally{$=Z=0}if(5&z[0])throw z[1];return{value:z[0]?z[1]:void 0,done:!0}}([z,M])}}};Object.defineProperty(te,"__esModule",{value:!0}),te.WebRtcStats=void 0;var P,j=U(1829),E=U(1171),w=j.OpenViduLogger.getInstance(),C=function(){function b(O){this.stream=O,this.STATS_ITEM_NAME="webrtc-stats-config",this.webRtcStatsEnabled=!1,this.statsInterval=1,P=E.PlatformUtils.getInstance()}return b.prototype.isEnabled=function(){return this.webRtcStatsEnabled},b.prototype.initWebRtcStats=function(){var O=this,D=localStorage.getItem(this.STATS_ITEM_NAME);if(D){this.webRtcStatsEnabled=!0;var $=JSON.parse(D);w.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),w.warn("localStorage item: "+JSON.stringify($)),this.POST_URL=$.httpEndpoint,this.statsInterval=$.interval,this.webRtcStatsIntervalId=setInterval(function(){return S(O,void 0,void 0,function(){return q(this,function(oe){switch(oe.label){case 0:return[4,this.sendStatsToHttpEndpoint()];case 1:return oe.sent(),[2]}})})},1e3*this.statsInterval)}else w.debug("WebRtc stats not enabled")},b.prototype.getSelectedIceCandidateInfo=function(){var O=this;return new Promise(function(D,$){return S(O,void 0,void 0,function(){var oe,Z,H,pe,de,z,W,J,A,m,Y,R,x,B,p,L,V,F,N;return q(this,function(X){switch(X.label){case 0:return[4,this.stream.getRTCPeerConnection().getStats()];case 1:if(oe=X.sent(),H=new Map,pe=new Map,de=new Map,oe.forEach(function(ee){switch("transport"===ee.type&&(P.isChromium()||P.isSafariBrowser()||P.isReactNative())&&(Z=ee),ee.type){case"candidate-pair":H.set(ee.id,ee);break;case"local-candidate":pe.set(ee.id,ee);break;case"remote-candidate":de.set(ee.id,ee)}}),null!=Z)z=H.get(Z.selectedCandidatePairId);else for(W=H.size,J=H.values(),A=0;A<W;A++)if((m=J.next().value).selected){z=m;break}if(Y=z.remoteCandidateId,R=pe.get(z.localCandidateId))for(L=this.stream.getLocalIceCandidateList(),V=L.filter(function(ee){return!!ee.candidate&&(ee.candidate.indexOf(R.ip)>=0||ee.candidate.indexOf(R.address)>=0)&&ee.candidate.indexOf(R.port)>=0}),R.raw=[],x=0,B=V;x<B.length;x++)R.raw.push(B[x].candidate);else R="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";if(p=de.get(Y))for(L=this.stream.getRemoteIceCandidateList(),V=L.filter(function(ee){return!!ee.candidate&&(ee.candidate.indexOf(p.ip)>=0||ee.candidate.indexOf(p.address)>=0)&&ee.candidate.indexOf(p.port)>=0}),p.raw=[],F=0,N=V;F<N.length;F++)p.raw.push(N[F].candidate);else p="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used";return[2,D({localCandidate:R,remoteCandidate:p})]}})})})},b.prototype.stopWebRtcStats=function(){this.webRtcStatsEnabled&&(clearInterval(this.webRtcStatsIntervalId),w.warn("WebRtc stats stopped for disposed stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId))},b.prototype.sendStats=function(O,D){return S(this,void 0,void 0,function(){var $,oe;return q(this,function(Z){switch(Z.label){case 0:return Z.trys.push([0,2,,3]),$={headers:{"Content-type":"application/json"},body:JSON.stringify(D),method:"POST"},[4,fetch(O,$)];case 1:return Z.sent(),[3,3];case 2:return oe=Z.sent(),w.error("sendStats error: ".concat(JSON.stringify(oe))),[3,3];case 3:return[2]}})})},b.prototype.sendStatsToHttpEndpoint=function(){return S(this,void 0,void 0,function(){var O,D,$;return q(this,function(oe){switch(oe.label){case 0:return oe.trys.push([0,3,,4]),[4,this.getCommonStats()];case 1:return O=oe.sent(),D=this.generateJSONStatsResponse(O),[4,this.sendStats(this.POST_URL,D)];case 2:return oe.sent(),[3,4];case 3:return $=oe.sent(),w.log($),[3,4];case 4:return[2]}})})},b.prototype.getCommonStats=function(){return S(this,void 0,void 0,function(){var O=this;return q(this,function(D){return[2,new Promise(function($,oe){return S(O,void 0,void 0,function(){var Z,H,pe,de,z,M=this;return q(this,function(W){switch(W.label){case 0:return W.trys.push([0,2,,3]),[4,this.stream.getRTCPeerConnection().getStats()];case 1:return Z=W.sent(),H=this.getWebRtcStatsResponseOutline(),pe=["framesReceived","framesDropped","framesSent","frameHeight","frameWidth"],de=["availableOutgoingBitrate","currentRoundTripTime"],Z.forEach(function(J){var A=null!=J.mediaType?J.mediaType:J.kind,m=function(y,Y){null!=J[Y]&&null!=H[y]&&(!A&&pe.indexOf(Y)>-1&&(A="video"),null!=y&&null!=A&&null!=Y&&null!=H[y][A]?H[y][A][Y]=Number(J[Y]):null!=y&&null!=Y&&de.includes(Y)&&(H[y][Y]=Number(J[Y])))};switch(J.type){case"outbound-rtp":m("outbound","bytesSent"),m("outbound","packetsSent"),m("outbound","framesEncoded"),m("outbound","nackCount"),m("outbound","firCount"),m("outbound","pliCount"),m("outbound","qpSum");break;case"inbound-rtp":m("inbound","bytesReceived"),m("inbound","packetsReceived"),m("inbound","packetsLost"),m("inbound","jitter"),m("inbound","framesDecoded"),m("inbound","nackCount"),m("inbound","firCount"),m("inbound","pliCount");break;case"track":m("inbound","jitterBufferDelay"),m("inbound","framesReceived"),m("outbound","framesDropped"),m("outbound","framesSent"),m(M.stream.isLocal()?"outbound":"inbound","frameHeight"),m(M.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":m("candidatepair","currentRoundTripTime"),m("candidatepair","availableOutgoingBitrate")}}),(!(null==H?void 0:H.candidatepair)||0===Object.keys(H.candidatepair).length)&&delete H.candidatepair,[2,$(H)];case 2:return z=W.sent(),w.error("Error getting common stats: ",z),[2,oe(z)];case 3:return[2]}})})})]})})},b.prototype.generateJSONStatsResponse=function(O){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:P.getName(),platform_description:P.getDescription(),stream:"webRTC",webrtc_stats:O}},b.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},b}();te.WebRtcStats=C},9795:(ke,te,U)=>{"use strict";te.Ll=te.Dn=void 0;var q=U(5163),j=U(3634);Object.defineProperty(te,"Dn",{enumerable:!0,get:function(){return j.OpenVidu}});U(5607),U(4302),U(3343),U(7373),U(8770),U(7576),U(8499),U(5481),U(1216);var Z=U(9303);Object.defineProperty(te,"Ll",{enumerable:!0,get:function(){return Z.OpenViduErrorName}});U(7879),U(7167),U(616),U(1698),U(8887),U(5449),U(1690),U(1659),U(3980),U(7818),U(6320),U(9383),U(9005),U(5132),U(9900),U(4131),U(2768);q.JL.setOptions({enabled:!1})},7945:ke=>{"use strict";var S,te="object"==typeof Reflect?Reflect:null,U=te&&"function"==typeof te.apply?te.apply:function(J,A,m){return Function.prototype.apply.call(J,A,m)};S=te&&"function"==typeof te.ownKeys?te.ownKeys:Object.getOwnPropertySymbols?function(J){return Object.getOwnPropertyNames(J).concat(Object.getOwnPropertySymbols(J))}:function(J){return Object.getOwnPropertyNames(J)};var j=Number.isNaN||function(J){return J!=J};function E(){E.init.call(this)}ke.exports=E,ke.exports.once=function de(W,J){return new Promise(function(A,m){function y(R){W.removeListener(J,Y),m(R)}function Y(){"function"==typeof W.removeListener&&W.removeListener("error",y),A([].slice.call(arguments))}M(W,J,Y,{once:!0}),"error"!==J&&function z(W,J,A){"function"==typeof W.on&&M(W,"error",J,A)}(W,y,{once:!0})})},E.EventEmitter=E,E.prototype._events=void 0,E.prototype._eventsCount=0,E.prototype._maxListeners=void 0;var w=10;function P(W){if("function"!=typeof W)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof W)}function C(W){return void 0===W._maxListeners?E.defaultMaxListeners:W._maxListeners}function b(W,J,A,m){var y,Y,R;if(P(A),void 0===(Y=W._events)?(Y=W._events=Object.create(null),W._eventsCount=0):(void 0!==Y.newListener&&(W.emit("newListener",J,A.listener?A.listener:A),Y=W._events),R=Y[J]),void 0===R)R=Y[J]=A,++W._eventsCount;else if("function"==typeof R?R=Y[J]=m?[A,R]:[R,A]:m?R.unshift(A):R.push(A),(y=C(W))>0&&R.length>y&&!R.warned){R.warned=!0;var x=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(J)+" listeners added. Use emitter.setMaxListeners() to increase limit");x.name="MaxListenersExceededWarning",x.emitter=W,x.type=J,x.count=R.length,function q(W){console&&console.warn&&console.warn(W)}(x)}return W}function O(){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 D(W,J,A){var m={fired:!1,wrapFn:void 0,target:W,type:J,listener:A},y=O.bind(m);return y.listener=A,m.wrapFn=y,y}function $(W,J,A){var m=W._events;if(void 0===m)return[];var y=m[J];return void 0===y?[]:"function"==typeof y?A?[y.listener||y]:[y]:A?function pe(W){for(var J=new Array(W.length),A=0;A<J.length;++A)J[A]=W[A].listener||W[A];return J}(y):Z(y,y.length)}function oe(W){var J=this._events;if(void 0!==J){var A=J[W];if("function"==typeof A)return 1;if(void 0!==A)return A.length}return 0}function Z(W,J){for(var A=new Array(J),m=0;m<J;++m)A[m]=W[m];return A}function M(W,J,A,m){if("function"==typeof W.on)m.once?W.once(J,A):W.on(J,A);else{if("function"!=typeof W.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof W);W.addEventListener(J,function y(Y){m.once&&W.removeEventListener(J,y),A(Y)})}}Object.defineProperty(E,"defaultMaxListeners",{enumerable:!0,get:function(){return w},set:function(W){if("number"!=typeof W||W<0||j(W))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+W+".");w=W}}),E.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},E.prototype.setMaxListeners=function(J){if("number"!=typeof J||J<0||j(J))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+J+".");return this._maxListeners=J,this},E.prototype.getMaxListeners=function(){return C(this)},E.prototype.emit=function(J){for(var A=[],m=1;m<arguments.length;m++)A.push(arguments[m]);var y="error"===J,Y=this._events;if(void 0!==Y)y=y&&void 0===Y.error;else if(!y)return!1;if(y){var R;if(A.length>0&&(R=A[0]),R instanceof Error)throw R;var x=new Error("Unhandled error."+(R?" ("+R.message+")":""));throw x.context=R,x}var B=Y[J];if(void 0===B)return!1;if("function"==typeof B)U(B,this,A);else{var p=B.length,L=Z(B,p);for(m=0;m<p;++m)U(L[m],this,A)}return!0},E.prototype.on=E.prototype.addListener=function(J,A){return b(this,J,A,!1)},E.prototype.prependListener=function(J,A){return b(this,J,A,!0)},E.prototype.once=function(J,A){return P(A),this.on(J,D(this,J,A)),this},E.prototype.prependOnceListener=function(J,A){return P(A),this.prependListener(J,D(this,J,A)),this},E.prototype.off=E.prototype.removeListener=function(J,A){var m,y,Y,R,x;if(P(A),void 0===(y=this._events))return this;if(void 0===(m=y[J]))return this;if(m===A||m.listener===A)0==--this._eventsCount?this._events=Object.create(null):(delete y[J],y.removeListener&&this.emit("removeListener",J,m.listener||A));else if("function"!=typeof m){for(Y=-1,R=m.length-1;R>=0;R--)if(m[R]===A||m[R].listener===A){x=m[R].listener,Y=R;break}if(Y<0)return this;0===Y?m.shift():function H(W,J){for(;J+1<W.length;J++)W[J]=W[J+1];W.pop()}(m,Y),1===m.length&&(y[J]=m[0]),void 0!==y.removeListener&&this.emit("removeListener",J,x||A)}return this},E.prototype.removeAllListeners=function(J){var A,m,y;if(void 0===(m=this._events))return this;if(void 0===m.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==m[J]&&(0==--this._eventsCount?this._events=Object.create(null):delete m[J]),this;if(0===arguments.length){var R,Y=Object.keys(m);for(y=0;y<Y.length;++y)"removeListener"!==(R=Y[y])&&this.removeAllListeners(R);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(A=m[J]))this.removeListener(J,A);else if(void 0!==A)for(y=A.length-1;y>=0;y--)this.removeListener(J,A[y]);return this},E.prototype.listeners=function(J){return $(this,J,!0)},E.prototype.rawListeners=function(J){return $(this,J,!1)},E.listenerCount=function(W,J){return"function"==typeof W.listenerCount?W.listenerCount(J):oe.call(W,J)},E.prototype.listenerCount=oe,E.prototype.eventNames=function(){return this._eventsCount>0?S(this._events):[]}},8145:(ke,te,U)=>{"use strict";var S=U(4737);ke.exports=function(j){var C,E={stun:(j||{}).stun||U(9272),turn:(j||{}).turn||U(6410)},P=(j||{}).turnCount||0;function b(O,D){for(var Z,$=[],oe=[].concat(E[O]);oe.length&&$.length<D;)Z=Math.random()*oe.length|0,$=$.concat(oe.splice(Z,1));return $.map(function(H){return"string"==typeof H||H instanceof String?S(O+":"+H):H})}return C=[].concat(b("stun",(j||{}).stunCount||2)),P&&(C=C.concat(b("turn",P))),C}},2877:(ke,te,U)=>{var j,S=U(1181);"undefined"!=typeof window&&(j=window.AudioContext||window.webkitAudioContext);var E=null;ke.exports=function(w,b){var C=new S;if(!j)return C;var pe,de,z,O=(b=b||{}).smoothing||.1,D=b.interval||50,$=b.threshold,oe=b.play,Z=b.history||10,H=!0;E=b.audioContext||E||new j,(z=E.createAnalyser()).fftSize=512,z.smoothingTimeConstant=O,de=new Float32Array(z.frequencyBinCount),w.jquery&&(w=w[0]),w instanceof HTMLAudioElement||w instanceof HTMLVideoElement?(pe=E.createMediaElementSource(w),void 0===oe&&(oe=!0),$=$||-50):(pe=E.createMediaStreamSource(w),$=$||-50),pe.connect(z),oe&&z.connect(E.destination),C.speaking=!1,C.suspend=function(){return E.suspend()},C.resume=function(){return E.resume()},Object.defineProperty(C,"state",{get:function(){return E.state}}),E.onstatechange=function(){C.emit("state_change",E.state)},C.setThreshold=function(J){$=J},C.setInterval=function(J){D=J},C.stop=function(){H=!1,C.emit("volume_change",-100,$),C.speaking&&(C.speaking=!1,C.emit("stopped_speaking")),z.disconnect(),pe.disconnect()},C.speakingHistory=[];for(var M=0;M<Z;M++)C.speakingHistory.push(0);var W=function(){setTimeout(function(){if(H){var J=function q(w,P){var C=-1/0;w.getFloatFrequencyData(P);for(var b=4,O=P.length;b<O;b++)P[b]>C&&P[b]<0&&(C=P[b]);return C}(z,de);C.emit("volume_change",J,$);var A=0;if(J>$&&!C.speaking){for(var m=C.speakingHistory.length-3;m<C.speakingHistory.length;m++)A+=C.speakingHistory[m];A>=2&&(C.speaking=!0,C.emit("speaking"))}else if(J<$&&C.speaking){for(m=0;m<C.speakingHistory.length;m++)A+=C.speakingHistory[m];0==A&&(C.speaking=!1,C.emit("stopped_speaking"))}C.speakingHistory.shift(),C.speakingHistory.push(0+(J>$)),W()}},D)};return W(),C}},9543:ke=>{ke.exports="function"==typeof Object.create?function(U,S){S&&(U.super_=S,U.prototype=Object.create(S.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}))}:function(U,S){if(S){U.super_=S;var q=function(){};q.prototype=S.prototype,U.prototype=new q,U.prototype.constructor=U}}},5163:function(ke,te){var j,U=this&&this.__extends||(j=function(E,w){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,C){P.__proto__=C}||function(P,C){for(var b in C)Object.prototype.hasOwnProperty.call(C,b)&&(P[b]=C[b])})(E,w)},function(E,w){function P(){this.constructor=E}j(E,w),E.prototype=null===w?Object.create(w):(P.prototype=w.prototype,new P)});function S(j){if(!j)return S.__;Array.prototype.reduce||(Array.prototype.reduce=function(P,C){for(var b=C,O=0;O<this.length;O++)b=P(b,this[O],O,this);return b});var E="";return("."+j).split(".").reduce(function(P,C,b,O){E?E+="."+C:E=C;var D=P["__"+E];return void 0===D&&(S.Logger.prototype=P,D=new S.Logger(E),P["__"+E]=D),D},S.__)}(function(j){function E(N,k,X){if(void 0!==k[N]){if(null===k[N])return void delete X[N];X[N]=k[N]}}function w(N){if(null!=j.enabled&&!j.enabled)return!1;try{if(N.userAgentRegex&&!new RegExp(N.userAgentRegex).test(navigator.userAgent))return!1}catch(k){}try{if(N.ipRegex&&j.clientIP&&!new RegExp(N.ipRegex).test(j.clientIP))return!1}catch(k){}return!0}function P(N,k){try{if(N.disallow&&new RegExp(N.disallow).test(k))return!1}catch(X){}return!0}function C(N){return"function"==typeof N?N instanceof RegExp?N.toString():N():N}j.requestId="",j.entryId=0,j._createXMLHttpRequest=function(){return new XMLHttpRequest},j._getTime=function(){return(new Date).getTime()},j._console=console,j._appenderNames=[];var b=function N(k,X,ee){this.msg=k,this.meta=X,this.finalString=ee};function O(N){var X,k=C(N);switch(typeof k){case"string":return new b(k,null,k);case"number":case"boolean":return X=k.toString(),new b(X,null,X);case"undefined":return new b("undefined",null,"undefined");case"object":return k instanceof RegExp||k instanceof String||k instanceof Number||k instanceof Boolean?(X=k.toString(),new b(X,null,X)):(X="function"==typeof j.serialize?j.serialize.call(this,k):JSON.stringify(k),new b("",k,X));default:return new b("unknown",null,"unknown")}}function W(N){return N<=1e3?"trace":N<=2e3?"debug":N<=3e3?"info":N<=4e3?"warn":N<=5e3?"error":"fatal"}j.setOptions=function D(N){return E("enabled",N,this),E("maxMessages",N,this),E("defaultAjaxUrl",N,this),E("clientIP",N,this),E("requestId",N,this),E("defaultBeforeSend",N,this),E("serialize",N,this),this},j.getAllLevel=function $(){return-2147483648},j.getTraceLevel=function oe(){return 1e3},j.getDebugLevel=function Z(){return 2e3},j.getInfoLevel=function H(){return 3e3},j.getWarnLevel=function pe(){return 4e3},j.getErrorLevel=function de(){return 5e3},j.getFatalLevel=function z(){return 6e3},j.getOffLevel=function M(){return 2147483647};var J=function N(k,X){this.inner=X,this.name="JL.Exception",this.message=O(k).finalString};j.Exception=J,J.prototype=new Error;var A=function N(k,X,ee,Ee,De){this.l=k,this.m=X,this.n=ee,this.t=Ee,this.u=De};function m(N,k,X){return j.entryId++,new A(N,k,X,j._getTime(),j.entryId)}function y(N){N.id&&(clearTimeout(N.id),N.id=null)}function Y(N,k,X){var ee=this;N.id||(N.id=setTimeout(function(){X.call(ee)},k))}j.LogItem=A;var R=function(){function N(k,X){this.appenderName=k,this.sendLogItems=X,this.level=j.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 ee="Trying to create an appender without a name or with an empty name";if(null==k)throw ee;if(-1!=j._appenderNames.indexOf(k))throw k?"Multiple appenders use the same name "+k:ee;j._appenderNames.push(k)}return N.prototype.addLogItemsToBuffer=function(k){if(this.batchBuffer.length>=this.maxBatchSize)this.nbrLogItemsSkipped+=k.length;else{if(null!=j.maxMessages){if(j.maxMessages<1)return;j.maxMessages-=k.length}this.batchBuffer=this.batchBuffer.concat(k);var X=this;Y(this.batchTimeoutTimer,this.batchTimeout,function(){X.sendBatch.call(X)})}},N.prototype.batchBufferHasOverdueMessages=function(){for(var k=0;k<this.batchBuffer.length;k++)if(j._getTime()-this.batchBuffer[k].t>this.batchTimeout)return!0;return!1},N.prototype.batchBufferHasStrandedMessage=function(){return null!=j.maxMessages&&j.maxMessages<1&&this.batchBuffer.length>0},N.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},N.prototype.onSendingEnded=function(){y(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},N.prototype.setOptions=function(k){if(E("level",k,this),E("ipRegex",k,this),E("userAgentRegex",k,this),E("disallow",k,this),E("sendWithBufferLevel",k,this),E("storeInBufferLevel",k,this),E("bufferSize",k,this),E("batchSize",k,this),E("maxBatchSize",k,this),E("batchTimeout",k,this),E("sendTimeout",k,this),this.bufferSize<this.buffer.length&&(this.buffer.length=this.bufferSize),this.maxBatchSize<this.batchSize)throw new j.Exception({message:"maxBatchSize cannot be smaller than batchSize",maxBatchSize:this.maxBatchSize,batchSize:this.batchSize});return this},N.prototype.log=function(k,X,ee,Ee,De,_e,Ae){var Ye;if(w(this)&&P(this,_e)&&!(De<this.storeInBufferLevel)){if(Ye=m(De,_e,Ae),De<this.level)return void(this.bufferSize>0&&(this.buffer.push(Ye),this.buffer.length>this.bufferSize&&this.buffer.shift()));this.addLogItemsToBuffer([Ye]),De>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete()}},N.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(y(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var k=this;Y(this.sendTimeoutTimer,this.sendTimeout,function(){k.onSendingEnded.call(k)}),this.sendLogItems(this.batchBuffer,function(){k.batchBuffer.splice(0,k.nbrLogItemsBeingSent),k.nbrLogItemsSkipped>0&&(k.batchBuffer.push(m(4e3,"Lost "+k.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.",k.appenderName)),k.nbrLogItemsSkipped=0),k.onSendingEnded.call(k)})}},N}();j.Appender=R;var x=function(N){function k(X){return N.call(this,X,k.prototype.sendLogItemsAjax)||this}return U(k,N),k.prototype.setOptions=function(X){return E("url",X,this),E("beforeSend",X,this),N.prototype.setOptions.call(this,X),this},k.prototype.sendLogItemsAjax=function(X,ee){try{if(!w(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=j._createXMLHttpRequest();var Ee="/jsnlog.logger";null!=j.defaultAjaxUrl&&(Ee=j.defaultAjaxUrl),this.url&&(Ee=this.url),this.xhr.open("POST",Ee),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",j.requestId);var De=this;this.xhr.onreadystatechange=function(){4==De.xhr.readyState&&De.xhr.status>=200&&De.xhr.status<300&&ee()};var _e={r:j.requestId,lg:X};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,_e):"function"==typeof j.defaultBeforeSend&&j.defaultBeforeSend.call(this,this.xhr,_e);var Ae=JSON.stringify(_e);this.xhr.send(Ae)}catch(Ye){}},k}(R);j.AjaxAppender=x;var B=function(N){function k(X){return N.call(this,X,k.prototype.sendLogItemsConsole)||this}return U(k,N),k.prototype.clog=function(X){j._console.log(X)},k.prototype.cerror=function(X){j._console.error?j._console.error(X):this.clog(X)},k.prototype.cwarn=function(X){j._console.warn?j._console.warn(X):this.clog(X)},k.prototype.cinfo=function(X){j._console.info?j._console.info(X):this.clog(X)},k.prototype.cdebug=function(X){j._console.debug?j._console.debug(X):this.cinfo(X)},k.prototype.sendLogItemsConsole=function(X,ee){try{if(!w(this)||!j._console)return;var Ee;for(Ee=0;Ee<X.length;++Ee){var De=X[Ee],_e=De.n+": "+De.m;"undefined"==typeof window&&(_e=new Date(De.t)+" | "+_e),De.l<=j.getDebugLevel()?this.cdebug(_e):De.l<=j.getInfoLevel()?this.cinfo(_e):De.l<=j.getWarnLevel()?this.cwarn(_e):this.cerror(_e)}}catch(Ae){}ee()},k}(R);j.ConsoleAppender=B;var F,p=function(){function N(k){this.loggerName=k,this.seenRegexes=[]}return N.prototype.setOptions=function(k){return E("level",k,this),E("userAgentRegex",k,this),E("disallow",k,this),E("ipRegex",k,this),E("appenders",k,this),E("onceOnly",k,this),this.seenRegexes=[],this},N.prototype.buildExceptionObject=function(k){var X={};return k.stack?X.stack=k.stack:X.e=k,k.message&&(X.message=k.message),k.name&&(X.name=k.name),k.data&&(X.data=k.data),k.inner&&(X.inner=this.buildExceptionObject(k.inner)),X},N.prototype.log=function(k,X,ee){var De,_e,Ee=0;if(!this.appenders)return this;if(k>=this.level&&w(this)&&(ee?(_e=this.buildExceptionObject(ee)).logData=C(X):_e=X,P(this,(De=O(_e)).finalString))){if(this.onceOnly)for(Ee=this.onceOnly.length-1;Ee>=0;){if(new RegExp(this.onceOnly[Ee]).test(De.finalString)){if(this.seenRegexes[Ee])return this;this.seenRegexes[Ee]=!0}Ee--}for(De.meta=De.meta||{},Ee=this.appenders.length-1;Ee>=0;)this.appenders[Ee].log(W(k),De.msg,De.meta,function(){},k,De.finalString,this.loggerName),Ee--}return this},N.prototype.trace=function(k){return this.log(1e3,k)},N.prototype.debug=function(k){return this.log(2e3,k)},N.prototype.info=function(k){return this.log(3e3,k)},N.prototype.warn=function(k){return this.log(4e3,k)},N.prototype.error=function(k){return this.log(5e3,k)},N.prototype.fatal=function(k){return this.log(6e3,k)},N.prototype.fatalException=function(k,X){return this.log(6e3,k,X)},N}();j.Logger=p,j.createAjaxAppender=function L(N){return new x(N)},j.createConsoleAppender=function V(N){return new B(N)},F="undefined"!=typeof window?new x(""):new B(""),j.__=new j.Logger(""),j.__.setOptions({level:j.getDebugLevel(),appenders:[F]})})(S||(S={})),te.__esModule=!0,te.JL=S,"function"==typeof __jsnlog_configure&&__jsnlog_configure(S),"undefined"!=typeof window&&!window.onerror&&(window.onerror=function(j,E,w,P,C){return S("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:j?j.message||j:"",url:E,"line number":w,column:P},C),!1}),"undefined"!=typeof window&&!window.onunhandledrejection&&(window.onunhandledrejection=function(j){S("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:j.reason?j.reason.message:j.message||null},j.reason)})},1708:ke=>{"use strict";function te(){this._types=Object.create(null),this._extensions=Object.create(null);for(let U=0;U<arguments.length;U++)this.define(arguments[U]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}te.prototype.define=function(U,S){for(let q in U){let j=U[q].map(function(E){return E.toLowerCase()});q=q.toLowerCase();for(let E=0;E<j.length;E++){const w=j[E];if("*"!==w[0]){if(!S&&w in this._types)throw new Error('Attempt to change mapping for "'+w+'" extension from "'+this._types[w]+'" to "'+q+'". Pass `force=true` to allow this, otherwise remove "'+w+'" from the list of extensions for "'+q+'".');this._types[w]=q}}if(S||!this._extensions[q]){const E=j[0];this._extensions[q]="*"!==E[0]?E:E.substr(1)}}},te.prototype.getType=function(U){let S=(U=String(U)).replace(/^.*[/\\]/,"").toLowerCase(),q=S.replace(/^.*\./,"").toLowerCase();return(q.length<S.length-1||!(S.length<U.length))&&this._types[q]||null},te.prototype.getExtension=function(U){return(U=/^\s*([^;\s]*)/.test(U)&&RegExp.$1)&&this._extensions[U.toLowerCase()]||null},ke.exports=te},1397:(ke,te,U)=>{"use strict";let S=U(1708);ke.exports=new S(U(3775))},3775:ke=>{ke.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:ke=>{var te=["stun:","turn:"];ke.exports=function(U){var q,j,S=(U||{}).url||U,E={};return("string"==typeof S||S instanceof String)&&(S=S.trim(),q=te[te.indexOf(S.slice(0,5))])?(j=(S=S.slice(5)).split("@"),E.username=U.username,E.credential=U.credential,j.length>1&&(S=j[1],j=j[0].split(":"),E.username=j[0],E.credential=(U||{}).credential||j[1]||""),E.url=q+S,E.urls=[E.url],E):U}},6218:function(ke,te,U){var S;ke=U.nmd(ke),function(){"use strict";var q={function:!0,object:!0},j=q[typeof window]&&window||this,C=q[typeof te]&&te&&q.object&&ke&&!ke.nodeType&&ke&&"object"==typeof global&&global;C&&(C.global===C||C.window===C||C.self===C)&&(j=C);var b=Math.pow(2,53)-1,O=/\bOpera/,$=Object.prototype,oe=$.hasOwnProperty,Z=$.toString;function H(x){return(x=String(x)).charAt(0).toUpperCase()+x.slice(1)}function z(x){return x=y(x),/^(?:webOS|i(?:OS|P))/.test(x)?x:H(x)}function M(x,B){for(var p in x)oe.call(x,p)&&B(x[p],p,x)}function W(x){return null==x?H(x):Z.call(x).slice(8,-1)}function A(x){return String(x).replace(/([ -])(?!$)/g,"$1?")}function m(x,B){var p=null;return function de(x,B){var p=-1,L=x?x.length:0;if("number"==typeof L&&L>-1&&L<=b)for(;++p<L;)B(x[p],p,x);else M(x,B)}(x,function(L,V){p=B(p,L,V,x)}),p}function y(x){return String(x).replace(/^ +| +$/g,"")}var R=function Y(x){var B=j,p=x&&"object"==typeof x&&"String"!=W(x);p&&(B=x,x=null);var L=B.navigator||{},V=L.userAgent||"";x||(x=V);var he,ce,N=p?!!L.likeChrome:/\bChrome\b/.test(x)&&!/internal|\n/i.test(Z.toString()),k="Object",X=p?k:"ScriptBridgingProxyObject",ee=p?k:"Environment",Ee=p&&B.java?"JavaPackage":W(B.java),De=p?k:"RuntimeObject",_e=/\bJava/.test(Ee)&&B.java,Ae=_e&&W(B.environment)==ee,Ye=_e?"a":"\u03b1",Be=_e?"b":"\u03b2",qe=B.document||{},Et=B.operamini||B.opera,ze=O.test(ze=p&&Et?Et["[[Class]]"]:W(Et))?ze:Et=null,tn=x,et=[],sn=null,ue=x==V,ve=ue&&Et&&"function"==typeof Et.version&&Et.version(),ne=function on(Fn){return m(Fn,function(rn,Gt){return rn||RegExp("\\b"+(Gt.pattern||A(Gt))+"\\b","i").exec(x)&&(Gt.label||Gt)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),re=function Pi(Fn){return m(Fn,function(rn,Gt){return rn||RegExp("\\b"+(Gt.pattern||A(Gt))+"\\b","i").exec(x)&&(Gt.label||Gt)})}(["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"]),ye=Tn([{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"]),we=function ai(Fn){return m(Fn,function(rn,Gt,Si){return rn||(Gt[ye]||Gt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(ye)]||RegExp("\\b"+A(Si)+"(?:\\b|\\w*\\d)","i").exec(x))&&Si})}({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}}),Fe=function Uo(Fn){return m(Fn,function(rn,Gt){var Si=Gt.pattern||A(Gt);return!rn&&(rn=RegExp("\\b"+Si+"(?:/[\\d.]+|[ \\w.]*)","i").exec(x))&&(rn=function pe(x,B,p){var L={"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 B&&p&&/^Win/i.test(x)&&!/^Windows Phone /i.test(x)&&(L=L[/[\d.]+$/.exec(x)])&&(x="Windows "+L),x=String(x),B&&p&&(x=x.replace(RegExp(B,"i"),p)),z(x.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])}(rn,Si,Gt.label||Gt)),rn})}(["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 Tn(Fn){return m(Fn,function(rn,Gt){var Si=Gt.pattern||A(Gt);return!rn&&(rn=RegExp("\\b"+Si+" *\\d+[.\\w_]*","i").exec(x)||RegExp("\\b"+Si+" *\\w+-[\\w]*","i").exec(x)||RegExp("\\b"+Si+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(x))&&((rn=String(Gt.label&&!RegExp(Si,"i").test(Gt.label)?Gt.label:rn).split("/"))[1]&&!/[\d.]+/.test(rn[0])&&(rn[0]+=" "+rn[1]),Gt=Gt.label||Gt,rn=z(rn[0].replace(RegExp(Si,"i"),Gt).replace(RegExp("; *(?:"+Gt+"[_-])?","i")," ").replace(RegExp("("+Gt+")[-_.]?(\\w)","i"),"$1 $2"))),rn})}function qi(Fn){return m(Fn,function(rn,Gt){return rn||(RegExp(Gt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(x)||0)[1]||null})}if(ne&&(ne=[ne]),/\bAndroid\b/.test(Fe)&&!ye&&(he=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(x))&&(ye=y(he[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),we&&!ye?ye=Tn([we]):we&&ye&&(ye=ye.replace(RegExp("^("+A(we)+")[-_.\\s]","i"),we+" ").replace(RegExp("^("+A(we)+")[-_.]?(\\w)","i"),we+" $2")),(he=/\bGoogle TV\b/.exec(ye))&&(ye=he[0]),/\bSimulator\b/i.test(x)&&(ye=(ye?ye+" ":"")+"Simulator"),"Opera Mini"==re&&/\bOPiOS\b/.test(x)&&et.push("running in Turbo/Uncompressed mode"),"IE"==re&&/\blike iPhone OS\b/.test(x)?(we=(he=Y(x.replace(/like iPhone OS/,""))).manufacturer,ye=he.product):/^iP/.test(ye)?(re||(re="Safari"),Fe="iOS"+((he=/ OS ([\d_]+)/i.exec(x))?" "+he[1].replace(/_/g,"."):"")):"Konqueror"==re&&/^Linux\b/i.test(Fe)?Fe="Kubuntu":we&&"Google"!=we&&(/Chrome/.test(re)&&!/\bMobile Safari\b/i.test(x)||/\bVita\b/.test(ye))||/\bAndroid\b/.test(Fe)&&/^Chrome/.test(re)&&/\bVersion\//i.test(x)?(re="Android Browser",Fe=/\bAndroid\b/.test(Fe)?Fe:"Android"):"Silk"==re?(/\bMobi/i.test(x)||(Fe="Android",et.unshift("desktop mode")),/Accelerated *= *true/i.test(x)&&et.unshift("accelerated")):"UC Browser"==re&&/\bUCWEB\b/.test(x)?et.push("speed mode"):"PaleMoon"==re&&(he=/\bFirefox\/([\d.]+)\b/.exec(x))?et.push("identifying as Firefox "+he[1]):"Firefox"==re&&(he=/\b(Mobile|Tablet|TV)\b/i.exec(x))?(Fe||(Fe="Firefox OS"),ye||(ye=he[1])):!re||(he=!/\bMinefield\b/i.test(x)&&/\b(?:Firefox|Safari)\b/.exec(re))?(re&&!ye&&/[\/,]|^[^(]+?\)/.test(x.slice(x.indexOf(he+"/")+8))&&(re=null),(he=ye||we||Fe)&&(ye||we||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Fe))&&(re=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Fe)?Fe:he)+" Browser")):"Electron"==re&&(he=(/\bChrome\/([\d.]+)\b/.exec(x)||0)[1])&&et.push("Chromium "+he),ve||(ve=qi(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",A(re),"(?:Firefox|Minefield|NetFront)"])),(he=("iCab"==ne&&parseFloat(ve)>3?"WebKit":/\bOpera\b/.test(re)&&(/\bOPR\b/.test(x)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(x)&&!/^(?:Trident|EdgeHTML)$/.test(ne)&&"WebKit"||!ne&&/\bMSIE\b/i.test(x)&&("Mac OS"==Fe?"Tasman":"Trident")||"WebKit"==ne&&/\bPlayStation\b(?! Vita\b)/i.test(re)&&"NetFront")&&(ne=[he]),"IE"==re&&(he=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(x)||0)[1])?(re+=" Mobile",Fe="Windows Phone "+(/\+$/.test(he)?he:he+".x"),et.unshift("desktop mode")):/\bWPDesktop\b/i.test(x)?(re="IE Mobile",Fe="Windows Phone 8.x",et.unshift("desktop mode"),ve||(ve=(/\brv:([\d.]+)/.exec(x)||0)[1])):"IE"!=re&&"Trident"==ne&&(he=/\brv:([\d.]+)/.exec(x))&&(re&&et.push("identifying as "+re+(ve?" "+ve:"")),re="IE",ve=he[1]),ue){if(function J(x,B){var p=null!=x?typeof x[B]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(p)||"object"==p&&!x[B])}(B,"global"))if(_e&&(tn=(he=_e.lang.System).getProperty("os.arch"),Fe=Fe||he.getProperty("os.name")+" "+he.getProperty("os.version")),Ae){try{ve=B.require("ringo/engine").version.join("."),re="RingoJS"}catch(Fn){(he=B.system)&&he.global.system==B.system&&(re="Narwhal",Fe||(Fe=he[0].os||null))}re||(re="Rhino")}else"object"==typeof B.process&&!B.process.browser&&(he=B.process)&&("object"==typeof he.versions&&("string"==typeof he.versions.electron?(et.push("Node "+he.versions.node),re="Electron",ve=he.versions.electron):"string"==typeof he.versions.nw&&(et.push("Chromium "+ve,"Node "+he.versions.node),re="NW.js",ve=he.versions.nw)),re||(re="Node.js",tn=he.arch,Fe=he.platform,ve=(ve=/[\d.]+/.exec(he.version))?ve[0]:null));else W(he=B.runtime)==X?(re="Adobe AIR",Fe=he.flash.system.Capabilities.os):W(he=B.phantom)==De?(re="PhantomJS",ve=(he=he.version||null)&&he.major+"."+he.minor+"."+he.patch):"number"==typeof qe.documentMode&&(he=/\bTrident\/(\d+)/i.exec(x))?((he=+he[1]+4)!=(ve=[ve,qe.documentMode])[1]&&(et.push("IE "+ve[1]+" mode"),ne&&(ne[1]=""),ve[1]=he),ve="IE"==re?String(ve[1].toFixed(1)):ve[0]):"number"==typeof qe.documentMode&&/^(?:Chrome|Firefox)\b/.test(re)&&(et.push("masking as "+re+" "+ve),re="IE",ve="11.0",ne=["Trident"],Fe="Windows");Fe=Fe&&z(Fe)}if(ve&&(he=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ve)||/(?:alpha|beta)(?: ?\d)?/i.exec(x+";"+(ue&&L.appMinorVersion))||/\bMinefield\b/i.test(x)&&"a")&&(sn=/b/i.test(he)?"beta":"alpha",ve=ve.replace(RegExp(he+"\\+?$"),"")+("beta"==sn?Be:Ye)+(/\d+\+?/.exec(he)||"")),"Fennec"==re||"Firefox"==re&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Fe))re="Firefox Mobile";else if("Maxthon"==re&&ve)ve=ve.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ye))"Xbox 360"==ye&&(Fe=null),"Xbox 360"==ye&&/\bIEMobile\b/.test(x)&&et.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(re)&&(!re||ye||/Browser|Mobi/.test(re))||"Windows CE"!=Fe&&!/Mobi/i.test(x))if("IE"==re&&ue)try{null===B.external&&et.unshift("platform preview")}catch(Fn){et.unshift("embedded")}else(/\bBlackBerry\b/.test(ye)||/\bBB10\b/.test(x))&&(he=(RegExp(ye.replace(/ +/g," *")+"/([.\\d]+)","i").exec(x)||0)[1]||ve)?(Fe=((he=[he,/BB10/.test(x)])[1]?(ye=null,we="BlackBerry"):"Device Software")+" "+he[0],ve=null):this!=M&&"Wii"!=ye&&(ue&&Et||/Opera/.test(re)&&/\b(?:MSIE|Firefox)\b/i.test(x)||"Firefox"==re&&/\bOS X (?:\d+\.){2,}/.test(Fe)||"IE"==re&&(Fe&&!/^Win/.test(Fe)&&ve>5.5||/\bWindows XP\b/.test(Fe)&&ve>8||8==ve&&!/\bTrident\b/.test(x)))&&!O.test(he=Y.call(M,x.replace(O,"")+";"))&&he.name&&(he="ing as "+he.name+((he=he.version)?" "+he:""),O.test(re)?(/\bIE\b/.test(he)&&"Mac OS"==Fe&&(Fe=null),he="identify"+he):(he="mask"+he,re=ze?z(ze.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(he)&&(Fe=null),ue||(ve=null)),ne=["Presto"],et.push(he));else re+=" Mobile";(he=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(x)||0)[1])&&(he=[parseFloat(he.replace(/\.(\d)$/,".0$1")),he],"Safari"==re&&"+"==he[1].slice(-1)?(re="WebKit Nightly",sn="alpha",ve=he[1].slice(0,-1)):(ve==he[1]||ve==(he[2]=(/\bSafari\/([\d.]+\+?)/i.exec(x)||0)[1]))&&(ve=null),he[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(x)||0)[1],537.36==he[0]&&537.36==he[2]&&parseFloat(he[1])>=28&&"WebKit"==ne&&(ne=["Blink"]),ue&&(N||he[1])?(ne&&(ne[1]="like Chrome"),he=he[1]||((he=he[0])<530?1:he<532?2:he<532.05?3:he<533?4:he<534.03?5:he<534.07?6:he<534.1?7:he<534.13?8:he<534.16?9:he<534.24?10:he<534.3?11:he<535.01?12:he<535.02?"13+":he<535.07?15:he<535.11?16:he<535.19?17:he<536.05?18:he<536.1?19:he<537.01?20:he<537.11?"21+":he<537.13?23:he<537.18?24:he<537.24?25:he<537.36?26:"Blink"!=ne?"27":"28")):(ne&&(ne[1]="like Safari"),he=(he=he[0])<400?1:he<500?2:he<526?3:he<533?4:he<534?"4+":he<535?5:he<537?6:he<538?7:he<601?8:he<602?9:he<604?10:he<606?11:he<608?12:"12"),ne&&(ne[1]+=" "+(he+="number"==typeof he?".x":/[.+]/.test(he)?"":"+")),"Safari"==re&&(!ve||parseInt(ve)>45)?ve=he:"Chrome"==re&&/\bHeadlessChrome/i.test(x)&&et.unshift("headless")),"Opera"==re&&(he=/\bzbov|zvav$/.exec(Fe))?(re+=" ",et.unshift("desktop mode"),"zvav"==he?(re+="Mini",ve=null):re+="Mobile",Fe=Fe.replace(RegExp(" *"+he+"$"),"")):"Safari"==re&&/\bChrome\b/.exec(ne&&ne[1])?(et.unshift("desktop mode"),re="Chrome Mobile",ve=null,/\bOS X\b/.test(Fe)?(we="Apple",Fe="iOS 4.3+"):Fe=null):/\bSRWare Iron\b/.test(re)&&!ve&&(ve=qi("Chrome")),ve&&0==ve.indexOf(he=/[\d.]+$/.exec(Fe))&&x.indexOf("/"+he+"-")>-1&&(Fe=y(Fe.replace(he,""))),Fe&&-1!=Fe.indexOf(re)&&!RegExp(re+" OS").test(Fe)&&(Fe=Fe.replace(RegExp(" *"+A(re)+" *"),"")),ne&&!/\b(?:Avant|Nook)\b/.test(re)&&(/Browser|Lunascape|Maxthon/.test(re)||"Safari"!=re&&/^iOS/.test(Fe)&&/\bSafari\b/.test(ne[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(re)&&ne[1])&&(he=ne[ne.length-1])&&et.push(he),et.length&&(et=["("+et.join("; ")+")"]),we&&ye&&ye.indexOf(we)<0&&et.push("on "+we),ye&&et.push((/^on /.test(et[et.length-1])?"":"on ")+ye),Fe&&(he=/ ([\d.+]+)$/.exec(Fe),ce=he&&"/"==Fe.charAt(Fe.length-he[0].length-1),Fe={architecture:32,family:he&&!ce?Fe.replace(he[0],""):Fe,version:he?he[1]:null,toString:function(){var Fn=this.version;return this.family+(Fn&&!ce?" "+Fn:"")+(64==this.architecture?" 64-bit":"")}}),(he=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(tn))&&!/\bi686\b/i.test(tn)?(Fe&&(Fe.architecture=64,Fe.family=Fe.family.replace(RegExp(" *"+he),"")),re&&(/\bWOW64\b/i.test(x)||ue&&/\w(?:86|32)$/.test(L.cpuClass||L.platform)&&!/\bWin64; x64\b/i.test(x))&&et.unshift("32-bit")):Fe&&/^OS X/.test(Fe.family)&&"Chrome"==re&&parseFloat(ve)>=39&&(Fe.architecture=64),x||(x=null);var Ln={};return Ln.description=x,Ln.layout=ne&&ne[0],Ln.manufacturer=we,Ln.name=re,Ln.prerelease=sn,Ln.product=ye,Ln.ua=x,Ln.version=re&&ve,Ln.os=Fe||{architecture:null,family:null,version:null,toString:function(){return"null"}},Ln.parse=Y,Ln.toString=function ur(){return this.description||""},Ln.version&&et.unshift(ve),Ln.name&&et.unshift(re),Fe&&re&&!(Fe==String(Fe).split(" ")[0]&&(Fe==re.split(" ")[0]||ye))&&et.push(ye?"("+Fe+")":"on "+Fe),et.length&&(Ln.description=et.join(" ")),Ln}();j.platform=R,void 0!==(S=function(){return R}.call(te,U,te,ke))&&(ke.exports=S)}.call(this)},1550:(ke,te,U)=>{const S=U(6947),{MAX_LENGTH:q,MAX_SAFE_INTEGER:j}=U(7278),{re:E,t:w}=U(7134),P=U(3059),{compareIdentifiers:C}=U(6747);class b{constructor(D,$){if($=P($),D instanceof b){if(D.loose===!!$.loose&&D.includePrerelease===!!$.includePrerelease)return D;D=D.version}else if("string"!=typeof D)throw new TypeError(`Invalid Version: ${D}`);if(D.length>q)throw new TypeError(`version is longer than ${q} characters`);S("SemVer",D,$),this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease;const oe=D.trim().match($.loose?E[w.LOOSE]:E[w.FULL]);if(!oe)throw new TypeError(`Invalid Version: ${D}`);if(this.raw=D,this.major=+oe[1],this.minor=+oe[2],this.patch=+oe[3],this.major>j||this.major<0)throw new TypeError("Invalid major version");if(this.minor>j||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>j||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=oe[4]?oe[4].split(".").map(Z=>{if(/^[0-9]+$/.test(Z)){const H=+Z;if(H>=0&&H<j)return H}return Z}):[],this.build=oe[5]?oe[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(D){if(S("SemVer.compare",this.version,this.options,D),!(D instanceof b)){if("string"==typeof D&&D===this.version)return 0;D=new b(D,this.options)}return D.version===this.version?0:this.compareMain(D)||this.comparePre(D)}compareMain(D){return D instanceof b||(D=new b(D,this.options)),C(this.major,D.major)||C(this.minor,D.minor)||C(this.patch,D.patch)}comparePre(D){if(D instanceof b||(D=new b(D,this.options)),this.prerelease.length&&!D.prerelease.length)return-1;if(!this.prerelease.length&&D.prerelease.length)return 1;if(!this.prerelease.length&&!D.prerelease.length)return 0;let $=0;do{const oe=this.prerelease[$],Z=D.prerelease[$];if(S("prerelease compare",$,oe,Z),void 0===oe&&void 0===Z)return 0;if(void 0===Z)return 1;if(void 0===oe)return-1;if(oe!==Z)return C(oe,Z)}while(++$)}compareBuild(D){D instanceof b||(D=new b(D,this.options));let $=0;do{const oe=this.build[$],Z=D.build[$];if(S("prerelease compare",$,oe,Z),void 0===oe&&void 0===Z)return 0;if(void 0===Z)return 1;if(void 0===oe)return-1;if(oe!==Z)return C(oe,Z)}while(++$)}inc(D,$){switch(D){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$),this.inc("pre",$);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",$),this.inc("pre",$);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 oe=this.prerelease.length;for(;--oe>=0;)"number"==typeof this.prerelease[oe]&&(this.prerelease[oe]++,oe=-2);-1===oe&&this.prerelease.push(0)}$&&(0===C(this.prerelease[0],$)?isNaN(this.prerelease[1])&&(this.prerelease=[$,0]):this.prerelease=[$,0]);break;default:throw new Error(`invalid increment argument: ${D}`)}return this.format(),this.raw=this.version,this}}ke.exports=b},1892:(ke,te,U)=>{const S=U(1550);ke.exports=(j,E)=>new S(j,E).major},9897:(ke,te,U)=>{const S=U(1550);ke.exports=(j,E)=>new S(j,E).minor},7278:ke=>{ke.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}},6947:ke=>{const te="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...U)=>console.error("SEMVER",...U):()=>{};ke.exports=te},6747:ke=>{const te=/^[0-9]+$/,U=(q,j)=>{const E=te.test(q),w=te.test(j);return E&&w&&(q=+q,j=+j),q===j?0:E&&!w?-1:w&&!E?1:q<j?-1:1};ke.exports={compareIdentifiers:U,rcompareIdentifiers:(q,j)=>U(j,q)}},3059:ke=>{const te=["includePrerelease","loose","rtl"];ke.exports=S=>S?"object"!=typeof S?{loose:!0}:te.filter(q=>S[q]).reduce((q,j)=>(q[j]=!0,q),{}):{}},7134:(ke,te,U)=>{const{MAX_SAFE_COMPONENT_LENGTH:S}=U(7278),q=U(6947),j=(te=ke.exports={}).re=[],E=te.src=[],w=te.t={};let P=0;const C=(b,O,D)=>{const $=P++;q(b,$,O),w[b]=$,E[$]=O,j[$]=new RegExp(O,D?"g":void 0)};C("NUMERICIDENTIFIER","0|[1-9]\\d*"),C("NUMERICIDENTIFIERLOOSE","[0-9]+"),C("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),C("MAINVERSION",`(${E[w.NUMERICIDENTIFIER]})\\.(${E[w.NUMERICIDENTIFIER]})\\.(${E[w.NUMERICIDENTIFIER]})`),C("MAINVERSIONLOOSE",`(${E[w.NUMERICIDENTIFIERLOOSE]})\\.(${E[w.NUMERICIDENTIFIERLOOSE]})\\.(${E[w.NUMERICIDENTIFIERLOOSE]})`),C("PRERELEASEIDENTIFIER",`(?:${E[w.NUMERICIDENTIFIER]}|${E[w.NONNUMERICIDENTIFIER]})`),C("PRERELEASEIDENTIFIERLOOSE",`(?:${E[w.NUMERICIDENTIFIERLOOSE]}|${E[w.NONNUMERICIDENTIFIER]})`),C("PRERELEASE",`(?:-(${E[w.PRERELEASEIDENTIFIER]}(?:\\.${E[w.PRERELEASEIDENTIFIER]})*))`),C("PRERELEASELOOSE",`(?:-?(${E[w.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${E[w.PRERELEASEIDENTIFIERLOOSE]})*))`),C("BUILDIDENTIFIER","[0-9A-Za-z-]+"),C("BUILD",`(?:\\+(${E[w.BUILDIDENTIFIER]}(?:\\.${E[w.BUILDIDENTIFIER]})*))`),C("FULLPLAIN",`v?${E[w.MAINVERSION]}${E[w.PRERELEASE]}?${E[w.BUILD]}?`),C("FULL",`^${E[w.FULLPLAIN]}$`),C("LOOSEPLAIN",`[v=\\s]*${E[w.MAINVERSIONLOOSE]}${E[w.PRERELEASELOOSE]}?${E[w.BUILD]}?`),C("LOOSE",`^${E[w.LOOSEPLAIN]}$`),C("GTLT","((?:<|>)?=?)"),C("XRANGEIDENTIFIERLOOSE",`${E[w.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),C("XRANGEIDENTIFIER",`${E[w.NUMERICIDENTIFIER]}|x|X|\\*`),C("XRANGEPLAIN",`[v=\\s]*(${E[w.XRANGEIDENTIFIER]})(?:\\.(${E[w.XRANGEIDENTIFIER]})(?:\\.(${E[w.XRANGEIDENTIFIER]})(?:${E[w.PRERELEASE]})?${E[w.BUILD]}?)?)?`),C("XRANGEPLAINLOOSE",`[v=\\s]*(${E[w.XRANGEIDENTIFIERLOOSE]})(?:\\.(${E[w.XRANGEIDENTIFIERLOOSE]})(?:\\.(${E[w.XRANGEIDENTIFIERLOOSE]})(?:${E[w.PRERELEASELOOSE]})?${E[w.BUILD]}?)?)?`),C("XRANGE",`^${E[w.GTLT]}\\s*${E[w.XRANGEPLAIN]}$`),C("XRANGELOOSE",`^${E[w.GTLT]}\\s*${E[w.XRANGEPLAINLOOSE]}$`),C("COERCE",`(^|[^\\d])(\\d{1,${S}})(?:\\.(\\d{1,${S}}))?(?:\\.(\\d{1,${S}}))?(?:$|[^\\d])`),C("COERCERTL",E[w.COERCE],!0),C("LONETILDE","(?:~>?)"),C("TILDETRIM",`(\\s*)${E[w.LONETILDE]}\\s+`,!0),te.tildeTrimReplace="$1~",C("TILDE",`^${E[w.LONETILDE]}${E[w.XRANGEPLAIN]}$`),C("TILDELOOSE",`^${E[w.LONETILDE]}${E[w.XRANGEPLAINLOOSE]}$`),C("LONECARET","(?:\\^)"),C("CARETTRIM",`(\\s*)${E[w.LONECARET]}\\s+`,!0),te.caretTrimReplace="$1^",C("CARET",`^${E[w.LONECARET]}${E[w.XRANGEPLAIN]}$`),C("CARETLOOSE",`^${E[w.LONECARET]}${E[w.XRANGEPLAINLOOSE]}$`),C("COMPARATORLOOSE",`^${E[w.GTLT]}\\s*(${E[w.LOOSEPLAIN]})$|^$`),C("COMPARATOR",`^${E[w.GTLT]}\\s*(${E[w.FULLPLAIN]})$|^$`),C("COMPARATORTRIM",`(\\s*)${E[w.GTLT]}\\s*(${E[w.LOOSEPLAIN]}|${E[w.XRANGEPLAIN]})`,!0),te.comparatorTrimReplace="$1$2$3",C("HYPHENRANGE",`^\\s*(${E[w.XRANGEPLAIN]})\\s+-\\s+(${E[w.XRANGEPLAIN]})\\s*$`),C("HYPHENRANGELOOSE",`^\\s*(${E[w.XRANGEPLAINLOOSE]})\\s+-\\s+(${E[w.XRANGEPLAINLOOSE]})\\s*$`),C("STAR","(<|>)?=?\\s*\\*"),C("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),C("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},8201:(ke,te,U)=>{"use strict";U.r(te),U.d(te,{NIL:()=>tn,parse:()=>M,stringify:()=>D,v1:()=>de,v3:()=>De,v4:()=>Ae,v5:()=>he,validate:()=>P,version:()=>sn});var S,q=new Uint8Array(16);function j(){if(!S&&!(S="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return S(q)}const E=/^(?:[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,P=function w(ue){return"string"==typeof ue&&E.test(ue)};for(var C=[],b=0;b<256;++b)C.push((b+256).toString(16).substr(1));const D=function O(ue){var ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ce=(C[ue[ve+0]]+C[ue[ve+1]]+C[ue[ve+2]]+C[ue[ve+3]]+"-"+C[ue[ve+4]]+C[ue[ve+5]]+"-"+C[ue[ve+6]]+C[ue[ve+7]]+"-"+C[ue[ve+8]]+C[ue[ve+9]]+"-"+C[ue[ve+10]]+C[ue[ve+11]]+C[ue[ve+12]]+C[ue[ve+13]]+C[ue[ve+14]]+C[ue[ve+15]]).toLowerCase();if(!P(ce))throw TypeError("Stringified UUID is invalid");return ce};var $,oe,Z=0,H=0;const de=function pe(ue,ve,ce){var ne=ve&&ce||0,re=ve||new Array(16),ye=(ue=ue||{}).node||$,we=void 0!==ue.clockseq?ue.clockseq:oe;if(null==ye||null==we){var Fe=ue.random||(ue.rng||j)();null==ye&&(ye=$=[1|Fe[0],Fe[1],Fe[2],Fe[3],Fe[4],Fe[5]]),null==we&&(we=oe=16383&(Fe[6]<<8|Fe[7]))}var on=void 0!==ue.msecs?ue.msecs:Date.now(),ai=void 0!==ue.nsecs?ue.nsecs:H+1,Pi=on-Z+(ai-H)/1e4;if(Pi<0&&void 0===ue.clockseq&&(we=we+1&16383),(Pi<0||on>Z)&&void 0===ue.nsecs&&(ai=0),ai>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Z=on,H=ai,oe=we;var Uo=(1e4*(268435455&(on+=122192928e5))+ai)%4294967296;re[ne++]=Uo>>>24&255,re[ne++]=Uo>>>16&255,re[ne++]=Uo>>>8&255,re[ne++]=255&Uo;var Tn=on/4294967296*1e4&268435455;re[ne++]=Tn>>>8&255,re[ne++]=255&Tn,re[ne++]=Tn>>>24&15|16,re[ne++]=Tn>>>16&255,re[ne++]=we>>>8|128,re[ne++]=255&we;for(var qi=0;qi<6;++qi)re[ne+qi]=ye[qi];return ve||D(re)},M=function z(ue){if(!P(ue))throw TypeError("Invalid UUID");var ve,ce=new Uint8Array(16);return ce[0]=(ve=parseInt(ue.slice(0,8),16))>>>24,ce[1]=ve>>>16&255,ce[2]=ve>>>8&255,ce[3]=255&ve,ce[4]=(ve=parseInt(ue.slice(9,13),16))>>>8,ce[5]=255&ve,ce[6]=(ve=parseInt(ue.slice(14,18),16))>>>8,ce[7]=255&ve,ce[8]=(ve=parseInt(ue.slice(19,23),16))>>>8,ce[9]=255&ve,ce[10]=(ve=parseInt(ue.slice(24,36),16))/1099511627776&255,ce[11]=ve/4294967296&255,ce[12]=ve>>>24&255,ce[13]=ve>>>16&255,ce[14]=ve>>>8&255,ce[15]=255&ve,ce};function m(ue,ve,ce){function ne(re,ye,we,Fe){if("string"==typeof re&&(re=function W(ue){ue=unescape(encodeURIComponent(ue));for(var ve=[],ce=0;ce<ue.length;++ce)ve.push(ue.charCodeAt(ce));return ve}(re)),"string"==typeof ye&&(ye=M(ye)),16!==ye.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var on=new Uint8Array(16+re.length);if(on.set(ye),on.set(re,ye.length),(on=ce(on))[6]=15&on[6]|ve,on[8]=63&on[8]|128,we){Fe=Fe||0;for(var ai=0;ai<16;++ai)we[Fe+ai]=on[ai];return we}return D(on)}try{ne.name=ue}catch(re){}return ne.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",ne.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",ne}function R(ue){return 14+(ue+64>>>9<<4)+1}function p(ue,ve){var ce=(65535&ue)+(65535&ve);return(ue>>16)+(ve>>16)+(ce>>16)<<16|65535&ce}function V(ue,ve,ce,ne,re,ye){return p(function L(ue,ve){return ue<<ve|ue>>>32-ve}(p(p(ve,ue),p(ne,ye)),re),ce)}function F(ue,ve,ce,ne,re,ye,we){return V(ve&ce|~ve&ne,ue,ve,re,ye,we)}function N(ue,ve,ce,ne,re,ye,we){return V(ve&ne|ce&~ne,ue,ve,re,ye,we)}function k(ue,ve,ce,ne,re,ye,we){return V(ve^ce^ne,ue,ve,re,ye,we)}function X(ue,ve,ce,ne,re,ye,we){return V(ce^(ve|~ne),ue,ve,re,ye,we)}const De=m("v3",48,function y(ue){if("string"==typeof ue){var ve=unescape(encodeURIComponent(ue));ue=new Uint8Array(ve.length);for(var ce=0;ce<ve.length;++ce)ue[ce]=ve.charCodeAt(ce)}return function Y(ue){for(var ve=[],ce=32*ue.length,ne="0123456789abcdef",re=0;re<ce;re+=8){var ye=ue[re>>5]>>>re%32&255,we=parseInt(ne.charAt(ye>>>4&15)+ne.charAt(15&ye),16);ve.push(we)}return ve}(function x(ue,ve){ue[ve>>5]|=128<<ve%32,ue[R(ve)-1]=ve;for(var ce=1732584193,ne=-271733879,re=-1732584194,ye=271733878,we=0;we<ue.length;we+=16){var Fe=ce,on=ne,ai=re,Pi=ye;ce=F(ce,ne,re,ye,ue[we],7,-680876936),ye=F(ye,ce,ne,re,ue[we+1],12,-389564586),re=F(re,ye,ce,ne,ue[we+2],17,606105819),ne=F(ne,re,ye,ce,ue[we+3],22,-1044525330),ce=F(ce,ne,re,ye,ue[we+4],7,-176418897),ye=F(ye,ce,ne,re,ue[we+5],12,1200080426),re=F(re,ye,ce,ne,ue[we+6],17,-1473231341),ne=F(ne,re,ye,ce,ue[we+7],22,-45705983),ce=F(ce,ne,re,ye,ue[we+8],7,1770035416),ye=F(ye,ce,ne,re,ue[we+9],12,-1958414417),re=F(re,ye,ce,ne,ue[we+10],17,-42063),ne=F(ne,re,ye,ce,ue[we+11],22,-1990404162),ce=F(ce,ne,re,ye,ue[we+12],7,1804603682),ye=F(ye,ce,ne,re,ue[we+13],12,-40341101),re=F(re,ye,ce,ne,ue[we+14],17,-1502002290),ce=N(ce,ne=F(ne,re,ye,ce,ue[we+15],22,1236535329),re,ye,ue[we+1],5,-165796510),ye=N(ye,ce,ne,re,ue[we+6],9,-1069501632),re=N(re,ye,ce,ne,ue[we+11],14,643717713),ne=N(ne,re,ye,ce,ue[we],20,-373897302),ce=N(ce,ne,re,ye,ue[we+5],5,-701558691),ye=N(ye,ce,ne,re,ue[we+10],9,38016083),re=N(re,ye,ce,ne,ue[we+15],14,-660478335),ne=N(ne,re,ye,ce,ue[we+4],20,-405537848),ce=N(ce,ne,re,ye,ue[we+9],5,568446438),ye=N(ye,ce,ne,re,ue[we+14],9,-1019803690),re=N(re,ye,ce,ne,ue[we+3],14,-187363961),ne=N(ne,re,ye,ce,ue[we+8],20,1163531501),ce=N(ce,ne,re,ye,ue[we+13],5,-1444681467),ye=N(ye,ce,ne,re,ue[we+2],9,-51403784),re=N(re,ye,ce,ne,ue[we+7],14,1735328473),ce=k(ce,ne=N(ne,re,ye,ce,ue[we+12],20,-1926607734),re,ye,ue[we+5],4,-378558),ye=k(ye,ce,ne,re,ue[we+8],11,-2022574463),re=k(re,ye,ce,ne,ue[we+11],16,1839030562),ne=k(ne,re,ye,ce,ue[we+14],23,-35309556),ce=k(ce,ne,re,ye,ue[we+1],4,-1530992060),ye=k(ye,ce,ne,re,ue[we+4],11,1272893353),re=k(re,ye,ce,ne,ue[we+7],16,-155497632),ne=k(ne,re,ye,ce,ue[we+10],23,-1094730640),ce=k(ce,ne,re,ye,ue[we+13],4,681279174),ye=k(ye,ce,ne,re,ue[we],11,-358537222),re=k(re,ye,ce,ne,ue[we+3],16,-722521979),ne=k(ne,re,ye,ce,ue[we+6],23,76029189),ce=k(ce,ne,re,ye,ue[we+9],4,-640364487),ye=k(ye,ce,ne,re,ue[we+12],11,-421815835),re=k(re,ye,ce,ne,ue[we+15],16,530742520),ce=X(ce,ne=k(ne,re,ye,ce,ue[we+2],23,-995338651),re,ye,ue[we],6,-198630844),ye=X(ye,ce,ne,re,ue[we+7],10,1126891415),re=X(re,ye,ce,ne,ue[we+14],15,-1416354905),ne=X(ne,re,ye,ce,ue[we+5],21,-57434055),ce=X(ce,ne,re,ye,ue[we+12],6,1700485571),ye=X(ye,ce,ne,re,ue[we+3],10,-1894986606),re=X(re,ye,ce,ne,ue[we+10],15,-1051523),ne=X(ne,re,ye,ce,ue[we+1],21,-2054922799),ce=X(ce,ne,re,ye,ue[we+8],6,1873313359),ye=X(ye,ce,ne,re,ue[we+15],10,-30611744),re=X(re,ye,ce,ne,ue[we+6],15,-1560198380),ne=X(ne,re,ye,ce,ue[we+13],21,1309151649),ce=X(ce,ne,re,ye,ue[we+4],6,-145523070),ye=X(ye,ce,ne,re,ue[we+11],10,-1120210379),re=X(re,ye,ce,ne,ue[we+2],15,718787259),ne=X(ne,re,ye,ce,ue[we+9],21,-343485551),ce=p(ce,Fe),ne=p(ne,on),re=p(re,ai),ye=p(ye,Pi)}return[ce,ne,re,ye]}(function B(ue){if(0===ue.length)return[];for(var ve=8*ue.length,ce=new Uint32Array(R(ve)),ne=0;ne<ve;ne+=8)ce[ne>>5]|=(255&ue[ne/8])<<ne%32;return ce}(ue),8*ue.length))}),Ae=function _e(ue,ve,ce){var ne=(ue=ue||{}).random||(ue.rng||j)();if(ne[6]=15&ne[6]|64,ne[8]=63&ne[8]|128,ve){ce=ce||0;for(var re=0;re<16;++re)ve[ce+re]=ne[re];return ve}return D(ne)};function Ye(ue,ve,ce,ne){switch(ue){case 0:return ve&ce^~ve&ne;case 1:case 3:return ve^ce^ne;case 2:return ve&ce^ve&ne^ce&ne}}function Be(ue,ve){return ue<<ve|ue>>>32-ve}const he=m("v5",80,function qe(ue){var ve=[1518500249,1859775393,2400959708,3395469782],ce=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof ue){var ne=unescape(encodeURIComponent(ue));ue=[];for(var re=0;re<ne.length;++re)ue.push(ne.charCodeAt(re))}else Array.isArray(ue)||(ue=Array.prototype.slice.call(ue));ue.push(128);for(var we=Math.ceil((ue.length/4+2)/16),Fe=new Array(we),on=0;on<we;++on){for(var ai=new Uint32Array(16),Pi=0;Pi<16;++Pi)ai[Pi]=ue[64*on+4*Pi]<<24|ue[64*on+4*Pi+1]<<16|ue[64*on+4*Pi+2]<<8|ue[64*on+4*Pi+3];Fe[on]=ai}Fe[we-1][14]=8*(ue.length-1)/Math.pow(2,32),Fe[we-1][14]=Math.floor(Fe[we-1][14]),Fe[we-1][15]=8*(ue.length-1)&4294967295;for(var Uo=0;Uo<we;++Uo){for(var Tn=new Uint32Array(80),qi=0;qi<16;++qi)Tn[qi]=Fe[Uo][qi];for(var ur=16;ur<80;++ur)Tn[ur]=Be(Tn[ur-3]^Tn[ur-8]^Tn[ur-14]^Tn[ur-16],1);for(var Ln=ce[0],Fn=ce[1],rn=ce[2],Gt=ce[3],Si=ce[4],Ic=0;Ic<80;++Ic){var sm=Math.floor(Ic/20),Oc=Be(Ln,5)+Ye(sm,Fn,rn,Gt)+Si+ve[sm]+Tn[Ic]>>>0;Si=Gt,Gt=rn,rn=Be(Fn,30)>>>0,Fn=Ln,Ln=Oc}ce[0]=ce[0]+Ln>>>0,ce[1]=ce[1]+Fn>>>0,ce[2]=ce[2]+rn>>>0,ce[3]=ce[3]+Gt>>>0,ce[4]=ce[4]+Si>>>0}return[ce[0]>>24&255,ce[0]>>16&255,ce[0]>>8&255,255&ce[0],ce[1]>>24&255,ce[1]>>16&255,ce[1]>>8&255,255&ce[1],ce[2]>>24&255,ce[2]>>16&255,ce[2]>>8&255,255&ce[2],ce[3]>>24&255,ce[3]>>16&255,ce[3]>>8&255,255&ce[3],ce[4]>>24&255,ce[4]>>16&255,ce[4]>>8&255,255&ce[4]]}),tn="00000000-0000-0000-0000-000000000000",sn=function et(ue){if(!P(ue))throw TypeError("Invalid UUID");return parseInt(ue.substr(14,1),16)}},1181:ke=>{function te(){}ke.exports=te,te.mixin=function(U){var S=U.prototype||U;S.isWildEmitter=!0,S.on=function(q,j,E){this.callbacks=this.callbacks||{};var w=3===arguments.length,P=w?arguments[1]:void 0,C=w?arguments[2]:arguments[1];return C._groupName=P,(this.callbacks[q]=this.callbacks[q]||[]).push(C),this},S.once=function(q,j,E){var w=this,P=3===arguments.length,C=P?arguments[1]:void 0,b=P?arguments[2]:arguments[1];function O(){w.off(q,O),b.apply(this,arguments)}return this.on(q,C,O),this},S.releaseGroup=function(q){var j,E,w,P;for(j in this.callbacks=this.callbacks||{},this.callbacks)for(E=0,w=(P=this.callbacks[j]).length;E<w;E++)P[E]._groupName===q&&(P.splice(E,1),E--,w--);return this},S.off=function(q,j){this.callbacks=this.callbacks||{};var w,E=this.callbacks[q];return E?1===arguments.length?(delete this.callbacks[q],this):(-1!==(w=E.indexOf(j))&&(E.splice(w,1),0===E.length&&delete this.callbacks[q]),this):this},S.emit=function(q){this.callbacks=this.callbacks||{};var P,C,O,j=[].slice.call(arguments,1),E=this.callbacks[q],w=this.getWildcardCallbacks(q);if(E)for(P=0,C=(O=E.slice()).length;P<C&&O[P];++P)O[P].apply(this,j);if(w)for(C=w.length,P=0,C=(O=w.slice()).length;P<C&&O[P];++P)O[P].apply(this,[q].concat(j));return this},S.getWildcardCallbacks=function(q){this.callbacks=this.callbacks||{};var j,E,w=[];for(j in this.callbacks)E=j.split("*"),("*"===j||2===E.length&&q.slice(0,E[0].length)===E[0])&&(w=w.concat(this.callbacks[j]));return w}},te.mixin(te)},2937:function(ke,te,U){var S;!function(q){"use strict";function j(){}var E=j.prototype,w=q.EventEmitter;function P(O,D){for(var $=O.length;$--;)if(O[$].listener===D)return $;return-1}function C(O){return function(){return this[O].apply(this,arguments)}}function b(O){return"function"==typeof O||O instanceof RegExp||!(!O||"object"!=typeof O)&&b(O.listener)}E.getListeners=function(D){var oe,Z,$=this._getEvents();if(D instanceof RegExp)for(Z in oe={},$)$.hasOwnProperty(Z)&&D.test(Z)&&(oe[Z]=$[Z]);else oe=$[D]||($[D]=[]);return oe},E.flattenListeners=function(D){var oe,$=[];for(oe=0;oe<D.length;oe+=1)$.push(D[oe].listener);return $},E.getListenersAsObject=function(D){var oe,$=this.getListeners(D);return $ instanceof Array&&((oe={})[D]=$),oe||$},E.addListener=function(D,$){if(!b($))throw new TypeError("listener must be a function");var H,oe=this.getListenersAsObject(D),Z="object"==typeof $;for(H in oe)oe.hasOwnProperty(H)&&-1===P(oe[H],$)&&oe[H].push(Z?$:{listener:$,once:!1});return this},E.on=C("addListener"),E.addOnceListener=function(D,$){return this.addListener(D,{listener:$,once:!0})},E.once=C("addOnceListener"),E.defineEvent=function(D){return this.getListeners(D),this},E.defineEvents=function(D){for(var $=0;$<D.length;$+=1)this.defineEvent(D[$]);return this},E.removeListener=function(D,$){var Z,H,oe=this.getListenersAsObject(D);for(H in oe)oe.hasOwnProperty(H)&&-1!==(Z=P(oe[H],$))&&oe[H].splice(Z,1);return this},E.off=C("removeListener"),E.addListeners=function(D,$){return this.manipulateListeners(!1,D,$)},E.removeListeners=function(D,$){return this.manipulateListeners(!0,D,$)},E.manipulateListeners=function(D,$,oe){var Z,H,pe=D?this.removeListener:this.addListener,de=D?this.removeListeners:this.addListeners;if("object"!=typeof $||$ instanceof RegExp)for(Z=oe.length;Z--;)pe.call(this,$,oe[Z]);else for(Z in $)$.hasOwnProperty(Z)&&(H=$[Z])&&("function"==typeof H?pe.call(this,Z,H):de.call(this,Z,H));return this},E.removeEvent=function(D){var Z,$=typeof D,oe=this._getEvents();if("string"===$)delete oe[D];else if(D instanceof RegExp)for(Z in oe)oe.hasOwnProperty(Z)&&D.test(Z)&&delete oe[Z];else delete this._events;return this},E.removeAllListeners=C("removeEvent"),E.emitEvent=function(D,$){var Z,H,pe,de,oe=this.getListenersAsObject(D);for(de in oe)if(oe.hasOwnProperty(de))for(Z=oe[de].slice(0),pe=0;pe<Z.length;pe++)!0===(H=Z[pe]).once&&this.removeListener(D,H.listener),H.listener.apply(this,$||[])===this._getOnceReturnValue()&&this.removeListener(D,H.listener);return this},E.trigger=C("emitEvent"),E.emit=function(D){var $=Array.prototype.slice.call(arguments,1);return this.emitEvent(D,$)},E.setOnceReturnValue=function(D){return this._onceReturnValue=D,this},E._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},E._getEvents=function(){return this._events||(this._events={})},j.noConflict=function(){return q.EventEmitter=w,j},void 0!==(S=function(){return j}.call(q,U,q,ke))&&(ke.exports=S)}("undefined"!=typeof window?window:this||{})},7682:(ke,te,U)=>{"use strict";function S(n){return"function"==typeof n}function q(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const j=q(n=>function(e){n(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 E(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class w{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;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(S(i))try{i()}catch(r){t=r instanceof j?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{b(r)}catch(s){t=null!=t?t:[],s instanceof j?t=[...t,...s.errors]:t.push(s)}}if(t)throw new j(t)}}add(t){var e;if(t&&t!==this)if(this.closed)b(t);else{if(t instanceof w){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&E(e,t)}remove(t){const{_finalizers:e}=this;e&&E(e,t),t instanceof w&&t._removeParent(this)}}w.EMPTY=(()=>{const n=new w;return n.closed=!0,n})();const P=w.EMPTY;function C(n){return n instanceof w||n&&"closed"in n&&S(n.remove)&&S(n.add)&&S(n.unsubscribe)}function b(n){S(n)?n():n.unsubscribe()}const O={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},D={setTimeout(n,t,...e){const{delegate:i}=D;return(null==i?void 0:i.setTimeout)?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=D;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function $(n){D.setTimeout(()=>{const{onUnhandledError:t}=O;if(!t)throw n;t(n)})}function oe(){}const Z=de("C",void 0,void 0);function de(n,t,e){return{kind:n,value:t,error:e}}let z=null;function M(n){if(O.useDeprecatedSynchronousErrorHandling){const t=!z;if(t&&(z={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=z;if(z=null,e)throw i}}else n()}class J extends w{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,C(t)&&t.add(this)):this.destination=p}static create(t,e,i){return new Y(t,e,i)}next(t){this.isStopped?B(function pe(n){return de("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?B(function H(n){return de("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?B(Z,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const A=Function.prototype.bind;function m(n,t){return A.call(n,t)}class y{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){R(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){R(i)}else R(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){R(e)}}}class Y extends J{constructor(t,e,i){let o;if(super(),S(t)||!t)o={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let r;this&&O.useDeprecatedNextContext?(r=Object.create(t),r.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&m(t.next,r),error:t.error&&m(t.error,r),complete:t.complete&&m(t.complete,r)}):o=t}this.destination=new y(o)}}function R(n){O.useDeprecatedSynchronousErrorHandling?function W(n){O.useDeprecatedSynchronousErrorHandling&&z&&(z.errorThrown=!0,z.error=n)}(n):$(n)}function B(n,t){const{onStoppedNotification:e}=O;e&&D.setTimeout(()=>e(n,t))}const p={closed:!0,next:oe,error:function x(n){throw n},complete:oe},L="function"==typeof Symbol&&Symbol.observable||"@@observable";function V(n){return n}let k=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function Ee(n){return n&&n instanceof J||function ee(n){return n&&S(n.next)&&S(n.error)&&S(n.complete)}(n)&&C(n)}(e)?e:new Y(e,i,o);return M(()=>{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=X(i))((o,r)=>{const s=new Y({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)}[L](){return this}pipe(...e){return function N(n){return 0===n.length?V:1===n.length?n[0]:function(e){return n.reduce((i,o)=>o(i),e)}}(e)(this)}toPromise(e){return new(e=X(e))((i,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>i(r))})}}return n.create=t=>new n(t),n})();function X(n){var t;return null!==(t=null!=n?n:O.Promise)&&void 0!==t?t:Promise}const De=q(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let _e=(()=>{class n extends k{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Ae(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new De}next(e){M(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){M(()=>{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(){M(()=>{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?P:(this.currentObservers=null,r.push(e),new w(()=>{this.currentObservers=null,E(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new k;return e.source=this,e}}return n.create=(t,e)=>new Ae(t,e),n})();class Ae extends _e{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:P}}function Ye(n){return S(null==n?void 0:n.lift)}function Be(n){return t=>{if(Ye(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function qe(n,t,e,i,o){return new Et(n,t,e,i,o)}class Et extends J{constructor(t,e,i,o,r,s){super(t),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ze(n,t){return Be((e,i)=>{let o=0;e.subscribe(qe(i,r=>{i.next(n.call(t,r,o++))}))})}function ve(n,t){return function(e,i){t(e,i,n)}}function ce(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function ne(n,t,e,i){return new(e||(e=Promise))(function(r,s){function a(d){try{c(i.next(d))}catch(u){s(u)}}function l(d){try{c(i.throw(d))}catch(u){s(u)}}function c(d){d.done?r(d.value):function o(r){return r instanceof e?r:new e(function(s){s(r)})}(d.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}function Tn(n){return this instanceof Tn?(this.v=n,this):new Tn(n)}function qi(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(n,t||[]),r=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(h){i[h]&&(o[h]=function(g){return new Promise(function(I,Q){r.push([h,g,I,Q])>1||a(h,g)})})}function a(h,g){try{!function l(h){h.value instanceof Tn?Promise.resolve(h.value.v).then(c,d):u(r[0][2],h)}(i[h](g))}catch(I){u(r[0][3],I)}}function c(h){a("next",h)}function d(h){a("throw",h)}function u(h,g){h(g),r.shift(),r.length&&a(r[0][0],r[0][1])}}function Ln(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Fe(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=n[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=n[r](s)).done,s.value)})}}}const Oc=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function hC(n){return S(null==n?void 0:n.then)}function fC(n){return S(n[L])}function pC(n){return Symbol.asyncIterator&&S(null==n?void 0:n[Symbol.asyncIterator])}function mC(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const gC=function WP(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function vC(n){return S(null==n?void 0:n[gC])}function _C(n){return qi(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:o}=yield Tn(e.read());if(o)return yield Tn(void 0);yield yield Tn(i)}}finally{e.releaseLock()}})}function yC(n){return S(null==n?void 0:n.getReader)}function Wi(n){if(n instanceof k)return n;if(null!=n){if(fC(n))return function $P(n){return new k(t=>{const e=n[L]();if(S(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Oc(n))return function YP(n){return new k(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(hC(n))return function QP(n){return new k(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,$)})}(n);if(pC(n))return bC(n);if(vC(n))return function KP(n){return new k(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(yC(n))return function ZP(n){return bC(_C(n))}(n)}throw mC(n)}function bC(n){return new k(t=>{(function XP(n,t){var e,i,o,r;return ne(this,void 0,void 0,function*(){try{for(e=Ln(n);!(i=yield e.next()).done;)if(t.next(i.value),t.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}}t.complete()})})(n,t).catch(e=>t.error(e))})}function Lr(n,t,e,i=0,o=!1){const r=t.schedule(function(){e(),o?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(r),!o)return r}function $n(n,t,e=1/0){return S(t)?$n((i,o)=>ze((r,s)=>t(i,r,o,s))(Wi(n(i,o))),e):("number"==typeof t&&(e=t),Be((i,o)=>function JP(n,t,e,i,o,r,s,a){const l=[];let c=0,d=0,u=!1;const h=()=>{u&&!l.length&&!c&&t.complete()},g=Q=>c<i?I(Q):l.push(Q),I=Q=>{r&&t.next(Q),c++;let K=!1;Wi(e(Q,d++)).subscribe(qe(t,ae=>{null==o||o(ae),r?g(ae):t.next(ae)},()=>{K=!0},void 0,()=>{if(K)try{for(c--;l.length&&c<i;){const ae=l.shift();s?Lr(t,s,()=>I(ae)):I(ae)}h()}catch(ae){t.error(ae)}}))};return n.subscribe(qe(t,g,()=>{u=!0,h()})),()=>{null==a||a()}}(i,o,n,e)))}function Rc(n=1/0){return $n(V,n)}const Ho=new k(n=>n.complete());function CC(n){return n&&S(n.schedule)}function am(n){return n[n.length-1]}function EC(n){return S(am(n))?n.pop():void 0}function kc(n){return CC(am(n))?n.pop():void 0}function SC(n,t=0){return Be((e,i)=>{e.subscribe(qe(i,o=>Lr(i,n,()=>i.next(o),t),()=>Lr(i,n,()=>i.complete(),t),o=>Lr(i,n,()=>i.error(o),t)))})}function AC(n,t=0){return Be((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function wC(n,t){if(!n)throw new Error("Iterable cannot be null");return new k(e=>{Lr(e,t,()=>{const i=n[Symbol.asyncIterator]();Lr(e,t,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function yi(n,t){return t?function aN(n,t){if(null!=n){if(fC(n))return function nN(n,t){return Wi(n).pipe(AC(t),SC(t))}(n,t);if(Oc(n))return function oN(n,t){return new k(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(hC(n))return function iN(n,t){return Wi(n).pipe(AC(t),SC(t))}(n,t);if(pC(n))return wC(n,t);if(vC(n))return function rN(n,t){return new k(e=>{let i;return Lr(e,t,()=>{i=n[gC](),Lr(e,t,()=>{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)}),()=>S(null==i?void 0:i.return)&&i.return()})}(n,t);if(yC(n))return function sN(n,t){return wC(_C(n),t)}(n,t)}throw mC(n)}(n,t):Wi(n)}function $i(...n){const t=kc(n),e=function tN(n,t){return"number"==typeof am(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Wi(i[0]):Rc(e)(yi(i,t)):Ho}function xC(n={}){const{connector:t=(()=>new _e),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=n;return r=>{let s,a,l,c=0,d=!1,u=!1;const h=()=>{null==a||a.unsubscribe(),a=void 0},g=()=>{h(),s=l=void 0,d=u=!1},I=()=>{const Q=s;g(),null==Q||Q.unsubscribe()};return Be((Q,K)=>{c++,!u&&!d&&h();const ae=l=null!=l?l:t();K.add(()=>{c--,0===c&&!u&&!d&&(a=lm(I,o))}),ae.subscribe(K),!s&&c>0&&(s=new Y({next:le=>ae.next(le),error:le=>{u=!0,h(),a=lm(g,e,le),ae.error(le)},complete:()=>{d=!0,h(),a=lm(g,i),ae.complete()}}),Wi(Q).subscribe(s))})(r)}}function lm(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new Y({next:()=>{i.unsubscribe(),n()}});return t(...e).subscribe(i)}function hn(n){for(let t in n)if(n[t]===hn)return t;throw Error("Could not find renamed property on target object.")}function cm(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Bt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Bt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function dm(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const lN=hn({__forward_ref__:hn});function Zt(n){return n.__forward_ref__=Zt,n.toString=function(){return Bt(this())},n}function at(n){return DC(n)?n():n}function DC(n){return"function"==typeof n&&n.hasOwnProperty(lN)&&n.__forward_ref__===Zt}class qs extends Error{constructor(t,e){super(function um(n,t){return`${n?`NG0${n}: `:""}${t}`}(t,e)),this.code=t}}function Ot(n){return"string"==typeof n?n:null==n?"":String(n)}function Ni(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Ot(n)}function ju(n,t){const e=t?` in ${t}`:"";throw new qs("201",`No provider for ${Ni(n)} found${e}`)}function eo(n,t){null==n&&function bn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function Se(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function it(n){return{providers:n.providers||[],imports:n.imports||[]}}function Br(n){return MC(n,Uu)||MC(n,IC)}function MC(n,t){return n.hasOwnProperty(t)?n[t]:null}function TC(n){return n&&(n.hasOwnProperty(hm)||n.hasOwnProperty(mN))?n[hm]:null}const Uu=hn({\u0275prov:hn}),hm=hn({\u0275inj:hn}),IC=hn({ngInjectableDef:hn}),mN=hn({ngInjectorDef:hn});var dt=(()=>((dt=dt||{})[dt.Default=0]="Default",dt[dt.Host=1]="Host",dt[dt.Self=2]="Self",dt[dt.SkipSelf=4]="SkipSelf",dt[dt.Optional=8]="Optional",dt))();let fm;function fs(n){const t=fm;return fm=n,t}function OC(n,t,e){const i=Br(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&dt.Optional?null:void 0!==t?t:void ju(Bt(n),"Injector")}function ps(n){return{toString:n}.toString()}var zo=(()=>((zo=zo||{})[zo.OnPush=0]="OnPush",zo[zo.Default=1]="Default",zo))(),Yi=(()=>{return(n=Yi||(Yi={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Yi;var n})();const vN="undefined"!=typeof globalThis&&globalThis,_N="undefined"!=typeof window&&window,yN="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,an=vN||"undefined"!=typeof global&&global||_N||yN,za={},mn=[],Hu=hn({\u0275cmp:hn}),pm=hn({\u0275dir:hn}),mm=hn({\u0275pipe:hn}),RC=hn({\u0275mod:hn}),Vr=hn({\u0275fac:hn}),Pc=hn({__NG_ELEMENT_ID__:hn});let bN=0;function tt(n){return ps(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===zo.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||mn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Yi.Emulated,id:"c",styles:n.styles||mn,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.directives,r=n.features,s=n.pipes;return i.id+=bN++,i.inputs=LC(n.inputs,e),i.outputs=LC(n.outputs),r&&r.forEach(a=>a(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(kC):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(PC):null,i})}function kC(n){return Ai(n)||function ms(n){return n[pm]||null}(n)}function PC(n){return function Ws(n){return n[mm]||null}(n)}const NC={};function ot(n){return ps(()=>{const t={type:n.type,bootstrap:n.bootstrap||mn,declarations:n.declarations||mn,imports:n.imports||mn,exports:n.exports||mn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(NC[n.id]=n.type),t})}function LC(n,t){if(null==n)return za;const e={};for(const i in n)if(n.hasOwnProperty(i)){let o=n[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),e[o]=i,t&&(t[o]=r)}return e}const ge=tt;function Gn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function Ai(n){return n[Hu]||null}function Eo(n,t){const e=n[RC]||null;if(!e&&!0===t)throw new Error(`Type ${Bt(n)} does not have '\u0275mod' property.`);return e}function hr(n){return Array.isArray(n)&&"object"==typeof n[1]}function qo(n){return Array.isArray(n)&&!0===n[1]}function _m(n){return 0!=(8&n.flags)}function Wu(n){return 2==(2&n.flags)}function $u(n){return 1==(1&n.flags)}function Wo(n){return null!==n.template}function xN(n){return 0!=(512&n[2])}function Ks(n,t){return n.hasOwnProperty(Vr)?n[Vr]:null}class bm{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Cn(){return BC}function BC(n){return n.type.prototype.ngOnChanges&&(n.setInput=IN),TN}function TN(){const n=jC(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===za)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function IN(n,t,e,i){const o=jC(n)||function ON(n,t){return n[VC]=t}(n,{previous:za,current:null}),r=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[e],l=s[a];r[a]=new bm(l&&l.currentValue,t,s===za),n[i]=t}Cn.ngInherit=!0;const VC="__ngSimpleChanges__";function jC(n){return n[VC]||null}const UC="http://www.w3.org/2000/svg";let Em;function Sm(){return void 0!==Em?Em:"undefined"!=typeof document?document:void 0}function Bn(n){return!!n.listen}const zC={createRenderer:(n,t)=>Sm()};function Yn(n){for(;Array.isArray(n);)n=n[0];return n}function Yu(n,t){return Yn(t[n])}function wo(n,t){return Yn(t[n.index])}function Am(n,t){return n.data[t]}function Ya(n,t){return n[t]}function no(n,t){const e=t[n];return hr(e)?e:e[0]}function GC(n){return 4==(4&n[2])}function wm(n){return 128==(128&n[2])}function gs(n,t){return null==t?null:n[t]}function qC(n){n[18]=0}function xm(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const At={lFrame:JC(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function WC(){return At.bindingsEnabled}function Ne(){return At.lFrame.lView}function Kt(){return At.lFrame.tView}function Ue(n){return At.lFrame.contextLView=n,n[8]}function ti(){let n=$C();for(;null!==n&&64===n.type;)n=n.parent;return n}function $C(){return At.lFrame.currentTNode}function fr(n,t){const e=At.lFrame;e.currentTNode=n,e.isParent=t}function Dm(){return At.lFrame.isParent}function Mm(){At.lFrame.isParent=!1}function Qu(){return At.isInCheckNoChangesMode}function Ku(n){At.isInCheckNoChangesMode=n}function Li(){const n=At.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Qa(){return At.lFrame.bindingIndex++}function Ur(n){const t=At.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function qN(n,t){const e=At.lFrame;e.bindingIndex=e.bindingRootIndex=n,Tm(t)}function Tm(n){At.lFrame.currentDirectiveIndex=n}function Im(n){const t=At.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function KC(){return At.lFrame.currentQueryIndex}function Om(n){At.lFrame.currentQueryIndex=n}function $N(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function ZC(n,t,e){if(e&dt.SkipSelf){let o=t,r=n;for(;!(o=o.parent,null!==o||e&dt.Host||(o=$N(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;t=o,n=r}const i=At.lFrame=XC();return i.currentTNode=t,i.lView=n,!0}function Zu(n){const t=XC(),e=n[1];At.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function XC(){const n=At.lFrame,t=null===n?null:n.child;return null===t?JC(n):t}function JC(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function eE(){const n=At.lFrame;return At.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const tE=eE;function Xu(){const n=eE();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Fi(){return At.lFrame.selectedIndex}function vs(n){At.lFrame.selectedIndex=n}function Vn(){const n=At.lFrame;return Am(n.tView,n.selectedIndex)}function _s(){At.lFrame.currentNamespace=UC}function Ju(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const r=n.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:d}=r;s&&(n.contentHooks||(n.contentHooks=[])).push(-e,s),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=d&&(n.destroyHooks||(n.destroyHooks=[])).push(e,d)}}function eh(n,t,e){nE(n,t,3,e)}function th(n,t,e,i){(3&n[2])===e&&nE(n,t,e,i)}function Rm(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function nE(n,t,e,i){const r=null!=i?i:-1,s=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<r||-1==r)&&(tL(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function tL(n,t,e,i){const o=e[i]<0,r=e[i+1],a=n[o?-e[i]:e[i]];if(o){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class Vc{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function nh(n,t,e){const i=Bn(n);let o=0;for(;o<e.length;){const r=e[o];if("number"==typeof r){if(0!==r)break;o++;const s=e[o++],a=e[o++],l=e[o++];i?n.setAttribute(t,a,l,s):t.setAttributeNS(s,a,l)}else{const s=r,a=e[++o];Pm(s)?i&&n.setProperty(t,s,a):i?n.setAttribute(t,s,a):t.setAttribute(s,a),o++}}return o}function iE(n){return 3===n||4===n||6===n}function Pm(n){return 64===n.charCodeAt(0)}function ih(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?e=o:0===e||oE(n,e,o,null,-1===e||2===e?t[++i]:null)}}return n}function oE(n,t,e,i,o){let r=0,s=n.length;if(-1===t)s=-1;else for(;r<n.length;){const a=n[r++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=r-1;break}}}for(;r<n.length;){const a=n[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==o&&(n[r+1]=o));if(i===n[r+1])return void(n[r+2]=o)}r++,null!==i&&r++,null!==o&&r++}-1!==s&&(n.splice(s,0,t),r=s+1),n.splice(r++,0,e),null!==i&&n.splice(r++,0,i),null!==o&&n.splice(r++,0,o)}function rE(n){return-1!==n}function Ka(n){return 32767&n}function Za(n,t){let e=function sL(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Nm=!0;function oh(n){const t=Nm;return Nm=n,t}let aL=0;function Uc(n,t){const e=Fm(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Lm(i.data,n),Lm(t,null),Lm(i.blueprint,null));const o=rh(n,t),r=n.injectorIndex;if(rE(o)){const s=Ka(o),a=Za(o,t),l=a[1].data;for(let c=0;c<8;c++)t[r+c]=a[s+c]|l[s+c]}return t[r+8]=o,r}function Lm(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Fm(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function rh(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,o=t;for(;null!==o;){const r=o[1],s=r.type;if(i=2===s?r.declTNode:1===s?o[6]:null,null===i)return-1;if(e++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function sh(n,t,e){!function lL(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Pc)&&(i=e[Pc]),null==i&&(i=e[Pc]=aL++);const o=255&i;t.data[n+(o>>5)]|=1<<o}(n,t,e)}function lE(n,t,e){if(e&dt.Optional)return n;ju(t,"NodeInjector")}function cE(n,t,e,i){if(e&dt.Optional&&void 0===i&&(i=null),0==(e&(dt.Self|dt.Host))){const o=n[9],r=fs(void 0);try{return o?o.get(t,i,e&dt.Optional):OC(t,i,e&dt.Optional)}finally{fs(r)}}return lE(i,t,e)}function dE(n,t,e,i=dt.Default,o){if(null!==n){const r=function hL(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Pc)?n[Pc]:void 0;return"number"==typeof t?t>=0?255&t:dL:t}(e);if("function"==typeof r){if(!ZC(t,n,i))return i&dt.Host?lE(o,e,i):cE(t,e,i,o);try{const s=r(i);if(null!=s||i&dt.Optional)return s;ju(e)}finally{tE()}}else if("number"==typeof r){let s=null,a=Fm(n,t),l=-1,c=i&dt.Host?t[16][6]:null;for((-1===a||i&dt.SkipSelf)&&(l=-1===a?rh(n,t):t[a+8],-1!==l&&fE(i,!1)?(s=t[1],a=Ka(l),t=Za(l,t)):a=-1);-1!==a;){const d=t[1];if(hE(r,a,d.data)){const u=uL(a,t,e,s,i,c);if(u!==uE)return u}l=t[a+8],-1!==l&&fE(i,t[1].data[a+8]===c)&&hE(r,a,t)?(s=d,a=Ka(l),t=Za(l,t)):a=-1}}}return cE(t,e,i,o)}const uE={};function dL(){return new Xa(ti(),Ne())}function uL(n,t,e,i,o,r){const s=t[1],a=s.data[n+8],d=ah(a,s,e,null==i?Wu(a)&&Nm:i!=s&&0!=(3&a.type),o&dt.Host&&r===a);return null!==d?Hc(t,s,d,a):uE}function ah(n,t,e,i,o){const r=n.providerIndexes,s=t.data,a=1048575&r,l=n.directiveStart,d=r>>20,h=o?a+d:n.directiveEnd;for(let g=i?a:a+d;g<h;g++){const I=s[g];if(g<l&&e===I||g>=l&&I.type===e)return g}if(o){const g=s[l];if(g&&Wo(g)&&g.type===e)return l}return null}function Hc(n,t,e,i){let o=n[e];const r=t.data;if(function nL(n){return n instanceof Vc}(o)){const s=o;s.resolving&&function cN(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new qs("200",`Circular dependency in DI detected for ${n}${e}`)}(Ni(r[e]));const a=oh(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?fs(s.injectImpl):null;ZC(n,i,dt.Default);try{o=n[e]=s.factory(void 0,r,n,i),t.firstCreatePass&&e>=i.directiveStart&&function eL(n,t,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=t.type.prototype;if(i){const s=BC(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}o&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,o),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,r))}(e,r[e],t)}finally{null!==l&&fs(l),oh(a),s.resolving=!1,tE()}}return o}function hE(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function fE(n,t){return!(n&dt.Self||n&dt.Host&&t)}class Xa{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return dE(this._tNode,this._lView,t,i,e)}}function nt(n){return ps(()=>{const t=n.prototype.constructor,e=t[Vr]||Bm(t),i=Object.prototype;let o=Object.getPrototypeOf(n.prototype).constructor;for(;o&&o!==i;){const r=o[Vr]||Bm(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Bm(n){return DC(n)?()=>{const t=Bm(at(n));return t&&t()}:Ks(n)}function xo(n){return function cL(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let o=0;for(;o<i;){const r=e[o];if(iE(r))break;if(0===r)o+=2;else if("number"==typeof r)for(o++;o<i&&"string"==typeof e[o];)o++;else{if(r===t)return e[o+1];o+=2}}}return null}(ti(),n)}const el="__parameters__";function Zs(n,t,e){return ps(()=>{const i=function Vm(n){return function(...e){if(n){const i=n(...e);for(const o in i)this[o]=i[o]}}}(t);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,d){const u=l.hasOwnProperty(el)?l[el]:Object.defineProperty(l,el,{value:[]})[el];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=n,o.annotationCls=o,o})}class je{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Se({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const mL=new je("AnalyzeForEntryComponents");function Do(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),Do(i,t)):t!==n&&t.push(i)}return t}function pr(n,t){n.forEach(e=>Array.isArray(e)?pr(e,t):t(e))}function lh(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Xs(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function bs(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function io(n,t,e){let i=nl(n,t);return i>=0?n[1|i]=e:(i=~i,function _L(n,t,e,i){let o=n.length;if(o==t)n.push(e,i);else if(1===o)n.push(i,n[0]),n[0]=e;else{for(o--,n.push(n[o-1],n[o]);o>t;)n[o]=n[o-2],o--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Um(n,t){const e=nl(n,t);if(e>=0)return n[1|e]}function nl(n,t){return function vE(n,t,e){let i=0,o=n.length>>e;for(;o!==i;){const r=i+(o-i>>1),s=n[r<<e];if(t===s)return r<<e;s>t?o=r:i=r+1}return~(o<<e)}(n,t,1)}const Wc={},zm="__NG_DI_FLAG__",il="ngTempTokenPath",wL=/\n/gm,Gm="__source",qm=hn({provide:String,useValue:hn});let $c;function ol(n){const t=$c;return $c=n,t}function DL(n,t=dt.Default){if(void 0===$c)throw new Error("inject() must be called from an injection context");return null===$c?OC(n,void 0,t):$c.get(n,t&dt.Optional?null:void 0,t)}function se(n,t=dt.Default){return(function gN(){return fm}()||DL)(at(n),t)}const Yc=se;function Js(n){const t=[];for(let e=0;e<n.length;e++){const i=at(n[e]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let o,r=dt.Default;for(let s=0;s<i.length;s++){const a=i[s],l=ML(a);"number"==typeof l?-1===l?o=a.token:r|=l:o=a}t.push(se(o,r))}else t.push(se(i))}return t}function Qc(n,t){return n[zm]=t,n.prototype[zm]=t,n}function ML(n){return n[zm]}function yE(n,t,e,i){const o=n[il];throw t[Gm]&&o.unshift(t[Gm]),n.message=function bE(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let o=Bt(t);if(Array.isArray(t))o=t.map(Bt).join(" -> ");else if("object"==typeof t){let r=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];r.push(s+":"+("string"==typeof a?JSON.stringify(a):Bt(a)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${n.replace(wL,"\n ")}`}("\n"+n.message,o,e,i),n.ngTokenPath=o,n[il]=null,n}const rl=Qc(Zs("Inject",n=>({token:n})),-1),ci=Qc(Zs("Optional"),8),Hr=Qc(Zs("SkipSelf"),4);let hh,fh;function al(n){var t;return(null===(t=function $m(){if(void 0===hh&&(hh=null,an.trustedTypes))try{hh=an.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return hh}())||void 0===t?void 0:t.createHTML(n))||n}function AE(n){var t;return(null===(t=function Ym(){if(void 0===fh&&(fh=null,an.trustedTypes))try{fh=an.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return fh}())||void 0===t?void 0:t.createHTML(n))||n}class ea{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class VL extends ea{getTypeName(){return"HTML"}}class jL extends ea{getTypeName(){return"Style"}}class UL extends ea{getTypeName(){return"Script"}}class HL extends ea{getTypeName(){return"URL"}}class zL extends ea{getTypeName(){return"ResourceURL"}}function oo(n){return n instanceof ea?n.changingThisBreaksApplicationSecurity:n}function mr(n,t){const e=DE(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function DE(n){return n instanceof ea&&n.getTypeName()||null}class QL{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(al(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class KL{constructor(t){if(this.defaultDoc=t,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(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=al(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=al(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let o=e.length-1;0<o;o--){const s=e.item(o).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&t.removeAttribute(s)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const XL=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,JL=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Zc(n){return(n=String(n)).match(XL)||n.match(JL)?n:"unsafe:"+n}function TE(n){return(n=String(n)).split(",").map(t=>Zc(t.trim())).join(", ")}function gr(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Xc(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const IE=gr("area,br,col,hr,img,wbr"),OE=gr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),RE=gr("rp,rt"),Qm=Xc(IE,Xc(OE,gr("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")),Xc(RE,gr("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")),Xc(RE,OE)),Km=gr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zm=gr("srcset"),kE=Xc(Km,Zm,gr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),gr("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")),eF=gr("script,style,template");class tF{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.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(t){const e=t.nodeName.toLowerCase();if(!Qm.hasOwnProperty(e))return this.sanitizedSomething=!0,!eF.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let o=0;o<i.length;o++){const r=i.item(o),s=r.name,a=s.toLowerCase();if(!kE.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;Km[a]&&(l=Zc(l)),Zm[a]&&(l=TE(l)),this.buf.push(" ",s,'="',PE(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Qm.hasOwnProperty(e)&&!IE.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(PE(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const nF=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,iF=/([^\#-~ |!])/g;function PE(n){return n.replace(/&/g,"&amp;").replace(nF,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(iF,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ph;function NE(n,t){let e=null;try{ph=ph||function ME(n){const t=new KL(n);return function ZL(){try{return!!(new window.DOMParser).parseFromString(al(""),"text/html")}catch(n){return!1}}()?new QL(t):t}(n);let i=t?String(t):"";e=ph.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=ph.getInertBodyElement(i)}while(i!==r);return al((new tF).sanitizeChildren(Xm(e)||e))}finally{if(e){const i=Xm(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Xm(n){return"content"in n&&function oF(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.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 LE(n){const t=Jc();return t?AE(t.sanitize(Xt.HTML,n)||""):mr(n,"HTML")?AE(oo(n)):NE(Sm(),Ot(n))}function ll(n){const t=Jc();return t?t.sanitize(Xt.URL,n)||"":mr(n,"URL")?oo(n):Zc(Ot(n))}function Jc(){const n=Ne();return n&&n[12]}const VE="__ngContext__";function xi(n,t){n[VE]=t}function eg(n){const t=function ed(n){return n[VE]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function mh(n){return n.ngOriginalError}function bF(n,...t){n.error(...t)}class vr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),o=function yF(n){return n&&n.ngErrorLogger||bF}(t);o(this._console,"ERROR",t),e&&o(this._console,"ORIGINAL ERROR",e),i&&o(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?function qE(n){return n.ngDebugContext}(t)||this._findContext(mh(t)):null}_findOriginalError(t){let e=t&&mh(t);for(;e&&mh(e);)e=mh(e);return e||null}}const YE=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(an))();function td(n){return n.ownerDocument.defaultView}function QE(n){return n.ownerDocument}function _r(n){return n instanceof Function?n():n}var ro=(()=>((ro=ro||{})[ro.Important=1]="Important",ro[ro.DashCase=2]="DashCase",ro))();function ig(n,t){return undefined(n,t)}function nd(n){const t=n[3];return qo(t)?t[3]:t}function og(n){return e0(n[13])}function rg(n){return e0(n[4])}function e0(n){for(;null!==n&&!qo(n);)n=n[4];return n}function dl(n,t,e,i,o){if(null!=i){let r,s=!1;qo(i)?r=i:hr(i)&&(s=!0,i=i[0]);const a=Yn(i);0===n&&null!==e?null==o?a0(t,e,a):ta(t,e,a,o||null,!0):1===n&&null!==e?ta(t,e,a,o||null,!0):2===n?function p0(n,t,e){const i=vh(n,t);i&&function VF(n,t,e,i){Bn(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=r&&function HF(n,t,e,i,o){const r=e[7];r!==Yn(e)&&dl(t,n,i,r,o);for(let a=10;a<e.length;a++){const l=e[a];id(l[1],l,n,t,i,r)}}(t,n,r,e,o)}}function ag(n,t,e){return Bn(n)?n.createElement(t,e):null===e?n.createElement(t):n.createElementNS(e,t)}function n0(n,t){const e=n[9],i=e.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,xm(o,-1)),e.splice(i,1)}function lg(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const o=i[17];null!==o&&o!==n&&n0(o,i),t>0&&(n[e-1][4]=i[4]);const r=Xs(n,10+t);!function OF(n,t){id(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=r[19];null!==s&&s.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function o0(n,t){if(!(256&t[2])){const e=t[11];Bn(e)&&e.destroyNode&&id(n,t,e,3,null,null),function PF(n){let t=n[13];if(!t)return cg(n[1],n);for(;t;){let e=null;if(hr(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)hr(t)&&cg(t[1],t),t=t[3];null===t&&(t=n),hr(t)&&cg(t[1],t),e=t&&t[4]}t=e}}(t)}}function cg(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function BF(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const o=t[e[i]];if(!(o instanceof Vc)){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{}}}}(n,t),function FF(n,t){const e=n.cleanup,i=t[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(t):Yn(t[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++)i[r]();t[7]=null}}(n,t),1===t[1].type&&Bn(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&qo(t[3])){e!==t[3]&&n0(e,t);const i=t[19];null!==i&&i.detachView(n)}}}function r0(n,t,e){return function s0(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const o=n.data[i.directiveStart].encapsulation;if(o===Yi.None||o===Yi.Emulated)return null}return wo(i,e)}(n,t.parent,e)}function ta(n,t,e,i,o){Bn(n)?n.insertBefore(t,e,i,o):t.insertBefore(e,i,o)}function a0(n,t,e){Bn(n)?n.appendChild(t,e):t.appendChild(e)}function l0(n,t,e,i,o){null!==i?ta(n,t,e,i,o):a0(n,t,e)}function vh(n,t){return Bn(n)?n.parentNode(t):t.parentNode}function c0(n,t,e){return u0(n,t,e)}let u0=function d0(n,t,e){return 40&n.type?wo(n,e):null};function _h(n,t,e,i){const o=r0(n,i,t),r=t[11],a=c0(i.parent||t[6],i,t);if(null!=o)if(Array.isArray(e))for(let l=0;l<e.length;l++)l0(r,o,e[l],a,!1);else l0(r,o,e,a,!1)}function yh(n,t){if(null!==t){const e=t.type;if(3&e)return wo(t,n);if(4&e)return ug(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return yh(n,i);{const o=n[t.index];return qo(o)?ug(-1,o):Yn(o)}}if(32&e)return ig(t,n)()||Yn(n[t.index]);{const i=f0(n,t);return null!==i?Array.isArray(i)?i[0]:yh(nd(n[16]),i):yh(n,t.next)}}return null}function f0(n,t){return null!==t?n[16][6].projection[t.projection]:null}function ug(n,t){const e=10+n+1;if(e<t.length){const i=t[e],o=i[1].firstChild;if(null!==o)return yh(i,o)}return t[7]}function hg(n,t,e,i,o,r,s){for(;null!=e;){const a=i[e.index],l=e.type;if(s&&0===t&&(a&&xi(Yn(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)hg(n,t,e.child,i,o,r,!1),dl(t,n,o,a,r);else if(32&l){const c=ig(e,i);let d;for(;d=c();)dl(t,n,o,d,r);dl(t,n,o,a,r)}else 16&l?m0(n,t,i,e,o,r):dl(t,n,o,a,r);e=s?e.projectionNext:e.next}}function id(n,t,e,i,o,r){hg(e,i,n.firstChild,t,o,r,!1)}function m0(n,t,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++)dl(t,n,o,l[c],r);else hg(n,t,l,s[3],o,r,!0)}function g0(n,t,e){Bn(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function fg(n,t,e){Bn(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function v0(n,t,e){let i=n.length;for(;;){const o=n.indexOf(t,e);if(-1===o)return o;if(0===o||n.charCodeAt(o-1)<=32){const r=t.length;if(o+r===i||n.charCodeAt(o+r)<=32)return o}e=o+1}}const _0="ng-template";function GF(n,t,e){let i=0;for(;i<n.length;){let o=n[i++];if(e&&"class"===o){if(o=n[i],-1!==v0(o.toLowerCase(),t,0))return!0}else if(1===o){for(;i<n.length&&"string"==typeof(o=n[i++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function y0(n){return 4===n.type&&n.value!==_0}function qF(n,t,e){return t===(4!==n.type||e?n.value:_0)}function WF(n,t,e){let i=4;const o=n.attrs||[],r=function QF(n){for(let t=0;t<n.length;t++)if(iE(n[t]))return t;return n.length}(o);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!qF(n,l,e)||""===l&&1===t.length){if($o(i))return!1;s=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!GF(n.attrs,c,e)){if($o(i))return!1;s=!0}continue}const u=$F(8&i?"class":l,o,y0(n),e);if(-1===u){if($o(i))return!1;s=!0;continue}if(""!==c){let h;h=u>r?"":o[u+1].toLowerCase();const g=8&i?h:null;if(g&&-1!==v0(g,c,0)||2&i&&c!==h){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(n){return 0==(1&n)}function $F(n,t,e,i){if(null===t)return-1;let o=0;if(i||!e){let r=!1;for(;o<t.length;){const s=t[o];if(s===n)return o;if(3===s||6===s)r=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=r?1:2}return-1}return function KF(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function b0(n,t,e=!1){for(let i=0;i<t.length;i++)if(WF(n,t[i],e))return!0;return!1}function ZF(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let o=0;o<n.length;o++)if(n[o]!==i[o])continue e;return!0}}return!1}function C0(n,t){return n?":not("+t.trim()+")":t}function XF(n){let t=n[0],e=1,i=2,o="",r=!1;for(;e<n.length;){let s=n[e];if("string"==typeof s)if(2&i){const a=n[++e];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!$o(s)&&(t+=C0(r,o),o=""),i=s,r=r||!$o(i);e++}return""!==o&&(t+=C0(r,o)),t}const Rt={};function T(n){E0(Kt(),Ne(),Fi()+n,Qu())}function E0(n,t,e,i){if(!i)if(3==(3&t[2])){const r=n.preOrderCheckHooks;null!==r&&eh(t,r,e)}else{const r=n.preOrderHooks;null!==r&&th(t,r,0,e)}vs(e)}function bh(n,t){return n<<17|t<<2}function Yo(n){return n>>17&32767}function pg(n){return 2|n}function zr(n){return(131068&n)>>2}function mg(n,t){return-131069&n|t<<2}function gg(n){return 1|n}function R0(n,t){const e=n.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=n.data[r];Om(o),s.contentQueries(2,t[r],r)}}}function od(n,t,e,i,o,r,s,a,l,c){const d=t.blueprint.slice();return d[0]=o,d[2]=140|i,qC(d),d[3]=d[15]=n,d[8]=e,d[10]=s||n&&n[10],d[11]=a||n&&n[11],d[12]=l||n&&n[12]||null,d[9]=c||n&&n[9]||null,d[6]=r,d[16]=2==t.type?n[16]:d,d}function ul(n,t,e,i,o){let r=n.data[t];if(null===r)r=function Sg(n,t,e,i,o){const r=$C(),s=Dm(),l=n.data[t]=function p2(n,t,e,i,o,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.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:t,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,t,i,o);return null===n.firstChild&&(n.firstChild=l),null!==r&&(s?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}(n,t,e,i,o),function GN(){return At.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=o;const s=function Bc(){const n=At.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();r.injectorIndex=null===s?-1:s.injectorIndex}return fr(r,!0),r}function hl(n,t,e,i){if(0===e)return-1;const o=t.length;for(let r=0;r<e;r++)t.push(i),n.blueprint.push(i),n.data.push(null);return o}function rd(n,t,e){Zu(t);try{const i=n.viewQuery;null!==i&&Rg(1,i,e);const o=n.template;null!==o&&k0(n,t,o,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&R0(n,t),n.staticViewQueries&&Rg(2,n.viewQuery,e);const r=n.components;null!==r&&function u2(n,t){for(let e=0;e<t.length;e++)R2(n,t[e])}(t,r)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,Xu()}}function fl(n,t,e,i){const o=t[2];if(256==(256&o))return;Zu(t);const r=Qu();try{qC(t),function YC(n){return At.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&k0(n,t,e,2,i);const s=3==(3&o);if(!r)if(s){const c=n.preOrderCheckHooks;null!==c&&eh(t,c,null)}else{const c=n.preOrderHooks;null!==c&&th(t,c,0,null),Rm(t,0)}if(function I2(n){for(let t=og(n);null!==t;t=rg(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const o=e[i],r=o[3];0==(1024&o[2])&&xm(r,1),o[2]|=1024}}}(t),function T2(n){for(let t=og(n);null!==t;t=rg(t))for(let e=10;e<t.length;e++){const i=t[e],o=i[1];wm(i)&&fl(o,i,o.template,i[8])}}(t),null!==n.contentQueries&&R0(n,t),!r)if(s){const c=n.contentCheckHooks;null!==c&&eh(t,c)}else{const c=n.contentHooks;null!==c&&th(t,c,1),Rm(t,1)}!function c2(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const o=e[i];if(o<0)vs(~o);else{const r=o,s=e[++i],a=e[++i];qN(s,r),a(2,t[r])}}}finally{vs(-1)}}(n,t);const a=n.components;null!==a&&function d2(n,t){for(let e=0;e<t.length;e++)O2(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&Rg(2,l,i),!r)if(s){const c=n.viewCheckHooks;null!==c&&eh(t,c)}else{const c=n.viewHooks;null!==c&&th(t,c,2),Rm(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),r||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,xm(t[3],-1))}finally{Xu()}}function h2(n,t,e,i){const o=t[10],r=!Qu(),s=GC(t);try{r&&!s&&o.begin&&o.begin(),s&&rd(n,t,i),fl(n,t,e,i)}finally{r&&!s&&o.end&&o.end()}}function k0(n,t,e,i,o){const r=Fi(),s=2&i;try{vs(-1),s&&t.length>20&&E0(n,t,20,Qu()),e(i,o)}finally{vs(r)}}function P0(n,t,e){if(_m(t)){const o=t.directiveEnd;for(let r=t.directiveStart;r<o;r++){const s=n.data[r];s.contentQueries&&s.contentQueries(1,e[r],r)}}}function Ag(n,t,e){!WC()||(function C2(n,t,e,i){const o=e.directiveStart,r=e.directiveEnd;n.firstCreatePass||Uc(e,t),xi(i,t);const s=e.initialInputs;for(let a=o;a<r;a++){const l=n.data[a],c=Wo(l);c&&x2(t,e,l);const d=Hc(t,n,a,e);xi(d,t),null!==s&&D2(0,a-o,d,l,0,s),c&&(no(e.index,t)[8]=d)}}(n,t,e,wo(e,t)),128==(128&e.flags)&&function E2(n,t,e){const i=e.directiveStart,o=e.directiveEnd,s=e.index,a=function WN(){return At.lFrame.currentDirectiveIndex}();try{vs(s);for(let l=i;l<o;l++){const c=n.data[l],d=t[l];Tm(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&H0(c,d)}}finally{vs(-1),Tm(a)}}(n,t,e))}function wg(n,t,e=wo){const i=t.localNames;if(null!==i){let o=t.index+1;for(let r=0;r<i.length;r+=2){const s=i[r+1],a=-1===s?e(t,n):n[s];n[o++]=a}}}function N0(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=Sh(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function Sh(n,t,e,i,o,r,s,a,l,c){const d=20+i,u=d+o,h=function f2(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:Rt);return e}(d,u),g="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:u,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:g,incompleteFirstPass:!1}}function B0(n,t,e,i){const o=Y0(t);null===e?o.push(i):(o.push(e),n.firstCreatePass&&Q0(n).push(i,o.length-1))}function V0(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const o=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,o):e[i]=[t,o]}return e}function so(n,t,e,i,o,r,s,a){const l=wo(t,e);let d,c=t.inputs;!a&&null!=c&&(d=c[i])?(X0(n,e,d,i,o),Wu(t)&&function v2(n,t){const e=no(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(i=function g2(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),o=null!=s?s(o,t.value||"",i):o,Bn(r)?r.setProperty(l,i,o):Pm(i)||(l.setProperty?l.setProperty(i,o):l[i]=o))}function xg(n,t,e,i){let o=!1;if(WC()){const r=function S2(n,t,e){const i=n.directiveRegistry;let o=null;if(i)for(let r=0;r<i.length;r++){const s=i[r];b0(e,s.selectors,!1)&&(o||(o=[]),sh(Uc(e,t),n,s.type),Wo(s)?(z0(n,e),o.unshift(s)):o.push(s))}return o}(n,t,e),s=null===i?null:{"":-1};if(null!==r){o=!0,G0(e,n.data.length,r.length);for(let d=0;d<r.length;d++){const u=r[d];u.providersResolver&&u.providersResolver(u)}let a=!1,l=!1,c=hl(n,t,r.length,null);for(let d=0;d<r.length;d++){const u=r[d];e.mergedAttrs=ih(e.mergedAttrs,u.hostAttrs),q0(n,e,t,c,u),w2(c,u,s),null!==u.contentQueries&&(e.flags|=8),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(e.flags|=128);const h=u.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function m2(n,t){const i=t.directiveEnd,o=n.data,r=t.attrs,s=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const d=o[c],u=d.inputs,h=null===r||y0(t)?null:M2(u,r);s.push(h),a=V0(u,c,a),l=V0(d.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=a,t.outputs=l}(n,e)}s&&function A2(n,t,e){if(t){const i=n.localNames=[];for(let o=0;o<t.length;o+=2){const r=e[t[o+1]];if(null==r)throw new qs("301",`Export of name '${t[o+1]}' not found!`);i.push(t[o],r)}}}(e,i,s)}return e.mergedAttrs=ih(e.mergedAttrs,e.attrs),o}function U0(n,t,e,i,o,r){const s=r.hostBindings;if(s){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function b2(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,o,s)}}function H0(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function z0(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function w2(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;Wo(t)&&(e[""]=n)}}function G0(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function q0(n,t,e,i,o){n.data[i]=o;const r=o.factory||(o.factory=Ks(o.type)),s=new Vc(r,Wo(o),null);n.blueprint[i]=s,e[i]=s,U0(n,t,0,i,hl(n,e,o.hostVars,Rt),o)}function x2(n,t,e){const i=wo(t,n),o=N0(e),r=n[10],s=Ah(n,od(n,o,null,e.onPush?64:16,i,t,r,r.createRenderer(i,e),null,null));n[t.index]=s}function yr(n,t,e,i,o,r){const s=wo(n,t);!function Dg(n,t,e,i,o,r,s){if(null==r)Bn(n)?n.removeAttribute(t,o,e):t.removeAttribute(o);else{const a=null==s?Ot(r):s(r,i||"",o);Bn(n)?n.setAttribute(t,o,a,e):e?t.setAttributeNS(e,o,a):t.setAttribute(o,a)}}(t[11],s,r,n.value,e,i,o)}function D2(n,t,e,i,o,r){const s=r[t];if(null!==s){const a=i.setInput;for(let l=0;l<s.length;){const c=s[l++],d=s[l++],u=s[l++];null!==a?i.setInput(e,u,c,d):e[d]=u}}}function M2(n,t){let e=null,i=0;for(;i<t.length;){const o=t[i];if(0!==o)if(5!==o){if("number"==typeof o)break;n.hasOwnProperty(o)&&(null===e&&(e=[]),e.push(o,n[o],t[i+1])),i+=2}else i+=2;else i+=4}return e}function W0(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function O2(n,t){const e=no(t,n);if(wm(e)){const i=e[1];80&e[2]?fl(i,e,i.template,e[8]):e[5]>0&&Mg(e)}}function Mg(n){for(let i=og(n);null!==i;i=rg(i))for(let o=10;o<i.length;o++){const r=i[o];if(1024&r[2]){const s=r[1];fl(s,r,s.template,r[8])}else r[5]>0&&Mg(r)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const o=no(e[i],n);wm(o)&&o[5]>0&&Mg(o)}}function R2(n,t){const e=no(t,n),i=e[1];(function k2(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),rd(i,e,e[8])}function Ah(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Tg(n){for(;n;){n[2]|=64;const t=nd(n);if(xN(n)&&!t)return n;n=t}return null}function Og(n,t,e){const i=t[10];i.begin&&i.begin();try{fl(n,t,n.template,e)}catch(o){throw Z0(t,o),o}finally{i.end&&i.end()}}function $0(n){!function Ig(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=eg(e),o=i[1];h2(o,i,o.template,e)}}(n[8])}function Rg(n,t,e){Om(0),t(n,e)}const F2=(()=>Promise.resolve(null))();function Y0(n){return n[7]||(n[7]=[])}function Q0(n){return n.cleanup||(n.cleanup=[])}function K0(n,t,e){return(null===n||Wo(n))&&(e=function NN(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function Z0(n,t){const e=n[9],i=e?e.get(vr,null):null;i&&i.handleError(t)}function X0(n,t,e,i,o){for(let r=0;r<e.length;){const s=e[r++],a=e[r++],l=t[s],c=n.data[s];null!==c.setInput?c.setInput(l,o,i,a):l[a]=o}}function qr(n,t,e){const i=Yu(t,n);!function t0(n,t,e){Bn(n)?n.setValue(t,e):t.textContent=e}(n[11],i,e)}function wh(n,t,e){let i=e?n.styles:null,o=e?n.classes:null,r=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?r=a:1==r?o=dm(o,a):2==r&&(i=dm(i,a+": "+t[++s]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=o:n.classesWithoutHost=o}const sd=new je("INJECTOR",-1);class J0{get(t,e=Wc){if(e===Wc){const i=new Error(`NullInjectorError: No provider for ${Bt(t)}!`);throw i.name="NullInjectorError",i}return e}}const ad=new je("Set Injector scope."),ld={},j2={};let kg;function eS(){return void 0===kg&&(kg=new J0),kg}function tS(n,t=null,e=null,i){return new H2(n,e,t||eS(),i)}class H2{constructor(t,e,i,o=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&pr(e,a=>this.processProvider(a,t,e)),pr([t],a=>this.processInjectorType(a,[],r)),this.records.set(sd,pl(void 0,this));const s=this.records.get(ad);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Bt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Wc,i=dt.Default){this.assertNotDestroyed();const o=ol(this),r=fs(void 0);try{if(!(i&dt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function K2(n){return"function"==typeof n||"object"==typeof n&&n instanceof je}(t)&&Br(t);a=l&&this.injectableDefInScope(l)?pl(Pg(t),ld):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&dt.Self?eS():this.parent).get(t,e=i&dt.Optional&&e===Wc?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[il]=s[il]||[]).unshift(Bt(t)),o)throw s;return yE(s,t,"R3InjectorError",this.source)}throw s}finally{fs(r),ol(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,o)=>t.push(Bt(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=at(t)))return!1;let o=TC(t);const r=null==o&&t.ngModule||void 0,s=void 0===r?t:r,a=-1!==i.indexOf(s);if(void 0!==r&&(o=TC(r)),null==o)return!1;if(null!=o.imports&&!a){let d;i.push(s);try{pr(o.imports,u=>{this.processInjectorType(u,e,i)&&(void 0===d&&(d=[]),d.push(u))})}finally{}if(void 0!==d)for(let u=0;u<d.length;u++){const{ngModule:h,providers:g}=d[u];pr(g,I=>this.processProvider(I,h,g||mn))}}this.injectorDefTypes.add(s);const l=Ks(s)||(()=>new s);this.records.set(s,pl(l,ld));const c=o.providers;if(null!=c&&!a){const d=t;pr(c,u=>this.processProvider(u,d,c))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,i){let o=ml(t=at(t))?t:at(t&&t.provide);const r=function G2(n,t,e){return iS(n)?pl(void 0,n.useValue):pl(nS(n),ld)}(t);if(ml(t)||!0!==t.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=pl(void 0,ld,!0),s.factory=()=>Js(s.multi),this.records.set(o,s)),o=t,s.multi.push(t)}this.records.set(o,r)}hydrate(t,e){return e.value===ld&&(e.value=j2,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Q2(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=at(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Pg(n){const t=Br(n),e=null!==t?t.factory:Ks(n);if(null!==e)return e;if(n instanceof je)throw new Error(`Token ${Bt(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function z2(n){const t=n.length;if(t>0){const i=bs(t,"?");throw new Error(`Can't resolve all parameters for ${Bt(n)}: (${i.join(", ")}).`)}const e=function fN(n){const t=n&&(n[Uu]||n[IC]);if(t){const e=function pN(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);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.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Error("unreachable")}function nS(n,t,e){let i;if(ml(n)){const o=at(n);return Ks(o)||Pg(o)}if(iS(n))i=()=>at(n.useValue);else if(function W2(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Js(n.deps||[]));else if(function q2(n){return!(!n||!n.useExisting)}(n))i=()=>se(at(n.useExisting));else{const o=at(n&&(n.useClass||n.provide));if(!function Y2(n){return!!n.deps}(n))return Ks(o)||Pg(o);i=()=>new o(...Js(n.deps))}return i}function pl(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function iS(n){return null!==n&&"object"==typeof n&&qm in n}function ml(n){return"function"==typeof n}const oS=function Z2(n,t,e){return function U2(n,t=null,e=null,i){const o=tS(n,t,e,i);return o._resolveInjectorDefTypes(),o}({name:e},t,n,e)};let jt=(()=>{class n{static create(e,i){return Array.isArray(e)?oS(e,i,""):oS(e.providers,e.parent,e.name||"")}}return n.THROW_IF_NOT_FOUND=Wc,n.NULL=new J0,n.\u0275prov=Se({token:n,providedIn:"any",factory:()=>se(sd)}),n.__NG_ELEMENT_ID__=-1,n})();function cB(n,t){Ju(eg(n)[1],ti())}function Le(n){let t=function bS(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let o;if(Wo(n))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");o=t.\u0275dir}if(o){if(e){i.push(o);const s=n;s.inputs=jg(n.inputs),s.declaredInputs=jg(n.declaredInputs),s.outputs=jg(n.outputs);const a=o.hostBindings;a&&fB(n,a);const l=o.viewQuery,c=o.contentQueries;if(l&&uB(n,l),c&&hB(n,c),cm(n.inputs,o.inputs),cm(n.declaredInputs,o.declaredInputs),cm(n.outputs,o.outputs),Wo(o)&&o.data.animation){const d=n.data;d.animation=(d.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(n),a===Le&&(e=!1)}}t=Object.getPrototypeOf(t)}!function dB(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const o=n[i];o.hostVars=t+=o.hostVars,o.hostAttrs=ih(o.hostAttrs,e=ih(e,o.hostAttrs))}}(i)}function jg(n){return n===za?{}:n===mn?[]:n}function uB(n,t){const e=n.viewQuery;n.viewQuery=e?(i,o)=>{t(i,o),e(i,o)}:t}function hB(n,t){const e=n.contentQueries;n.contentQueries=e?(i,o,r)=>{t(i,o,r),e(i,o,r)}:t}function fB(n,t){const e=n.hostBindings;n.hostBindings=e?(i,o)=>{t(i,o),e(i,o)}:t}let xh=null;function gl(){if(!xh){const n=an.Symbol;if(n&&n.iterator)xh=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(xh=i)}}}return xh}function dd(n){return!!Ug(n)&&(Array.isArray(n)||!(n instanceof Map)&&gl()in n)}function Ug(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function br(n,t,e){return n[t]=e}function Di(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function na(n,t,e,i){const o=Di(n,t,e);return Di(n,t+1,i)||o}function Dt(n,t,e,i){const o=Ne();return Di(o,Qa(),t)&&(Kt(),yr(Vn(),o,n,t,e,i)),Dt}function _l(n,t,e,i){return Di(n,Qa(),e)?t+Ot(e)+i:Rt}function yl(n,t,e,i,o,r){const a=na(n,function jr(){return At.lFrame.bindingIndex}(),e,o);return Ur(2),a?t+Ot(e)+i+Ot(o)+r:Rt}function ie(n,t,e,i,o,r,s,a){const l=Ne(),c=Kt(),d=n+20,u=c.firstCreatePass?function yB(n,t,e,i,o,r,s,a,l){const c=t.consts,d=ul(t,n,4,s||null,gs(c,a));xg(t,e,d,gs(c,l)),Ju(t,d);const u=d.tViews=Sh(2,d,i,o,r,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}(d,c,l,t,e,i,o,r,s):c.data[d];fr(u,!1);const h=l[11].createComment("");_h(c,l,h,u),xi(h,l),Ah(l,l[d]=W0(h,l,h,u)),$u(u)&&Ag(c,l,u),null!=s&&wg(l,u,a)}function Cr(n){return Ya(function zN(){return At.lFrame.contextLView}(),20+n)}function f(n,t=dt.Default){const e=Ne();return null===e?se(n,t):dE(ti(),e,at(n),t)}function Dl(){throw new Error("invalid")}function G(n,t,e){const i=Ne();return Di(i,Qa(),t)&&so(Kt(),Vn(),i,n,t,i[11],e,!1),G}function Wg(n,t,e,i,o){const s=o?"class":"style";X0(n,e,t.inputs[s],s,i)}function v(n,t,e,i){const o=Ne(),r=Kt(),s=20+n,a=o[11],l=o[s]=ag(a,t,function JN(){return At.lFrame.currentNamespace}()),c=r.firstCreatePass?function zB(n,t,e,i,o,r,s){const a=t.consts,c=ul(t,n,2,o,gs(a,r));return xg(t,e,c,gs(a,s)),null!==c.attrs&&wh(c,c.attrs,!1),null!==c.mergedAttrs&&wh(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,r,o,0,t,e,i):r.data[s];fr(c,!0);const d=c.mergedAttrs;null!==d&&nh(a,l,d);const u=c.classes;null!==u&&fg(a,l,u);const h=c.styles;null!==h&&g0(a,l,h),64!=(64&c.flags)&&_h(r,o,l,c),0===function BN(){return At.lFrame.elementDepthCount}()&&xi(l,o),function VN(){At.lFrame.elementDepthCount++}(),$u(c)&&(Ag(r,o,c),P0(r,c,o)),null!==i&&wg(o,c)}function _(){let n=ti();Dm()?Mm():(n=n.parent,fr(n,!1));const t=n;!function jN(){At.lFrame.elementDepthCount--}();const e=Kt();e.firstCreatePass&&(Ju(e,n),_m(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function oL(n){return 0!=(16&n.flags)}(t)&&Wg(e,t,Ne(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function rL(n){return 0!=(32&n.flags)}(t)&&Wg(e,t,Ne(),t.stylesWithoutHost,!1)}function $e(n,t,e,i){v(n,t,e,i),_()}function Mi(n,t,e){const i=Ne(),o=Kt(),r=n+20,s=o.firstCreatePass?function GB(n,t,e,i,o){const r=t.consts,s=gs(r,i),a=ul(t,n,8,"ng-container",s);return null!==s&&wh(a,s,!0),xg(t,e,a,gs(r,o)),null!==t.queries&&t.queries.elementStart(t,a),a}(r,o,i,t,e):o.data[r];fr(s,!0);const a=i[r]=i[11].createComment("");_h(o,i,a,s),xi(a,i),$u(s)&&(Ag(o,i,s),P0(o,s,i)),null!=e&&wg(i,s)}function Ti(){let n=ti();const t=Kt();Dm()?Mm():(n=n.parent,fr(n,!1)),t.firstCreatePass&&(Ju(t,n),_m(n)&&t.queries.elementEnd(n))}function fn(n,t,e){Mi(n,t,e),Ti()}function yt(){return Ne()}function hd(n){return!!n&&"function"==typeof n.then}function HS(n){return!!n&&"function"==typeof n.subscribe}const Th=HS;function Te(n,t,e,i){const o=Ne(),r=Kt(),s=ti();return zS(r,o,o[11],s,n,t,!!e,i),Te}function fd(n,t){const e=ti(),i=Ne(),o=Kt();return zS(o,i,K0(Im(o.data),e,i),e,n,t,!1),fd}function zS(n,t,e,i,o,r,s,a){const l=$u(i),d=n.firstCreatePass&&Q0(n),u=t[8],h=Y0(t);let g=!0;if(3&i.type||a){const K=wo(i,t),ae=a?a(K):K,le=h.length,Ce=a?be=>a(Yn(be[i.index])):i.index;if(Bn(e)){let be=null;if(!a&&l&&(be=function qB(n,t,e,i){const o=n.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=t[7],l=o[r+2];return a.length>l?a[l]:null}"string"==typeof s&&(r+=2)}return null}(n,t,o,i.index)),null!==be)(be.__ngLastListenerFn__||be).__ngNextListenerFn__=r,be.__ngLastListenerFn__=r,g=!1;else{r=$g(i,t,u,r,!1);const Ge=e.listen(ae,o,r);h.push(r,Ge),d&&d.push(o,Ce,le,le+1)}}else r=$g(i,t,u,r,!0),ae.addEventListener(o,r,s),h.push(r),d&&d.push(o,Ce,le,s)}else r=$g(i,t,u,r,!1);const I=i.outputs;let Q;if(g&&null!==I&&(Q=I[o])){const K=Q.length;if(K)for(let ae=0;ae<K;ae+=2){const st=t[Q[ae]][Q[ae+1]].subscribe(r),gt=h.length;h.push(r,st),d&&d.push(o,i.index,gt,-(gt+1))}}}function GS(n,t,e,i){try{return!1!==e(i)}catch(o){return Z0(n,o),!1}}function $g(n,t,e,i,o){return function r(s){if(s===Function)return i;const a=2&n.flags?no(n.index,t):t;0==(32&t[2])&&Tg(a);let l=GS(t,0,i,s),c=r.__ngNextListenerFn__;for(;c;)l=GS(t,0,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function fe(n=1){return function YN(n){return(At.lFrame.contextLView=function QN(n,t){for(;n>0;)t=t[15],n--;return t}(n,At.lFrame.contextLView))[8]}(n)}function WB(n,t){let e=null;const i=function YF(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let o=0;o<t.length;o++){const r=t[o];if("*"!==r){if(null===i?b0(n,r,!0):ZF(i,r))return o}else e=o}return e}function In(n){const t=Ne()[16][6];if(!t.projection){const i=t.projection=bs(n?n.length:1,null),o=i.slice();let r=t.child;for(;null!==r;){const s=n?WB(r,n):0;null!==s&&(o[s]?o[s].projectionNext=r:i[s]=r,o[s]=r),r=r.next}}}function kt(n,t=0,e){const i=Ne(),o=Kt(),r=ul(o,20+n,16,null,e||null);null===r.projection&&(r.projection=t),Mm(),64!=(64&r.flags)&&function UF(n,t,e){m0(t[11],0,t,e,r0(n,e,t),c0(e.parent||t[6],e,t))}(o,i,r)}function Qt(n,t,e){return Yg(n,"",t,"",e),Qt}function Yg(n,t,e,i,o){const r=Ne(),s=_l(r,t,e,i);return s!==Rt&&so(Kt(),Vn(),r,n,s,r[11],o,!1),Yg}function JS(n,t,e,i,o){const r=n[e+1],s=null===t;let a=i?Yo(r):zr(r),l=!1;for(;0!==a&&(!1===l||s);){const d=n[a+1];QB(n[a],t)&&(l=!0,n[a+1]=i?gg(d):pg(d)),a=i?Yo(d):zr(d)}l&&(n[e+1]=i?pg(r):gg(r))}function QB(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&nl(n,t)>=0}const ii={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function eA(n){return n.substring(ii.key,ii.keyEnd)}function tA(n,t){const e=ii.textEnd;return e===t?-1:(t=ii.keyEnd=function JB(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,ii.key=t,e),Ml(n,t,e))}function Ml(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function di(n,t,e){return Ko(n,t,e,!1),di}function lt(n,t){return Ko(n,t,null,!0),lt}function Sr(n,t){for(let e=function ZB(n){return function iA(n){ii.key=0,ii.keyEnd=0,ii.value=0,ii.valueEnd=0,ii.textEnd=n.length}(n),tA(n,Ml(n,0,ii.textEnd))}(t);e>=0;e=tA(t,e))io(n,eA(t),!0)}function Ko(n,t,e,i){const o=Ne(),r=Kt(),s=Ur(2);r.firstUpdatePass&&aA(r,n,s,i),t!==Rt&&Di(o,s,t)&&cA(r,r.data[Fi()],o,o[11],n,o[s+1]=function dV(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Bt(oo(n)))),n}(t,e),i,s)}function sA(n,t){return t>=n.expandoStartIndex}function aA(n,t,e,i){const o=n.data;if(null===o[e+1]){const r=o[Fi()],s=sA(n,e);uA(r,i)&&null===t&&!s&&(t=!1),t=function oV(n,t,e,i){const o=Im(n);let r=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(e=pd(e=Qg(null,n,t,e,i),t.attrs,i),r=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==o)if(e=Qg(o,n,t,e,i),null===r){let l=function rV(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==zr(i))return n[Yo(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Qg(null,n,t,l[1],i),l=pd(l,t.attrs,i),function sV(n,t,e,i){n[Yo(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else r=function aV(n,t,e){let i;const o=t.directiveEnd;for(let r=1+t.directiveStylingLast;r<o;r++)i=pd(i,n[r].hostAttrs,e);return pd(i,t.attrs,e)}(n,t,i)}return void 0!==r&&(i?t.residualClasses=r:t.residualStyles=r),e}(o,r,t,i),function $B(n,t,e,i,o,r){let s=r?t.classBindings:t.styleBindings,a=Yo(s),l=zr(s);n[i]=e;let d,c=!1;if(Array.isArray(e)){const u=e;d=u[1],(null===d||nl(u,d)>0)&&(c=!0)}else d=e;if(o)if(0!==l){const h=Yo(n[a+1]);n[i+1]=bh(h,a),0!==h&&(n[h+1]=mg(n[h+1],i)),n[a+1]=function t2(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=bh(a,0),0!==a&&(n[a+1]=mg(n[a+1],i)),a=i;else n[i+1]=bh(l,0),0===a?a=i:n[l+1]=mg(n[l+1],i),l=i;c&&(n[i+1]=pg(n[i+1])),JS(n,d,i,!0),JS(n,d,i,!1),function YB(n,t,e,i,o){const r=o?n.residualClasses:n.residualStyles;null!=r&&"string"==typeof t&&nl(r,t)>=0&&(e[i+1]=gg(e[i+1]))}(t,d,n,i,r),s=bh(a,l),r?t.classBindings=s:t.styleBindings=s}(o,r,t,e,s,i)}}function Qg(n,t,e,i,o){let r=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(r=t[a],i=pd(i,r.hostAttrs,o),r!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function pd(n,t,e){const i=e?1:2;let o=-1;if(null!==t)for(let r=0;r<t.length;r++){const s=t[r];"number"==typeof s?o=s:o===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),io(n,s,!!e||t[++r]))}return void 0===n?null:n}function cA(n,t,e,i,o,r,s,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];Ih(function A0(n){return 1==(1&n)}(c)?dA(l,t,e,o,zr(c),s):void 0)||(Ih(r)||function S0(n){return 2==(2&n)}(c)&&(r=dA(l,null,e,o,a,s)),function zF(n,t,e,i,o){const r=Bn(n);if(t)o?r?n.addClass(e,i):e.classList.add(i):r?n.removeClass(e,i):e.classList.remove(i);else{let s=-1===i.indexOf("-")?void 0:ro.DashCase;if(null==o)r?n.removeStyle(e,i,s):e.style.removeProperty(i);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),s|=ro.Important),r?n.setStyle(e,i,o,s):e.style.setProperty(i,o,a?"important":"")}}}(i,s,Yu(Fi(),e),o,r))}function dA(n,t,e,i,o,r){const s=null===t;let a;for(;o>0;){const l=n[o],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=e[o+1];h===Rt&&(h=u?mn:void 0);let g=u?Um(h,i):d===i?h:void 0;if(c&&!Ih(g)&&(g=Um(l,i)),Ih(g)&&(a=g,s))return a;const I=n[o+1];o=s?Yo(I):zr(I)}if(null!==t){let l=r?t.residualClasses:t.residualStyles;null!=l&&(a=Um(l,i))}return a}function Ih(n){return void 0!==n}function uA(n,t){return 0!=(n.flags&(t?16:32))}function me(n,t=""){const e=Ne(),i=Kt(),o=n+20,r=i.firstCreatePass?ul(i,o,1,t,null):i.data[o],s=e[o]=function sg(n,t){return Bn(n)?n.createText(t):n.createTextNode(t)}(e[11],t);_h(i,e,s,r),fr(r,!1)}function He(n){return An("",n,""),He}function An(n,t,e){const i=Ne(),o=_l(i,n,t,e);return o!==Rt&&qr(i,Fi(),o),An}function Kg(n,t,e,i,o){const r=Ne(),s=yl(r,n,t,e,i,o);return s!==Rt&&qr(r,Fi(),s),Kg}function yA(n,t,e){!function Zo(n,t,e,i){const o=Kt(),r=Ur(2);o.firstUpdatePass&&aA(o,null,r,i);const s=Ne();if(e!==Rt&&Di(s,r,e)){const a=o.data[Fi()];if(uA(a,i)&&!sA(o,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=dm(l,e||"")),Wg(o,a,s,e,i)}else!function cV(n,t,e,i,o,r,s,a){o===Rt&&(o=mn);let l=0,c=0,d=0<o.length?o[0]:null,u=0<r.length?r[0]:null;for(;null!==d||null!==u;){const h=l<o.length?o[l+1]:void 0,g=c<r.length?r[c+1]:void 0;let Q,I=null;d===u?(l+=2,c+=2,h!==g&&(I=u,Q=g)):null===u||null!==d&&d<u?(l+=2,I=d):(c+=2,I=u,Q=g),null!==I&&cA(n,t,e,i,I,Q,s,a),d=l<o.length?o[l]:null,u=c<r.length?r[c]:null}}(o,a,s,s[11],s[r+1],s[r+1]=function lV(n,t,e){if(null==e||""===e)return mn;const i=[],o=oo(e);if(Array.isArray(o))for(let r=0;r<o.length;r++)n(i,o[r],!0);else if("object"==typeof o)for(const r in o)o.hasOwnProperty(r)&&n(i,r,o[r]);else"string"==typeof o&&t(i,o);return i}(n,t,e),i,r)}}(io,Sr,_l(Ne(),n,t,e),!0)}function Ss(n,t,e){const i=Ne();return Di(i,Qa(),t)&&so(Kt(),Vn(),i,n,t,i[11],e,!0),Ss}function md(n,t,e){const i=Ne();if(Di(i,Qa(),t)){const r=Kt(),s=Vn();so(r,s,i,n,t,K0(Im(r.data),s,i),e,!0)}return md}const ia=void 0;var TV=["en",[["a","p"],["AM","PM"],ia],[["AM","PM"],ia,ia],[["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"]],ia,[["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"]],ia,[["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}",ia,"{1} 'at' {0}",ia],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function MV(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Tl={};function Vi(n){const t=function IV(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=IA(t);if(e)return e;const i=t.split("-")[0];if(e=IA(i),e)return e;if("en"===i)return TV;throw new Error(`Missing locale data for the locale "${n}".`)}function IA(n){return n in Tl||(Tl[n]=an.ng&&an.ng.common&&an.ng.common.locales&&an.ng.common.locales[n]),Tl[n]}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 Oh="en-US";let OA=Oh;function Jg(n,t,e,i,o){if(n=at(n),Array.isArray(n))for(let r=0;r<n.length;r++)Jg(n[r],t,e,i,o);else{const r=Kt(),s=Ne();let a=ml(n)?n:at(n.provide),l=nS(n);const c=ti(),d=1048575&c.providerIndexes,u=c.directiveStart,h=c.providerIndexes>>20;if(ml(n)||!n.multi){const g=new Vc(l,o,f),I=tv(a,t,o?d:d+h,u);-1===I?(sh(Uc(c,s),r,a),ev(r,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(g),s.push(g)):(e[I]=g,s[I]=g)}else{const g=tv(a,t,d+h,u),I=tv(a,t,d,d+h),Q=g>=0&&e[g],K=I>=0&&e[I];if(o&&!K||!o&&!Q){sh(Uc(c,s),r,a);const ae=function M3(n,t,e,i,o){const r=new Vc(n,e,f);return r.multi=[],r.index=t,r.componentProviders=0,tw(r,o,i&&!e),r}(o?D3:x3,e.length,o,i,l);!o&&K&&(e[I].providerFactory=ae),ev(r,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(ae),s.push(ae)}else ev(r,n,g>-1?g:I,tw(e[o?I:g],l,!o&&i));!o&&i&&K&&e[I].componentProviders++}}}function ev(n,t,e,i){const o=ml(t);if(o||function $2(n){return!!n.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=n.destroyHooks||(n.destroyHooks=[]);if(!o&&t.multi){const l=a.indexOf(e);-1===l?a.push(e,[i,s]):a[l+1].push(i,s)}else a.push(e,s)}}}function tw(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function tv(n,t,e,i){for(let o=e;o<i;o++)if(t[o]===n)return o;return-1}function x3(n,t,e,i){return nv(this.multi,[])}function D3(n,t,e,i){const o=this.multi;let r;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=Hc(e,e[1],this.providerFactory.index,i);r=a.slice(0,s),nv(o,r);for(let l=s;l<a.length;l++)r.push(a[l])}else r=[],nv(o,r);return r}function nv(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function Lt(n,t=[]){return e=>{e.providersResolver=(i,o)=>function w3(n,t,e){const i=Kt();if(i.firstCreatePass){const o=Wo(n);Jg(e,i.data,i.blueprint,o,!0),Jg(t,i.data,i.blueprint,o,!1)}}(i,o?o(n):n,t)}}class nw{}const ow="ngComponent";class I3{resolveComponentFactory(t){throw function iw(n){const t=Error(`No component factory found for ${Bt(n)}. Did you add it to @NgModule.entryComponents?`);return t[ow]=n,t}(t)}}let Xo=(()=>{class n{}return n.NULL=new I3,n})();function Lh(...n){}function Ol(n,t){return new Pe(wo(n,t))}const k3=function O3(){return Ol(ti(),Ne())};let Pe=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=k3,n})();function rw(n){return n instanceof Pe?n.nativeElement:n}class oa{}let Io=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>N3(),n})();const N3=function F3(){const n=Ne(),e=no(ti().index,n);return function L3(n){return n[11]}(hr(e)?e:n)};let ov=(()=>{class n{}return n.\u0275prov=Se({token:n,providedIn:"root",factory:()=>null}),n})();class Ar{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const sw=new Ar("13.0.0"),Rl={};function Fh(n,t,e,i,o=!1){for(;null!==e;){const r=t[e.index];if(null!==r&&i.push(Yn(r)),qo(r))for(let a=10;a<r.length;a++){const l=r[a],c=l[1].firstChild;null!==c&&Fh(l[1],l,c,i)}const s=e.type;if(8&s)Fh(n,t,e.child,i);else if(32&s){const a=ig(e,t);let l;for(;l=a();)i.push(l)}else if(16&s){const a=f0(t,e);if(Array.isArray(a))i.push(...a);else{const l=nd(t[16]);Fh(l[1],l,a,i,!0)}}e=o?e.projectionNext:e.next}return i}class bd{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Fh(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(qo(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(lg(t,i),Xs(e,i))}this._attachedToViewContainer=!1}o0(this._lView[1],this._lView)}onDestroy(t){B0(this._lView[1],this._lView,null,t)}markForCheck(){Tg(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Og(this._lView[1],this._lView,this.context)}checkNoChanges(){!function N2(n,t,e){Ku(!0);try{Og(n,t,e)}finally{Ku(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kF(n,t){id(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class B3 extends bd{constructor(t){super(t),this._view=t}detectChanges(){$0(this._view)}checkNoChanges(){!function L2(n){Ku(!0);try{$0(n)}finally{Ku(!1)}}(this._view)}get context(){return null}}class aw extends Xo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Ai(t);return new rv(e,this.ngModule)}}function lw(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}const j3=new je("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>YE});class rv extends nw{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function JF(n){return n.map(XF).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return lw(this.componentDef.inputs)}get outputs(){return lw(this.componentDef.outputs)}create(t,e,i,o){const r=(o=o||this.ngModule)?function U3(n,t){return{get:(e,i,o)=>{const r=n.get(e,Rl,o);return r!==Rl||i===Rl?r:t.get(e,i,o)}}}(t,o.injector):t,s=r.get(oa,zC),a=r.get(ov,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=i?function F0(n,t,e){if(Bn(n))return n.selectRootElement(t,e===Yi.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):ag(s.createRenderer(null,this.componentDef),c,function V3(n){const t=n.toLowerCase();return"svg"===t?UC:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h=function yS(n,t){return{components:[],scheduler:n||YE,clean:F2,playerHandler:t||null,flags:0}}(),g=Sh(0,null,null,1,0,null,null,null,null,null),I=od(null,g,h,u,null,null,s,l,a,r);let Q,K;Zu(I);try{const ae=function vS(n,t,e,i,o,r){const s=e[1];e[20]=n;const l=ul(s,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(wh(l,c,!0),null!==n&&(nh(o,n,c),null!==l.classes&&fg(o,n,l.classes),null!==l.styles&&g0(o,n,l.styles)));const d=i.createRenderer(n,t),u=od(e,N0(t),null,t.onPush?64:16,e[20],l,i,d,r||null,null);return s.firstCreatePass&&(sh(Uc(l,e),s,t.type),z0(s,l),G0(l,e.length,1)),Ah(e,u),e[20]=u}(d,this.componentDef,I,s,l);if(d)if(i)nh(l,d,["ng-version",sw.full]);else{const{attrs:le,classes:Ce}=function e2(n){const t=[],e=[];let i=1,o=2;for(;i<n.length;){let r=n[i];if("string"==typeof r)2===o?""!==r&&t.push(r,n[++i]):8===o&&e.push(r);else{if(!$o(o))break;o=r}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);le&&nh(l,d,le),Ce&&Ce.length>0&&fg(l,d,Ce.join(" "))}if(K=Am(g,20),void 0!==e){const le=K.projection=[];for(let Ce=0;Ce<this.ngContentSelectors.length;Ce++){const be=e[Ce];le.push(null!=be?Array.from(be):null)}}Q=function _S(n,t,e,i,o){const r=e[1],s=function y2(n,t,e){const i=ti();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),q0(n,i,t,hl(n,t,1,null),e));const o=Hc(t,n,i.directiveStart,i);xi(o,t);const r=wo(i,t);return r&&xi(r,t),o}(r,e,t);if(i.components.push(s),n[8]=s,o&&o.forEach(l=>l(s,t)),t.contentQueries){const l=ti();t.contentQueries(1,s,l.directiveStart)}const a=ti();return!r.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(vs(a.index),U0(e[1],a,0,a.directiveStart,a.directiveEnd,t),H0(t,s)),s}(ae,this.componentDef,I,h,[cB]),rd(g,I,null)}finally{Xu()}return new z3(this.componentType,Q,Ol(K,I),I,K)}}class z3 extends class T3{}{constructor(t,e,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new B3(o),this.componentType=t}get injector(){return new Xa(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class wr{}class cw{}const kl=new Map;class uw extends wr{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new aw(this);const i=Eo(t);this._bootstrapComponents=_r(i.bootstrap),this._r3Injector=tS(t,e,[{provide:wr,useValue:this},{provide:Xo,useValue:this.componentFactoryResolver}],Bt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=jt.THROW_IF_NOT_FOUND,i=dt.Default){return t===jt||t===wr||t===sd?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class av extends cw{constructor(t){super(),this.moduleType=t,null!==Eo(t)&&function q3(n){const t=new Set;!function e(i){const o=Eo(i,!0),r=o.id;null!==r&&(function dw(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${Bt(t)} vs ${Bt(t.name)}`)}(r,kl.get(r),i),kl.set(r,i));const s=_r(o.imports);for(const a of s)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new uw(this.moduleType,t)}}function Ki(n,t,e,i){return mw(Ne(),Li(),n,t,e,i)}function pw(n,t,e,i,o,r){return function vw(n,t,e,i,o,r,s,a){const l=t+e;return function Dh(n,t,e,i,o){const r=na(n,t,e,i);return Di(n,t+2,o)||r}(n,l,o,r,s)?br(n,l+3,a?i.call(a,o,r,s):i(o,r,s)):Cd(n,l+3)}(Ne(),Li(),n,t,e,i,o,r)}function Bh(n,t,e,i,o,r,s){return function _w(n,t,e,i,o,r,s,a,l){const c=t+e;return function To(n,t,e,i,o,r){const s=na(n,t,e,i);return na(n,t+2,o,r)||s}(n,c,o,r,s,a)?br(n,c+4,l?i.call(l,o,r,s,a):i(o,r,s,a)):Cd(n,c+4)}(Ne(),Li(),n,t,e,i,o,r,s)}function Cd(n,t){const e=n[t];return e===Rt?void 0:e}function mw(n,t,e,i,o,r){const s=t+e;return Di(n,s,o)?br(n,s+1,r?i.call(r,o):i(o)):Cd(n,s+1)}function xe(n,t){const e=Kt();let i;const o=n+20;e.firstCreatePass?(i=function Z3(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}throw new qs("302",`The pipe '${n}' could not be found!`)}(t,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=Ks(i.type)),s=fs(f);try{const a=oh(!1),l=r();return oh(a),function bB(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,Ne(),o,l),l}finally{fs(s)}}function Ie(n,t,e){const i=n+20,o=Ne(),r=Ya(o,i);return Ed(o,i)?mw(o,Li(),t,r.transform,e,r):r.transform(e)}function ra(n,t,e,i){const o=n+20,r=Ne(),s=Ya(r,o);return Ed(r,o)?function gw(n,t,e,i,o,r,s){const a=t+e;return na(n,a,o,r)?br(n,a+2,s?i.call(s,o,r):i(o,r)):Cd(n,a+2)}(r,Li(),t,s.transform,e,i,s):s.transform(e,i)}function Ed(n,t){return n[1].data[t].pure}function lv(n){return t=>{setTimeout(n,void 0,t)}}const Me=class tj extends _e{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var o,r,s;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const u=t;a=null===(o=u.next)||void 0===o?void 0:o.bind(u),l=null===(r=u.error)||void 0===r?void 0:r.bind(u),c=null===(s=u.complete)||void 0===s?void 0:s.bind(u)}this.__isAsync&&(l=lv(l),a&&(a=lv(a)),c&&(c=lv(c)));const d=super.subscribe({next:a,error:l,complete:c});return t instanceof w&&t.add(d),d}};function nj(){return this._results[gl()]()}class $r{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=gl(),i=$r.prototype;i[e]||(i[e]=nj)}get changes(){return this._changes||(this._changes=new Me)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const o=Do(t);(this._changesDetected=!function gL(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let o=n[i],r=t[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()}}Symbol;const oj=function aj(){return Vh(ti(),Ne())};let bt=(()=>{class n{}return n.__NG_ELEMENT_ID__=oj,n})();const rj=bt,sj=class extends rj{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=od(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),rd(e,i,t),new bd(i)}};function Vh(n,t){return 4&n.type?new sj(t,n,Ol(n,t)):null}const cj=function dj(){return Ew(ti(),Ne())};let pn=(()=>{class n{}return n.__NG_ELEMENT_ID__=cj,n})();const uj=pn,bw=class extends uj{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Ol(this._hostTNode,this._hostLView)}get injector(){return new Xa(this._hostTNode,this._hostLView)}get parentInjector(){const t=rh(this._hostTNode,this._hostLView);if(rE(t)){const e=Za(t,this._hostLView),i=Ka(t);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(t){const e=Cw(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const o=t.createEmbeddedView(e||{});return this.insert(o,i),o}createComponent(t,e,i,o,r){const s=t&&!function Gc(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const u=e||{};a=u.index,i=u.injector,o=u.projectableNodes,r=u.ngModuleRef}const l=s?t:new rv(Ai(t)),c=i||this.parentInjector;if(!r&&null==l.ngModule&&c){const u=c.get(wr,null);u&&(r=u)}const d=l.create(c,o,void 0,r);return this.insert(d.hostView,a),d}insert(t,e){const i=t._lView,o=i[1];if(function FN(n){return qo(n[3])}(i)){const d=this.indexOf(t);if(-1!==d)this.detach(d);else{const u=i[3],h=new bw(u,u[6],u[3]);h.detach(h.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function NF(n,t,e,i){const o=10+i,r=e.length;i>0&&(e[o-1][4]=t),i<r-10?(t[4]=e[o],lh(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const s=t[17];null!==s&&e!==s&&function LF(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(o,i,s,r);const a=ug(r,s),l=i[11],c=vh(l,s[7]);return null!==c&&function RF(n,t,e,i,o,r){i[0]=o,i[6]=t,id(n,i,e,1,o,r)}(o,s[6],l,i,c,a),t.attachToViewContainerRef(),lh(cv(s),r,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Cw(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=lg(this._lContainer,e);i&&(Xs(cv(this._lContainer),e),o0(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=lg(this._lContainer,e);return i&&null!=Xs(cv(this._lContainer),e)?new bd(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Cw(n){return n[8]}function cv(n){return n[8]||(n[8]=[])}function Ew(n,t){let e;const i=t[n.index];if(qo(i))e=i;else{let o;if(8&n.type)o=Yn(i);else{const r=t[11];o=r.createComment("");const s=wo(n,t);ta(r,vh(r,s),o,function jF(n,t){return Bn(n)?n.nextSibling(t):t.nextSibling}(r,s),!1)}t[n.index]=e=W0(i,t,o,n),Ah(t,e)}return new bw(e,n,t)}class dv{constructor(t){this.queryList=t,this.matches=null}clone(){return new dv(this.queryList)}setDirty(){this.queryList.setDirty()}}class uv{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.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 uv(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Dw(t,e).matches&&this.queries[e].setDirty()}}class Sw{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class hv{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const o=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(t,o);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new hv(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class fv{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new fv(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){const r=i[o];this.matchTNodeWithReadOption(t,e,pj(e,r)),this.matchTNodeWithReadOption(t,e,ah(e,t,r,!1,!1))}else i===bt?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,ah(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===Pe||o===pn||o===bt&&4&e.type)this.addMatch(e.index,-2);else{const r=ah(e,t,o,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function pj(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function gj(n,t,e,i){return-1===e?function mj(n,t){return 11&n.type?Ol(n,t):4&n.type?Vh(n,t):null}(t,n):-2===e?function vj(n,t,e){return e===Pe?Ol(t,n):e===bt?Vh(t,n):e===pn?Ew(t,n):void 0}(n,t,i):Hc(n,n[1],e,t)}function Aw(n,t,e,i){const o=t[19].queries[i];if(null===o.matches){const r=n.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:gj(t,r[c],s[l+1],e.metadata.read))}o.matches=a}return o.matches}function pv(n,t,e,i){const o=n.queries.getByIndex(e),r=o.matches;if(null!==r){const s=Aw(n,t,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],d=t[-l];for(let u=10;u<d.length;u++){const h=d[u];h[17]===h[3]&&pv(h[1],h,c,i)}if(null!==d[9]){const u=d[9];for(let h=0;h<u.length;h++){const g=u[h];pv(g[1],g,c,i)}}}}}return i}function Oe(n){const t=Ne(),e=Kt(),i=KC();Om(i+1);const o=Dw(e,i);if(n.dirty&&GC(t)===(2==(2&o.metadata.flags))){if(null===o.matches)n.reset([]);else{const r=o.crossesNgTemplate?pv(e,t,i,[]):Aw(e,t,o,i);n.reset(r,rw),n.notifyOnChanges()}return!0}return!1}function Mt(n,t,e){const i=Kt();i.firstCreatePass&&(xw(i,new Sw(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),ww(i,Ne(),t)}function Je(n,t,e,i){const o=Kt();if(o.firstCreatePass){const r=ti();xw(o,new Sw(t,e,i),r.index),function yj(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(o,n),2==(2&e)&&(o.staticContentQueries=!0)}ww(o,Ne(),e)}function Re(){return function _j(n,t){return n[19].queries[t].queryList}(Ne(),KC())}function ww(n,t,e){const i=new $r(4==(4&e));B0(n,t,i,i.destroy),null===t[19]&&(t[19]=new uv),t[19].queries.push(new dv(i))}function xw(n,t,e){null===n.queries&&(n.queries=new hv),n.queries.track(new fv(t,e))}function Dw(n,t){return n.queries.getByIndex(t)}function gn(n,t){return Vh(n,t)}const Ad=new je("Application Initializer");let Nl=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Lh,this.reject=Lh,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(hd(r))e.push(r);else if(Th(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 n.\u0275fac=function(e){return new(e||n)(se(Ad,8))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();const wd=new je("AppId"),Vj={provide:wd,useFactory:function Bj(){return`${bv()}${bv()}${bv()}`},deps:[]};function bv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Gw=new je("Platform Initializer"),ao=new je("Platform ID"),Cv=new je("appBootstrapListener");let Hh=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();const Yr=new je("LocaleId"),qw=new je("DefaultCurrencyCode");class Uj{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Ev=function(n){return new av(n)},Hj=Ev,zj=function(n){return Promise.resolve(Ev(n))},$w=function(n){const t=Ev(n),i=_r(Eo(n).declarations).reduce((o,r)=>{const s=Ai(r);return s&&o.push(new rv(s)),o},[]);return new Uj(t,i)},Gj=$w,qj=function(n){return Promise.resolve($w(n))};let zh=(()=>{class n{constructor(){this.compileModuleSync=Hj,this.compileModuleAsync=zj,this.compileModuleAndAllComponentsSync=Gj,this.compileModuleAndAllComponentsAsync=qj}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();const Yj=(()=>Promise.resolve(0))();function Sv(n){"undefined"==typeof Zone?Yj.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ut{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Me(!1),this.onMicrotaskEmpty=new Me(!1),this.onStable=new Me(!1),this.onError=new Me(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Qj(){let n=an.requestAnimationFrame,t=an.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Xj(n){const t=()=>{!function Zj(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(an,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,wv(n),n.isCheckStableRunning=!0,Av(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),wv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,s,a)=>{try{return Yw(n),e.invokeTask(o,r,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||n.shouldCoalesceRunChangeDetection)&&t(),Qw(n)}},onInvoke:(e,i,o,r,s,a,l)=>{try{return Yw(n),e.invoke(o,r,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),Qw(n)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,wv(n),Av(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),n.runOutsideAngular(()=>n.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ut.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ut.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,o){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,t,Kj,Lh,Lh);try{return r.runTask(s,e,i)}finally{r.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const Kj={};function Av(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function wv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Yw(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Qw(n){n._nesting--,Av(n)}class Jj{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Me,this.onMicrotaskEmpty=new Me,this.onStable=new Me,this.onError=new Me}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,o){return t.apply(e,i)}}let xv=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,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:()=>{ut.assertNotInAngularZone(),Sv(()=>{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())Sv(()=>{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}findProviders(e,i,o){return[]}}return n.\u0275fac=function(e){return new(e||n)(se(ut))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),Kw=(()=>{class n{constructor(){this._applications=new Map,Dv.addToWindow(this)}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){return Dv.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();class e4{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Dv=new e4,Zw=!0,Xw=!1;function Mv(){return Xw=!0,Zw}let Jo;const Jw=new je("AllowMultipleToken");class Tv{constructor(t,e){this.name=t,this.token=e}}function ex(n,t,e=[]){const i=`Platform: ${t}`,o=new je(i);return(r=[])=>{let s=tx();if(!s||s.injector.get(Jw,!1))if(n)n(e.concat(r).concat({provide:o,useValue:!0}));else{const a=e.concat(r).concat({provide:o,useValue:!0},{provide:ad,useValue:"platform"});!function c4(n){if(Jo&&!Jo.destroyed&&!Jo.injector.get(Jw,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Jo=n.get(nx);const t=n.get(Gw,null);t&&t.forEach(e=>e())}(jt.create({providers:a,name:i}))}return function d4(n){const t=tx();if(!t)throw new Error("No platform exists!");if(!t.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function tx(){return Jo&&!Jo.destroyed?Jo:null}let nx=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function u4(n,t){let e;return e="noop"===n?new Jj:("zone.js"===n?void 0:n)||new ut({enableLongStackTrace:Mv(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:ut,useValue:a}];return a.run(()=>{const c=jt.create({providers:l,parent:this.injector,name:e.moduleType.name}),d=e.create(c),u=d.injector.get(vr,null);if(!u)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:g=>{u.handleError(g)}});d.onDestroy(()=>{Iv(this._modules,d),h.unsubscribe()})}),function h4(n,t,e){try{const i=e();return hd(i)?i.catch(o=>{throw t.runOutsideAngular(()=>n.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(u,a,()=>{const h=d.injector.get(Nl);return h.runInitializers(),h.donePromise.then(()=>(function PV(n){eo(n,"Expected localeId to be defined"),"string"==typeof n&&(OA=n.toLowerCase().replace(/_/g,"-"))}(d.injector.get(Yr,Oh)||Oh),this._moduleDoBootstrap(d),d))})})}bootstrapModule(e,i=[]){const o=ix({},i);return function o4(n,t,e){const i=new av(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(As);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${Bt(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(se(jt))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();function ix(n,t){return Array.isArray(t)?t.reduce(ix,n):Object.assign(Object.assign({},n),t)}let As=(()=>{class n{constructor(e,i,o,r,s){this._zone=e,this._injector=i,this._exceptionHandler=o,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new k(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new k(c=>{let d;this._zone.runOutsideAngular(()=>{d=this._zone.onStable.subscribe(()=>{ut.assertNotInAngularZone(),Sv(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ut.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{d.unsubscribe(),u.unsubscribe()}});this.isStable=$i(a,l.pipe(xC()))}bootstrap(e,i){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let o;o=e instanceof nw?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(o.componentType);const r=function l4(n){return n.isBoundToModule}(o)?void 0:this._injector.get(wr),a=o.create(jt.NULL,[],i||o.selector,r),l=a.location.nativeElement,c=a.injector.get(xv,null),d=c&&a.injector.get(Kw);return c&&d&&d.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Iv(this.components,a),d&&d.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");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;Iv(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Cv,[]).concat(this._bootstrapListeners).forEach(o=>o(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(se(ut),se(jt),se(vr),se(Xo),se(Nl))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();function Iv(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const m4=function g4(n){return function v4(n,t,e){if(Wu(n)&&!e){const i=no(n.index,t);return new bd(i,i)}return 47&n.type?new bd(t[16],t):null}(ti(),Ne(),16==(16&n))};let Jt=(()=>{class n{}return n.__NG_ELEMENT_ID__=m4,n})();class dx{constructor(){}supports(t){return dd(t)}create(t){return new M4(t)}}const D4=(n,t)=>t;class M4{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||D4}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const s=!i||e&&e.currentIndex<hx(i,o,r)?e:i,a=hx(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,d=l-o;if(c!=d){for(let h=0;h<c;h++){const g=h<r.length?r[h]:r[h]=0,I=g+h;d<=I&&I<c&&(r[h]=g+1)}r[s.previousIndex]=d-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!dd(t))throw new Error(`Error trying to diff '${Bt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,r,s,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)r=t[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 _B(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[gl()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,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=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,o){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,o)):t=this._addAfter(new T4(e,i),r,o),t}_verifyReinsertion(t,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,r=t._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const o=null===e?this._itHead:e._next;return t._next=o,t._prev=e,null===o?this._itTail=t:o._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ux),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ux),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class T4{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class I4{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class ux{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new I4,this.map.set(e,i)),i.add(t)}get(t,e){const o=this.map.get(t);return o?o.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function hx(n,t,e){const i=n.previousIndex;if(null===i)return i;let o=0;return e&&i<e.length&&(o=e[i]),i+t+o}class fx{constructor(){}supports(t){return t instanceof Map||Ug(t)}create(){return new O4}}class O4{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(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Ug(t)))throw new Error(`Error trying to diff '${Bt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const o=this._records.get(t);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 R4(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class R4{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function px(){return new Ll([new dx])}let Ll=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||px()),deps:[[n,new Hr,new ci]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function k4(n){return n.name||typeof n}(e)}'`)}}return n.\u0275prov=Se({token:n,providedIn:"root",factory:px}),n})();function mx(){return new ws([new fx])}let ws=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||mx()),deps:[[n,new Hr,new ci]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return n.\u0275prov=Se({token:n,providedIn:"root",factory:mx}),n})();const P4=[new fx],L4=new Ll([new dx]),F4=new ws(P4),B4=ex(null,"core",[{provide:ao,useValue:"unknown"},{provide:nx,deps:[jt]},{provide:Kw,deps:[]},{provide:Hh,deps:[]}]),z4=[{provide:As,useClass:As,deps:[ut,jt,vr,Xo,Nl]},{provide:j3,deps:[ut],useFactory:function G4(n){let t=[];return n.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Nl,useClass:Nl,deps:[[new ci,Ad]]},{provide:zh,useClass:zh,deps:[]},Vj,{provide:Ll,useFactory:function V4(){return L4},deps:[]},{provide:ws,useFactory:function j4(){return F4},deps:[]},{provide:Yr,useFactory:function U4(n){return n||function H4(){return"undefined"!=typeof $localize&&$localize.locale||Oh}()},deps:[[new rl(Yr),new ci,new Hr]]},{provide:qw,useValue:"USD"}];let q4=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(se(As))},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:z4}),n})(),rf=null;function xr(){return rf}const ct=new je("DocumentToken");let da=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:function(){return function BH(){return se(Jx)}()},providedIn:"platform"}),n})();const VH=new je("Location Initialized");let Jx=(()=>{class n extends da{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return xr().getBaseHref(this._doc)}onPopState(e){const i=xr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=xr().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){eD()?this._history.pushState(e,i,o):this.location.hash=o}replaceState(e,i,o){eD()?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 n.\u0275fac=function(e){return new(e||n)(se(ct))},n.\u0275prov=Se({token:n,factory:function(){return function jH(){return new Jx(se(ct))}()},providedIn:"platform"}),n})();function eD(){return!!window.history.pushState}function o_(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function tD(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Kr(n){return n&&"?"!==n[0]?"?"+n:n}let Hl=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:function(){return function UH(n){const t=se(ct).location;return new nD(se(da),t&&t.origin||"")}()},providedIn:"root"}),n})();const sf=new je("appBaseHref");let nD=(()=>{class n extends Hl{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");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}prepareExternalUrl(e){return o_(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Kr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const s=this.prepareExternalUrl(o+Kr(r));this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){const s=this.prepareExternalUrl(o+Kr(r));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(se(da),se(sf,8))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),HH=(()=>{class n extends Hl{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=o_(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let s=this.prepareExternalUrl(o+Kr(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){let s=this.prepareExternalUrl(o+Kr(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(se(da),se(sf,8))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),Fd=(()=>{class n{constructor(e,i){this._subject=new Me,this._urlChangeListeners=[],this._platformStrategy=e;const o=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=tD(iD(o)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Kr(i))}normalize(e){return n.stripTrailingSlash(function GH(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,iD(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._platformStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Kr(i)),o)}replaceState(e,i="",o=null){this._platformStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Kr(i)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformStrategy).historyGo)||void 0===o||o.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_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 n.normalizeQueryParams=Kr,n.joinWithSlash=o_,n.stripTrailingSlash=tD,n.\u0275fac=function(e){return new(e||n)(se(Hl),se(da))},n.\u0275prov=Se({token:n,factory:function(){return function zH(){return new Fd(se(Hl),se(da))}()},providedIn:"root"}),n})();function iD(n){return n.replace(/\/index.html$/,"")}var Zi=(()=>((Zi=Zi||{})[Zi.Decimal=0]="Decimal",Zi[Zi.Percent=1]="Percent",Zi[Zi.Currency=2]="Currency",Zi[Zi.Scientific=3]="Scientific",Zi))(),Qn=(()=>((Qn=Qn||{})[Qn.Zero=0]="Zero",Qn[Qn.One=1]="One",Qn[Qn.Two=2]="Two",Qn[Qn.Few=3]="Few",Qn[Qn.Many=4]="Many",Qn[Qn.Other=5]="Other",Qn))(),Wn=(()=>((Wn=Wn||{})[Wn.Format=0]="Format",Wn[Wn.Standalone=1]="Standalone",Wn))(),qt=(()=>((qt=qt||{})[qt.Narrow=0]="Narrow",qt[qt.Abbreviated=1]="Abbreviated",qt[qt.Wide=2]="Wide",qt[qt.Short=3]="Short",qt))(),Rn=(()=>((Rn=Rn||{})[Rn.Short=0]="Short",Rn[Rn.Medium=1]="Medium",Rn[Rn.Long=2]="Long",Rn[Rn.Full=3]="Full",Rn))(),mt=(()=>((mt=mt||{})[mt.Decimal=0]="Decimal",mt[mt.Group=1]="Group",mt[mt.List=2]="List",mt[mt.PercentSign=3]="PercentSign",mt[mt.PlusSign=4]="PlusSign",mt[mt.MinusSign=5]="MinusSign",mt[mt.Exponential=6]="Exponential",mt[mt.SuperscriptingExponent=7]="SuperscriptingExponent",mt[mt.PerMille=8]="PerMille",mt[mt.Infinity=9]="Infinity",mt[mt.NaN=10]="NaN",mt[mt.TimeSeparator=11]="TimeSeparator",mt[mt.CurrencyDecimal=12]="CurrencyDecimal",mt[mt.CurrencyGroup=13]="CurrencyGroup",mt))();function af(n,t){return Po(Vi(n)[Ze.DateFormat],t)}function lf(n,t){return Po(Vi(n)[Ze.TimeFormat],t)}function cf(n,t){return Po(Vi(n)[Ze.DateTimeFormat],t)}function ko(n,t){const e=Vi(n),i=e[Ze.NumberSymbols][t];if(void 0===i){if(t===mt.CurrencyDecimal)return e[Ze.NumberSymbols][mt.Decimal];if(t===mt.CurrencyGroup)return e[Ze.NumberSymbols][mt.Group]}return i}const ZH=function TA(n){return Vi(n)[Ze.PluralCase]};function rD(n){if(!n[Ze.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[Ze.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Po(n,t){for(let e=t;e>-1;e--)if(void 0!==n[e])return n[e];throw new Error("Locale data API: locale data undefined")}function s_(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const i5=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Bd={},o5=/((?:[^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 oi=(()=>((oi=oi||{})[oi.Short=0]="Short",oi[oi.ShortGMT=1]="ShortGMT",oi[oi.Long=2]="Long",oi[oi.Extended=3]="Extended",oi))(),Ct=(()=>((Ct=Ct||{})[Ct.FullYear=0]="FullYear",Ct[Ct.Month=1]="Month",Ct[Ct.Date=2]="Date",Ct[Ct.Hours=3]="Hours",Ct[Ct.Minutes=4]="Minutes",Ct[Ct.Seconds=5]="Seconds",Ct[Ct.FractionalSeconds=6]="FractionalSeconds",Ct[Ct.Day=7]="Day",Ct))(),Ft=(()=>((Ft=Ft||{})[Ft.DayPeriods=0]="DayPeriods",Ft[Ft.Days=1]="Days",Ft[Ft.Months=2]="Months",Ft[Ft.Eras=3]="Eras",Ft))();function r5(n,t,e,i){let o=function p5(n){if(lD(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[o,r=1,s=1]=n.split("-").map(a=>+a);return df(o,r-1,s)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(i5))return function m5(n){const t=new Date(0);let e=0,i=0;const o=n[8]?t.setUTCFullYear:t.setFullYear,r=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),o.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const s=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return r.call(t,s,a,l,c),t}(i)}const t=new Date(n);if(!lD(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=Zr(e,t)||t;let a,s=[];for(;t;){if(a=o5.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const d=s.pop();if(!d)break;t=d}}let l=o.getTimezoneOffset();i&&(l=aD(i,l),o=function f5(n,t,e){const i=e?-1:1,o=n.getTimezoneOffset();return function h5(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(aD(t,o)-o))}(o,i,!0));let c="";return s.forEach(d=>{const u=function u5(n){if(l_[n])return l_[n];let t;switch(n){case"G":case"GG":case"GGG":t=yn(Ft.Eras,qt.Abbreviated);break;case"GGGG":t=yn(Ft.Eras,qt.Wide);break;case"GGGGG":t=yn(Ft.Eras,qt.Narrow);break;case"y":t=Kn(Ct.FullYear,1,0,!1,!0);break;case"yy":t=Kn(Ct.FullYear,2,0,!0,!0);break;case"yyy":t=Kn(Ct.FullYear,3,0,!1,!0);break;case"yyyy":t=Kn(Ct.FullYear,4,0,!1,!0);break;case"Y":t=pf(1);break;case"YY":t=pf(2,!0);break;case"YYY":t=pf(3);break;case"YYYY":t=pf(4);break;case"M":case"L":t=Kn(Ct.Month,1,1);break;case"MM":case"LL":t=Kn(Ct.Month,2,1);break;case"MMM":t=yn(Ft.Months,qt.Abbreviated);break;case"MMMM":t=yn(Ft.Months,qt.Wide);break;case"MMMMM":t=yn(Ft.Months,qt.Narrow);break;case"LLL":t=yn(Ft.Months,qt.Abbreviated,Wn.Standalone);break;case"LLLL":t=yn(Ft.Months,qt.Wide,Wn.Standalone);break;case"LLLLL":t=yn(Ft.Months,qt.Narrow,Wn.Standalone);break;case"w":t=a_(1);break;case"ww":t=a_(2);break;case"W":t=a_(1,!0);break;case"d":t=Kn(Ct.Date,1);break;case"dd":t=Kn(Ct.Date,2);break;case"c":case"cc":t=Kn(Ct.Day,1);break;case"ccc":t=yn(Ft.Days,qt.Abbreviated,Wn.Standalone);break;case"cccc":t=yn(Ft.Days,qt.Wide,Wn.Standalone);break;case"ccccc":t=yn(Ft.Days,qt.Narrow,Wn.Standalone);break;case"cccccc":t=yn(Ft.Days,qt.Short,Wn.Standalone);break;case"E":case"EE":case"EEE":t=yn(Ft.Days,qt.Abbreviated);break;case"EEEE":t=yn(Ft.Days,qt.Wide);break;case"EEEEE":t=yn(Ft.Days,qt.Narrow);break;case"EEEEEE":t=yn(Ft.Days,qt.Short);break;case"a":case"aa":case"aaa":t=yn(Ft.DayPeriods,qt.Abbreviated);break;case"aaaa":t=yn(Ft.DayPeriods,qt.Wide);break;case"aaaaa":t=yn(Ft.DayPeriods,qt.Narrow);break;case"b":case"bb":case"bbb":t=yn(Ft.DayPeriods,qt.Abbreviated,Wn.Standalone,!0);break;case"bbbb":t=yn(Ft.DayPeriods,qt.Wide,Wn.Standalone,!0);break;case"bbbbb":t=yn(Ft.DayPeriods,qt.Narrow,Wn.Standalone,!0);break;case"B":case"BB":case"BBB":t=yn(Ft.DayPeriods,qt.Abbreviated,Wn.Format,!0);break;case"BBBB":t=yn(Ft.DayPeriods,qt.Wide,Wn.Format,!0);break;case"BBBBB":t=yn(Ft.DayPeriods,qt.Narrow,Wn.Format,!0);break;case"h":t=Kn(Ct.Hours,1,-12);break;case"hh":t=Kn(Ct.Hours,2,-12);break;case"H":t=Kn(Ct.Hours,1);break;case"HH":t=Kn(Ct.Hours,2);break;case"m":t=Kn(Ct.Minutes,1);break;case"mm":t=Kn(Ct.Minutes,2);break;case"s":t=Kn(Ct.Seconds,1);break;case"ss":t=Kn(Ct.Seconds,2);break;case"S":t=Kn(Ct.FractionalSeconds,1);break;case"SS":t=Kn(Ct.FractionalSeconds,2);break;case"SSS":t=Kn(Ct.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=hf(oi.Short);break;case"ZZZZZ":t=hf(oi.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=hf(oi.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=hf(oi.Long);break;default:return null}return l_[n]=t,t}(d);c+=u?u(o,e,l):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function df(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function Zr(n,t){const e=function qH(n){return Vi(n)[Ze.LocaleId]}(n);if(Bd[e]=Bd[e]||{},Bd[e][t])return Bd[e][t];let i="";switch(t){case"shortDate":i=af(n,Rn.Short);break;case"mediumDate":i=af(n,Rn.Medium);break;case"longDate":i=af(n,Rn.Long);break;case"fullDate":i=af(n,Rn.Full);break;case"shortTime":i=lf(n,Rn.Short);break;case"mediumTime":i=lf(n,Rn.Medium);break;case"longTime":i=lf(n,Rn.Long);break;case"fullTime":i=lf(n,Rn.Full);break;case"short":const o=Zr(n,"shortTime"),r=Zr(n,"shortDate");i=uf(cf(n,Rn.Short),[o,r]);break;case"medium":const s=Zr(n,"mediumTime"),a=Zr(n,"mediumDate");i=uf(cf(n,Rn.Medium),[s,a]);break;case"long":const l=Zr(n,"longTime"),c=Zr(n,"longDate");i=uf(cf(n,Rn.Long),[l,c]);break;case"full":const d=Zr(n,"fullTime"),u=Zr(n,"fullDate");i=uf(cf(n,Rn.Full),[d,u])}return i&&(Bd[e][t]=i),i}function uf(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function or(n,t,e="-",i,o){let r="";(n<0||o&&n<=0)&&(o?n=1-n:(n=-n,r=e));let s=String(n);for(;s.length<t;)s="0"+s;return i&&(s=s.substr(s.length-t)),r+s}function Kn(n,t,e=0,i=!1,o=!1){return function(r,s){let a=function a5(n,t){switch(n){case Ct.FullYear:return t.getFullYear();case Ct.Month:return t.getMonth();case Ct.Date:return t.getDate();case Ct.Hours:return t.getHours();case Ct.Minutes:return t.getMinutes();case Ct.Seconds:return t.getSeconds();case Ct.FractionalSeconds:return t.getMilliseconds();case Ct.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${n}".`)}}(n,r);if((e>0||a>-e)&&(a+=e),n===Ct.Hours)0===a&&-12===e&&(a=12);else if(n===Ct.FractionalSeconds)return function s5(n,t){return or(n,3).substr(0,t)}(a,t);const l=ko(s,mt.MinusSign);return or(a,t,l,i,o)}}function yn(n,t,e=Wn.Format,i=!1){return function(o,r){return function l5(n,t,e,i,o,r){switch(e){case Ft.Months:return function YH(n,t,e){const i=Vi(n),r=Po([i[Ze.MonthsFormat],i[Ze.MonthsStandalone]],t);return Po(r,e)}(t,o,i)[n.getMonth()];case Ft.Days:return function $H(n,t,e){const i=Vi(n),r=Po([i[Ze.DaysFormat],i[Ze.DaysStandalone]],t);return Po(r,e)}(t,o,i)[n.getDay()];case Ft.DayPeriods:const s=n.getHours(),a=n.getMinutes();if(r){const c=function XH(n){const t=Vi(n);return rD(t),(t[Ze.ExtraData][2]||[]).map(i=>"string"==typeof i?s_(i):[s_(i[0]),s_(i[1])])}(t),d=function JH(n,t,e){const i=Vi(n);rD(i);const r=Po([i[Ze.ExtraData][0],i[Ze.ExtraData][1]],t)||[];return Po(r,e)||[]}(t,o,i),u=c.findIndex(h=>{if(Array.isArray(h)){const[g,I]=h,Q=s>=g.hours&&a>=g.minutes,K=s<I.hours||s===I.hours&&a<I.minutes;if(g.hours<I.hours){if(Q&&K)return!0}else if(Q||K)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(-1!==u)return d[u]}return function WH(n,t,e){const i=Vi(n),r=Po([i[Ze.DayPeriodsFormat],i[Ze.DayPeriodsStandalone]],t);return Po(r,e)}(t,o,i)[s<12?0:1];case Ft.Eras:return function QH(n,t){return Po(Vi(n)[Ze.Eras],t)}(t,i)[n.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(o,r,n,t,e,i)}}function hf(n){return function(t,e,i){const o=-1*i,r=ko(e,mt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(n){case oi.Short:return(o>=0?"+":"")+or(s,2,r)+or(Math.abs(o%60),2,r);case oi.ShortGMT:return"GMT"+(o>=0?"+":"")+or(s,1,r);case oi.Long:return"GMT"+(o>=0?"+":"")+or(s,2,r)+":"+or(Math.abs(o%60),2,r);case oi.Extended:return 0===i?"Z":(o>=0?"+":"")+or(s,2,r)+":"+or(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${n}"`)}}}function sD(n){return df(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function a_(n,t=!1){return function(e,i){let o;if(t){const r=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();o=1+Math.floor((s+r)/7)}else{const r=sD(e),s=function d5(n){const t=df(n,0,1).getDay();return df(n,0,1+(t<=4?4:11)-t)}(r.getFullYear()),a=r.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return or(o,n,ko(i,mt.MinusSign))}}function pf(n,t=!1){return function(e,i){return or(sD(e).getFullYear(),n,ko(i,mt.MinusSign),t)}}const l_={};function aD(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function lD(n){return n instanceof Date&&!isNaN(n.valueOf())}const g5=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function h_(n){const t=parseInt(n);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+n);return t}class gf{}let x5=(()=>{class n extends gf{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(ZH(i||this.locale)(e)){case Qn.Zero:return"zero";case Qn.One:return"one";case Qn.Two:return"two";case Qn.Few:return"few";case Qn.Many:return"many";default:return"other"}}}return n.\u0275fac=function(e){return new(e||n)(se(Yr))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();function hD(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===t)return decodeURIComponent(r)}return null}let Xi=(()=>{class n{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&&(dd(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 ${Bt(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 n.\u0275fac=function(e){return new(e||n)(f(Ll),f(ws),f(Pe),f(Io))},n.\u0275dir=ge({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class M5{constructor(t,e,i,o){this.$implicit=t,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 No=(()=>{class n{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;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function T5(n){return n.name||typeof n}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=[];e.forEachOperation((o,r,s)=>{if(null==o.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new M5(null,this._ngForOf,-1,-1),null===s?void 0:s),l=new fD(o,a);i.push(l)}else if(null==s)this._viewContainer.remove(null===r?void 0:r);else if(null!==r){const a=this._viewContainer.get(r);this._viewContainer.move(a,s);const l=new fD(o,a);i.push(l)}});for(let o=0;o<i.length;o++)this._perViewChange(i[o].view,i[o].record);for(let o=0,r=this._viewContainer.length;o<r;o++){const s=this._viewContainer.get(o);s.context.index=o,s.context.count=r,s.context.ngForOf=this._ngForOf}e.forEachIdentityChange(o=>{this._viewContainer.get(o.currentIndex).context.$implicit=o.item})}_perViewChange(e,i){e.context.$implicit=i.item}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(f(pn),f(bt),f(Ll))},n.\u0275dir=ge({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();class fD{constructor(t,e){this.record=t,this.view=e}}let cn=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new I5,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){pD("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){pD("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 n.\u0275fac=function(e){return new(e||n)(f(pn),f(bt))},n.\u0275dir=ge({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class I5{constructor(){this.$implicit=null,this.ngIf=null}}function pD(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Bt(t)}'.`)}class f_{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let ua=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),jd=(()=>{class n{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new f_(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(f(pn),f(bt),f(ua,9))},n.\u0275dir=ge({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),mD=(()=>{class n{constructor(e,i,o){o._addDefault(new f_(e,i))}}return n.\u0275fac=function(e){return new(e||n)(f(pn),f(bt),f(ua,9))},n.\u0275dir=ge({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),Ud=(()=>{class n{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(".");null!=(i=null!=i&&r?`${i}${r}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,o,i):this._renderer.removeStyle(this._ngEl.nativeElement,o)}_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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(ws),f(Io))},n.\u0275dir=ge({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),Ms=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Cn]}),n})();function rr(n,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Bt(n)}'`)}class R5{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class k5{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const P5=new k5,N5=new R5;let vD=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}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(hd(e))return P5;if(HS(e))return N5;throw rr(n,e)}_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 n.\u0275fac=function(e){return new(e||n)(f(Jt,16))},n.\u0275pipe=Gn({name:"async",type:n,pure:!1}),n})(),_D=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw rr(n,e);return e.toUpperCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Gn({name:"uppercase",type:n,pure:!0}),n})();const V5=new je("DATE_PIPE_DEFAULT_TIMEZONE");let vf=(()=>{class n{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 r5(e,i,r||this.locale,null!==(s=null!=o?o:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(a){throw rr(n,a.message)}}}return n.\u0275fac=function(e){return new(e||n)(f(Yr,16),f(V5,24))},n.\u0275pipe=Gn({name:"date",type:n,pure:!0}),n})(),yD=(()=>{class n{transform(e){return JSON.stringify(e,null,2)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Gn({name:"json",type:n,pure:!1}),n})(),p_=(()=>{class n{constructor(e){this._locale=e}transform(e,i,o){if(!function m_(n){return!(null==n||""===n||n!=n)}(e))return null;o=o||this._locale;try{return function E5(n,t,e){return function d_(n,t,e,i,o,r,s=!1){let a="",l=!1;if(isFinite(n)){let c=function A5(n){let i,o,r,s,a,t=Math.abs(n)+"",e=0;for((o=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(o<0&&(o=r),o+=+t.slice(r+1),t=t.substring(0,r)):o<0&&(o=t.length),r=0;"0"===t.charAt(r);r++);if(r===(a=t.length))i=[0],o=1;else{for(a--;"0"===t.charAt(a);)a--;for(o-=r,i=[],s=0;r<=a;r++,s++)i[s]=Number(t.charAt(r))}return o>22&&(i=i.splice(0,21),e=o-1,o=1),{digits:i,exponent:e,integerLen:o}}(n);s&&(c=function S5(n){if(0===n.digits[0])return n;const t=n.digits.length-n.integerLen;return n.exponent?n.exponent+=2:(0===t?n.digits.push(0,0):1===t&&n.digits.push(0),n.integerLen+=2),n}(c));let d=t.minInt,u=t.minFrac,h=t.maxFrac;if(r){const le=r.match(g5);if(null===le)throw new Error(`${r} is not a valid digit info`);const Ce=le[1],be=le[3],Ge=le[5];null!=Ce&&(d=h_(Ce)),null!=be&&(u=h_(be)),null!=Ge?h=h_(Ge):null!=be&&u>h&&(h=u)}!function w5(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let i=n.digits,o=i.length-n.integerLen;const r=Math.min(Math.max(t,o),e);let s=r+n.integerLen,a=i[s];if(s>0){i.splice(Math.max(n.integerLen,s));for(let u=s;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),n.integerLen=1,i.length=Math.max(1,s=r+1),i[0]=0;for(let u=1;u<s;u++)i[u]=0}if(a>=5)if(s-1<0){for(let u=0;u>s;u--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[s-1]++;for(;o<Math.max(0,r);o++)i.push(0);let l=0!==r;const c=t+n.integerLen,d=i.reduceRight(function(u,h,g,I){return I[g]=(h+=u)<10?h:h-10,l&&(0===I[g]&&g>=c?I.pop():l=!1),h>=10?1:0},0);d&&(i.unshift(d),n.integerLen++)}(c,u,h);let g=c.digits,I=c.integerLen;const Q=c.exponent;let K=[];for(l=g.every(le=>!le);I<d;I++)g.unshift(0);for(;I<0;I++)g.unshift(0);I>0?K=g.splice(I,g.length):(K=g,g=[0]);const ae=[];for(g.length>=t.lgSize&&ae.unshift(g.splice(-t.lgSize,g.length).join(""));g.length>t.gSize;)ae.unshift(g.splice(-t.gSize,g.length).join(""));g.length&&ae.unshift(g.join("")),a=ae.join(ko(e,i)),K.length&&(a+=ko(e,o)+K.join("")),Q&&(a+=ko(e,mt.Exponential)+"+"+Q)}else a=ko(e,mt.Infinity);return a=n<0&&!l?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}(n,function u_(n,t="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.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.substr(0,a.indexOf("#"));for(let d=0;d<l.length;d++){const u=l.charAt(d);"0"===u?e.minFrac=e.maxFrac=d+1:"#"===u?e.maxFrac=d+1:e.posSuf+=u}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 d=o.length-e.posPre.length-e.posSuf.length,u=r.indexOf("#");e.negPre=r.substr(0,u).replace(/'/g,""),e.negSuf=r.substr(u+d).replace(/'/g,"")}else e.negPre=t+e.posPre,e.negSuf=e.posSuf;return e}(function r_(n,t){return Vi(n)[Ze.NumberFormats][t]}(t,Zi.Decimal),ko(t,mt.MinusSign)),t,mt.Group,mt.Decimal,e)}(function g_(n){if("string"==typeof n&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if("number"!=typeof n)throw new Error(`${n} is not a number`);return n}(e),o,i)}catch(r){throw rr(n,r.message)}}}return n.\u0275fac=function(e){return new(e||n)(f(Yr,16))},n.\u0275pipe=Gn({name:"number",type:n,pure:!0}),n})();let Hi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[{provide:gf,useClass:x5}]}),n})();const CD="browser";function ha(n){return n===CD}function zl(n){return"server"===n}let Z5=(()=>{class n{}return n.\u0275prov=Se({token:n,providedIn:"root",factory:()=>new X5(se(ct),window)}),n})();class X5{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function J5(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const s=r.getElementById(t)||r.querySelector(`[name="${t}"]`);if(s)return s}o=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.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])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=ED(this.window.history)||ED(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function ED(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class SD{}class v_ extends class ez extends class FH{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function LH(n){rf||(rf=n)}(new v_)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function tz(){return Hd=Hd||document.querySelector("base"),Hd?Hd.getAttribute("href"):null}();return null==e?null:function nz(n){_f=_f||document.createElement("a"),_f.setAttribute("href",n);const t=_f.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Hd=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return hD(document.cookie,t)}}let _f,Hd=null;const AD=new je("TRANSITION_ID"),oz=[{provide:Ad,useFactory:function iz(n,t,e){return()=>{e.get(Nl).donePromise.then(()=>{const i=xr(),o=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let r=0;r<o.length;r++)i.remove(o[r])})}},deps:[AD,ct,jt],multi:!0}];class __{static init(){!function t4(n){Dv=n}(new __)}addToWindow(t){an.getAngularTestability=(i,o=!0)=>{const r=t.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},an.getAllAngularTestabilities=()=>t.getAllTestabilities(),an.getAllAngularRootElements=()=>t.getAllRootElements(),an.frameworkStabilizers||(an.frameworkStabilizers=[]),an.frameworkStabilizers.push(i=>{const o=an.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(t,e,i){if(null==e)return null;const o=t.getTestability(e);return null!=o?o:i?xr().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let rz=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();const zd=new je("EventManagerPlugins");let bf=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(se(zd),se(ut))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();class y_{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const o=xr().getGlobalEventTarget(this._doc,t);if(!o)throw new Error(`Unsupported event target ${o} for event ${e}`);return this.addEventListener(o,e,i)}}let xD=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),Gd=(()=>{class n extends xD{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(DD),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(e,o,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(DD))}}return n.\u0275fac=function(e){return new(e||n)(se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();function DD(n){xr().remove(n)}const b_={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/"},C_=/%COMP%/g;function Cf(n,t,e){for(let i=0;i<t.length;i++){let o=t[i];Array.isArray(o)?Cf(n,o,e):(o=o.replace(C_,n),e.push(o))}return e}function ID(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Ef=(()=>{class n{constructor(e,i,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new E_(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Yi.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new bz(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o}case 1:case Yi.ShadowDom:return new Cz(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const o=Cf(i.id,i.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(se(bf),se(Gd),se(wd))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();class E_{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(b_[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,o){if(o){e=o+":"+e;const r=b_[o];r?t.setAttributeNS(r,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const o=b_[i];o?t.removeAttributeNS(o,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,o){o&(ro.DashCase|ro.Important)?t.style.setProperty(e,i,o&ro.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ro.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,ID(i)):this.eventManager.addEventListener(t,e,ID(i))}}class bz extends E_{constructor(t,e,i,o){super(t),this.component=i;const r=Cf(o+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function vz(n){return"_ngcontent-%COMP%".replace(C_,n)}(o+"-"+i.id),this.hostAttr=function _z(n){return"_nghost-%COMP%".replace(C_,n)}(o+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class Cz extends E_{constructor(t,e,i,o){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Cf(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(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Ez=(()=>{class n extends y_{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 n.\u0275fac=function(e){return new(e||n)(se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();const kD=["alt","control","meta","shift"],Tz={"\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"},PD={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Iz={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Oz=(()=>{class n extends y_{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,o){const r=n.parseEventName(i),s=n.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xr().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=n._normalizeKey(i.pop());let s="";if(kD.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=r,0!=i.length||0===r.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(e){let i="",o=function Rz(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&PD.hasOwnProperty(t)&&(t=PD[t]))}return Tz[t]||t}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),kD.forEach(r=>{r!=o&&Iz[r](e)&&(i+=r+".")}),i+=o,i}static eventCallback(e,i,o){return r=>{n.getEventFullKey(r)===e&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),fa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:function(e){let i=null;return i=e?new(e||n):se(A_),i},providedIn:"root"}),n})(),A_=(()=>{class n extends fa{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 mr(i,"HTML")?oo(i):NE(this._doc,String(i)).toString();case Xt.STYLE:return mr(i,"Style")?oo(i):i;case Xt.SCRIPT:if(mr(i,"Script"))return oo(i);throw new Error("unsafe value used in a script context");case Xt.URL:return DE(i),mr(i,"URL")?oo(i):Zc(String(i));case Xt.RESOURCE_URL:if(mr(i,"ResourceURL"))return oo(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 GL(n){return new VL(n)}(e)}bypassSecurityTrustStyle(e){return function qL(n){return new jL(n)}(e)}bypassSecurityTrustScript(e){return function WL(n){return new UL(n)}(e)}bypassSecurityTrustUrl(e){return function $L(n){return new HL(n)}(e)}bypassSecurityTrustResourceUrl(e){return function YL(n){return new zL(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(se(ct))},n.\u0275prov=Se({token:n,factory:function(e){let i=null;return i=e?new e:function kz(n){return new A_(n.get(ct))}(se(jt)),i},providedIn:"root"}),n})();const Vz=ex(B4,"browser",[{provide:ao,useValue:CD},{provide:Gw,useValue:function Pz(){v_.makeCurrent(),__.init()},multi:!0},{provide:ct,useFactory:function Lz(){return function kN(n){Em=n}(document),document},deps:[]}]),jz=[[],{provide:ad,useValue:"root"},{provide:vr,useFactory:function Nz(){return new vr},deps:[]},{provide:zd,useClass:Ez,multi:!0,deps:[ct,ut,ao]},{provide:zd,useClass:Oz,multi:!0,deps:[ct]},[],{provide:Ef,useClass:Ef,deps:[bf,Gd,wd]},{provide:oa,useExisting:Ef},{provide:xD,useExisting:Gd},{provide:Gd,useClass:Gd,deps:[ct]},{provide:xv,useClass:xv,deps:[ut]},{provide:bf,useClass:bf,deps:[zd,ut]},{provide:SD,useClass:rz,deps:[]},[]];let ND=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:wd,useValue:e.appId},{provide:AD,useExisting:wd},oz]}}}return n.\u0275fac=function(e){return new(e||n)(se(n,12))},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:jz,imports:[Hi,q4]}),n})();"undefined"!=typeof window&&window;class FD{}const Xr="*";function lo(n,t){return{type:7,name:n,definitions:t,options:{}}}function fi(n,t=null){return{type:4,styles:t,timings:n}}function BD(n,t=null){return{type:2,steps:n,options:t}}function Wt(n){return{type:6,styles:n,offset:null}}function pi(n,t,e){return{type:0,name:n,styles:t,options:e}}function Qz(n){return{type:5,steps:n}}function ri(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function Kz(n=null){return{type:9,options:n}}function Zz(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function VD(n){Promise.resolve(null).then(n)}class Gl{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){VD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class jD{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,o=0;const r=this.players.length;0==r?VD(()=>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(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function UD(){return"undefined"!=typeof window&&void 0!==window.document}function D_(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Is(n){switch(n.length){case 0:return new Gl;case 1:return n[0];default:return new jD(n)}}function HD(n,t,e,i,o={},r={}){const s=[],a=[];let l=-1,c=null;if(i.forEach(d=>{const u=d.offset,h=u==l,g=h&&c||{};Object.keys(d).forEach(I=>{let Q=I,K=d[I];if("offset"!==I)switch(Q=t.normalizePropertyName(Q,s),K){case"!":K=o[I];break;case Xr:K=r[I];break;default:K=t.normalizeStyleValue(I,Q,K,s)}g[Q]=K}),h||a.push(g),c=g,l=u}),s.length){const d="\n - ";throw new Error(`Unable to animate due to the following errors:${d}${s.join(d)}`)}return a}function M_(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&T_(e,"start",n)));break;case"done":n.onDone(()=>i(e&&T_(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&T_(e,"destroy",n)))}}function T_(n,t,e){const i=e.totalTime,r=I_(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),s=n._data;return null!=s&&(r._data=s),r}function I_(n,t,e,i,o="",r=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function co(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function zD(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let O_=(n,t)=>!1,R_=(n,t)=>!1,GD=(n,t,e)=>[];const qD=D_();(qD||"undefined"!=typeof Element)&&(O_=UD()?(n,t)=>{for(;t&&t!==document.documentElement;){if(t===n)return!0;t=t.parentNode||t.host}return!1}:(n,t)=>n.contains(t),R_=(()=>{if(qD||Element.prototype.matches)return(n,t)=>n.matches(t);{const n=Element.prototype,t=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;return t?(e,i)=>t.apply(e,[i]):R_}})(),GD=(n,t,e)=>{let i=[];if(e){const o=n.querySelectorAll(t);for(let r=0;r<o.length;r++)i.push(o[r])}else{const o=n.querySelector(t);o&&i.push(o)}return i});let pa=null,WD=!1;function k_(n){pa||(pa=function Jz(){return"undefined"!=typeof document?document.body:null}()||{},WD=!!pa.style&&"WebkitAppearance"in pa.style);let t=!0;return pa.style&&!function Xz(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in pa.style,!t&&WD&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in pa.style)),t}const P_=R_,N_=O_,L_=GD;function $D(n){const t={};return Object.keys(n).forEach(e=>{const i=e.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=n[e]}),t}let YD=(()=>{class n{validateStyleProperty(e){return k_(e)}matchesElement(e,i){return P_(e,i)}containsElement(e,i){return N_(e,i)}query(e,i,o){return L_(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,s,a=[],l){return new Gl(o,r)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),F_=(()=>{class n{}return n.NOOP=new YD,n})();const B_="ng-enter",Sf="ng-leave",Af="ng-trigger",wf=".ng-trigger",KD="ng-animating",V_=".ng-animating";function ma(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:j_(parseFloat(t[1]),t[2])}function j_(n,t){return"s"===t?1e3*n:n}function xf(n,t,e){return n.hasOwnProperty("duration")?n:function nG(n,t,e){let o,r=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};o=j_(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=j_(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else o=n;if(!e){let a=!1,l=t.length;o<0&&(t.push("Duration values below 0 are not allowed for this animation step."),a=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&t.splice(l,0,`The provided timing value "${n}" is invalid.`)}return{duration:o,delay:r,easing:s}}(n,t,e)}function ql(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function Os(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else ql(n,e);return e}function XD(n,t,e){return e?t+":"+e+";":""}function JD(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=XD(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=XD(0,rG(e),n.style[e]));n.setAttribute("style",t)}function Dr(n,t,e){n.style&&(Object.keys(t).forEach(i=>{const o=H_(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[o]),n.style[o]=t[i]}),D_()&&JD(n))}function ga(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=H_(e);n.style[i]=""}),D_()&&JD(n))}function qd(n){return Array.isArray(n)?1==n.length?n[0]:BD(n):n}const U_=new RegExp("{{\\s*(.+?)\\s*}}","g");function eM(n){let t=[];if("string"==typeof n){let e;for(;e=U_.exec(n);)t.push(e[1]);U_.lastIndex=0}return t}function Df(n,t,e){const i=n.toString(),o=i.replace(U_,(r,s)=>{let a=t[s];return t.hasOwnProperty(s)||(e.push(`Please provide a value for the animation param ${s}`),a=""),a.toString()});return o==i?n:o}function Mf(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const oG=/-+([a-z0-9])/g;function H_(n){return n.replace(oG,(...t)=>t[1].toUpperCase())}function rG(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function tM(n,t){return 0===n||0===t}function nM(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let r=t[0],s=[];if(i.forEach(a=>{r.hasOwnProperty(a)||s.push(a),r[a]=e[a]}),s.length)for(var o=1;o<t.length;o++){let a=t[o];s.forEach(function(l){a[l]=z_(n,l)})}}return t}function uo(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function z_(n,t){return window.getComputedStyle(n)[t]}function sG(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function aG(n,t,e){if(":"==n[0]){const l=function lG(n,t){switch(n){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 t.push(`The transition alias value "${n}" is not supported`),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(`The provided transition expression "${n}" is not supported`),t;const o=i[1],r=i[2],s=i[3];t.push(iM(o,s));"<"==r[0]&&!("*"==o&&"*"==s)&&t.push(iM(s,o))}(i,e,t)):e.push(n),e}const If=new Set(["true","1"]),Of=new Set(["false","0"]);function iM(n,t){const e=If.has(n)||Of.has(n),i=If.has(t)||Of.has(t);return(o,r)=>{let s="*"==n||n==o,a="*"==t||t==r;return!s&&e&&"boolean"==typeof o&&(s=o?If.has(n):Of.has(n)),!a&&i&&"boolean"==typeof r&&(a=r?If.has(t):Of.has(t)),s&&a}}const cG=new RegExp("s*:selfs*,?","g");function G_(n,t,e){return new dG(n).build(t,e)}class dG{constructor(t){this._driver=t}build(t,e){const i=new fG(e);return this._resetContextStyleTimingState(i),uo(this,qd(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,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("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),o=t.options&&t.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=o||{};if(i.styles.forEach(a=>{if(Rf(a)){const l=a;Object.keys(l).forEach(c=>{eM(l[c]).forEach(d=>{s.hasOwnProperty(d)||r.add(d)})})}}),r.size){const a=Mf(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:t.name,style:i,options:o?{params:o}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=uo(this,qd(t.animation),e);return{type:1,matchers:sG(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:va(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>uo(this,i,e)),options:va(t.options)}}visitGroup(t,e){const i=e.currentTime;let o=0;const r=t.steps.map(s=>{e.currentTime=i;const a=uo(this,s,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:r,options:va(t.options)}}visitAnimate(t,e){const i=function mG(n,t){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return q_(xf(n,t).duration,0,"");const i=n;if(i.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=q_(0,0,"");return r.dynamic=!0,r.strValue=i,r}return e=e||xf(i,t),q_(e.duration,e.delay,e.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let o,r=t.styles?t.styles:Wt({});if(5==r.type)o=this.visitKeyframes(r,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Wt(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(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(s=>{"string"==typeof s?s==Xr?i.push(s):e.errors.push(`The provided style string value ${s} is not allowed.`):i.push(s)}):i.push(t.styles);let o=!1,r=null;return i.forEach(s=>{if(Rf(s)){const a=s,l=a.easing;if(l&&(r=l,delete a.easing),!o)for(let c in a)if(a[c].toString().indexOf("{{")>=0){o=!0;break}}}),{type:6,styles:i,easing:r,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&Object.keys(s).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let d=!0;c&&(r!=o&&r>=c.startTime&&o<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${o}ms"`),d=!1),r=c.startTime),d&&(l[a]={startTime:r,endTime:o}),e.options&&function iG(n,t,e){const i=t.params||{},o=eM(n);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(`Unable to resolve the local animation param ${r} in the given list of values`)})}(s[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let r=0;const s=[];let a=!1,l=!1,c=0;const d=t.steps.map(ae=>{const le=this._makeStyleAst(ae,e);let Ce=null!=le.offset?le.offset:function pG(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(Rf(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(Rf(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(le.styles),be=0;return null!=Ce&&(r++,be=le.offset=Ce),l=l||be<0||be>1,a=a||be<c,c=be,s.push(be),le});l&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");const u=t.steps.length;let h=0;r>0&&r<u?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(h=1/(u-1));const g=u-1,I=e.currentTime,Q=e.currentAnimateTimings,K=Q.duration;return d.forEach((ae,le)=>{const Ce=h>0?le==g?1:h*le:s[le],be=Ce*K;e.currentTime=I+Q.delay+be,Q.duration=be,this._validateStyleAst(ae,e),ae.offset=Ce,i.styles.push(ae)}),i}visitReference(t,e){return{type:8,animation:uo(this,qd(t.animation),e),options:va(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:va(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:va(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,o=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function uG(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(cG,"")),n=n.replace(/@\*/g,wf).replace(/@\w+/g,e=>wf+"-"+e.substr(1)).replace(/:animating/g,V_),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+r:r,co(e.collectedStyles,e.currentQuerySelector,{});const a=uo(this,qd(t.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:t.selector,options:va(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:xf(t.timings,e.errors,!0);return{type:12,animation:uo(this,qd(t.animation),e),timings:i,options:null}}}class fG{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Rf(n){return!Array.isArray(n)&&"object"==typeof n}function va(n){return n?(n=ql(n)).params&&(n.params=function hG(n){return n?ql(n):null}(n.params)):n={},n}function q_(n,t,e){return{duration:n,delay:t,easing:e}}function W_(n,t,e,i,o,r,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class kf{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const _G=new RegExp(":enter","g"),bG=new RegExp(":leave","g");function $_(n,t,e,i,o,r={},s={},a,l,c=[]){return(new CG).buildKeyframes(n,t,e,i,o,r,s,a,l,c)}class CG{buildKeyframes(t,e,i,o,r,s,a,l,c,d=[]){c=c||new kf;const u=new Y_(t,e,c,o,r,d,[]);u.options=l,u.currentTimeline.setStyles([s],null,u.errors,l),uo(this,i,u);const h=u.timelines.filter(g=>g.containsAnimation());if(h.length&&Object.keys(a).length){const g=h[h.length-1];g.allowOnlyTimelineStyles()||g.setStyles([a],null,u.errors,l)}return h.length?h.map(g=>g.buildKeyframes()):[W_(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const o=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let r=e.currentTimeline.currentTime;const s=null!=i.duration?ma(i.duration):null,a=null!=i.delay?ma(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),uo(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let o=e;const r=t.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=Pf);const s=ma(r.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>uo(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let o=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?ma(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);r&&a.delayNextStep(r),uo(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=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return xf(e.params?Df(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=o&&o.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.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=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,o=t.options||{},r=o.delay?ma(o.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Pf);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(t.options,c);r&&u.delayNextStep(r),c===e.element&&(l=u.currentTimeline),uo(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,o=e.currentTimeline,r=t.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 d=e.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;uo(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=o.currentTime-u+(o.startTime-i.currentTimeline.startTime)}}const Pf={};class Y_{constructor(t,e,i,o,r,s,a,l){this._driver=t,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=Pf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Nf(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let o=this.options;null!=i.duration&&(o.duration=ma(i.duration)),null!=i.delay&&(o.delay=ma(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]=Df(r[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return t}createSubContext(t=null,e,i){const o=e||this.element,r=new Y_(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(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=Pf,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const o={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},r=new EG(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,o,r,s){let a=[];if(o&&a.push(this.element),t.length>0){t=(t=t.replace(_G,"."+this._enterClassName)).replace(bG,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class Nf{constructor(t,e,i,o){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Nf(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Xr,this._currentKeyframe[e]=Xr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,o){e&&(this._previousKeyframe.easing=e);const r=o&&o.params||{},s=function SG(n,t){const e={};let i;return n.forEach(o=>{"*"===o?(i=i||Object.keys(t),i.forEach(r=>{e[r]=Xr})):Os(o,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(s).forEach(a=>{const l=Df(s[a],r,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Xr),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],o=t._styleSummary[e];(!i||o.time>i.time)&&this._updateStyle(e,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=Os(a,!0);Object.keys(c).forEach(d=>{const u=c[d];"!"==u?t.add(d):u==Xr&&e.add(d)}),i||(c.offset=l/this.duration),o.push(c)});const r=t.size?Mf(t.values()):[],s=e.size?Mf(e.values()):[];if(i){const a=o[0],l=ql(a);a.offset=0,l.offset=1,o=[a,l]}return W_(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}}class EG extends Nf{constructor(t,e,i,o,r,s,a=!1){super(t,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 t=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=i+e,a=e/s,l=Os(t[0],!1);l.offset=0,r.push(l);const c=Os(t[0],!1);c.offset=sM(a),r.push(c);const d=t.length-1;for(let u=1;u<=d;u++){let h=Os(t[u],!1);h.offset=sM((e+h.offset*i)/s),r.push(h)}i=s,e=0,o="",t=r}return W_(this.element,t,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function sM(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Q_{}class AG extends Q_{normalizePropertyName(t,e){return H_(t)}normalizeStyleValue(t,e,i,o){let r="";const s=i.toString().trim();if(wG[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(`Please provide a CSS unit value for ${t}:${i}`)}return s+r}}const wG=(()=>function xG(n){const t={};return n.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function aM(n,t,e,i,o,r,s,a,l,c,d,u,h){return{type:0,element:n,triggerName:t,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const K_={};class lM{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,o){return function DG(n,t,e,i,o){return n.some(r=>r(t,e,i,o))}(this.ast.matchers,t,e,i,o)}buildStyles(t,e,i){const o=this._stateStyles["*"],r=this._stateStyles[t],s=o?o.buildStyles(e,i):{};return r?r.buildStyles(e,i):s}build(t,e,i,o,r,s,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||K_,I=this.buildStyles(i,a&&a.params||K_,u),Q=l&&l.params||K_,K=this.buildStyles(o,Q,u),ae=new Set,le=new Map,Ce=new Map,be="void"===o,Ge={params:Object.assign(Object.assign({},h),Q)},st=d?[]:$_(t,e,this.ast.animation,r,s,I,K,Ge,c,u);let gt=0;if(st.forEach(Ke=>{gt=Math.max(Ke.duration+Ke.delay,gt)}),u.length)return aM(e,this._triggerName,i,o,be,I,K,[],[],le,Ce,gt,u);st.forEach(Ke=>{const vt=Ke.element,vn=co(le,vt,{});Ke.preStyleProps.forEach(Dn=>vn[Dn]=!0);const vi=co(Ce,vt,{});Ke.postStyleProps.forEach(Dn=>vi[Dn]=!0),vt!==e&&ae.add(vt)});const _t=Mf(ae.values());return aM(e,this._triggerName,i,o,be,I,K,st,_t,le,Ce,gt)}}class MG{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},o=ql(this.defaultParams);return Object.keys(t).forEach(r=>{const s=t[r];null!=s&&(o[r]=s)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const s=r;Object.keys(s).forEach(a=>{let l=s[a];l.length>1&&(l=Df(l,o,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class IG{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(o=>{this.states[o.name]=new MG(o.style,o.options&&o.options.params||{},i)}),cM(this.states,"true","1"),cM(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new lM(t,o,this.states))}),this.fallbackTransition=function OG(n,t,e){return new lM(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,o){return this.transitionFactories.find(s=>s.match(t,e,i,o))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function cM(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const RG=new kf;class kG{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],o=G_(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=o}_buildPlayer(t,e,i){const o=t.element,r=HD(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(o,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const o=[],r=this._animations[t];let s;const a=new Map;if(r?(s=$_(this._driver,e,r,B_,Sf,{},{},i,RG,o),s.forEach(d=>{const u=co(a,d.element,{});d.postStyleProps.forEach(h=>u[h]=null)})):(o.push("The requested animation doesn't exist or has already been destroyed"),s=[]),o.length)throw new Error(`Unable to create the animation due to the following errors: ${o.join("\n")}`);a.forEach((d,u)=>{Object.keys(d).forEach(h=>{d[h]=this._driver.computeStyle(u,h,Xr)})});const c=Is(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,{},u)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,o){const r=I_(e,"","","");return M_(this._getPlayer(t),i,r,o),()=>{}}command(t,e,i,o){if("register"==i)return void this.register(t,o[0]);if("create"==i)return void this.create(t,e,o[0]||{});const r=this._getPlayer(t);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(t)}}}const dM="ng-animate-queued",uM="ng-animate-disabled",hM=".ng-animate-disabled",FG=[],fM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},BG={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Lo="__ng_removed";class Z_{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function HG(n){return null!=n?n:null}(i?t.value:t),i){const r=ql(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const Wd="void",X_=new Z_(Wd);class VG{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Fo(e,this._hostClassName)}listen(t,e,i,o){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function zG(n){return"start"==n||"done"==n}(i))throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);const r=co(this._elementListeners,t,[]),s={name:e,phase:i,callback:o};r.push(s);const a=co(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Fo(t,Af),Fo(t,Af+"-"+e),a[e]=X_),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,o=!0){const r=this._getTrigger(e),s=new J_(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Fo(t,Af),Fo(t,Af+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new Z_(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=X_),c.value!==Wd&&l.value===c.value){if(!function WG(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let o=0;o<e.length;o++){const r=e[o];if(!t.hasOwnProperty(r)||n[r]!==t[r])return!1}return!0}(l.params,c.params)){const Q=[],K=r.matchStyles(l.value,l.params,Q),ae=r.matchStyles(c.value,c.params,Q);Q.length?this._engine.reportError(Q):this._engine.afterFlush(()=>{ga(t,K),Dr(t,ae)})}return}const h=co(this._engine.playersByElement,t,[]);h.forEach(Q=>{Q.namespaceId==this.id&&Q.triggerName==e&&Q.queued&&Q.destroy()});let g=r.matchTransition(l.value,c.value,t,c.params),I=!1;if(!g){if(!o)return;g=r.fallbackTransition,I=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:g,fromState:l,toState:c,player:s,isFallbackTransition:I}),I||(Fo(t,dM),s.onStart(()=>{Wl(t,dM)})),s.onDone(()=>{let Q=this.players.indexOf(s);Q>=0&&this.players.splice(Q,1);const K=this._engine.playersByElement.get(t);if(K){let ae=K.indexOf(s);ae>=0&&K.splice(ae,1)}}),this.players.push(s),h.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,wf,!0);i.forEach(o=>{if(o[Lo])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(t,e,i,o){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(a=>{if(this._triggers[a]){const l=this.trigger(t,a,Wd,o);l&&s.push(l)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Is(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);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[s].fallbackTransition,c=i[s]||X_,d=new Z_(Wd),u=new J_(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(t):[];if(r&&r.length)o=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(t),o)i.markElementAsRemoved(this.id,t,!1,e);else{const r=t[Lo];(!r||r===fM)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Fo(t,this._hostClassName)}drainQueuedTransitions(t){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=I_(r,i.triggerName,i.fromState.value,i.toState.value);l._data=t,M_(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(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class jG{constructor(t,e,i){this.bodyNode=t,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(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new VG(t,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[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let o=!1;for(let r=i;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),o=!0;break}o||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let o=this._namespaceLookup[t];o&&o.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const o=Object.keys(i);for(let r=0;r<o.length;r++){const s=i[o[r]].namespaceId;if(s){const a=this._fetchNamespace(s);a&&e.add(a)}}}return e}trigger(t,e,i,o){if(Lf(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(t,e,i,o){if(!Lf(e))return;const r=e[Lo];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Fo(t,uM)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Wl(t,uM))}removeNode(t,e,i,o){if(Lf(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,o):this.markElementAsRemoved(t,e,!1,o),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(t,e,i,o){this.collectedLeaveElements.push(e),e[Lo]={namespaceId:t,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,o,r){return Lf(e)?this._fetchNamespace(t).listen(e,i,o,r):()=>{}}_buildInstruction(t,e,i,o,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,o,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,wf,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,V_,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Is(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Lo];if(e&&e.setForRemoval){if(t[Lo]=fM,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,hM)&&this.markElementAsDisabled(t,!1),this.driver.query(t,hM,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-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++)Fo(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}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?Is(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new kf,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(Xe=>{d.add(Xe);const We=this.driver.query(Xe,".ng-animate-queued",!0);for(let pt=0;pt<We.length;pt++)d.add(We[pt])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),g=gM(h,this.collectedEnterElements),I=new Map;let Q=0;g.forEach((Xe,We)=>{const pt=B_+Q++;I.set(We,pt),Xe.forEach(rt=>Fo(rt,pt))});const K=[],ae=new Set,le=new Set;for(let Xe=0;Xe<this.collectedLeaveElements.length;Xe++){const We=this.collectedLeaveElements[Xe],pt=We[Lo];pt&&pt.setForRemoval&&(K.push(We),ae.add(We),pt.hasAnimation?this.driver.query(We,".ng-star-inserted",!0).forEach(rt=>ae.add(rt)):le.add(We))}const Ce=new Map,be=gM(h,Array.from(ae));be.forEach((Xe,We)=>{const pt=Sf+Q++;Ce.set(We,pt),Xe.forEach(rt=>Fo(rt,pt))}),t.push(()=>{g.forEach((Xe,We)=>{const pt=I.get(We);Xe.forEach(rt=>Wl(rt,pt))}),be.forEach((Xe,We)=>{const pt=Ce.get(We);Xe.forEach(rt=>Wl(rt,pt))}),K.forEach(Xe=>{this.processLeaveNode(Xe)})});const Ge=[],st=[];for(let Xe=this._namespaceList.length-1;Xe>=0;Xe--)this._namespaceList[Xe].drainQueuedTransitions(e).forEach(pt=>{const rt=pt.player,en=pt.element;if(Ge.push(rt),this.collectedEnterElements.length){const ei=en[Lo];if(ei&&ei.setForMove)return void rt.destroy()}const Mn=!u||!this.driver.containsElement(u,en),_i=Ce.get(en),nn=I.get(en),It=this._buildInstruction(pt,i,nn,_i,Mn);if(It.errors&&It.errors.length)st.push(It);else{if(Mn)return rt.onStart(()=>ga(en,It.fromStyles)),rt.onDestroy(()=>Dr(en,It.toStyles)),void o.push(rt);if(pt.isFallbackTransition)return rt.onStart(()=>ga(en,It.fromStyles)),rt.onDestroy(()=>Dr(en,It.toStyles)),void o.push(rt);It.timelines.forEach(ei=>ei.stretchStartingKeyframe=!0),i.append(en,It.timelines),s.push({instruction:It,player:rt,element:en}),It.queriedElements.forEach(ei=>co(a,ei,[]).push(rt)),It.preStyleProps.forEach((ei,dr)=>{const Nr=Object.keys(ei);if(Nr.length){let Ha=l.get(dr);Ha||l.set(dr,Ha=new Set),Nr.forEach(uC=>Ha.add(uC))}}),It.postStyleProps.forEach((ei,dr)=>{const Nr=Object.keys(ei);let Ha=c.get(dr);Ha||c.set(dr,Ha=new Set),Nr.forEach(uC=>Ha.add(uC))})}});if(st.length){const Xe=[];st.forEach(We=>{Xe.push(`@${We.triggerName} has failed due to:\n`),We.errors.forEach(pt=>Xe.push(`- ${pt}\n`))}),Ge.forEach(We=>We.destroy()),this.reportError(Xe)}const gt=new Map,_t=new Map;s.forEach(Xe=>{const We=Xe.element;i.has(We)&&(_t.set(We,We),this._beforeAnimationBuild(Xe.player.namespaceId,Xe.instruction,gt))}),o.forEach(Xe=>{const We=Xe.element;this._getPreviousPlayers(We,!1,Xe.namespaceId,Xe.triggerName,null).forEach(rt=>{co(gt,We,[]).push(rt),rt.destroy()})});const Ke=K.filter(Xe=>_M(Xe,l,c)),vt=new Map;mM(vt,this.driver,le,c,Xr).forEach(Xe=>{_M(Xe,l,c)&&Ke.push(Xe)});const vi=new Map;g.forEach((Xe,We)=>{mM(vi,this.driver,new Set(Xe),l,"!")}),Ke.forEach(Xe=>{const We=vt.get(Xe),pt=vi.get(Xe);vt.set(Xe,Object.assign(Object.assign({},We),pt))});const Dn=[],bo=[],Co={};s.forEach(Xe=>{const{element:We,player:pt,instruction:rt}=Xe;if(i.has(We)){if(d.has(We))return pt.onDestroy(()=>Dr(We,rt.toStyles)),pt.disabled=!0,pt.overrideTotalTime(rt.totalTime),void o.push(pt);let en=Co;if(_t.size>1){let _i=We;const nn=[];for(;_i=_i.parentNode;){const It=_t.get(_i);if(It){en=It;break}nn.push(_i)}nn.forEach(It=>_t.set(It,en))}const Mn=this._buildAnimation(pt.namespaceId,rt,gt,r,vi,vt);if(pt.setRealPlayer(Mn),en===Co)Dn.push(pt);else{const _i=this.playersByElement.get(en);_i&&_i.length&&(pt.parentPlayer=Is(_i)),o.push(pt)}}else ga(We,rt.fromStyles),pt.onDestroy(()=>Dr(We,rt.toStyles)),bo.push(pt),d.has(We)&&o.push(pt)}),bo.forEach(Xe=>{const We=r.get(Xe.element);if(We&&We.length){const pt=Is(We);Xe.setRealPlayer(pt)}}),o.forEach(Xe=>{Xe.parentPlayer?Xe.syncPlayerEvents(Xe.parentPlayer):Xe.destroy()});for(let Xe=0;Xe<K.length;Xe++){const We=K[Xe],pt=We[Lo];if(Wl(We,Sf),pt&&pt.hasAnimation)continue;let rt=[];if(a.size){let Mn=a.get(We);Mn&&Mn.length&&rt.push(...Mn);let _i=this.driver.query(We,V_,!0);for(let nn=0;nn<_i.length;nn++){let It=a.get(_i[nn]);It&&It.length&&rt.push(...It)}}const en=rt.filter(Mn=>!Mn.destroyed);en.length?GG(this,We,en):this.processLeaveNode(We)}return K.length=0,Dn.forEach(Xe=>{this.players.push(Xe),Xe.onDone(()=>{Xe.destroy();const We=this.players.indexOf(Xe);this.players.splice(We,1)}),Xe.play()}),Dn}elementContainsData(t,e){let i=!1;const o=e[Lo];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(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,o,r){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!r||r==Wd;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(t,e,i){const r=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,d=c!==r,u=co(i,c,[]);this._getPreviousPlayers(c,d,s,a,e.toState).forEach(g=>{const I=g.getRealPlayer();I.beforeDestroy&&I.beforeDestroy(),g.destroy(),u.push(g)})}ga(r,e.fromStyles)}_buildAnimation(t,e,i,o,r,s){const a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(I=>{const Q=I.element;d.add(Q);const K=Q[Lo];if(K&&K.removedBeforeQueried)return new Gl(I.duration,I.delay);const ae=Q!==l,le=function qG(n){const t=[];return vM(n,t),t}((i.get(Q)||FG).map(gt=>gt.getRealPlayer())).filter(gt=>!!gt.element&&gt.element===Q),Ce=r.get(Q),be=s.get(Q),Ge=HD(0,this._normalizer,0,I.keyframes,Ce,be),st=this._buildPlayer(I,Ge,le);if(I.subTimeline&&o&&u.add(Q),ae){const gt=new J_(t,a,Q);gt.setRealPlayer(st),c.push(gt)}return st});c.forEach(I=>{co(this.playersByQueriedElement,I.element,[]).push(I),I.onDone(()=>function UG(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,I.element,I))}),d.forEach(I=>Fo(I,KD));const g=Is(h);return g.onDestroy(()=>{d.forEach(I=>Wl(I,KD)),Dr(l,e.toStyles)}),u.forEach(I=>{co(o,I,[]).push(g)}),g}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Gl(t.duration,t.delay)}}class J_{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Gl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>M_(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){co(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Lf(n){return n&&1===n.nodeType}function pM(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function mM(n,t,e,i,o){const r=[];e.forEach(l=>r.push(pM(l)));const s=[];i.forEach((l,c)=>{const d={};l.forEach(u=>{const h=d[u]=t.computeStyle(c,u,o);(!h||0==h.length)&&(c[Lo]=BG,s.push(c))}),n.set(c,d)});let a=0;return e.forEach(l=>pM(l,r[a++])),s}function gM(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const o=new Set(t),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 t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}const Ff="$$classes";function Fo(n,t){if(n.classList)n.classList.add(t);else{let e=n[Ff];e||(e=n[Ff]={}),e[t]=!0}}function Wl(n,t){if(n.classList)n.classList.remove(t);else{let e=n[Ff];e&&delete e[t]}}function GG(n,t,e){Is(e).onDone(()=>n.processLeaveNode(t))}function vM(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof jD?vM(i.players,t):t.push(i)}}function _M(n,t,e){const i=e.get(n);if(!i)return!1;let o=t.get(n);return o?i.forEach(r=>o.add(r)):t.set(n,i),e.delete(n),!0}class Bf{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new jG(t,e,i),this._timelineEngine=new kG(t,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(t,e,i,o,r){const s=t+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],c=G_(this._driver,r,l);if(l.length)throw new Error(`The animation trigger "${o}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function TG(n,t,e){return new IG(n,t,e)}(o,c,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,o,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,o){this._transitionEngine.insertNode(t,e,i,o)}onRemove(t,e,i,o){this._transitionEngine.removeNode(t,e,o||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,o){if("@"==i.charAt(0)){const[r,s]=zD(i);this._timelineEngine.command(r,e,s,o)}else this._transitionEngine.trigger(t,e,i,o)}listen(t,e,i,o,r){if("@"==i.charAt(0)){const[s,a]=zD(i);return this._timelineEngine.listen(s,e,a,r)}return this._transitionEngine.listen(t,e,i,o,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function yM(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=ey(t[0]),t.length>1&&(i=ey(t[t.length-1]))):t&&(e=ey(t)),e||i?new $G(n,e,i):null}let $G=(()=>{class n{constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o,this._state=0;let r=n.initialStylesByElement.get(e);r||n.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Dr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Dr(this._element,this._initialStyles),this._endStyles&&(Dr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(ga(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ga(this._element,this._endStyles),this._endStyles=null),Dr(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ey(n){let t=null;const e=Object.keys(n);for(let i=0;i<e.length;i++){const o=e[i];YG(o)&&(t=t||{},t[o]=n[o])}return t}function YG(n){return"display"===n||"position"===n}const bM="animation",CM="animationend";class ZG{constructor(t,e,i,o,r,s,a){this._element=t,this._name=e,this._duration=i,this._delay=o,this._easing=r,this._fillMode=s,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=l=>this._handleCallback(l)}apply(){(function XG(n,t){const e=ny(n,"").trim();let i=0;e.length&&(i=function e8(n,t){let e=0;for(let i=0;i<n.length;i++)n.charAt(i)===t&&e++;return e}(e,",")+1,t=`${e}, ${t}`),Vf(n,"",t)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),AM(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){EM(this._element,this._name,"paused")}resume(){EM(this._element,this._name,"running")}setPosition(t){const e=SM(this._element,this._name);this._position=t*this._duration,Vf(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),i=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),AM(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function JG(n,t){const i=ny(n,"").split(","),o=ty(i,t);o>=0&&(i.splice(o,1),Vf(n,"",i.join(",")))}(this._element,this._name))}}function EM(n,t,e){Vf(n,"PlayState",e,SM(n,t))}function SM(n,t){const e=ny(n,"");return e.indexOf(",")>0?ty(e.split(","),t):ty([e],t)}function ty(n,t){for(let e=0;e<n.length;e++)if(n[e].indexOf(t)>=0)return e;return-1}function AM(n,t,e){e?n.removeEventListener(CM,t):n.addEventListener(CM,t)}function Vf(n,t,e,i){const o=bM+t;if(null!=i){const r=n.style[o];if(r.length){const s=r.split(",");s[i]=e,e=s.join(",")}}n.style[o]=e}function ny(n,t){return n.style[bM+t]||""}class wM{constructor(t,e,i,o,r,s,a,l){this.element=t,this.keyframes=e,this.animationName=i,this._duration=o,this._delay=r,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=o+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ZG(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:z_(this.element,i))})}this.currentSnapshot=t}}class i8 extends Gl{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=$D(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class DM{constructor(){this._count=0}validateStyleProperty(t){return k_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return N_(t,e)}query(t,e,i){return L_(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(a=>$D(a));let o=`@keyframes ${e} {\n`,r="";i.forEach(a=>{r=" ";const l=parseFloat(a.offset);o+=`${r}${100*l}% {\n`,r+=" ",Object.keys(a).forEach(c=>{const d=a[c];switch(c){case"offset":return;case"easing":return void(d&&(o+=`${r}animation-timing-function: ${d};\n`));default:return void(o+=`${r}${c}: ${d};\n`)}}),o+=`${r}}\n`}),o+="}\n";const s=document.createElement("style");return s.textContent=o,s}animate(t,e,i,o,r,s=[],a){const l=s.filter(K=>K instanceof wM),c={};tM(i,o)&&l.forEach(K=>{let ae=K.currentSnapshot;Object.keys(ae).forEach(le=>c[le]=ae[le])});const d=function s8(n){let t={};return n&&(Array.isArray(n)?n:[n]).forEach(i=>{Object.keys(i).forEach(o=>{"offset"==o||"easing"==o||(t[o]=i[o])})}),t}(e=nM(t,e,c));if(0==i)return new i8(t,d);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function r8(n){var t;const e=null===(t=n.getRootNode)||void 0===t?void 0:t.call(n);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(t).appendChild(h);const I=yM(t,e),Q=new wM(t,e,u,i,o,r,d,I);return Q.onDestroy(()=>function a8(n){n.parentNode.removeChild(n)}(h)),Q}}class TM{constructor(t,e,i,o){this.element=t,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.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:z_(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class l8{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(IM().toString()),this._cssKeyframesDriver=new DM}validateStyleProperty(t){return k_(t)}matchesElement(t,e){return P_(t,e)}containsElement(t,e){return N_(t,e)}query(t,e,i){return L_(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,o,r,s=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,o,r,s);const d={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(d.easing=r);const u={},h=s.filter(I=>I instanceof TM);tM(i,o)&&h.forEach(I=>{let Q=I.currentSnapshot;Object.keys(Q).forEach(K=>u[K]=Q[K])});const g=yM(t,e=nM(t,e=e.map(I=>Os(I,!1)),u));return new TM(t,e,d,g)}}function IM(){return UD()&&Element.prototype.animate||{}}let d8=(()=>{class n extends FD{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Yi.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?BD(e):e;return OM(this._renderer,null,i,"register",[o]),new u8(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(se(oa),se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();class u8 extends class Yz{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new h8(this._id,t,e||{},this._renderer)}}class h8{constructor(t,e,i,o){this.id=t,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return OM(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function OM(n,t,e,i,o){return n.setProperty(t,`@@${e}:${i}`,o)}const RM="@.disabled";let f8=(()=>{class n{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)=>{s&&s.parentNode(r)&&s.removeChild(r.parentNode,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let d=this._rendererCache.get(r);return d||(d=new kM("",r,this.engine),this._rendererCache.set(r,d)),d}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=d=>{Array.isArray(d)?d.forEach(l):this.engine.registerTrigger(s,a,e,d.name,d)};return i.data.animation.forEach(l),new p8(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 n.\u0275fac=function(e){return new(e||n)(se(oa),se(Bf),se(ut))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();class kM{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,o=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,o)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,o){this.delegate.setAttribute(t,e,i,o)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,o){this.delegate.setStyle(t,e,i,o)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==RM?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class p8 extends kM{constructor(t,e,i,o){super(e,i,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==RM?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const o=function m8(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let r=e.substr(1),s="";return"@"!=r.charAt(0)&&([r,s]=function g8(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let v8=(()=>{class n extends Bf{constructor(e,i,o){super(e.body,i,o)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(se(ct),se(F_),se(Q_))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();const Ri=new je("AnimationModuleType"),PM=[{provide:FD,useClass:d8},{provide:Q_,useFactory:function y8(){return new AG}},{provide:Bf,useClass:v8},{provide:oa,useFactory:function b8(n,t,e){return new f8(n,t,e)},deps:[Ef,Bf,ut]}],NM=[{provide:F_,useFactory:function _8(){return function c8(){return"function"==typeof IM()}()?new l8:new DM}},{provide:Ri,useValue:"BrowserAnimations"},...PM],C8=[{provide:F_,useClass:YD},{provide:Ri,useValue:"NoopAnimations"},...PM];let LM=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?C8:NM}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:NM,imports:[ND]}),n})();const{isArray:E8}=Array,{getPrototypeOf:S8,prototype:A8,keys:w8}=Object;function FM(n){if(1===n.length){const t=n[0];if(E8(t))return{args:t,keys:null};if(function x8(n){return n&&"object"==typeof n&&S8(n)===A8}(t)){const e=w8(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:D8}=Array;function iy(n){return ze(t=>function M8(n,t){return D8(t)?n(...t):n(t)}(n,t))}function BM(n,t){return n.reduce((e,i,o)=>(e[i]=t[o],e),{})}function VM(...n){const t=EC(n),{args:e,keys:i}=FM(n),o=new k(r=>{const{length:s}=e;if(!s)return void r.complete();const a=new Array(s);let l=s,c=s;for(let d=0;d<s;d++){let u=!1;Wi(e[d]).subscribe(qe(r,h=>{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||r.next(i?BM(i,a):a),r.complete())}))}});return t?o.pipe(iy(t)):o}let jM=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Io),f(Pe))},n.\u0275dir=ge({type:n}),n})(),_a=(()=>{class n extends jM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=ge({type:n,features:[Le]}),n})();const ho=new je("NgValueAccessor"),I8={provide:ho,useExisting:Zt(()=>Rs),multi:!0},R8=new je("CompositionEventMode");let Rs=(()=>{class n extends jM{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function O8(){const n=xr()?xr().getUserAgent():"";return/android (\d+)/.test(n.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 n.\u0275fac=function(e){return new(e||n)(f(Io),f(Pe),f(R8,8))},n.\u0275dir=ge({type:n,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&&Te("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:[Lt([I8]),Le]}),n})();function ks(n){return null==n||0===n.length}function HM(n){return null!=n&&"number"==typeof n.length}const bi=new je("NgValidators"),Ps=new je("NgAsyncValidators"),k8=/^(?=.{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 oy{static min(t){return function zM(n){return t=>{if(ks(t.value)||ks(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function GM(n){return t=>{if(ks(t.value)||ks(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function qM(n){return ks(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function WM(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function $M(n){return ks(n.value)||k8.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function YM(n){return t=>ks(t.value)||!HM(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return QM(t)}static pattern(t){return function KM(n){if(!n)return Jr;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(ks(i.value))return null;const o=i.value;return t.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(t)}static nullValidator(t){return null}static compose(t){return nT(t)}static composeAsync(t){return iT(t)}}function QM(n){return t=>HM(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function Jr(n){return null}function ZM(n){return null!=n}function XM(n){const t=hd(n)?yi(n):n;return Th(t),t}function JM(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function eT(n,t){return t.map(e=>e(n))}function tT(n){return n.map(t=>function P8(n){return!n.validate}(t)?t:e=>t.validate(e))}function nT(n){if(!n)return null;const t=n.filter(ZM);return 0==t.length?null:function(e){return JM(eT(e,t))}}function ry(n){return null!=n?nT(tT(n)):null}function iT(n){if(!n)return null;const t=n.filter(ZM);return 0==t.length?null:function(e){return VM(eT(e,t).map(XM)).pipe(ze(JM))}}function sy(n){return null!=n?iT(tT(n)):null}function oT(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function rT(n){return n._rawValidators}function sT(n){return n._rawAsyncValidators}function ay(n){return n?Array.isArray(n)?n:[n]:[]}function Uf(n,t){return Array.isArray(n)?n.includes(t):n===t}function aT(n,t){const e=ay(t);return ay(n).forEach(o=>{Uf(e,o)||e.push(o)}),e}function lT(n,t){return ay(t).filter(e=>!Uf(n,e))}class cT{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(t){this._rawValidators=t||[],this._composedValidatorFn=ry(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=sy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Mr extends cT{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class zi extends cT{get formDirective(){return null}get path(){return null}}let $l=(()=>{class n extends class dT{constructor(t){this._cd=t}is(t){var e,i,o;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(o=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===o?void 0:o[t])}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Mr,2))},n.\u0275dir=ge({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&lt("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[Le]}),n})();function $d(n,t){dy(n,t),t.valueAccessor.writeValue(n.value),function V8(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&hT(n,t)})}(n,t),function U8(n,t){const e=(i,o)=>{t.valueAccessor.writeValue(i),o&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function j8(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&hT(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function B8(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Gf(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Wf(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function qf(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function dy(n,t){const e=rT(n);null!==t.validator?n.setValidators(oT(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=sT(n);null!==t.asyncValidator?n.setAsyncValidators(oT(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const o=()=>n.updateValueAndValidity();qf(t._rawValidators,o),qf(t._rawAsyncValidators,o)}function Wf(n,t){let e=!1;if(null!==n){if(null!==t.validator){const o=rT(n);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==t.validator);r.length!==o.length&&(e=!0,n.setValidators(r))}}if(null!==t.asyncValidator){const o=sT(n);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==t.asyncValidator);r.length!==o.length&&(e=!0,n.setAsyncValidators(r))}}}const i=()=>{};return qf(t._rawValidators,i),qf(t._rawAsyncValidators,i),e}function hT(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function fT(n,t){dy(n,t)}function pT(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function $f(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const Yd="VALID",Yf="INVALID",Yl="PENDING",Qd="DISABLED";function fy(n){return(my(n)?n.validators:n)||null}function mT(n){return Array.isArray(n)?ry(n):n||null}function py(n,t){return(my(t)?t.asyncValidators:n)||null}function gT(n){return Array.isArray(n)?sy(n):n||null}function my(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class gy{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=mT(this._rawValidators),this._composedAsyncValidatorFn=gT(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Yd}get invalid(){return this.status===Yf}get pending(){return this.status==Yl}get disabled(){return this.status===Qd}get enabled(){return this.status!==Qd}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=mT(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=gT(t)}addValidators(t){this.setValidators(aT(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(aT(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(lT(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(lT(t,this._rawAsyncValidators))}hasValidator(t){return Uf(this._rawValidators,t)}hasAsyncValidator(t){return Uf(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Yl,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Qd,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Yd,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yd||this.status===Yl)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qd:Yd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Yl,this._hasOwnPendingAsyncValidator=!0;const e=XM(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function q8(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(o=>{i=i instanceof vy?i.controls.hasOwnProperty(o)?i.controls[o]:null:i instanceof W8&&i.at(o)||null}),i}(this,t,".")}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?Qd:this.errors?Yf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yl)?Yl:this._anyControlsHaveStatus(Yf)?Yf:Yd}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){my(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Kd extends gy{constructor(t=null,e,i){super(fy(e),py(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){$f(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){$f(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class vy extends gy{constructor(t,e,i){super(fy(e),py(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,o)=>{i.reset(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Kd?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class W8 extends gy{constructor(t,e,i){super(fy(e),py(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((i,o)=>{this._throwIfControlMissing(o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,o)=>{i.reset(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Kd?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const $8={provide:zi,useExisting:Zt(()=>Ql)},Zd=(()=>Promise.resolve(null))();let Ql=(()=>{class n extends zi{constructor(e,i){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Me,this.form=new vy({},ry(e),sy(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Zd.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),$d(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Zd.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),$f(this._directives,e)})}addFormGroup(e){Zd.then(()=>{const i=this._findContainer(e.path),o=new vy({});fT(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Zd.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Zd.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,pT(this.form,this._directives),this.ngSubmit.emit(e),!1}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 n.\u0275fac=function(e){return new(e||n)(f(bi,10),f(Ps,10))},n.\u0275dir=ge({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Te("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Lt([$8]),Le]}),n})();const Q8={provide:Mr,useExisting:Zt(()=>ya)},yT=(()=>Promise.resolve(null))();let ya=(()=>{class n extends Mr{constructor(e,i,o,r){super(),this.control=new Kd,this._registered=!1,this.update=new Me,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=function hy(n,t){if(!t)return null;let e,i,o;return Array.isArray(t),t.forEach(r=>{r.constructor===Rs?e=r:function G8(n){return Object.getPrototypeOf(n.constructor)===_a}(r)?i=r:o=r}),o||i||e||null}(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function uy(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function zf(n,t){return[...t.path,n]}(this.name,this._parent):[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(){$d(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){yT.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=""===i||i&&"false"!==i;yT.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable()})}}return n.\u0275fac=function(e){return new(e||n)(f(zi,9),f(bi,10),f(Ps,10),f(ho,10))},n.\u0275dir=ge({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Lt([Q8]),Le,Cn]}),n})(),CT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({}),n})();const _y=new je("NgModelWithFormControlWarning"),n6={provide:zi,useExisting:Zt(()=>Xd)};let Xd=(()=>{class n extends zi{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Me,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&&(Wf(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 $d(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Gf(e.control||null,e,!1),$f(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){return this.submitted=!0,pT(this.form,this.directives),this.ngSubmit.emit(e),!1}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&&(Gf(i||null,e),o instanceof Kd&&($d(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);fT(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function H8(n,t){return Wf(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){dy(this.form,this),this._oldForm&&Wf(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(f(bi,10),f(Ps,10))},n.\u0275dir=ge({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Te("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Lt([n6]),Le,Cn]}),n})();const _6={provide:bi,useExisting:Zt(()=>Kl),multi:!0};let Kl=(()=>{class n{constructor(){this._validator=Jr}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this.enabled()?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=this.enabled()?QM(function TT(n){return"number"==typeof n?n:parseInt(n,10)}(this.maxlength)):Jr}enabled(){return null!=this.maxlength}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Dt("maxlength",i.enabled()?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Lt([_6]),Cn]}),n})(),FT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[CT]]}),n})(),b6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[FT]}),n})(),C6=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:_y,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[FT]}),n})();function ht(...n){return yi(n,kc(n))}class St extends _e{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}function BT(...n){const t=kc(n),e=EC(n),{args:i,keys:o}=FM(n);if(0===i.length)return yi([],t);const r=new k(function E6(n,t,e=V){return i=>{VT(t,()=>{const{length:o}=n,r=new Array(o);let s=o,a=o;for(let l=0;l<o;l++)VT(t,()=>{const c=yi(n[l],t);let d=!1;c.subscribe(qe(i,u=>{r[l]=u,d||(d=!0,a--),a||i.next(e(r.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,t,o?s=>BM(o,s):V));return e?r.pipe(iy(e)):r}function VT(n,t,e){n?Lr(e,n,t):t()}const Kf=q(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function Jd(...n){return function S6(){return Rc(1)}()(yi(n,kc(n)))}function Zf(n){return new k(t=>{Wi(n()).subscribe(t)})}function jT(){return Be((n,t)=>{let e=null;n._refCount++;const i=qe(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const o=n._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}class A6 extends k{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Ye(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,null==t||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new w;const e=this.getSubject();t.add(this.source.subscribe(qe(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=w.EMPTY)}return t}refCount(){return jT()(this)}}function fo(n,t){return Be((e,i)=>{let o=null,r=0,s=!1;const a=()=>s&&!o&&i.complete();e.subscribe(qe(i,l=>{null==o||o.unsubscribe();let c=0;const d=r++;Wi(n(l,d)).subscribe(o=qe(i,u=>i.next(t?t(l,u,d,c++):u),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function wn(n){return n<=0?()=>Ho:Be((t,e)=>{let i=0;t.subscribe(qe(e,o=>{++i<=n&&(e.next(o),n<=i&&e.complete())}))})}function Ci(...n){const t=kc(n);return Be((e,i)=>{(t?Jd(n,e,t):Jd(n,e)).subscribe(i)})}function w6(n,t,e,i,o){return(r,s)=>{let a=e,l=t,c=0;r.subscribe(qe(s,d=>{const u=c++;l=a?n(l,d,u):(a=!0,d),i&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}function UT(n,t){return Be(w6(n,t,arguments.length>=2,!0))}function $t(n,t){return Be((e,i)=>{let o=0;e.subscribe(qe(i,r=>n.call(t,r,o++)&&i.next(r)))})}function es(n){return Be((t,e)=>{let r,i=null,o=!1;i=t.subscribe(qe(e,void 0,void 0,s=>{r=Wi(n(s,es(n)(t))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function Zl(n,t){return S(t)?$n(n,t,1):$n(n,1)}function Ay(n){return n<=0?()=>Ho:Be((t,e)=>{let i=[];t.subscribe(qe(e,o=>{i.push(o),n<i.length&&i.shift()},()=>{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}function HT(n=x6){return Be((t,e)=>{let i=!1;t.subscribe(qe(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(n())))})}function x6(){return new Kf}function zT(n){return Be((t,e)=>{let i=!1;t.subscribe(qe(e,o=>{i=!0,e.next(o)},()=>{i||e.next(n),e.complete()}))})}function Xl(n,t){const e=arguments.length>=2;return i=>i.pipe(n?$t((o,r)=>n(o,r,i)):V,wn(1),e?zT(t):HT(()=>new Kf))}function mi(n,t,e){const i=S(n)||t||e?{next:n,error:t,complete:e}:n;return i?Be((o,r)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;o.subscribe(qe(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)}))}):V}function GT(n){return Be((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}class ts{constructor(t,e){this.id=t,this.url=e}}class wy extends ts{constructor(t,e,i="imperative",o=null){super(t,e),this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class eu extends ts{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class qT extends ts{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class M6 extends ts{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class T6 extends ts{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class I6 extends ts{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class O6 extends ts{constructor(t,e,i,o,r){super(t,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class R6 extends ts{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class k6 extends ts{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WT{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $T{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class P6{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class N6{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class L6{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class F6{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YT{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ht="primary";class B6{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Jl(n){return new B6(n)}const QT="ngNavigationCancelingError";function xy(n){const t=Error("NavigationCancelingError: "+n);return t[QT]=!0,t}function j6(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.length<n.length))return null;const o={};for(let r=0;r<i.length;r++){const s=i[r],a=n[r];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,i.length),posParams:o}}function Tr(n,t){const e=n?Object.keys(n):void 0,i=t?Object.keys(t):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],!KT(n[o],t[o]))return!1;return!0}function KT(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;const e=[...n].sort(),i=[...t].sort();return e.every((o,r)=>i[r]===o)}return n===t}function ZT(n){return Array.prototype.concat.apply([],n)}function XT(n){return n.length>0?n[n.length-1]:null}function Ei(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Ir(n){return Th(n)?n:hd(n)?yi(Promise.resolve(n)):ht(n)}const z6={exact:function tI(n,t,e){if(!Ca(n.segments,t.segments)||!Xf(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!tI(n.children[i],t.children[i],e))return!1;return!0},subset:nI},JT={exact:function G6(n,t){return Tr(n,t)},subset:function q6(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>KT(n[e],t[e]))},ignored:()=>!0};function eI(n,t,e){return z6[e.paths](n.root,t.root,e.matrixParams)&&JT[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function nI(n,t,e){return iI(n,t,t.segments,e)}function iI(n,t,e,i){if(n.segments.length>e.length){const o=n.segments.slice(0,e.length);return!(!Ca(o,e)||t.hasChildren()||!Xf(o,e,i))}if(n.segments.length===e.length){if(!Ca(n.segments,e)||!Xf(n.segments,e,i))return!1;for(const o in t.children)if(!n.children[o]||!nI(n.children[o],t.children[o],i))return!1;return!0}{const o=e.slice(0,n.segments.length),r=e.slice(n.segments.length);return!!(Ca(n.segments,o)&&Xf(n.segments,o,i)&&n.children[Ht])&&iI(n.children[Ht],t,r,i)}}function Xf(n,t,e){return t.every((i,o)=>JT[e](n[o].parameters,i.parameters))}class ba{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jl(this.queryParams)),this._queryParamMap}toString(){return Y6.serialize(this)}}class Yt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ei(e,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Jf(this)}}class tu{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Jl(this.parameters)),this._parameterMap}toString(){return lI(this)}}function Ca(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class oI{}class rI{parse(t){const e=new iq(t);return new ba(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${nu(t.root,!0)}`,i=function Z6(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(o=>`${ep(e)}=${ep(o)}`).join("&"):`${ep(e)}=${ep(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${i}${"string"==typeof t.fragment?`#${function Q6(n){return encodeURI(n)}(t.fragment)}`:""}`}}const Y6=new rI;function Jf(n){return n.segments.map(t=>lI(t)).join("/")}function nu(n,t){if(!n.hasChildren())return Jf(n);if(t){const e=n.children[Ht]?nu(n.children[Ht],!1):"",i=[];return Ei(n.children,(o,r)=>{r!==Ht&&i.push(`${r}:${nu(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function $6(n,t){let e=[];return Ei(n.children,(i,o)=>{o===Ht&&(e=e.concat(t(i,o)))}),Ei(n.children,(i,o)=>{o!==Ht&&(e=e.concat(t(i,o)))}),e}(n,(i,o)=>o===Ht?[nu(n.children[Ht],!1)]:[`${o}:${nu(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ht]?`${Jf(n)}/${e[0]}`:`${Jf(n)}/(${e.join("//")})`}}function sI(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ep(n){return sI(n).replace(/%3B/gi,";")}function Dy(n){return sI(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tp(n){return decodeURIComponent(n)}function aI(n){return tp(n.replace(/\+/g,"%20"))}function lI(n){return`${Dy(n.path)}${function K6(n){return Object.keys(n).map(t=>`;${Dy(t)}=${Dy(n[t])}`).join("")}(n.parameters)}`}const X6=/^[^\/()?;=#]+/;function np(n){const t=n.match(X6);return t?t[0]:""}const J6=/^[^=?&#]+/,tq=/^[^&#]+/;class iq{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Yt([],{}):new Yt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Ht]=new Yt(t,e)),i}parseSegment(){const t=np(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new tu(tp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=np(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=np(this.remaining);o&&(i=o,this.capture(i))}t[tp(e)]=tp(i)}parseQueryParam(t){const e=function eq(n){const t=n.match(J6);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function nq(n){const t=n.match(tq);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const o=aI(e),r=aI(i);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(r)}else t[o]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=np(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=Ht);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s[Ht]:new Yt([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class cI{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=My(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=My(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ty(t,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Ty(t,this._root).map(e=>e.value)}}function My(n,t){if(n===t.value)return t;for(const e of t.children){const i=My(n,e);if(i)return i}return null}function Ty(n,t){if(n===t.value)return[t];for(const e of t.children){const i=Ty(n,e);if(i.length)return i.unshift(t),i}return[]}class ns{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ec(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class dI extends cI{constructor(t,e){super(t),this.snapshot=e,Iy(this,t)}toString(){return this.snapshot.toString()}}function uI(n,t){const e=function oq(n,t){const s=new ip([],{},{},"",{},Ht,t,null,n.root,-1,{});return new fI("",new ns(s,[]))}(n,t),i=new St([new tu("",{})]),o=new St({}),r=new St({}),s=new St({}),a=new St(""),l=new tc(i,o,s,a,r,Ht,t,e.root);return l.snapshot=e.root,new dI(new ns(l,[]),e)}class tc{constructor(t,e,i,o,r,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,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(ze(t=>Jl(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ze(t=>Jl(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function hI(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)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 rq(n){return n.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class ip{constructor(t,e,i,o,r,s,a,l,c,d,u){this.url=t,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=d,this._resolve=u}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=Jl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fI extends cI{constructor(t,e){super(e),this.url=t,Iy(this,e)}toString(){return pI(this._root)}}function Iy(n,t){t.value._routerState=n,t.children.forEach(e=>Iy(n,e))}function pI(n){const t=n.children.length>0?` { ${n.children.map(pI).join(", ")} } `:"";return`${n.value}${t}`}function Oy(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Tr(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Tr(t.params,e.params)||n.params.next(e.params),function U6(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!Tr(n[e],t[e]))return!1;return!0}(t.url,e.url)||n.url.next(e.url),Tr(t.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function Ry(n,t){const e=Tr(n.params,t.params)&&function W6(n,t){return Ca(n,t)&&n.every((e,i)=>Tr(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||Ry(n.parent,t.parent))}function iu(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const o=function aq(n,t,e){return t.children.map(i=>{for(const o of e.children)if(n.shouldReuseRoute(i.value,o.value.snapshot))return iu(n,i,o);return iu(n,i)})}(n,t,e);return new ns(i,o)}{if(n.shouldAttach(t.value)){const r=n.retrieve(t.value);if(null!==r){const s=r.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>iu(n,a)),s}}const i=function lq(n){return new tc(new St(n.url),new St(n.params),new St(n.queryParams),new St(n.fragment),new St(n.data),n.outlet,n.component,n)}(t.value),o=t.children.map(r=>iu(n,r));return new ns(i,o)}}function op(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function ou(n){return"object"==typeof n&&null!=n&&n.outlets}function ky(n,t,e,i,o){let r={};return i&&Ei(i,(s,a)=>{r[a]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),new ba(e.root===n?t:mI(e.root,n,t),r,o)}function mI(n,t,e){const i={};return Ei(n.children,(o,r)=>{i[r]=o===t?e:mI(o,t,e)}),new Yt(n.segments,i)}class gI{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&op(i[0]))throw new Error("Root segment cannot have matrix parameters");const o=i.find(ou);if(o&&o!==XT(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Py{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function vI(n,t,e){if(n||(n=new Yt([],{})),0===n.segments.length&&n.hasChildren())return rp(n,t,e);const i=function pq(n,t,e){let i=0,o=t;const r={match:!1,pathIndex:0,commandIndex:0};for(;o<n.segments.length;){if(i>=e.length)return r;const s=n.segments[o],a=e[i];if(ou(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(!yI(l,c,s))return r;i+=2}else{if(!yI(l,{},s))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,t,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){const r=new Yt(n.segments.slice(0,i.pathIndex),{});return r.children[Ht]=new Yt(n.segments.slice(i.pathIndex),n.children),rp(r,0,o)}return i.match&&0===o.length?new Yt(n.segments,{}):i.match&&!n.hasChildren()?Ny(n,t,e):i.match?rp(n,0,o):Ny(n,t,e)}function rp(n,t,e){if(0===e.length)return new Yt(n.segments,{});{const i=function fq(n){return ou(n[0])?n[0].outlets:{[Ht]:n}}(e),o={};return Ei(i,(r,s)=>{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=vI(n.children[s],t,r))}),Ei(n.children,(r,s)=>{void 0===i[s]&&(o[s]=r)}),new Yt(n.segments,o)}}function Ny(n,t,e){const i=n.segments.slice(0,t);let o=0;for(;o<e.length;){const r=e[o];if(ou(r)){const l=mq(r.outlets);return new Yt(i,l)}if(0===o&&op(e[0])){i.push(new tu(n.segments[t].path,_I(e[0]))),o++;continue}const s=ou(r)?r.outlets[Ht]:`${r}`,a=o<e.length-1?e[o+1]:null;s&&a&&op(a)?(i.push(new tu(s,_I(a))),o+=2):(i.push(new tu(s,{})),o++)}return new Yt(i,{})}function mq(n){const t={};return Ei(n,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Ny(new Yt([],{}),0,e))}),t}function _I(n){const t={};return Ei(n,(e,i)=>t[i]=`${e}`),t}function yI(n,t,e){return n==e.path&&Tr(t,e.parameters)}class vq{constructor(t,e,i,o){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=o}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Oy(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const o=ec(e);t.children.forEach(r=>{const s=r.value.outlet;this.deactivateRoutes(r,o[s],i),delete o[s]}),Ei(o,(r,s)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(t,e,i){const o=t.value,r=e?e.value:null;if(o===r)if(o.component){const s=i.getContext(o.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),o=i&&t.value.component?i.children:e,r=ec(t);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(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),o=i&&t.value.component?i.children:e,r=ec(t);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(t,e,i){const o=ec(e);t.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new F6(r.value.snapshot))}),t.children.length&&this.forwardEvent(new N6(t.value.snapshot))}activateRoutes(t,e,i){const o=t.value,r=e?e.value:null;if(Oy(o),o===r)if(o.component){const s=i.getOrCreateContext(o.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(o.component){const s=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Oy(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=function _q(n){for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(o.snapshot),l=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=o,s.resolver=l,s.outlet&&s.outlet.activateWith(o,l),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class Ly{constructor(t,e){this.routes=t,this.module=e}}function Ns(n){return"function"==typeof n}function Ea(n){return n instanceof ba}const ru=Symbol("INITIAL_VALUE");function su(){return fo(n=>BT(n.map(t=>t.pipe(wn(1),Ci(ru)))).pipe(UT((t,e)=>{let i=!1;return e.reduce((o,r,s)=>o!==ru?o:(r===ru&&(i=!0),i||!1!==r&&s!==e.length-1&&!Ea(r)?o:r),t)},ru),$t(t=>t!==ru),ze(t=>Ea(t)?t:!0===t),wn(1)))}class Aq{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new au,this.attachRef=null}}class au{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Aq,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let bI=(()=>{class n{constructor(e,i,o,r,s){this.parentContexts=e,this.location=i,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.name=r||Ht,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){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.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");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 Error("Cannot activate an already activated outlet");this._activatedRoute=e;const s=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new wq(e,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(f(au),f(pn),f(Xo),xo("name"),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class wq{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===tc?this.route:t===au?this.childContexts:this.parent.get(t,e)}}let CI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=tt({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&$e(0,"router-outlet")},directives:[bI],encapsulation:2}),n})();function EI(n,t=""){for(let e=0;e<n.length;e++){const i=n[e];xq(i,Dq(t,i))}}function xq(n,t){n.children&&EI(n.children,t)}function Dq(n,t){return t?n||t.path?n&&!t.path?`${n}/`:!n&&t.path?t.path:`${n}/${t.path}`:"":n}function Fy(n){const t=n.children&&n.children.map(Fy),e=t?Object.assign(Object.assign({},n),{children:t}):Object.assign({},n);return!e.component&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Ht&&(e.component=CI),e}function Bo(n){return n.outlet||Ht}function SI(n,t){const e=n.filter(i=>Bo(i)===t);return e.push(...n.filter(i=>Bo(i)!==t)),e}const AI={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function sp(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},AI):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(t.matcher||j6)(e,n,t);if(!r)return Object.assign({},AI);const s={};Ei(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,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function ap(n,t,e,i,o="corrected"){if(e.length>0&&function Iq(n,t,e){return e.some(i=>lp(n,t,i)&&Bo(i)!==Ht)}(n,e,i)){const s=new Yt(t,function Tq(n,t,e,i){const o={};o[Ht]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const r of e)if(""===r.path&&Bo(r)!==Ht){const s=new Yt([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,o[Bo(r)]=s}return o}(n,t,i,new Yt(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function Oq(n,t,e){return e.some(i=>lp(n,t,i))}(n,e,i)){const s=new Yt(n.segments,function Mq(n,t,e,i,o,r){const s={};for(const a of i)if(lp(n,e,a)&&!o[Bo(a)]){const l=new Yt([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===r?n.segments.length:t.length,s[Bo(a)]=l}return Object.assign(Object.assign({},o),s)}(n,t,e,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const r=new Yt(n.segments,n.children);return r._sourceSegment=n,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:e}}function lp(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function wI(n,t,e,i){return!!(Bo(n)===i||i!==Ht&&lp(t,e,n))&&("**"===n.path||sp(t,n,e).matched)}function xI(n,t,e){return 0===t.length&&!n.children[e]}class lu{constructor(t){this.segmentGroup=t||null}}class DI{constructor(t){this.urlTree=t}}function cp(n){return new k(t=>t.error(new lu(n)))}function MI(n){return new k(t=>t.error(new DI(n)))}function Rq(n){return new k(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class Nq{constructor(t,e,i,o,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(wr)}apply(){const t=ap(this.urlTree.root,[],[],this.config).segmentGroup,e=new Yt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Ht).pipe(ze(r=>this.createUrlTree(By(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(es(r=>{if(r instanceof DI)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof lu?this.noMatchError(r):r}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Ht).pipe(ze(o=>this.createUrlTree(By(o),t.queryParams,t.fragment))).pipe(es(o=>{throw o instanceof lu?this.noMatchError(o):o}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const o=t.segments.length>0?new Yt([],{[Ht]:t}):t;return new ba(o,e,i)}expandSegmentGroup(t,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(ze(r=>new Yt([],r))):this.expandSegment(t,i,e,i.segments,o,!0)}expandChildren(t,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return yi(o).pipe(Zl(r=>{const s=i.children[r],a=SI(e,r);return this.expandSegmentGroup(t,a,s,r).pipe(ze(l=>({segment:l,outlet:r})))}),UT((r,s)=>(r[s.outlet]=s.segment,r),{}),function D6(n,t){const e=arguments.length>=2;return i=>i.pipe(n?$t((o,r)=>n(o,r,i)):V,Ay(1),e?zT(t):HT(()=>new Kf))}())}expandSegment(t,e,i,o,r,s){return yi(i).pipe(Zl(a=>this.expandSegmentAgainstRoute(t,e,i,a,o,r,s).pipe(es(c=>{if(c instanceof lu)return ht(null);throw c}))),Xl(a=>!!a),es((a,l)=>{if(a instanceof Kf||"EmptyError"===a.name){if(xI(e,o,r))return ht(new Yt([],{}));throw new lu(e)}throw a}))}expandSegmentAgainstRoute(t,e,i,o,r,s,a){return wI(o,e,r,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(t,e,o,r,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,o,r,s):cp(e):cp(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,o,r,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,o,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,o){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?MI(r):this.lineralizeSegments(i,r).pipe($n(s=>{const a=new Yt(s,{});return this.expandSegment(t,a,e,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,o,r,s){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:d}=sp(e,o,r);if(!a)return cp(e);const u=this.applyRedirectCommands(l,o.redirectTo,d);return o.redirectTo.startsWith("/")?MI(u):this.lineralizeSegments(o,u).pipe($n(h=>this.expandSegment(t,e,i,h.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(t,e,i,o,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?ht(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(ze(h=>(i._loadedConfig=h,new Yt(o,{})))):ht(new Yt(o,{}));const{matched:s,consumedSegments:a,lastChild:l}=sp(e,i,o);if(!s)return cp(e);const c=o.slice(l);return this.getChildConfig(t,i,o).pipe($n(u=>{const h=u.module,g=u.routes,{segmentGroup:I,slicedSegments:Q}=ap(e,a,c,g),K=new Yt(I.segments,I.children);if(0===Q.length&&K.hasChildren())return this.expandChildren(h,g,K).pipe(ze(be=>new Yt(a,be)));if(0===g.length&&0===Q.length)return ht(new Yt(a,{}));const ae=Bo(i)===r;return this.expandSegment(h,K,g,Q,ae?Ht:r,!0).pipe(ze(Ce=>new Yt(a.concat(Ce.segments),Ce.children)))}))}getChildConfig(t,e,i){return e.children?ht(new Ly(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?ht(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe($n(o=>o?this.configLoader.load(t.injector,e).pipe(ze(r=>(e._loadedConfig=r,r))):function kq(n){return new k(t=>t.error(xy(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):ht(new Ly([],t))}runCanLoadGuards(t,e,i){const o=e.canLoad;return o&&0!==o.length?ht(o.map(s=>{const a=t.get(s);let l;if(function bq(n){return n&&Ns(n.canLoad)}(a))l=a.canLoad(e,i);else{if(!Ns(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return Ir(l)})).pipe(su(),mi(s=>{if(!Ea(s))return;const a=xy(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),ze(s=>!0===s)):ht(!0)}lineralizeSegments(t,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return ht(i);if(o.numberOfChildren>1||!o.children[Ht])return Rq(t.redirectTo);o=o.children[Ht]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,o){const r=this.createSegmentGroup(t,e.root,i,o);return new ba(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Ei(t,(o,r)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(t,e,i,o){const r=this.createSegments(t,e.segments,i,o);let s={};return Ei(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,o)}),new Yt(r,s)}createSegments(t,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(t,r,o):this.findOrReturn(r,i))}findPosParam(t,e,i){const o=i[e.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return o}findOrReturn(t,e){let i=0;for(const o of e){if(o.path===t.path)return e.splice(i),o;i++}return t}}function By(n){const t={};for(const i of Object.keys(n.children)){const r=By(n.children[i]);(r.segments.length>0||r.hasChildren())&&(t[i]=r)}return function Lq(n){if(1===n.numberOfChildren&&n.children[Ht]){const t=n.children[Ht];return new Yt(n.segments.concat(t.segments),t.children)}return n}(new Yt(n.segments,t))}class TI{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class dp{constructor(t,e){this.component=t,this.route=e}}function Bq(n,t,e){const i=n._root;return cu(i,t?t._root:null,e,[i.value])}function up(n,t,e){const i=function jq(n){if(!n)return null;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:e).get(n)}function cu(n,t,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=ec(t);return n.children.forEach(s=>{(function Uq(n,t,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){const l=function Hq(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Ca(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Ca(n.url,t.url)||!Tr(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ry(n,t)||!Tr(n.queryParams,t.queryParams);default:return!Ry(n,t)}}(s,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new TI(i)):(r.data=s.data,r._resolvedData=s._resolvedData),cu(n,t,r.component?a?a.children:null:e,i,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new dp(a.outlet.component,s))}else s&&du(t,a,o),o.canActivateChecks.push(new TI(i)),cu(n,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]}),Ei(r,(s,a)=>du(s,e.getContext(a),o)),o}function du(n,t,e){const i=ec(n),o=n.value;Ei(i,(r,s)=>{du(r,o.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new dp(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}class Zq{}function II(n){return new k(t=>t.error(n))}class Jq{constructor(t,e,i,o,r,s){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){const t=ap(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Ht);if(null===e)return null;const i=new ip([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ht,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new ns(i,e),r=new fI(this.url,o);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,i=hI(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const r of Object.keys(e.children)){const s=e.children[r],a=SI(t,r),l=this.processSegmentGroup(a,s,r);if(null===l)return null;i.push(...l)}const o=OI(i);return function e9(n){n.sort((t,e)=>t.value.outlet===Ht?-1:e.value.outlet===Ht?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}processSegment(t,e,i,o){for(const r of t){const s=this.processSegmentAgainstRoute(r,e,i,o);if(null!==s)return s}return xI(e,i,o)?[]:null}processSegmentAgainstRoute(t,e,i,o){if(t.redirectTo||!wI(t,e,i,o))return null;let r,s=[],a=[];if("**"===t.path){const g=i.length>0?XT(i).parameters:{};r=new ip(i,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,PI(t),Bo(t),t.component,t,RI(e),kI(e)+i.length,NI(t))}else{const g=sp(e,t,i);if(!g.matched)return null;s=g.consumedSegments,a=i.slice(g.lastChild),r=new ip(s,g.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,PI(t),Bo(t),t.component,t,RI(e),kI(e)+s.length,NI(t))}const l=function t9(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:d}=ap(e,s,a,l.filter(g=>void 0===g.redirectTo),this.relativeLinkResolution);if(0===d.length&&c.hasChildren()){const g=this.processChildren(l,c);return null===g?null:[new ns(r,g)]}if(0===l.length&&0===d.length)return[new ns(r,[])];const u=Bo(t)===o,h=this.processSegment(l,c,d,u?Ht:o);return null===h?null:[new ns(r,h)]}}function n9(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function OI(n){const t=[],e=new Set;for(const i of n){if(!n9(i)){t.push(i);continue}const o=t.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):t.push(i)}for(const i of e){const o=OI(i.children);t.push(new ns(i.value,o))}return t.filter(i=>!e.has(i))}function RI(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function kI(n){let t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function PI(n){return n.data||{}}function NI(n){return n.resolve||{}}function Vy(n){return fo(t=>{const e=n(t);return e?yi(e).pipe(ze(()=>t)):ht(t)})}class d9 extends class c9{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const jy=new je("ROUTES");class LI{constructor(t,e,i,o){this.injector=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=o}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const o=this.loadModuleFactory(e.loadChildren).pipe(ze(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=r.create(t);return new Ly(ZT(s.injector.get(jy,void 0,dt.Self|dt.Optional)).map(Fy),s)}),es(r=>{throw e._loader$=void 0,r}));return e._loader$=new A6(o,()=>new _e).pipe(jT()),e._loader$}loadModuleFactory(t){return Ir(t()).pipe($n(e=>e instanceof cw?ht(e):yi(this.compiler.compileModuleAsync(e))))}}class h9{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function f9(n){throw n}function p9(n,t,e){return t.parse("/")}function FI(n,t){return ht(null)}const m9={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},g9={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let po=(()=>{class n{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 _e,this.errorHandler=f9,this.malformedUriErrorHandler=p9,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:FI,afterPreactivation:FI},this.urlHandlingStrategy=new h9,this.routeReuseStrategy=new d9,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(wr),this.console=s.get(Hh);const u=s.get(ut);this.isNgZoneEnabled=u instanceof ut&&ut.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function H6(){return new ba(new Yt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new LI(s,a,h=>this.triggerEvent(new WT(h)),h=>this.triggerEvent(new $T(h))),this.routerState=uI(this.currentUrlTree,this.rootComponentType),this.transitions=new St({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($t(o=>0!==o.id),ze(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),fo(o=>{let r=!1,s=!1;return ht(o).pipe(mi(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),fo(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 hp(a.source)&&(this.browserUrlTree=a.extractedUrl),ht(a).pipe(fo(u=>{const h=this.transitions.getValue();return i.next(new wy(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions.getValue()?Ho:Promise.resolve(u)}),function Fq(n,t,e,i){return fo(o=>function Pq(n,t,e,i,o){return new Nq(n,t,e,i,o).apply()}(n,t,e,o.extractedUrl,i).pipe(ze(r=>Object.assign(Object.assign({},o),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),mi(u=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:u.urlAfterRedirects})}),function i9(n,t,e,i,o){return $n(r=>function Xq(n,t,e,i,o="emptyOnly",r="legacy"){try{const s=new Jq(n,t,e,i,o,r).recognize();return null===s?II(new Zq):ht(s)}catch(s){return II(s)}}(n,t,r.urlAfterRedirects,e(r.urlAfterRedirects),i,o).pipe(ze(s=>Object.assign(Object.assign({},r),{targetSnapshot:s}))))}(this.rootComponentType,this.config,u=>this.serializeUrl(u),this.paramsInheritanceStrategy,this.relativeLinkResolution),mi(u=>{if("eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const g=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(g,u)}this.browserUrlTree=u.urlAfterRedirects}const h=new T6(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:g,source:I,restoredState:Q,extras:K}=a,ae=new wy(h,this.serializeUrl(g),I,Q);i.next(ae);const le=uI(g,this.rootComponentType).snapshot;return ht(Object.assign(Object.assign({},a),{targetSnapshot:le,urlAfterRedirects:g,extras:Object.assign(Object.assign({},K),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Ho}),Vy(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:h,replaceUrl:g}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!h,replaceUrl:!!g})}),mi(a=>{const l=new I6(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ze(a=>Object.assign(Object.assign({},a),{guards:Bq(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function zq(n,t){return $n(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:s}}=e;return 0===s.length&&0===r.length?ht(Object.assign(Object.assign({},e),{guardsResult:!0})):function Gq(n,t,e,i){return yi(n).pipe($n(o=>function Kq(n,t,e,i,o){const r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return r&&0!==r.length?ht(r.map(a=>{const l=up(a,t,o);let c;if(function Sq(n){return n&&Ns(n.canDeactivate)}(l))c=Ir(l.canDeactivate(n,t,e,i));else{if(!Ns(l))throw new Error("Invalid CanDeactivate guard");c=Ir(l(n,t,e,i))}return c.pipe(Xl())})).pipe(su()):ht(!0)}(o.component,o.route,e,t,i)),Xl(o=>!0!==o,!0))}(s,i,o,n).pipe($n(a=>a&&function yq(n){return"boolean"==typeof n}(a)?function qq(n,t,e,i){return yi(t).pipe(Zl(o=>Jd(function $q(n,t){return null!==n&&t&&t(new P6(n)),ht(!0)}(o.route.parent,i),function Wq(n,t){return null!==n&&t&&t(new L6(n)),ht(!0)}(o.route,i),function Qq(n,t,e){const i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(s=>function Vq(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Zf(()=>ht(s.guards.map(l=>{const c=up(l,s.node,e);let d;if(function Eq(n){return n&&Ns(n.canActivateChild)}(c))d=Ir(c.canActivateChild(i,n));else{if(!Ns(c))throw new Error("Invalid CanActivateChild guard");d=Ir(c(i,n))}return d.pipe(Xl())})).pipe(su())));return ht(r).pipe(su())}(n,o.path,e),function Yq(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return ht(!0);const o=i.map(r=>Zf(()=>{const s=up(r,t,e);let a;if(function Cq(n){return n&&Ns(n.canActivate)}(s))a=Ir(s.canActivate(t,n));else{if(!Ns(s))throw new Error("Invalid CanActivate guard");a=Ir(s(t,n))}return a.pipe(Xl())}));return ht(o).pipe(su())}(n,o.route,e))),Xl(o=>!0!==o,!0))}(i,r,n,t):ht(a)),ze(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),mi(a=>{if(Ea(a.guardsResult)){const c=xy(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new O6(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),$t(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Vy(a=>{if(a.guards.canActivateChecks.length)return ht(a).pipe(mi(l=>{const c=new R6(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),fo(l=>{let c=!1;return ht(l).pipe(function o9(n,t){return $n(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return ht(e);let r=0;return yi(o).pipe(Zl(s=>function r9(n,t,e,i){return function s9(n,t,e,i){const o=Object.keys(n);if(0===o.length)return ht({});const r={};return yi(o).pipe($n(s=>function a9(n,t,e,i){const o=up(n,t,i);return Ir(o.resolve?o.resolve(t,e):o(t,e))}(n[s],t,e,i).pipe(mi(a=>{r[s]=a}))),Ay(1),$n(()=>Object.keys(r).length===o.length?ht(r):Ho))}(n._resolve,n,t,i).pipe(ze(r=>(n._resolvedData=r,n.data=Object.assign(Object.assign({},n.data),hI(n,e).resolve),null)))}(s.route,i,n,t)),mi(()=>r++),Ay(1),$n(s=>r===o.length?ht(e):Ho))})}(this.paramsInheritanceStrategy,this.ngModule.injector),mi({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),mi(l=>{const c=new k6(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),Vy(a=>{const{targetSnapshot:l,id:c,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:h,replaceUrl:g}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!h,replaceUrl:!!g})}),ze(a=>{const l=function sq(n,t,e){const i=iu(n,t._root,e?e._root:void 0);return new dI(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),mi(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)}),((n,t,e)=>ze(i=>(new vq(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),mi({next(){r=!0},complete(){r=!0}}),GT(()=>{var a;r||s||this.cancelNavigationTransition(o,`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===o.id&&(this.currentNavigation=null)}),es(a=>{if(s=!0,function V6(n){return n&&n[QT]}(a)){const l=Ea(a.url);l||(this.navigated=!0,this.restoreHistory(o,!0));const c=new qT(o.id,this.serializeUrl(o.extractedUrl),a.message);i.next(c),l?setTimeout(()=>{const d=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||hp(o.source)};this.scheduleNavigation(d,"imperative",null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const l=new M6(o.id,this.serializeUrl(o.extractedUrl),a);i.next(l);try{o.resolve(this.errorHandler(a))}catch(c){o.reject(c)}}return Ho}))}))}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?void 0: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){EI(e),this.config=e.map(Fy),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,d=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),function cq(n,t,e,i,o){if(0===e.length)return ky(t.root,t.root,t,i,o);const r=function dq(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new gI(!0,0,n);let t=0,e=!1;const i=n.reduce((o,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const a={};return Ei(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?t++:""!=a&&o.push(a))}),o):[...o,r]},[]);return new gI(e,t,i)}(e);if(r.toRoot())return ky(t.root,new Yt([],{}),t,i,o);const s=function uq(n,t,e){if(n.isAbsolute)return new Py(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return new Py(r,r===t.root,0)}const i=op(n.commands[0])?0:1;return function hq(n,t,e){let i=n,o=t,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new Error("Invalid number of '../'");o=i.segments.length}return new Py(i,!1,o-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,n.numberOfDoubleDots)}(r,t,n),a=s.processChildren?rp(s.segmentGroup,s.index,r.commands):vI(s.segmentGroup,s.index,r.commands);return ky(s.segmentGroup,a,t,i,o)}(c,this.currentUrlTree,e,u,null!=d?d:null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=Ea(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 v9(n){for(let t=0;t<n.length;t++){const e=n[t];if(null==e)throw new Error(`The requested path contains ${e} segment at index ${t}`)}}(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({},m9):!1===i?Object.assign({},g9):i,Ea(e))return eI(this.currentUrlTree,e,o);const r=this.parseUrl(e);return eI(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=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new eu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,o,r,s){var a,l,c;if(this.disposed)return Promise.resolve(!1);const d=this.transitions.value,u=hp(i)&&d&&!hp(d.source),h=d.rawUrl.toString()===e.toString(),g=d.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(u&&h&&g)return Promise.resolve(!0);let Q,K,ae;s?(Q=s.resolve,K=s.reject,ae=s.promise):ae=new Promise((be,Ge)=>{Q=be,K=Ge});const le=++this.navigationId;let Ce;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),Ce=o&&o.\u0275routerPageId?o.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):Ce=0,this.setTransition({id:le,targetPageId:Ce,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:Q,reject:K,promise:ae,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ae.catch(be=>Promise.reject(be))}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){const o=new qT(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Dl()},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();function hp(n){return"imperative"!==n}class BI{}class VI{preload(t,e){return ht(null)}}let jI=(()=>{class n{constructor(e,i,o,r){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=new LI(o,i,l=>e.triggerEvent(new WT(l)),l=>e.triggerEvent(new $T(l)))}setUpPreloading(){this.subscription=this.router.events.pipe($t(e=>e instanceof eu),Zl(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(wr);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const s=r._loadedConfig;o.push(this.processRoutes(s.module,s.routes))}else r.loadChildren&&!r.canLoad?o.push(this.preloadConfig(e,r)):r.children&&o.push(this.processRoutes(e,r.children));return yi(o).pipe(Rc(),ze(r=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?ht(i._loadedConfig):this.loader.load(e.injector,i)).pipe($n(r=>(i._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(se(po),se(zh),se(jt),se(BI))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),zy=(()=>{class n{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 wy?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof eu&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof YT&&(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 YT(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){Dl()},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();const Sa=new je("ROUTER_CONFIGURATION"),UI=new je("ROUTER_FORROOT_GUARD"),C9=[Fd,{provide:oI,useClass:rI},{provide:po,useFactory:function D9(n,t,e,i,o,r,s={},a,l){const c=new po(null,n,t,e,i,o,ZT(r));return a&&(c.urlHandlingStrategy=a),l&&(c.routeReuseStrategy=l),function M9(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(s,c),s.enableTracing&&c.events.subscribe(d=>{var u,h;null===(u=console.group)||void 0===u||u.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(h=console.groupEnd)||void 0===h||h.call(console)}),c},deps:[oI,au,Fd,jt,zh,jy,Sa,[class u9{},new ci],[class l9{},new ci]]},au,{provide:tc,useFactory:function T9(n){return n.routerState.root},deps:[po]},jI,VI,class b9{preload(t,e){return e().pipe(es(()=>ht(null)))}},{provide:Sa,useValue:{enableTracing:!1}}];function E9(){return new Tv("Router",po)}let S9=(()=>{class n{constructor(e,i){}static forRoot(e,i){return{ngModule:n,providers:[C9,HI(e),{provide:UI,useFactory:x9,deps:[[po,new ci,new Hr]]},{provide:Sa,useValue:i||{}},{provide:Hl,useFactory:w9,deps:[da,[new rl(sf),new ci],Sa]},{provide:zy,useFactory:A9,deps:[po,Z5,Sa]},{provide:BI,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:VI},{provide:Tv,multi:!0,useFactory:E9},[Gy,{provide:Ad,multi:!0,useFactory:I9,deps:[Gy]},{provide:zI,useFactory:O9,deps:[Gy]},{provide:Cv,multi:!0,useExisting:zI}]]}}static forChild(e){return{ngModule:n,providers:[HI(e)]}}}return n.\u0275fac=function(e){return new(e||n)(se(UI,8),se(po,8))},n.\u0275mod=ot({type:n}),n.\u0275inj=it({}),n})();function A9(n,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new zy(n,t,e)}function w9(n,t,e={}){return e.useHash?new HH(n,t):new nD(n,t)}function x9(n){return"guarded"}function HI(n){return[{provide:mL,multi:!0,useValue:n},{provide:jy,multi:!0,useValue:n}]}let Gy=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new _e}appInitializer(){return this.injector.get(VH,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const o=new Promise(a=>i=a),r=this.injector.get(po),s=this.injector.get(Sa);return"disabled"===s.initialNavigation?(r.setUpLocationChangeListener(),i(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?ht(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),r.initialNavigation()):i(!0),o})}bootstrapListener(e){const i=this.injector.get(Sa),o=this.injector.get(jI),r=this.injector.get(zy),s=this.injector.get(po),a=this.injector.get(As);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),r.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(se(jt))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();function I9(n){return n.appInitializer.bind(n)}function O9(n){return n.bootstrapListener.bind(n)}const zI=new je("Router Initializer");class GI{}class qI{}class is{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.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(t).forEach(e=>{let i=t[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(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof is?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new is;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof is?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const o=("a"===t.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=t.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(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class k9{encodeKey(t){return WI(t)}encodeValue(t){return WI(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const N9=/%(\d[a-f0-9])/gi,L9={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function WI(n){return encodeURIComponent(n).replace(N9,(t,e)=>{var i;return null!==(i=L9[e])&&void 0!==i?i:t})}function $I(n){return`${n}`}class Ls{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new k9,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function P9(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[s,a]=-1==r?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,r)),t.decodeValue(o.slice(r+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const o=t[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(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Ls({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push($I(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const o=i.indexOf($I(t.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class F9{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function YI(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function QI(n){return"undefined"!=typeof Blob&&n instanceof Blob}function KI(n){return"undefined"!=typeof FormData&&n instanceof FormData}class uu{constructor(t,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function B9(n){switch(n){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 is),this.context||(this.context=new F9),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 Ls,this.urlWithParams=e}serializeBody(){return null===this.body?null:YI(this.body)||QI(this.body)||KI(this.body)||function V9(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ls?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||KI(this.body)?null:QI(this.body)?this.body.type||null:YI(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ls?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const i=t.method||this.method,o=t.url||this.url,r=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,d=t.params||this.params;const u=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((h,g)=>h.set(g,t.setHeaders[g]),c)),t.setParams&&(d=Object.keys(t.setParams).reduce((h,g)=>h.set(g,t.setParams[g]),d)),new uu(i,o,s,{params:d,headers:c,context:u,reportProgress:l,responseType:r,withCredentials:a})}}var Zn=(()=>((Zn=Zn||{})[Zn.Sent=0]="Sent",Zn[Zn.UploadProgress=1]="UploadProgress",Zn[Zn.ResponseHeader=2]="ResponseHeader",Zn[Zn.DownloadProgress=3]="DownloadProgress",Zn[Zn.Response=4]="Response",Zn[Zn.User=5]="User",Zn))();class qy{constructor(t,e=200,i="OK"){this.headers=t.headers||new is,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Wy extends qy{constructor(t={}){super(t),this.type=Zn.ResponseHeader}clone(t={}){return new Wy({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class fp extends qy{constructor(t={}){super(t),this.type=Zn.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new fp({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class ZI extends qy{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function $y(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Yy=(()=>{class n{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof uu)r=e;else{let l,c;l=o.headers instanceof is?o.headers:new is(o.headers),o.params&&(c=o.params instanceof Ls?o.params:new Ls({fromObject:o.params})),r=new uu(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=ht(r).pipe(Zl(l=>this.handler.handle(l)));if(e instanceof uu||"events"===o.observe)return s;const a=s.pipe($t(l=>l instanceof fp));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(ze(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(ze(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(ze(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ze(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 Ls).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,$y(o,i))}post(e,i,o={}){return this.request("POST",e,$y(o,i))}put(e,i,o={}){return this.request("PUT",e,$y(o,i))}}return n.\u0275fac=function(e){return new(e||n)(se(GI))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();class XI{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const JI=new je("HTTP_INTERCEPTORS");let j9=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();const U9=/^\)\]\}',?\n/;let eO=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new k(i=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((g,I)=>o.setRequestHeader(g,I.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const g=e.detectContentTypeHeader();null!==g&&o.setRequestHeader("Content-Type",g)}if(e.responseType){const g=e.responseType.toLowerCase();o.responseType="json"!==g?g:"text"}const r=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const g=1223===o.status?204:o.status,I=o.statusText||"OK",Q=new is(o.getAllResponseHeaders()),K=function H9(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(o)||e.url;return s=new Wy({headers:Q,status:g,statusText:I,url:K}),s},l=()=>{let{headers:g,status:I,statusText:Q,url:K}=a(),ae=null;204!==I&&(ae=void 0===o.response?o.responseText:o.response),0===I&&(I=ae?200:0);let le=I>=200&&I<300;if("json"===e.responseType&&"string"==typeof ae){const Ce=ae;ae=ae.replace(U9,"");try{ae=""!==ae?JSON.parse(ae):null}catch(be){ae=Ce,le&&(le=!1,ae={error:be,text:ae})}}le?(i.next(new fp({body:ae,headers:g,status:I,statusText:Q,url:K||void 0})),i.complete()):i.error(new ZI({error:ae,headers:g,status:I,statusText:Q,url:K||void 0}))},c=g=>{const{url:I}=a(),Q=new ZI({error:g,status:o.status||0,statusText:o.statusText||"Unknown Error",url:I||void 0});i.error(Q)};let d=!1;const u=g=>{d||(i.next(a()),d=!0);let I={type:Zn.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(I.total=g.total),"text"===e.responseType&&!!o.responseText&&(I.partialText=o.responseText),i.next(I)},h=g=>{let I={type:Zn.UploadProgress,loaded:g.loaded};g.lengthComputable&&(I.total=g.total),i.next(I)};return o.addEventListener("load",l),o.addEventListener("error",c),o.addEventListener("timeout",c),o.addEventListener("abort",c),e.reportProgress&&(o.addEventListener("progress",u),null!==r&&o.upload&&o.upload.addEventListener("progress",h)),o.send(r),i.next({type:Zn.Sent}),()=>{o.removeEventListener("error",c),o.removeEventListener("abort",c),o.removeEventListener("load",l),o.removeEventListener("timeout",c),e.reportProgress&&(o.removeEventListener("progress",u),null!==r&&o.upload&&o.upload.removeEventListener("progress",h)),o.readyState!==o.DONE&&o.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(se(SD))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();const Qy=new je("XSRF_COOKIE_NAME"),Ky=new je("XSRF_HEADER_NAME");class tO{}let z9=(()=>{class n{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=hD(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(se(ct),se(ao),se(Qy))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),Zy=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(se(tO),se(Ky))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),G9=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(JI,[]);this.chain=i.reduceRight((o,r)=>new XI(o,r),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(se(qI),se(jt))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),q9=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Zy,useClass:j9}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Qy,useValue:e.cookieName}:[],e.headerName?{provide:Ky,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[Zy,{provide:JI,useExisting:Zy,multi:!0},{provide:tO,useClass:z9},{provide:Qy,useValue:"XSRF-TOKEN"},{provide:Ky,useValue:"X-XSRF-TOKEN"}]}),n})(),W9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[Yy,{provide:GI,useClass:G9},eO,{provide:qI,useExisting:eO}],imports:[[q9.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();function ft(n){return null!=n&&"false"!=`${n}`}function mo(n,t=0){return function $9(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function pp(n){return Array.isArray(n)?n:[n]}function Xn(n){return null==n?"":"string"==typeof n?n:`${n}px`}function os(n){return n instanceof Pe?n.nativeElement:n}const Y9=["addListener","removeListener"],Q9=["addEventListener","removeEventListener"],K9=["on","off"];function ic(n,t,e,i){if(S(e)&&(i=e,e=void 0),i)return ic(n,t,e).pipe(iy(i));const[o,r]=function J9(n){return S(n.addEventListener)&&S(n.removeEventListener)}(n)?Q9.map(s=>a=>n[s](t,a,e)):function Z9(n){return S(n.addListener)&&S(n.removeListener)}(n)?Y9.map(nO(n,t)):function X9(n){return S(n.on)&&S(n.off)}(n)?K9.map(nO(n,t)):[];if(!o&&Oc(n))return $n(s=>ic(s,t,e))(Wi(n));if(!o)throw new TypeError("Invalid event target");return new k(s=>{const a=(...l)=>s.next(1<l.length?l:l[0]);return o(a),()=>r(a)})}function nO(n,t){return e=>i=>n[e](t,i)}class e7 extends w{constructor(t,e){super()}schedule(t,e=0){return this}}const mp={setInterval(n,t,...e){const{delegate:i}=mp;return(null==i?void 0:i.setInterval)?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=mp;return((null==t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0};class Xy extends e7{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,i=0){return mp.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;mp.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let o,i=!1;try{this.work(t)}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:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,E(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const hu={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=hu;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=t(r=>{e=void 0,n(r)});return new w(()=>null==e?void 0:e(o))},requestAnimationFrame(...n){const{delegate:t}=hu;return((null==t?void 0:t.requestAnimationFrame)||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=hu;return((null==t?void 0:t.cancelAnimationFrame)||cancelAnimationFrame)(...n)},delegate:void 0},Jy={now:()=>(Jy.delegate||Date).now(),delegate:void 0};class fu{constructor(t,e=fu.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}fu.now=Jy.now;class eb extends fu{constructor(t,e=fu.now){super(t,e),this.actions=[],this._active=!1,this._scheduled=void 0}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}new class n7 extends eb{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;t=t||i.shift();do{if(o=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,o){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw o}}}(class t7 extends Xy{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=hu.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){if(null!=i&&i>0||null==i&&this.delay>0)return super.recycleAsyncId(t,e,i);t.actions.some(o=>o.id===e)||(hu.cancelAnimationFrame(e),t._scheduled=void 0)}});let tb,o7=1;const gp={};function iO(n){return n in gp&&(delete gp[n],!0)}const r7={setImmediate(n){const t=o7++;return gp[t]=!0,tb||(tb=Promise.resolve()),tb.then(()=>iO(t)&&n()),t},clearImmediate(n){iO(n)}},{setImmediate:s7,clearImmediate:a7}=r7,vp={setImmediate(...n){const{delegate:t}=vp;return((null==t?void 0:t.setImmediate)||s7)(...n)},clearImmediate(n){const{delegate:t}=vp;return((null==t?void 0:t.clearImmediate)||a7)(n)},delegate:void 0},_p=new class c7 extends eb{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;t=t||i.shift();do{if(o=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,o){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw o}}}(class l7 extends Xy{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=vp.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){if(null!=i&&i>0||null==i&&this.delay>0)return super.recycleAsyncId(t,e,i);t.actions.some(o=>o.id===e)||(vp.clearImmediate(e),t._scheduled=void 0)}}),yp=new eb(Xy),d7=yp;function oO(n=0,t,e=d7){let i=-1;return null!=t&&(CC(t)?e=t:i=t),new k(o=>{let r=function h7(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;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 rO(n,t=yp){return function u7(n){return Be((t,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()};t.subscribe(qe(e,c=>{i=!0,o=c,r||Wi(n(c)).subscribe(r=qe(e,a,l))},()=>{s=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>oO(n,t))}function xt(n){return Be((t,e)=>{Wi(n).subscribe(qe(e,()=>e.complete(),oe)),!e.closed&&t.subscribe(e)})}let nb;try{nb="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){nb=!1}let oc,Jn=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?ha(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&&!nb)&&"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 n.\u0275fac=function(e){return new(e||n)(se(ao))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({}),n})();const sO=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function aO(){if(oc)return oc;if("object"!=typeof document||!document)return oc=new Set(sO),oc;let n=document.createElement("input");return oc=new Set(sO.filter(t=>(n.setAttribute("type",t),n.type===t))),oc}let mu,bp,wa,ib,sr;function Aa(n){return function f7(){if(null==mu&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>mu=!0}))}finally{mu=mu||!1}return mu}()?n:!!n.capture}function lO(){if(null==wa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return wa=!1,wa;if("scrollBehavior"in document.documentElement.style)wa=!0;else{const n=Element.prototype.scrollTo;wa=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return wa}function gu(){if("object"!=typeof document||!document)return 0;if(null==bp){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),bp=0,0===n.scrollLeft&&(n.scrollLeft=1,bp=0===n.scrollLeft?1:2),n.remove()}return bp}function cO(n){if(function p7(){if(null==ib){const n="undefined"!=typeof document?document.head:null;ib=!(!n||!n.createShadowRoot&&!n.attachShadow)}return ib}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function ob(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function xa(n){return n.composedPath?n.composedPath()[0]:n.target}function rb(){return void 0!==sr.__karma__&&!!sr.__karma__||void 0!==sr.jasmine&&!!sr.jasmine||void 0!==sr.jest&&!!sr.jest||void 0!==sr.Mocha&&!!sr.Mocha}sr="undefined"!=typeof global?global:"undefined"!=typeof window?window:{};const m7=new je("cdk-dir-doc",{providedIn:"root",factory:function g7(){return Yc(ct)}});let go=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new Me,e){const o=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||o;this.value="ltr"===r||"rtl"===r?r:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(se(m7,8))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({}),n})(),vu=(()=>{class n{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new _e,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 k(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(rO(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ht()}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($t(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=os(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ic(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(se(ut),se(Jn),se(ct,8))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Cp=(()=>{class n{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new _e,this._elementScrolled=new k(s=>this.ngZone.runOutsideAngular(()=>ic(this.elementRef.nativeElement,"scroll").pipe(xt(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!=gu()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==gu()?e.left=e.right:1==gu()&&(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;lO()?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==gu()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:s&&1==gu()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(vu),f(ut),f(go,8))},n.\u0275dir=ge({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Ep=(()=>{class n{constructor(e,i,o){this._platform=e,this._change=new _e,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(rO(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 n.\u0275fac=function(e){return new(e||n)(se(Jn),se(ut),se(ct,8))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Da=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({}),n})(),dO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[rc,pu,Da],rc,Da]}),n})();class sb{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class sc extends sb{constructor(t,e,i,o){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o}}class ac extends sb{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class y7 extends sb{constructor(t){super(),this.element=t instanceof Pe?t.nativeElement:t}}class Sp{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof sc?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof ac?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof y7?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class b7 extends Sp{constructor(t,e,i,o,r){super(),this.outletElement=t,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(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let o;return t.viewContainerRef?(o=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=i.create(t.injector||this._defaultInjector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=t,o}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);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=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let _u=(()=>{class n extends Sp{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Me,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)}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);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 n.\u0275fac=function(e){return new(e||n)(f(Xo),f(pn),f(ct))},n.\u0275dir=ge({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Le]}),n})(),Ap=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({}),n})();function vo(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const fO=lO();class k7{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Xn(-this._previousScrollPosition.left),t.style.top=Xn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.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,t.classList.remove("cdk-global-scrollblock"),fO&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),fO&&(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 P7{constructor(t,e,i,o){this._scrollDispatcher=t,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(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class pO{enable(){}disable(){}attach(){}}function lb(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function mO(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class N7{constructor(t,e,i,o){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(t){this._overlayRef=t}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();lb(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 L7=(()=>{class n{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new pO,this.close=s=>new P7(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new k7(this._viewportRuler,this._document),this.reposition=s=>new N7(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=r}}return n.\u0275fac=function(e){return new(e||n)(se(vu),se(Ep),se(ut),se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Eu{constructor(t){if(this.scrollStrategy=new pO,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class F7{constructor(t,e,i,o,r){this.offsetX=i,this.offsetY=o,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class B7{}let V7=(()=>{let n=class{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}};return n=function ue(n,t,e,i){var s,o=arguments.length,r=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(r=(o<3?s(r):o>3?s(t,e,r):s(t,e))||r);return o>3&&r&&Object.defineProperty(t,e,r),r}([ve(1,ci()),ce("design:paramtypes",[F7,B7])],n),n})();class j7{constructor(t,e,i,o,r,s,a,l,c){this._portalOutlet=t,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._backdropElement=null,this._backdropClick=new _e,this._attachments=new _e,this._detachments=new _e,this._locationChanges=w.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._keydownEvents=new _e,this._outsidePointerEvents=new _e,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(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(wn(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),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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;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===(t=this._host)||void 0===t||t.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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Xn(this._config.width),t.height=Xn(this._config.height),t.minWidth=Xn(this._config.minWidth),t.minHeight=Xn(this._config.minHeight),t.maxWidth=Xn(this._config.maxWidth),t.maxHeight=Xn(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const o=pp(e||[]).filter(r=>!!r);o.length&&(i?t.classList.add(...o):t.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(xt($i(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}let Su=(()=>{class n{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||rb()){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),rb()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(se(ct),se(Jn))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const gO="cdk-overlay-connected-position-bounding-box",U7=/([A-Za-z%]+)$/;class H7{constructor(t,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 _e,this._resizeSubscription=w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(gO),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,o=[];let r;for(let s of this._preferredPositions){let a=this._getOriginPoint(t,s),l=this._getOverlayPoint(a,e,s),c=this._getOverlayFit(l,e,i,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(c,l,i)?o.push({position:s,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!r||r.overlayFit.visibleArea<c.visibleArea)&&(r={overlayFit:c,overlayPoint:l,originPoint:a,position:s,overlayRect:e})}if(o.length){let s=null,a=-1;for(const l of o){const c=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);c>a&&(a=c,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ma(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(gO),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,o;if("center"==e.originX)i=t.left+t.width/2;else{const r=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?r:s}return o="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:o}}_getOverlayPoint(t,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:t.x+o,y:t.y+r}}_getOverlayFit(t,e,i,o){const r=_O(e);let{x:s,y:a}=t,l=this._getOffset(o,"x"),c=this._getOffset(o,"y");l&&(s+=l),c&&(a+=c);let h=0-a,g=a+r.height-i.height,I=this._subtractOverflows(r.width,0-s,s+r.width-i.width),Q=this._subtractOverflows(r.height,h,g),K=I*Q;return{visibleArea:K,isCompletelyWithinViewport:r.width*r.height===K,fitsInViewportVertically:Q===r.height,fitsInViewportHorizontally:I==r.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,s=vO(this._overlayRef.getConfig().minHeight),a=vO(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=r;return(t.fitsInViewportVertically||null!=s&&s<=o)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const o=_O(e),r=this._viewportRect,s=Math.max(t.x+o.width-r.width,0),a=Math.max(t.y+o.height-r.height,0),l=Math.max(r.top-i.top-t.y,0),c=Math.max(r.left-i.left-t.x,0);let d=0,u=0;return d=o.width<=r.width?c||-s:t.x<this._viewportMargin?r.left-i.left-t.x:0,u=o.height<=r.height?l||-a:t.y<this._viewportMargin?r.top-i.top-t.y:0,this._previousPushAmount={x:d,y:u},{x:t.x+d,y:t.y+u}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),o=new V7(t,i);this._positionChanges.next(o)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,o=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${i} ${o}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,o=this._isRtl();let r,s,a,d,u,h;if("top"===e.overlayY)s=t.y,r=i.height-s+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,r=i.height-a+this._viewportMargin;else{const g=Math.min(i.bottom-t.y+i.top,t.y),I=this._lastBoundingBoxSize.height;r=2*g,s=t.y-g,r>I&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-I/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)h=i.width-t.x+this._viewportMargin,d=t.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)u=t.x,d=i.right-t.x;else{const g=Math.min(i.right-t.x+i.left,t.x),I=this._lastBoundingBoxSize.width;d=2*g,u=t.x-g,d>I&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-I/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:r}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,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=Xn(i.height),o.top=Xn(i.top),o.bottom=Xn(i.bottom),o.width=Xn(i.width),o.left=Xn(i.left),o.right=Xn(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=Xn(r)),s&&(o.maxWidth=Xn(s))}this._lastBoundingBoxSize=i,Ma(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Ma(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ma(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){const d=this._viewportRuler.getViewportScrollPosition();Ma(i,this._getExactOverlayY(e,t,d)),Ma(i,this._getExactOverlayX(e,t,d))}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=Xn(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(o?i.maxWidth=Xn(s.maxWidth):r&&(i.maxWidth="")),Ma(this._pane.style,i)}_getExactOverlayY(t,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=Xn(r.y),o}_getExactOverlayX(t,e,i){let s,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=Xn(r.x),o}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:mO(t,i),isOriginOutsideView:lb(t,i),isOverlayClipped:mO(e,i),isOverlayOutsideView:lb(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,o)=>i-Math.max(o,0),t)}_getNarrowedViewportRect(){const t=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+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&pp(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Pe)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Ma(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function vO(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(U7);return e&&"px"!==e?null:parseFloat(t)}return n||null}function _O(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const yO="cdk-global-overlay-wrapper";class z7{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(yO),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=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);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(yO),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let G7=(()=>{class n{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new z7}flexibleConnectedTo(e){return new H7(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(se(Ep),se(ct),se(Jn),se(Su))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bO=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),q7=(()=>{class n extends bO{constructor(e){super(e),this._keydownListener=i=>{const o=this._attachedOverlays;for(let r=o.length-1;r>-1;r--)if(o[r]._keydownEvents.observers.length>0){o[r]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),W7=(()=>{class n extends bO{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=xa(o)},this._clickListener=o=>{const r=xa(o),s="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(r)||c.overlayElement.contains(s))break;c._outsidePointerEvents.next(o)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),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}}}return n.\u0275fac=function(e){return new(e||n)(se(ct),se(Jn))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$7=0,ar=(()=>{class n{constructor(e,i,o,r,s,a,l,c,d,u,h){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=d,this._location=u,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),s=new Eu(e);return s.direction=s.direction||this._directionality.value,new j7(r,i,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+$7++,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(As)),new b7(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(se(L7),se(Su),se(Xo),se(G7),se(q7),se(jt),se(ut),se(ct),se(go),se(Fd),se(W7))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})();const Y7=[{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"}],CO=new je("cdk-connected-overlay-scroll-strategy");let EO=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(f(Pe))},n.\u0275dir=ge({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),SO=(()=>{class n{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=w.EMPTY,this._attachSubscription=w.EMPTY,this._detachSubscription=w.EMPTY,this._positionSubscription=w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Me,this.positionChange=new Me,this.attach=new Me,this.detach=new Me,this.overlayKeydown=new Me,this.overlayOutsideClick=new Me,this._templatePortal=new ac(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=Y7);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&&!vo(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 Eu({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 EO?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(function C7(n,t=!1){return Be((e,i)=>{let o=0;e.subscribe(qe(i,r=>{const s=n(r,o++);(s||t)&&i.next(r),!s&&i.complete()}))})}(()=>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 n.\u0275fac=function(e){return new(e||n)(f(ar),f(bt),f(pn),f(CO),f(go,8))},n.\u0275dir=ge({type:n,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:[Cn]}),n})();const K7={provide:CO,deps:[ar],useFactory:function Q7(n){return()=>n.scrollStrategies.reposition()}};let Au=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[ar,K7],imports:[[rc,Ap,dO],dO]}),n})();function hc(n){return $t((t,e)=>n<=e)}function wu(n,t=yp){return Be((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+n,d=t.now();if(d<c)return o=this.schedule(void 0,c-d),void i.add(o);a()}e.subscribe(qe(i,c=>{r=c,s=t.now(),o||(o=t.schedule(l,n),i.add(o))},()=>{a(),i.complete()},void 0,()=>{r=o=null}))})}function wp(n,t=V){return n=null!=n?n:Z7,Be((e,i)=>{let o,r=!0;e.subscribe(qe(i,s=>{const a=t(s);(r||!n(o,a))&&(r=!1,o=a,i.next(s))}))})}function Z7(n,t){return n===t}let AO=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),X7=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=os(e);return new k(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 _e,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 n.\u0275fac=function(e){return new(e||n)(se(AO))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wO=(()=>{class n{constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new Me,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=mo(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(wu(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(X7),f(Pe),f(ut))},n.\u0275dir=ge({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),cb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[AO]}),n})();function xp(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const DO="cdk-describedby-message-container",MO="cdk-describedby-message",Dp="cdk-describedby-host";let tW=0;const Or=new Map;let _o=null,TO=(()=>{class n{constructor(e){this._document=e}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const r=db(i,o);"string"!=typeof i?(IO(i),Or.set(r,{messageElement:i,referenceCount:0})):Or.has(r)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,o){if(!i||!this._isElementNode(e))return;const r=db(i,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof i){const s=Or.get(r);s&&0===s.referenceCount&&this._deleteMessageElement(r)}_o&&0===_o.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Dp}]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Dp);_o&&this._deleteMessagesContainer(),Or.clear()}_createMessageElement(e,i){const o=this._document.createElement("div");IO(o),o.textContent=e,i&&o.setAttribute("role",i),this._createMessagesContainer(),_o.appendChild(o),Or.set(db(e,i),{messageElement:o,referenceCount:0})}_deleteMessageElement(e){var i;const o=Or.get(e);null===(i=null==o?void 0:o.messageElement)||void 0===i||i.remove(),Or.delete(e)}_createMessagesContainer(){if(!_o){const e=this._document.getElementById(DO);null==e||e.remove(),_o=this._document.createElement("div"),_o.id=DO,_o.style.visibility="hidden",_o.classList.add("cdk-visually-hidden"),this._document.body.appendChild(_o)}}_deleteMessagesContainer(){_o&&(_o.remove(),_o=null)}_removeCdkDescribedByReferenceIds(e){const i=xp(e,"aria-describedby").filter(o=>0!=o.indexOf(MO));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=Or.get(i);(function J7(n,t,e){const i=xp(n,t);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",o.messageElement.id),e.setAttribute(Dp,""),o.referenceCount++}_removeMessageReference(e,i){const o=Or.get(i);o.referenceCount--,function eW(n,t,e){const o=xp(n,t).filter(r=>r!=e.trim());o.length?n.setAttribute(t,o.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Dp)}_isElementDescribedByMessage(e,i){const o=xp(e,"aria-describedby"),r=Or.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 n.\u0275fac=function(e){return new(e||n)(se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function db(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function IO(n){n.id||(n.id=`${MO}-${tW++}`)}class OO{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new _e,this._typeaheadSubscription=w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new _e,this.change=new _e,t instanceof $r&&t.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(mi(e=>this._pressedLetters.push(e)),wu(t),$t(()=>this._pressedLetters.length>0),ze(()=>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(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!t[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||vo(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),o=e[i];this._activeItem=null==o?null:o,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof $r?this._items.toArray():this._items}}class nW extends OO{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class ub extends OO{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let hb=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function oW(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function iW(n){try{return n.frameElement}catch(t){return null}}(function hW(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===kO(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=kO(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function dW(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(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 uW(n){return!function sW(n){return function lW(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function rW(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function aW(n){return function cW(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||RO(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(se(Jn))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function RO(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function kO(n){if(!RO(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class fW{constructor(t,e,i,o,r=!1){this._element=t,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(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i<e.length;i++)e[i].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[i]):e[i].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[i]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.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(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.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 t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(wn(1)).subscribe(t)}}let PO=(()=>{class n{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new fW(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(se(hb),se(ut),se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function fb(n){return 0===n.offsetX&&0===n.offsetY}function pb(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const pW=new je("cdk-input-modality-detector-options"),mW={ignoreKeys:[18,17,224,91,16]},fc=Aa({passive:!0,capture:!0});let gW=(()=>{class n{constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new St(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?void 0:l.some(c=>c===s.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=xa(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(fb(s)?"keyboard":"mouse"),this._mostRecentTarget=xa(s))},this._onTouchstart=s=>{pb(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=xa(s))},this._options=Object.assign(Object.assign({},mW),r),this.modalityDetected=this._modality.pipe(hc(1)),this.modalityChanged=this.modalityDetected.pipe(wp()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,fc),o.addEventListener("mousedown",this._onMousedown,fc),o.addEventListener("touchstart",this._onTouchstart,fc)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fc),document.removeEventListener("mousedown",this._onMousedown,fc),document.removeEventListener("touchstart",this._onTouchstart,fc))}}return n.\u0275fac=function(e){return new(e||n)(se(Jn),se(ut),se(ct),se(pW,8))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const vW=new je("liveAnnouncerElement",{providedIn:"root",factory:function _W(){return null}}),yW=new je("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let LO=(()=>{class n{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(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_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 n.\u0275fac=function(e){return new(e||n)(se(vW,8),se(ut),se(ct),se(yW,8))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bW=new je("cdk-focus-monitor-default-options"),Mp=Aa({passive:!0,capture:!0});let Rr=(()=>{class n{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=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new _e,this._rootNodeFocusAndBlurListener=a=>{const l=xa(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let d=l;d;d=d.parentElement)c.call(this,a,d)},this._document=r,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,i=!1){const o=os(e);if(!this._platform.isBrowser||1!==o.nodeType)return ht(null);const r=cO(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new _e,rootNode:r};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=os(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=os(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:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0: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=xa(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.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.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,Mp),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Mp)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(xt(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,Mp),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Mp),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.subject,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}}return n.\u0275fac=function(e){return new(e||n)(se(ut),se(Jn),se(gW),se(ct,8),se(bW,8))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const FO="cdk-high-contrast-black-on-white",BO="cdk-high-contrast-white-on-black",mb="cdk-high-contrast-active";let VO=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}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)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(mb),e.remove(FO),e.remove(BO),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(mb),e.add(FO)):2===i&&(e.add(mb),e.add(BO))}}}return n.\u0275fac=function(e){return new(e||n)(se(Jn),se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jO=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(se(VO))},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[pu,cb]]}),n})();function gb(n){return ze(()=>n)}function UO(n,t){return t?e=>Jd(t.pipe(wn(1),function CW(){return Be((n,t)=>{n.subscribe(qe(t,oe))})}()),e.pipe(UO(n))):$n((e,i)=>n(e,i).pipe(wn(1),gb(e)))}function HO(n,t=yp){const e=oO(n,t);return UO(()=>e)}const zO=new Ar("13.0.0");function EW(n,t){if(1&n&&$e(0,"mat-pseudo-checkbox",4),2&n){const e=fe();G("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function SW(n,t){if(1&n&&(v(0,"span",5),me(1),_()),2&n){const e=fe();T(1),An("(",e.group.label,")")}}const AW=["*"],GO=new Ar("13.0.0"),xW=new je("mat-sanity-checks",{providedIn:"root",factory:function wW(){return!0}});let Pt=(()=>{class n{constructor(e,i,o){this._hasDoneGlobalChecks=!1,this._document=o,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!Mv()||rb())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.remove()}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&GO.full!==zO.full&&console.warn("The Angular Material version ("+GO.full+") does not match the Angular CDK version ("+zO.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(e){return new(e||n)(se(VO),se(xW,8),se(ct))},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[rc],rc]}),n})();function Ta(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=ft(t)}}}function Ia(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}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 Fs(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=ft(t)}}}function Tp(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?mo(e):this.defaultTabIndex}}}function qO(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new _e,this.errorState=!1}updateErrorState(){const t=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==t&&(this.errorState=r,this.stateChanges.next())}}}let vb=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function WO(n,t,e="mat"){n.changes.pipe(Ci(n)).subscribe(({length:i})=>{xu(t,`${e}-2-line`,!1),xu(t,`${e}-3-line`,!1),xu(t,`${e}-multi-line`,!1),2===i||3===i?xu(t,`${e}-${i}-line`,!0):i>3&&xu(t,`${e}-multi-line`,!0)})}function xu(n,t,e){n.nativeElement.classList.toggle(t,e)}let Ip=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Pt],Pt]}),n})();class MW{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const $O={enterDuration:225,exitDuration:150},_b=Aa({passive:!0}),YO=["mousedown","touchstart"],QO=["mouseup","mouseleave","touchend","touchcancel"];class IW{constructor(t,e,i,o){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=os(i))}fadeInRipple(t,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},$O),i.animation);i.centered&&(t=o.left+o.width/2,e=o.top+o.height/2);const s=i.radius||function RW(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),o=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+o*o)}(t,e,o),a=t-o.left,l=e-o.top,c=r.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=l-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d),function OW(n){window.getComputedStyle(n).getPropertyValue("opacity")}(d),d.style.transform="scale(1)";const u=new MW(this,d,i);return u.state=0,this._activeRipples.add(u),i.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const h=u===this._mostRecentTransientRipple;u.state=1,!i.persistent&&(!h||!this._isPointerDown)&&u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,o=Object.assign(Object.assign({},$O),t.config.animation);i.style.transitionDuration=`${o.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},o.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=os(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(YO))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(QO),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=fb(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!pb(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.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._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,_b)})})}_removeTriggerEvents(){this._triggerElement&&(YO.forEach(t=>{this._triggerElement.removeEventListener(t,this,_b)}),this._pointerUpEventsRegistered&&QO.forEach(t=>{this._triggerElement.removeEventListener(t,this,_b)}))}}const kW=new je("mat-ripple-global-options");let Oa=(()=>{class n{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 IW(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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(ut),f(Jn),f(kW,8),f(Ri,8))},n.\u0275dir=ge({type:n,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"]}),n})(),Du=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Pt,pu],Pt]}),n})(),KO=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(f(Ri,8))},n.\u0275cmp=tt({type:n,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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),yb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Pt]]}),n})();const ZO=new je("MAT_OPTION_PARENT_COMPONENT"),XO=new je("MatOptgroup");let PW=0;class NW{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let LW=(()=>{class n{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-"+PW++,this.onSelectionChange=new Me,this._stateChanges=new _e}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)&&!vo(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 NW(this,e))}}return n.\u0275fac=function(e){Dl()},n.\u0275dir=ge({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),bb=(()=>{class n extends LW{constructor(e,i,o,r){super(e,i,o,r)}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Jt),f(ZO,8),f(XO,8))},n.\u0275cmp=tt({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&Te("click",function(){return i._selectViaInteraction()})("keydown",function(r){return i._handleKeydown(r)}),2&e&&(Ss("id",i.id),Dt("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:[Le],ngContentSelectors:AW,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&&(In(),ie(0,EW,1,2,"mat-pseudo-checkbox",0),v(1,"span",1),kt(2),_(),ie(3,SW,2,1,"span",2),$e(4,"div",3)),2&e&&(G("ngIf",i.multiple),T(3),G("ngIf",i.group&&i.group._inert),T(1),G("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[cn,Oa,KO],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function JO(n,t,e){if(e.length){let i=t.toArray(),o=e.toArray(),r=0;for(let s=0;s<n+1;s++)i[s].group&&i[s].group===o[r]&&r++;return r}return 0}let Cb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Du,Hi,Pt,yb]]}),n})();const BW=["mat-menu-item",""];function VW(n,t){1&n&&(_s(),v(0,"svg",2),$e(1,"polygon",3),_())}const e1=["*"];function jW(n,t){if(1&n){const e=yt();v(0,"div",0),Te("keydown",function(o){return Ue(e),fe()._handleKeydown(o)})("click",function(){return Ue(e),fe().closed.emit("click")})("@transformMenu.start",function(o){return Ue(e),fe()._onAnimationStart(o)})("@transformMenu.done",function(o){return Ue(e),fe()._onAnimationDone(o)}),v(1,"div",1),kt(2),_(),_()}if(2&n){const e=fe();G("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Dt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Op={transformMenu:lo("transformMenu",[pi("void",Wt({opacity:0,transform:"scale(0.8)"})),ri("void => enter",fi("120ms cubic-bezier(0, 0, 0.2, 1)",Wt({opacity:1,transform:"scale(1)"}))),ri("* => void",fi("100ms 25ms linear",Wt({opacity:0})))]),fadeInItems:lo("fadeInItems",[pi("showing",Wt({opacity:1})),ri("void => *",[Wt({opacity:0}),fi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},UW=new je("MatMenuContent"),Eb=new je("MAT_MENU_PANEL"),HW=Fs(Ta(class{}));let Bs=(()=>{class n extends HW{constructor(e,i,o,r,s){super(),this._elementRef=e,this._focusMonitor=o,this._parentMenu=r,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new _e,this._focused=new _e,this._highlighted=!1,this._triggersSubmenu=!1,r&&r.addItem&&r.addItem(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()}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(ct),f(Rr),f(Eb,8),f(Jt))},n.\u0275cmp=tt({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,i){1&e&&Te("click",function(r){return i._checkDisabled(r)})("mouseenter",function(){return i._handleMouseEnter()}),2&e&&(Dt("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:[Le],attrs:BW,ngContentSelectors:e1,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&&(In(),kt(0),$e(1,"div",0),ie(2,VW,2,0,"svg",1)),2&e&&(T(1),G("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),T(1),G("ngIf",i._triggersSubmenu))},directives:[Oa,cn],encapsulation:2,changeDetection:0}),n})();const t1=new je("mat-menu-default-options",{providedIn:"root",factory:function zW(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let GW=0,Mu=(()=>{class n{constructor(e,i,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new $r,this._tabSubscription=w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new _e,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Me,this.close=this.closed,this.panelId="mat-menu-panel-"+GW++}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 ub(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ci(this._directDescendantItems),fo(e=>$i(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Ci(this._directDescendantItems),fo(i=>$i(...i.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,o=this._keyManager;switch(i){case 27:vo(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(38===i||40===i)&&o.setFocusOrigin("keyboard"),o.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(wn(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const i=this._keyManager;if(i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let o=this._directDescendantItems.first._getHostElement().parentElement;for(;o;){if("menu"===o.getAttribute("role")){o.focus();break}o=o.parentElement}}}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){const o=this._classList;o["mat-menu-before"]="before"===e,o["mat-menu-after"]="after"===e,o["mat-menu-above"]="above"===i,o["mat-menu-below"]="below"===i}_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(Ci(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(ut),f(t1))},n.\u0275dir=ge({type:n,contentQueries:function(e,i,o){if(1&e&&(Je(o,UW,5),Je(o,Bs,5),Je(o,Bs,4)),2&e){let r;Oe(r=Re())&&(i.lazyContent=r.first),Oe(r=Re())&&(i._allItems=r),Oe(r=Re())&&(i.items=r)}},viewQuery:function(e,i){if(1&e&&Mt(bt,5),2&e){let o;Oe(o=Re())&&(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"}}),n})(),Tu=(()=>{class n extends Mu{constructor(e,i,o){super(e,i,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(ut),f(t1))},n.\u0275cmp=tt({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&Dt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Lt([{provide:Eb,useExisting:n}]),Le],ngContentSelectors:e1,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&&(In(),ie(0,jW,3,6,"ng-template"))},directives:[Xi],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[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}\n"],encapsulation:2,data:{animation:[Op.transformMenu,Op.fadeInItems]},changeDetection:0}),n})();const n1=new je("mat-menu-scroll-strategy"),WW={provide:n1,deps:[ar],useFactory:function qW(n){return()=>n.scrollStrategies.reposition()}},r1=Aa({passive:!0});let $W=(()=>{class n{constructor(e,i,o,r,s,a,l,c){this._overlay=e,this._element=i,this._viewContainerRef=o,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=w.EMPTY,this._hoverSubscription=w.EMPTY,this._menuCloseSubscription=w.EMPTY,this._handleTouchStart=d=>{pb(d)||(this._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new Me,this.onMenuOpen=this.menuOpened,this.menuClosed=new Me,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=s instanceof Mu?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,r1),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _ariaExpanded(){return this.menuOpen||null}get _ariaControl(){return this.menuOpen?this.menu.panelId:null}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._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,r1),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(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Mu&&this.menu._startAnimation()}closeMenu(){this.menu.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){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Mu?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe($t(o=>"void"===o.toState),wn(1),xt(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,i=this.menu.parentMenu;for(;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Eu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[i,o]="before"===this.menu.xPosition?["end","start"]:["start","end"],[r,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[r,s],[c,d]=[i,o],u=0;this.triggersSubmenu()?(d=i="before"===this.menu.xPosition?"start":"end",o=c="end"===i?"start":"end",u="bottom"===r?8:-8):this.menu.overlapTrigger||(a="top"===r?"bottom":"top",l="top"===s?"bottom":"top"),e.withPositions([{originX:i,originY:a,overlayX:c,overlayY:r,offsetY:u},{originX:o,originY:a,overlayX:d,overlayY:r,offsetY:u},{originX:i,originY:l,overlayX:c,overlayY:s,offsetY:-u},{originX:o,originY:l,overlayX:d,overlayY:s,offsetY:-u}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return $i(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:ht(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe($t(s=>s!==this._menuItemInstance),$t(()=>this._menuOpen)):ht(),i)}_handleMousedown(e){fb(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($t(e=>e===this._menuItemInstance&&!e.disabled),HO(0,_p)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Mu&&this.menu._isAnimating?this.menu._animationDone.pipe(wn(1),HO(0,_p),xt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new ac(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(f(ar),f(Pe),f(pn),f(n1),f(Eb,8),f(Bs,10),f(go,8),f(Rr))},n.\u0275dir=ge({type:n,hostVars:3,hostBindings:function(e,i){1&e&&Te("mousedown",function(r){return i._handleMousedown(r)})("keydown",function(r){return i._handleKeydown(r)})("click",function(r){return i._handleClick(r)}),2&e&&Dt("aria-expanded",i._ariaExpanded)("aria-controls",i._ariaControl)("aria-haspopup",i._ariaHaspopup)},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"}}),n})(),Vs=(()=>{class n extends $W{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=ge({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Le]}),n})(),YW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[WW],imports:[[Hi,Pt,Du,Au],Da,Pt]}),n})();function s1(n){for(let t in n){let e=n[t]||"";switch(t){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;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":n["-webkit-"+t]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+t]=isNaN(+e)?"0":e}}return n}const Sb="inline",Rp=["row","column","row-reverse","column-reverse"];function a1(n){let[t,e,i]=l1(n);return function KW(n,t=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":t||null}}(t,e,i)}function l1(n){n=n?n.toLowerCase():"";let[t,e,i]=n.split(" ");return Rp.find(o=>o===t)||(t=Rp[0]),e===Sb&&(e=i!==Sb?i:"",i=Sb),[t,QW(e),!!i]}function Iu(n){let[t]=l1(n);return t.indexOf("row")>-1}function QW(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function rs(n,...t){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of t)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}const XW={provide:Cv,useFactory:function ZW(n,t){return()=>{if(ha(t)){const e=Array.from(n.querySelectorAll(`[class*=${c1}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(o=>{o.classList.contains(`${c1}ssr`)&&o.parentNode?o.parentNode.removeChild(o):o.className.replace(i,"")})}}},deps:[ct,ao],multi:!0},c1="flex-layout-";let Ab=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[XW]}),n})();class js{constructor(t=!1,e="all",i="",o="",r=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=o,this.priority=r,this.property=""}clone(){return new js(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let JW=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wb={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},Us=new je("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>wb}),mc=new je("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),kp=new je("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function xb(n,t){return n=n?n.clone():new js,t&&(n.mqAlias=t.alias,n.mediaQuery=t.mediaQuery,n.suffix=t.suffix,n.priority=t.priority),n}class Un{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}let En=(()=>{class n{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:s1(i),this._applyMultiValueStyleToElement(r,e)}applyStyleToElements(e,i=[]){const o=this.layoutConfig.disableVendorPrefixes?e:s1(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)||zl(this._platformId)&&this._serverModuleLoaded?o:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){return e.getAttribute(i)||""}lookupInlineStyle(e,i){return ha(this._platformId)?e.style.getPropertyValue(i):this._getServerStyle(e,i)}lookupStyle(e,i,o=!1){let r="";return e&&((r=this.lookupInlineStyle(e,i))||(ha(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+"":"",ha(this._platformId)||!this._serverModuleLoaded?ha(this._platformId)?i.style.setProperty(o,a):this._setServerStyle(i,o,a):this._serverStylesheet.addStyleToElement(i,o,a)})}_setServerStyle(e,i,o){i=i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const r=this._readStyleAttribute(e);r[i]=o||"",this._writeStyleAttribute(e,r)}_getServerStyle(e,i){return this._readStyleAttribute(e)[i]||""}_readStyleAttribute(e){const i={},o=e.getAttribute("style");if(o){const r=o.split(/;+/g);for(let s=0;s<r.length;s++){const a=r[s].trim();if(a.length>0){const l=a.indexOf(":");if(-1===l)throw new Error(`Invalid CSS style: ${a}`);i[a.substr(0,l).trim()]=a.substr(l+1).trim()}}}return i}_writeStyleAttribute(e,i){let o="";for(const r in i)i[r]&&(o+=r+":"+i[r]+";");e.setAttribute("style",o)}}return n.\u0275fac=function(e){return new(e||n)(se(JW),se(mc),se(ao),se(Us))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function gc(n,t){return(t&&t.priority||0)-(n&&n.priority||0)}function e$(n,t){return(n.priority||0)-(t.priority||0)}let Pp=(()=>{class n{constructor(e,i,o){this._zone=e,this._platformId=i,this._document=o,this.source=new St(new js(!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){const i=this.registry.get(e);return i?i.matches:this.registerQuery(e).some(o=>o.matches)}observe(e,i=!1){if(e&&e.length){const o=this._observable$.pipe($t(s=>!i||e.indexOf(s.mediaQuery)>-1));return $i(new k(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 t$(n,t){const e=n.filter(i=>!d1[i]);if(e.length>0){const i=e.join(", ");try{const o=t.createElement("style");o.setAttribute("type","text/css"),o.styleSheet||o.appendChild(t.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`)),t.head.appendChild(o),e.forEach(r=>d1[r]=o)}catch(o){console.error(o)}}}(i,this._document),i.forEach(r=>{const s=l=>{this._zone.run(()=>this.source.next(new js(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 js(!0,r))}),o}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function n$(n,t){return t&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,ha(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(se(ut),se(ao),se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const d1={},i$=[{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}],u1="(orientation: portrait) and (max-width: 599.98px)",h1="(orientation: landscape) and (max-width: 959.98px)",f1="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",p1="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",m1="(orientation: portrait) and (min-width: 840px)",g1="(orientation: landscape) and (min-width: 1280px)",ss={HANDSET:`${u1}, ${h1}`,TABLET:`${f1} , ${p1}`,WEB:`${m1}, ${g1} `,HANDSET_PORTRAIT:`${u1}`,TABLET_PORTRAIT:`${f1} `,WEB_PORTRAIT:`${m1}`,HANDSET_LANDSCAPE:`${h1}`,TABLET_LANDSCAPE:`${p1}`,WEB_LANDSCAPE:`${g1}`},o$=[{alias:"handset",priority:2e3,mediaQuery:ss.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ss.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ss.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ss.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ss.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ss.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ss.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ss.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ss.WEB_PORTRAIT,overlapping:!0}],r$=/(\.|-|_)/g;function s$(n){let t=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return t.toUpperCase()+e}const d$=new je("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=Yc(kp),t=Yc(Us),e=[].concat.apply([],(n||[]).map(o=>Array.isArray(o)?o:[o]));return function c$(n,t=[]){const e={};return n.forEach(i=>{e[i.alias]=i}),t.forEach(i=>{e[i.alias]?rs(e[i.alias],i):e[i.alias]=i}),function l$(n){return n.forEach(t=>{t.suffix||(t.suffix=function a$(n){return n.replace(r$,"|").split("|").map(s$).join("")}(t.alias),t.overlapping=!!t.overlapping)}),n}(Object.keys(e).map(i=>e[i]))}((t.disableDefaultBps?[]:i$).concat(t.addOrientationBps?o$:[]),e)}});let Np=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(e$)}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=>1==e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>e.suffix?e.suffix:"")}findWithPredicate(e,i){let o=this.findByMap.get(e);return o||(o=this.items.find(i)||null,this.findByMap.set(e,o)),o||null}}return n.\u0275fac=function(e){return new(e||n)(se(d$))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const vc="print",u$={alias:vc,mediaQuery:vc,priority:1e3};let v1=(()=>{class n{constructor(e,i,o){this.breakpoints=e,this.layoutConfig=i,this._document=o,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new h$,this.deactivations=[]}withPrintQuery(e){return[...e,vc]}isPrintEvent(e){return e.mediaQuery.startsWith(vc)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}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(gc)}updateEvent(e){let i=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(i=this.getEventBreakpoints(e)[0],e.mediaQuery=i?i.mediaQuery:""),xb(e,i)}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 js(!0,vc))),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 this.registerBeforeAfterPrintHooks(e),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(i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const i=this.breakpoints.findByQuery(e.mediaQuery);i&&(this.deactivations.push(i),this.deactivations.sort(gc))}}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 n.\u0275fac=function(e){return new(e||n)(se(Np),se(Us),se(ct))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class h${constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(u$),t.sort(gc),t.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function f$(n){return!!n&&n.mediaQuery.startsWith(vc)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}let xn=(()=>{class n{constructor(e,i,o){this.matchMedia=e,this.breakpoints=i,this.hook=o,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 _e,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);i&&((e=xb(e,i)).matches&&-1===this.activatedBreakpoints.indexOf(i)?(this.activatedBreakpoints.push(i),this.activatedBreakpoints.sort(gc),this.updateStyles()):!e.matches&&-1!==this.activatedBreakpoints.indexOf(i)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(i),1),this.activatedBreakpoints.sort(gc),this.updateStyles()))}init(e,i,o,r,s=[]){_1(this.updateMap,e,i,o),_1(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){let s=this.elementMap.get(e);if(s){const l=(s.get(r)||new Map).set(i,o);s.set(r,l),this.elementMap.set(e,s)}else s=(new Map).set(r,(new Map).set(i,o)),this.elementMap.set(e,s);const a=this.getValue(e,i);void 0!==a&&this.updateElement(e,i,a)}trackValue(e,i){return this.subject.asObservable().pipe($t(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=$i(...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}const o=e.get("");return void 0===i||o&&o.has(i)?o:void 0}observeActivations(){const i=this.breakpoints.items.map(o=>o.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(i)).pipe(mi(this.hook.interceptEvents(this)),$t(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(se(Pp),se(Np),se(v1))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function _1(n,t,e,i){if(void 0!==i){let o=n.get(t);o||(o=new Map,n.set(t,o)),o.set(e,i)}}let kn=(()=>{class n{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 _e,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={}}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=a1(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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Un),f(En),f(xn))},n.\u0275dir=ge({type:n,features:[Cn]}),n})(),v$=(()=>{class n{constructor(e,i,o){this.breakpoints=e,this.matchMedia=i,this.hook=o,this.filterOverlaps=!1,this.destroyed$=new _e,this._media$=this.watchActivations(),this.media$=this._media$.pipe($t(r=>r.length>0),ze(r=>r[0]))}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(e){return function y$(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}(function g$(n){return Array.isArray(n)?n:[n]}(e)).some(o=>{const r=function _$(n,t){const e=t.findByAlias(n)||t.findByQuery(n);return e?e.mediaQuery: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($t(r=>r.matches),wu(0,_p),fo(r=>ht(this.findAllActivations())),ze(r=>this.filterOverlaps?r.filter(s=>{const a=this.breakpoints.findByQuery(s.mediaQuery);return!a||!a.overlapping}):r),$t(r=>r.filter(a=>a.mediaQuery.length>0).length>0),xt(this.destroyed$))}findAllActivations(){return this.matchMedia.activations.map(o=>new js(!0,o)).map(o=>this.hook.isPrintEvent(o)?this.hook.updateEvent(o):o).map(o=>xb(o,this.breakpoints.findByQuery(o.mediaQuery))).sort(gc)}}return n.\u0275fac=function(e){return new(e||n)(se(Np),se(Pp),se(v1))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function y1(n,t="1",e="1"){let i=[t,e,n],o=n.indexOf("calc");if(o>0){i[2]=b1(n.substring(o).trim());let r=n.substr(0,o).trim().split(" ");2==r.length&&(i[0]=r[0],i[1]=r[1])}else if(0==o)i[2]=b1(n.trim());else{let r=n.split(" ");i=3===r.length?r:[t,e,n]}return i}function b1(n){return n.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let w$=(()=>{class n extends kn{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 Xi(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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(En),f(xn),f(Ll),f(ws),f(Io),f(Xi,10))},n.\u0275dir=ge({type:n,inputs:{klass:["class","klass"]},features:[Le]}),n})();const x$=["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 as=(()=>{class n extends w${constructor(){super(...arguments),this.inputs=x$}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[Le]}),n})();class O${constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function C1(n){let t=typeof n;return"object"===t?n.constructor===Array?"array":n.constructor===Set?"set":"object":t}function S1(n){const[t,...e]=n.split(":");return new O$(t,e.join(":"))}function A1(n,t){return t.key&&(n[t.key]=t.value),n}let P$=(()=>{class n extends kn{constructor(e,i,o,r,s,a,l,c,d){super(e,null,i,o),this.sanitizer=r,this.ngStyleInstance=l,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new Ud(e,s,a)),this.init();const u=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(u),this.isServer=c&&zl(d)}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=>this.sanitizer.sanitize(Xt.STYLE,o)||"";if(e)switch(C1(e)){case"string":return x1(function R$(n,t=";"){return String(n).trim().split(t).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return x1(e,i);default:return function E1(n,t){let e=[];return"set"===C1(n)?n.forEach(i=>e.push(i)):Object.keys(n).forEach(i=>{e.push(`${i}:${n[i]}`)}),function k$(n,t){return n.map(S1).filter(i=>!!i).map(i=>(t&&(i.value=t(i.value)),i)).reduce(A1,{})}(e,t)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(En),f(xn),f(fa),f(ws),f(Io),f(Ud,10),f(mc),f(ao))},n.\u0275dir=ge({type:n,features:[Le]}),n})();const N$=["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 w1=(()=>{class n extends P${constructor(){super(...arguments),this.inputs=N$}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[Le]}),n})();function x1(n,t){return n.map(S1).filter(i=>!!i).map(i=>(t&&(i.value=t(i.value)),i)).reduce(A1,{})}let D1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Ab]]}),n})(),L$=(()=>{class n extends Un{buildStyles(e){return a1(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const F$=["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 M1=(()=>{class n extends kn{constructor(e,i,o,r){super(e,o,i,r),this.DIRECTIVE_KEY="layout",this.styleCache=B$,this.init()}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(En),f(L$),f(xn))},n.\u0275dir=ge({type:n,features:[Le]}),n})(),Hs=(()=>{class n extends M1{constructor(){super(...arguments),this.inputs=F$}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[Le]}),n})();const B$=new Map,T1={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let V$=(()=>{class n extends Un{constructor(e){super(),this._styler=e}buildStyles(e,i){return e.endsWith(Fp)?function $$(n,t){const[e,i]=n.split(" "),r=c=>`-${c}`;let s="0px",a=r(i||e),l="0px";return"rtl"===t?l=r(e):s=r(e),{margin:`0px ${s} ${a} ${l}`}}(e=e.slice(0,e.indexOf(Fp)),i.directionality):{}}sideEffect(e,i,o){const r=o.items;if(e.endsWith(Fp)){const s=function W$(n,t){const[e,i]=n.split(" ");let r="0px",a="0px";return"rtl"===t?a=e:r=e,{padding:`0px ${r} ${i||e} ${a}`}}(e=e.slice(0,e.indexOf(Fp)),o.directionality);this._styler.applyStyleToElements(s,o.items)}else{const s=r.pop(),a=function Y$(n,t){const e=I1(t.directionality,t.layout),i=Object.assign({},T1);return i[e]=n,i}(e,o);this._styler.applyStyleToElements(a,r),this._styler.applyStyleToElements(T1,[s])}}}return n.\u0275fac=function(e){return new(e||n)(se(En))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const j$=["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 U$=(()=>{class n extends kn{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 _e;const l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(xt(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],Rp.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=H$:"row"===r&&"rtl"!==o?this.styleCache=G$:"column"===r&&"rtl"===o?this.styleCache=z$:"column"===r&&"rtl"!==o&&(this.styleCache=q$),this.addStyles(e,{directionality:o,items:i,layout:r})}}clearStyles(){const e=Object.keys(this.mru).length>0,i=e?"padding":I1(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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(ut),f(go),f(En),f(V$),f(xn))},n.\u0275dir=ge({type:n,features:[Le]}),n})(),Lp=(()=>{class n extends U${constructor(){super(...arguments),this.inputs=j$}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[Le]}),n})();const H$=new Map,z$=new Map,G$=new Map,q$=new Map,Fp=" grid";function I1(n,t){switch(t){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===n?"margin-left":"margin-right";case"row-reverse":return"rtl"===n?"margin-right":"margin-left"}}let Q$=(()=>{class n extends Un{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=Iu(l)?"max-width":"max-height",d=Iu(l)?"min-width":"min-height",u=String(a).indexOf("calc")>-1,h=u||"auto"===a,g=String(a).indexOf("%")>-1&&!u,I=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 Q=u||I;o="0"==o?0:o,r="0"==r?0:r;const K=!o&&!r;let ae={};const le={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":const Ce=!1!==this.layoutConfig.useColumnBasisZero;a="row"===l?"0%":Ce?"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:!Q&&!g&&!isNaN(a)&&(a+="%"),"0%"===a&&(Q=!0),"0px"===a&&(a="0%"),ae=rs(le,u?{"flex-grow":o,"flex-shrink":r,"flex-basis":Q?a:"100%"}:{flex:`${o} ${r} ${Q?a:"100%"}`})}return ae.flex||ae["flex-grow"]||(ae=rs(le,u?{"flex-grow":o,"flex-shrink":r,"flex-basis":a}:{flex:`${o} ${r} ${a}`})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(ae[d]=K||Q&&o?a:null,ae[c]=K||!h&&r?a:null),ae[d]||ae[c]?i.hasWrap&&(ae[u?"flex-basis":"flex"]=ae[c]?u?ae[c]:`${o} ${r} ${ae[c]}`:u?ae[d]:`${o} ${r} ${ae[d]}`):ae=rs(le,u?{"flex-grow":o,"flex-shrink":r,"flex-basis":a}:{flex:`${o} ${r} ${a}`}),rs(ae,{"box-sizing":"border-box"})}}return n.\u0275fac=function(e){return new(e||n)(se(Us))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const K$=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let Z$=(()=>{class n extends kn{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(xt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(xt(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=eY:r&&!s?this.styleCache=X$:!r&&s?this.styleCache=tY:!r&&!s&&(this.styleCache=J$);const l=y1(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=y1(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(En),f(Us),f(Q$),f(xn))},n.\u0275dir=ge({type:n,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Le]}),n})(),Ra=(()=>{class n extends Z${constructor(){super(...arguments),this.inputs=K$}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[Le]}),n})();const X$=new Map,J$=new Map,eY=new Map,tY=new Map;let nY=(()=>{class n extends Un{buildStyles(e){return{order:e&&parseInt(e,10)||""}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const iY=["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 oY=(()=>{class n extends kn{constructor(e,i,o,r){super(e,o,i,r),this.DIRECTIVE_KEY="flex-order",this.styleCache=rY,this.init()}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(En),f(nY),f(xn))},n.\u0275dir=ge({type:n,features:[Le]}),n})();const rY=new Map;let Mb=(()=>{class n extends oY{constructor(){super(...arguments),this.inputs=iY}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[Le]}),n})();const yY={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let bY=(()=>{class n extends Un{buildStyles(e){return yY}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),O1=(()=>{class n extends kn{constructor(e,i,o,r){super(e,o,i,r),this.styleCache=CY,this.addStyles("")}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(En),f(bY),f(xn))},n.\u0275dir=ge({type:n,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[Le]}),n})();const CY=new Map;let EY=(()=>{class n extends Un{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 rs(o,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===s?Iu(i.layout)?null:"100%":null,"max-height":"stretch"===s&&Iu(i.layout)?"100%":null})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const SY=["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 AY=(()=>{class n extends kn{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(xt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",o=this.inline;"row"===i&&o?this.styleCache=TY:"row"!==i||o?"row-reverse"===i&&o?this.styleCache=OY:"row-reverse"!==i||o?"column"===i&&o?this.styleCache=IY:"column"!==i||o?"column-reverse"===i&&o?this.styleCache=RY:"column-reverse"===i&&!o&&(this.styleCache=MY):this.styleCache=xY:this.styleCache=DY:this.styleCache=wY,this.addStyles(e,{layout:i,inline:o})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),Rp.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(En),f(EY),f(xn))},n.\u0275dir=ge({type:n,features:[Le]}),n})(),ka=(()=>{class n extends AY{constructor(){super(...arguments),this.inputs=SY}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[Le]}),n})();const wY=new Map,xY=new Map,DY=new Map,MY=new Map,TY=new Map,IY=new Map,OY=new Map,RY=new Map;let R1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Ab,rc]]}),n})(),j1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Ab]]}),n})(),eK=(()=>{class n{constructor(e,i){zl(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Us,useValue:Object.assign(Object.assign({},wb),e)},{provide:kp,useValue:i,multi:!0},{provide:mc,useValue:!0}]:[{provide:Us,useValue:Object.assign(Object.assign({},wb),e)},{provide:kp,useValue:i,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(se(mc),se(ao))},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[R1,D1,j1],R1,D1,j1]}),n})();var zs=U(9795);function tK(n,t){}class Tb{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const nK={dialogContainer:lo("dialogContainer",[pi("void, exit",Wt({opacity:0,transform:"scale(0.7)"})),pi("enter",Wt({transform:"none"})),ri("* => enter",fi("150ms cubic-bezier(0, 0, 0.2, 1)",Wt({transform:"none",opacity:1}))),ri("* => void, * => exit",fi("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Wt({opacity:0})))])};let iK=(()=>{class n extends Sp{constructor(e,i,o,r,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=o,this._config=s,this._interactivityChecker=a,this._ngZone=l,this._focusMonitor=c,this._animationStateChanged=new Me,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(d)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=r}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=ob(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=ob())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=ob();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(PO),f(Jt),f(ct,8),f(Tb),f(hb),f(ut),f(Rr))},n.\u0275dir=ge({type:n,viewQuery:function(e,i){if(1&e&&Mt(_u,7),2&e){let o;Oe(o=Re())&&(i._portalOutlet=o.first)}},features:[Le]}),n})(),oK=(()=>{class n extends iK{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),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()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275cmp=tt({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&fd("@dialogContainer.start",function(r){return i._onAnimationStart(r)})("@dialogContainer.done",function(r){return i._onAnimationDone(r)}),2&e&&(Ss("id",i._id),Dt("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),md("@dialogContainer",i._state))},features:[Le],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&ie(0,tK,0,0,"ng-template",0)},directives:[_u],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[nK.dialogContainer]}}),n})(),rK=0;class Ou{constructor(t,e,i="mat-dialog-"+rK++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new _e,this._afterClosed=new _e,this._beforeClosed=new _e,this._state=0,e._id=i,e._animationStateChanged.pipe($t(o=>"opened"===o.state),wn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe($t(o=>"closed"===o.state),wn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe($t(o=>27===o.keyCode&&!this.disableClose&&!vo(o))).subscribe(o=>{o.preventDefault(),U1(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():U1(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe($t(e=>"closing"===e.state),wn(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function U1(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const Ib=new je("MatDialogData"),sK=new je("mat-dialog-default-options"),H1=new je("mat-dialog-scroll-strategy"),lK={provide:H1,deps:[ar],useFactory:function aK(n){return()=>n.scrollStrategies.block()}};let cK=(()=>{class n{constructor(e,i,o,r,s,a,l,c,d,u){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=s,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=d,this._animationMode=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new _e,this._afterOpenedAtThisLevel=new _e,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=Zf(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ci(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}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){if(i=function dK(n,t){return Object.assign(Object.assign({},t),n)}(i,this._defaultOptions||new Tb),i.id&&this.getDialogById(i.id),this._dialogAnimatingOpen)return this._lastDialogRef;const o=this._createOverlay(i),r=this._attachDialogContainer(o,i);if("NoopAnimations"!==this._animationMode){const a=r._animationStateChanged.subscribe(l=>{"opening"===l.state&&(this._dialogAnimatingOpen=!0),"opened"===l.state&&(this._dialogAnimatingOpen=!1,a.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new w),this._animationStateSubscriptions.add(a)}const s=this._attachDialogContent(e,r,o,i);return this._lastDialogRef=s,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),r._initializeWithAttachedContent(),s}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(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new Eu({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const r=jt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Tb,useValue:i}]}),s=new sc(this._dialogContainerType,i.viewContainerRef,r,i.componentFactoryResolver);return e.attach(s).instance}_attachDialogContent(e,i,o,r){const s=new this._dialogRefConstructor(o,i,r.id);if(e instanceof bt)i.attachTemplatePortal(new ac(e,null,{$implicit:r.data,dialogRef:s}));else{const a=this._createInjector(r,s,i),l=i.attachComponentPortal(new sc(e,r.viewContainerRef,a));s.componentInstance=l.instance}return s.updateSize(r.width,r.height).updatePosition(r.position),s}_createInjector(e,i,o){const r=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!r||!r.get(go,null,dt.Optional))&&s.push({provide:go,useValue:{value:e.direction,change:ht()}}),jt.create({parent:r||this._injector,providers:s})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,r)=>{o?r.setAttribute("aria-hidden",o):r.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),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--){let 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"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){Dl()},n.\u0275dir=ge({type:n}),n})(),Ob=(()=>{class n extends cK{constructor(e,i,o,r,s,a,l,c){super(e,i,r,a,l,s,Ou,oK,Ib,c)}}return n.\u0275fac=function(e){return new(e||n)(se(ar),se(jt),se(Fd,8),se(sK,8),se(H1),se(n,12),se(Su),se(Ri,8))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),uK=0,hK=(()=>{class n{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o,this.id="mat-dialog-title-"+uK++}ngOnInit(){this._dialogRef||(this._dialogRef=function fK(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.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 n.\u0275fac=function(e){return new(e||n)(f(Ou,8),f(Pe),f(Ob))},n.\u0275dir=ge({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&Ss("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),Rb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),kb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})(),pK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[Ob,lK],imports:[[Au,Ap,Pt],Pt]}),n})();const mK=["mat-button",""],gK=["*"],_K=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],yK=Ia(Ta(Fs(class{constructor(n){this._elementRef=n}})));let Hn=(()=>{class n extends yK{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 _K)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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Rr),f(Ri,8))},n.\u0275cmp=tt({type:n,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&&Mt(Oa,5),2&e){let o;Oe(o=Re())&&(i.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Dt("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:[Le],attrs:mK,ngContentSelectors:gK,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&&(In(),v(0,"span",0),kt(1),_(),$e(2,"span",1),$e(3,"span",2)),2&e&&(T(2),lt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),G("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Oa],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),z1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Du,Pt],Pt]}),n})();const G1=new Set;let _c,bK=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):EK}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function CK(n){if(!G1.has(n))try{_c||(_c=document.createElement("style"),_c.setAttribute("type","text/css"),document.head.appendChild(_c)),_c.sheet&&(_c.sheet.insertRule(`@media ${n} {body{ }}`,0),G1.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(se(Jn))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function EK(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let q1=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new _e}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return W1(pp(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=BT(W1(pp(e)).map(s=>this._registerQuery(s).observable));return r=Jd(r.pipe(wn(1)),r.pipe(hc(1),wu(0))),r.pipe(ze(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 k(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Ci(i),ze(({matches:s})=>({query:e,matches:s})),xt(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return n.\u0275fac=function(e){return new(e||n)(se(bK),se(ut))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function W1(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function SK(n,t){if(1&n){const e=yt();v(0,"div",1),v(1,"button",2),Te("click",function(){return Ue(e),fe().action()}),me(2),_(),_()}if(2&n){const e=fe();T(2),He(e.data.action)}}function AK(n,t){}const Y1=new je("MatSnackBarData");class Bp{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const wK=Math.pow(2,31)-1;class Pb{constructor(t,e){this._overlayRef=e,this._afterDismissed=new _e,this._afterOpened=new _e,this._onAction=new _e,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._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()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,wK))}_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 xK=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(f(Pb),f(Y1))},n.\u0275cmp=tt({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(v(0,"span"),me(1),_(),ie(2,SK,3,1,"div",0)),2&e&&(T(1),He(i.data.message),T(1),G("ngIf",i.hasAction))},directives:[cn,Hn],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),n})();const DK={snackBarState:lo("state",[pi("void, hidden",Wt({transform:"scale(0.8)",opacity:0})),pi("visible",Wt({transform:"scale(1)",opacity:1})),ri("* => visible",fi("150ms cubic-bezier(0, 0, 0.2, 1)")),ri("* => void, * => hidden",fi("75ms cubic-bezier(0.4, 0.0, 1, 1)",Wt({opacity:0})))])};let MK=(()=>{class n extends Sp{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 _e,this._onExit=new _e,this._onEnter=new _e,this._animationState="void",this.attachDomPortal=a=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(a)),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){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}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._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(wn(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(o=>e.classList.add(o)):e.classList.add(i)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_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 n.\u0275fac=function(e){return new(e||n)(f(ut),f(Pe),f(Jt),f(Jn),f(Bp))},n.\u0275cmp=tt({type:n,selectors:[["snack-bar-container"]],viewQuery:function(e,i){if(1&e&&Mt(_u,7),2&e){let o;Oe(o=Re())&&(i._portalOutlet=o.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&fd("@state.done",function(r){return i.onAnimationEnd(r)}),2&e&&md("@state",i._animationState)},features:[Le],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(v(0,"div",0),ie(1,AK,0,0,"ng-template",1),_(),$e(2,"div")),2&e&&(T(2),Dt("aria-live",i._live)("role",i._role))},directives:[_u],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[DK.snackBarState]}}),n})(),Q1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Au,Ap,Hi,z1,Pt],Pt]}),n})();const TK=new je("mat-snack-bar-default-options",{providedIn:"root",factory:function IK(){return new Bp}});let OK=(()=>{class n{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,this.simpleSnackBarComponent=xK,this.snackBarContainerComponent=MK,this.handsetCssClass="mat-snack-bar-handset"}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=jt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Bp,useValue:i}]}),s=new sc(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 Bp),this._defaultConfig),i),r=this._createOverlay(o),s=this._attachSnackBarContainer(r,o),a=new Pb(s,r);if(e instanceof bt){const l=new ac(e,null,{$implicit:o.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(o,a),c=new sc(e,void 0,l),d=s.attachComponentPortal(c);a.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(xt(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 Eu;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 jt.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Pb,useValue:i},{provide:Y1,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(se(ar),se(LO),se(jt),se(q1),se(n,12),se(TK))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:Q1}),n})();const RK=["*",[["mat-toolbar-row"]]],kK=["*","mat-toolbar-row"],PK=Ia(class{constructor(n){this._elementRef=n}});let NK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),Vp=(()=>{class n extends PK{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Jn),f(ct))},n.\u0275cmp=tt({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,o){if(1&e&&Je(o,NK,5),2&e){let r;Oe(r=Re())&&(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:[Le],ngContentSelectors:kK,decls:2,vars:0,template:function(e,i){1&e&&(In(RK),kt(0),kt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),LK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Pt],Pt]}),n})();const BK=["*"];let jp;function Ru(n){var t;return(null===(t=function VK(){if(void 0===jp&&(jp=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(jp=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return jp}())||void 0===t?void 0:t.createHTML(n))||n}function K1(n){return Error(`Unable to find icon with the name "${n}"`)}function Z1(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function X1(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Pa{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Up=(()=>{class n{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",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 Pa(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 X1(o);const a=Ru(s);return this._addSvgIconConfig(e,i,new Pa("",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 Pa(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const r=this._sanitizer.sanitize(Xt.HTML,i);if(!r)throw X1(i);const s=Ru(r);return this._addSvgIconSetConfig(e,new Pa("",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 Z1(e);const o=this._cachedIconsByUrl.get(i);return o?ht(Hp(o)):this._loadSvgIconFromConfig(new Pa(e,null)).pipe(mi(r=>this._cachedIconsByUrl.set(i,r)),ze(r=>Hp(r)))}getNamedSvgIcon(e,i=""){const o=J1(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):function FK(n,t){const e=S(n)?n:()=>n,i=o=>o.error(e());return new k(t?o=>t.schedule(i,0,o):i)}(K1(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?ht(Hp(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ze(i=>Hp(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?ht(o):VM(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(es(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)),ht(null)})))).pipe(ze(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw K1(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(mi(i=>e.svgText=i),ze(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?ht(null):this._fetchIcon(e).pipe(mi(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(Ru("<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(Ru("<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 jK(){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 Z1(o);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:s}).pipe(ze(d=>Ru(d)),GT(()=>this._inProgressUrlFetches.delete(a)),xC());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(J1(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 HK(r)?new Pa(r.url,null,r.options):new Pa(r,null)}}}return n.\u0275fac=function(e){return new(e||n)(se(Yy,8),se(fa),se(ct,8),se(vr))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Hp(n){return n.cloneNode(!0)}function J1(n,t){return n+":"+t}function HK(n){return!(!n.url||!n.options)}const zK=Ia(class{constructor(n){this._elementRef=n}}),GK=new je("mat-icon-location",{providedIn:"root",factory:function qK(){const n=Yc(ct),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),eR=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],WK=eR.map(n=>`[${n}]`).join(", "),$K=/^url\(['"]?#(.*?)['"]?\)$/;let gi=(()=>{class n extends zK{constructor(e,i,o,r,s){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=s,this._inline=!1,this._currentIconFetch=w.EMPTY,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=e.querySelectorAll("style");for(let r=0;r<i.length;r++)i[r].textContent+=" ";const o=this._location.getPathname();this._previousPath=o,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(o),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):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(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(WK),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r<i.length;r++)eR.forEach(s=>{const a=i[r],l=a.getAttribute(s),c=l?l.match($K):null;if(c){let d=o.get(a);d||(d=[],o.set(a,d)),d.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(wn(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${r.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Up),xo("aria-hidden"),f(GK),f(vr))},n.\u0275cmp=tt({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(Dt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),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:[Le],ngContentSelectors:BK,decls:1,vars:0,template:function(e,i){1&e&&(In(),kt(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),YK=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Pt],Pt]}),n})(),Nb=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=tt({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(Dt("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}\n"],encapsulation:2,changeDetection:0}),n})(),tR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Pt],Pt]}),n})();const QK={tooltipState:lo("state",[pi("initial, void, hidden",Wt({opacity:0,transform:"scale(0)"})),pi("visible",Wt({transform:"scale(1)"})),ri("* => visible",fi("200ms cubic-bezier(0, 0, 0.2, 1)",Qz([Wt({opacity:0,transform:"scale(0)",offset:0}),Wt({opacity:.5,transform:"scale(0.99)",offset:.5}),Wt({opacity:1,transform:"scale(1)",offset:1})]))),ri("* => hidden",fi("100ms cubic-bezier(0, 0, 0.2, 1)",Wt({opacity:0})))])},nR="tooltip-panel",iR=Aa({passive:!0}),oR=new je("mat-tooltip-scroll-strategy"),JK={provide:oR,deps:[ar],useFactory:function XK(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},eZ=new je("mat-tooltip-default-options",{providedIn:"root",factory:function tZ(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let nZ=(()=>{class n{constructor(e,i,o,r,s,a,l,c,d,u,h,g){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=u,this._defaultOptions=h,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 _e,this._handleKeydown=I=>{this._isTooltipVisible()&&27===I.keyCode&&!vo(I)&&(I.preventDefault(),I.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=d,this._document=g,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(xt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{i.nativeElement.addEventListener("keydown",this._handleKeydown)})}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 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(xt(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),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([i,o])=>{e.removeEventListener(i,o,iR)}),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){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new sc(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(xt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(xt(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${nR}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(xt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(xt(this._destroyed)).subscribe(()=>{var o;return null===(o=this._tooltipInstance)||void 0===o?void 0:o._handleBodyInteraction()}),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(wn(1),xt(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}-${nR}-`;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",()=>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,iR)})}_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 n.\u0275fac=function(e){Dl()},n.\u0275dir=ge({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),lr=(()=>{class n extends nZ{constructor(e,i,o,r,s,a,l,c,d,u,h,g){super(e,i,o,r,s,a,l,c,d,u,h,g),this._tooltipComponent=oZ}}return n.\u0275fac=function(e){return new(e||n)(f(ar),f(Pe),f(vu),f(pn),f(ut),f(Jn),f(TO),f(Rr),f(oR),f(go,8),f(eZ,8),f(ct))},n.\u0275dir=ge({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Le]}),n})(),iZ=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new _e}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(f(Jt))},n.\u0275dir=ge({type:n}),n})(),oZ=(()=>{class n extends iZ{constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(f(Jt),f(q1))},n.\u0275cmp=tt({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&di("zoom","visible"===i._visibility?1:null)},features:[Le],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(v(0,"div",0),Te("@state.start",function(){return i._animationStart()})("@state.done",function(r){return i._animationDone(r)}),xe(1,"async"),me(2),_()),2&e){let o;lt("mat-tooltip-handset",null==(o=Ie(1,5,i._isHandset))?null:o.matches),G("ngClass",i.tooltipClass)("@state",i._visibility),T(2),He(i.message)}},directives:[Xi],pipes:[vD],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[QK.tooltipState]},changeDetection:0}),n})(),rZ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[JK],imports:[[jO,Hi,Au,Pt],Pt,Da]}),n})(),sZ=0;const aZ=Ta(class{}),rR="mat-badge-content";let lZ=(()=>{class n extends aZ{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=sZ++,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(rR),"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 > .${rR}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return n.\u0275fac=function(e){return new(e||n)(f(ut),f(Pe),f(TO),f(Io),f(Ri,8))},n.\u0275dir=ge({type:n,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:[Le]}),n})(),cZ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[jO,Pt],Pt]}),n})();function sR(n,t){if(Array.prototype.indexOf)return n.indexOf(t);for(var e=0,i=n.length;e<i;e++)if(n[e]===t)return e;return-1}function Na(n,t){for(var e=n.length-1;e>=0;e--)!0===t(n[e])&&n.splice(e,1)}function aR(n){throw new Error("Unhandled case for value: '"+n+"'")}var Lb=function(){function n(t){void 0===t&&(t={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=t.tagName||"",this.attrs=t.attrs||{},this.innerHTML=t.innerHtml||t.innerHTML||""}return n.prototype.setTagName=function(t){return this.tagName=t,this},n.prototype.getTagName=function(){return this.tagName||""},n.prototype.setAttr=function(t,e){return this.getAttrs()[t]=e,this},n.prototype.getAttr=function(t){return this.getAttrs()[t]},n.prototype.setAttrs=function(t){return Object.assign(this.getAttrs(),t),this},n.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},n.prototype.setClass=function(t){return this.setAttr("class",t)},n.prototype.addClass=function(t){for(var s,e=this.getClass(),i=this.whitespaceRegex,o=e?e.split(i):[],r=t.split(i);s=r.shift();)-1===sR(o,s)&&o.push(s);return this.getAttrs().class=o.join(" "),this},n.prototype.removeClass=function(t){for(var s,e=this.getClass(),i=this.whitespaceRegex,o=e?e.split(i):[],r=t.split(i);o.length&&(s=r.shift());){var a=sR(o,s);-1!==a&&o.splice(a,1)}return this.getAttrs().class=o.join(" "),this},n.prototype.getClass=function(){return this.getAttrs().class||""},n.prototype.hasClass=function(t){return-1!==(" "+this.getClass()+" ").indexOf(" "+t+" ")},n.prototype.setInnerHTML=function(t){return this.innerHTML=t,this},n.prototype.setInnerHtml=function(t){return this.setInnerHTML(t)},n.prototype.getInnerHTML=function(){return this.innerHTML||""},n.prototype.getInnerHtml=function(){return this.getInnerHTML()},n.prototype.toAnchorString=function(){var t=this.getTagName(),e=this.buildAttrsStr();return["<",t,e=e?" "+e:"",">",this.getInnerHtml(),"</",t,">"].join("")},n.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var t=this.getAttrs(),e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i+'="'+t[i]+'"');return e.join(" ")},n}(),lR=function(){function n(t){void 0===t&&(t={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=t.newWindow||!1,this.truncate=t.truncate||{},this.className=t.className||""}return n.prototype.build=function(t){return new Lb({tagName:"a",attrs:this.createAttrs(t),innerHtml:this.processAnchorText(t.getAnchorText())})},n.prototype.createAttrs=function(t){var e={href:t.getAnchorHref()},i=this.createCssClass(t);return i&&(e.class=i),this.newWindow&&(e.target="_blank",e.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<t.getAnchorText().length&&(e.title=t.getAnchorHref()),e},n.prototype.createCssClass=function(t){var e=this.className;if(e){for(var i=[e],o=t.getCssClassSuffixes(),r=0,s=o.length;r<s;r++)i.push(e+"-"+o[r]);return i.join(" ")}return""},n.prototype.processAnchorText=function(t){return this.doTruncate(t)},n.prototype.doTruncate=function(t){var e=this.truncate;if(!e||!e.length)return t;var i=e.length,o=e.location;return"smart"===o?function fZ(n,t,e){var i,o;null==e?(e="&hellip;",o=3,i=8):(o=e.length,i=e.length);var s=function(le){var Ce="";return le.scheme&&le.host&&(Ce+=le.scheme+"://"),le.host&&(Ce+=le.host),le.path&&(Ce+="/"+le.path),le.query&&(Ce+="?"+le.query),le.fragment&&(Ce+="#"+le.fragment),Ce},a=function(le,Ce){var be=Ce/2,Ge=Math.ceil(be),st=-1*Math.floor(be),gt="";return st<0&&(gt=le.substr(st)),le.substr(0,Ge)+e+gt};if(n.length<=t)return n;var Ce,be,Ge,l=t-o,c=(Ce={},(Ge=(be=n).match(/^([a-z]+):\/\//i))&&(Ce.scheme=Ge[1],be=be.substr(Ge[0].length)),(Ge=be.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(Ce.host=Ge[1],be=be.substr(Ge[0].length)),(Ge=be.match(/^\/(.*?)(?=(\?|#|$))/i))&&(Ce.path=Ge[1],be=be.substr(Ge[0].length)),(Ge=be.match(/^\?(.*?)(?=(#|$))/i))&&(Ce.query=Ge[1],be=be.substr(Ge[0].length)),(Ge=be.match(/^#(.*?)$/i))&&(Ce.fragment=Ge[1]),Ce);if(c.query){var d=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);d&&(c.query=c.query.substr(0,d[1].length),n=s(c))}if(n.length<=t||(c.host&&(c.host=c.host.replace(/^www\./,""),n=s(c)),n.length<=t))return n;var u="";if(c.host&&(u+=c.host),u.length>=l)return c.host.length==t?(c.host.substr(0,t-o)+e).substr(0,l+i):a(u,l).substr(0,l+i);var h="";if(c.path&&(h+="/"+c.path),c.query&&(h+="?"+c.query),h){if((u+h).length>=l)return(u+h).length==t?(u+h).substr(0,t):(u+a(h,l-u.length)).substr(0,l+i);u+=h}if(c.fragment){var I="#"+c.fragment;if((u+I).length>=l)return(u+I).length==t?(u+I).substr(0,t):(u+a(I,l-u.length)).substr(0,l+i);u+=I}if(c.scheme&&c.host){var K=c.scheme+"://";if((u+K).length<l)return(K+u).substr(0,t)}if(u.length<=t)return u;var ae="";return l>0&&(ae=u.substr(-1*Math.floor(l/2))),(u.substr(0,Math.ceil(l/2))+e+ae).substr(0,l+i)}(t,i):"middle"===o?function pZ(n,t,e){if(n.length<=t)return n;var i,o;null==e?(e="&hellip;",i=8,o=3):(i=e.length,o=e.length);var r=t-o,s="";return r>0&&(s=n.substr(-1*Math.floor(r/2))),(n.substr(0,Math.ceil(r/2))+e+s).substr(0,r+i)}(t,i):function mZ(n,t,e){return function uZ(n,t,e){var i;return n.length>t&&(null==e?(e="&hellip;",i=3):i=e.length,n=n.substring(0,t-i)+e),n}(n,t,e)}(t,i)},n}(),yc=function(){function n(t){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=t.tagBuilder,this.matchedText=t.matchedText,this.offset=t.offset}return n.prototype.getMatchedText=function(){return this.matchedText},n.prototype.setOffset=function(t){this.offset=t},n.prototype.getOffset=function(){return this.offset},n.prototype.getCssClassSuffixes=function(){return[this.getType()]},n.prototype.buildTag=function(){return this.tagBuilder.build(this)},n}(),Fb=function(n,t){return(Fb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])})(n,t)};function kr(n,t){function e(){this.constructor=n}Fb(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var e,zn=function(){return zn=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},zn.apply(this,arguments)},dR=function(n){function t(e){var i=n.call(this,e)||this;return i.email="",i.email=e.email,i}return kr(t,n),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(yc),uR=function(n){function t(e){var i=n.call(this,e)||this;return i.serviceName="",i.hashtag="",i.serviceName=e.serviceName,i.hashtag=e.hashtag,i}return kr(t,n),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.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;default:throw new Error("Unknown service name to point hashtag to: "+e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(yc),hR=function(n){function t(e){var i=n.call(this,e)||this;return i.serviceName="twitter",i.mention="",i.mention=e.mention,i.serviceName=e.serviceName,i}return kr(t,n),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.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;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var e=n.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&e.push(i),e},t}(yc),fR=function(n){function t(e){var i=n.call(this,e)||this;return i.number="",i.plusSign=!1,i.number=e.number,i.plusSign=e.plusSign,i}return kr(t,n),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(yc),pR=function(n){function t(e){var i=n.call(this,e)||this;return i.url="",i.urlMatchType="scheme",i.protocolUrlMatch=!1,i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.schemePrefixRegex=/^(https?:\/\/)?/i,i.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,i.protocolRelativeRegex=/^\/\//,i.protocolPrepended=!1,i.urlMatchType=e.urlMatchType,i.url=e.url,i.protocolUrlMatch=e.protocolUrlMatch,i.protocolRelativeMatch=e.protocolRelativeMatch,i.stripPrefix=e.stripPrefix,i.stripTrailingSlash=e.stripTrailingSlash,i.decodePercentEncoding=e.decodePercentEncoding,i}return kr(t,n),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return!this.protocolRelativeMatch&&!this.protocolUrlMatch&&!this.protocolPrepended&&(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var i=e.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(i)}catch(o){return i}},t}(yc),bc=function n(t){this.__jsduckDummyDocProp=null,this.tagBuilder=t.tagBuilder},Bb=/[A-Za-z]/,vZ=/[\d]/,_Z=/[\D]/,La=/\s/,Vb=/['"]/,yZ=/[\x00-\x1F\x7F]/,mR=/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,gR=mR+/\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,Gp=/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,EZ=gR+Gp,Pn=gR+Gp,SZ="(?:["+Gp+"]{1,3}\\.){3}["+Gp+"]{1,3}",AZ="["+Pn+"](?:["+Pn+"\\-]{0,61}["+Pn+"])?",vR=function(n){return"(?=("+AZ+"))\\"+n},jb=function(n){return"(?:"+vR(n)+"(?:\\."+vR(n+1)+"){0,126}|"+SZ+")"},qp=(new RegExp("["+Pn+".\\-]*["+Pn+"\\-]"),new RegExp("["+Pn+"]")),_R=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|verm\xf6gensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|verm\xf6gensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|spreadbetting|travelchannel|wolterskluwer|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|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|rightathome|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--estv75g|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--kpu716f|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pbt977c|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|nationwide|newholland|nextdirect|onyourside|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|telefonica|university|vistaprint|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--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|fujixerox|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|honeywell|institute|insurance|kuokgroup|ladbrokes|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|scjohnson|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--tckwe|xn--vhquv|yodobashi|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|chrysler|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|esurance|etisalat|everbank|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|movistar|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|symantec|training|uconnect|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|cartier|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|iselect|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lancome|lanxess|lasalle|latrobe|leclerc|liaison|limited|lincoln|markets|metlife|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|shriram|singles|staples|starhub|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\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|\u0645\u0648\u0628\u0627\u064a\u0644\u064a|\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe|abarth|abbott|abbvie|active|africa|agency|airbus|airtel|alipay|alsace|alstom|anquan|aramco|author|bayern|beauty|berlin|bharti|blanco|bostik|boston|broker|camera|career|caseih|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|mobily|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|piaget|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|warman|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|dodge|drive|dubai|earth|edeka|email|epost|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|intel|irish|iveco|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|lupin|macys|mango|media|miami|money|mopar|movie|nadex|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|zippo|\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|aigo|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|doha|duck|duns|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|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|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scor|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|\u30b0\u30fc\u30b0\u30eb|\u30af\u30e9\u30a6\u30c9|\u30dd\u30a4\u30f3\u30c8|\u5927\u4f17\u6c7d\u8f66|\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|bnl|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceb|ceo|cfa|cfd|com|crs|csc|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|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|jcp|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|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|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|srl|srt|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|\u30b9\u30c8\u30a2|\u30bb\u30fc\u30eb|\u307f\u3093\u306a|\u4e2d\u6587\u7f51|\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|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|\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|\u5de5\u884c|\u5e7f\u4e1c|\u5fae\u535a|\u6148\u5584|\u624b\u673a|\u624b\u8868|\u62db\u8058|\u653f\u52a1|\u653f\u5e9c|\u65b0\u95fb|\u65f6\u5c1a|\u66f8\u7c4d|\u673a\u6784|\u6e38\u620f|\u6fb3\u9580|\u70b9\u770b|\u73e0\u5b9d|\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)/,wZ=new RegExp("["+Pn+"!#$%&'*+/=?^_`{|}~-]"),xZ=new RegExp("^"+_R.source+"$"),yR=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.localPartCharRegex=wZ,e.strictTldRegex=xZ,e}return kr(t,n),t.prototype.parseMatches=function(e){for(var i=this.tagBuilder,o=this.localPartCharRegex,r=this.strictTldRegex,s=[],a=e.length,l=new Wp,c={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},d=0,u=0,h=l;d<a;){var g=e.charAt(d);switch(u){case 0:"m"===(Ke=g)?st(1):o.test(Ke)&&st();break;case 1:Q(e.charAt(d-1),g);break;case 2:K(g);break;case 3:ae(g);break;case 4:le(g);break;case 5:Ce(g);break;case 6:be(g);break;case 7:Ge(g);break;default:aR(u)}d++}var Ke;return _t(),s;function Q(Ke,vt){":"===Ke?o.test(vt)?(u=2,h=new Wp(zn(zn({},h),{hasMailtoPrefix:!0}))):gt():c[Ke]===vt||(o.test(vt)?u=2:"."===vt?u=3:"@"===vt?u=4:gt())}function K(Ke){"."===Ke?u=3:"@"===Ke?u=4:o.test(Ke)||gt()}function ae(Ke){"."===Ke||"@"===Ke?gt():o.test(Ke)?u=2:gt()}function le(Ke){qp.test(Ke)?u=5:gt()}function Ce(Ke){"."===Ke?u=7:"-"===Ke?u=6:qp.test(Ke)||_t()}function be(Ke){"-"===Ke||"."===Ke?_t():qp.test(Ke)?u=5:_t()}function Ge(Ke){"."===Ke||"-"===Ke?_t():qp.test(Ke)?(u=5,h=new Wp(zn(zn({},h),{hasDomainDot:!0}))):_t()}function st(Ke){void 0===Ke&&(Ke=2),u=Ke,h=new Wp({idx:d})}function gt(){u=0,h=l}function _t(){if(h.hasDomainDot){var Ke=e.slice(h.idx,d);/[-.]$/.test(Ke)&&(Ke=Ke.slice(0,-1));var vt=h.hasMailtoPrefix?Ke.slice(7):Ke;(function vn(vi){var bo=(vi.split(".").pop()||"").toLowerCase();return r.test(bo)})(vt)&&s.push(new dR({tagBuilder:i,matchedText:Ke,offset:h.idx,email:vt}))}gt()}},t}(bc),Wp=function n(t){void 0===t&&(t={}),this.idx=void 0!==t.idx?t.idx:-1,this.hasMailtoPrefix=!!t.hasMailtoPrefix,this.hasDomainDot=!!t.hasDomainDot},DZ=function(){function n(){}return n.isValid=function(t,e){return!(e&&!this.isValidUriScheme(e)||this.urlMatchDoesNotHaveProtocolOrDot(t,e)||this.urlMatchDoesNotHaveAtLeastOneWordChar(t,e)&&!this.isValidIpAddress(t)||this.containsMultipleDots(t))},n.isValidIpAddress=function(t){var e=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return null!==t.match(e)},n.containsMultipleDots=function(t){var e=t;return this.hasFullProtocolRegex.test(t)&&(e=t.split("://")[1]),e.split("/")[0].indexOf("..")>-1},n.isValidUriScheme=function(t){var e=t.match(this.uriSchemeRegex),i=e&&e[0].toLowerCase();return"javascript:"!==i&&"vbscript:"!==i},n.urlMatchDoesNotHaveProtocolOrDot=function(t,e){return!(!t||e&&this.hasFullProtocolRegex.test(e)||-1!==t.indexOf("."))},n.urlMatchDoesNotHaveAtLeastOneWordChar=function(t,e){return!(!t||!e||this.hasFullProtocolRegex.test(e)||this.hasWordCharAfterProtocolRegex.test(t))},n.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,n.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,n.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+mR+"]"),n.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,n}(),MZ=(e=new RegExp("[/?#](?:["+Pn+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^\u2713]*["+Pn+"\\-+&@#/%=~_()|'$*\\[\\]{}\u2713])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,jb(2),")","|","(","(//)?",/(?:www\.)/.source,jb(6),")","|","(","(//)?",jb(10)+"\\.",_R.source,"(?![-"+EZ+"])",")",")","(?::[0-9]+)?","(?:"+e.source+")?"].join(""),"gi")),TZ=new RegExp("["+Pn+"]"),bR=function(n){function t(e){var i=n.call(this,e)||this;return i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.matcherRegex=MZ,i.wordCharRegExp=TZ,i.stripPrefix=e.stripPrefix,i.stripTrailingSlash=e.stripTrailingSlash,i.decodePercentEncoding=e.decodePercentEncoding,i}return kr(t,n),t.prototype.parseMatches=function(e){for(var c,i=this.matcherRegex,o=this.stripPrefix,r=this.stripTrailingSlash,s=this.decodePercentEncoding,a=this.tagBuilder,l=[],d=function(){var h=c[0],g=c[1],I=c[4],ae=c.index,le=c[5]||c[9],Ce=e.charAt(ae-1);if(!DZ.isValid(h,g)||ae>0&&"@"===Ce||ae>0&&le&&u.wordCharRegExp.test(Ce))return"continue";if(/\?$/.test(h)&&(h=h.substr(0,h.length-1)),u.matchHasUnbalancedClosingParen(h))h=h.substr(0,h.length-1);else{var be=u.matchHasInvalidCharAfterTld(h,g);be>-1&&(h=h.substr(0,be))}var Ge=["http://","https://"].find(function(Ke){return!!g&&-1!==g.indexOf(Ke)});if(Ge){var st=h.indexOf(Ge);h=h.substr(st),g=g.substr(st),ae+=st}l.push(new pR({tagBuilder:a,matchedText:h,offset:ae,urlMatchType:g?"scheme":I?"www":"tld",url:h,protocolUrlMatch:!!g,protocolRelativeMatch:!!le,stripPrefix:o,stripTrailingSlash:r,decodePercentEncoding:s}))},u=this;null!==(c=i.exec(e));)d();return l},t.prototype.matchHasUnbalancedClosingParen=function(e){var o,i=e.charAt(e.length-1);if(")"===i)o="(";else if("]"===i)o="[";else{if("}"!==i)return!1;o="{"}for(var r=0,s=0,a=e.length-1;s<a;s++){var l=e.charAt(s);l===o?r++:l===i&&(r=Math.max(r-1,0))}return 0===r},t.prototype.matchHasInvalidCharAfterTld=function(e,i){if(!e)return-1;var o=0;i&&(o=e.indexOf(":"),e=e.slice(o));var s=new RegExp("^((.?//)?[-."+Pn+"]*[-"+Pn+"]\\.[-"+Pn+"]+)").exec(e);return null===s?-1:(o+=s[1].length,e=e.slice(s[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?o:-1)},t}(bc),IZ=new RegExp("#[_"+Pn+"]{1,139}(?![_"+Pn+"])","g"),OZ=new RegExp("[^"+Pn+"]"),CR=function(n){function t(e){var i=n.call(this,e)||this;return i.serviceName="twitter",i.matcherRegex=IZ,i.nonWordCharRegex=OZ,i.serviceName=e.serviceName,i}return kr(t,n),t.prototype.parseMatches=function(e){for(var l,i=this.matcherRegex,o=this.nonWordCharRegex,r=this.serviceName,s=this.tagBuilder,a=[];null!==(l=i.exec(e));){var c=l.index,d=e.charAt(c-1);if(0===c||o.test(d)){var u=l[0],h=l[0].slice(1);a.push(new uR({tagBuilder:s,matchedText:u,offset:c,serviceName:r,hashtag:h}))}}return a},t}(bc),PZ=new RegExp(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\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)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source+"|"+/(0([1-9]{1}-?[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,"g"),ER=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.matcherRegex=PZ,e}return kr(t,n),t.prototype.parseMatches=function(e){for(var s,i=this.matcherRegex,o=this.tagBuilder,r=[];null!==(s=i.exec(e));){var a=s[0],l=a.replace(/[^0-9,;#]/g,""),c=!(!s[1]&&!s[2]),d=0==s.index?"":e.substr(s.index-1,1),u=e.substr(s.index+a.length,1),h=!d.match(/\d/)&&!u.match(/\d/);this.testMatch(s[3])&&this.testMatch(a)&&h&&r.push(new fR({tagBuilder:o,matchedText:a,offset:s.index,number:l,plusSign:c}))}return r},t.prototype.testMatch=function(e){return _Z.test(e)},t}(bc),NZ=new RegExp("@[_"+Pn+"]{1,50}(?![_"+Pn+"])","g"),LZ=new RegExp("@[_."+Pn+"]{1,30}(?![_"+Pn+"])","g"),FZ=new RegExp("@[-_."+Pn+"]{1,50}(?![-_"+Pn+"])","g"),BZ=new RegExp("[^"+Pn+"]"),SR=function(n){function t(e){var i=n.call(this,e)||this;return i.serviceName="twitter",i.matcherRegexes={twitter:NZ,instagram:LZ,soundcloud:FZ},i.nonWordCharRegex=BZ,i.serviceName=e.serviceName,i}return kr(t,n),t.prototype.parseMatches=function(e){var l,i=this.serviceName,o=this.matcherRegexes[this.serviceName],r=this.nonWordCharRegex,s=this.tagBuilder,a=[];if(!o)return a;for(;null!==(l=o.exec(e));){var c=l.index,d=e.charAt(c-1);if(0===c||r.test(d)){var u=l[0].replace(/\.+$/g,""),h=u.slice(1);a.push(new hR({tagBuilder:s,matchedText:u,offset:c,serviceName:i,mention:h}))}}return a},t}(bc);var Pr=function n(t){void 0===t&&(t={}),this.idx=void 0!==t.idx?t.idx:-1,this.type=t.type||"tag",this.name=t.name||"",this.isOpening=!!t.isOpening,this.isClosing=!!t.isClosing},jZ=function(){function n(t){void 0===t&&(t={}),this.version=n.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.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"==typeof t.email?t.email:this.email,this.phone="boolean"==typeof t.phone?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var e=this.mention;if(!1!==e&&"twitter"!==e&&"instagram"!==e&&"soundcloud"!==e)throw new Error("invalid `mention` cfg - see docs");var i=this.hashtag;if(!1!==i&&"twitter"!==i&&"facebook"!==i&&"instagram"!==i)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return n.link=function(t,e){return new n(e).link(t)},n.parse=function(t,e){return new n(e).parse(t)},n.prototype.normalizeUrlsCfg=function(t){return null==t&&(t=!0),"boolean"==typeof t?{schemeMatches:t,wwwMatches:t,tldMatches:t}:{schemeMatches:"boolean"!=typeof t.schemeMatches||t.schemeMatches,wwwMatches:"boolean"!=typeof t.wwwMatches||t.wwwMatches,tldMatches:"boolean"!=typeof t.tldMatches||t.tldMatches}},n.prototype.normalizeStripPrefixCfg=function(t){return null==t&&(t=!0),"boolean"==typeof t?{scheme:t,www:t}:{scheme:"boolean"!=typeof t.scheme||t.scheme,www:"boolean"!=typeof t.www||t.www}},n.prototype.normalizeTruncateCfg=function(t){return"number"==typeof t?{length:t,location:"end"}:function dZ(n,t){for(var e in t)t.hasOwnProperty(e)&&void 0===n[e]&&(n[e]=t[e]);return n}(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})},n.prototype.parse=function(t){var e=this,i=["a","style","script"],o=0,r=[];return function VZ(n,t){for(var e=t.onOpenTag,i=t.onCloseTag,o=t.onText,r=t.onComment,s=t.onDoctype,a=new Pr,l=0,c=n.length,d=0,u=0,h=a;l<c;){var g=n.charAt(l);switch(d){case 0:"<"===g&&en();break;case 1:"!"===(Ve=g)?d=13:"/"===Ve?(d=2,h=new Pr(zn(zn({},h),{isClosing:!0}))):"<"===Ve?en():Bb.test(Ve)?(d=3,h=new Pr(zn(zn({},h),{isOpening:!0}))):(d=0,h=a);break;case 2:ae(g);break;case 3:K(g);break;case 4:le(g);break;case 5:Ce(g);break;case 6:be(g);break;case 7:Ge(g);break;case 8:st(g);break;case 9:gt(g);break;case 10:_t(g);break;case 11:Ke(g);break;case 12:vt(g);break;case 13:"--"===n.substr(l,2)?(l+=2,h=new Pr(zn(zn({},h),{type:"comment"})),d=14):"DOCTYPE"===n.substr(l,7).toUpperCase()?(l+=7,h=new Pr(zn(zn({},h),{type:"doctype"})),d=20):rt();break;case 14:vi(g);break;case 15:Dn(g);break;case 16:bo(g);break;case 17:Co(g);break;case 18:Xe(g);break;case 19:We(g);break;case 20:pt(g);break;default:aR(d)}l++}var Ve;function K(Ve){La.test(Ve)?(h=new Pr(zn(zn({},h),{name:nn()})),d=4):"<"===Ve?en():"/"===Ve?(h=new Pr(zn(zn({},h),{name:nn()})),d=12):">"===Ve?(h=new Pr(zn(zn({},h),{name:nn()})),Mn()):!Bb.test(Ve)&&!vZ.test(Ve)&&":"!==Ve&&rt()}function ae(Ve){">"===Ve?rt():Bb.test(Ve)?d=3:rt()}function le(Ve){La.test(Ve)||("/"===Ve?d=12:">"===Ve?Mn():"<"===Ve?en():"="===Ve||Vb.test(Ve)||yZ.test(Ve)?rt():d=5)}function Ce(Ve){La.test(Ve)?d=6:"/"===Ve?d=12:"="===Ve?d=7:">"===Ve?Mn():"<"===Ve?en():Vb.test(Ve)&&rt()}function be(Ve){La.test(Ve)||("/"===Ve?d=12:"="===Ve?d=7:">"===Ve?Mn():"<"===Ve?en():Vb.test(Ve)?rt():d=5)}function Ge(Ve){La.test(Ve)||('"'===Ve?d=8:"'"===Ve?d=9:/[>=`]/.test(Ve)?rt():"<"===Ve?en():d=10)}function st(Ve){'"'===Ve&&(d=11)}function gt(Ve){"'"===Ve&&(d=11)}function _t(Ve){La.test(Ve)?d=4:">"===Ve?Mn():"<"===Ve&&en()}function Ke(Ve){La.test(Ve)?d=4:"/"===Ve?d=12:">"===Ve?Mn():"<"===Ve?en():(d=4,function It(){l--}())}function vt(Ve){">"===Ve?(h=new Pr(zn(zn({},h),{isClosing:!0})),Mn()):d=4}function vi(Ve){"-"===Ve?d=15:">"===Ve?rt():d=16}function Dn(Ve){"-"===Ve?d=18:">"===Ve?rt():d=16}function bo(Ve){"-"===Ve&&(d=17)}function Co(Ve){d="-"===Ve?18:16}function Xe(Ve){">"===Ve?Mn():"!"===Ve?d=19:"-"===Ve||(d=16)}function We(Ve){"-"===Ve?d=17:">"===Ve?Mn():d=16}function pt(Ve){">"===Ve?Mn():"<"===Ve&&en()}function rt(){d=0,h=a}function en(){d=1,h=new Pr({idx:l})}function Mn(){var Ve=n.slice(u,h.idx);Ve&&o(Ve,u),"comment"===h.type?r(h.idx):"doctype"===h.type?s(h.idx):(h.isOpening&&e(h.name,h.idx),h.isClosing&&i(h.name,h.idx)),rt(),u=l+1}function nn(){return n.slice(h.idx+(h.isClosing?2:1),l).toLowerCase()}u<l&&function _i(){var Ve=n.slice(u,l);o(Ve,u),u=l+1}()}(t,{onOpenTag:function(s){i.indexOf(s)>=0&&o++},onText:function(s,a){if(0===o){var c=function hZ(n,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var o,e=[],i=0;o=t.exec(n);)e.push(n.substring(i,o.index)),e.push(o[0]),i=o.index+o[0].length;return e.push(n.substring(i)),e}(s,/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),d=a;c.forEach(function(u,h){if(h%2==0){var g=e.parseText(u,d);r.push.apply(r,g)}d+=u.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)},n.prototype.compactMatches=function(t){t.sort(function(l,c){return l.getOffset()-c.getOffset()});for(var e=0;e<t.length-1;e++){var i=t[e],o=i.getOffset(),r=i.getMatchedText().length,s=o+r;if(e+1<t.length){if(t[e+1].getOffset()===o){var a=t[e+1].getMatchedText().length>r?e:e+1;t.splice(a,1);continue}t[e+1].getOffset()<s&&t.splice(e+1,1)}}return t},n.prototype.removeUnwantedMatches=function(t){return this.hashtag||Na(t,function(e){return"hashtag"===e.getType()}),this.email||Na(t,function(e){return"email"===e.getType()}),this.phone||Na(t,function(e){return"phone"===e.getType()}),this.mention||Na(t,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||Na(t,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.wwwMatches||Na(t,function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()}),this.urls.tldMatches||Na(t,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),t},n.prototype.parseText=function(t,e){void 0===e&&(e=0),e=e||0;for(var i=this.getMatchers(),o=[],r=0,s=i.length;r<s;r++){for(var a=i[r].parseMatches(t),l=0,c=a.length;l<c;l++)a[l].setOffset(e+a[l].getOffset());o.push.apply(o,a)}return o},n.prototype.link=function(t){if(!t)return"";this.sanitizeHtml&&(t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var e=this.parse(t),i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r];i.push(t.substring(o,a.getOffset())),i.push(this.createMatchReturnVal(a)),o=a.getOffset()+a.getMatchedText().length}return i.push(t.substring(o)),i.join("")},n.prototype.createMatchReturnVal=function(t){var e;return this.replaceFn&&(e=this.replaceFn.call(this.context,t)),"string"==typeof e?e:!1===e?t.getMatchedText():e instanceof Lb?e.toAnchorString():t.buildTag().toAnchorString()},n.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var t=this.getTagBuilder(),e=[new CR({tagBuilder:t,serviceName:this.hashtag}),new yR({tagBuilder:t}),new ER({tagBuilder:t}),new SR({tagBuilder:t,serviceName:this.mention}),new bR({tagBuilder:t,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=e},n.prototype.getTagBuilder=function(){var t=this.tagBuilder;return t||(t=this.tagBuilder=new lR({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),t},n.version="3.14.3",n.AnchorTagBuilder=lR,n.HtmlTag=Lb,n.matcher={Email:yR,Hashtag:CR,Matcher:bc,Mention:SR,Phone:ER,Url:bR},n.match={Email:dR,Hashtag:uR,Match:yc,Mention:hR,Phone:fR,Url:pR},n}();const UZ=jZ,$p=["*"];function HZ(n,t){if(1&n){const e=yt();v(0,"div",2),Te("click",function(){return Ue(e),fe()._onBackdropClicked()}),_()}2&n&&lt("mat-drawer-shown",fe()._isShowingBackdrop())}function zZ(n,t){1&n&&(v(0,"mat-drawer-content"),kt(1,2),_())}const GZ=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],qZ=["mat-drawer","mat-drawer-content","*"];function WZ(n,t){if(1&n){const e=yt();v(0,"div",2),Te("click",function(){return Ue(e),fe()._onBackdropClicked()}),_()}2&n&&lt("mat-drawer-shown",fe()._isShowingBackdrop())}function $Z(n,t){1&n&&(v(0,"mat-sidenav-content",3),kt(1,2),_())}const YZ=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],QZ=["mat-sidenav","mat-sidenav-content","*"],AR={transformDrawer:lo("transform",[pi("open, open-instant",Wt({transform:"none",visibility:"visible"})),pi("void",Wt({"box-shadow":"none",visibility:"hidden"})),ri("void => open-instant",fi("0ms")),ri("void <=> open, open-instant => void",fi("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},ZZ=new je("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function XZ(){return!1}}),Ub=new je("MAT_DRAWER_CONTAINER");let Yp=(()=>{class n extends Cp{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 n.\u0275fac=function(e){return new(e||n)(f(Jt),f(Zt(()=>xR)),f(Pe),f(vu),f(ut))},n.\u0275cmp=tt({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&di("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[Le],ngContentSelectors:$p,decls:1,vars:0,template:function(e,i){1&e&&(In(),kt(0))},encapsulation:2,changeDetection:0}),n})(),wR=(()=>{class n{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 _e,this._animationEnd=new _e,this._animationState="void",this.openedChange=new Me(!0),this._openedStream=this.openedChange.pipe($t(d=>d),ze(()=>{})),this.openedStart=this._animationStarted.pipe($t(d=>d.fromState!==d.toState&&0===d.toState.indexOf("open")),gb(void 0)),this._closedStream=this.openedChange.pipe($t(d=>!d),ze(()=>{})),this.closedStart=this._animationStarted.pipe($t(d=>d.fromState!==d.toState&&"void"===d.toState),gb(void 0)),this._destroyed=new _e,this.onPositionChanged=new Me,this._modeChanged=new _e,this.openedChange.subscribe(d=>{d?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{ic(this._elementRef.nativeElement,"keydown").pipe($t(d=>27===d.keyCode&&!this.disableClose&&!vo(d)),xt(this._destroyed)).subscribe(d=>this._ngZone.run(()=>{this.close(),d.stopPropagation(),d.preventDefault()}))}),this._animationEnd.pipe(wp((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{const{fromState:u,toState:h}=d;(0===h.indexOf("open")&&"void"===u||"void"===h&&0===u.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!=this._position&&(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)&&(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(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),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(){var e;const i=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!i&&this._elementRef.nativeElement.contains(i)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),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(wn(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)}_animationStartListener(e){this._animationStarted.next(e)}_animationDoneListener(e){this._animationEnd.next(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(PO),f(Rr),f(Jn),f(ut),f(hb),f(ct,8),f(Ub,8))},n.\u0275cmp=tt({type:n,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&fd("@transform.start",function(r){return i._animationStartListener(r)})("@transform.done",function(r){return i._animationDoneListener(r)}),2&e&&(Dt("align",null),md("@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:$p,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,i){1&e&&(In(),v(0,"div",0),kt(1),_())},directives:[Cp],encapsulation:2,data:{animation:[AR.transformDrawer]},changeDetection:0}),n})(),xR=(()=>{class n{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 $r,this.backdropClick=new Me,this._destroyed=new _e,this._doCheckSubject=new _e,this._contentMargins={left:null,right:null},this._contentMarginChanges=new _e,e&&e.change.pipe(xt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(xt(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(Ci(this._allDrawers),xt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Ci(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(wu(10),xt(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($t(i=>i.fromState!==i.toState),xt(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(xt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(xt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(wn(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(xt($i(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 n.\u0275fac=function(e){return new(e||n)(f(go,8),f(Pe),f(ut),f(Jt),f(Ep),f(ZZ),f(Ri,8))},n.\u0275cmp=tt({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Yp,5),Je(o,wR,5)),2&e){let r;Oe(r=Re())&&(i._content=r.first),Oe(r=Re())&&(i._allDrawers=r)}},viewQuery:function(e,i){if(1&e&&Mt(Yp,5),2&e){let o;Oe(o=Re())&&(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:[Lt([{provide:Ub,useExisting:n}])],ngContentSelectors:qZ,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&&(In(GZ),ie(0,HZ,1,2,"div",0),kt(1),kt(2,1),ie(3,zZ,2,0,"mat-drawer-content",1)),2&e&&(G("ngIf",i.hasBackdrop),T(3),G("ngIf",!i._content))},directives:[cn,Yp],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),Hb=(()=>{class n extends Yp{constructor(e,i,o,r,s){super(e,i,o,r,s)}}return n.\u0275fac=function(e){return new(e||n)(f(Jt),f(Zt(()=>MR)),f(Pe),f(vu),f(ut))},n.\u0275cmp=tt({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,i){2&e&&di("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[Le],ngContentSelectors:$p,decls:1,vars:0,template:function(e,i){1&e&&(In(),kt(0))},encapsulation:2,changeDetection:0}),n})(),DR=(()=>{class n extends wR{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=mo(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=mo(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275cmp=tt({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,i){2&e&&(Dt("align",null),di("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:[Le],ngContentSelectors:$p,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,i){1&e&&(In(),v(0,"div",0),kt(1),_())},directives:[Cp],encapsulation:2,data:{animation:[AR.transformDrawer]},changeDetection:0}),n})(),MR=(()=>{class n extends xR{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275cmp=tt({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Hb,5),Je(o,DR,5)),2&e){let r;Oe(r=Re())&&(i._content=r.first),Oe(r=Re())&&(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:[Lt([{provide:Ub,useExisting:n}]),Le],ngContentSelectors:QZ,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,i){1&e&&(In(YZ),ie(0,WZ,1,2,"div",0),kt(1),kt(2,1),ie(3,$Z,2,0,"mat-sidenav-content",1)),2&e&&(G("ngIf",i.hasBackdrop),T(3),G("ngIf",!i._content))},directives:[cn,Hb,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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),JZ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Hi,Pt,pu,Da],Da,Pt]}),n})();const eX=["connectionContainer"],tX=["inputContainer"],nX=["label"];function iX(n,t){1&n&&(Mi(0),v(1,"div",14),$e(2,"div",15),$e(3,"div",16),$e(4,"div",17),_(),v(5,"div",18),$e(6,"div",15),$e(7,"div",16),$e(8,"div",17),_(),Ti())}function oX(n,t){1&n&&(v(0,"div",19),kt(1,1),_())}function rX(n,t){if(1&n&&(Mi(0),kt(1,2),v(2,"span"),me(3),_(),Ti()),2&n){const e=fe(2);T(3),He(e._control.placeholder)}}function sX(n,t){1&n&&kt(0,3,["*ngSwitchCase","true"])}function aX(n,t){1&n&&(v(0,"span",23),me(1," *"),_())}function lX(n,t){if(1&n){const e=yt();v(0,"label",20,21),Te("cdkObserveContent",function(){return Ue(e),fe().updateOutlineGap()}),ie(2,rX,4,1,"ng-container",12),ie(3,sX,1,0,"ng-content",12),ie(4,aX,2,0,"span",22),_()}if(2&n){const e=fe();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),G("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Dt("for",e._control.id)("aria-owns",e._control.id),T(2),G("ngSwitchCase",!1),T(1),G("ngSwitchCase",!0),T(1),G("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function cX(n,t){1&n&&(v(0,"div",24),kt(1,4),_())}function dX(n,t){if(1&n&&(v(0,"div",25),$e(1,"span",26),_()),2&n){const e=fe();T(1),lt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function uX(n,t){1&n&&(v(0,"div"),kt(1,5),_()),2&n&&G("@transitionMessages",fe()._subscriptAnimationState)}function hX(n,t){if(1&n&&(v(0,"div",30),me(1),_()),2&n){const e=fe(2);G("id",e._hintLabelId),T(1),He(e.hintLabel)}}function fX(n,t){if(1&n&&(v(0,"div",27),ie(1,hX,2,2,"div",28),kt(2,6),$e(3,"div",29),kt(4,7),_()),2&n){const e=fe();G("@transitionMessages",e._subscriptAnimationState),T(1),G("ngIf",e.hintLabel)}}const pX=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],mX=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],TR=new je("MatError"),_X={transitionMessages:lo("transitionMessages",[pi("enter",Wt({opacity:1,transform:"translateY(0%)"})),ri("void => enter",[Wt({opacity:0,transform:"translateY(-5px)"}),fi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Qp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n}),n})();const yX=new je("MatHint");let Cc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["mat-label"]]}),n})(),bX=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["mat-placeholder"]]}),n})();const CX=new je("MatPrefix"),IR=new je("MatSuffix");let OR=0;const AX=Ia(class{constructor(n){this._elementRef=n}},"primary"),wX=new je("MAT_FORM_FIELD_DEFAULT_OPTIONS"),zb=new je("MatFormField");let Kp=(()=>{class n extends AX{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 _e,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+OR++,this._labelId="mat-form-field-label-"+OR++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==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(Ci(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(xt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(xt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),$i(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Ci(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Ci(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(xt(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,ic(this._label.nativeElement,"transitionend").pipe(wn(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;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let i=0,o=0;const r=this._connectionContainerRef.nativeElement,s=r.querySelectorAll(".mat-form-field-outline-start"),a=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=r.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),d=e.children,u=this._getStartEnd(d[0].getBoundingClientRect());let h=0;for(let g=0;g<d.length;g++)h+=d[g].offsetWidth;i=Math.abs(u-c)-5,o=h>0?.75*h+10:0}for(let l=0;l<s.length;l++)s[l].style.width=`${i}px`;for(let l=0;l<a.length;l++)a[l].style.width=`${o}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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Jt),f(go,8),f(wX,8),f(Jn),f(ut),f(Ri,8))},n.\u0275cmp=tt({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Qp,5),Je(o,Qp,7),Je(o,Cc,5),Je(o,Cc,7),Je(o,bX,5),Je(o,TR,5),Je(o,yX,5),Je(o,CX,5),Je(o,IR,5)),2&e){let r;Oe(r=Re())&&(i._controlNonStatic=r.first),Oe(r=Re())&&(i._controlStatic=r.first),Oe(r=Re())&&(i._labelChildNonStatic=r.first),Oe(r=Re())&&(i._labelChildStatic=r.first),Oe(r=Re())&&(i._placeholderChild=r.first),Oe(r=Re())&&(i._errorChildren=r),Oe(r=Re())&&(i._hintChildren=r),Oe(r=Re())&&(i._prefixChildren=r),Oe(r=Re())&&(i._suffixChildren=r)}},viewQuery:function(e,i){if(1&e&&(Mt(eX,7),Mt(tX,5),Mt(nX,5)),2&e){let o;Oe(o=Re())&&(i._connectionContainerRef=o.first),Oe(o=Re())&&(i._inputContainerRef=o.first),Oe(o=Re())&&(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:[Lt([{provide:zb,useExisting:n}]),Le],ngContentSelectors:mX,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[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&&(In(pX),v(0,"div",0),v(1,"div",1,2),Te("click",function(r){return i._control.onContainerClick&&i._control.onContainerClick(r)}),ie(3,iX,9,0,"ng-container",3),ie(4,oX,2,0,"div",4),v(5,"div",5,6),kt(7),v(8,"span",7),ie(9,lX,5,16,"label",8),_(),_(),ie(10,cX,2,0,"div",9),_(),ie(11,dX,2,4,"div",10),v(12,"div",11),ie(13,uX,2,1,"div",12),ie(14,fX,5,2,"div",13),_(),_()),2&e&&(T(3),G("ngIf","outline"==i.appearance),T(1),G("ngIf",i._prefixChildren.length),T(5),G("ngIf",i._hasFloatingLabel()),T(1),G("ngIf",i._suffixChildren.length),T(1),G("ngIf","outline"!=i.appearance),T(1),G("ngSwitch",i._getDisplayedMessages()),T(1),G("ngSwitchCase","error"),T(1),G("ngSwitchCase","hint"))},directives:[cn,ua,jd,wO],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.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;-moz-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;-moz-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;-moz-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;-moz-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:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-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 transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[_X.transitionMessages]},changeDetection:0}),n})(),Zp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Hi,Pt,cb],Pt]}),n})();const kR=Aa({passive:!0});let xX=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ho;const i=os(e),o=this._monitoredElements.get(i);if(o)return o.subject;const r=new _e,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,kR),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",a,kR)}}),r}stopMonitoring(e){const i=os(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 n.\u0275fac=function(e){return new(e||n)(se(Jn),se(ut))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),PR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[pu]]}),n})();const DX=new je("MAT_INPUT_VALUE_ACCESSOR"),MX=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let TX=0;const IX=qO(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let Gb=(()=>{class n extends IX{constructor(e,i,o,r,s,a,l,c,d,u){super(a,r,s,o),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+TX++,this.focused=!1,this.stateChanges=new _e,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(I=>aO().has(I));const h=this._elementRef.nativeElement,g=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",I=>{const Q=I.target;!Q.value&&0===Q.selectionStart&&0===Q.selectionEnd&&(Q.setSelectionRange(1,1),Q.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===g,this._isTextarea="textarea"===g,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=h.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(oy.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&&aO().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)}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,i;const o=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;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(){MX.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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Jn),f(Mr,10),f(Ql,8),f(Xd,8),f(vb),f(DX,10),f(xX),f(ut),f(zb,8))},n.\u0275dir=ge({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,i){1&e&&Te("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Ss("disabled",i.disabled)("required",i.required),Dt("id",i.id)("data-placeholder",i.placeholder)("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",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Lt([{provide:Qp,useExisting:n}]),Le,Cn]}),n})(),OX=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[vb],imports:[[PR,Zp,Pt],PR,Zp]}),n})();class qb{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new _e,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let NR=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const LR=["*"],FR='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n',RX=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],kX=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],PX=["text"];function NX(n,t){if(1&n&&$e(0,"mat-pseudo-checkbox",5),2&n){const e=fe();G("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const LX=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],FX=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],BX=Ta(Fs(class{})),VX=Fs(class{}),BR=new je("MatList"),jX=new je("MatNavList");let Xp=(()=>{class n extends BX{constructor(e){super(),this._elementRef=e,this._stateChanges=new _e,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_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 n.\u0275fac=function(e){return new(e||n)(f(Pe))},n.\u0275cmp=tt({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[Lt([{provide:BR,useExisting:n}]),Le,Cn],ngContentSelectors:LR,decls:1,vars:0,template:function(e,i){1&e&&(In(),kt(0))},styles:[FR],encapsulation:2,changeDetection:0}),n})(),Jp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),em=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),UX=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),n})(),tm=(()=>{class n extends VX{constructor(e,i,o,r){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new _e,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(xt(this._destroyed)).subscribe(()=>{i.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=ft(e)}ngAfterContentInit(){WO(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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Jt),f(jX,8),f(BR,8))},n.\u0275cmp=tt({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Jp,5),Je(o,em,5),Je(o,pc,5)),2&e){let r;Oe(r=Re())&&(i._avatar=r.first),Oe(r=Re())&&(i._icon=r.first),Oe(r=Re())&&(i._lines=r)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,i){2&e&&lt("mat-list-item-disabled",i.disabled)("mat-list-item-avatar",i._avatar||i._icon)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[Le],ngContentSelectors:kX,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&&(In(RX),v(0,"div",0),$e(1,"div",1),kt(2),v(3,"div",2),kt(4,1),_(),kt(5,2),_()),2&e&&(T(1),G("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},directives:[Oa],encapsulation:2,changeDetection:0}),n})();const HX=Fs(class{}),zX=Fs(class{}),GX={provide:ho,useExisting:Zt(()=>Wb),multi:!0};class qX{constructor(t,e,i){this.source=t,this.option=e,this.options=i}}let VR=(()=>{class n extends zX{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 Me,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(o,this._value))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){WO(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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Jt),f(Zt(()=>Wb)))},n.\u0275cmp=tt({type:n,selectors:[["mat-list-option"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Jp,5),Je(o,em,5),Je(o,pc,5)),2&e){let r;Oe(r=Re())&&(i._avatar=r.first),Oe(r=Re())&&(i._icon=r.first),Oe(r=Re())&&(i._lines=r)}},viewQuery:function(e,i){if(1&e&&Mt(PX,5),2&e){let o;Oe(o=Re())&&(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&&Te("focus",function(){return i._handleFocus()})("blur",function(){return i._handleBlur()})("click",function(){return i._handleClick()}),2&e&&(Dt("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:[Le],ngContentSelectors:FX,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&&(In(LX),v(0,"div",0),$e(1,"div",1),ie(2,NX,1,2,"mat-pseudo-checkbox",2),v(3,"div",3,4),kt(5),_(),kt(6,1),_()),2&e&&(lt("mat-list-item-content-reverse","after"==i.checkboxPosition),T(1),G("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),T(1),G("ngIf",i.selectionList.multiple))},directives:[Oa,cn,KO],encapsulation:2,changeDetection:0}),n})(),Wb=(()=>{class n extends HX{constructor(e,i,o,r){super(),this._element=e,this._changeDetector=o,this._focusMonitor=r,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new Me,this.tabIndex=0,this.color="accent",this.compareWith=(s,a)=>s===a,this._disabled=!1,this.selectedOptions=new qb(this._multiple),this._tabIndex=-1,this._onChange=s=>{},this._destroyed=new _e,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 qb(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){var e;this._contentInitialized=!0,this._keyManager=new ub(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(xt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(Ci(null),xt(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(xt(this._destroyed)).subscribe(i=>{if(i.added)for(let o of i.added)o.selected=!0;if(i.removed)for(let o of i.removed)o.selected=!1}),null===(e=this._focusMonitor)||void 0===e||e.monitor(this._element).pipe(xt(this._destroyed)).subscribe(i=>{var o;if("keyboard"===i||"program"===i){let r=0;for(let s=0;s<this.options.length;s++)if(null===(o=this.options.get(s))||void 0===o?void 0:o.selected){r=s;break}this._keyManager.setActiveItem(r)}})}ngOnChanges(e){const i=e.disableRipple,o=e.color;(i&&!i.firstChange||o&&!o.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){var e;null===(e=this._focusMonitor)||void 0===e||e.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=vo(e);switch(i){case 32:case 13:!s&&!o.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&vo(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 qX(this,e[0],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 n.\u0275fac=function(e){return new(e||n)(f(Pe),xo("tabindex"),f(Jt),f(Rr))},n.\u0275cmp=tt({type:n,selectors:[["mat-selection-list"]],contentQueries:function(e,i,o){if(1&e&&Je(o,VR,5),2&e){let r;Oe(r=Re())&&(i.options=r)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&Te("keydown",function(r){return i._keydown(r)}),2&e&&Dt("aria-multiselectable",i.multiple)("aria-disabled",i.disabled.toString())("tabindex",i._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Lt([GX]),Le,Cn],ngContentSelectors:LR,decls:1,vars:0,template:function(e,i){1&e&&(In(),kt(0))},styles:[FR],encapsulation:2,changeDetection:0}),n})(),WX=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Ip,Du,Pt,yb,Hi],Ip,Pt,yb,tR]}),n})();function $X(n,t){if(1&n&&(_s(),$e(0,"circle",3)),2&n){const e=fe();di("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Dt("r",e._getCircleRadius())}}function YX(n,t){if(1&n&&(_s(),$e(0,"circle",3)),2&n){const e=fe();di("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Dt("r",e._getCircleRadius())}}function QX(n,t){if(1&n&&(_s(),$e(0,"circle",3)),2&n){const e=fe();di("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Dt("r",e._getCircleRadius())}}function KX(n,t){if(1&n&&(_s(),$e(0,"circle",3)),2&n){const e=fe();di("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Dt("r",e._getCircleRadius())}}const JX=Ia(class{constructor(n){this._elementRef=n}},"primary"),jR=new je("mat-progress-spinner-default-options",{providedIn:"root",factory:function eJ(){return{diameter:100}}});class ls extends JX{constructor(t,e,i,o,r){super(t),this._document=i,this._diameter=100,this._value=0,this.mode="determinate";const s=ls._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(i.head)||s.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=mo(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=mo(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,mo(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=cO(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_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}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=ls._diameters;let o=i.get(t);if(!o||!o.has(e)){const r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),t.appendChild(r),o||(o=new Set,i.set(t,o)),o.add(e)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}ls._diameters=new WeakMap,ls.\u0275fac=function(t){return new(t||ls)(f(Pe),f(Jn),f(ct,8),f(Ri,8),f(jR))},ls.\u0275cmp=tt({type:ls,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Dt("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),di("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:[Le],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(_s(),v(0,"svg",0),ie(1,$X,1,9,"circle",1),ie(2,YX,1,7,"circle",2),_()),2&t&&(di("width",e.diameter,"px")("height",e.diameter,"px"),G("ngSwitch","indeterminate"===e.mode),Dt("viewBox",e._getViewBox()),T(1),G("ngSwitchCase",!0),T(1),G("ngSwitchCase",!1))},directives:[ua,jd],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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@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)}}\n"],encapsulation:2,changeDetection:0});let UR=(()=>{class n extends ls{constructor(e,i,o,r,s){super(e,i,o,r,s),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Jn),f(ct,8),f(Ri,8),f(jR))},n.\u0275cmp=tt({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,i){2&e&&(di("width",i.diameter,"px")("height",i.diameter,"px"),lt("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[Le],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,i){1&e&&(_s(),v(0,"svg",0),ie(1,QX,1,9,"circle",1),ie(2,KX,1,7,"circle",2),_()),2&e&&(di("width",i.diameter,"px")("height",i.diameter,"px"),G("ngSwitch","indeterminate"===i.mode),Dt("viewBox",i._getViewBox()),T(1),G("ngSwitchCase",!0),T(1),G("ngSwitchCase",!1))},directives:[ua,jd],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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@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)}}\n"],encapsulation:2,changeDetection:0}),n})(),nJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Pt,Hi],Pt]}),n})();const iJ=["trigger"],oJ=["panel"];function rJ(n,t){if(1&n&&(v(0,"span",8),me(1),_()),2&n){const e=fe();T(1),He(e.placeholder)}}function sJ(n,t){if(1&n&&(v(0,"span",12),me(1),_()),2&n){const e=fe(2);T(1),He(e.triggerValue)}}function aJ(n,t){1&n&&kt(0,0,["*ngSwitchCase","true"])}function lJ(n,t){1&n&&(v(0,"span",9),ie(1,sJ,2,1,"span",10),ie(2,aJ,1,0,"ng-content",11),_()),2&n&&(G("ngSwitch",!!fe().customTrigger),T(2),G("ngSwitchCase",!0))}function cJ(n,t){if(1&n){const e=yt();v(0,"div",13),v(1,"div",14,15),Te("@transformPanel.done",function(o){return Ue(e),fe()._panelDoneAnimatingStream.next(o.toState)})("keydown",function(o){return Ue(e),fe()._handleKeydown(o)}),kt(3,1),_(),_()}if(2&n){const e=fe();G("@transformPanelWrap",void 0),T(1),yA("mat-select-panel ",e._getPanelTheme(),""),di("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),G("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Dt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const dJ=[[["mat-select-trigger"]],"*"],uJ=["mat-select-trigger","*"],HR={transformPanelWrap:lo("transformPanelWrap",[ri("* => void",Zz("@transformPanel",[Kz()],{optional:!0}))]),transformPanel:lo("transformPanel",[pi("void",Wt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),pi("showing",Wt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),pi("showing-multiple",Wt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ri("void => *",fi("120ms cubic-bezier(0, 0, 0.2, 1)")),ri("* => void",fi("100ms 25ms linear",Wt({opacity:0})))])};let zR=0;const qR=new je("mat-select-scroll-strategy"),mJ=new je("MAT_SELECT_CONFIG"),gJ={provide:qR,deps:[ar],useFactory:function pJ(n){return()=>n.scrollStrategies.reposition()}};class vJ{constructor(t,e){this.source=t,this.value=e}}const _J=Fs(Tp(Ta(qO(class{constructor(n,t,e,i,o){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o}})))),yJ=new je("MatSelectTrigger");let bJ=(()=>{class n extends _J{constructor(e,i,o,r,s,a,l,c,d,u,h,g,I,Q){var K,ae,le;super(s,r,l,c,u),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=a,this._parentFormField=d,this._liveAnnouncer=I,this._defaultOptions=Q,this._panelOpen=!1,this._compareWith=(Ce,be)=>Ce===be,this._uid="mat-select-"+zR++,this._triggerAriaLabelledBy=null,this._destroy=new _e,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+zR++,this._panelDoneAnimatingStream=new _e,this._overlayPanelClass=(null===(K=this._defaultOptions)||void 0===K?void 0:K.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(le=null===(ae=this._defaultOptions)||void 0===ae?void 0:ae.disableOptionCentering)&&void 0!==le&&le,this.ariaLabel="",this.optionSelectionChanges=Zf(()=>{const Ce=this.options;return Ce?Ce.changes.pipe(Ci(Ce),fo(()=>$i(...Ce.map(be=>be.onSelectionChange)))):this._ngZone.onStable.pipe(wn(1),fo(()=>this.optionSelectionChanges))}),this.openedChange=new Me,this._openedStream=this.openedChange.pipe($t(Ce=>Ce),ze(()=>{})),this._closedStream=this.openedChange.pipe($t(Ce=>!Ce),ze(()=>{})),this.selectionChange=new Me,this.valueChange=new Me,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Q?void 0:Q.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Q.typeaheadDebounceInterval),this._scrollStrategyFactory=g,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||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(oy.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){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=mo(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new qb(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(wp(),xt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(xt(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Ci(null),xt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&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.value=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&&!vo(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||vo(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(wn(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._setSelectionByValue(this.ngControl?this.ngControl.value: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._selectValue(i)),this._sortValues();else{const i=this._selectValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(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}_initKeyManager(){this._keyManager=new nW(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(xt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(xt(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=$i(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(xt(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),$i(...this.options.map(i=>i._stateChanges)).pipe(xt(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){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(f(Ep),f(Jt),f(ut),f(vb),f(Pe),f(go,8),f(Ql,8),f(Xd,8),f(zb,8),f(Mr,10),xo("tabindex"),f(qR),f(LO),f(mJ,8))},n.\u0275dir=ge({type:n,viewQuery:function(e,i){if(1&e&&(Mt(iJ,5),Mt(oJ,5),Mt(SO,5)),2&e){let o;Oe(o=Re())&&(i.trigger=o.first),Oe(o=Re())&&(i.panel=o.first),Oe(o=Re())&&(i._overlayDir=o.first)}},inputs:{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:[Le,Cn]}),n})(),Yb=(()=>{class n extends bJ{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(xt(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(wn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=JO(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function FW(n,t,e,i){return n<e?n:n+t>e+i?Math.max(0,n-i+t):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 vJ(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+=JO(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 n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275cmp=tt({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,yJ,5),Je(o,bb,5),Je(o,XO,5)),2&e){let r;Oe(r=Re())&&(i.customTrigger=r.first),Oe(r=Re())&&(i.options=r),Oe(r=Re())&&(i.optionGroups=r)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&Te("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Dt("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-describedby",i._ariaDescribedby||null)("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:[Lt([{provide:Qp,useExisting:n},{provide:ZO,useExisting:n}]),Le],ngContentSelectors:uJ,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&&(In(dJ),v(0,"div",0,1),Te("click",function(){return i.toggle()}),v(3,"div",2),ie(4,rJ,2,1,"span",3),ie(5,lJ,3,2,"span",4),_(),v(6,"div",5),$e(7,"div",6),_(),_(),ie(8,cJ,4,14,"ng-template",7),Te("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const o=Cr(1);Dt("aria-owns",i.panelOpen?i.id+"-panel":null),T(3),G("ngSwitch",i.empty),Dt("id",i._valueId),T(1),G("ngSwitchCase",!0),T(1),G("ngSwitchCase",!1),T(3),G("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)}},directives:[EO,ua,jd,SO,mD,Xi],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[HR.transformPanelWrap,HR.transformPanel]},changeDetection:0}),n})(),CJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[gJ],imports:[[Hi,Au,Cb,Pt],Da,Zp,Cb,Pt]}),n})();const EJ=["thumbContainer"],SJ=["toggleBar"],AJ=["input"],wJ=function(n){return{enterDuration:n}},xJ=["*"],DJ=new je("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let MJ=0;const TJ={provide:ho,useExisting:Zt(()=>WR),multi:!0};class IJ{constructor(t,e){this.source=t,this.checked=e}}const OJ=Tp(Ia(Fs(Ta(class{constructor(n){this._elementRef=n}}))));let WR=(()=>{class n extends OJ{constructor(e,i,o,r,s,a){super(e),this._focusMonitor=i,this._changeDetectorRef=o,this.defaults=s,this._onChange=l=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++MJ,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new Me,this.toggleChange=new Me,this.tabIndex=parseInt(r)||0,this.color=this.defaultColor=s.color||"accent",this._noopAnimations="NoopAnimations"===a}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._inputElement.nativeElement.focus():e||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_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()}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new IJ(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Rr),f(Jt),xo("tabindex"),f(DJ),f(Ri,8))},n.\u0275cmp=tt({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,i){if(1&e&&(Mt(EJ,5),Mt(SJ,5),Mt(AJ,5)),2&e){let o;Oe(o=Re())&&(i._thumbEl=o.first),Oe(o=Re())&&(i._thumbBarEl=o.first),Oe(o=Re())&&(i._inputElement=o.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,i){2&e&&(Ss("id",i.id),Dt("tabindex",i.disabled?null:-1)("aria-label",null)("aria-labelledby",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",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"},exportAs:["matSlideToggle"],features:[Lt([TJ]),Le],ngContentSelectors:xJ,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["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"],["thumbContainer",""],[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&&(In(),v(0,"label",0,1),v(2,"div",2,3),v(4,"input",4,5),Te("change",function(r){return i._onChangeEvent(r)})("click",function(r){return i._onInputClick(r)}),_(),v(6,"div",6,7),$e(8,"div",8),v(9,"div",9),$e(10,"div",10),_(),_(),_(),v(11,"span",11,12),Te("cdkObserveContent",function(){return i._onLabelTextChange()}),v(13,"span",13),me(14,"\xa0"),_(),kt(15),_(),_()),2&e){const o=Cr(1),r=Cr(12);Dt("for",i.inputId),T(2),lt("mat-slide-toggle-bar-no-side-margin",!r.textContent||!r.textContent.trim()),T(2),G("id",i.inputId)("required",i.required)("tabIndex",i.tabIndex)("checked",i.checked)("disabled",i.disabled),Dt("name",i.name)("aria-checked",i.checked.toString())("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),T(5),G("matRippleTrigger",o)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Ki(18,wJ,i._noopAnimations?0:150))}},directives:[Oa,wO],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.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;-moz-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%}.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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),n})(),$R=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({}),n})(),PJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[$R,Du,Pt,cb],$R,Pt]}),n})(),NJ=0;const Qb=new je("CdkAccordion");let LJ=(()=>{class n{constructor(){this._stateChanges=new _e,this._openCloseAllActions=new _e,this.id="cdk-accordion-"+NJ++,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 n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Lt([{provide:Qb,useExisting:n}]),Cn]}),n})(),FJ=0,BJ=(()=>{class n{constructor(e,i,o){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=w.EMPTY,this.closed=new Me,this.opened=new Me,this.destroyed=new Me,this.expandedChange=new Me,this.id="cdk-accordion-child-"+FJ++,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 n.\u0275fac=function(e){return new(e||n)(f(Qb,12),f(Jt),f(NR))},n.\u0275dir=ge({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Lt([{provide:Qb,useValue:void 0}])]}),n})(),VJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({}),n})();const jJ=["body"];function UJ(n,t){}const HJ=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],zJ=["mat-expansion-panel-header","*","mat-action-row"];function GJ(n,t){1&n&&$e(0,"span",2),2&n&&G("@indicatorRotate",fe()._getExpandedState())}const qJ=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],WJ=["mat-panel-title","mat-panel-description","*"],Kb=new je("MAT_ACCORDION"),YR="225ms cubic-bezier(0.4,0.0,0.2,1)",QR={indicatorRotate:lo("indicatorRotate",[pi("collapsed, void",Wt({transform:"rotate(0deg)"})),pi("expanded",Wt({transform:"rotate(180deg)"})),ri("expanded <=> collapsed, void => collapsed",fi(YR))]),bodyExpansion:lo("bodyExpansion",[pi("collapsed, void",Wt({height:"0px",visibility:"hidden"})),pi("expanded",Wt({height:"*",visibility:"visible"})),ri("expanded <=> collapsed, void => collapsed",fi(YR))])};let $J=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(f(bt))},n.\u0275dir=ge({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),YJ=0;const KR=new je("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ZR=(()=>{class n extends BJ{constructor(e,i,o,r,s,a,l){super(e,i,o),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new Me,this.afterCollapse=new Me,this._inputChanges=new _e,this._headerId="mat-expansion-panel-header-"+YJ++,this._bodyAnimationDone=new _e,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(wp((c,d)=>c.fromState===d.fromState&&c.toState===d.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.opened.pipe(Ci(null),$t(()=>this.expanded&&!this._portal),wn(1)).subscribe(()=>{this._portal=new ac(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 n.\u0275fac=function(e){return new(e||n)(f(Kb,12),f(Jt),f(NR),f(pn),f(ct),f(Ri,8),f(KR,8))},n.\u0275cmp=tt({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,o){if(1&e&&Je(o,$J,5),2&e){let r;Oe(r=Re())&&(i._lazyContent=r.first)}},viewQuery:function(e,i){if(1&e&&Mt(jJ,5),2&e){let o;Oe(o=Re())&&(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:[Lt([{provide:Kb,useValue:void 0}]),Le,Cn],ngContentSelectors:zJ,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&&(In(HJ),kt(0),v(1,"div",0,1),Te("@bodyExpansion.done",function(r){return i._bodyAnimationDone.next(r)}),v(3,"div",2),kt(4,1),ie(5,UJ,0,0,"ng-template",3),_(),kt(6,2),_()),2&e&&(T(1),G("@bodyExpansion",i._getExpandedState())("id",i.id),Dt("aria-labelledby",i._headerId),T(4),G("cdkPortalOutlet",i._portal))},directives:[_u],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-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 button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[QR.bodyExpansion]},changeDetection:0}),n})();class QJ{}const KJ=Tp(QJ);let XR=(()=>{class n extends KJ{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=w.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe($t(d=>!(!d.hideToggle&&!d.togglePosition))):Ho;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=$i(e.opened,e.closed,c,e._inputChanges.pipe($t(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe($t(()=>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:vo(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 n.\u0275fac=function(e){return new(e||n)(f(ZR,1),f(Pe),f(Rr),f(Jt),f(KR,8),f(Ri,8),xo("tabindex"))},n.\u0275cmp=tt({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&Te("click",function(){return i._toggle()})("keydown",function(r){return i._keydown(r)}),2&e&&(Dt("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),di("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:[Le],ngContentSelectors:WJ,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(In(qJ),v(0,"span",0),kt(1),kt(2,1),kt(3,2),_(),ie(4,GJ,1,1,"span",1)),2&e&&(T(4),G("ngIf",i._showToggle()))},directives:[cn],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-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[QR.indicatorRotate]},changeDetection:0}),n})(),ZJ=(()=>{class n extends LJ{constructor(){super(...arguments),this._ownHeaders=new $r,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(Ci(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(i=>i.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ub(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=ge({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,i,o){if(1&e&&Je(o,XR,5),2&e){let r;Oe(r=Re())&&(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:[Lt([{provide:Kb,useExisting:n}]),Le]}),n})(),XJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Hi,Pt,VJ,Ap]]}),n})(),nee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Pt],Pt]}),n})(),ree=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Ip,Pt],Ip,Pt]}),n})(),gee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[Hi,Pt],Pt]}),n})();function vee(n,t){if(1&n){const e=yt();v(0,"div",3),v(1,"button",4),Te("click",function(){return Ue(e),fe().close()}),me(2),xe(3,"translate"),_(),_()}2&n&&(T(2),He(Ie(3,1,"PANEL.CLOSE")))}function _ee(n,t){if(1&n){const e=yt();v(0,"div",3),v(1,"button",4),Te("click",function(){return Ue(e),fe().close()}),me(2),xe(3,"translate"),_(),_()}2&n&&(T(2),He(Ie(3,1,"PANEL.CLOSE")))}const yee=["toolbarAdditionalButtons"],bee=["toolbarAdditionalPanelButtons"];function Cee(n,t){1&n&&$e(0,"img",30)}function Eee(n,t){if(1&n&&(v(0,"span",31),me(1),_()),2&n){const e=fe(2);T(1),He(e.session.sessionId)}}function See(n,t){if(1&n&&(v(0,"div",32),v(1,"mat-icon",33),me(2,"radio_button_checked"),_(),v(3,"span",33),me(4,"REC"),_(),v(5,"span"),me(6),xe(7,"date"),_(),_()),2&n){const e=fe(2);T(6),An(" | ",ra(7,1,e.recordingTime,"H:mm:ss"),"")}}function Aee(n,t){if(1&n&&(v(0,"div",25),v(1,"div"),ie(2,Cee,1,0,"img",26),v(3,"div",27),ie(4,Eee,2,1,"span",28),ie(5,See,8,4,"div",29),_(),_(),_()),2&n){const e=fe();T(2),G("ngIf",!e.isMinimal&&e.showLogo),T(1),lt("colapsed",e.recordingStatus===e._recordingStatus.STARTED),T(1),G("ngIf",!e.isMinimal&&e.session&&e.session.sessionId&&e.showSessionName),T(1),G("ngIf",e.recordingStatus===e._recordingStatus.STARTED)}}function wee(n,t){1&n&&(v(0,"mat-icon",34),xe(1,"translate"),me(2,"mic"),_()),2&n&&Qt("matTooltip",Ie(1,1,"TOOLBAR.MUTE_AUDIO"))}function xee(n,t){1&n&&(v(0,"mat-icon",35),xe(1,"translate"),me(2,"mic_off"),_()),2&n&&Qt("matTooltip",Ie(1,1,"TOOLBAR.UNMUTE_AUDIO"))}function Dee(n,t){1&n&&(v(0,"mat-icon",36),xe(1,"translate"),me(2,"videocam"),_()),2&n&&Qt("matTooltip",Ie(1,1,"TOOLBAR.MUTE_VIDEO"))}function Mee(n,t){1&n&&(v(0,"mat-icon",37),xe(1,"translate"),me(2,"videocam_off"),_()),2&n&&Qt("matTooltip",Ie(1,1,"TOOLBAR.UNMUTE_VIDEO"))}function Tee(n,t){1&n&&(v(0,"mat-icon",40),xe(1,"translate"),me(2,"screen_share"),_()),2&n&&Qt("matTooltip",Ie(1,1,"TOOLBAR.ENABLE_SCREEN"))}function Iee(n,t){1&n&&(v(0,"mat-icon",40),xe(1,"translate"),me(2,"screen_share"),_()),2&n&&Qt("matTooltip",Ie(1,1,"TOOLBAR.DISABLE_SCREEN"))}function Oee(n,t){if(1&n){const e=yt();v(0,"button",38),Te("click",function(){return Ue(e),fe().toggleScreenShare()}),ie(1,Tee,3,3,"mat-icon",39),ie(2,Iee,3,3,"mat-icon",39),_()}if(2&n){const e=fe();lt("active-btn",e.isScreenShareActive),G("disabled",e.isConnectionLost),T(1),G("ngIf",!e.isScreenShareActive),T(1),G("ngIf",e.isScreenShareActive)}}function Ree(n,t){if(1&n&&(v(0,"button",41),v(1,"mat-icon",40),xe(2,"translate"),me(3,"more_vert"),_(),_()),2&n){const e=fe();G("matMenuTriggerFor",Cr(12))("disabled",e.isConnectionLost),T(1),Qt("matTooltip",Ie(2,3,"TOOLBAR.MORE_OPTIONS"))}}function kee(n,t){1&n&&(v(0,"mat-icon"),me(1,"fullscreen"),_())}function Pee(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"TOOLBAR.FULLSCREEN")))}function Nee(n,t){1&n&&(v(0,"mat-icon"),me(1,"fullscreen_exit"),_())}function Lee(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"TOOLBAR.EXIT_FULLSCREEN")))}function Fee(n,t){if(1&n){const e=yt();v(0,"button",42),Te("click",function(){return Ue(e),fe().toggleFullscreen()}),ie(1,kee,2,0,"mat-icon",19),ie(2,Pee,3,3,"span",19),ie(3,Nee,2,0,"mat-icon",19),ie(4,Lee,3,3,"span",19),_()}if(2&n){const e=fe();T(1),G("ngIf",!e.isFullscreenActive),T(1),G("ngIf",!e.isFullscreenActive),T(1),G("ngIf",e.isFullscreenActive),T(1),G("ngIf",e.isFullscreenActive)}}function Bee(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),An(" ",Ie(2,1,"TOOLBAR.START_RECORDING")," "))}function Vee(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),An(" ",Ie(2,1,"TOOLBAR.STOP_RECORDING")," "))}function jee(n,t){if(1&n){const e=yt();v(0,"button",43),Te("click",function(){return Ue(e),fe().toggleRecording()}),v(1,"mat-icon",44),me(2,"radio_button_checked"),_(),ie(3,Bee,3,3,"span",19),ie(4,Vee,3,3,"span",19),_()}if(2&n){const e=fe();G("disabled",e.recordingStatus===e._recordingStatus.STARTING||e.recordingStatus===e._recordingStatus.STOPPING||!e.isSessionCreator),T(3),G("ngIf",e.recordingStatus===e._recordingStatus.STOPPED||e.recordingStatus===e._recordingStatus.STOPPING),T(1),G("ngIf",e.recordingStatus===e._recordingStatus.STARTED||e.recordingStatus===e._recordingStatus.STARTING)}}function Uee(n,t){if(1&n){const e=yt();v(0,"button",45),Te("click",function(){return Ue(e),fe().toggleBackgroundEffects()}),v(1,"mat-icon"),me(2,"auto_awesome"),_(),v(3,"span"),me(4),xe(5,"translate"),_(),_()}2&n&&(G("disabled",!fe().isWebcamVideoActive),T(4),He(Ie(5,2,"TOOLBAR.BACKGROUND")))}function Hee(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"TOOLBAR.DISABLE_SUBTITLES")))}function zee(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"TOOLBAR.ENABLE_SUBTITLES")))}function Gee(n,t){if(1&n){const e=yt();v(0,"button",46),Te("click",function(){return Ue(e),fe().toggleSubtitles()}),v(1,"mat-icon"),me(2,"closed_caption"),_(),ie(3,Hee,3,3,"span",19),ie(4,zee,3,3,"span",19),_()}if(2&n){const e=fe();G("disabled",e.isConnectionLost),T(3),G("ngIf",e.subtitlesEnabled),T(1),G("ngIf",!e.subtitlesEnabled)}}function qee(n,t){1&n&&$e(0,"mat-divider",47)}function Wee(n,t){if(1&n){const e=yt();v(0,"button",48),Te("click",function(){return Ue(e),fe().toggleSettings()}),v(1,"mat-icon"),me(2,"settings"),_(),v(3,"span"),me(4),xe(5,"translate"),_(),_()}2&n&&(T(4),He(Ie(5,1,"TOOLBAR.SETTINGS")))}function $ee(n,t){1&n&&fn(0)}function Yee(n,t){if(1&n&&(Mi(0),ie(1,$ee,1,0,"ng-container",49),Ti()),2&n){const e=fe();T(1),G("ngTemplateOutlet",e.toolbarAdditionalButtonsTemplate)}}function Qee(n,t){if(1&n){const e=yt();v(0,"button",50),Te("click",function(){return Ue(e),fe().leaveSession()}),v(1,"mat-icon",40),xe(2,"translate"),me(3,"call_end"),_(),_()}2&n&&(T(1),Qt("matTooltip",Ie(2,1,"TOOLBAR.LEAVE")))}function Kee(n,t){if(1&n){const e=yt();v(0,"button",51),Te("click",function(){return Ue(e),fe().toggleActivitiesPanel()}),xe(1,"translate"),v(2,"mat-icon"),me(3,"category"),_(),_()}if(2&n){const e=fe();lt("active-btn",e.isActivitiesOpened),Qt("matTooltip",Ie(1,4,"TOOLBAR.ACTIVITIES")),G("disabled",e.isConnectionLost)}}function Zee(n,t){if(1&n){const e=yt();v(0,"button",52),Te("click",function(){return Ue(e),fe().toggleParticipantsPanel()}),xe(1,"translate"),v(2,"mat-icon"),me(3,"people"),_(),_()}if(2&n){const e=fe();lt("active-btn",e.isParticipantsOpened),Qt("matTooltip",Ie(1,4,"TOOLBAR.PARTICIPANTS")),G("disabled",e.isConnectionLost)}}function Xee(n,t){if(1&n){const e=yt();v(0,"button",53),Te("click",function(){return Ue(e),fe().toggleChatPanel()}),xe(1,"translate"),v(2,"mat-icon",54),me(3," chat "),_(),_()}if(2&n){const e=fe();lt("active-btn",e.isChatOpened),Qt("matTooltip",Ie(1,6,"TOOLBAR.CHAT")),G("disabled",e.isConnectionLost),T(2),Qt("matBadge",e.unreadMessages),G("matBadgeHidden",0===e.unreadMessages)}}function Jee(n,t){1&n&&fn(0)}function ete(n,t){if(1&n&&(Mi(0),ie(1,Jee,1,0,"ng-container",49),Ti()),2&n){const e=fe();T(1),G("ngTemplateOutlet",e.toolbarAdditionalPanelButtonsTemplate)}}const tte=["videoElement"],nte=["chatScroll"],ite=["chatInput"];function ote(n,t){1&n&&(v(0,"p"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"PANEL.CHAT.YOU")))}function rte(n,t){if(1&n&&(v(0,"p"),me(1),_()),2&n){const e=fe().$implicit;T(1),He(e.nickname)}}function ste(n,t){if(1&n&&(v(0,"div",14),v(1,"div",15),v(2,"div",16),ie(3,ote,3,3,"p",17),ie(4,rte,2,1,"p",17),_(),v(5,"div",18),$e(6,"p",19),xe(7,"linkify"),_(),_(),_()),2&n){const e=t.$implicit;G("ngClass",e.isLocal?"right":"left"),T(3),G("ngIf",e.isLocal),T(1),G("ngIf",!e.isLocal),T(2),G("innerHTML",Ie(7,4,e.message),LE)}}const ate=["toolbar"],lte=["panel"],ik=["layout"],cte=["sidenav"],dte=["videoContainer"],ute=["container"];function hte(n,t){1&n&&fn(0)}function fte(n,t){1&n&&fn(0)}function pte(n,t){1&n&&fn(0)}function mte(n,t){if(1&n&&(v(0,"div",9),ie(1,pte,1,0,"ng-container",5),_()),2&n){const e=fe();T(1),G("ngTemplateOutlet",e.toolbarTemplate)}}const gte=function(n){return{big:n}},vte=["textContainer"],_te=["captionElement"];function yte(n,t){if(1&n){const e=yt();v(0,"div",6),v(1,"button",7),Te("click",function(){return Ue(e),fe().onSettingsCliked()}),v(2,"mat-icon",8),me(3,"settings"),_(),v(4,"span"),me(5,"English"),_(),_(),_()}}const bte=function(n,t,e){return{"big-author":n,"medium-author":t,"small-author":e}},Cte=function(n,t,e,i){return{"big-text":n,"medium-text":t,"small-text":e,"extra-small-text":i}};function Ete(n,t){if(1&n&&(v(0,"div",9,10),v(2,"p",11),me(3),_(),v(4,"span",12),me(5),_(),_()),2&n){const e=t.$implicit,i=fe(),o=Cr(1);T(2),G("ngClass",pw(5,bte,o.offsetWidth>=1e3||"lg"===i.screenSize||"xl"===i.screenSize,o.offsetWidth>=960&&o.offsetWidth<1e3||"md"===i.screenSize,o.offsetWidth<600||"xs"===i.screenSize||"sm"===i.screenSize)),T(1),Kg(" ",e.author," (",e.text.length,") "),T(1),G("ngClass",Bh(9,Cte,o.offsetWidth>=1e3||"lg"===i.screenSize||"xl"===i.screenSize,o.offsetWidth>=960&&o.offsetWidth<1e3||"md"===i.screenSize,o.offsetWidth>=600&&o.offsetWidth<960||"sm"===i.screenSize,o.offsetWidth<600||"xs"===i.screenSize)),T(1),An(" ",e.text,"")}}function Ste(n,t){1&n&&$e(0,"div",6)}const Ate=["stream"];function wte(n,t){1&n&&fn(0)}const ok=function(n){return{OV_big:n}},Ba=function(n){return{$implicit:n}};function xte(n,t){if(1&n&&(v(0,"div",6),ie(1,wte,1,0,"ng-container",7),_()),2&n){const e=t.$implicit,i=fe();G("ngClass",Ki(3,ok,e.videoEnlarged)),T(1),G("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",Ki(5,Ba,e))}}function Dte(n,t){1&n&&fn(0)}function Mte(n,t){if(1&n&&(v(0,"div",8),ie(1,Dte,1,0,"ng-container",7),_()),2&n){const e=t.$implicit,i=fe();G("ngClass",Ki(3,ok,e.videoEnlarged)),T(1),G("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",Ki(5,Ba,e))}}function Tte(n,t){1&n&&$e(0,"ov-captions",9)}const Ite=function(n){return{"background-color":n}},Ote=["menu"],Rte=["streamContainer"],kte=["nicknameInput"];function Pte(n,t){if(1&n&&(v(0,"span",15),me(1),_()),2&n){const e=fe(4);T(1),He(e._stream.participant.nickname)}}function Nte(n,t){if(1&n&&(v(0,"span",15),me(1),_()),2&n){const e=fe(4);T(1),An("",e._stream.participant.nickname,"_SCREEN")}}function Lte(n,t){if(1&n){const e=yt();v(0,"div",13),Te("click",function(){return Ue(e),fe(3).toggleNicknameForm()}),ie(1,Pte,2,1,"span",14),ie(2,Nte,2,1,"span",14),_()}if(2&n){const e=fe(3);T(1),G("ngIf","CAMERA"===e._stream.type),T(1),G("ngIf","SCREEN"===e._stream.type)}}function Fte(n,t){if(1&n){const e=yt();v(0,"div",16),v(1,"input",17,18),Te("ngModelChange",function(o){return Ue(e),fe(3).nickname=o})("keypress",function(o){return Ue(e),fe(3).updateNickname(o)})("focusout",function(o){return Ue(e),fe(3).updateNickname(o)}),_(),_()}if(2&n){const e=fe(3);lt("fullscreen",e.isFullscreen),T(1),G("ngModel",e.nickname)}}function Bte(n,t){if(1&n&&(v(0,"div",10),ie(1,Lte,3,2,"div",11),ie(2,Fte,3,3,"div",12),_()),2&n){const e=fe(2);lt("fullscreen",e.isFullscreen),T(1),G("ngIf",!e.toggleNickname),T(1),G("ngIf",e.toggleNickname&&!(null!=e._stream.streamManager&&e._stream.streamManager.remote))}}function Vte(n,t){if(1&n&&(v(0,"div",19),$e(1,"ov-audio-wave",20),_()),2&n){const e=fe(2);T(1),G("streamManager",e._stream.streamManager)}}function jte(n,t){if(1&n&&$e(0,"ov-avatar-profile",21),2&n){const e=fe(2);G("name",e._stream.participant.nickname)("color",e._stream.participant.colorProfile)}}function Ute(n,t){1&n&&(v(0,"button",22),v(1,"mat-icon"),me(2,"mic_off"),_(),_())}function Hte(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"STREAM.ZOOM_OUT")))}function zte(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"STREAM.ZOOM_IN")))}function Gte(n,t){1&n&&(v(0,"mat-icon"),me(1,"volume_up"),_())}function qte(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"STREAM.MUTE_SOUND")))}function Wte(n,t){1&n&&(v(0,"mat-icon"),me(1,"volume_off"),_())}function $te(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"STREAM.UNMUTE_SOUND")))}function Yte(n,t){if(1&n){const e=yt();v(0,"button",32),Te("click",function(){return Ue(e),fe(3).toggleMuteForcibly()}),ie(1,Gte,2,0,"mat-icon",29),ie(2,qte,3,3,"span",29),ie(3,Wte,2,0,"mat-icon",29),ie(4,$te,3,3,"span",29),_()}if(2&n){const e=fe(3);T(1),G("ngIf",!e._stream.participant.isMutedForcibly),T(1),G("ngIf",!e._stream.participant.isMutedForcibly),T(1),G("ngIf",e._stream.participant.isMutedForcibly),T(1),G("ngIf",e._stream.participant.isMutedForcibly)}}function Qte(n,t){if(1&n){const e=yt();v(0,"button",33),Te("click",function(){return Ue(e),fe(3).replaceScreenTrack()}),v(1,"mat-icon"),me(2,"picture_in_picture"),_(),v(3,"span"),me(4),xe(5,"translate"),_(),_()}2&n&&(T(4),He(Ie(5,1,"STREAM.REPLACE_SCREEN")))}function Kte(n,t){if(1&n){const e=yt();v(0,"div",23),v(1,"button",24),Te("click",function(o){return Ue(e),fe(2).toggleVideoMenu(o)}),xe(2,"translate"),v(3,"mat-icon"),me(4,"more_vert"),_(),_(),$e(5,"span",25),v(6,"mat-menu",26,27),v(8,"button",28),Te("click",function(){return Ue(e),fe(2).toggleVideoEnlarged()}),v(9,"mat-icon"),me(10),_(),ie(11,Hte,3,3,"span",29),ie(12,zte,3,3,"span",29),_(),ie(13,Yte,5,4,"button",30),ie(14,Qte,6,3,"button",31),_(),_()}if(2&n){const e=Cr(7),i=fe(2);T(1),Qt("matTooltip",Ie(2,7,"STREAM.SETTINGS")),T(4),G("matMenuTriggerFor",e),T(5),He(i.videoSizeIcon),T(1),G("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.NORMAL),T(1),G("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.BIG),T(1),G("ngIf",!i._stream.local),T(1),G("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 Zte=function(n){return{"no-size":n}};function Xte(n,t){if(1&n){const e=yt();v(0,"div",1,2),ie(2,Bte,3,4,"div",3),ie(3,Vte,2,1,"div",4),ie(4,jte,1,2,"ov-avatar-profile",5),v(5,"ov-video",6),Te("dblclick",function(){return Ue(e),fe().toggleVideoEnlarged()}),_(),v(6,"div",7),ie(7,Ute,3,0,"button",8),_(),ie(8,Kte,15,9,"div",9),_()}if(2&n){const e=fe();G("ngClass",Ki(9,Zte,!e.showVideo))("id","container-"+(null==e._stream.streamManager||null==e._stream.streamManager.stream?null:e._stream.streamManager.stream.streamId)),T(2),G("ngIf",!e.isMinimal&&e.showNickname),T(1),G("ngIf",!e.isMinimal&&e.showAudioDetection&&"CAMERA"===e._stream.type&&(null==e._stream.streamManager||null==e._stream.streamManager.stream?null:e._stream.streamManager.stream.audioActive)),T(1),G("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.videoActive)&&"CAMERA"===e._stream.type),T(1),G("streamManager",e._stream.streamManager)("mutedSound",null==e._stream||null==e._stream.participant?null:e._stream.participant.isMutedForcibly),T(2),G("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.audioActive)),T(1),G("ngIf",!e.isMinimal&&e.showSettingsButton)}}const Jte=["participantPanelItemElements"];function ene(n,t){1&n&&(v(0,"mat-icon"),me(1,"volume_up"),_())}function tne(n,t){1&n&&(v(0,"mat-icon"),me(1,"volume_off"),_())}function nne(n,t){if(1&n){const e=yt();v(0,"button",6),Te("click",function(){return Ue(e),fe().toggleMuteForcibly()}),ie(1,ene,2,0,"mat-icon",5),ie(2,tne,2,0,"mat-icon",5),_()}if(2&n){const e=fe();lt("warn-btn",e._participant.isMutedForcibly),T(1),G("ngIf",!e._participant.isMutedForcibly),T(1),G("ngIf",e._participant.isMutedForcibly)}}function ine(n,t){1&n&&fn(0)}function one(n,t){if(1&n&&(Mi(0),ie(1,ine,1,0,"ng-container",7),Ti()),2&n){const e=fe();T(1),G("ngTemplateOutlet",e.participantPanelItemElementsTemplate)}}const rne=["participantPanelItem"],rk=["defaultParticipantPanelItem"];function sne(n,t){1&n&&fn(0)}function ane(n,t){1&n&&$e(0,"mat-divider")}function lne(n,t){if(1&n&&(v(0,"div",8),ie(1,sne,1,0,"ng-container",9),ie(2,ane,1,0,"mat-divider",10),_()),2&n){const e=fe();T(1),G("ngTemplateOutlet",e.participantPanelItemTemplate)("ngTemplateOutletContext",Ki(3,Ba,e.localParticipant)),T(1),G("ngIf",!0)}}function cne(n,t){1&n&&fn(0)}function dne(n,t){if(1&n&&(v(0,"div",13),ie(1,cne,1,0,"ng-container",9),_()),2&n){const e=t.$implicit,i=fe(2);T(1),G("ngTemplateOutlet",i.participantPanelItemTemplate)("ngTemplateOutletContext",Ki(2,Ba,e))}}function une(n,t){if(1&n&&(v(0,"div",11),ie(1,dne,2,4,"div",12),_()),2&n){const e=fe();T(1),G("ngForOf",e.remoteParticipants)}}function hne(n,t){1&n&&$e(0,"ov-participant-panel-item",14),2&n&&G("participant",t.$implicit)}const Nu=".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}";function fne(n,t){if(1&n){const e=yt();v(0,"button",3),Te("click",function(){const r=Ue(e).$implicit;return fe().onLangSelected(r.ISO)}),v(1,"span"),me(2),_(),_()}if(2&n){const e=t.$implicit;T(2),He(e.name)}}const pne=["participantsPanel"],mne=["backgroundEffectsPanel"],gne=["settingsPanel"],vne=["activitiesPanel"],_ne=["chatPanel"],yne=["additionalPanels"];function bne(n,t){1&n&&fn(0)}function Cne(n,t){if(1&n&&(Mi(0),ie(1,bne,1,0,"ng-container",1),Ti()),2&n){const e=fe();T(1),G("ngTemplateOutlet",e.chatPanelTemplate)}}function Ene(n,t){1&n&&fn(0)}function Sne(n,t){if(1&n&&(Mi(0),ie(1,Ene,1,0,"ng-container",1),Ti()),2&n){const e=fe();T(1),G("ngTemplateOutlet",e.participantsPanelTemplate)}}function Ane(n,t){1&n&&fn(0)}function wne(n,t){if(1&n&&(Mi(0),ie(1,Ane,1,0,"ng-container",1),Ti()),2&n){const e=fe();T(1),G("ngTemplateOutlet",e.backgroundEffectsPanelTemplate)}}function xne(n,t){1&n&&fn(0)}function Dne(n,t){if(1&n&&(Mi(0),ie(1,xne,1,0,"ng-container",1),Ti()),2&n){const e=fe();T(1),G("ngTemplateOutlet",e.settingsPanelTemplate)}}function Mne(n,t){1&n&&fn(0)}function Tne(n,t){if(1&n&&(Mi(0),ie(1,Mne,1,0,"ng-container",1),Ti()),2&n){const e=fe();T(1),G("ngTemplateOutlet",e.activitiesPanelTemplate)}}function Ine(n,t){1&n&&fn(0)}function One(n,t){if(1&n&&(Mi(0),ie(1,Ine,1,0,"ng-container",1),Ti()),2&n){const e=fe();T(1),G("ngTemplateOutlet",e.additionalPanelsTemplate)}}function Rne(n,t){if(1&n){const e=yt();v(0,"button",8),Te("click",function(){const r=Ue(e).$implicit;return fe().applyBackground(r)}),v(1,"mat-icon",9),xe(2,"translate"),xe(3,"translate"),me(4),_(),_()}if(2&n){const e=t.$implicit,i=fe();lt("active-effect-btn",i.backgroundSelectedId===e.id),T(1),G("matTooltip",e.type===i.effectType.NONE?Ie(2,4,"PANEL.BACKGROUND.NO_EFFECTS"):Ie(3,6,"PANEL.BACKGROUND.BLURRED_EFFECT")),T(3),He(e.thumbnail)}}function kne(n,t){if(1&n){const e=yt();v(0,"div",10),Te("click",function(){const r=Ue(e).$implicit;return fe().applyBackground(r)}),$e(1,"img",11),_()}if(2&n){const e=t.$implicit;lt("active-effect-btn",fe().backgroundSelectedId===e.id),T(1),G("src",e.thumbnail,ll)}}function Pne(n,t){1&n&&(v(0,"mat-icon",6),xe(1,"translate"),me(2,"videocam"),_()),2&n&&Qt("matTooltip",Ie(1,1,"TOOLBAR.MUTE_VIDEO"))}function Nne(n,t){1&n&&(v(0,"mat-icon",7),xe(1,"translate"),me(2,"videocam_off"),_()),2&n&&Qt("matTooltip",Ie(1,1,"TOOLBAR.UNMUTE_VIDEO"))}function Lne(n,t){if(1&n&&(v(0,"mat-option",8),me(1),_()),2&n){const e=t.$implicit;G("value",e.device),T(1),An(" ",e.label," ")}}function Fne(n,t){1&n&&(v(0,"mat-icon",6),xe(1,"translate"),me(2,"mic"),_()),2&n&&Qt("matTooltip",Ie(1,1,"TOOLBAR.MUTE_AUDIO"))}function Bne(n,t){1&n&&(v(0,"mat-icon",7),xe(1,"translate"),me(2,"mic_off"),_()),2&n&&Qt("matTooltip",Ie(1,1,"TOOLBAR.UNMUTE_AUDIO"))}function Vne(n,t){if(1&n&&(v(0,"mat-option",8),me(1),_()),2&n){const e=t.$implicit;G("value",e.device),T(1),An(" ",e.label," ")}}function jne(n,t){1&n&&$e(0,"img",11)}function Une(n,t){if(1&n){const e=yt();v(0,"ov-lang-selector",12),Te("onLangSelectorClicked",function(){return Ue(e),fe().onDeviceSelectorClicked()}),_()}}function Hne(n,t){1&n&&$e(0,"ov-background-effects-panel")}function zne(n,t){1&n&&(v(0,"ov-panel"),ie(1,Hne,1,0,"ng-template",null,14,gn),_())}function Gne(n,t){1&n&&ie(0,zne,3,0,"ng-template",null,13,gn)}function qne(n,t){if(1&n){const e=yt();v(0,"button",18),Te("click",function(){return Ue(e),fe(3).toggleBackgroundEffects()}),xe(1,"translate"),v(2,"mat-icon"),me(3,"auto_awesome"),_(),_()}if(2&n){const e=fe(3);Qt("matTooltip",Ie(1,2,"TOOLBAR.BACKGROUND")),G("disabled",e.isVideoMuted)}}function Wne(n,t){if(1&n&&(ie(0,qne,4,4,"button",16),$e(1,"ov-stream",17)),2&n){const e=t.$implicit,i=fe(2);G("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),T(1),G("stream",e)("displayParticipantName",!1)("settingsButton",!1)}}function $ne(n,t){1&n&&(v(0,"ov-layout"),ie(1,Wne,2,4,"ng-template",null,15,gn),_())}function Yne(n,t){1&n&&(v(0,"h4"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"PREJOIN.NICKNAME_SECTION")))}function Qne(n,t){1&n&&$e(0,"hr")}function Kne(n,t){1&n&&(v(0,"h4"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"PREJOIN.DEVICE_SECTION")))}function Zne(n,t){1&n&&$e(0,"hr")}function Xne(n,t){if(1&n){const e=yt();v(0,"div",19),v(1,"div",20),v(2,"div",21),v(3,"div",22),ie(4,Yne,3,3,"h4",8),ie(5,Qne,1,0,"hr",8),$e(6,"ov-nickname-input"),_(),v(7,"div",23),ie(8,Kne,3,3,"h4",8),ie(9,Zne,1,0,"hr",8),v(10,"ov-video-devices-select",24),Te("onDeviceSelectorClicked",function(){return Ue(e),fe().onDeviceSelectorClicked()}),_(),v(11,"ov-audio-devices-select",24),Te("onDeviceSelectorClicked",function(){return Ue(e),fe().onDeviceSelectorClicked()}),_(),_(),v(12,"div",25),v(13,"button",26),Te("click",function(){return Ue(e),fe().joinSession()}),me(14),xe(15,"translate"),_(),_(),_(),_(),_()}if(2&n){const e=fe();T(4),G("ngIf",e.windowSize>=960),T(1),G("ngIf",e.windowSize>=960),T(3),G("ngIf",e.windowSize>=960),T(1),G("ngIf",e.windowSize>=960),T(5),An(" ",Ie(15,5,"PREJOIN.JOIN")," ")}}function Jne(n,t){if(1&n){const e=yt();v(0,"button",5),Te("click",function(){const r=Ue(e).$implicit;return fe().onLangSelected(r)}),v(1,"span"),me(2),_(),_()}if(2&n){const e=t.$implicit;T(2),He(e)}}function eie(n,t){if(1&n&&(v(0,"mat-list-option",15),v(1,"mat-icon",8),me(2,"closed_caption"),_(),v(3,"div",9),me(4),xe(5,"translate"),_(),_()),2&n){const e=fe();G("selected",e.selectedOption===e.settingsOptions.SUBTITLES)("value",e.settingsOptions.SUBTITLES),T(4),He(Ie(5,3,"PANEL.SETTINGS.SUBTITLE"))}}function tie(n,t){1&n&&(v(0,"div"),$e(1,"ov-nickname-input"),v(2,"mat-list"),v(3,"mat-list-item"),v(4,"mat-icon",8),me(5,"language"),_(),v(6,"div",9),me(7),xe(8,"translate"),_(),$e(9,"ov-lang-selector"),_(),_(),_()),2&n&&(T(7),An("",Ie(8,1,"PANEL.SETTINGS.LANGUAGE"),":"))}function nie(n,t){1&n&&$e(0,"ov-video-devices-select")}function iie(n,t){1&n&&$e(0,"ov-audio-devices-select")}function oie(n,t){1&n&&$e(0,"ov-subtitles-settings")}function rie(n,t){1&n&&(v(0,"mat-icon"),me(1," video_camera_front "),_())}function sie(n,t){1&n&&(v(0,"mat-icon"),me(1,"error"),_())}function aie(n,t){1&n&&(v(0,"mat-icon",9),me(1,"radio_button_checked"),_())}function lie(n,t){1&n&&(v(0,"div"),$e(1,"img",15),_())}function cie(n,t){1&n&&(v(0,"h2"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"PANEL.RECORDING.CONTENT_TITLE")))}function die(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"PANEL.RECORDING.CONTENT_SUBTITLE")))}function uie(n,t){if(1&n){const e=yt();v(0,"button",21),Te("click",function(){return Ue(e),fe(3).stopRecording()}),v(1,"span"),me(2),xe(3,"translate"),_(),_()}2&n&&(T(2),He(Ie(3,1,"TOOLBAR.STOP_RECORDING")))}function hie(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"TOOLBAR.START_RECORDING")))}function fie(n,t){if(1&n){const e=yt();v(0,"button",22),Te("click",function(){return Ue(e),fe(3).startRecording()}),ie(1,hie,3,3,"span",2),_()}if(2&n){const e=fe(3);T(1),G("ngIf",e.recordingStatus===e.recStatusEnum.STOPPED)}}function pie(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),An("",Ie(2,1,"PANEL.RECORDING.STARTING")," "))}function mie(n,t){1&n&&(v(0,"span"),me(1),xe(2,"translate"),_()),2&n&&(T(1),An("",Ie(2,1,"PANEL.RECORDING.STOPPING")," "))}function gie(n,t){1&n&&(v(0,"span"),me(1,"Message: "),_())}function vie(n,t){if(1&n&&(v(0,"span",23),me(1),xe(2,"json"),_()),2&n){const e=fe(3);T(1),An("",Ie(2,1,e.recordingError)," ")}}function _ie(n,t){if(1&n){const e=yt();v(0,"button",24),Te("click",function(){return Ue(e),fe(3).resetStatus()}),v(1,"span"),me(2),xe(3,"translate"),_(),_()}2&n&&(T(2),He(Ie(3,1,"PANEL.RECORDING.RESTORE")))}function yie(n,t){if(1&n&&(v(0,"div",16),ie(1,uie,4,3,"button",17),ie(2,fie,2,1,"button",18),ie(3,pie,3,3,"span",2),ie(4,mie,3,3,"span",2),ie(5,gie,2,0,"span",2),ie(6,vie,3,3,"span",19),v(7,"div"),ie(8,_ie,4,3,"button",20),_(),_()),2&n){const e=fe(2);T(1),G("ngIf",e.recordingAlive),T(1),G("ngIf",e.recordingStatus===e.recStatusEnum.STOPPED),T(1),G("ngIf",e.recordingStatus===e.recStatusEnum.STARTING),T(1),G("ngIf",e.recordingStatus===e.recStatusEnum.STOPPING),T(1),G("ngIf",e.recordingStatus===e.recStatusEnum.FAILED),T(1),G("ngIf",e.recordingStatus===e.recStatusEnum.FAILED),T(2),G("ngIf",e.recordingStatus===e.recStatusEnum.FAILED)}}function bie(n,t){1&n&&(v(0,"p",25),me(1),xe(2,"translate"),_()),2&n&&(T(1),He(Ie(2,1,"PANEL.RECORDING.NO_MODERATOR")))}function Cie(n,t){1&n&&$e(0,"mat-divider")}function Eie(n,t){if(1&n){const e=yt();v(0,"mat-list-item"),v(1,"mat-icon",29),me(2,"video_file"),_(),v(3,"div",30),v(4,"span",31),me(5),_(),_(),v(6,"div",32),v(7,"span",33),me(8),xe(9,"duration"),_(),v(10,"span",34),me(11),xe(12,"number"),_(),_(),v(13,"div",35),me(14),xe(15,"date"),_(),v(16,"button",36),Te("click",function(){const r=Ue(e).$implicit;return fe(3).play(r)}),xe(17,"translate"),v(18,"mat-icon"),me(19,"play_arrow"),_(),_(),v(20,"button",37),Te("click",function(){const r=Ue(e).$implicit;return fe(3).download(r)}),xe(21,"translate"),v(22,"mat-icon"),me(23,"download"),_(),_(),v(24,"button",38),Te("click",function(){const r=Ue(e).$implicit;return fe(3).deleteRecording(r.id)}),xe(25,"translate"),v(26,"mat-icon"),me(27,"delete"),_(),_(),_()}if(2&n){const e=t.$implicit;T(5),He(e.id),T(3),An(" ",Ie(9,7,e.duration)," "),T(3),An(" | ",ra(12,9,e.size/1024/1024,"1.1-2")," MBs"),T(3),He(ra(15,12,e.createdAt,"HH:mm - dd/MM/yyyy")),T(2),Qt("matTooltip",Ie(17,15,"PANEL.RECORDING.PLAY")),T(4),Qt("matTooltip",Ie(21,17,"PANEL.RECORDING.DOWNLOAD")),T(4),Qt("matTooltip",Ie(25,19,"PANEL.RECORDING.DELETE"))}}function Sie(n,t){if(1&n&&(v(0,"div",26),v(1,"mat-list"),v(2,"div",27),me(3),xe(4,"translate"),_(),ie(5,Eie,28,21,"mat-list-item",28),_(),_()),2&n){const e=fe(2);T(3),He(Ie(4,2,"PANEL.RECORDING.RECORDINGS")),T(2),G("ngForOf",e.recordingsList)}}function Aie(n,t){if(1&n&&(v(0,"div",10),v(1,"div",11),ie(2,lie,2,0,"div",2),ie(3,cie,3,3,"h2",2),ie(4,die,3,3,"span",2),ie(5,yie,9,7,"div",12),ie(6,bie,3,3,"p",13),_(),ie(7,Cie,1,0,"mat-divider",2),ie(8,Sie,6,4,"div",14),_()),2&n){const e=fe();T(2),G("ngIf",0===e.recordingsList.length),T(1),G("ngIf",0===e.recordingsList.length),T(1),G("ngIf",0===e.recordingsList.length),T(1),G("ngIf",e.isSessionCreator),T(1),G("ngIf",!e.isSessionCreator),T(1),G("ngIf",e.recordingsList.length>0),T(1),G("ngIf",e.recordingsList.length>0)}}const sk=function(n,t,e,i){return{started:n,stopped:t,failed:e,pending:i}};function wie(n,t){if(1&n){const e=yt();v(0,"ov-recording-activity",6),Te("onStartRecordingClicked",function(){return Ue(e),fe()._onStartRecordingClicked()})("onStopRecordingClicked",function(){return Ue(e),fe()._onStopRecordingClicked()})("onDeleteRecordingClicked",function(o){return Ue(e),fe()._onDeleteRecordingClicked(o)}),_()}2&n&&G("expanded","recording"===fe().expandedPanel)}const Die=["defaultToolbar"],Mie=["defaultPanel"],Tie=["defaultChatPanel"],Iie=["defaultParticipantsPanel"],Oie=["defaultActivitiesPanel"],Rie=["defaultLayout"],kie=["defaultStream"];function Pie(n,t){1&n&&(v(0,"div",12),$e(1,"mat-spinner",13),v(2,"span"),me(3),xe(4,"translate"),_(),_()),2&n&&(T(1),G("diameter",50),T(2),He(Ie(4,2,"PREJOIN.PREPARING")))}function Nie(n,t){if(1&n){const e=yt();v(0,"div",14),v(1,"ov-pre-join",15),Te("onJoinButtonClicked",function(){return Ue(e),fe()._onJoinButtonClicked()}),_(),_()}2&n&&G("@inOutAnimation",void 0)}function Lie(n,t){if(1&n&&(v(0,"div",12),v(1,"mat-icon",16),me(2,"error"),_(),v(3,"span"),me(4),_(),_()),2&n){const e=fe();T(4),He(e.errorMessage)}}function Fie(n,t){1&n&&fn(0)}function Bie(n,t){if(1&n&&(Mi(0),ie(1,Fie,1,0,"ng-container",24),Ti()),2&n){const e=fe(4);T(1),G("ngTemplateOutlet",e.openviduAngularToolbarTemplate)}}function Vie(n,t){1&n&&ie(0,Bie,2,1,"ng-container",23),2&n&&G("ngIf",fe(3).openviduAngularToolbarTemplate)}function jie(n,t){1&n&&fn(0)}function Uie(n,t){if(1&n&&(Mi(0),ie(1,jie,1,0,"ng-container",24),Ti()),2&n){const e=fe(4);T(1),G("ngTemplateOutlet",e.openviduAngularPanelTemplate)}}function Hie(n,t){1&n&&ie(0,Uie,2,1,"ng-container",23),2&n&&G("ngIf",fe(3).openviduAngularPanelTemplate)}function zie(n,t){1&n&&fn(0)}function Gie(n,t){if(1&n&&(Mi(0),ie(1,zie,1,0,"ng-container",24),Ti()),2&n){const e=fe(4);T(1),G("ngTemplateOutlet",e.openviduAngularLayoutTemplate)}}function qie(n,t){1&n&&ie(0,Gie,2,1,"ng-container",23),2&n&&G("ngIf",fe(3).openviduAngularLayoutTemplate)}function Wie(n,t){if(1&n){const e=yt();v(0,"ov-session",19),Te("onSessionCreated",function(o){return Ue(e),fe(2)._onSessionCreated(o)}),ie(1,Vie,1,1,"ng-template",null,20,gn),ie(3,Hie,1,1,"ng-template",null,21,gn),ie(5,qie,1,1,"ng-template",null,22,gn),_()}}function $ie(n,t){if(1&n&&(v(0,"div",17),ie(1,Wie,7,0,"ov-session",18),_()),2&n){const e=fe();G("@inOutAnimation",void 0),T(1),G("ngIf",e.isSessionInitialized)}}function Yie(n,t){1&n&&fn(0)}function Qie(n,t){1&n&&ie(0,Yie,1,0,"ng-container",24),2&n&&G("ngTemplateOutlet",fe(2).openviduAngularToolbarAdditionalButtonsTemplate)}function Kie(n,t){1&n&&fn(0)}function Zie(n,t){1&n&&ie(0,Kie,1,0,"ng-container",24),2&n&&G("ngTemplateOutlet",fe(2).openviduAngularToolbarAdditionalPanelButtonsTemplate)}function Xie(n,t){if(1&n){const e=yt();v(0,"ov-toolbar",25),Te("onLeaveButtonClicked",function(){return Ue(e),fe().onLeaveButtonClicked()})("onCameraButtonClicked",function(){return Ue(e),fe().onCameraButtonClicked()})("onMicrophoneButtonClicked",function(){return Ue(e),fe().onMicrophoneButtonClicked()})("onScreenshareButtonClicked",function(){return Ue(e),fe().onScreenshareButtonClicked()})("onFullscreenButtonClicked",function(){return Ue(e),fe().onFullscreenButtonClicked()})("onParticipantsPanelButtonClicked",function(){return Ue(e),fe().onParticipantsPanelButtonClicked()})("onChatPanelButtonClicked",function(){return Ue(e),fe().onChatPanelButtonClicked()})("onActivitiesPanelButtonClicked",function(){return Ue(e),fe().onActivitiesPanelButtonClicked()})("onStartRecordingClicked",function(){return Ue(e),fe().onStartRecordingClicked("toolbar")})("onStopRecordingClicked",function(){return Ue(e),fe().onStopRecordingClicked("toolbar")}),ie(1,Qie,1,1,"ng-template",null,26,gn),ie(3,Zie,1,1,"ng-template",null,27,gn),_()}}function Jie(n,t){1&n&&fn(0)}function eoe(n,t){1&n&&ie(0,Jie,1,0,"ng-container",24),2&n&&G("ngTemplateOutlet",fe(2).openviduAngularChatPanelTemplate)}function toe(n,t){1&n&&fn(0)}function noe(n,t){1&n&&ie(0,toe,1,0,"ng-container",24),2&n&&G("ngTemplateOutlet",fe(2).openviduAngularParticipantsPanelTemplate)}function ioe(n,t){1&n&&$e(0,"ov-background-effects-panel",35)}function ooe(n,t){1&n&&$e(0,"ov-settings-panel",36)}function roe(n,t){1&n&&fn(0)}function soe(n,t){1&n&&ie(0,roe,1,0,"ng-container",24),2&n&&G("ngTemplateOutlet",fe(2).openviduAngularActivitiesPanelTemplate)}function aoe(n,t){1&n&&fn(0)}function loe(n,t){1&n&&ie(0,aoe,1,0,"ng-container",24),2&n&&G("ngTemplateOutlet",fe(2).openviduAngularAdditionalPanelsTemplate)}function coe(n,t){1&n&&(v(0,"ov-panel",28),ie(1,eoe,1,1,"ng-template",null,29,gn),ie(3,noe,1,1,"ng-template",null,30,gn),ie(5,ioe,1,0,"ng-template",null,31,gn),ie(7,ooe,1,0,"ng-template",null,32,gn),ie(9,soe,1,1,"ng-template",null,33,gn),ie(11,loe,1,1,"ng-template",null,34,gn),_())}function doe(n,t){1&n&&$e(0,"ov-chat-panel",37)}function uoe(n,t){if(1&n){const e=yt();v(0,"ov-activities-panel",38),Te("onStartRecordingClicked",function(){return Ue(e),fe().onStartRecordingClicked("panel")})("onStopRecordingClicked",function(){return Ue(e),fe().onStopRecordingClicked("panel")})("onDeleteRecordingClicked",function(o){return Ue(e),fe().onDeleteRecordingClicked(o)}),_()}}function hoe(n,t){1&n&&fn(0)}function foe(n,t){if(1&n&&ie(0,hoe,1,0,"ng-container",41),2&n){const e=t.$implicit;G("ngTemplateOutlet",fe(2).openviduAngularParticipantPanelItemTemplate)("ngTemplateOutletContext",Ki(2,Ba,e))}}function poe(n,t){1&n&&(v(0,"ov-participants-panel",39),ie(1,foe,1,4,"ng-template",null,40,gn),_())}function moe(n,t){1&n&&fn(0)}function goe(n,t){if(1&n&&ie(0,moe,1,0,"ng-container",41),2&n){const e=fe().$implicit;G("ngTemplateOutlet",fe().openviduAngularParticipantPanelItemElementsTemplate)("ngTemplateOutletContext",Ki(2,Ba,e))}}function voe(n,t){1&n&&(v(0,"ov-participant-panel-item",42),ie(1,goe,1,4,"ng-template",null,43,gn),_()),2&n&&G("participant",t.$implicit)}function _oe(n,t){1&n&&fn(0)}function yoe(n,t){if(1&n&&ie(0,_oe,1,0,"ng-container",41),2&n){const e=t.$implicit;G("ngTemplateOutlet",fe(2).openviduAngularStreamTemplate)("ngTemplateOutletContext",Ki(2,Ba,e))}}function boe(n,t){1&n&&(v(0,"ov-layout",44),ie(1,yoe,1,4,"ng-template",null,45,gn),_())}function Coe(n,t){1&n&&$e(0,"ov-stream",46),2&n&&G("stream",t.$implicit)}var zt=(()=>{return(n=zt||(zt={})).CHAT="chat",n.PARTICIPANTS="participants",n.BACKGROUND_EFFECTS="background-effects",n.ACTIVITIES="activities",n.SETTINGS="settings",zt;var n})(),Sc=(()=>{return(n=Sc||(Sc={})).GENERAL="general",n.AUDIO="audio",n.VIDEO="video",n.SUBTITLES="subtitles",Sc;var n})();let Foe=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovToolbar",""]]}),n})(),ak=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovToolbarAdditionalButtons",""]]}),n})(),lk=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovToolbarAdditionalPanelButtons",""]]}),n})(),Boe=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovPanel",""]]}),n})(),ck=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovAdditionalPanels",""]]}),n})(),dk=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovChatPanel",""]]}),n})(),uk=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovActivitiesPanel",""]]}),n})(),hk=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovParticipantsPanel",""]]}),n})(),fk=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovParticipantPanelItem",""]]}),n})(),pk=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovParticipantPanelItemElements",""]]}),n})(),Voe=(()=>{class n{constructor(e,i){this.template=e,this.container=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovLayout",""]]}),n})(),mk=(()=>{class n{constructor(e,i){this.template=e,this.container=i}}return n.\u0275fac=function(e){return new(e||n)(f(bt),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","ovStream",""]]}),n})();var dn=(()=>{return(n=dn||(dn={})).CAMERA="CAMERA",n.SCREEN="SCREEN",n.CUSTOM="CUSTOM",dn;var n})(),Lu=(()=>{return(n=Lu||(Lu={})).WINDOW="window",n.SCREEN="screen",Lu;var n})(),Ac=(()=>{return(n=Ac||(Ac={})).MODERATOR="MODERATOR",n.PUBLISHER="PUBLISHER",Ac;var n})();class Uoe extends class joe{constructor(t,e){this.streams=new Map,this.id=t.id?t.id:(new Date).getTime().toString(),this.local=t.local,this.nickname=t.nickname,this.colorProfile=t.colorProfile?t.colorProfile:`hsl(${360*Math.random()}, 100%, 80%)`,this.isMutedForcibly="boolean"==typeof t.isMutedForcibly&&t.isMutedForcibly;let i={connected:!e||e.connected,type:e?e.type:dn.CAMERA,streamManager:e?e.streamManager:null,videoEnlarged:!!e&&e.videoEnlarged,connectionId:e?e.connectionId:null,participant:this};this.streams.set(i.type,i)}addConnection(t){t.participant=this,this.streams.set(t.type,t)}hasAudioActive(){const t=this.getCameraConnection(),e=this.getScreenConnection();return t.connected?this.isCameraAudioActive():!!e.connected&&this.isScreenAudioActive()}isCameraAudioActive(){var t,e;const i=this.getCameraConnection();return!!(null==i?void 0:i.connected)&&(null===(e=null===(t=i.streamManager)||void 0===t?void 0:t.stream)||void 0===e?void 0:e.audioActive)}isCameraVideoActive(){var t,e;const i=this.getCameraConnection();return(null==i?void 0:i.connected)&&(null===(e=null===(t=null==i?void 0:i.streamManager)||void 0===t?void 0:t.stream)||void 0===e?void 0:e.videoActive)}isScreenAudioActive(){var t,e;const i=this.getScreenConnection();return!!(null==i?void 0:i.connected)&&(null===(e=null===(t=null==i?void 0:i.streamManager)||void 0===t?void 0:t.stream)||void 0===e?void 0:e.audioActive)}hasConnectionType(t){return this.streams.has(t)}getCameraConnection(){return this.streams.get(dn.CAMERA)}getScreenConnection(){return this.streams.get(dn.SCREEN)}getConnectionTypesActive(){let t=[];return this.isCameraActive()&&t.push(dn.CAMERA),this.isScreenActive()&&t.push(dn.SCREEN),t}setCameraConnectionId(t){this.getCameraConnection().connectionId=t}setScreenConnectionId(t){this.getScreenConnection().connectionId=t}removeConnection(t){const e=this.getConnectionById(t);return this.streams.delete(e.type),e}hasConnectionId(t){return Array.from(this.streams.values()).some(e=>e.connectionId===t)}getConnectionById(t){return Array.from(this.streams.values()).find(e=>e.connectionId===t)}getAvailableConnections(){return Array.from(this.streams.values()).filter(t=>t.connected)}isLocal(){return this.local}setNickname(t){this.nickname=t}getNickname(){return this.nickname}setCameraPublisher(t){const e=this.getCameraConnection();e&&(e.streamManager=t)}setScreenPublisher(t){const e=this.getScreenConnection();e&&(e.streamManager=t)}setPublisher(t,e){const i=this.streams.get(t);i&&(i.streamManager=e)}isCameraActive(){var t;return null===(t=this.getCameraConnection())||void 0===t?void 0:t.connected}enableCamera(){const t=this.getCameraConnection();t&&(t.connected=!0)}disableCamera(){const t=this.getCameraConnection();t&&(t.connected=!1)}isScreenActive(){var t;return null===(t=this.getScreenConnection())||void 0===t?void 0:t.connected}enableScreen(){const t=this.getScreenConnection();t&&(t.connected=!0)}disableScreen(){const t=this.getScreenConnection();t&&(t.connected=!1)}setAllVideoEnlarged(t){this.streams.forEach(e=>e.videoEnlarged=t)}setCameraEnlarged(t){this.streams.get(dn.CAMERA).videoEnlarged=t}setScreenEnlarged(t){this.streams.get(dn.SCREEN).videoEnlarged=t}toggleVideoEnlarged(t){this.streams.forEach(e=>{e.connectionId===t&&(e.videoEnlarged=!e.videoEnlarged)})}someHasVideoEnlarged(){return Array.from(this.streams.values()).some(t=>t.videoEnlarged)}setMutedForcibly(t){this.isMutedForcibly=t}getRole(){var t,e,i,o;return null===(o=null===(i=null===(e=null===(t=this.streams.get(dn.CAMERA))||void 0===t?void 0:t.streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.role}}{}var Nn=(()=>{return(n=Nn||(Nn={})).STARTING="starting",n.STARTED="started",n.STOPPING="stopping",n.STOPPED="stopped",n.FAILED="failed",n.READY="ready",Nn;var n})(),jo=(()=>{return(n=jo||(jo={})).ROOT_ELEMENT="OT_root",n.BIG_ELEMENT="OV_big",n.SMALL_ELEMENT="OV_small",n.IGNORED_ELEMENT="OV_ignored",n.SIDENAV_CONTAINER="sidenav-container",n.NO_SIZE_ELEMENT="no-size",n.CLASS_NAME="layout",jo;var n})(),wc=(()=>{return(n=wc||(wc={})).OVER="over",n.SIDE="side",wc;var n})(),xc=(()=>{return(n=xc||(xc={})).START="start",n.CENTER="center",n.END="end",xc;var n})();class Hoe{updateLayout(t,e){setTimeout(()=>{if(this.layoutContainer=t,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(.${jo.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 d=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),u=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,d,u,this.opts.animate)})},50)}initLayoutContainer(t,e){this.opts=e,this.layoutContainer=t,this.updateLayout(t,e)}getLayoutContainer(){return this.layoutContainer}css(t,e,i){if(i)return t.style[e]=i,NaN;if("object"==typeof e)return Object.keys(e).forEach(s=>{this.css(t,s,e[s])}),NaN;var r=window.getComputedStyle(t).getPropertyValue(e);return""===r&&(r=t.style[e]),r}height(t){return t.offsetHeight>0?`${t.offsetHeight}px`:this.css(t,"height")}width(t){return t.offsetWidth>0?`${t.offsetWidth}px`:this.css(t,"width")}defaults(t,e){var i=e;return Object.keys(e).forEach(o=>{t.hasOwnProperty(o)&&(i[o]=t[o])}),i}fixAspectRatio(t,e){const i=t.querySelector(`.${jo.ROOT_ELEMENT}`);if(i){const o=i.style.width;i.style.width=`${e}px`,i.style.width=o||""}}positionElement(t,e,i,o,r,s){const a={left:`${e}px`,top:`${i}px`,width:`${o}px`,height:`${r}px`};this.fixAspectRatio(t,o),s?setTimeout(()=>{t.style.left=a.left,t.style.top=a.top,t.style.width=a.width,t.style.height=a.height,this.fixAspectRatio(t,o)},10):(this.css(t,a),t.classList.contains(jo.CLASS_NAME)||t.classList.add(jo.CLASS_NAME)),this.fixAspectRatio(t,o)}getChildDims(t){if(t){if(t.videoHeight&&t.videoWidth)return{height:t.videoHeight,width:t.videoWidth};const e=t.querySelector("video");if(e&&e.videoHeight&&e.videoWidth)return{height:e.videoHeight,width:e.videoWidth}}return{height:480,width:640}}getCSSNumber(t,e){const i=this.css(t,e);return i?parseInt(i.toString(),10):0}cheapUUID(){return(1e8*Math.random()).toFixed(0)}getHeight(t){const e=this.height(t);return e?parseInt(e.toString(),10):0}getWidth(t){const e=this.width(t);return e?parseInt(e.toString(),10):0}filterDisplayNone(t){return"none"!==this.css(t,"display")}getBestDimensions(t,e,i,o,r,s,a){let l,c,d,u,h,g,I,Q;for(let K=1;K<=r;K++){const ae=K,le=Math.ceil(r/ae);I=Math.floor(o/le),g=Math.floor(i/ae),Q=I/g,Q>e?(Q=e,I=g*Q):Q<t&&(Q=t,g=I/Q),g=Math.min(s,g),I=Math.min(a,I);const Ce=g*I*r;(void 0===l||Ce>=l)&&(Ce===l&&r%(ae*le)>r%(d*c)||(l=Ce,u=I,h=g,c=ae,d=le))}return{maxArea:l,targetCols:c,targetRows:d,targetHeight:u,targetWidth:h,ratio:u/h}}getVideoRatio(t){return t.height/t.width}getLayout(t,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:d=9/16,bigFirst:u=!0,containerWidth:h=640,containerHeight:g=480,alignItems:I="center",bigAlignItems:Q="center",smallAlignItems:K="center",maxWidth:ae=1/0,maxHeight:le=1/0,smallMaxWidth:Ce=1/0,smallMaxHeight:be=1/0,bigMaxWidth:Ge=1/0,bigMaxHeight:st=1/0,scaleLastRow:gt=!0,bigScaleLastRow:_t=!0}=t,Ke=g/h;let vt=0,vn=0,vi=0,Dn=0;const bo=[];let Co=[],Xe=[],We={big:null,small:null};const pt=e.filter(nn=>!nn.big),rt=e.filter((nn,It)=>!!nn.big&&(bo.push(It),!0));if(rt.length>0&&pt.length>0){let nn,It,Ve=u;if(Ke>this.getVideoRatio(rt[0])){if(nn=h,It=Math.floor(g*s),a>0){let ei;if(l){const Nr=rt[0].height/rt[0].width;ei=this.getBestDimensions(Nr,Nr,nn,It,rt.length,Ge,st)}else ei=this.getBestDimensions(d,c,nn,It,rt.length,Ge,st);It=Math.max(g*a,Math.min(It,ei.targetHeight*ei.targetRows));const dr=this.getBestDimensions(o,i,h,g-It,pt.length,Ce,be);It=Math.max(It,g-dr.targetRows*dr.targetHeight)}vn=It,vi=g-vn,"column"===u?Ve=!1:"row"===u&&(Ve=!0)}else{if(It=g,nn=Math.floor(h*s),a>0){let ei;if(l){const Nr=rt[0].height/rt[0].width;ei=this.getBestDimensions(Nr,Nr,nn,It,rt.length,Ge,st)}else ei=this.getBestDimensions(d,c,nn,It,rt.length,Ge,st);nn=Math.max(h*a,Math.min(nn,ei.targetWidth*ei.targetCols));const dr=this.getBestDimensions(o,i,h-nn,g,pt.length,Ce,be);nn=Math.max(nn,h-dr.targetCols*dr.targetWidth)}vt=nn,Dn=h-vt,"column"===u?Ve=!0:"row"===u&&(Ve=!1)}Ve?(We.big={top:0,left:0,width:nn,height:It},We.small={top:vn,left:vt,width:h-vt,height:g-vn}):(We.big={left:Dn,top:vi,width:nn,height:It},We.small={top:0,left:0,width:h-vt,height:g-vn})}else rt.length>0&&0===pt.length?We.big={top:0,left:0,width:h,height:g}:We.small={top:vn,left:vt,width:h-vt,height:g-vn};We.big&&(Co=this.getLayoutAux({containerWidth:We.big.width,containerHeight:We.big.height,offsetLeft:We.big.left,offsetTop:We.big.top,fixedRatio:l,minRatio:d,maxRatio:c,alignItems:Q,maxWidth:Ge,maxHeight:st,scaleLastRow:_t},rt)),We.small&&(Xe=this.getLayoutAux({containerWidth:We.small.width,containerHeight:We.small.height,offsetLeft:We.small.left,offsetTop:We.small.top,fixedRatio:r,minRatio:o,maxRatio:i,alignItems:We.big?K:I,maxWidth:We.big?Ce:ae,maxHeight:We.big?be:le,scaleLastRow:gt},pt));const en=[];let Mn=0,_i=0;return e.forEach((nn,It)=>{bo.indexOf(It)>-1?(en[It]=Co[Mn],Mn+=1):(en[It]=Xe[_i],_i+=1)}),{boxes:en,areas:We}}getLayoutAux(t,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:d="center",maxWidth:u=1/0,maxHeight:h=1/0,scaleLastRow:g=!0}=t,I=e.map(_t=>_t.height/_t.width),Q=I.length;let K;if(r){const _t=I.length>0?I[0]:null;K=this.getBestDimensions(_t,_t,s,a,Q,u,h)}else K=this.getBestDimensions(o,i,s,a,Q,u,h);let ae=0,le=0;const Ce=[];let be;const Ge=[];for(let _t=0;_t<I.length;_t++){_t%K.targetCols==0&&(be={ratios:[],width:0,height:0},Ce.push(be));const Ke=I[_t];be.ratios.push(Ke);let vt=K.targetWidth;const vn=K.targetHeight;r&&(vt=vn/Ke),be.width+=vt,be.height=vn}let st=0,gt=0;for(let _t=0;_t<Ce.length;_t++)be=Ce[_t],be.width>s?(be.height=Math.floor(be.height*(s/be.width)),be.width=s):be.width<s&&be.height<h&&(gt+=1),st+=be.height;if(g&&st<a&&gt>0){let _t=a-st;st=0;for(let Ke=0;Ke<Ce.length;Ke++){if(be=Ce[Ke],be.width<s){let vt=_t/gt;vt/be.height>(s-be.width)/be.width&&(vt=Math.floor((s-be.width)/be.width*be.height)),be.width+=Math.floor(vt/be.height*be.width),be.height+=vt,_t-=vt,gt-=1}st+=be.height}}switch(d){case"start":le=0;break;case"end":le=a-st;break;default:le=(a-st)/2}for(let _t=0;_t<Ce.length;_t++){let Ke,vt;switch(be=Ce[_t],d){case"start":Ke=0;break;case"end":Ke=s-be.width;break;default:Ke=(s-be.width)/2}ae=Ke;for(let vn=0;vn<be.ratios.length;vn++){const vi=be.ratios[vn];let Dn=K.targetWidth;vt=be.height,r?Dn=Math.floor(vt/vi):vt/Dn!=K.targetHeight/K.targetWidth&&(Dn=Math.floor(K.targetWidth/K.targetHeight*vt)),Ge.push({left:ae+l,top:le+c,width:Dn,height:vt}),ae+=Dn}le+=vt}return Ge}}let im=(()=>{class n{constructor(e){this.media=e,this.screenSizeObs=this.media.asObservable()}getHTMLElementByClassName(e,i){for(;e&&e!==document.body;){if(e.className.includes(i))return e;e=e.parentElement}return null}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(jo.SMALL_ELEMENT)}}return n.\u0275fac=function(e){return new(e||n)(se(v$))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Gs=(()=>{return(n=Gs||(Gs={})).NICKNAME_CHANGED="nicknameChanged",n.CHAT="chat",Gs;var n})();let Vt=(()=>{class n{constructor(e){this.minimal=new St(!1),this.participantName=new St(""),this.prejoin=new St(!0),this.videoMuted=new St(!1),this.audioMuted=new St(!1),this.screenshareButton=new St(!0),this.fullscreenButton=new St(!0),this.subtitlesButton=new St(!0),this.toolbarSettingsButton=new St(!0),this.leaveButton=new St(!0),this.participantsPanelButton=new St(!0),this.chatPanelButton=new St(!0),this.activitiesPanelButton=new St(!0),this.displaySessionName=new St(!0),this.displayLogo=new St(!0),this.displayParticipantName=new St(!0),this.displayAudioDetection=new St(!0),this.streamSettingsButton=new St(!0),this.participantItemMuteButton=new St(!0),this.backgroundEffectsButton=new St(!0),this.recordingsList=new St([]),this.recordingButton=new St(!0),this.recordingActivity=new St(!0),this.recordingError=new St(null),this.adminRecordingsList=new St([]),this.adminLoginError=new St(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.subtitlesButtonObs=this.subtitlesButton.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 n.\u0275fac=function(e){return new(e||n)(se("OPENVIDU_ANGULAR_CONFIG"))},n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),cr=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(se(Vt))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var cs=(()=>{return(n=cs||(cs={})).FRONT="FRONT",n.BACK="BACK",cs;var n})(),Fu=(()=>{return(n=Fu||(Fu={})).AUDIO_INPUT="audioinput",n.VIDEO_INPUT="videoinput",Fu;var n})(),Dc=(()=>{return(n=Dc||(Dc={})).CE="CE",n.PRO="PRO",n.ENTERPRISE="ENTERPRISE",Dc;var n})();let Bu=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ki=(()=>{class n{constructor(e,i){this.openviduAngularConfigSrv=e,this.loggerSrv=i,this._localParticipant=new St(null),this._remoteParticipants=new St([]),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:dn.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===dn.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===dn.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},d=this.newParticipant(c,s);this.remoteParticipants.push(d)}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===dn.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 dn.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 Uoe(e,i)}}return n.\u0275fac=function(e){return new(e||n)(se(Vt),se(cr))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Gi=(()=>{return(n=Gi||(Gi={})).USER_NICKNAME="openviduCallNickname",n.VIDEO_DEVICE="openviduCallVideoDevice",n.AUDIO_DEVICE="openviduCallAudioDevice",n.AUDIO_MUTED="openviduCallAudioMuted",n.VIDEO_MUTED="openviduCallVideoMuted",n.LANG="openviduCallLang",Gi;var n})();let ds=(()=>{class n{constructor(e){this.loggerSrv=e,this.storage=window.localStorage,this.log=this.loggerSrv.get("StorageService")}getNickname(){return this.get(Gi.USER_NICKNAME)}setNickname(e){this.set(Gi.USER_NICKNAME,e)}getVideoDevice(){return this.get(Gi.VIDEO_DEVICE)}setVideoDevice(e){this.set(Gi.VIDEO_DEVICE,e)}getAudioDevice(){return this.get(Gi.AUDIO_DEVICE)}setAudioDevice(e){this.set(Gi.AUDIO_DEVICE,e)}isVideoMuted(){return"true"===this.get(Gi.VIDEO_MUTED)}setVideoMuted(e){this.set(Gi.VIDEO_MUTED,`${e}`)}isAudioMuted(){return"true"===this.get(Gi.AUDIO_MUTED)}setAudioMuted(e){this.set(Gi.AUDIO_MUTED,`${e}`)}setLang(e){this.set(Gi.LANG,e)}getLang(){return this.get(Gi.LANG)}set(e,i){const o=JSON.stringify({item:i});this.storage.setItem(e,o)}get(e){const i=JSON.parse(this.storage.getItem(e));return(null==i?void 0:i.item)?i.item:null}clear(){this.log.d("Clearing localStorage"),this.storage.clear()}}return n.\u0275fac=function(e){return new(e||n)(se(cr))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mc=(()=>{class n{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.deviceAccessDeniedError=!1,this.log=this.loggerSrv.get("DevicesService")}forceInitDevices(){var e;return ne(this,void 0,void 0,function*(){this.clear();try{this.OV=new zs.Dn,this.devices=yield this.OV.getDevices(),(null===(e=this.devices)||void 0===e?void 0:e.some(i=>!i.deviceId||!i.label))&&(yield this.OV.getUserMedia({audioSource:void 0,videoSource:void 0})),yield this.initializeDevices(),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)}catch(i){this.deviceAccessDeniedError=i.name===zs.Ll.DEVICE_ACCESS_DENIED}})}initializeDevices(){var e,i;return ne(this,void 0,void 0,function*(){(null===(e=this.devices)||void 0===e?void 0:e.some(o=>!o.deviceId||!o.label))&&(this.devices=yield null===(i=this.OV)||void 0===i?void 0:i.getDevices()),this.initializeCustomDevices()})}initializeCustomDevices(e=!0){const o=this.devices.filter(s=>s.kind===Fu.AUDIO_INPUT),r=this.devices.filter(s=>s.kind===Fu.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:cs.BACK};this.platformSrv.isMobile()?l.label.toLowerCase().includes(cs.FRONT.toLowerCase())&&(l.type=cs.FRONT):0===a&&(l.type=cs.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.videoDevicesDisabled&&this.cameras.length>0}hasAudioDeviceAvailable(){return!this.audioDevicesDisabled&&this.microphones.length>0}cameraNeedsMirror(e){var i;return(null===(i=this.getCameraByDeviceField(e))||void 0===i?void 0:i.type)===cs.FRONT}areEmptyLabels(){return!!this.cameras.find(e=>""===e.label)||!!this.microphones.find(e=>""===e.label)}disableVideoDevices(){this.videoDevicesDisabled=!0}disableAudioDevices(){this.audioDevicesDisabled=!0}clear(){this.OV=null,this.devices=[],this.cameras=[],this.microphones=[],this.cameraSelected=null,this.microphoneSelected=null,this.videoDevicesDisabled=!1,this.audioDevicesDisabled=!1}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)}}return n.\u0275fac=function(e){return new(e||n)(se(cr),se(Bu),se(ds),se(Vt))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tc=(()=>{class n{constructor(){this.webcamToken="",this.screenToken=""}setWebcamToken(e){this.webcamToken=e}setScreenToken(e){this.screenToken=e}getWebcamToken(){return this.webcamToken}getScreenToken(){return this.screenToken}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),us=(()=>{class n{constructor(e,i,o,r,s,a){this.openviduAngularConfigSrv=e,this.platformService=i,this.loggerSrv=o,this.participantService=r,this.deviceService=s,this.tokenService=a,this.videoSource=void 0,this.audioSource=void 0,this.log=this.loggerSrv.get("OpenViduService")}initialize(){this.OV=new zs.Dn,this.OV.setAdvancedConfiguration({publisherSpeakingEventsOptions:{interval:50}}),this.openviduAngularConfigSrv.isProduction()&&this.OV.enableProdMode(),this.webcamSession=this.OV.initSession(),this.platformService.isMobile()||(this.OVScreen=new zs.Dn,this.openviduAngularConfigSrv.isProduction()&&this.OVScreen.enableProdMode(),this.screenSession=this.OVScreen.initSession())}isOpenViduCE(){return this.ovEdition===Dc.CE}setOpenViduEdition(e){this.ovEdition=e}isSessionConnected(){return!!this.webcamSession.connection}clear(){var e,i,o,r;return ne(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}connectSession(e,i){return ne(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:dn.CAMERA}),this.participantService.setMyCameraConnectionId(this.webcamSession.connection.connectionId)):e===this.screenSession&&(this.log.d("Connecting screen session"),yield this.screenSession.connect(i,{clientData:`${o}_${dn.SCREEN}`,participantId:r,type:dn.SCREEN}),this.participantService.setMyScreenConnectionId(this.screenSession.connection.connectionId))}})}disconnect(){this.disconnectSession(this.webcamSession),this.disconnectSession(this.screenSession)}initDefaultPublisher(){return ne(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===cs.FRONT};if(e||i){const d=yield this.initPublisher(void 0,c);return this.participantService.setMyCameraPublisher(d),this.participantService.updateLocalParticipant(),d}this.participantService.setMyCameraPublisher(null)})}initPublisher(e,i){return ne(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 ne(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?void 0: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?void 0: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 ne(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.tokenService.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 ne(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 ne(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 ne(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:Lu.SCREEN,audioSource:!!e&&this.deviceService.getMicrophoneSelected().device,publishVideo:!0,publishAudio:o,mirror:!1},s=yield this.initPublisher(void 0,r);s.once("accessAllowed",()=>ne(this,void 0,void 0,function*(){s.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",()=>ne(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.tokenService.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.tokenService.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 ne(this,void 0,void 0,function*(){try{if(this.log.d(`Replacing ${e} track`,i),e===dn.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===dn.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)}})}destroyPublisher(e){e&&(e.stream.getWebRtcPeer()&&e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),e.id===this.participantService.getMyCameraPublisher().id?this.participantService.setMyCameraPublisher(e):e.id===this.participantService.getMyScreenPublisher().id&&this.participantService.setMyScreenPublisher(e))}createMediaStream(e){return ne(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===zs.Ll.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!==dn.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 n.\u0275fac=function(e){return new(e||n)(se(Vt),se(Bu),se(cr),se(ki),se(Mc),se(Tc))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),yo=(()=>{class n{constructor(e){this.loggerSrv=e,this.isExternalOpened=!1,this._panelOpened=new St({opened:!1}),this.panelMap=new Map,this.log=this.loggerSrv.get("PanelService"),this.panelOpenedObs=this._panelOpened.asObservable(),Object.values(zt).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(zt.CHAT)}isParticipantsPanelOpened(){return!!this.panelMap.get(zt.PARTICIPANTS)}isActivitiesPanelOpened(){return!!this.panelMap.get(zt.ACTIVITIES)}isSettingsPanelOpened(){return!!this.panelMap.get(zt.SETTINGS)}isBackgroundEffectsPanelOpened(){return!!this.panelMap.get(zt.BACKGROUND_EFFECTS)}isExternalPanelOpened(){return this.isExternalOpened}}return n.\u0275fac=function(e){return new(e||n)(se(cr))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var gk={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"},vk={NICKNAME_SECTION:"Set your nickname",NICKNAME:"Nickname",DEVICE_SECTION:"Choose your devices",VIDEO_DEVICE:"Video device",AUDIO_DEVICE:"Audio device",JOIN:"Join session",PREPARING:"Preparing session..."},_k={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_SUBTITLES:"Enable subtitles",DISABLE_SUBTITLES:"Disable subtitles",BACKGROUND:"Background effects",START_RECORDING:"Start recording",STOP_RECORDING:"Stop recording",SETTINGS:"Settings",LEAVE:"Leave the session",PARTICIPANTS:"Participants",CHAT:"Chat",ACTIVITIES:"Activities"},yk={SETTINGS:"Settings",MUTE_SOUND:"Mute sound",UNMUTE_SOUND:"Unmute sound",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",REPLACE_SCREEN:"Replace screen"},bk={CLOSE:"Close",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",SUBTITLE:"Subtitles"},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"}},Ck={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."},Goe=Object.freeze({__proto__:null,ADMIN:gk,PREJOIN:vk,TOOLBAR:_k,STREAM:yk,PANEL:bk,ERRORS:Ck,default:{ADMIN:gk,PREJOIN:vk,TOOLBAR:_k,STREAM:yk,PANEL:bk,ERRORS:Ck}}),Ek={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"},Sk={NICKNAME_SECTION:"Elige tu nombre",NICKNAME:"Nombre",DEVICE_SECTION:"Elige tus dispositivos",VIDEO_DEVICE:"Dispositivo de video",AUDIO_DEVICE:"Dispositivo de audio",PREPARING:"Preparando la session ...",JOIN:"Unirme ahora"},Ak={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_SUBTITLES:"Activar subt\xedtulos",DISABLE_SUBTITLES:"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"},wk={SETTINGS:"Ajustes",MUTE_SOUND:"Silenciar sonido",UNMUTE_SOUND:"Activar sonido",ZOOM_IN:"Aumentar tama\xf1o",ZOOM_OUT:"Disminuir tama\xf1o",REPLACE_SCREEN:"Reemplazar pantalla"},xk={CLOSE:"Cerrar",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",SUBTITLE:"Subt\xedtulos"},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"}},Dk={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."},Woe=Object.freeze({__proto__:null,ADMIN:Ek,PREJOIN:Sk,TOOLBAR:Ak,STREAM:wk,PANEL:xk,ERRORS:Dk,default:{ADMIN:Ek,PREJOIN:Sk,TOOLBAR:Ak,STREAM:wk,PANEL:xk,ERRORS:Dk}}),Mk={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"},Tk={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",JOIN:"Sitzung beitreten",PREPARING:"Sitzung vorbereiten..."},Ik={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_SUBTITLES:"Untertitel aktivieren",DISABLE_SUBTITLES:"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"},Ok={SETTINGS:"Einstellungen",MUTE_SOUND:"Ton stummschalten",UNMUTE_SOUND:"Stummschaltung aufheben",ZOOM_IN:"Vergr\xf6\xdfern",ZOOM_OUT:"Herauszoomen",REPLACE_SCREEN:"Bildschirm austauschen"},Rk={CLOSE:"Schlie\xdfen",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",SUBTITLE:"Untertitel"},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"}},kk={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."},Yoe=Object.freeze({__proto__:null,ADMIN:Mk,PREJOIN:Tk,TOOLBAR:Ik,STREAM:Ok,PANEL:Rk,ERRORS:kk,default:{ADMIN:Mk,PREJOIN:Tk,TOOLBAR:Ik,STREAM:Ok,PANEL:Rk,ERRORS:kk}}),Pk={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"},Nk={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",JOIN:"Joindre une session",PREPARING:"Pr\xe9paration de la session ..."},Lk={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_SUBTITLES:"Activer les sous-titres",DISABLE_SUBTITLES:"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"},Fk={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"},Bk={CLOSE:"Fermer",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",SUBTITLE:"Les sous-titres"},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"}},Vk={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."},Koe=Object.freeze({__proto__:null,ADMIN:Pk,PREJOIN:Nk,TOOLBAR:Lk,STREAM:Fk,PANEL:Bk,ERRORS:Vk,default:{ADMIN:Pk,PREJOIN:Nk,TOOLBAR:Lk,STREAM:Fk,PANEL:Bk,ERRORS:Vk}}),jk={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"},Uk={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",JOIN:"\u52a0\u5165\u4f1a\u8bdd",PREPARING:"\u7b79\u5907\u4f1a\u8bae"},Hk={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_SUBTITLES:"\u542f\u7528\u5b57\u5e55",DISABLE_SUBTITLES:"\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"},zk={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"},Gk={CLOSE:"\u5173\u95ed",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",SUBTITLE:"\u5b57\u5e55"},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"}},qk={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"},Xoe=Object.freeze({__proto__:null,ADMIN:jk,PREJOIN:Uk,TOOLBAR:Hk,STREAM:zk,PANEL:Gk,ERRORS:qk,default:{ADMIN:jk,PREJOIN:Uk,TOOLBAR:Hk,STREAM:zk,PANEL:Gk,ERRORS:qk}}),Wk={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"},$k={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",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 ..."},Yk={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_SUBTITLES:"\u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915 \u0938\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",DISABLE_SUBTITLES:"\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"},Qk={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"},Kk={CLOSE:"\u092c\u0902\u0926 \u0915\u0930\u0947\u0902",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",SUBTITLE:"\u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915"},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"}},Zk={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"},ere=Object.freeze({__proto__:null,ADMIN:Wk,PREJOIN:$k,TOOLBAR:Yk,STREAM:Qk,PANEL:Kk,ERRORS:Zk,default:{ADMIN:Wk,PREJOIN:$k,TOOLBAR:Yk,STREAM:Qk,PANEL:Kk,ERRORS:Zk}}),Xk={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"},Jk={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",JOIN:"\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u53c2\u52a0\u3059\u308b",PREPARING:"\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u6e96\u5099\u4e2d..."},eP={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_SUBTITLES:"\u5b57\u5e55\u3092\u6709\u52b9\u306b\u3059\u308b",DISABLE_SUBTITLES:"\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"},tP={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"},nP={CLOSE:"\u9589\u3058\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",SUBTITLE:"\u5b57\u5e55"},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"}},iP={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"},nre=Object.freeze({__proto__:null,ADMIN:Xk,PREJOIN:Jk,TOOLBAR:eP,STREAM:tP,PANEL:nP,ERRORS:iP,default:{ADMIN:Xk,PREJOIN:Jk,TOOLBAR:eP,STREAM:tP,PANEL:nP,ERRORS:iP}}),oP={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"},rP={NICKNAME_SECTION:"Imposta il tuo soprannome",NICKNAME:"Soprannome",DEVICE_SECTION:"Scegli i tuoi dispositivi",VIDEO_DEVICE:"Dispositivo video",AUDIO_DEVICE:"Dispositivo audio",JOIN:"Unisciti alla sessione",PREPARING:"Preparazione della sessione in corso..."},sP={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_SUBTITLES:"Abilita i sottotitoli",DISABLE_SUBTITLES:"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"},aP={SETTINGS:"Impostazioni",MUTE_SOUND:"Disattiva l'audio",UNMUTE_SOUND:"Attiva l'audio",ZOOM_IN:"Ingrandisci",ZOOM_OUT:"Riduci",REPLACE_SCREEN:"Sostituisci lo schermo"},lP={CLOSE:"Chiudi",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",SUBTITLE:"Sottotitoli"},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"}},cP={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"},ore=Object.freeze({__proto__:null,ADMIN:oP,PREJOIN:rP,TOOLBAR:sP,STREAM:aP,PANEL:lP,ERRORS:cP,default:{ADMIN:oP,PREJOIN:rP,TOOLBAR:sP,STREAM:aP,PANEL:lP,ERRORS:cP}}),dP={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"},uP={NICKNAME_SECTION:"Stel je bijnaam in",NICKNAME:"Bijnaam",DEVICE_SECTION:"Kies je apparaten",VIDEO_DEVICE:"Videospeler",AUDIO_DEVICE:"Audiospeler",JOIN:"Deelnemen aan sessie",PREPARING:"Sessie voorbereiden ..."},hP={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_SUBTITLES:"Ondertiteling inschakelen",DISABLE_SUBTITLES:"Ondertiteling uitschakelen",BACKGROUND:"Achtergrondeffecten",START_RECORDING:"Start opname",STOP_RECORDING:"Stop opname",SETTINGS:"Instellingen",LEAVE:"Verlaat de sessie",PARTICIPANTS:"Deelnemers",CHAT:"Chat",ACTIVITIES:"Activiteiten"},fP={SETTINGS:"Instellingen",MUTE_SOUND:"Geluid dempen",UNMUTE_SOUND:"Geluid niet meer dempen",ZOOM_IN:"Inzoomen",ZOOM_OUT:"Uitzoomen",REPLACE_SCREEN:"Vervang scherm"},pP={CLOSE:"Sluiten",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",SUBTITLE:"Ondertitels"},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"}},mP={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."},sre=Object.freeze({__proto__:null,ADMIN:dP,PREJOIN:uP,TOOLBAR:hP,STREAM:fP,PANEL:pP,ERRORS:mP,default:{ADMIN:dP,PREJOIN:uP,TOOLBAR:hP,STREAM:fP,PANEL:pP,ERRORS:mP}}),gP={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"},vP={NICKNAME_SECTION:"Defina seu apelido",NICKNAME:"Apelido",DEVICE_SECTION:"Escolha seus dispositivos",VIDEO_DEVICE:"Dispositivo de v\xeddeo",AUDIO_DEVICE:"Dispositivo de \xe1udio",JOIN:"Entrar na sess\xe3o",PREPARING:"Preparando sess\xe3o..."},_P={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_SUBTITLES:"Ativar legendas",DISABLE_SUBTITLES:"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"},yP={SETTINGS:"Configura\xe7\xf5es",MUTE_SOUND:"Mudo",UNMUTE_SOUND:"Com som",ZOOM_IN:"Aumentar zoom",ZOOM_OUT:"Diminuir zoom",REPLACE_SCREEN:"Trocar tela"},bP={CLOSE:"Fechar",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",SUBTITLE:"Legendas"},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"}},CP={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"},lre=Object.freeze({__proto__:null,ADMIN:gP,PREJOIN:vP,TOOLBAR:_P,STREAM:yP,PANEL:bP,ERRORS:CP,default:{ADMIN:gP,PREJOIN:vP,TOOLBAR:_P,STREAM:yP,PANEL:bP,ERRORS:CP}});let Va=(()=>{class n{constructor(e){this.storageService=e,this.availableLanguages={en:Goe,es:Woe,de:Yoe,fr:Koe,cn:Xoe,hi:ere,it:ore,ja:nre,nl:sre,pt:lre},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.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 n.\u0275fac=function(e){return new(e||n)(se(ds))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),si=(()=>{class n{constructor(e){this.translateService=e}transform(e){return this.translateService.translate(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Va,16))},n.\u0275pipe=Gn({name:"translate",type:n,pure:!1}),n})(),EP=(()=>{class n{constructor(e){this.dialogRef=e}close(e=!1){this.dialogRef.close(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Ou))},n.\u0275cmp=tt({type:n,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&&(v(0,"div",0),me(1),xe(2,"translate"),_(),v(3,"div",1),v(4,"button",2),Te("click",function(){return i.close()}),me(5),xe(6,"translate"),_(),v(7,"button",3),Te("click",function(){return i.close(!0)}),me(8),xe(9,"translate"),_(),_()),2&e&&(T(1),He(Ie(2,3,"PANEL.RECORDING.DELETE_QUESTION")),T(4),He(Ie(6,5,"PANEL.RECORDING.CANCEL")),T(3),He(Ie(9,7,"PANEL.RECORDING.DELETE")))},directives:[Rb,kb,Hn],pipes:[si],styles:[""]}),n})(),SP=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.src=i.src}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(f(Ou),f(Ib))},n.\u0275cmp=tt({type:n,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&&(v(0,"div",0),$e(1,"video",1),_(),ie(2,vee,4,3,"div",2)),2&e&&(T(1),G("src",i.src,ll),T(1),G("ngIf",i.data.showActionButtons))},directives:[Rb,cn,kb,Hn],pipes:[si],styles:["video[_ngcontent-%COMP%]{max-height:64vh;max-width:100%}"]}),n})(),AP=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(f(Ou),f(Ib))},n.\u0275cmp=tt({type:n,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&&(v(0,"h1",0),me(1),_(),v(2,"div",1),me(3),_(),ie(4,_ee,4,3,"div",2)),2&e&&(T(1),He(i.data.title),T(2),He(i.data.description),T(1),G("ngIf",i.data.showActionButtons))},directives:[hK,Rb,cn,kb,Hn],pipes:[si],encapsulation:2}),n})(),hs=(()=>{class n{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(AP,{minWidth:"250px",data:{title:e,description:i,showActionButtons:o},disableClose:!o}),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(s=>{this.dialogRef=null})}}openDeleteRecordingDialog(e){try{this.closeDialog()}catch(i){}finally{this.dialogRef=this.dialog.open(EP),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(i=>{i&&e()})}}openRecordingPlayerDialog(e,i=!0){try{this.closeDialog()}catch(o){}finally{this.dialogRef=this.dialog.open(SP,{minWidth:"250px",data:{src:e,showActionButtons:i},disableClose:!i})}}closeDialog(){this.dialogRef.close(),this.dialogSubscription&&this.dialogSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(se(OK),se(Ob))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),om=(()=>{class n{constructor(e,i,o,r,s){this.loggerSrv=e,this.openviduService=i,this.participantService=o,this.panelService=r,this.actionService=s,this._messageList=new St([]),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:${Gs.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(Gs.CHAT,void 0,i)}}launchNotification(e){this.actionService.launchNotification(e,this.panelService.togglePanel.bind(this.panelService,zt.CHAT))}}return n.\u0275fac=function(e){return new(e||n)(se(cr),se(us),se(ki),se(yo),se(hs))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ja=(()=>{class n{constructor(e){this.documentService=e,this.layoutContainer=null,this.layoutWidth=new St(0),this.subtitlesToggling=new St(!1),this.layoutWidthObs=this.layoutWidth.asObservable(),this.subtitlesTogglingObs=this.subtitlesToggling.asObservable()}initialize(e){this.layoutContainer=e,this.openviduLayout=new Hoe,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:jo.BIG_ELEMENT,smallClass:jo.SMALL_ELEMENT,ignoredClass:jo.IGNORED_ELEMENT,bigPercentage:.8,minBigPercentage:0,bigFixedRatio:!1,bigMaxRatio:.5625,bigMinRatio:.5625,bigFirst:!0,animate:!0,alignItems:xc.CENTER,bigAlignItems:xc.CENTER,smallAlignItems:xc.CENTER,maxWidth:1/0,maxHeight:1/0,smallMaxWidth:1/0,smallMaxHeight:1/0,bigMaxWidth:1/0,bigMaxHeight:1/0,scaleLastRow:!0,bigScaleLastRow:!0}}toggleSubtitles(){this.subtitlesToggling.next(!this.subtitlesToggling.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.documentService.getHTMLElementByClassName(null===(e=this.openviduLayout)||void 0===e?void 0:e.getLayoutContainer(),jo.SIDENAV_CONTAINER);i&&i.clientWidth&&this.layoutWidth.next(i.clientWidth)}}return n.\u0275fac=function(e){return new(e||n)(se(im))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vu=(()=>{class n{constructor(e,i){this.actionService=e,this.sanitizer=i,this.currentRecording={status:Nn.STOPPED},this.recordingStatus=new St(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:Nn.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=Nn.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 n.\u0275fac=function(e){return new(e||n)(se(hs),se(fa))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wP=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe))},n.\u0275dir=ge({type:n,selectors:[["img","ovLogo",""]],hostBindings:function(e,i){1&e&&Te("error",function(){return i.loadDefaultLogo()})},inputs:{ovLogo:"ovLogo"}}),n})(),xP=(()=>{class n{constructor(e,i,o,r,s,a,l,c,d,u,h,g,I,Q,K){this.documentService=e,this.chatService=i,this.panelService=o,this.tokenService=r,this.participantService=s,this.openviduService=a,this.oVDevicesService=l,this.actionService=c,this.loggerSrv=d,this.layoutService=u,this.cd=h,this.libService=g,this.platformService=I,this.recordingService=Q,this.translateService=K,this.onLeaveButtonClicked=new Me,this.onCameraButtonClicked=new Me,this.onMicrophoneButtonClicked=new Me,this.onFullscreenButtonClicked=new Me,this.onScreenshareButtonClicked=new Me,this.onParticipantsPanelButtonClicked=new Me,this.onChatPanelButtonClicked=new Me,this.onActivitiesPanelButtonClicked=new Me,this.onStartRecordingClicked=new Me,this.onStopRecordingClicked=new Me,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.showSubtitlesButton=!0,this.videoMuteChanging=!1,this.recordingStatus=Nn.STOPPED,this._recordingStatus=Nn,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 ne(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.subscribeToSubtitlesToggling()})}ngAfterViewInit(){var e;null===(e=this.menuTrigger)||void 0===e||e.menuOpened.subscribe(()=>{this.isSessionCreator=this.participantService.getMyRole()===Ac.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.subtitlesSubs&&this.subtitlesSubs.unsubscribe()}toggleMicrophone(){return ne(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 ne(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(zt.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 ne(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===Nn.STARTED?(this.log.d("Stopping recording"),this.onStopRecordingClicked.emit(),this.recordingService.updateStatus(Nn.STOPPING)):this.recordingStatus===Nn.STOPPED&&(this.onStartRecordingClicked.emit(),this.recordingService.updateStatus(Nn.STARTING),this.showActivitiesPanelButton&&!this.isActivitiesOpened&&this.toggleActivitiesPanel("recording"))}toggleBackgroundEffects(){this.panelService.togglePanel(zt.BACKGROUND_EFFECTS)}toggleSubtitles(){this.layoutService.toggleSubtitles()}toggleSettings(){this.panelService.togglePanel(zt.SETTINGS)}toggleParticipantsPanel(){this.onParticipantsPanelButtonClicked.emit(),this.panelService.togglePanel(zt.PARTICIPANTS)}toggleChatPanel(){this.onChatPanelButtonClicked.emit(),this.panelService.togglePanel(zt.CHAT)}toggleFullscreen(){this.isFullscreenActive=!this.isFullscreenActive,this.documentService.toggleFullscreen("session-container"),this.onFullscreenButtonClicked.emit()}toggleActivitiesPanel(e){this.onActivitiesPanelButtonClicked.emit(),this.panelService.togglePanel(zt.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===zt.CHAT,this.isParticipantsOpened=e.opened&&e.type===zt.PARTICIPANTS,this.isActivitiesOpened=e.opened&&e.type===zt.ACTIVITIES,this.isChatOpened&&(this.unreadMessages=0),this.cd.markForCheck()})}subscribeToChatMessages(){this.chatMessagesSubscription=this.chatService.messagesObs.pipe(hc(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()===Ac.MODERATOR,this.cd.markForCheck())})}subscribeToRecordingStatus(){this.recordingSubscription=this.recordingService.recordingStatusObs.pipe(hc(1)).subscribe(e=>{this.recordingStatus=e.info.status,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.subtitlesSubs=this.libService.subtitlesButtonObs.subscribe(e=>{this.showSubtitlesButton=e,this.cd.markForCheck()})}subscribeToScreenSize(){this.screenSizeSub=this.documentService.screenSizeObs.subscribe(e=>{this.screenSize=e[0].mqAlias})}subscribeToSubtitlesToggling(){this.subtitlesSubs=this.layoutService.subtitlesTogglingObs.subscribe(e=>{this.subtitlesEnabled=e,this.cd.markForCheck()})}checkDisplayMoreOptions(){this.showMoreOptionsButton=this.showFullscreenButton||this.showBackgroundEffectsButton||this.showRecordingButton||this.showSettingsButton}}return n.\u0275fac=function(e){return new(e||n)(f(im),f(om),f(yo),f(Tc),f(ki),f(us),f(Mc),f(hs),f(cr),f(ja),f(Jt),f(Vt),f(Bu),f(Vu),f(Va))},n.\u0275cmp=tt({type:n,selectors:[["ov-toolbar"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,yee,5,bt),Je(o,bee,5,bt),Je(o,ak,5),Je(o,lk,5)),2&e){let r;Oe(r=Re())&&(i.toolbarAdditionalButtonsTemplate=r.first),Oe(r=Re())&&(i.toolbarAdditionalPanelButtonsTemplate=r.first),Oe(r=Re())&&(i.externalAdditionalButtons=r.first),Oe(r=Re())&&(i.externalAdditionalPanelButtons=r.first)}},viewQuery:function(e,i){if(1&e&&Mt(Vs,5),2&e){let o;Oe(o=Re())&&(i.menuTrigger=o.first)}},hostBindings:function(e,i){1&e&&Te("resize",function(r){return i.sizeChange(r)},!1,td)("keydown",function(r){return i.keyDown(r)},!1,QE)},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,"matTooltip",4,"ngIf"],["id","mic_off",3,"matTooltip",4,"ngIf"],["id","camera-btn","mat-icon-button","",3,"disabled","click"],["id","videocam",3,"matTooltip",4,"ngIf"],["id","videocam_off",3,"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","subtitles-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,"matTooltip"],["id","mic_off",3,"matTooltip"],["id","videocam",3,"matTooltip"],["id","videocam_off",3,"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","subtitles-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&&(v(0,"mat-toolbar",0),ie(1,Aee,6,5,"div",1),v(2,"div",2),v(3,"button",3),Te("click",function(){return i.toggleMicrophone()}),ie(4,wee,3,3,"mat-icon",4),ie(5,xee,3,3,"mat-icon",5),_(),v(6,"button",6),Te("click",function(){return i.toggleCamera()}),ie(7,Dee,3,3,"mat-icon",7),ie(8,Mee,3,3,"mat-icon",8),_(),ie(9,Oee,3,5,"button",9),ie(10,Ree,4,5,"button",10),v(11,"mat-menu",11,12),ie(13,Fee,5,4,"button",13),ie(14,jee,5,3,"button",14),ie(15,Uee,6,4,"button",15),ie(16,Gee,5,3,"button",16),ie(17,qee,1,0,"mat-divider",17),ie(18,Wee,6,3,"button",18),_(),ie(19,Yee,2,1,"ng-container",19),ie(20,Qee,4,3,"button",20),_(),v(21,"div",21),ie(22,Kee,4,6,"button",22),ie(23,Zee,4,6,"button",23),ie(24,Xee,4,8,"button",24),ie(25,ete,2,1,"ng-container",19),_(),_()),2&e&&(T(1),G("ngIf","xs"!==i.screenSize),T(2),lt("warn-btn",!i.isAudioActive),G("disabled",i.isConnectionLost||!i.hasAudioDevices),T(1),G("ngIf",i.isAudioActive),T(1),G("ngIf",!i.isAudioActive),T(1),lt("warn-btn",!i.isWebcamVideoActive),G("disabled",i.isConnectionLost||!i.hasVideoDevices||i.videoMuteChanging),T(1),G("ngIf",i.isWebcamVideoActive),T(1),G("ngIf",!i.isWebcamVideoActive),T(1),G("ngIf",!i.isMinimal&&i.showScreenshareButton),T(1),G("ngIf",!i.isMinimal&&i.showMoreOptionsButton),T(3),G("ngIf",i.showFullscreenButton),T(1),G("ngIf",!i.isMinimal&&i.showRecordingButton),T(1),G("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),T(1),G("ngIf",!i.isMinimal&&i.showSubtitlesButton&&!1),T(1),G("ngIf",!i.isMinimal&&i.showSettingsButton),T(1),G("ngIf",!i.isMinimal&&i.showSettingsButton),T(1),G("ngIf",i.toolbarAdditionalButtonsTemplate),T(1),G("ngIf",i.showLeaveButton),T(2),G("ngIf",!i.isMinimal&&i.showActivitiesPanelButton),T(1),G("ngIf",!i.isMinimal&&i.showParticipantsPanelButton),T(1),G("ngIf",!i.isMinimal&&i.showChatPanelButton),T(1),G("ngIf",i.toolbarAdditionalPanelButtonsTemplate))},directives:[Vp,Hs,ka,Lp,cn,Ra,Mb,Hn,Tu,wP,gi,lr,Vs,Bs,Nb,Ms,lZ],pipes:[vf,si],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}),n})(),DP=(()=>{class n{constructor(){this.type=dn.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===dn.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 n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=tt({type:n,selectors:[["ov-video"]],viewQuery:function(e,i){if(1&e&&Mt(tte,5),2&e){let o;Oe(o=Re())&&(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&&$e(0,"video",0,1),2&e&&(G("muted",i.mutedSound),Dt("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}"]}),n})();const cre={urls:{schemeMatches:!0,wwwMatches:!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 dre{constructor(){this.autolinker=new UZ(cre)}link(t){return this.autolinker.link(t)}}let ure=(()=>{class n{constructor(){this.linkifer=new dre}transform(e){return e&&this.linkifer.link(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Gn({name:"linkify",type:n,pure:!0}),n})(),MP=(()=>{class n{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(zt.CHAT)}subscribeToMessages(){this.chatMessageSubscription=this.chatService.messagesObs.subscribe(e=>{this.messageList=e,this.panelService.isChatPanelOpened()&&(this.scrollToBottom(),this.cd.markForCheck())})}}return n.\u0275fac=function(e){return new(e||n)(f(om),f(yo),f(Jt))},n.\u0275cmp=tt({type:n,selectors:[["ov-chat-panel"]],viewQuery:function(e,i){if(1&e&&(Mt(nte,5),Mt(ite,5)),2&e){let o;Oe(o=Re())&&(i.chatScroll=o.first),Oe(o=Re())&&(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&&(v(0,"div",0),v(1,"div",1),v(2,"h3",2),me(3),xe(4,"translate"),_(),v(5,"button",3),Te("click",function(){return i.close()}),xe(6,"translate"),v(7,"mat-icon"),me(8,"close"),_(),_(),_(),v(9,"div",4),v(10,"p",5),me(11),xe(12,"translate"),_(),_(),v(13,"div",6,7),ie(15,ste,8,6,"div",8),_(),v(16,"div",9),v(17,"textarea",10,11),Te("keypress",function(r){return i.eventKeyPress(r)})("ngModelChange",function(r){return i.message=r}),xe(19,"translate"),_(),v(20,"button",12),Te("click",function(){return i.sendMessage()}),v(21,"mat-icon",13),xe(22,"translate"),me(23,"send"),_(),_(),_(),_()),2&e&&(T(3),He(Ie(4,7,"PANEL.CHAT.TITLE")),T(2),Qt("matTooltip",Ie(6,9,"PANEL.CLOSE")),T(6),He(Ie(12,11,"PANEL.CHAT.SUBTITLE")),T(4),G("ngForOf",i.messageList),T(2),Qt("placeholder",Ie(19,13,"PANEL.CHAT.PLACEHOLDER")),G("ngModel",i.message),T(4),Qt("matTooltip",Ie(22,15,"PANEL.CHAT.SEND")))},directives:[Hs,ka,Ra,Hn,lr,gi,No,Mb,Rs,Kl,$l,ya,Xi,as,cn],pipes:[si,ure],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}),n})(),Xb=(()=>{class n{constructor(e,i,o,r,s,a,l,c,d,u,h,g){this.actionService=e,this.openviduService=i,this.participantService=o,this.loggerSrv=r,this.chatService=s,this.tokenService=a,this.libService=l,this.layoutService=c,this.panelService=d,this.recordingService=u,this.translateService=h,this.platformService=g,this.usedInPrejoinPage=!1,this.onSessionCreated=new Me,this.sidenavMode=wc.SIDE,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)}ngOnInit(){return ne(this,void 0,void 0,function*(){this.usedInPrejoinPage||(this.tokenService.getScreenToken()||this.libService.screenshareButton.next(!1),this.session=this.openviduService.getWebcamSession(),this.sessionScreen=this.openviduService.getScreenSession(),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(),this.onSessionCreated.emit(this.session),yield this.connectToSession(),this.platformService.isIos()&&this.participantService.isMyCameraActive()&&(yield this.openviduService.publishVideo(!1),yield this.openviduService.publishVideo(!0)))})}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(hc(1)).subscribe(e=>{this.sideMenu&&(this.settingsPanelOpened=e.opened&&e.type===zt.SETTINGS,this.sideMenu.opened&&e.opened&&(e.type===zt.SETTINGS||e.oldType===zt.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?wc.OVER:wc.SIDE})}connectToSession(){return ne(this,void 0,void 0,function*(){try{this.participantService.haveICameraAndScreenActive()?(yield this.openviduService.connectSession(this.openviduService.getWebcamSession(),this.tokenService.getWebcamToken()),yield this.openviduService.connectSession(this.openviduService.getScreenSession(),this.tokenService.getScreenToken()),yield this.openviduService.publish(this.participantService.getMyCameraPublisher()),yield this.openviduService.publish(this.participantService.getMyScreenPublisher())):this.participantService.isOnlyMyScreenActive()?(yield this.openviduService.connectSession(this.openviduService.getScreenSession(),this.tokenService.getScreenToken()),yield this.openviduService.publish(this.participantService.getMyScreenPublisher())):(yield this.openviduService.connectSession(this.openviduService.getWebcamSession(),this.tokenService.getWebcamToken()),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)}})}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?void 0:s.includes(`_${dn.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 d={clientData:this.participantService.getMyNickname()};this.openviduService.sendSignal(Gs.NICKNAME_CHANGED,[e.connection],d)}}),this.session.on("connectionDestroyed",e=>{const i=this.participantService.getNicknameFromConnectionData(e.connection.data),o=!this.openviduService.isMyOwnConnection(e.connection.connectionId),r=!(null==i?void 0:i.includes(`_${dn.SCREEN}`));o&&r&&this.participantService.removeConnectionByConnectionId(e.connection.connectionId)})}subscribeToStreamCreated(){this.session.on("streamCreated",e=>{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;if(!this.openviduService.isMyOwnConnection(a)){const d=this.session.subscribe(e.stream,void 0);this.participantService.addRemoteConnection(a,l,d)}})}subscribeToStreamDestroyed(){this.session.on("streamDestroyed",e=>{this.participantService.removeConnectionByConnectionId(e.stream.connection.connectionId)})}subscribeToStreamPropertyChange(){this.session.on("streamPropertyChanged",e=>{!this.openviduService.isMyOwnConnection(e.stream.connection.connectionId)&&this.participantService.updateRemoteParticipants()})}subscribeToNicknameChanged(){this.session.on(`signal:${Gs.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=>{"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 n.\u0275fac=function(e){return new(e||n)(f(hs),f(us),f(ki),f(cr),f(om),f(Tc),f(Vt),f(ja),f(yo),f(Vu),f(Va),f(Bu))},n.\u0275cmp=tt({type:n,selectors:[["ov-session"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,ate,5,bt),Je(o,lte,5,bt),Je(o,ik,5,bt)),2&e){let r;Oe(r=Re())&&(i.toolbarTemplate=r.first),Oe(r=Re())&&(i.panelTemplate=r.first),Oe(r=Re())&&(i.layoutTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&(Mt(cte,5),Mt(dte,5,Pe),Mt(ute,5)),2&e){let o;Oe(o=Re())&&(i.sidenavMenu=o.first),Oe(o=Re())&&(i.videoContainer=o.first),Oe(o=Re())&&(i.container=o.first)}},hostBindings:function(e,i){1&e&&Te("beforeunload",function(){return i.beforeunloadHandler()},!1,td)("resize",function(){return i.sizeChange()},!1,td)},inputs:{usedInPrejoinPage:"usedInPrejoinPage"},outputs:{onSessionCreated:"onSessionCreated"},decls:11,vars:7,consts:[["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"],["id","footer-container",4,"ngIf"],["id","footer-container"]],template:function(e,i){1&e&&(v(0,"div",0),v(1,"mat-sidenav-container",1,2),v(4,"mat-sidenav",3,4),ie(6,hte,1,0,"ng-container",5),_(),v(7,"mat-sidenav-content",6),v(8,"div",7),ie(9,fte,1,0,"ng-container",5),_(),_(),_(),ie(10,mte,2,1,"div",8),_()),2&e&&(T(4),Qt("mode",i.sidenavMode),G("ngClass",Ki(5,gte,i.settingsPanelOpened)),T(2),G("ngTemplateOutlet",i.panelTemplate),T(3),G("ngTemplateOutlet",i.layoutTemplate),T(1),G("ngIf",i.toolbarTemplate))},directives:[MR,DR,Xi,as,Ms,Hb,cn],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}"],changeDetection:0}),n})(),TP=(()=>{class n{constructor(e,i,o){this.documentService=e,this.panelService=i,this.cd=o,this.captionElements=[],this.sample=[{connectionId:"1",partial:"frente"},{connectionId:"1",partial:"friends"},{connectionId:"1",partial:"friends"},{connectionId:"1",partial:"friends estilizado"},{connectionId:"1",partial:"friends estilizado"},{connectionId:"1",partial:"friends estilizado"},{connectionId:"1",partial:"friends estilizado"},{connectionId:"1",partial:"friends estilizado efe"},{connectionId:"1",partial:"friends estilizado efe"},{connectionId:"1",partial:"friends estilizado efe erre"},{connectionId:"1",partial:"friends estilizado efe erre"},{connectionId:"1",partial:"friends estilizado efe erre"},{connectionId:"1",partial:"friends estilizado efe el rey y"},{connectionId:"1",partial:"friends estilizado efe el rey y"},{connectionId:"1",partial:"friends estilizado efe el rey y he"},{connectionId:"1",partial:"friends estilizado efe el rey y he"},{connectionId:"1",partial:"friends estilizado efe el rey y he"},{connectionId:"1",partial:"friends estilizado efe el rey y he"},{connectionId:"1",partial:"friends estilizado efe el rey y en"},{connectionId:"1",partial:"friends estilizado efe el rey y en"},{connectionId:"1",partial:"friends estilizado efe el rey y en de"},{connectionId:"1",partial:"friends estilizado efe el rey y en de"},{connectionId:"1",partial:"friends estilizado efe el rey y en de"},{connectionId:"1",partial:"friends estilizado efe el rey y en de"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense crear productos"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense crear productos"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense crear productos"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por mayor"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por mayor"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por mayor"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por mark"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por mark"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y la"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y la"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y la"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y la"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y la"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz cree"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz cree"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz cree"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz cree"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz cree"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz creen se"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz creen se"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz creen se"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz creen se"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz creen se"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz creen se"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz creen se"},{connectionId:"1",partial:"friends estilizado efe el rey y en ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense creado y producida por marta kaufman y l\xe1piz creen se"},{connectionId:"1",text:"friends estilizado efe erre y ene de ese tambi\xe9n conocida en hispanoam\xe9rica como amigos y en espa\xf1a como colegas durante la temporada uno es una serie de televisi\xf3n estadounidense y producida por marta kaufman y la creen se emiti\xf3"},{connectionId:"2",partial:"la"},{connectionId:"2",partial:"primera vez en"},{connectionId:"2",partial:"primera vez en"},{connectionId:"2",partial:"a veces vendidos"},{connectionId:"2",partial:"a veces vendidos"},{connectionId:"2",partial:"a veces vendidos"},{connectionId:"2",partial:"a veces vendidos"},{connectionId:"2",partial:"a veces vendidos"},{connectionId:"2",partial:"a veces vendidos de septiembre"},{connectionId:"2",partial:"a veces vendidos de septiembre"},{connectionId:"2",partial:"a veces vendidos de septiembre de"},{connectionId:"2",partial:"a veces vendidos de septiembre de"},{connectionId:"2",partial:"a veces vendidos de septiembre de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la academia"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la academia"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la academia"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en eventos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en eventos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena de veces y"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena de veces y"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena de veces y"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena de veces y t\xe9rminos y"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena de veces y t\xe9rminos y"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatrocientos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatrocientos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatrocientos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro las"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro las"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que recibieron"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que recibieron"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que recibieron"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que recibieron matarnos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que recibieron matarnos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york sucede en"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york sucede en"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto unos como"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto unos como"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto unos como"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la actualidad y"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la actualidad y"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la actualidad y"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo considerable"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo considerable"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo considerable"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo considerable"},{connectionId:"2",partial:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena en t\xe9rminos de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que residen en oaxaca nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo considerable"},{connectionId:"2",text:"a veces vendidos de septiembre de mil novecientos noventa y cuatro por la cadena de veces y termin\xf3 en seis de mayo de dos mil cuatro la serie trata sobre la vida de un grupo de amigos que en baja tan nueva york suceden tanto buenos como malos momentos pero con una cr\xedtica c\xf3mica los hechos m\xe1s trascendentales de la autoridad inmediatamente despu\xe9s del \xe9xito de su pa\xeds el programa comenz\xf3 su difusi\xf3n por todo el mundo considerable resultados"}],this.captionsHeight=0}ngOnInit(){this.subscribeToScreenSize(),this.subscribeToPanelToggling(),this.subscribeToTranscription()}ngOnDestroy(){this.screenSizeSub&&this.screenSizeSub.unsubscribe(),this.panelTogglingSubscription&&this.panelTogglingSubscription.unsubscribe(),clearInterval(this.interval)}onSettingsCliked(){this.panelService.togglePanel(zt.SETTINGS,Sc.SUBTITLES)}subscribeToTranscription(){this.startFakeEventWithSample(),this.fakeEvent.subscribe(e=>{this.updateCaption(e.connectionId,e.text?e.text:e.partial),this.cd.markForCheck(),this.scrollToBottom()})}updateCaption(e,i){const o=new Map;o.set("1","Pepe"),o.set("2","Mario"),o.set("3","Luis"),o.set("4","Juan"),o.set("5","INTERUPCION");let r=[...this.captionElements];const s={connectionId:e,author:o.get(e),text:i};if((null==r?void 0:r.length)>0){let a=r[r.length-1];a.connectionId===e?a.text=i:r.push(s)}else r.push(s);this.adjustCaptionsToContainer(r)}adjustCaptionsToContainer(e){var i;this.captionsHeight=0,null===(i=this.captionElementsRef)||void 0===i||i.forEach(o=>{this.captionsHeight+=o.nativeElement.offsetHeight}),(null==e?void 0:e.length)>3?e.shift():this.captionsHeight>240&&(3===(null==e?void 0:e.length)?e.shift():(2===(null==e?void 0:e.length)||1===(null==e?void 0:e.length))&&(e[0].text=e[0].text.slice(100),e[0].text.length<100&&e.shift())),this.captionElements=[...e]}startFakeEventWithSample(){let e=0,i=this.sample[e];const o=new St(i);this.fakeEvent=o.asObservable(),this.interval=(()=>setInterval(()=>{i=this.sample[e],e++,o.next(i),this.sample[e]||(clearInterval(this.interval),e=0)},180))()}subscribeToPanelToggling(){this.panelTogglingSubscription=this.panelService.panelOpenedObs.subscribe(e=>{this.settingsPanelOpened=e.opened,this.cd.markForCheck()})}subscribeToScreenSize(){this.screenSizeSub=this.documentService.screenSizeObs.subscribe(e=>{this.screenSize=e[0].mqAlias,console.log(this.screenSize),this.cd.markForCheck()})}scrollToBottom(){try{this.textContainer.nativeElement.scrollTop=this.textContainer.nativeElement.scrollHeight}catch(e){}}}return n.\u0275fac=function(e){return new(e||n)(f(im),f(yo),f(Jt))},n.\u0275cmp=tt({type:n,selectors:[["ov-captions"]],viewQuery:function(e,i){if(1&e&&(Mt(vte,5),Mt(_te,5)),2&e){let o;Oe(o=Re())&&(i.textContainer=o.first),Oe(o=Re())&&(i.captionElementsRef=o)}},decls:7,vars:3,consts:[[1,"subtitles-container"],["captionsContainer",""],["class","subtitles-offset",4,"ngIf"],[1,"subtitles-main-container"],["textContainer",""],["class","element",4,"ngFor","ngForOf"],[1,"subtitles-offset"],["id","subtitle-settings-btn","mat-flat-button","",3,"click"],["id","subtitle-settings-icon"],[1,"element"],["captionElement",""],["id","author",3,"ngClass"],["id","subtitle-text",3,"ngClass"]],template:function(e,i){1&e&&(v(0,"div",0,1),ie(2,yte,6,0,"div",2),v(3,"div",3,4),ie(5,Ete,6,14,"div",5),_(),ie(6,Ste,1,0,"div",2),_()),2&e&&(T(2),G("ngIf","sm"!==i.screenSize&&"xs"!==i.screenSize&&!i.settingsPanelOpened),T(3),G("ngForOf",i.captionElements),T(1),G("ngIf","sm"!==i.screenSize&&"xs"!==i.screenSize&&!i.settingsPanelOpened))},directives:[cn,No,Hn,gi,Xi,as],styles:[".subtitles-container[_ngcontent-%COMP%]{display:flex;height:var(--ov-captions-height, 200px);margin:0 10px}.subtitles-offset[_ngcontent-%COMP%]{height:var(--ov-captions-height, 200px);width:15%;text-align:center}.subtitles-main-container[_ngcontent-%COMP%]{flex-grow:1;align-self:center;margin-left:15px;max-height:var(--ov-captions-height, 200px);width:70%;overflow:hidden}#subtitle-settings-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-secondary-color)}#subtitle-settings-icon[_ngcontent-%COMP%]{font-size:15px;height:15px;width:15px;padding-right:5px}#author[_ngcontent-%COMP%]{margin-bottom:3px;font-weight:700}#subtitle-text[_ngcontent-%COMP%], #author[_ngcontent-%COMP%]{color:var(--ov-text-color);font-family:Roboto,arial,sans-serif}.subtitles-main-container[_ngcontent-%COMP%] .element[_ngcontent-%COMP%]{margin:5px}#subtitle-text[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);padding:4.5px;line-height:1.6;word-break:break-word}.big-text[_ngcontent-%COMP%]{font-size:22px}.medium-text[_ngcontent-%COMP%]{font-size:20px}.small-text[_ngcontent-%COMP%]{font-size:18px}.extra-small-text[_ngcontent-%COMP%], .big-author[_ngcontent-%COMP%]{font-size:16px}.medium-author[_ngcontent-%COMP%]{font-size:14px}.small-author[_ngcontent-%COMP%]{font-size:12px}"],changeDetection:0}),n})(),hre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Gn({name:"streams",type:n,pure:!0}),n})(),fre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Va,16))},n.\u0275pipe=Gn({name:"streamTypesEnabled",type:n,pure:!0}),n})(),Jb=(()=>{class n{constructor(e,i,o){this.layoutService=e,this.participantService=i,this.cd=o,this.remoteParticipants=[],this.subtitlesEnabled=!0}set externalStream(e){e&&(this.streamTemplate=e.template)}ngOnInit(){this.subscribeToParticipants(),this.subscribeToSubtitles()}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.subtitlesSubs&&this.subtitlesSubs.unsubscribe(),this.layoutService.clear()}subscribeToSubtitles(){this.subtitlesSubs=this.layoutService.subtitlesTogglingObs.subscribe(e=>{this.subtitlesEnabled=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 n.\u0275fac=function(e){return new(e||n)(f(ja),f(ki),f(Jt))},n.\u0275cmp=tt({type:n,selectors:[["ov-layout"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Ate,5,bt),Je(o,mk,5)),2&e){let r;Oe(r=Re())&&(i.streamTemplate=r.first),Oe(r=Re())&&(i.externalStream=r.first)}},viewQuery:function(e,i){if(1&e&&Mt(ik,5,pn),2&e){let o;Oe(o=Re())&&(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&&(v(0,"div",0),v(1,"div",1,2),ie(3,xte,2,7,"div",3),xe(4,"streams"),ie(5,Mte,2,7,"div",4),xe(6,"streams"),_(),ie(7,Tte,1,0,"ov-captions",5),_()),2&e&&(lt("withSubtitles",i.subtitlesEnabled),T(3),G("ngForOf",Ie(4,5,i.localParticipant)),T(2),G("ngForOf",Ie(6,7,i.remoteParticipants)),T(2),G("ngIf",i.subtitlesEnabled))},directives:[No,cn,Xi,as,Ms,TP],pipes:[hre],styles:['#remote-participant[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{height:100%}.withSubtitles[_ngcontent-%COMP%]{height:calc(100% - var(--ov-captions-height, 200px))!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}),n})();var Ua=(()=>{return(n=Ua||(Ua={})).BIG="zoom_in",n.NORMAL="zoom_out",Ua;var n})();let eC=(()=>{class n extends Su{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 n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275prov=Se({token:n,factory:n.\u0275fac}),n})(),IP=(()=>{class n{constructor(e){this.cdkOverlayModel=e}setSelector(e){this.cdkOverlayModel.setSelector(e)}}return n.\u0275fac=function(e){return new(e||n)(se(eC))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),OP=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=tt({type:n,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&&(v(0,"div",0),$e(1,"div",1),$e(2,"div",2),$e(3,"div",1),_()),2&e&&(T(1),G("ngClass",i.isSpeaking?"play":"pause"),T(1),G("ngClass",i.isSpeaking?"play":"pause"),T(1),G("ngClass",i.isSpeaking?"play":"pause"))},directives:[Xi,as],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}"]}),n})(),RP=(()=>{class n{constructor(){}set name(e){this.letter=e[0]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=tt({type:n,selectors:[["ov-avatar-profile"]],inputs:{name:"name",color:"color"},decls:4,vars:5,consts:[[1,"poster"],[1,"initial",3,"ngStyle"],["id","poster-text"]],template:function(e,i){1&e&&(v(0,"div",0),v(1,"div",1),v(2,"span",2),me(3),_(),_(),_()),2&e&&(G("@posterAnimation",void 0),T(1),G("ngStyle",Ki(3,Ite,i.color)),T(2),He(i.letter))},directives:[Ud,w1],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}"],data:{animation:[lo("posterAnimation",[ri(":enter",[Wt({opacity:0}),fi("600ms",Wt({opacity:1}))])])]}}),n})(),tC=(()=>{class n{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=Ua,this.videoTypeEnum=dn,this.videoSizeIcon=Ua.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,d,u,h,g;(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?void 0: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===(d=null===(c=null===(l=this._stream.streamManager)||void 0===l?void 0:l.stream)||void 0===c?void 0:c.connection)||void 0===d?void 0:d.connectionId):this.participantService.toggleRemoteVideoEnlarged(null===(g=null===(h=null===(u=this._stream.streamManager)||void 0===u?void 0:u.stream)||void 0===h?void 0:h.connection)||void 0===g?void 0:g.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?void 0: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(Gs.NICKNAME_CHANGED,void 0,{clientData:this.nickname})),this.toggleNicknameForm())}replaceScreenTrack(){return ne(this,void 0,void 0,function*(){const e={videoSource:Lu.SCREEN,publishVideo:!0,publishAudio:!this.participantService.isMyCameraActive(),mirror:!1};yield this.openviduService.replaceTrack(dn.SCREEN,e)})}checkVideoEnlarged(){this.videoSizeIcon=this._stream.videoEnlarged?Ua.NORMAL:Ua.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 n.\u0275fac=function(e){return new(e||n)(f(us),f(ja),f(ki),f(ds),f(IP),f(Vt))},n.\u0275cmp=tt({type:n,selectors:[["ov-stream"]],viewQuery:function(e,i){if(1&e&&(Mt(Vs,5),Mt(Ote,5),Mt(Rte,5,Pe),Mt(kte,5)),2&e){let o;Oe(o=Re())&&(i.menuTrigger=o.first),Oe(o=Re())&&(i.menu=o.first),Oe(o=Re())&&(i.streamContainer=o.first),Oe(o=Re())&&(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&&ie(0,Xte,9,11,"div",0),2&e&&G("ngIf",i._stream)},directives:[cn,Xi,as,DP,Gb,Rs,Kl,$l,ya,OP,RP,Hn,gi,lr,Vs,Tu,Bs],pipes:[si],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}"]}),n})(),kP=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Gn({name:"duration",type:n,pure:!0}),n})(),nC=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Vt),f(ki),f(Jt))},n.\u0275cmp=tt({type:n,selectors:[["ov-participant-panel-item"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Jte,5,bt),Je(o,pk,5)),2&e){let r;Oe(r=Re())&&(i.participantPanelItemElementsTemplate=r.first),Oe(r=Re())&&(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&&(v(0,"mat-list"),v(1,"mat-list-item"),v(2,"mat-icon",0),me(3,"person"),_(),v(4,"h3",1),me(5),_(),v(6,"p",2),me(7),xe(8,"streamTypesEnabled"),_(),v(9,"div",3),ie(10,nne,3,4,"button",4),ie(11,one,2,1,"ng-container",5),_(),_(),_()),2&e&&(T(5),He(i._participant.nickname),T(2),He(Ie(8,4,i._participant)),T(3),G("ngIf",!i._participant.local&&i.showMuteButton),T(1),G("ngIf",i.participantPanelItemElementsTemplate))},directives:[Xp,tm,gi,Jp,pc,cn,Hn,Ms],pipes:[fre],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}),n})(),PP=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(ki),f(yo),f(Jt))},n.\u0275cmp=tt({type:n,selectors:[["ov-participants-panel"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,rne,5,bt),Je(o,fk,5)),2&e){let r;Oe(r=Re())&&(i.participantPanelItemTemplate=r.first),Oe(r=Re())&&(i.externalParticipantPanelItem=r.first)}},viewQuery:function(e,i){if(1&e&&Mt(rk,5,bt),2&e){let o;Oe(o=Re())&&(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&&(v(0,"div",0),v(1,"div",1),v(2,"h3",2),me(3),xe(4,"translate"),_(),v(5,"button",3),Te("click",function(){return i.close()}),xe(6,"translate"),v(7,"mat-icon"),me(8,"close"),_(),_(),_(),v(9,"div",4),ie(10,lne,3,5,"div",5),ie(11,une,2,1,"div",6),_(),_(),ie(12,hne,1,1,"ng-template",null,7,gn)),2&e&&(T(3),He(Ie(4,4,"PANEL.PARTICIPANTS.TITLE")),T(2),Qt("matTooltip",Ie(6,6,"PANEL.CLOSE")),T(5),G("ngIf",i.localParticipant),T(1),G("ngIf",i.remoteParticipants.length>0))},directives:[Hn,lr,gi,cn,Ms,Nb,No,nC],pipes:[si],styles:[Nu,".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}),n})(),iC=(()=>{class n{constructor(e,i){this.translateService=e,this.storageSrv=i,this.onLangSelectorClicked=new Me,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 n.\u0275fac=function(e){return new(e||n)(f(Va),f(ds))},n.\u0275cmp=tt({type:n,selectors:[["ov-lang-selector"]],viewQuery:function(e,i){if(1&e&&(Mt(Vs,5),Mt(Yb,5)),2&e){let o;Oe(o=Re())&&(i.menuTrigger=o.first),Oe(o=Re())&&(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&&(v(0,"button",0),v(1,"span"),me(2),_(),v(3,"mat-icon"),me(4,"expand_more"),_(),_(),v(5,"mat-menu",null,1),ie(7,fne,3,1,"button",2),_()),2&e&&(G("matMenuTriggerFor",Cr(6)),T(2),He(null==i.langSelected?null:i.langSelected.name),T(5),G("ngForOf",i.languages))},directives:[Hn,Vs,gi,Tu,No,Bs],styles:[".lang-button[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);color:var(--ov-text-color)}"]}),n})(),oC=(()=>{class n{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(hc(1)).subscribe(e=>{this.isChatPanelOpened=e.opened&&e.type===zt.CHAT,this.isParticipantsPanelOpened=e.opened&&e.type===zt.PARTICIPANTS,this.isBackgroundEffectsPanelOpened=e.opened&&e.type===zt.BACKGROUND_EFFECTS,this.isSettingsPanelOpened=e.opened&&e.type===zt.SETTINGS,this.isActivitiesPanelOpened=e.opened&&e.type===zt.ACTIVITIES,this.isExternalPanelOpened=e.opened&&e.type!==zt.PARTICIPANTS&&e.type!==zt.CHAT,this.cd.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(f(yo),f(Jt))},n.\u0275cmp=tt({type:n,selectors:[["ov-panel"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,pne,5,bt),Je(o,mne,5,bt),Je(o,gne,5,bt),Je(o,vne,5,bt),Je(o,_ne,5,bt),Je(o,yne,5,bt),Je(o,hk,5),Je(o,uk,5),Je(o,dk,5),Je(o,ck,5)),2&e){let r;Oe(r=Re())&&(i.participantsPanelTemplate=r.first),Oe(r=Re())&&(i.backgroundEffectsPanelTemplate=r.first),Oe(r=Re())&&(i.settingsPanelTemplate=r.first),Oe(r=Re())&&(i.activitiesPanelTemplate=r.first),Oe(r=Re())&&(i.chatPanelTemplate=r.first),Oe(r=Re())&&(i.additionalPanelsTemplate=r.first),Oe(r=Re())&&(i.externalParticipantPanel=r.first),Oe(r=Re())&&(i.externalActivitiesPanel=r.first),Oe(r=Re())&&(i.externalChatPanel=r.first),Oe(r=Re())&&(i.externalAdditionalPanels=r.first)}},decls:6,vars:6,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(ie(0,Cne,2,1,"ng-container",0),ie(1,Sne,2,1,"ng-container",0),ie(2,wne,2,1,"ng-container",0),ie(3,Dne,2,1,"ng-container",0),ie(4,Tne,2,1,"ng-container",0),ie(5,One,2,1,"ng-container",0)),2&e&&(G("ngIf",i.isChatPanelOpened),T(1),G("ngIf",i.isParticipantsPanelOpened),T(1),G("ngIf",i.isBackgroundEffectsPanelOpened),T(1),G("ngIf",i.isSettingsPanelOpened),T(1),G("ngIf",i.isActivitiesPanelOpened),T(1),G("ngIf",i.additionalPanelsTemplate&&i.isExternalPanelOpened))},directives:[cn,Ms],styles:[Nu],changeDetection:0}),n})();var un=(()=>{return(n=un||(un={})).NONE="NONE",n.BLUR="BLUR",n.IMAGE="IMAGE",un;var n})();let NP=(()=>{class n{constructor(e,i,o){this.participantService=e,this.translateService=i,this.tokenService=o,this.backgroundSelected=new St(""),this.backgrounds=[{id:"no_effect",type:un.NONE,thumbnail:"block"},{id:"soft_blur",type:un.BLUR,thumbnail:"blur_on"},{id:"1",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-1.jpg",src:"assets/backgrounds/bg-1.jpg"},{id:"2",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-2.jpg",src:"assets/backgrounds/bg-2.jpg"},{id:"3",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-3.jpg",src:"assets/backgrounds/bg-3.jpg"},{id:"4",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-4.jpg",src:"assets/backgrounds/bg-4.jpg"},{id:"19",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-19.jpg",src:"assets/backgrounds/bg-19.jpg"},{id:"5",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-5.jpg",src:"assets/backgrounds/bg-5.jpg"},{id:"6",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-6.jpg",src:"assets/backgrounds/bg-6.jpg"},{id:"7",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-7.jpg",src:"assets/backgrounds/bg-7.jpg"},{id:"8",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-8.jpg",src:"assets/backgrounds/bg-8.jpg"},{id:"9",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-9.jpg",src:"assets/backgrounds/bg-9.jpg"},{id:"10",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-10.jpg",src:"assets/backgrounds/bg-10.jpg"},{id:"11",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-11.jpg",src:"assets/backgrounds/bg-11.jpg"},{id:"12",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-12.jpg",src:"assets/backgrounds/bg-12.jpg"},{id:"13",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-13.jpg",src:"assets/backgrounds/bg-13.jpg"},{id:"14",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-14.jpg",src:"assets/backgrounds/bg-14.jpg"},{id:"15",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-15.jpg",src:"assets/backgrounds/bg-15.jpg"},{id:"16",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-16.jpg",src:"assets/backgrounds/bg-16.jpg"},{id:"17",type:un.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-17.jpg",src:"assets/backgrounds/bg-17.jpg"},{id:"18",type:un.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}applyBackground(e){return ne(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.tokenService.getWebcamToken(),url:""};e.type===un.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.backgroundSelected.next(e.id)}})}removeBackground(){return ne(this,void 0,void 0,function*(){this.isBackgroundApplied()&&(this.backgroundSelected.next("no_effect"),yield this.participantService.getMyCameraPublisher().stream.removeFilter())})}replaceBackground(e){return ne(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 n.\u0275fac=function(e){return new(e||n)(se(ki),se(Va),se(Tc))},n.\u0275prov=Se({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rC=(()=>{class n{constructor(e,i,o){this.panelService=e,this.backgroundService=i,this.cd=o,this.effectType=un,this.backgroundImages=[],this.noEffectAndBlurredBackground=[]}ngOnInit(){this.subscribeToBackgroundSelected(),this.backgrounds=this.backgroundService.getBackgrounds(),this.noEffectAndBlurredBackground=this.backgrounds.filter(e=>e.type===un.BLUR||e.type===un.NONE),this.backgroundImages=this.backgrounds.filter(e=>e.type===un.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(zt.BACKGROUND_EFFECTS)}applyBackground(e){return ne(this,void 0,void 0,function*(){e.type===un.NONE?yield this.removeBackground():yield this.backgroundService.applyBackground(e)})}removeBackground(){return ne(this,void 0,void 0,function*(){yield this.backgroundService.removeBackground()})}}return n.\u0275fac=function(e){return new(e||n)(f(yo),f(NP),f(Jt))},n.\u0275cmp=tt({type:n,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&&(v(0,"div",0),v(1,"div",1),v(2,"h3",2),me(3),xe(4,"translate"),_(),v(5,"button",3),Te("click",function(){return i.close()}),xe(6,"translate"),v(7,"mat-icon"),me(8,"close"),_(),_(),_(),v(9,"div",4),v(10,"div"),v(11,"h4"),me(12),xe(13,"translate"),_(),v(14,"div"),ie(15,Rne,5,8,"button",5),_(),_(),$e(16,"hr"),v(17,"div"),v(18,"h4"),me(19),xe(20,"translate"),_(),v(21,"div",6),ie(22,kne,2,3,"div",7),_(),_(),_(),_()),2&e&&(T(3),He(Ie(4,6,"PANEL.BACKGROUND.TITLE")),T(2),Qt("matTooltip",Ie(6,8,"PANEL.CLOSE")),T(7),He(Ie(13,10,"PANEL.BACKGROUND.BLURRED_SECTION")),T(3),G("ngForOf",i.noEffectAndBlurredBackground),T(4),He(Ie(20,12,"PANEL.BACKGROUND.IMAGES_SECTION")),T(3),G("ngForOf",i.backgroundImages))},directives:[Hs,ka,Ra,Hn,lr,gi,No],pipes:[si],styles:[Nu,".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}),n})(),sC=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(ki),f(ds))},n.\u0275cmp=tt({type:n,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&&(v(0,"div",0),v(1,"button",1),v(2,"mat-icon"),me(3,"person"),_(),_(),v(4,"mat-form-field",2),v(5,"mat-label"),me(6),xe(7,"translate"),_(),v(8,"input",3),Te("ngModelChange",function(r){return i.nickname=r})("change",function(){return i.updateNickname()}),_(),_(),_()),2&e&&(T(6),He(Ie(7,2,"PREJOIN.NICKNAME")),T(2),G("ngModel",i.nickname))},directives:[Hn,gi,Kp,Cc,Gb,Rs,Kl,$l,ya],pipes:[si],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}"]}),n})(),aC=(()=>{class n{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 Me}ngOnInit(){return ne(this,void 0,void 0,function*(){this.subscribeToParticipantMediaProperties(),this.openviduService.isSessionConnected()&&(yield this.deviceSrv.initializeDevices()),this.hasVideoDevices=this.deviceSrv.hasVideoDeviceAvailable(),this.cameras=this.deviceSrv.getCameras(),this.cameraSelected=this.deviceSrv.getCameraSelected(),this.isVideoMuted=this.openviduService.isSessionConnected()?!this.participantService.getLocalParticipant().isCameraVideoActive():this.deviceSrv.isVideoMuted()})}ngOnDestroy(){return ne(this,void 0,void 0,function*(){this.cameras=[],this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe()})}toggleCam(){return ne(this,void 0,void 0,function*(){this.videoMuteChanging=!0;const e=this.isVideoMuted;yield this.openviduService.publishVideo(e),this.storageSrv.setVideoMuted(this.isVideoMuted),this.isVideoMuted&&this.panelService.isExternalPanelOpened()&&this.panelService.togglePanel(zt.BACKGROUND_EFFECTS),this.videoMuteChanging=!1})}onCameraSelected(e){return ne(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();this.backgroundService.isBackgroundApplied()&&(yield this.backgroundService.removeBackground());const s={videoSource:i,audioSource:!1,mirror:o};if(yield this.openviduService.replaceTrack(dn.CAMERA,s),this.backgroundService.isBackgroundApplied()){const a=this.backgroundService.backgrounds.find(l=>l.id===r);a&&(yield this.backgroundService.applyBackground(a))}this.deviceSrv.setCameraSelected(i),this.cameraSelected=this.deviceSrv.getCameraSelected()}})}subscribeToParticipantMediaProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.isVideoMuted=!e.isCameraVideoActive())})}}return n.\u0275fac=function(e){return new(e||n)(f(us),f(yo),f(ds),f(Mc),f(ki),f(NP))},n.\u0275cmp=tt({type:n,selectors:[["ov-video-devices-select"]],outputs:{onDeviceSelectorClicked:"onDeviceSelectorClicked"},decls:10,vars:11,consts:[[1,"device-container-element"],["mat-icon-button","","id","camera-button",3,"disabled","click"],["id","videocam",3,"matTooltip",4,"ngIf"],["id","videocam_off",3,"matTooltip",4,"ngIf"],[3,"disabled","value","click","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","videocam",3,"matTooltip"],["id","videocam_off",3,"matTooltip"],[3,"value"]],template:function(e,i){1&e&&(v(0,"div",0),v(1,"button",1),Te("click",function(){return i.toggleCam()}),ie(2,Pne,3,3,"mat-icon",2),ie(3,Nne,3,3,"mat-icon",3),_(),v(4,"mat-form-field"),v(5,"mat-label"),me(6),xe(7,"translate"),_(),v(8,"mat-select",4),Te("click",function(){return i.onDeviceSelectorClicked.emit()})("selectionChange",function(r){return i.onCameraSelected(r)}),ie(9,Lne,2,2,"mat-option",5),_(),_(),_()),2&e&&(T(1),lt("warn-btn",i.isVideoMuted),G("disabled",!i.hasVideoDevices||i.videoMuteChanging),T(1),G("ngIf",!i.isVideoMuted),T(1),G("ngIf",i.isVideoMuted),T(3),He(Ie(7,9,"PREJOIN.VIDEO_DEVICE")),T(2),G("disabled",i.isVideoMuted||!i.hasVideoDevices)("value",null==i.cameraSelected?null:i.cameraSelected.device),T(1),G("ngForOf",i.cameras))},directives:[Hn,cn,Kp,Cc,Yb,No,gi,lr,bb],pipes:[si],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}"]}),n})(),lC=(()=>{class n{constructor(e,i,o,r){this.openviduService=e,this.deviceSrv=i,this.storageSrv=o,this.participantService=r,this.onDeviceSelectorClicked=new Me,this.microphones=[]}ngOnInit(){return ne(this,void 0,void 0,function*(){this.subscribeToParticipantMediaProperties(),this.openviduService.isSessionConnected()&&(yield this.deviceSrv.initializeDevices()),this.hasAudioDevices=this.deviceSrv.hasAudioDeviceAvailable(),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(){this.openviduService.publishAudio(this.isAudioMuted)}onMicrophoneSelected(e){return ne(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(dn.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 n.\u0275fac=function(e){return new(e||n)(f(us),f(Mc),f(ds),f(ki))},n.\u0275cmp=tt({type:n,selectors:[["ov-audio-devices-select"]],outputs:{onDeviceSelectorClicked:"onDeviceSelectorClicked"},decls:10,vars:11,consts:[[1,"device-container-element"],["mat-icon-button","","id","microhpone-button",3,"disabled","click"],["id","mic",3,"matTooltip",4,"ngIf"],["id","mic_off",3,"matTooltip",4,"ngIf"],[3,"disabled","value","click","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","mic",3,"matTooltip"],["id","mic_off",3,"matTooltip"],[3,"value"]],template:function(e,i){1&e&&(v(0,"div",0),v(1,"button",1),Te("click",function(){return i.toggleMic()}),ie(2,Fne,3,3,"mat-icon",2),ie(3,Bne,3,3,"mat-icon",3),_(),v(4,"mat-form-field"),v(5,"mat-label"),me(6),xe(7,"translate"),_(),v(8,"mat-select",4),Te("click",function(){return i.onDeviceSelectorClicked.emit()})("selectionChange",function(r){return i.onMicrophoneSelected(r)}),ie(9,Vne,2,2,"mat-option",5),_(),_(),_()),2&e&&(T(1),lt("warn-btn",i.isAudioMuted),G("disabled",!i.hasAudioDevices),T(1),G("ngIf",!i.isAudioMuted),T(1),G("ngIf",i.isAudioMuted),T(3),He(Ie(7,9,"PREJOIN.AUDIO_DEVICE")),T(2),G("disabled",i.isAudioMuted||!i.hasAudioDevices)("value",null==i.microphoneSelected?null:i.microphoneSelected.device),T(1),G("ngForOf",i.microphones))},directives:[Hn,cn,Kp,Cc,Yb,No,gi,lr,bb],pipes:[si],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}"]}),n})();const gre={provide:kp,useValue:[{alias:"landscape",suffix:"Landscape",mediaQuery:"screen and (orientation: landscape)",overlapping:!1,priority:2001}],multi:!0},vre=["fxLayout.landscape"];let _re=(()=>{class n extends M1{constructor(){super(...arguments),this.inputs=vre}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=nt(n)))(i||n)}}(),n.\u0275dir=ge({type:n,selectors:[["","fxLayout.landscape",""]],inputs:{"fxLayout.landscape":"fxLayout.landscape"},features:[Le]}),n})(),LP=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","streamDisplayParticipantName",""],["ov-stream","displayParticipantName",""]],inputs:{streamDisplayParticipantName:"streamDisplayParticipantName",displayParticipantName:"displayParticipantName"}}),n})(),yre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","streamDisplayAudioDetection",""],["ov-stream","displayAudioDetection",""]],inputs:{streamDisplayAudioDetection:"streamDisplayAudioDetection",displayAudioDetection:"displayAudioDetection"}}),n})(),FP=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","streamSettingsButton",""],["ov-stream","settingsButton",""]],inputs:{streamSettingsButton:"streamSettingsButton",settingsButton:"settingsButton"}}),n})(),BP=(()=>{class n{constructor(e,i,o,r,s,a){this.layoutService=e,this.loggerSrv=i,this.participantService=o,this.panelService=r,this.libService=s,this.cdkSrv=a,this.onJoinButtonClicked=new Me,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 ne(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")}joinSession(){this.onJoinButtonClicked.emit(),this.panelService.closePanel()}toggleBackgroundEffects(){this.panelService.togglePanel(zt.BACKGROUND_EFFECTS)}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 n.\u0275fac=function(e){return new(e||n)(f(ja),f(cr),f(ki),f(yo),f(Vt),f(IP))},n.\u0275cmp=tt({type:n,selectors:[["ov-pre-join"]],hostBindings:function(e,i){1&e&&Te("resize",function(){return i.sizeChange()},!1,td)},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"],["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&&(v(0,"div",0),v(1,"mat-toolbar",1),ie(2,jne,1,0,"img",2),$e(3,"span",3),ie(4,Une,1,0,"ov-lang-selector",4),_(),_(),v(5,"div",5),v(6,"div",6),v(7,"ov-session",7),ie(8,Gne,2,0,void 0,8),ie(9,$ne,3,0,"ng-template",null,9,gn),_(),_(),ie(11,Xne,16,7,"div",10),_()),2&e&&(T(2),G("ngIf",!i.isMinimal&&i.showLogo),T(2),G("ngIf",!i.isMinimal),T(3),G("usedInPrejoinPage",!0),T(1),G("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),T(3),G("ngIf",i.localParticipant))},directives:[Vp,cn,_re,Hs,Ra,ka,Xb,wP,iC,oC,rC,Jb,tC,LP,FP,Hn,lr,gi,Lp,O1,sC,aC,lC],pipes:[si],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:1;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}}"]}),n})(),VP=(()=>{class n{constructor(e){this.layoutService=e,this.languagesAvailable=[],this.langSelected="English"}ngOnInit(){this.subscribeToSubtitles()}ngOnDestroy(){this.subtitlesSubs&&this.subtitlesSubs.unsubscribe()}onLangSelected(e){this.langSelected=e}toggleSubtitles(){this.layoutService.toggleSubtitles()}subscribeToSubtitles(){this.subtitlesSubs=this.layoutService.subtitlesTogglingObs.subscribe(e=>{this.subtitlesEnabled=e})}}return n.\u0275fac=function(e){return new(e||n)(f(ja))},n.\u0275cmp=tt({type:n,selectors:[["ov-subtitles-settings"]],decls:18,vars:12,consts:[["mat-line",""],[3,"checked","disableRipple","change"],["mat-flat-button","",1,"lang-button",3,"matMenuTriggerFor","disabled"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"]],template:function(e,i){if(1&e&&(v(0,"mat-list"),v(1,"mat-list-item"),v(2,"div",0),me(3),xe(4,"translate"),_(),v(5,"mat-slide-toggle",1),Te("change",function(){return i.toggleSubtitles()}),_(),_(),v(6,"mat-list-item"),v(7,"div",0),me(8),xe(9,"translate"),_(),v(10,"button",2),v(11,"span"),me(12),_(),v(13,"mat-icon"),me(14,"expand_more"),_(),_(),v(15,"mat-menu",null,3),ie(17,Jne,3,1,"button",4),_(),_(),_()),2&e){const o=Cr(16);T(3),He(Ie(4,8,"PANEL.SETTINGS.SUBTITLE")),T(2),G("checked",i.subtitlesEnabled)("disableRipple",!0),T(3),An("",Ie(9,10,"PANEL.SETTINGS.LANGUAGE"),":"),T(2),G("matMenuTriggerFor",o)("disabled",!0),T(2),He(i.langSelected),T(5),G("ngForOf",i.languagesAvailable)}},directives:[Xp,tm,pc,WR,Hn,Vs,gi,Tu,No,Bs],pipes:[si],styles:[".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)}"]}),n})(),jP=(()=>{class n{constructor(e,i){this.panelService=e,this.libService=i,this.settingsOptions=Sc,this.selectedOption=Sc.GENERAL,this.showSubtitles=!0}ngOnInit(){this.subscribeToPanelToggling(),this.subscribeToDirectives()}ngOnDestroy(){this.subtitlesSubs&&this.subtitlesSubs.unsubscribe()}close(){this.panelService.togglePanel(zt.SETTINGS)}onSelectionChanged(e){this.selectedOption=e.option.value}subscribeToDirectives(){this.subtitlesSubs=this.libService.subtitlesButtonObs.subscribe(e=>{this.showSubtitles=e})}subscribeToPanelToggling(){this.panelSubscription=this.panelService.panelOpenedObs.subscribe(e=>{e.type===zt.SETTINGS&&e.expand&&(this.selectedOption=e.expand)})}}return n.\u0275fac=function(e){return new(e||n)(f(yo),f(Vt))},n.\u0275cmp=tt({type:n,selectors:[["ov-settings-panel"]],decls:36,vars:27,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,"multiple","selectionChange"],["id","general-opt",1,"option",3,"selected","value"],["mat-list-icon",""],["mat-line",""],["id","video-opt",1,"option",3,"selected","value"],["id","audio-opt",1,"option",3,"selected","value"],["class","option","id","subtitles-opt",3,"selected","value",4,"ngIf"],[1,"item-content"],[4,"ngIf"],["id","subtitles-opt",1,"option",3,"selected","value"]],template:function(e,i){1&e&&(v(0,"div",0),v(1,"div",1),v(2,"h3",2),me(3),xe(4,"translate"),_(),v(5,"button",3),Te("click",function(){return i.close()}),xe(6,"translate"),v(7,"mat-icon"),me(8,"close"),_(),_(),_(),v(9,"div",4),v(10,"div",5),v(11,"mat-selection-list",6),Te("selectionChange",function(r){return i.onSelectionChanged(r)}),v(12,"mat-list-option",7),v(13,"mat-icon",8),me(14,"manage_accounts"),_(),v(15,"div",9),me(16),xe(17,"translate"),_(),_(),v(18,"mat-list-option",10),v(19,"mat-icon",8),me(20,"videocam"),_(),v(21,"div",9),me(22),xe(23,"translate"),_(),_(),v(24,"mat-list-option",11),v(25,"mat-icon",8),me(26,"mic"),_(),v(27,"div",9),me(28),xe(29,"translate"),_(),_(),ie(30,eie,6,5,"mat-list-option",12),_(),_(),v(31,"div",13),ie(32,tie,10,3,"div",14),ie(33,nie,1,0,"ov-video-devices-select",14),ie(34,iie,1,0,"ov-audio-devices-select",14),ie(35,oie,1,0,"ov-subtitles-settings",14),_(),_(),_()),2&e&&(T(3),He(Ie(4,17,"PANEL.SETTINGS.TITLE")),T(2),Qt("matTooltip",Ie(6,19,"PANEL.CLOSE")),T(6),G("multiple",!1),T(1),G("selected",i.selectedOption===i.settingsOptions.GENERAL)("value",i.settingsOptions.GENERAL),T(4),He(Ie(17,21,"PANEL.SETTINGS.GENERAL")),T(2),G("selected",i.selectedOption===i.settingsOptions.VIDEO)("value",i.settingsOptions.VIDEO),T(4),He(Ie(23,23,"PANEL.SETTINGS.VIDEO")),T(2),G("selected",i.selectedOption===i.settingsOptions.AUDIO)("value",i.settingsOptions.AUDIO),T(4),He(Ie(29,25,"PANEL.SETTINGS.AUDIO")),T(2),G("ngIf",i.showSubtitles&&!1),T(2),G("ngIf",i.selectedOption===i.settingsOptions.GENERAL),T(1),G("ngIf",i.selectedOption===i.settingsOptions.VIDEO),T(1),G("ngIf",i.selectedOption===i.settingsOptions.AUDIO),T(1),G("ngIf",i.selectedOption===i.settingsOptions.SUBTITLES&&i.showSubtitles&&!1))},directives:[Hs,ka,Ra,Hn,lr,gi,Wb,VR,em,pc,cn,sC,Xp,tm,iC,aC,lC,VP],pipes:[si],styles:[Nu,".settings-container[_ngcontent-%COMP%]{display:flex;padding:10px}.item-menu[_ngcontent-%COMP%]{padding-right:5px;border-right:1px solid var(--ov-secondary-color);width:200px}.item-content[_ngcontent-%COMP%]{padding:16px;flex-grow:1}.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-light-color)} .mat-list-item-content{padding:5px!important}"]}),n})(),UP=(()=>{class n{constructor(e,i,o,r,s){this.recordingService=e,this.participantService=i,this.libService=o,this.actionService=r,this.cd=s,this.onStartRecordingClicked=new Me,this.onStopRecordingClicked=new Me,this.onDeleteRecordingClicked=new Me,this.recordingStatus=Nn.STOPPED,this.opened=!1,this.recStatusEnum=Nn,this.isSessionCreator=!1,this.recordingAlive=!1,this.recordingsList=[]}ngOnInit(){this.subscribeToRecordingStatus(),this.subscribeToRecordingActivityDirective(),this.isSessionCreator=this.participantService.getMyRole()===Ac.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===Nn.STARTING?e=Nn.STOPPED:this.oldRecordingStatus===Nn.STOPPING&&(e=Nn.STARTED),this.recordingService.updateStatus(e)}startRecording(){this.onStartRecordingClicked.emit(),this.recordingService.updateStatus(Nn.STARTING)}stopRecording(){this.onStopRecordingClicked.emit(),this.recordingService.updateStatus(Nn.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?void 0:e.info)&&(this.recordingStatus!==Nn.FAILED&&(this.oldRecordingStatus=this.recordingStatus),this.recordingStatus=e.info.status,this.recordingAlive=e.info.status===Nn.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(Nn.FAILED),this.recordingError=(null===(i=e.error)||void 0===i?void 0:i.message)||e.message||e)})}}return n.\u0275fac=function(e){return new(e||n)(f(Vu),f(ki),f(Vt),f(hs),f(Jt))},n.\u0275cmp=tt({type:n,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&&(v(0,"mat-expansion-panel",0),Te("opened",function(){return i.panelOpened()})("closed",function(){return i.panelClosed()}),v(1,"mat-expansion-panel-header"),v(2,"mat-list"),v(3,"mat-list-item"),v(4,"div",1),ie(5,rie,2,0,"mat-icon",2),ie(6,sie,2,0,"mat-icon",2),ie(7,aie,2,0,"mat-icon",3),_(),v(8,"h3",4),me(9),xe(10,"translate"),_(),v(11,"p",5),me(12),xe(13,"translate"),_(),v(14,"div",6),v(15,"div",7),v(16,"span"),me(17),xe(18,"uppercase"),_(),_(),_(),_(),_(),_(),ie(19,Aie,9,7,"div",8),_()),2&e&&(G("expanded",i.expanded),T(4),G("ngClass",Bh(16,sk,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)),T(1),G("ngIf",i.recordingStatus!==i.recStatusEnum.FAILED&&i.recordingStatus!==i.recStatusEnum.STARTED),T(1),G("ngIf",i.recordingStatus===i.recStatusEnum.FAILED),T(1),G("ngIf",i.recordingStatus===i.recStatusEnum.STARTED),T(2),He(Ie(10,10,"PANEL.RECORDING.TITLE")),T(3),He(Ie(13,12,"PANEL.RECORDING.SUBTITLE")),T(3),G("ngClass",Bh(21,sk,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)),T(2),He(Ie(18,14,i.recordingStatus)),T(2),G("ngIf",i.opened))},directives:[ZR,XR,Xp,tm,Jp,Xi,as,cn,pc,gi,Hn,Nb,UX,No,em,lr],pipes:[si,_D,yD,kP,p_,vf],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}),n})(),HP=(()=>{class n{constructor(e,i,o){this.panelService=e,this.libService=i,this.cd=o,this.onStartRecordingClicked=new Me,this.onStopRecordingClicked=new Me,this.onDeleteRecordingClicked=new Me,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(zt.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===zt.ACTIVITIES&&e.expand&&(this.expandedPanel=e.expand)})}subscribeToActivitiesPanelDirective(){this.recordingActivitySub=this.libService.recordingActivity.subscribe(e=>{this.showRecordingActivity=e,this.cd.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(f(yo),f(Vt),f(Jt))},n.\u0275cmp=tt({type:n,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&&(v(0,"div",0),v(1,"div",1),v(2,"h3",2),me(3,"Activities"),_(),v(4,"button",3),Te("click",function(){return i.close()}),xe(5,"translate"),v(6,"mat-icon"),me(7,"close"),_(),_(),_(),v(8,"div",4),v(9,"mat-accordion"),ie(10,wie,1,1,"ov-recording-activity",5),_(),_(),_()),2&e&&(T(4),Qt("matTooltip",Ie(5,2,"PANEL.CLOSE")),T(6),G("ngIf",i.showRecordingActivity))},directives:[Hs,ka,Ra,Hn,lr,gi,ZJ,cn,UP],pipes:[si],styles:[Nu,".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}),n})(),cC=(()=>{class n{constructor(e,i,o,r,s,a,l,c,d){this.loggerSrv=e,this.storageSrv=i,this.participantService=o,this.deviceSrv=r,this.openviduService=s,this.actionService=a,this.libService=l,this.tokenService=c,this.translateService=d,this.onJoinButtonClicked=new Me,this.onToolbarLeaveButtonClicked=new Me,this.onToolbarCameraButtonClicked=new Me,this.onToolbarMicrophoneButtonClicked=new Me,this.onToolbarScreenshareButtonClicked=new Me,this.onToolbarFullscreenButtonClicked=new Me,this.onToolbarParticipantsPanelButtonClicked=new Me,this.onToolbarChatPanelButtonClicked=new Me,this.onToolbarActivitiesPanelButtonClicked=new Me,this.onToolbarStartRecordingClicked=new Me,this.onToolbarStopRecordingClicked=new Me,this.onActivitiesPanelStartRecordingClicked=new Me,this.onActivitiesPanelStopRecordingClicked=new Me,this.onActivitiesPanelDeleteRecordingClicked=new Me,this.onActivitiesPanelPlayRecordingClicked=new Me,this.onSessionCreated=new Me,this.onParticipantCreated=new Me,this.showVideoconference=!1,this.participantReady=!1,this.error=!1,this.errorMessage="",this.showPrejoin=!0,this.isSessionInitialized=!1,this.loading=!0,this.log=this.loggerSrv.get("VideoconferenceComponent")}set tokens(e){e&&e.webcam?(this.log.w("Tokens received"),this.tokenService.setWebcamToken(e.webcam),new URL(e.webcam).searchParams.get("edition")?this.openviduService.setOpenViduEdition(Dc.PRO):(this.openviduService.setOpenViduEdition(Dc.CE),this.libService.backgroundEffectsButton.next(!1)),e.screen?this.tokenService.setScreenToken(e.screen):this.log.w("No screen token found. Screenshare feature will be disabled"),this.start()):this.log.w("No tokens received")}ngOnInit(){return ne(this,void 0,void 0,function*(){this.subscribeToVideconferenceDirectives()})}start(){return ne(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.onParticipantCreated.emit(this.participantService.getLocalParticipant()),this.loading=!1})}initwebcamPublisher(){return ne(this,void 0,void 0,function*(){return new Promise((e,i)=>ne(this,void 0,void 0,function*(){try{const o=yield this.openviduService.initDefaultPublisher();o&&(o.once("accessDenied",r=>{this.handlePublisherError(r),e()}),o.once("accessAllowed",()=>ne(this,void 0,void 0,function*(){yield this.handlePublisherSuccess(),this.participantReady=!0,e()})))}catch(o){this.actionService.openDialog(o.name.replace(/_/g," "),o.message,!0),this.log.e(o),i()}}))})}ngOnDestroy(){return ne(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)}_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)}_onSessionCreated(e){this.onSessionCreated.emit(e)}handlePublisherError(e){let i="";return console.log("ERROR!",e),e.name===zs.Ll.DEVICE_ALREADY_IN_USE?(this.log.w("Video device already in use. Disabling video device..."),this.deviceSrv.disableVideoDevices(),this.initwebcamPublisher()):e.name===zs.Ll.DEVICE_ACCESS_DENIED?(i=this.translateService.translate("ERRORS.MEDIA_ACCESS"),this.deviceSrv.disableVideoDevices(),this.deviceSrv.disableAudioDevices(),this.initwebcamPublisher()):(e.name===zs.Ll.NO_INPUT_SOURCE_SET&&(i=this.translateService.translate("ERRORS.DEVICE_NOT_FOUND")),this.actionService.openDialog(e.name.replace(/_/g," "),i,!0),void this.log.e(e.message))}handlePublisherSuccess(){var e,i,o,r,s,a,l,c;return ne(this,void 0,void 0,function*(){if(this.deviceSrv.areEmptyLabels()){if(yield this.deviceSrv.forceInitDevices(),this.deviceSrv.hasAudioDeviceAvailable()){const d=null===(r=null===(o=null===(i=null===(e=this.participantService.getMyCameraPublisher())||void 0===e?void 0:e.stream)||void 0===i?void 0:i.getMediaStream())||void 0===o?void 0:o.getAudioTracks()[0])||void 0===r?void 0:r.label;this.deviceSrv.setMicSelected(d)}if(this.deviceSrv.hasVideoDeviceAvailable()){const d=null===(c=null===(l=null===(a=null===(s=this.participantService.getMyCameraPublisher())||void 0===s?void 0:s.stream)||void 0===a?void 0:a.getMediaStream())||void 0===l?void 0:l.getVideoTracks()[0])||void 0===c?void 0:c.label;this.deviceSrv.setCameraSelected(d)}}})}subscribeToVideconferenceDirectives(){this.prejoinSub=this.libService.prejoin.subscribe(e=>{this.showPrejoin=e}),this.participantNameSub=this.libService.participantName.subscribe(e=>{this.externalParticipantName=e})}}return n.\u0275fac=function(e){return new(e||n)(f(cr),f(ds),f(ki),f(Mc),f(us),f(hs),f(Vt),f(Tc),f(Va))},n.\u0275cmp=tt({type:n,selectors:[["ov-videoconference"]],contentQueries:function(e,i,o){if(1&e&&(Je(o,Foe,5),Je(o,ak,5),Je(o,lk,5),Je(o,ck,5),Je(o,Boe,5),Je(o,dk,5),Je(o,uk,5),Je(o,hk,5),Je(o,fk,5),Je(o,pk,5),Je(o,Voe,5),Je(o,mk,5)),2&e){let r;Oe(r=Re())&&(i.externalToolbar=r.first),Oe(r=Re())&&(i.externalToolbarAdditionalButtons=r.first),Oe(r=Re())&&(i.externalToolbarAdditionalPanelButtons=r.first),Oe(r=Re())&&(i.externalAdditionalPanels=r.first),Oe(r=Re())&&(i.externalPanel=r.first),Oe(r=Re())&&(i.externalChatPanel=r.first),Oe(r=Re())&&(i.externalActivitiesPanel=r.first),Oe(r=Re())&&(i.externalParticipantsPanel=r.first),Oe(r=Re())&&(i.externalParticipantPanelItem=r.first),Oe(r=Re())&&(i.externalParticipantPanelItemElements=r.first),Oe(r=Re())&&(i.externalLayout=r.first),Oe(r=Re())&&(i.externalStream=r.first)}},viewQuery:function(e,i){if(1&e&&(Mt(Die,5,bt),Mt(Mie,5,bt),Mt(Tie,5,bt),Mt(Iie,5,bt),Mt(Oie,5,bt),Mt(rk,5,bt),Mt(Rie,5,bt),Mt(kie,5,bt)),2&e){let o;Oe(o=Re())&&(i.defaultToolbarTemplate=o.first),Oe(o=Re())&&(i.defaultPanelTemplate=o.first),Oe(o=Re())&&(i.defaultChatPanelTemplate=o.first),Oe(o=Re())&&(i.defaultParticipantsPanelTemplate=o.first),Oe(o=Re())&&(i.defaultActivitiesPanelTemplate=o.first),Oe(o=Re())&&(i.defaultParticipantPanelItemTemplate=o.first),Oe(o=Re())&&(i.defaultLayoutTemplate=o.first),Oe(o=Re())&&(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"},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,"onSessionCreated",4,"ngIf"],[3,"onSessionCreated"],["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&&(v(0,"div",0),ie(1,Pie,5,4,"div",1),ie(2,Nie,2,1,"div",2),ie(3,Lie,5,1,"div",1),ie(4,$ie,2,2,"div",3),_(),ie(5,Xie,5,0,"ng-template",null,4,gn),ie(7,coe,13,0,"ng-template",null,5,gn),ie(9,doe,1,0,"ng-template",null,6,gn),ie(11,uoe,1,0,"ng-template",null,7,gn),ie(13,poe,3,0,"ng-template",null,8,gn),ie(15,voe,3,1,"ng-template",null,9,gn),ie(17,boe,3,0,"ng-template",null,10,gn),ie(19,Coe,1,1,"ng-template",null,11,gn)),2&e&&(T(1),G("ngIf",i.loading),T(1),G("ngIf",i.showPrejoin&&i.participantReady&&!i.loading),T(1),G("ngIf",!i.loading&&i.error),T(1),G("ngIf",i.showVideoconference||!i.showPrejoin&&!i.loading&&!i.error))},directives:[cn,UR,BP,gi,Xb,Ms,xP,oC,rC,jP,MP,HP,PP,nC,Jb,tC],pipes:[si],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: 250px}"],data:{animation:[lo("inOutAnimation",[ri(":enter",[Wt({opacity:0}),fi("300ms ease-out",Wt({opacity:1}))])])]}}),n})(),zP=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({}),n})(),bre=(()=>{class n{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingActivityValue=!0}set activitiesPanelRecordingActivity(e){this.recordingActivityValue=e,this.update(this.recordingActivityValue)}set recordingList(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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","activitiesPanelRecordingActivity",""],["ov-activities-panel","recordingActivity",""]],inputs:{activitiesPanelRecordingActivity:"activitiesPanelRecordingActivity",recordingList:"recordingList"}}),n})(),Cre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","participantPanelItemMuteButton",""],["ov-participant-panel-item","muteButton",""]],inputs:{participantPanelItemMuteButton:"participantPanelItemMuteButton",muteButton:"muteButton"}}),n})(),Ere=(()=>{class n{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=null,this.update(null)}update(e){this.libService.recordingsList.getValue()!==e&&this.libService.recordingsList.next(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","recordingActivityRecordingsList",""],["ov-recording-activity","recordingsList",""]],inputs:{recordingActivityRecordingsList:"recordingActivityRecordingsList",recordingsList:"recordingsList"}}),n})(),Sre=(()=>{class n{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingErrorValue=[]}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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","recordingActivityRecordingError",""],["ov-recording-activity","recordingError",""]],inputs:{recordingActivityRecordingError:"recordingActivityRecordingError",recordingError:"recordingError"}}),n})(),Are=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarScreenshareButton",""],["ov-toolbar","screenshareButton",""]],inputs:{toolbarScreenshareButton:"toolbarScreenshareButton",screenshareButton:"screenshareButton"}}),n})(),wre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarRecordingButton",""],["ov-toolbar","recordingButton",""]],inputs:{toolbarRecordingButton:"toolbarRecordingButton",recordingButton:"recordingButton"}}),n})(),xre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarFullscreenButton",""],["ov-toolbar","fullscreenButton",""]],inputs:{toolbarFullscreenButton:"toolbarFullscreenButton",fullscreenButton:"fullscreenButton"}}),n})(),Dre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarBackgroundEffectsButton",""],["ov-toolbar","backgroundEffectsButton",""]],inputs:{toolbarBackgroundEffectsButton:"toolbarBackgroundEffectsButton",backgroundEffectsButton:"backgroundEffectsButton"}}),n})(),Mre=(()=>{class n{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.subtitlesButton.getValue()!==e&&this.libService.subtitlesButton.next(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarCaptionsButton",""],["ov-toolbar","captionsButton",""]],inputs:{toolbarCaptionsButton:"toolbarCaptionsButton",captionsButton:"captionsButton"}}),n})(),Tre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarSettingsButton",""],["ov-toolbar","settingsButton",""]],inputs:{toolbarSettingsButton:"toolbarSettingsButton",settingsButton:"settingsButton"}}),n})(),Ire=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarLeaveButton",""],["ov-toolbar","leaveButton",""]],inputs:{toolbarLeaveButton:"toolbarLeaveButton",leaveButton:"leaveButton"}}),n})(),Ore=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarParticipantsPanelButton",""],["ov-toolbar","participantsPanelButton",""]],inputs:{toolbarParticipantsPanelButton:"toolbarParticipantsPanelButton",participantsPanelButton:"participantsPanelButton"}}),n})(),Rre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarChatPanelButton",""],["ov-toolbar","chatPanelButton",""]],inputs:{toolbarChatPanelButton:"toolbarChatPanelButton",chatPanelButton:"chatPanelButton"}}),n})(),kre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarActivitiesPanelButton",""],["ov-toolbar","activitiesPanelButton",""]],inputs:{toolbarActivitiesPanelButton:"toolbarActivitiesPanelButton",activitiesPanelButton:"activitiesPanelButton"}}),n})(),Pre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarDisplaySessionName",""],["ov-toolbar","displaySessionName",""]],inputs:{toolbarDisplaySessionName:"toolbarDisplaySessionName",displaySessionName:"displaySessionName"}}),n})(),Nre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarDisplayLogo",""],["ov-toolbar","displayLogo",""]],inputs:{toolbarDisplayLogo:"toolbarDisplayLogo",displayLogo:"displayLogo"}}),n})(),Lre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","minimal",""]],inputs:{minimal:"minimal"}}),n})(),Fre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","participantName",""]],inputs:{participantName:"participantName"}}),n})(),Bre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","prejoin",""]],inputs:{prejoin:"prejoin"}}),n})(),Vre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","videoMuted",""]],inputs:{videoMuted:"videoMuted"}}),n})(),jre=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Pe),f(Vt))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","audioMuted",""]],inputs:{audioMuted:"audioMuted"}}),n})(),GP=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({}),n})(),Gre=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({imports:[[LM],z1,nee,LK,YK,OX,Zp,pK,rZ,cZ,ree,CJ,Cb,nJ,gee,JZ,Q1,eK,YW,tR,WX,XJ,PJ]}),n})(),qre=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[Vt,{provide:"OPENVIDU_ANGULAR_CONFIG",useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[hs,eC,{provide:Su,useClass:eC},gre,om,yo,Mc,im,ja,cr,Bu,ki,ds,Tc,us,Vu],imports:[[Hi,W9,b6,C6,S9.forRoot([]),Gre,zP,GP],Hi,zP,GP]}),n})();function Wre(n,t){if(1&n){const e=yt();v(0,"ov-videoconference",1),Te("onJoinButtonClicked",function(){return Ue(e),fe()._onJoinButtonClicked()})("onToolbarLeaveButtonClicked",function(){return Ue(e),fe()._onToolbarLeaveButtonClicked()})("onToolbarCameraButtonClicked",function(){return Ue(e),fe()._onToolbarCameraButtonClicked()})("onToolbarMicrophoneButtonClicked",function(){return Ue(e),fe()._onToolbarMicrophoneButtonClicked()})("onToolbarScreenshareButtonClicked",function(){return Ue(e),fe()._onToolbarScreenshareButtonClicked()})("onToolbarParticipantsPanelButtonClicked",function(){return Ue(e),fe()._onToolbarParticipantsPanelButtonClicked()})("onToolbarChatPanelButtonClicked",function(){return Ue(e),fe()._onToolbarChatPanelButtonClicked()})("onToolbarActivitiesPanelButtonClicked",function(){return Ue(e),fe()._onToolbarActivitiesPanelButtonClicked()})("onToolbarFullscreenButtonClicked",function(){return Ue(e),fe()._onToolbarFullscreenButtonClicked()})("onToolbarStartRecordingClicked",function(){return Ue(e),fe().onStartRecordingClicked("toolbar")})("onToolbarStopRecordingClicked",function(){return Ue(e),fe().onStopRecordingClicked("toolbar")})("onActivitiesPanelStartRecordingClicked",function(){return Ue(e),fe().onStartRecordingClicked("panel")})("onActivitiesPanelStopRecordingClicked",function(){return Ue(e),fe().onStopRecordingClicked("panel")})("onActivitiesPanelDownloadRecordingClicked",function(o){return Ue(e),fe()._onActivitiesDownloadRecordingClicked(o)})("onActivitiesPanelDeleteRecordingClicked",function(o){return Ue(e),fe()._onActivitiesDeleteRecordingClicked(o)})("onSessionCreated",function(o){return Ue(e),fe()._onSessionCreated(o)})("onParticipantCreated",function(o){return Ue(e),fe()._onParticipantCreated(o)}),_()}if(2&n){const e=fe();G("participantName",e._participantName)("tokens",e._tokens)("minimal",e._minimal)("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 $re=(()=>{class n{constructor(e,i){this.host=e,this.openviduService=i,this._minimal=!1,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 Me,this.onToolbarLeaveButtonClicked=new Me,this.onToolbarCameraButtonClicked=new Me,this.onToolbarMicrophoneButtonClicked=new Me,this.onToolbarScreenshareButtonClicked=new Me,this.onToolbarFullscreenButtonClicked=new Me,this.onToolbarParticipantsPanelButtonClicked=new Me,this.onToolbarChatPanelButtonClicked=new Me,this.onToolbarActivitiesPanelButtonClicked=new Me,this.onToolbarStartRecordingClicked=new Me,this.onToolbarStopRecordingClicked=new Me,this.onActivitiesPanelStartRecordingClicked=new Me,this.onActivitiesPanelStopRecordingClicked=new Me,this.onActivitiesPanelDownloadRecordingClicked=new Me,this.onActivitiesPanelDeleteRecordingClicked=new Me,this.onSessionCreated=new Me,this.onParticipantCreated=new Me,this.success=!1,this.host.nativeElement.disconnect=this.disconnect.bind(this)}set minimal(e){this._minimal=this.castToBoolean(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;console.debug("Webcomponent tokens: ",e);try{this._tokens=this.castToJson(e),this.success=!!(null===(i=this._tokens)||void 0===i?void 0:i.webcam)&&!!(null===(o=this._tokens)||void 0===o?void 0:o.screen)}catch(r){"string"==typeof e&&""!==e?(console.debug("Sigle token received."),this._tokens={webcam:e},this.success=!0):(console.error(r),console.error("Parameters received are 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}}}return n.\u0275fac=function(e){return new(e||n)(f(Pe),f(us))},n.\u0275cmp=tt({type:n,selectors:[["ng-component"]],inputs:{minimal:"minimal",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","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","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&&ie(0,Wre,1,25,"ov-videoconference",0),2&e&&G("ngIf",i.success)},directives:[cn,cC,Fre,Lre,Bre,Vre,jre,Are,wre,xre,Dre,Tre,Ire,kre,Rre,Ore,Nre,Pre,Mre,LP,yre,FP,Cre,bre,Ere,Sre],encapsulation:2}),n})();const qP={production:!0};class Yre extends _e{constructor(t=1/0,e=1/0,i=Jy){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;e||(i.push(t),!o&&i.push(r.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let s=0;s<r.length&&!t.closed;s+=i?1:2)t.next(r[s]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){const{_bufferSize:t,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:o}=this,r=(o?1:2)*t;if(t<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 rm={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return rm.schedule(n,0);if(void 0===window.requestAnimationFrame)return rm.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let dC;function ose(n,t,e){let i=e;return function Zre(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((o,r)=>!("*"===o||!function Jre(n,t){if(!dC){const e=Element.prototype;dC=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&dC.call(n,t)}(n,o)||(i=r,0))),i}class sse{constructor(t,e){this.componentFactory=e.get(Xo).resolveComponentFactory(t)}create(t){return new ase(this.componentFactory,t)}}class ase{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Yre(1),this.events=this.eventEmitters.pipe(fo(i=>$i(...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(ut),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=rm.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function ese(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=jt.create({providers:[],parent:this.injector}),i=function ise(n,t){const e=n.childNodes,i=t.map(()=>[]);let o=-1;t.some((r,s)=>"*"===r&&(o=s,!0));for(let r=0,s=e.length;r<s;++r){const a=e[r],l=ose(a,t,o);-1!==l&&i[l].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(Jt),this.implementsOnChanges=function Xre(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(As).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:o})=>t.instance[i].pipe(ze(s=>({name:o,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=rm.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const o=this.unchangedInputs.has(t),r=o?void 0:this.getInputValue(t);this.inputChanges[t]=new bm(r,e,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class lse extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}let dse=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){const e=function cse(n,t){const e=function nse(n,t){return t.get(Xo).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new sse(n,t.injector),o=function tse(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function Qre(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class r extends lse{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.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,d){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=function Kre(n,t,e){if("function"!=typeof CustomEvent){const r=n.createEvent("CustomEvent");return r.initCustomEvent(t,!1,!1,e),r}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:e})}(this.ownerDocument,a.name,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}($re,{injector:this.injector});customElements.define("openvidu-webcomponent",e)}}return n.\u0275fac=function(e){return new(e||n)(se(jt))},n.\u0275mod=ot({type:n}),n.\u0275inj=it({providers:[{provide:sf,useValue:"/"},cC],imports:[[Hi,ND,LM,qre.forRoot(qP)]]}),n})();qP.production&&function n4(){if(Xw)throw new Error("Cannot enable prod mode after platform setup.");Zw=!1}(),Vz().bootstrapModule(dse).catch(n=>console.error(n))},9272:ke=>{"use strict";ke.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:ke=>{"use strict";ke.exports=[]},9469:ke=>{"use strict";ke.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.7","uuid":"8.3.2","wolfy87-eventemitter":"5.2.9","events":"3.3.0","inherits":"2.0.4"},"description":"OpenVidu Browser","devDependencies":{"@types/node":"18.0.0","@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.14.1","tsify":"5.0.4","tslint":"6.1.3","typedoc":"0.22.17","typescript":"4.5.4"},"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.23.0"}')}},ke=>{ke(ke.s=7682)}]);
"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)}]);