From 9a389352ee12fe15875f9419500cc4e40013e499 Mon Sep 17 00:00:00 2001 From: tmushayahama Date: Thu, 25 May 2023 12:27:53 -0700 Subject: [PATCH] Fix: production banner --- src/environments/environment.prod.ts | 2 +- src/environments/environment.ts | 2 +- workbenches/noctua-visual-pathway-editor/public/inject.tmpl | 2 +- .../{main.f77a1bd22a253787.js => main.b1160b305fa5a796.js} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename workbenches/noctua-visual-pathway-editor/public/{main.f77a1bd22a253787.js => main.b1160b305fa5a796.js} (99%) diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index a735509..84c3987 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -45,7 +45,7 @@ const globalKnownRelations = typeof global_known_relations !== 'undefined' export const environment = { production: true, - isDev: true, + isDev: false, isBeta: false, isGraph: true, spaqrlApiUrl: 'http://rdf-internal.berkeleybop.io/blazegraph/sparql', diff --git a/src/environments/environment.ts b/src/environments/environment.ts index be6cbbd..f9f955e 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -45,7 +45,7 @@ const globalKnownRelations = typeof global_known_relations !== 'undefined' export const environment = { production: false, - isDev: true, + isDev: false, isBeta: false, isGraph: true, spaqrlApiUrl: 'http://rdf-internal.berkeleybop.io/blazegraph/sparql', diff --git a/workbenches/noctua-visual-pathway-editor/public/inject.tmpl b/workbenches/noctua-visual-pathway-editor/public/inject.tmpl index 6608b83..76d96ac 100644 --- a/workbenches/noctua-visual-pathway-editor/public/inject.tmpl +++ b/workbenches/noctua-visual-pathway-editor/public/inject.tmpl @@ -214,6 +214,6 @@ - + \ No newline at end of file diff --git a/workbenches/noctua-visual-pathway-editor/public/main.f77a1bd22a253787.js b/workbenches/noctua-visual-pathway-editor/public/main.b1160b305fa5a796.js similarity index 99% rename from workbenches/noctua-visual-pathway-editor/public/main.f77a1bd22a253787.js rename to workbenches/noctua-visual-pathway-editor/public/main.b1160b305fa5a796.js index bf19b5e..d2c534e 100644 --- a/workbenches/noctua-visual-pathway-editor/public/main.f77a1bd22a253787.js +++ b/workbenches/noctua-visual-pathway-editor/public/main.b1160b305fa5a796.js @@ -1 +1 @@ -var dgn=Object.defineProperty,ugn=Object.defineProperties,hgn=Object.getOwnPropertyDescriptors,Lve=Object.getOwnPropertySymbols,pgn=Object.prototype.hasOwnProperty,fgn=Object.prototype.propertyIsEnumerable,kve=(R,F,v)=>F in R?dgn(R,F,{enumerable:!0,configurable:!0,writable:!0,value:v}):R[F]=v,X3=(R,F)=>{for(var v in F||(F={}))pgn.call(F,v)&&kve(R,v,F[v]);if(Lve)for(var v of Lve(F))fgn.call(F,v)&&kve(R,v,F[v]);return R},mj=(R,F)=>ugn(R,hgn(F));(self.webpackChunknoctua=self.webpackChunknoctua||[]).push([[179],{66713:(R,F,v)=>{var y=v(68680);function m(){this.mapDirect=new Map,this.mapInverse=new Map}function A(_){for(var x of(this.trie=new y,this.curieMap=_,_.values()))this.trie.insert(x)}m.prototype.set=function(_,x){this.mapDirect.set(_,x),this.mapInverse.set(x,_)},m.prototype.get=function(_){return this.mapDirect.get(_)},m.prototype.getInverse=function(_){return this.mapInverse.get(_)},m.prototype.has=function(_){return this.mapDirect.has(_)},m.prototype.keys=function(){return this.mapDirect.keys()},m.prototype.values=function(){return this.mapDirect.values()},A.prototype.getPrefixes=function(){return this.curieMap.keys()},A.prototype.getExpansion=function(_){return this.curieMap.get(_)},A.prototype.getCurie=function(_){var x=this.trie.getMatchingPrefix(_);return x&&""!=x?this.curieMap.getInverse(x)+":"+_.substring(x.length,_.length):null},A.prototype.getIri=function(_){if(!_)return null;var x=_.split(":");if(0==x.length)return null;var S=x[0];return this.curieMap.has(S)?this.curieMap.get(S)+_.substring(_.indexOf(":")+1):null},A.prototype.getCurieMap=function(){return this.curieMap},R.exports.q=function h(_){try{var x=_["@context"],S=new m;return Object.keys(x).forEach(b=>{S.set(b,x[b])}),S}catch(b){return null}},R.exports.T=A},38437:R=>{function F(v){this.value=v,this.children=new Map,this.leaf=!1}F.prototype.getChildren=function(){return this.children},F.prototype.getValue=function(){return this.value},F.prototype.setIsLeaf=function(v){this.leaf=v},F.prototype.isLeaf=function(){return this.leaf},R.exports=F},68680:(R,F,v)=>{var y=v(38437);function m(){this.root=new y(String.fromCharCode(0))}m.prototype.insert=function(A){for(var h=A.length,_=this.root,x=0;x{"use strict";var y={};v.r(y),v.d(y,{forceCenter:()=>YUe,forceCollide:()=>gie,forceLink:()=>bie,forceManyBody:()=>Tie,forceRadial:()=>Mje,forceSimulation:()=>Eie,forceX:()=>Oje,forceY:()=>Sje});var m={};v.r(m),v.d(m,{dispatch:()=>Nne});var A={};v.r(A),v.d(A,{interval:()=>Eje,now:()=>Z6,timeout:()=>RR,timer:()=>IR,timerFlush:()=>Fne});var h={};v.r(h),v.d(h,{ellipseWithEllipse:()=>_1e,ellipseWithLine:()=>FH,exists:()=>m1e,lineWithLine:()=>Ym,pathWithEllipse:()=>S1e,pathWithLine:()=>O1e,pathWithPath:()=>E1e,pathWithPolygon:()=>PE,pathWithPolyline:()=>GH,pathWithRect:()=>P1e,polygonWithEllipse:()=>SE,polygonWithLine:()=>BH,polygonWithPolygon:()=>M1e,polygonWithPolyline:()=>w1e,polygonWithRect:()=>y1e,polylineWithEllipse:()=>VH,polylineWithLine:()=>OE,polylineWithPolyline:()=>x1e,polylineWithRect:()=>b1e,rectWithEllipse:()=>C1e,rectWithLine:()=>v1e,rectWithRect:()=>HH});var _={};v.r(_),v.d(_,{Curve:()=>os,Ellipse:()=>J2,Line:()=>pr,Path:()=>Ur,Point:()=>an,Polygon:()=>Rd,Polyline:()=>Is,Rect:()=>rr,bezier:()=>Hpt,ellipse:()=>Lpt,intersection:()=>Bpt,line:()=>Vm,normalizeAngle:()=>ep,point:()=>gb,random:()=>EH,rect:()=>Rpt,scale:()=>Ppt,snapToGrid:()=>Hm,toDeg:()=>CE,toRad:()=>Nd,types:()=>la});var x={};v.r(x),v.d(x,{absolute:()=>c3t,bottom:()=>f3t,ellipse:()=>m3t,ellipseSpread:()=>g3t,fn:()=>l3t,left:()=>u3t,line:()=>d3t,right:()=>h3t,top:()=>p3t});var S={};v.r(S),v.d(S,{bottom:()=>x3t,inside:()=>O3t,insideOriented:()=>M3t,left:()=>v3t,manual:()=>_3t,outside:()=>w3t,outsideOriented:()=>y3t,radial:()=>S3t,radialOriented:()=>P3t,right:()=>C3t,top:()=>b3t});var b={};v.r(b),v.d(b,{Circle:()=>tV,Ellipse:()=>k3t,Generic:()=>es,Image:()=>R3t,Path:()=>c2e,Polygon:()=>I3t,Polyline:()=>N3t,Rect:()=>A3t,Rhombus:()=>z3t,Text:()=>L3t,TextBlock:()=>F3t,TextBlockView:()=>H3t,TextView:()=>D3t});var O={};v.r(O),v.d(O,{BorderedImage:()=>q3t,Circle:()=>B3t,Cylinder:()=>K3t,DoubleLink:()=>ift,Ellipse:()=>G3t,EmbeddedImage:()=>X3t,HeaderedRectangle:()=>Q3t,Image:()=>W3t,InscribedImage:()=>$3t,Link:()=>nft,Path:()=>Y3t,Polygon:()=>U3t,Polyline:()=>j3t,Rectangle:()=>V3t,ShadowLink:()=>rft,TextBlock:()=>tft});var T={};v.r(T),v.d(T,{Atomic:()=>oft,Coupled:()=>aft,Link:()=>l2e,Model:()=>iV});var L={};v.r(L),v.d(L,{And:()=>hft,Gate:()=>NE,Gate11:()=>oV,Gate21:()=>jm,IO:()=>rV,Input:()=>sft,Nand:()=>fft,Nor:()=>pft,Not:()=>dft,Or:()=>uft,Output:()=>cft,Repeater:()=>lft,Wire:()=>_ft,Xnor:()=>mft,Xor:()=>gft});var D={};v.r(D),v.d(D,{BishopBlack:()=>Oft,BishopWhite:()=>Mft,KingBlack:()=>Cft,KingWhite:()=>vft,KnightBlack:()=>Pft,KnightWhite:()=>Sft,PawnBlack:()=>Tft,PawnWhite:()=>Eft,QueenBlack:()=>xft,QueenWhite:()=>bft,RookBlack:()=>wft,RookWhite:()=>yft});var Y={};v.r(Y),v.d(Y,{Attribute:()=>wb,Derived:()=>kft,Entity:()=>d2e,ISA:()=>Rft,IdentifyingRelationship:()=>Dft,Key:()=>Ift,Line:()=>zft,Multivalued:()=>Lft,Normal:()=>Nft,Relationship:()=>u2e,WeakEntity:()=>Aft});var X={};v.r(X),v.d(X,{Arrow:()=>Bft,EndState:()=>Vft,StartState:()=>Hft,State:()=>Fft});var k={};v.r(k),v.d(k,{Arrow:()=>Yft,Member:()=>Gft});var l={};v.r(l),v.d(l,{Link:()=>qft,Place:()=>Uft,PlaceView:()=>jft,Transition:()=>Wft});var J={};v.r(J),v.d(J,{Abstract:()=>Xft,AbstractView:()=>$ft,Aggregation:()=>e4t,Association:()=>n4t,Class:()=>aV,ClassView:()=>sV,Composition:()=>t4t,EndState:()=>o4t,Generalization:()=>Zft,Implementation:()=>Jft,Interface:()=>Qft,InterfaceView:()=>Kft,StartState:()=>r4t,State:()=>i4t,Transition:()=>a4t});var ne={};v.r(ne),v.d(ne,{basic:()=>b,chess:()=>D,devs:()=>T,erd:()=>Y,fsa:()=>X,logic:()=>L,org:()=>k,pn:()=>l,standard:()=>O,uml:()=>J});var ve={};v.r(ve),v.d(ve,{manhattan:()=>CV,metro:()=>Y4t,normal:()=>O4t,oneSide:()=>S4t,orthogonal:()=>gV});var me={};v.r(me),v.d(me,{curve:()=>xV,jumpover:()=>Z4t,normal:()=>J4t,rounded:()=>egt,smooth:()=>tgt});var Ee={};v.r(Ee),v.d(Ee,{addClass:()=>mgt,mask:()=>fgt,opacity:()=>ggt,stroke:()=>hgt});var Le={};v.r(Le),v.d(Le,{connectionClosest:()=>U2e,connectionLength:()=>vgt,connectionPerpendicular:()=>xgt,connectionRatio:()=>_gt,resolveRef:()=>Eb});var q={};v.r(q),v.d(q,{anchor:()=>Pgt,bbox:()=>Egt,boundary:()=>Agt,rectangle:()=>Tgt});var Se={};function ue(t){return"function"==typeof t}function De(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}v.r(Se),v.d(Se,{bottom:()=>Rgt,bottomLeft:()=>Bgt,bottomRight:()=>Ggt,center:()=>Igt,left:()=>zgt,midSide:()=>Ugt,modelCenter:()=>jgt,perpendicular:()=>Ygt,right:()=>Fgt,top:()=>Ngt,topLeft:()=>Hgt,topRight:()=>Vgt});const ke=De(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function xe(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class Me{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(ue(i))try{i()}catch(o){n=o instanceof ke?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{je(o)}catch(a){n=null!=n?n:[],a instanceof ke?n=[...n,...a.errors]:n.push(a)}}if(n)throw new ke(n)}}add(n){var e;if(n&&n!==this)if(this.closed)je(n);else{if(n instanceof Me){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&xe(e,n)}remove(n){const{_finalizers:e}=this;e&&xe(e,n),n instanceof Me&&n._removeParent(this)}}Me.EMPTY=(()=>{const t=new Me;return t.closed=!0,t})();const Fe=Me.EMPTY;function nt(t){return t instanceof Me||t&&"closed"in t&&ue(t.remove)&&ue(t.add)&&ue(t.unsubscribe)}function je(t){ue(t)?t():t.unsubscribe()}const qe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},st={setTimeout(t,n,...e){const{delegate:i}=st;return(null==i?void 0:i.setTimeout)?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=st;return((null==n?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Ct(t){st.setTimeout(()=>{const{onUnhandledError:n}=qe;if(!n)throw t;n(t)})}function pt(){}const bt=Pt("C",void 0,void 0);function Pt(t,n,e){return{kind:t,value:n,error:e}}let ut=null;function Lt(t){if(qe.useDeprecatedSynchronousErrorHandling){const n=!ut;if(n&&(ut={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=ut;if(ut=null,e)throw i}}else t()}class s extends Me{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,nt(n)&&n.add(this)):this.destination=te}static create(n,e,i){return new P(n,e,i)}next(n){this.isStopped?le(function dt(t){return Pt("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?le(function zt(t){return Pt("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?le(bt,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const d=Function.prototype.bind;function p(t,n){return d.call(t,n)}class g{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){C(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){C(i)}else C(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){C(e)}}}class P extends s{constructor(n,e,i){let r;if(super(),ue(n)||!n)r={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let o;this&&qe.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&p(n.next,o),error:n.error&&p(n.error,o),complete:n.complete&&p(n.complete,o)}):r=n}this.destination=new g(r)}}function C(t){qe.useDeprecatedSynchronousErrorHandling?function Dt(t){qe.useDeprecatedSynchronousErrorHandling&&ut&&(ut.errorThrown=!0,ut.error=t)}(t):Ct(t)}function le(t,n){const{onStoppedNotification:e}=qe;e&&st.setTimeout(()=>e(t,n))}const te={closed:!0,next:pt,error:function H(t){throw t},complete:pt},ce="function"==typeof Symbol&&Symbol.observable||"@@observable";function Te(t){return t}let At=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function M(t){return t&&t instanceof s||function li(t){return t&&ue(t.next)&&ue(t.error)&&ue(t.complete)}(t)&&nt(t)}(e)?e:new P(e,i,r);return Lt(()=>{const{operator:a,source:c}=this;o.add(a?a.call(o,c):c?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=wn(i))((r,o)=>{const a=new P({next:c=>{try{e(c)}catch(u){o(u),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[ce](){return this}pipe(...e){return function Et(t){return 0===t.length?Te:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=wn(e))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function wn(t){var n;return null!==(n=null!=t?t:qe.Promise)&&void 0!==n?n:Promise}const I=De(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let z=(()=>{class t extends At{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new ie(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new I}next(e){Lt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Lt(()=>{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(){Lt(()=>{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:r,observers:o}=this;return i||r?Fe:(this.currentObservers=null,o.push(e),new Me(()=>{this.currentObservers=null,xe(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new At;return e.source=this,e}}return t.create=(n,e)=>new ie(n,e),t})();class ie extends z{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:Fe}}function se(t){return ue(null==t?void 0:t.lift)}function Ce(t){return n=>{if(se(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Be(t,n,e,i,r){return new et(t,n,e,i,r)}class et extends s{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(c){try{e(c)}catch(u){n.error(u)}}:super._next,this._error=r?function(c){try{r(c)}catch(u){n.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Qe(t,n){return Ce((e,i)=>{let r=0;e.subscribe(Be(i,o=>{i.next(t.call(n,o,r++))}))})}function or(t){return this instanceof or?(this.v=t,this):new or(t)}function Fi(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(B){i[B]&&(r[B]=function(Z){return new Promise(function(ee,be){o.push([B,Z,ee,be])>1||c(B,Z)})})}function c(B,Z){try{!function u(B){B.value instanceof or?Promise.resolve(B.value.v).then(f,w):E(o[0][2],B)}(i[B](Z))}catch(ee){E(o[0][3],ee)}}function f(B){c("next",B)}function w(B){c("throw",B)}function E(B,Z){B(Z),o.shift(),o.length&&c(o[0][0],o[0][1])}}function ii(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Jn(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(c,u){!function r(o,a,c,u){Promise.resolve(u).then(function(f){o({value:f,done:c})},a)}(c,u,(a=t[o](a)).done,a.value)})}}}const Bo=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Ba(t){return ue(null==t?void 0:t.then)}function Go(t){return ue(t[ce])}function Jr(t){return Symbol.asyncIterator&&ue(null==t?void 0:t[Symbol.asyncIterator])}function Ca(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const da=function Wa(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function v2(t){return ue(null==t?void 0:t[da])}function C2(t){return Fi(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield or(e.read());if(r)return yield or(void 0);yield yield or(i)}}finally{e.releaseLock()}})}function fc(t){return ue(null==t?void 0:t.getReader)}function jr(t){if(t instanceof At)return t;if(null!=t){if(Go(t))return function Dc(t){return new At(n=>{const e=t[ce]();if(ue(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Bo(t))return function cs(t){return new At(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Ct)})}(t);if(Jr(t))return mc(t);if(v2(t))return function vl(t){return new At(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(fc(t))return function _c(t){return mc(C2(t))}(t)}throw Ca(t)}function mc(t){return new At(n=>{(function ho(t,n){var e,i,r,o;return function cn(t,n,e,i){return new(e||(e=Promise))(function(o,a){function c(w){try{f(i.next(w))}catch(E){a(E)}}function u(w){try{f(i.throw(w))}catch(E){a(E)}}function f(w){w.done?o(w.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(w.value).then(c,u)}f((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=ii(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function na(t,n,e,i=0,r=!1){const o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function ba(t,n,e=1/0){return ue(n)?ba((i,r)=>Qe((o,a)=>n(i,o,r,a))(jr(t(i,r))),e):("number"==typeof n&&(e=n),Ce((i,r)=>function b2(t,n,e,i,r,o,a,c){const u=[];let f=0,w=0,E=!1;const B=()=>{E&&!u.length&&!f&&n.complete()},Z=be=>f{o&&n.next(be),f++;let _e=!1;jr(e(be,w++)).subscribe(Be(n,Pe=>{null==r||r(Pe),o?Z(Pe):n.next(Pe)},()=>{_e=!0},void 0,()=>{if(_e)try{for(f--;u.length&&fee(Pe)):ee(Pe)}B()}catch(Pe){n.error(Pe)}}))};return t.subscribe(Be(n,Z,()=>{E=!0,B()})),()=>{null==c||c()}}(i,r,t,e)))}function p1(t=1/0){return ba(Te,t)}const ls=new At(t=>t.complete());function g1(t){return t&&ue(t.schedule)}function m1(t){return t[t.length-1]}function Yl(t){return ue(m1(t))?t.pop():void 0}function qa(t){return g1(m1(t))?t.pop():void 0}function vc(t,n=0){return Ce((e,i)=>{e.subscribe(Be(i,r=>na(i,t,()=>i.next(r),n),()=>na(i,t,()=>i.complete(),n),r=>na(i,t,()=>i.error(r),n)))})}function Cl(t,n=0){return Ce((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function x2(t,n){if(!t)throw new Error("Iterable cannot be null");return new At(e=>{na(e,n,()=>{const i=t[Symbol.asyncIterator]();na(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Jo(t,n){return n?function _1(t,n){if(null!=t){if(Go(t))return function bl(t,n){return jr(t).pipe(Cl(n),vc(n))}(t,n);if(Bo(t))return function Hs(t,n){return new At(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(Ba(t))return function Gc(t,n){return jr(t).pipe(Cl(n),vc(n))}(t,n);if(Jr(t))return x2(t,n);if(v2(t))return function Cc(t,n){return new At(e=>{let i;return na(e,n,()=>{i=t[da](),na(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>ue(null==i?void 0:i.return)&&i.return()})}(t,n);if(fc(t))return function bc(t,n){return x2(C2(t),n)}(t,n)}throw Ca(t)}(t,n):jr(t)}function So(...t){const n=qa(t),e=function Fs(t,n){return"number"==typeof m1(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?jr(i[0]):p1(e)(Jo(i,n)):ls}function Po(t){return t<=0?()=>ls:Ce((n,e)=>{let i=0;n.subscribe(Be(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function Yc(t={}){const{connector:n=(()=>new z),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a=null,c=null,u=null,f=0,w=!1,E=!1;const B=()=>{null==c||c.unsubscribe(),c=null},Z=()=>{B(),a=u=null,w=E=!1},ee=()=>{const be=a;Z(),null==be||be.unsubscribe()};return Ce((be,_e)=>{f++,!E&&!w&&B();const Pe=u=null!=u?u:n();_e.add(()=>{f--,0===f&&!E&&!w&&(c=G1(ee,r))}),Pe.subscribe(_e),a||(a=new P({next:Ie=>Pe.next(Ie),error:Ie=>{E=!0,B(),c=G1(Z,e,Ie),Pe.error(Ie)},complete:()=>{w=!0,B(),c=G1(Z,i),Pe.complete()}}),Jo(be).subscribe(a))})(o)}}function G1(t,n,...e){return!0===n?(t(),null):!1===n?null:n(...e).pipe(Po(1)).subscribe(()=>t())}function Lo(t){for(let n in t)if(t[n]===Lo)return n;throw Error("Could not find renamed property on target object.")}function y2(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Yo(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Yo).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function cd(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const hu=Lo({__forward_ref__:Lo});function oo(t){return t.__forward_ref__=oo,t.toString=function(){return Yo(this())},t}function po(t){return pu(t)?t():t}function pu(t){return"function"==typeof t&&t.hasOwnProperty(hu)&&t.__forward_ref__===oo}class ye extends Error{constructor(n,e){super(function Ae(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function ze(t){return"string"==typeof t?t:null==t?"":String(t)}function Ke(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ze(t)}function pn(t,n){const e=n?` in ${n}`:"";throw new ye(-201,`No provider for ${Ke(t)} found${e}`)}function Xe(t,n){null==t&&function Ze(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function yt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Zt(t){return{providers:t.providers||[],imports:t.imports||[]}}function yn(t){return Fn(t,qo)||Fn(t,no)}function Fn(t,n){return t.hasOwnProperty(n)?t[n]:null}function vr(t){return t&&(t.hasOwnProperty(Ra)||t.hasOwnProperty(wr))?t[Ra]:null}const qo=Lo({\u0275prov:Lo}),Ra=Lo({\u0275inj:Lo}),no=Lo({ngInjectableDef:Lo}),wr=Lo({ngInjectorDef:Lo});var xi=(()=>((xi=xi||{})[xi.Default=0]="Default",xi[xi.Host=1]="Host",xi[xi.Self=2]="Self",xi[xi.SkipSelf=4]="SkipSelf",xi[xi.Optional=8]="Optional",xi))();let Ps;function ia(t){const n=Ps;return Ps=t,n}function v1(t,n,e){const i=yn(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&xi.Optional?null:void 0!==n?n:void pn(Yo(t),"Injector")}function ys(t){return{toString:t}.toString()}var Vs=(()=>((Vs=Vs||{})[Vs.OnPush=0]="OnPush",Vs[Vs.Default=1]="Default",Vs))(),_s=(()=>{return(t=_s||(_s={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",_s;var t})();const Bs="undefined"!=typeof globalThis&&globalThis,b1="undefined"!=typeof window&&window,Ul="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,$o=Bs||"undefined"!=typeof global&&global||b1||Ul,$s={},xa=[],ha=Lo({\u0275cmp:Lo}),ws=Lo({\u0275dir:Lo}),ic=Lo({\u0275pipe:Lo}),Ao=Lo({\u0275mod:Lo}),Jc=Lo({\u0275fac:Lo}),w2=Lo({__NG_ELEMENT_ID__:Lo});let a0=0;function En(t){return ys(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Vs.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||xa,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||_s.Emulated,id:"c",styles:t.styles||xa,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,o=t.features,a=t.pipes;return i.id+=a0++,i.inputs=xc(t.inputs,e),i.outputs=xc(t.outputs),o&&o.forEach(c=>c(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(fu):null,i.pipeDefs=a?()=>("function"==typeof a?a():a).map(M2):null,i})}function vs(t,n,e){const i=t.\u0275cmp;i.directiveDefs=()=>n.map(fu),i.pipeDefs=()=>e.map(M2)}function fu(t){return ds(t)||function jl(t){return t[ws]||null}(t)}function M2(t){return function kt(t){return t[ic]||null}(t)}const Lc={};function ei(t){return ys(()=>{const n={type:t.type,bootstrap:t.bootstrap||xa,declarations:t.declarations||xa,imports:t.imports||xa,exports:t.exports||xa,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Lc[t.id]=t.type),n})}function xc(t,n){if(null==t)return $s;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const nn=En;function Ga(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ds(t){return t[ha]||null}function qt(t,n){const e=t[Ao]||null;if(!e&&!0===n)throw new Error(`Type ${Yo(t)} does not have '\u0275mod' property.`);return e}function Sr(t){return Array.isArray(t)&&"object"==typeof t[1]}function io(t){return Array.isArray(t)&&!0===t[1]}function ya(t){return 0!=(8&t.flags)}function xr(t){return 2==(2&t.flags)}function as(t){return 1==(1&t.flags)}function Xa(t){return null!==t.template}function kc(t){return 0!=(512&t[2])}function ih(t,n){return t.hasOwnProperty(Jc)?t[Jc]:null}class K4{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function $r(){return Z3}function Z3(t){return t.type.prototype.ngOnChanges&&(t.setInput=gp),l0}function l0(){const t=mp(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===$s)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function gp(t,n,e,i){const r=mp(t)||function u0(t,n){return t[d0]=n}(t,{previous:$s,current:null}),o=r.current||(r.current={}),a=r.previous,c=this.declaredInputs[e],u=a[c];o[c]=new K4(u&&u.currentValue,n,a===$s),t[i]=n}$r.ngInherit=!0;const d0="__ngSimpleChanges__";function mp(t){return t[d0]||null}let St;function f0(){return void 0!==St?St:"undefined"!=typeof document?document:void 0}function Hr(t){return!!t.listen}const f5={createRenderer:(t,n)=>f0()};function Gs(t){for(;Array.isArray(t);)t=t[0];return t}function J3(t,n){return Gs(n[t])}function j1(t,n){return Gs(n[t.index])}function eg(t,n){return t.data[n]}function Wl(t,n){return t[n]}function ql(t,n){const e=n[t];return Sr(e)?e:e[0]}function g5(t){return 4==(4&t[2])}function tg(t){return 128==(128&t[2])}function gu(t,n){return null==n?null:t[n]}function ud(t){t[18]=0}function ng(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const to={lFrame:cg(null),bindingsEnabled:!0};function _5(){return to.bindingsEnabled}function Xn(){return to.lFrame.lView}function ra(){return to.lFrame.tView}function Ut(t){return to.lFrame.contextLView=t,t[8]}function Qs(){let t=rg();for(;null!==t&&64===t.type;)t=t.parent;return t}function rg(){return to.lFrame.currentTNode}function hd(t,n){const e=to.lFrame;e.currentTNode=t,e.isParent=n}function og(){return to.lFrame.isParent}function vp(){to.lFrame.isParent=!1}function yl(){const t=to.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function y1(){return to.lFrame.bindingIndex++}function Ys(t){const n=to.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function pd(t,n){const e=to.lFrame;e.bindingIndex=e.bindingRootIndex=t,fd(n)}function fd(t){to.lFrame.currentDirectiveIndex=t}function nf(t){const n=to.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function C5(){return to.lFrame.currentQueryIndex}function m0(t){to.lFrame.currentQueryIndex=t}function l7(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function sg(t,n,e){if(e&xi.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&xi.Host||(r=l7(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;n=r,t=o}const i=to.lFrame=rf();return i.currentTNode=n,i.lView=t,!0}function rc(t){const n=rf(),e=t[1];to.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function rf(){const t=to.lFrame,n=null===t?null:t.child;return null===n?cg(t):n}function cg(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function P2(){const t=to.lFrame;return to.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const gd=P2;function oh(){const t=P2();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function $a(){return to.lFrame.selectedIndex}function md(t){to.lFrame.selectedIndex=t}function Us(){const t=to.lFrame;return eg(t.tView,t.selectedIndex)}function ua(){to.lFrame.currentNamespace="svg"}function oc(){!function _0(){to.lFrame.currentNamespace=null}()}function af(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[u]<0&&(t[18]+=65536),(c>11>16&&(3&t[2])===n){t[2]+=2048;try{o.call(c)}finally{}}}else try{o.call(c)}finally{}}class re{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ta(t,n,e){const i=Hr(t);let r=0;for(;rn){a=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let y5=!0;function cf(t){const n=y5;return y5=t,n}let GA=0;function ch(t,n){const e=h7(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,M5(i.data,t),M5(n,null),M5(i.blueprint,null));const r=O5(t,n),o=t.injectorIndex;if(Yx(r)){const a=wp(r),c=C0(r,n),u=c[1].data;for(let f=0;f<8;f++)n[o+f]=c[a+f]|u[a+f]}return n[o+8]=r,o}function M5(t,n){t.push(0,0,0,0,0,0,0,0,n)}function h7(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function O5(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){const o=r[1],a=o.type;if(i=2===a?o.declTNode:1===a?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function w1(t,n,e){!function YA(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(w2)&&(i=e[w2]),null==i&&(i=e[w2]=GA++);const r=255&i;n.data[t+(r>>5)]|=1<=0?255&n:T2:n}(e);if("function"==typeof o){if(!sg(n,t,i))return i&xi.Host?lg(r,e,i):S5(n,e,i,r);try{const a=o(i);if(null!=a||i&xi.Optional)return a;pn(e)}finally{gd()}}else if("number"==typeof o){let a=null,c=h7(t,n),u=-1,f=i&xi.Host?n[16][6]:null;for((-1===c||i&xi.SkipSelf)&&(u=-1===c?O5(t,n):n[c+8],-1!==u&&E5(i,!1)?(a=n[1],c=wp(u),n=C0(u,n)):c=-1);-1!==c;){const w=n[1];if(g7(o,c,w.data)){const E=b0(c,n,e,a,i,f);if(E!==f7)return E}u=n[c+8],-1!==u&&E5(i,n[1].data[c+8]===f)&&g7(o,c,n)?(a=w,c=wp(u),n=C0(u,n)):c=-1}}}return S5(n,e,i,r)}const f7={};function T2(){return new Mp(Qs(),Xn())}function b0(t,n,e,i,r,o){const a=n[1],c=a.data[t+8],w=lf(c,a,e,null==i?xr(c)&&y5:i!=a&&0!=(3&c.type),r&xi.Host&&o===c);return null!==w?df(n,a,w,c):f7}function lf(t,n,e,i,r){const o=t.providerIndexes,a=n.data,c=1048575&o,u=t.directiveStart,w=o>>20,B=r?c+w:t.directiveEnd;for(let Z=i?c:c+w;Z=u&&ee.type===e)return Z}if(r){const Z=a[u];if(Z&&Xa(Z)&&Z.type===e)return u}return null}function df(t,n,e,i){let r=t[e];const o=n.data;if(function we(t){return t instanceof re}(r)){const a=r;a.resolving&&function ct(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new ye(-200,`Circular dependency in DI detected for ${t}${e}`)}(Ke(o[e]));const c=cf(a.canSeeViewProviders);a.resolving=!0;const u=a.injectImpl?ia(a.injectImpl):null;sg(t,i,xi.Default);try{r=t[e]=a.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function x5(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const a=Z3(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,a)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==u&&ia(u),cf(c),a.resolving=!1,gd()}}return r}function g7(t,n,e){return!!(e[n+(t>>5)]&1<{const n=t.prototype.constructor,e=n[Jc]||dg(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Jc]||dg(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function dg(t){return pu(t)?()=>{const n=dg(po(t));return n&&n()}:ih(t)}function Ts(t){return function UA(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{const i=function ug(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const a=new r(...o);return c.annotation=a,c;function c(u,f,w){const E=u.hasOwnProperty(A2)?u[A2]:Object.defineProperty(u,A2,{value:[]})[A2];for(;E.length<=w;)E.push(null);return(E[w]=E[w]||[]).push(a),u}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class jn{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=yt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ux=new jn("AnalyzeForEntryComponents");function wl(t,n){void 0===n&&(n=t);for(let e=0;eArray.isArray(e)?X1(e,n):n(e))}function Wx(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function pg(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ff(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function A5(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function gf(t,n){const e=Sp(t,n);if(e>=0)return t[1|e]}function Sp(t,n){return function Kx(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<({token:t})),-1),Ol=vf(hf("Optional"),8),Ms=vf(hf("SkipSelf"),4);let y0,L2;function Ap(t){var n;return(null===(n=function bg(){if(void 0===y0&&(y0=null,$o.trustedTypes))try{y0=$o.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return y0}())||void 0===n?void 0:n.createHTML(t))||t}function dy(t){var n;return(null===(n=function uh(){if(void 0===L2&&(L2=null,$o.trustedTypes))try{L2=$o.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return L2}())||void 0===n?void 0:n.createHTML(t))||t}class Dp{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class tD extends Dp{getTypeName(){return"HTML"}}class nD extends Dp{getTypeName(){return"Style"}}class iD extends Dp{getTypeName(){return"Script"}}class rD extends Dp{getTypeName(){return"URL"}}class oD extends Dp{getTypeName(){return"ResourceURL"}}function k2(t){return t instanceof Dp?t.changingThisBreaksApplicationSecurity:t}function vu(t,n){const e=hy(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function hy(t){return t instanceof Dp&&t.getTypeName()||null}class cD{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(Ap(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class _y{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ap(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ap(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let r=e.length-1;0xg(n.trim())).join(", ")}function Oc(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function yg(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Cy=Oc("area,br,col,hr,img,wbr"),by=Oc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),P7=Oc("rp,rt"),E7=yg(Cy,yg(by,Oc("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")),yg(P7,Oc("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")),yg(P7,by)),wg=Oc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),T7=Oc("srcset"),xy=yg(wg,T7,Oc("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"),Oc("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")),hD=Oc("script,style,template");class pD{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!E7.hasOwnProperty(e))return this.sanitizedSomething=!0,!hD.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=n.nodeName.toLowerCase();E7.hasOwnProperty(e)&&!Cy.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(yy(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const fD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gD=/([^\#-~ |!])/g;function yy(t){return t.replace(/&/g,"&").replace(fD,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(gD,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let R5;function wy(t,n){let e=null;try{R5=R5||function my(t){const n=new _y(t);return function lD(){try{return!!(new window.DOMParser).parseFromString(Ap(""),"text/html")}catch(t){return!1}}()?new cD(n):n}(t);let i=n?String(n):"";e=R5.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=R5.getInertBodyElement(i)}while(i!==o);return Ap((new pD).sanitizeChildren(A7(e)||e))}finally{if(e){const i=A7(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function A7(t){return"content"in t&&function mD(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ya=(()=>((Ya=Ya||{})[Ya.NONE=0]="NONE",Ya[Ya.HTML=1]="HTML",Ya[Ya.STYLE=2]="STYLE",Ya[Ya.SCRIPT=3]="SCRIPT",Ya[Ya.URL=4]="URL",Ya[Ya.RESOURCE_URL=5]="RESOURCE_URL",Ya))();function D7(t){const n=Mg();return n?dy(n.sanitize(Ya.HTML,t)||""):vu(t,"HTML")?dy(k2(t)):wy(f0(),ze(t))}function ir(t){const n=Mg();return n?n.sanitize(Ya.URL,t)||"":vu(t,"URL")?k2(t):xg(ze(t))}function Mg(){const t=Xn();return t&&t[12]}const Py="__ngContext__";function Sl(t,n){t[Py]=n}function Cf(t){const n=function Og(t){return t[Py]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function N7(t){return t.ngOriginalError}function AD(t,...n){t.error(...n)}class w0{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function TD(t){return t&&t.ngErrorLogger||AD}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&N7(n);for(;e&&N7(e);)e=N7(e);return e||null}}const zD=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind($o))();function F5(t){return t.ownerDocument.defaultView}function Iy(t){return t.ownerDocument}function R7(t){return t.ownerDocument.body}function Cu(t){return t instanceof Function?t():t}var Q1=(()=>((Q1=Q1||{})[Q1.Important=1]="Important",Q1[Q1.DashCase=2]="DashCase",Q1))();function Pg(t,n){return undefined(t,n)}function xf(t){const n=t[3];return io(n)?n[3]:n}function H7(t){return Eg(t[13])}function V7(t){return Eg(t[4])}function Eg(t){for(;null!==t&&!io(t);)t=t[4];return t}function yf(t,n,e,i,r){if(null!=i){let o,a=!1;io(i)?o=i:Sr(i)&&(a=!0,i=i[0]);const c=Gs(i);0===t&&null!==e?null==r?Ro(n,e,c):I2(n,e,c,r||null,!0):1===t&&null!==e?I2(n,e,c,r||null,!0):2===t?function q7(t,n,e){const i=Ws(t,n);i&&function K1(t,n,e,i){Hr(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,c,a):3===t&&n.destroyNode(c),null!=o&&function WD(t,n,e,i,r){const o=e[7];o!==Gs(e)&&yf(n,t,i,o,r);for(let c=10;c0&&(t[e-1][4]=i[4]);const o=pg(t,10+n);!function FD(t,n){bs(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Hy(t,n){if(!(256&n[2])){const e=n[11];Hr(e)&&e.destroyNode&&bs(t,n,e,3,null,null),function BD(t){let n=t[13];if(!n)return j7(t[1],t);for(;n;){let e=null;if(Sr(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Sr(n)&&j7(n[1],n),n=n[3];null===n&&(n=t),Sr(n)&&j7(n[1],n),e=n&&n[4]}n=e}}(n)}}function j7(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function Yd(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=f]():i[r=-f].unsubscribe(),o+=2}else{const a=i[r=e[o+1]];e[o].call(a)}if(null!==i){for(let o=r+1;oo?"":r[E+1].toLowerCase();const Z=8&i?B:null;if(Z&&-1!==Xy(Z,f,0)||2&i&&f!==B){if(Z1(i))return!1;a=!0}}}}else{if(!a&&!Z1(i)&&!Z1(u))return!1;if(a&&Z1(u))continue;a=!1,i=u|1&i}}return Z1(i)||a}function Z1(t){return 0==(1&t)}function N2(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+c+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!Z1(a)&&(n+=Qy(o,r),r=""),i=a,o=o||!Z1(i);e++}return""!==r&&(n+=Qy(o,r)),n}const ko={};function K(t){K7(ra(),Xn(),$a()+t,!1)}function K7(t,n,e,i){if(!i)if(3==(3&n[2])){const o=t.preOrderCheckHooks;null!==o&&sf(n,o,e)}else{const o=t.preOrderHooks;null!==o&&mu(n,o,0,e)}md(e)}function za(t,n){return t<<17|n<<2}function jd(t){return t>>17&32767}function J7(t){return 2|t}function fh(t){return(131068&t)>>2}function e9(t,n){return-131069&t|n<<2}function t9(t){return 1|t}function cw(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i20&&K7(t,n,20,!1),e(i,r)}finally{md(o)}}function dw(t,n,e){if(ya(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(c)!=u&&c.push(u),c.push(i,r,a)}}function X5(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function $5(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function bL(t,n,e){if(e){if(n.exportAs)for(let i=0;i0&&v9(e)}}function v9(t){for(let i=H7(t);null!==i;i=V7(i))for(let r=10;r0&&v9(o)}const e=t[1].components;if(null!==e)for(let i=0;i0&&v9(r)}}function OL(t,n){const e=ql(n,t),i=e[1];(function SL(t,n){for(let e=n.length;ePromise.resolve(null))();function Sw(t){return t[7]||(t[7]=[])}function Pw(t){return t.cleanup||(t.cleanup=[])}function Ew(t,n,e){return(null===t||Xa(t))&&(e=function dd(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[n.index])),e[11]}function N(t,n){const e=t[9],i=e?e.get(w0,null):null;i&&i.handleError(n)}function U(t,n,e,i,r){for(let o=0;othis.processProvider(c,n,e)),X1([n],c=>this.processInjectorType(c,[],o)),this.records.set(sn,el(void 0,this));const a=this.records.get(ui);this.scope=null!=a?a.value:null,this.source=r||("object"==typeof n?null:Yo(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=Pp,i=xi.Default){this.assertNotDestroyed();const r=ty(this),o=ia(void 0);try{if(!(i&xi.SkipSelf)){let c=this.records.get(n);if(void 0===c){const u=function zve(t){return"function"==typeof t||"object"==typeof t&&t instanceof jn}(n)&&yn(n);c=u&&this.injectableDefInScope(u)?el(oa(n),di):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&xi.Self?Dr():this.parent).get(n,e=i&xi.Optional&&e===Pp?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[mf]=a[mf]||[]).unshift(Yo(n)),r)throw a;return function ny(t,n,e,i){const r=t[mf];throw n[mg]&&r.unshift(n[mg]),t.message=function QA(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=Yo(n);if(Array.isArray(n))r=n.map(Yo).join(" -> ");else if("object"==typeof n){let o=[];for(let a in n)if(n.hasOwnProperty(a)){let c=n[a];o.push(a+":"+("string"==typeof c?JSON.stringify(c):Yo(c)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(_f,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[mf]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{ia(o),ty(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,r)=>n.push(Yo(r))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ye(205,!1)}processInjectorType(n,e,i){if(!(n=po(n)))return!1;let r=vr(n);const o=null==r&&n.ngModule||void 0,a=void 0===o?n:o,c=-1!==i.indexOf(a);if(void 0!==o&&(r=vr(o)),null==r)return!1;if(null!=r.imports&&!c){let w;i.push(a);try{X1(r.imports,E=>{this.processInjectorType(E,e,i)&&(void 0===w&&(w=[]),w.push(E))})}finally{}if(void 0!==w)for(let E=0;Ethis.processProvider(ee,B,Z||xa))}}this.injectorDefTypes.add(a);const u=ih(a)||(()=>new a);this.records.set(a,el(u,di));const f=r.providers;if(null!=f&&!c){const w=n;X1(f,E=>this.processProvider(E,w,f))}return void 0!==o&&void 0!==n.providers}processProvider(n,e,i){let r=kp(n=po(n))?n:po(n&&n.provide);const o=function z2(t,n,e){return sc(t)?el(void 0,t.useValue):el(Xl(t),di)}(n);if(kp(n)||!0!==n.multi)this.records.get(r);else{let a=this.records.get(r);a||(a=el(void 0,di,!0),a.factory=()=>w7(a.multi),this.records.set(r,a)),r=n,a.multi.push(n)}this.records.set(r,o)}hydrate(n,e){return e.value===di&&(e.value=Oi,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Rve(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=po(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function oa(t){const n=yn(t),e=null!==n?n.factory:ih(t);if(null!==e)return e;if(t instanceof jn)throw new ye(204,!1);if(t instanceof Function)return function Sa(t){const n=t.length;if(n>0)throw ff(n,"?"),new ye(204,!1);const e=function nr(t){const n=t&&(t[qo]||t[no]);if(n){const e=function Fr(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ye(204,!1)}function Xl(t,n,e){let i;if(kp(t)){const r=po(t);return ih(r)||oa(r)}if(sc(t))i=()=>po(t.useValue);else if(function mh(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...w7(t.deps||[]));else if(function Wd(t){return!(!t||!t.useExisting)}(t))i=()=>Rt(po(t.useExisting));else{const r=po(t&&(t.useClass||t.provide));if(!function Nve(t){return!!t.deps}(t))return ih(r)||oa(r);i=()=>new r(...w7(t.deps))}return i}function el(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function sc(t){return null!==t&&"object"==typeof t&&x7 in t}function kp(t){return"function"==typeof t}let hs=(()=>{class t{static create(e,i){var r;if(Array.isArray(e))return co({name:""},i,e,"");{const o=null!==(r=e.name)&&void 0!==r?r:"";return co({name:o},e.parent,e.providers,o)}}}return t.THROW_IF_NOT_FOUND=Pp,t.NULL=new Sn,t.\u0275prov=yt({token:t,providedIn:"any",factory:()=>Rt(sn)}),t.__NG_ELEMENT_ID__=-1,t})();function jve(t,n){af(Cf(t)[1],Qs())}function Vn(t){let n=function cW(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let r;if(Xa(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new ye(903,"");r=n.\u0275dir}if(r){if(e){i.push(r);const a=t;a.inputs=DL(t.inputs),a.declaredInputs=DL(t.declaredInputs),a.outputs=DL(t.outputs);const c=r.hostBindings;c&&$ve(t,c);const u=r.viewQuery,f=r.contentQueries;if(u&&qve(t,u),f&&Xve(t,f),y2(t.inputs,r.inputs),y2(t.declaredInputs,r.declaredInputs),y2(t.outputs,r.outputs),Xa(r)&&r.data.animation){const w=t.data;w.animation=(w.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let a=0;a=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=q1(r.hostAttrs,e=q1(e,r.hostAttrs))}}(i)}function DL(t){return t===$s?{}:t===xa?[]:t}function qve(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function Xve(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function $ve(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}let Tw=null;function K5(){if(!Tw){const t=$o.Symbol;if(t&&t.iterator)Tw=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ec(Gs(Re[i.index])):i.index;if(Hr(e)){let Re=null;if(!c&&u&&(Re=function OCe(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ou?c[u]:null}"string"==typeof a&&(o+=2)}return null}(t,n,r,i.index)),null!==Re)(Re.__ngLastListenerFn__||Re).__ngNextListenerFn__=o,Re.__ngLastListenerFn__=o,Z=!1;else{o=HL(i,n,E,o,!1);const Ye=e.listen(Pe,r,o);B.push(o,Ye),w&&w.push(r,ge,Ie,Ie+1)}}else o=HL(i,n,E,o,!0),Pe.addEventListener(r,o,a),B.push(o),w&&w.push(r,ge,Ie,a)}else o=HL(i,n,E,o,!1);const ee=i.outputs;let be;if(Z&&null!==ee&&(be=ee[r])){const _e=be.length;if(_e)for(let Pe=0;Pe<_e;Pe+=2){const Je=n[be[Pe]][be[Pe+1]].subscribe(o),gt=B.length;B.push(o,Je),w&&w.push(r,i.index,gt,-(gt+1))}}}function AW(t,n,e,i){try{return!1!==e(i)}catch(r){return N(t,r),!1}}function HL(t,n,e,i,r){return function o(a){if(a===Function)return i;const c=2&t.flags?ql(t.index,n):n;0==(32&n[2])&&C9(c);let u=AW(n,0,i,a),f=o.__ngNextListenerFn__;for(;f;)u=AW(n,0,f,a)&&u,f=f.__ngNextListenerFn__;return r&&!1===u&&(a.preventDefault(),a.returnValue=!1),u}}function He(t=1){return function ah(t){return(to.lFrame.contextLView=function b5(t,n){for(;t>0;)n=n[15],t--;return n}(t,to.lFrame.contextLView))[8]}(t)}function SCe(t,n){let e=null;const i=function $D(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let r=0;r=0}const El={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function HW(t){return t.substring(El.key,El.keyEnd)}function VW(t,n){const e=El.textEnd;return e===n?-1:(n=El.keyEnd=function kCe(t,n,e){for(;n32;)n++;return n}(t,El.key=n,e),l6(t,n,e))}function l6(t,n,e){for(;n=0;e=VW(n,e))$1(t,HW(n),!0)}function vh(t,n,e,i){const r=Xn(),o=ra(),a=Ys(2);o.firstUpdatePass&&WW(o,t,a,i),n!==ko&&t2(r,a,n)&&XW(o,o.data[$a()],r,r[11],t,r[a+1]=function YCe(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Yo(k2(t)))),t}(n,e),i,a)}function Ch(t,n,e,i){const r=ra(),o=Ys(2);r.firstUpdatePass&&WW(r,null,o,i);const a=Xn();if(e!==ko&&t2(a,o,e)){const c=r.data[$a()];if(QW(c,i)&&!jW(r,o)){let u=i?c.classesWithoutHost:c.stylesWithoutHost;null!==u&&(e=cd(u,e||"")),zL(r,c,a,e,i)}else!function GCe(t,n,e,i,r,o,a,c){r===ko&&(r=xa);let u=0,f=0,w=0=t.expandoStartIndex}function WW(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[$a()],a=jW(t,e);QW(o,i)&&null===n&&!a&&(n=!1),n=function zCe(t,n,e,i){const r=nf(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=S9(e=BL(null,t,n,e,i),n.attrs,i),o=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==r)if(e=BL(r,t,n,e,i),null===o){let u=function FCe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==fh(i))return t[jd(i)]}(t,n,i);void 0!==u&&Array.isArray(u)&&(u=BL(null,t,n,u[1],i),u=S9(u,n.attrs,i),function HCe(t,n,e,i){t[jd(e?n.classBindings:n.styleBindings)]=i}(t,n,i,u))}else o=function VCe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(f=!0)}else w=e;if(r)if(0!==u){const B=jd(t[c+1]);t[i+1]=za(B,c),0!==B&&(t[B+1]=e9(t[B+1],i)),t[c+1]=function Y5(t,n){return 131071&t|n<<17}(t[c+1],i)}else t[i+1]=za(c,0),0!==c&&(t[c+1]=e9(t[c+1],i)),c=i;else t[i+1]=za(u,0),0===c?c=i:t[u+1]=e9(t[u+1],i),u=i;f&&(t[i+1]=J7(t[i+1])),FW(t,w,i,!0),FW(t,w,i,!1),function ECe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Sp(o,n)>=0&&(e[i+1]=t9(e[i+1]))}(n,w,t,i,o),a=za(c,u),o?n.classBindings=a:n.styleBindings=a}(r,o,n,e,a,i)}}function BL(t,n,e,i,r){let o=null;const a=e.directiveEnd;let c=e.directiveStylingLast;for(-1===c?c=e.directiveStart:c++;c0;){const u=t[r],f=Array.isArray(u),w=f?u[1]:u,E=null===w;let B=e[r+1];B===ko&&(B=E?xa:void 0);let Z=E?gf(B,i):w===i?B:void 0;if(f&&!Lw(Z)&&(Z=gf(u,i)),Lw(Z)&&(c=Z,a))return c;const ee=t[r+1];r=a?jd(ee):fh(ee)}if(null!==n){let u=o?n.residualClasses:n.residualStyles;null!=u&&(c=gf(u,i))}return c}function Lw(t){return void 0!==t}function QW(t,n){return 0!=(t.flags&(n?16:32))}function he(t,n=""){const e=Xn(),i=ra(),r=t+20,o=i.firstCreatePass?Sf(i,r,1,n,null):i.data[r],a=e[r]=function G7(t,n){return Hr(t)?t.createText(n):t.createTextNode(n)}(e[11],n);B5(i,e,a,o),hd(o,!1)}function Zr(t){return Ft("",t,""),Zr}function Ft(t,n,e){const i=Xn(),r=J5(i,t,n,e);return r!==ko&&fe(i,$a(),r),Ft}function kw(t,n,e,i,r){const o=Xn(),a=e6(o,t,n,e,i,r);return a!==ko&&fe(o,$a(),a),kw}function Af(t,n,e){Ch($1,P0,J5(Xn(),t,n,e),!0)}function yu(t,n,e){const i=Xn();return t2(i,y1(),n)&&R2(ra(),Us(),i,t,n,i[11],e,!0),yu}function d6(t,n,e){const i=Xn();if(t2(i,y1(),n)){const o=ra(),a=Us();R2(o,a,i,t,n,Ew(nf(o.data),a,i),e,!0)}return d6}const Ig=void 0;var cbe=["en",[["a","p"],["AM","PM"],Ig],[["AM","PM"],Ig,Ig],[["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"]],Ig,[["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"]],Ig,[["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}",Ig,"{1} 'at' {0}",Ig],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function sbe(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let u6={};function F2(t){const n=function lbe(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=fq(n);if(e)return e;const i=n.split("-")[0];if(e=fq(i),e)return e;if("en"===i)return cbe;throw new Error(`Missing locale data for the locale "${t}".`)}function fq(t){return t in u6||(u6[t]=$o.ng&&$o.ng.common&&$o.ng.common.locales&&$o.ng.common.locales[t]),u6[t]}var cr=(()=>((cr=cr||{})[cr.LocaleId=0]="LocaleId",cr[cr.DayPeriodsFormat=1]="DayPeriodsFormat",cr[cr.DayPeriodsStandalone=2]="DayPeriodsStandalone",cr[cr.DaysFormat=3]="DaysFormat",cr[cr.DaysStandalone=4]="DaysStandalone",cr[cr.MonthsFormat=5]="MonthsFormat",cr[cr.MonthsStandalone=6]="MonthsStandalone",cr[cr.Eras=7]="Eras",cr[cr.FirstDayOfWeek=8]="FirstDayOfWeek",cr[cr.WeekendRange=9]="WeekendRange",cr[cr.DateFormat=10]="DateFormat",cr[cr.TimeFormat=11]="TimeFormat",cr[cr.DateTimeFormat=12]="DateTimeFormat",cr[cr.NumberSymbols=13]="NumberSymbols",cr[cr.NumberFormats=14]="NumberFormats",cr[cr.CurrencyCode=15]="CurrencyCode",cr[cr.CurrencySymbol=16]="CurrencySymbol",cr[cr.CurrencyName=17]="CurrencyName",cr[cr.Currencies=18]="Currencies",cr[cr.Directionality=19]="Directionality",cr[cr.PluralCase=20]="PluralCase",cr[cr.ExtraData=21]="ExtraData",cr))();const Iw="en-US";let gq=Iw;function UL(t,n,e,i,r){if(t=po(t),Array.isArray(t))for(let o=0;o>20;if(kp(t)||!t.multi){const Z=new re(u,r,de),ee=WL(c,n,r?w:w+B,E);-1===ee?(w1(ch(f,a),o,c),jL(o,t,n.length),n.push(c),f.directiveStart++,f.directiveEnd++,r&&(f.providerIndexes+=1048576),e.push(Z),a.push(Z)):(e[ee]=Z,a[ee]=Z)}else{const Z=WL(c,n,w+B,E),ee=WL(c,n,w,w+B),be=Z>=0&&e[Z],_e=ee>=0&&e[ee];if(r&&!_e||!r&&!be){w1(ch(f,a),o,c);const Pe=function sxe(t,n,e,i,r){const o=new re(t,e,de);return o.multi=[],o.index=n,o.componentProviders=0,Hq(o,r,i&&!e),o}(r?axe:oxe,e.length,r,i,u);!r&&_e&&(e[ee].providerFactory=Pe),jL(o,t,n.length,0),n.push(c),f.directiveStart++,f.directiveEnd++,r&&(f.providerIndexes+=1048576),e.push(Pe),a.push(Pe)}else jL(o,t,Z>-1?Z:ee,Hq(e[r?ee:Z],u,!r&&i));!r&&i&&_e&&e[ee].componentProviders++}}}function jL(t,n,e,i){const r=kp(n),o=function Ive(t){return!!t.useClass}(n);if(r||o){const u=(o?po(n.useClass):n).prototype.ngOnDestroy;if(u){const f=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const w=f.indexOf(e);-1===w?f.push(e,[i,u]):f[w+1].push(i,u)}else f.push(e,u)}}}function Hq(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function WL(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function rxe(t,n,e){const i=ra();if(i.firstCreatePass){const r=Xa(t);UL(e,i.data,i.blueprint,r,!0),UL(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class Vq{}class dxe{resolveComponentFactory(n){throw function lxe(t){const n=Error(`No component factory found for ${Yo(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Df=(()=>{class t{}return t.NULL=new dxe,t})();function uxe(){return p6(Qs(),Xn())}function p6(t,n){return new gi(j1(t,n))}let gi=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=uxe,t})();function hxe(t){return t instanceof gi?t.nativeElement:t}class D9{}let Uc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function fxe(){const t=Xn(),e=ql(Qs().index,t);return function pxe(t){return t[11]}(Sr(e)?e:t)}(),t})(),gxe=(()=>{class t{}return t.\u0275prov=yt({token:t,providedIn:"root",factory:()=>null}),t})();class Lf{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const mxe=new Lf("13.3.11"),XL={};function Hw(t,n,e,i,r=!1){for(;null!==e;){const o=n[e.index];if(null!==o&&i.push(Gs(o)),io(o))for(let c=10;c-1&&(U7(n,i),pg(e,i))}this._attachedToViewContainer=!1}Hy(this._lView[1],this._lView)}onDestroy(n){fw(this._lView[1],this._lView,null,n)}markForCheck(){C9(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function x9(t,n,e){const i=n[10];i.begin&&i.begin();try{Ef(t,n,t.template,e)}catch(r){throw N(n,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ye(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function VD(t,n){bs(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ye(902,"");this._appRef=n}}class _xe extends L9{constructor(n){super(n),this._view=n}detectChanges(){Ow(this._view)}checkNoChanges(){}get context(){return null}}class Gq extends Df{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=ds(n);return new $L(e,this.ngModule)}}function Yq(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class $L extends Vq{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function ph(t){return t.map(Ky).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Yq(this.componentDef.inputs)}get outputs(){return Yq(this.componentDef.outputs)}create(n,e,i,r){const o=(r=r||this.ngModule)?function Cxe(t,n){return{get:(e,i,r)=>{const o=t.get(e,XL,r);return o!==XL||i===XL?o:n.get(e,i,r)}}}(n,r.injector):n,a=o.get(D9,f5),c=o.get(gxe,null),u=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",w=i?function pw(t,n,e){if(Hr(t))return t.selectRootElement(n,e===_s.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(u,i,this.componentDef.encapsulation):Y7(a.createRenderer(null,this.componentDef),f,function vxe(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(f)),E=this.componentDef.onPush?576:528,B=function sW(t,n){return{components:[],scheduler:t||zD,clean:EL,playerHandler:n||null,flags:0}}(),Z=W5(0,null,null,1,0,null,null,null,null,null),ee=Ag(null,Z,B,E,null,null,a,u,c,o);let be,_e;rc(ee);try{const Pe=function oW(t,n,e,i,r,o){const a=e[1];e[20]=t;const u=Sf(a,20,2,"#host",null),f=u.mergedAttrs=n.hostAttrs;null!==f&&(Ge(u,f,!0),null!==t&&(Ta(r,t,f),null!==u.classes&&$7(r,t,u.classes),null!==u.styles&&qy(r,t,u.styles)));const w=i.createRenderer(t,n),E=Ag(e,uw(n),null,n.onPush?64:16,e[20],u,i,w,o||null,null);return a.firstCreatePass&&(w1(ch(u,e),a,n.type),$5(a,u),bw(u,e.length,1)),Q5(e,E),e[20]=E}(w,this.componentDef,ee,a,u);if(w)if(i)Ta(u,w,["ng-version",mxe.full]);else{const{attrs:Ie,classes:ge}=function Qo(t){const n=[],e=[];let i=1,r=2;for(;i0&&$7(u,w,ge.join(" "))}if(_e=eg(Z,20),void 0!==e){const Ie=_e.projection=[];for(let ge=0;geu(a,n)),n.contentQueries){const u=Qs();n.contentQueries(1,a,u.directiveStart)}const c=Qs();return!o.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(md(c.index),Cw(e[1],c,0,c.directiveStart,c.directiveEnd,n),X5(n,a)),a}(Pe,this.componentDef,ee,B,[jve]),Dg(Z,ee,null)}finally{oh()}return new xxe(this.componentType,be,p6(_e,ee),ee,_e)}}class xxe extends class cxe{}{constructor(n,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new _xe(r),this.componentType=n}get injector(){return new Mp(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class Rp{}class Uq{}const f6=new Map;class qq extends Rp{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Gq(this);const i=qt(n);this._bootstrapComponents=Cu(i.bootstrap),this._r3Injector=Ko(n,e,[{provide:Rp,useValue:this},{provide:Df,useValue:this.componentFactoryResolver}],Yo(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=hs.THROW_IF_NOT_FOUND,i=xi.Default){return n===hs||n===Rp||n===sn?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class QL extends Uq{constructor(n){super(),this.moduleType=n,null!==qt(n)&&function wxe(t){const n=new Set;!function e(i){const r=qt(i,!0),o=r.id;null!==o&&(function jq(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${Yo(n)} vs ${Yo(n.name)}`)}(o,f6.get(o),i),f6.set(o,i));const a=Cu(r.imports);for(const c of a)n.has(c)||(n.add(c),e(c))}(t)}(n)}create(n){return new qq(this.moduleType,n)}}function ai(t,n,e){const i=yl()+t,r=Xn();return r[i]===ko?O0(r,i,e?n.call(e):n()):function M9(t,n){return t[n]}(r,i)}function Pr(t,n,e,i){return Xq(Xn(),yl(),t,n,e,i)}function k9(t,n,e,i,r){return $q(Xn(),yl(),t,n,e,i,r)}function bh(t,n,e,i,r,o){return function Qq(t,n,e,i,r,o,a,c){const u=n+e;return function Aw(t,n,e,i,r){const o=kg(t,n,e,i);return t2(t,n+2,r)||o}(t,u,r,o,a)?O0(t,u+3,c?i.call(c,r,o,a):i(r,o,a)):I9(t,u+3)}(Xn(),yl(),t,n,e,i,r,o)}function Vw(t,n,e,i,r,o,a){return function Kq(t,n,e,i,r,o,a,c,u){const f=n+e;return function xu(t,n,e,i,r,o){const a=kg(t,n,e,i);return kg(t,n+2,r,o)||a}(t,f,r,o,a,c)?O0(t,f+4,u?i.call(u,r,o,a,c):i(r,o,a,c)):I9(t,f+4)}(Xn(),yl(),t,n,e,i,r,o,a)}function I9(t,n){const e=t[n];return e===ko?void 0:e}function Xq(t,n,e,i,r,o){const a=n+e;return t2(t,a,r)?O0(t,a+1,o?i.call(o,r):i(r)):I9(t,a+1)}function $q(t,n,e,i,r,o,a){const c=n+e;return kg(t,c,r,o)?O0(t,c+2,a?i.call(a,r,o):i(r,o)):I9(t,c+2)}function E0(t,n){const e=ra();let i;const r=t+20;e.firstCreatePass?(i=function Txe(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=ih(i.type)),a=ia(de);try{const c=cf(!1),u=o();return cf(c),function iCe(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Xn(),r,u),u}finally{ia(a)}}function Ng(t,n,e){const i=t+20,r=Xn(),o=Wl(r,i);return N9(r,i)?Xq(r,yl(),n,o.transform,e,o):o.transform(e)}function Bw(t,n,e,i){const r=t+20,o=Xn(),a=Wl(o,r);return N9(o,r)?$q(o,yl(),n,a.transform,e,i,a):a.transform(e,i)}function N9(t,n){return t[1].data[n].pure}function KL(t){return n=>{setTimeout(t,void 0,n)}}const Bn=class kxe extends z{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var r,o,a;let c=n,u=e||(()=>null),f=i;if(n&&"object"==typeof n){const E=n;c=null===(r=E.next)||void 0===r?void 0:r.bind(E),u=null===(o=E.error)||void 0===o?void 0:o.bind(E),f=null===(a=E.complete)||void 0===a?void 0:a.bind(E)}this.__isAsync&&(u=KL(u),c&&(c=KL(c)),f&&(f=KL(f)));const w=super.subscribe({next:c,error:u,complete:f});return n instanceof Me&&n.add(w),w}};function Ixe(){return this._results[K5()]()}class Rg{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=K5(),i=Rg.prototype;i[e]||(i[e]=Ixe)}get changes(){return this._changes||(this._changes=new Bn)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=wl(n);(this._changesDetected=!function jx(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=zxe,t})();const Nxe=Ks,Rxe=class extends Nxe{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=Ag(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(i[19]=o.createEmbeddedView(e)),Dg(e,i,n),new L9(i)}};function zxe(){return Gw(Qs(),Xn())}function Gw(t,n){return 4&t.type?new Rxe(n,t,p6(t,n)):null}let As=(()=>{class t{}return t.__NG_ELEMENT_ID__=Fxe,t})();function Fxe(){return tX(Qs(),Xn())}const Hxe=As,Jq=class extends Hxe{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return p6(this._hostTNode,this._hostLView)}get injector(){return new Mp(this._hostTNode,this._hostLView)}get parentInjector(){const n=O5(this._hostTNode,this._hostLView);if(Yx(n)){const e=C0(n,this._hostLView),i=wp(n);return new Mp(e[1].data[i+8],e)}return new Mp(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=eX(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const r=n.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(n,e,i,r,o){const a=n&&!function pf(t){return"function"==typeof t}(n);let c;if(a)c=e;else{const E=e||{};c=E.index,i=E.injector,r=E.projectableNodes,o=E.ngModuleRef}const u=a?n:new $L(ds(n)),f=i||this.parentInjector;if(!o&&null==u.ngModule){const B=(a?f:this.parentInjector).get(Rp,null);B&&(o=B)}const w=u.create(f,r,void 0,o);return this.insert(w.hostView,c),w}insert(n,e){const i=n._lView,r=i[1];if(function m5(t){return io(t[3])}(i)){const w=this.indexOf(n);if(-1!==w)this.detach(w);else{const E=i[3],B=new Jq(E,E[6],E[3]);B.detach(B.indexOf(n))}}const o=this._adjustIndex(e),a=this._lContainer;!function GD(t,n,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=n),i0)i.push(a[c/2]);else{const f=o[c+1],w=n[-u];for(let E=10;E{class t{constructor(e){this.appInits=e,this.resolve=jw,this.reject=jw,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:c,error:u})});e.push(a)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ww,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const z9=new jn("AppId",{providedIn:"root",factory:function wX(){return`${dk()}${dk()}${dk()}`}});function dk(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const MX=new jn("Platform Initializer"),Tl=new jn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),uk=new jn("appBootstrapListener");let dye=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Fp=new jn("LocaleId",{providedIn:"root",factory:()=>Ep(Fp,xi.Optional|xi.SkipSelf)||function uye(){return"undefined"!=typeof $localize&&$localize.locale||Iw}()});class pye{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let OX=(()=>{class t{compileModuleSync(e){return new QL(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Cu(qt(e).declarations).reduce((a,c)=>{const u=ds(c);return u&&a.push(new $L(u)),a},[]);return new pye(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const gye=(()=>Promise.resolve(0))();function hk(t){"undefined"==typeof Zone?gye.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ji{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Bn(!1),this.onMicrotaskEmpty=new Bn(!1),this.onStable=new Bn(!1),this.onError=new Bn(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function mye(){let t=$o.requestAnimationFrame,n=$o.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Cye(t){const n=()=>{!function vye(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($o,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,fk(t),t.isCheckStableRunning=!0,pk(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),fk(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,a,c)=>{try{return SX(t),e.invokeTask(r,o,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),PX(t)}},onInvoke:(e,i,r,o,a,c,u)=>{try{return SX(t),e.invoke(r,o,a,c,u)}finally{t.shouldCoalesceRunChangeDetection&&n(),PX(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,fk(t),pk(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ji.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ji.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,_ye,jw,jw);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const _ye={};function pk(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function fk(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function SX(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function PX(t){t._nesting--,pk(t)}class bye{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bn,this.onMicrotaskEmpty=new Bn,this.onStable=new Bn,this.onError=new Bn}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}let gk=(()=>{class t{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:()=>{ji.assertNotInAngularZone(),hk(()=>{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())hk(()=>{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,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(Rt(ji))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),xye=(()=>{class t{constructor(){this._applications=new Map,mk.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 mk.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class yye{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let mk=new yye,zg=null;const EX=new jn("AllowMultipleToken"),TX=new jn("PlatformOnDestroy");class AX{constructor(n,e){this.name=n,this.token=e}}function DX(t,n,e=[]){const i=`Platform: ${n}`,r=new jn(i);return(o=[])=>{let a=_k();if(!a||a.injector.get(EX,!1)){const c=[...e,...o,{provide:r,useValue:!0}];t?t(c):function Sye(t){if(zg&&!zg.get(EX,!1))throw new ye(400,"");zg=t;const n=t.get(LX),e=t.get(MX,null);e&&e.forEach(i=>i())}(function Eye(t=[],n){return hs.create({name:n,providers:[{provide:ui,useValue:"platform"},{provide:TX,useValue:()=>zg=null},...t]})}(c,i))}return function Pye(t){const n=_k();if(!n)throw new ye(401,"");return n}()}}function _k(){var t;return null!==(t=null==zg?void 0:zg.get(LX))&&void 0!==t?t:null}let LX=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const c=function Tye(t,n){let e;return e="noop"===t?new bye:("zone.js"===t?void 0:t)||new ji({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),u=[{provide:ji,useValue:c}];return c.run(()=>{const f=hs.create({providers:u,parent:this.injector,name:e.moduleType.name}),w=e.create(f),E=w.injector.get(w0,null);if(!E)throw new ye(402,"");return c.runOutsideAngular(()=>{const B=c.onError.subscribe({next:Z=>{E.handleError(Z)}});w.onDestroy(()=>{vk(this._modules,w),B.unsubscribe()})}),function Aye(t,n,e){try{const i=e();return O9(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(E,c,()=>{const B=w.injector.get(lk);return B.runInitializers(),B.donePromise.then(()=>(function pbe(t){Xe(t,"Expected localeId to be defined"),"string"==typeof t&&(gq=t.toLowerCase().replace(/_/g,"-"))}(w.injector.get(Fp,Iw)||Iw),this._moduleDoBootstrap(w),w))})})}bootstrapModule(e,i=[]){const r=kX({},i);return function Mye(t,n,e){const i=new QL(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(F9);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new ye(403,"");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 ye(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(TX,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Rt(hs))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function kX(t,n){return Array.isArray(n)?n.reduce(kX,t):Object.assign(Object.assign({},t),n)}let F9=(()=>{class t{constructor(e,i,r,o){this._zone=e,this._injector=i,this._exceptionHandler=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new At(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),c=new At(u=>{let f;this._zone.runOutsideAngular(()=>{f=this._zone.onStable.subscribe(()=>{ji.assertNotInAngularZone(),hk(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const w=this._zone.onUnstable.subscribe(()=>{ji.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{f.unsubscribe(),w.unsubscribe()}});this.isStable=So(a,c.pipe(Yc()))}bootstrap(e,i){if(!this._initStatus.done)throw new ye(405,"");let r;r=e instanceof Vq?e:this._injector.get(Df).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const o=function Oye(t){return t.isBoundToModule}(r)?void 0:this._injector.get(Rp),c=r.create(hs.NULL,[],i||r.selector,o),u=c.location.nativeElement,f=c.injector.get(gk,null),w=f&&c.injector.get(xye);return f&&w&&w.registerApplication(u,f),c.onDestroy(()=>{this.detachView(c.hostView),vk(this.components,c),w&&w.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new ye(101,"");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;vk(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(uk,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Rt(ji),Rt(hs),Rt(w0),Rt(lk))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function vk(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let NX=!0,Do=(()=>{class t{}return t.__NG_ELEMENT_ID__=kye,t})();function kye(t){return function Iye(t,n,e){if(xr(t)&&!e){const i=ql(t.index,n);return new L9(i,i)}return 47&t.type?new L9(n[16],n):null}(Qs(),Xn(),16==(16&t))}class VX{constructor(){}supports(n){return w9(n)}create(n){return new Vye(n)}}const Hye=(t,n)=>n;class Vye{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||Hye}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(r,c),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,c,a,r)),Object.is(e.item,c)||this._addIdentityChange(e,c)):(e=this._mismatch(e,c,a,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new Bye(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new BX),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new BX),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Bye{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Gye{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class BX{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new Gye,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function GX(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const i=new Uye(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class Uye{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function UX(){return new qd([new VX])}let qd=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||UX()),deps:[[t,new Ms,new Ol]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new ye(901,"")}}return t.\u0275prov=yt({token:t,providedIn:"root",factory:UX}),t})();function jX(){return new kf([new YX])}let kf=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||jX()),deps:[[t,new Ms,new Ol]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new ye(901,"")}}return t.\u0275prov=yt({token:t,providedIn:"root",factory:jX}),t})();const qye=DX(null,"core",[]);let Xye=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(Rt(F9))},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})(),$w=null;function T0(){return $w}const Xr=new jn("DocumentToken");let Hg=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(){return function Zye(){return Rt(WX)}()},providedIn:"platform"}),t})();const Jye=new jn("Location Initialized");let WX=(()=>{class t extends Hg{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return T0().getBaseHref(this._doc)}onPopState(e){const i=T0().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=T0().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,r){qX()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){qX()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr))},t.\u0275prov=yt({token:t,factory:function(){return function ewe(){return new WX(Rt(Xr))}()},providedIn:"platform"}),t})();function qX(){return!!window.history.pushState}function wk(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function XX(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Hp(t){return t&&"?"!==t[0]?"?"+t:t}let m6=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(){return function twe(t){const n=Rt(Xr).location;return new $X(Rt(Hg),n&&n.origin||"")}()},providedIn:"root"}),t})();const Mk=new jn("appBaseHref");let $X=(()=>{class t extends m6{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 wk(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Hp(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const a=this.prepareExternalUrl(r+Hp(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){const a=this.prepareExternalUrl(r+Hp(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Hg),Rt(Mk,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),nwe=(()=>{class t extends m6{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=wk(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+Hp(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+Hp(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Hg),Rt(Mk,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),H9=(()=>{class t{constructor(e,i){this._subject=new Bn,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=XX(QX(r)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.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+Hp(i))}normalize(e){return t.stripTrailingSlash(function rwe(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,QX(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Hp(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Hp(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.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(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=Hp,t.joinWithSlash=wk,t.stripTrailingSlash=XX,t.\u0275fac=function(e){return new(e||t)(Rt(m6),Rt(Hg))},t.\u0275prov=yt({token:t,factory:function(){return function iwe(){return new H9(Rt(m6),Rt(Hg))}()},providedIn:"root"}),t})();function QX(t){return t.replace(/\/index.html$/,"")}var jc=(()=>((jc=jc||{})[jc.Format=0]="Format",jc[jc.Standalone=1]="Standalone",jc))(),Pa=(()=>((Pa=Pa||{})[Pa.Narrow=0]="Narrow",Pa[Pa.Abbreviated=1]="Abbreviated",Pa[Pa.Wide=2]="Wide",Pa[Pa.Short=3]="Short",Pa))(),Sc=(()=>((Sc=Sc||{})[Sc.Short=0]="Short",Sc[Sc.Medium=1]="Medium",Sc[Sc.Long=2]="Long",Sc[Sc.Full=3]="Full",Sc))(),_o=(()=>((_o=_o||{})[_o.Decimal=0]="Decimal",_o[_o.Group=1]="Group",_o[_o.List=2]="List",_o[_o.PercentSign=3]="PercentSign",_o[_o.PlusSign=4]="PlusSign",_o[_o.MinusSign=5]="MinusSign",_o[_o.Exponential=6]="Exponential",_o[_o.SuperscriptingExponent=7]="SuperscriptingExponent",_o[_o.PerMille=8]="PerMille",_o[_o.Infinity=9]="Infinity",_o[_o.NaN=10]="NaN",_o[_o.TimeSeparator=11]="TimeSeparator",_o[_o.CurrencyDecimal=12]="CurrencyDecimal",_o[_o.CurrencyGroup=13]="CurrencyGroup",_o))();function Qw(t,n){return Mu(F2(t)[cr.DateFormat],n)}function Kw(t,n){return Mu(F2(t)[cr.TimeFormat],n)}function Zw(t,n){return Mu(F2(t)[cr.DateTimeFormat],n)}function wu(t,n){const e=F2(t),i=e[cr.NumberSymbols][n];if(void 0===i){if(n===_o.CurrencyDecimal)return e[cr.NumberSymbols][_o.Decimal];if(n===_o.CurrencyGroup)return e[cr.NumberSymbols][_o.Group]}return i}function ZX(t){if(!t[cr.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[cr.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Mu(t,n){for(let e=n;e>-1;e--)if(void 0!==t[e])return t[e];throw new Error("Locale data API: locale data undefined")}function Sk(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const _we=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,V9={},vwe=/((?:[^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 Al=(()=>((Al=Al||{})[Al.Short=0]="Short",Al[Al.ShortGMT=1]="ShortGMT",Al[Al.Long=2]="Long",Al[Al.Extended=3]="Extended",Al))(),Eo=(()=>((Eo=Eo||{})[Eo.FullYear=0]="FullYear",Eo[Eo.Month=1]="Month",Eo[Eo.Date=2]="Date",Eo[Eo.Hours=3]="Hours",Eo[Eo.Minutes=4]="Minutes",Eo[Eo.Seconds=5]="Seconds",Eo[Eo.FractionalSeconds=6]="FractionalSeconds",Eo[Eo.Day=7]="Day",Eo))(),aa=(()=>((aa=aa||{})[aa.DayPeriods=0]="DayPeriods",aa[aa.Days=1]="Days",aa[aa.Months=2]="Months",aa[aa.Eras=3]="Eras",aa))();function Cwe(t,n,e,i){let r=function Ewe(t){if(t$(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,a=1]=t.split("-").map(c=>+c);return Jw(r,o-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(_we))return function Twe(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-e,c=Number(t[5]||0)-i,u=Number(t[6]||0),f=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,a,c,u,f),n}(i)}const n=new Date(t);if(!t$(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Vp(e,n)||n;let c,a=[];for(;n;){if(c=vwe.exec(n),!c){a.push(n);break}{a=a.concat(c.slice(1));const w=a.pop();if(!w)break;n=w}}let u=r.getTimezoneOffset();i&&(u=e$(i,u),r=function Pwe(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function Swe(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(e$(n,r)-r))}(r,i,!0));let f="";return a.forEach(w=>{const E=function Owe(t){if(Ek[t])return Ek[t];let n;switch(t){case"G":case"GG":case"GGG":n=qs(aa.Eras,Pa.Abbreviated);break;case"GGGG":n=qs(aa.Eras,Pa.Wide);break;case"GGGGG":n=qs(aa.Eras,Pa.Narrow);break;case"y":n=nl(Eo.FullYear,1,0,!1,!0);break;case"yy":n=nl(Eo.FullYear,2,0,!0,!0);break;case"yyy":n=nl(Eo.FullYear,3,0,!1,!0);break;case"yyyy":n=nl(Eo.FullYear,4,0,!1,!0);break;case"Y":n=iM(1);break;case"YY":n=iM(2,!0);break;case"YYY":n=iM(3);break;case"YYYY":n=iM(4);break;case"M":case"L":n=nl(Eo.Month,1,1);break;case"MM":case"LL":n=nl(Eo.Month,2,1);break;case"MMM":n=qs(aa.Months,Pa.Abbreviated);break;case"MMMM":n=qs(aa.Months,Pa.Wide);break;case"MMMMM":n=qs(aa.Months,Pa.Narrow);break;case"LLL":n=qs(aa.Months,Pa.Abbreviated,jc.Standalone);break;case"LLLL":n=qs(aa.Months,Pa.Wide,jc.Standalone);break;case"LLLLL":n=qs(aa.Months,Pa.Narrow,jc.Standalone);break;case"w":n=Pk(1);break;case"ww":n=Pk(2);break;case"W":n=Pk(1,!0);break;case"d":n=nl(Eo.Date,1);break;case"dd":n=nl(Eo.Date,2);break;case"c":case"cc":n=nl(Eo.Day,1);break;case"ccc":n=qs(aa.Days,Pa.Abbreviated,jc.Standalone);break;case"cccc":n=qs(aa.Days,Pa.Wide,jc.Standalone);break;case"ccccc":n=qs(aa.Days,Pa.Narrow,jc.Standalone);break;case"cccccc":n=qs(aa.Days,Pa.Short,jc.Standalone);break;case"E":case"EE":case"EEE":n=qs(aa.Days,Pa.Abbreviated);break;case"EEEE":n=qs(aa.Days,Pa.Wide);break;case"EEEEE":n=qs(aa.Days,Pa.Narrow);break;case"EEEEEE":n=qs(aa.Days,Pa.Short);break;case"a":case"aa":case"aaa":n=qs(aa.DayPeriods,Pa.Abbreviated);break;case"aaaa":n=qs(aa.DayPeriods,Pa.Wide);break;case"aaaaa":n=qs(aa.DayPeriods,Pa.Narrow);break;case"b":case"bb":case"bbb":n=qs(aa.DayPeriods,Pa.Abbreviated,jc.Standalone,!0);break;case"bbbb":n=qs(aa.DayPeriods,Pa.Wide,jc.Standalone,!0);break;case"bbbbb":n=qs(aa.DayPeriods,Pa.Narrow,jc.Standalone,!0);break;case"B":case"BB":case"BBB":n=qs(aa.DayPeriods,Pa.Abbreviated,jc.Format,!0);break;case"BBBB":n=qs(aa.DayPeriods,Pa.Wide,jc.Format,!0);break;case"BBBBB":n=qs(aa.DayPeriods,Pa.Narrow,jc.Format,!0);break;case"h":n=nl(Eo.Hours,1,-12);break;case"hh":n=nl(Eo.Hours,2,-12);break;case"H":n=nl(Eo.Hours,1);break;case"HH":n=nl(Eo.Hours,2);break;case"m":n=nl(Eo.Minutes,1);break;case"mm":n=nl(Eo.Minutes,2);break;case"s":n=nl(Eo.Seconds,1);break;case"ss":n=nl(Eo.Seconds,2);break;case"S":n=nl(Eo.FractionalSeconds,1);break;case"SS":n=nl(Eo.FractionalSeconds,2);break;case"SSS":n=nl(Eo.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=tM(Al.Short);break;case"ZZZZZ":n=tM(Al.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=tM(Al.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=tM(Al.Long);break;default:return null}return Ek[t]=n,n}(w);f+=E?E(r,e,u):"''"===w?"'":w.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),f}function Jw(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Vp(t,n){const e=function owe(t){return F2(t)[cr.LocaleId]}(t);if(V9[e]=V9[e]||{},V9[e][n])return V9[e][n];let i="";switch(n){case"shortDate":i=Qw(t,Sc.Short);break;case"mediumDate":i=Qw(t,Sc.Medium);break;case"longDate":i=Qw(t,Sc.Long);break;case"fullDate":i=Qw(t,Sc.Full);break;case"shortTime":i=Kw(t,Sc.Short);break;case"mediumTime":i=Kw(t,Sc.Medium);break;case"longTime":i=Kw(t,Sc.Long);break;case"fullTime":i=Kw(t,Sc.Full);break;case"short":const r=Vp(t,"shortTime"),o=Vp(t,"shortDate");i=eM(Zw(t,Sc.Short),[r,o]);break;case"medium":const a=Vp(t,"mediumTime"),c=Vp(t,"mediumDate");i=eM(Zw(t,Sc.Medium),[a,c]);break;case"long":const u=Vp(t,"longTime"),f=Vp(t,"longDate");i=eM(Zw(t,Sc.Long),[u,f]);break;case"full":const w=Vp(t,"fullTime"),E=Vp(t,"fullDate");i=eM(Zw(t,Sc.Full),[w,E])}return i&&(V9[e][n]=i),i}function eM(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function xh(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let a=String(t);for(;a.length0||c>-e)&&(c+=e),t===Eo.Hours)0===c&&-12===e&&(c=12);else if(t===Eo.FractionalSeconds)return function bwe(t,n){return xh(t,3).substr(0,n)}(c,n);const u=wu(a,_o.MinusSign);return xh(c,n,u,i,r)}}function qs(t,n,e=jc.Format,i=!1){return function(r,o){return function ywe(t,n,e,i,r,o){switch(e){case aa.Months:return function cwe(t,n,e){const i=F2(t),o=Mu([i[cr.MonthsFormat],i[cr.MonthsStandalone]],n);return Mu(o,e)}(n,r,i)[t.getMonth()];case aa.Days:return function swe(t,n,e){const i=F2(t),o=Mu([i[cr.DaysFormat],i[cr.DaysStandalone]],n);return Mu(o,e)}(n,r,i)[t.getDay()];case aa.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(o){const f=function hwe(t){const n=F2(t);return ZX(n),(n[cr.ExtraData][2]||[]).map(i=>"string"==typeof i?Sk(i):[Sk(i[0]),Sk(i[1])])}(n),w=function pwe(t,n,e){const i=F2(t);ZX(i);const o=Mu([i[cr.ExtraData][0],i[cr.ExtraData][1]],n)||[];return Mu(o,e)||[]}(n,r,i),E=f.findIndex(B=>{if(Array.isArray(B)){const[Z,ee]=B,be=a>=Z.hours&&c>=Z.minutes,_e=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Al.Short:return(r>=0?"+":"")+xh(a,2,o)+xh(Math.abs(r%60),2,o);case Al.ShortGMT:return"GMT"+(r>=0?"+":"")+xh(a,1,o);case Al.Long:return"GMT"+(r>=0?"+":"")+xh(a,2,o)+":"+xh(Math.abs(r%60),2,o);case Al.Extended:return 0===i?"Z":(r>=0?"+":"")+xh(a,2,o)+":"+xh(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function JX(t){return Jw(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Pk(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{const o=JX(e),a=function Mwe(t){const n=Jw(t,0,1).getDay();return Jw(t,0,1+(n<=4?4:11)-n)}(o.getFullYear()),c=o.getTime()-a.getTime();r=1+Math.round(c/6048e5)}return xh(r,t,wu(i,_o.MinusSign))}}function iM(t,n=!1){return function(e,i){return xh(JX(e).getFullYear(),t,wu(i,_o.MinusSign),n)}}const Ek={};function e$(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function t$(t){return t instanceof Date&&!isNaN(t.valueOf())}function o$(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}let Qa=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,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&&(w9(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 ${Yo(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(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(de(qd),de(kf),de(gi),de(Uc))},t.\u0275dir=nn({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Gwe{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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 vo=(()=>{class t{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Gwe(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===o?void 0:o);else if(null!==o){const c=i.get(o);i.move(c,a),a$(c,r)}});for(let r=0,o=i.length;r{a$(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(de(As),de(Ks),de(qd))},t.\u0275dir=nn({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function a$(t,n){t.context.$implicit=n.item}let er=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new Ywe,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){s$("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){s$("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(de(As),de(Ks))},t.\u0275dir=nn({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Ywe{constructor(){this.$implicit=null,this.ngIf=null}}function s$(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Yo(n)}'.`)}class Ik{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let V2=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new Ik(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(de(As),de(Ks),de(V2,9))},t.\u0275dir=nn({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),c$=(()=>{class t{constructor(e,i,r){r._addDefault(new Ik(e,i))}}return t.\u0275fac=function(e){return new(e||t)(de(As),de(Ks),de(V2,9))},t.\u0275dir=nn({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),_6=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,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[r,o]=e.split(".");null!=(i=null!=i&&o?`${i}${o}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(kf),de(Uc))},t.\u0275dir=nn({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),v6=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)(de(As))},t.\u0275dir=nn({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[$r]}),t})();function yh(t,n){return new ye(2100,"")}class jwe{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}onDestroy(n){n.unsubscribe()}}class Wwe{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}onDestroy(n){}}const qwe=new Wwe,Xwe=new jwe;let oM=(()=>{class t{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(O9(e))return qwe;if(EW(e))return Xwe;throw yh()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(de(Do,16))},t.\u0275pipe=Ga({name:"async",type:t,pure:!1}),t})();const Jwe=new jn("DATE_PIPE_DEFAULT_TIMEZONE");let d$=(()=>{class t{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",r,o){var a;if(null==e||""===e||e!=e)return null;try{return Cwe(e,i,o||this.locale,null!==(a=null!=r?r:this.defaultTimezone)&&void 0!==a?a:void 0)}catch(c){throw yh()}}}return t.\u0275fac=function(e){return new(e||t)(de(Fp,16),de(Jwe,24))},t.\u0275pipe=Ga({name:"date",type:t,pure:!0}),t})(),ta=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})();const h$="browser";function Dl(t){return t===h$}function If(t){return"server"===t}let pMe=(()=>{class t{}return t.\u0275prov=yt({token:t,providedIn:"root",factory:()=>new fMe(Rt(Xr),window)}),t})();class fMe{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function gMe(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=p$(this.window.history)||p$(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function p$(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class f${}class zk extends class mMe extends class Kye{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function Qye(t){$w||($w=t)}(new zk)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function _Me(){return G9=G9||document.querySelector("base"),G9?G9.getAttribute("href"):null}();return null==e?null:function vMe(t){aM=aM||document.createElement("a"),aM.setAttribute("href",t);const n=aM.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){G9=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return o$(document.cookie,n)}}let aM,G9=null;const g$=new jn("TRANSITION_ID"),bMe=[{provide:Ww,useFactory:function CMe(t,n,e){return()=>{e.get(lk).donePromise.then(()=>{const i=T0(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},$o.getAllAngularTestabilities=()=>n.getAllTestabilities(),$o.getAllAngularRootElements=()=>n.getAllRootElements(),$o.frameworkStabilizers||($o.frameworkStabilizers=[]),$o.frameworkStabilizers.push(i=>{const r=$o.getAllAngularTestabilities();let o=r.length,a=!1;const c=function(u){a=a||u,o--,0==o&&i(a)};r.forEach(function(u){u.whenStable(c)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const r=n.getTestability(e);return null!=r?r:i?T0().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let xMe=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();const sM=new jn("EventManagerPlugins");let cM=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),Y9=(()=>{class t extends _${constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const a=this._doc.createElement("style");a.textContent=o,r.push(i.appendChild(a))})}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(v$),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(v$))}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();function v$(t){T0().remove(t)}const Hk={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Vk=/%COMP%/g;function lM(t,n,e){for(let i=0;i{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let dM=(()=>{class t{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Bk(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case _s.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new PMe(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case _s.ShadowDom:return new EMe(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=lM(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Rt(cM),Rt(Y9),Rt(z9))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();class Bk{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(Hk[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=Hk[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=Hk[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Q1.DashCase|Q1.Important)?n.style.setProperty(e,i,r&Q1.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Q1.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,x$(i)):this.eventManager.addEventListener(n,e,x$(i))}}class PMe extends Bk{constructor(n,e,i,r){super(n),this.component=i;const o=lM(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function MMe(t){return"_ngcontent-%COMP%".replace(Vk,t)}(r+"-"+i.id),this.hostAttr=function OMe(t){return"_nghost-%COMP%".replace(Vk,t)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class EMe extends Bk{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=lM(r.id,r.styles,[]);for(let a=0;a{class t extends m${constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();const w$=["alt","control","meta","shift"],DMe={"\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"},M$={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"},LMe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let kMe=(()=>{class t extends m${constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),a=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>T0().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let a="";if(w$.forEach(u=>{const f=i.indexOf(u);f>-1&&(i.splice(f,1),a+=u+".")}),a+=o,0!=i.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=a,c}static getEventFullKey(e){let i="",r=function IMe(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&M$.hasOwnProperty(n)&&(n=M$[n]))}return DMe[n]||n}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),w$.forEach(o=>{o!=r&&LMe[o](e)&&(i+=o+".")}),i+=r,i}static eventCallback(e,i,r){return o=>{t.getEventFullKey(o)===e&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();const FMe=DX(qye,"browser",[{provide:Tl,useValue:h$},{provide:MX,useValue:function NMe(){zk.makeCurrent(),Fk.init()},multi:!0},{provide:Xr,useFactory:function zMe(){return function p0(t){St=t}(document),document},deps:[]}]),HMe=[{provide:ui,useValue:"root"},{provide:w0,useFactory:function RMe(){return new w0},deps:[]},{provide:sM,useClass:TMe,multi:!0,deps:[Xr,ji,Tl]},{provide:sM,useClass:kMe,multi:!0,deps:[Xr]},{provide:dM,useClass:dM,deps:[cM,Y9,z9]},{provide:D9,useExisting:dM},{provide:_$,useExisting:Y9},{provide:Y9,useClass:Y9,deps:[Xr]},{provide:gk,useClass:gk,deps:[ji]},{provide:cM,useClass:cM,deps:[sM,ji]},{provide:f$,useClass:xMe,deps:[]}];let Gk=(()=>{class t{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:t,providers:[{provide:z9,useValue:e.appId},{provide:g$,useExisting:z9},bMe]}}}return t.\u0275fac=function(e){return new(e||t)(Rt(t,12))},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:HMe,imports:[ta,Xye]}),t})();"undefined"!=typeof window&&window;let U9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){let i=null;return i=e?new(e||t):Rt(P$),i},providedIn:"root"}),t})(),P$=(()=>{class t extends U9{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Ya.NONE:return i;case Ya.HTML:return vu(i,"HTML")?k2(i):wy(this._doc,String(i)).toString();case Ya.STYLE:return vu(i,"Style")?k2(i):i;case Ya.SCRIPT:if(vu(i,"Script"))return k2(i);throw new Error("unsafe value used in a script context");case Ya.URL:return hy(i),vu(i,"URL")?k2(i):xg(String(i));case Ya.RESOURCE_URL:if(vu(i,"ResourceURL"))return k2(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 aD(t){return new tD(t)}(e)}bypassSecurityTrustStyle(e){return function py(t){return new nD(t)}(e)}bypassSecurityTrustScript(e){return function fy(t){return new iD(t)}(e)}bypassSecurityTrustUrl(e){return function gy(t){return new rD(t)}(e)}bypassSecurityTrustResourceUrl(e){return function sD(t){return new oD(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr))},t.\u0275prov=yt({token:t,factory:function(e){let i=null;return i=e?new e:function $Me(t){return new P$(t.get(Xr))}(Rt(hs)),i},providedIn:"root"}),t})();function Ir(...t){return Jo(t,qa(t))}function Rf(t,n){return ue(n)?ba(t,n,1):ba(t,1)}function zo(t,n){return Ce((e,i)=>{let r=0;e.subscribe(Be(i,o=>t.call(n,o,r++)&&i.next(o)))})}class E${}class T${}class A0{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof A0?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new A0;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof A0?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(c=>-1===o.indexOf(c)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class QMe{encodeKey(n){return A$(n)}encodeValue(n){return A$(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const ZMe=/%(\d[a-f0-9])/gi,JMe={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function A$(t){return encodeURIComponent(t).replace(ZMe,(n,e)=>{var i;return null!==(i=JMe[e])&&void 0!==i?i:n})}function D$(t){return`${t}`}class B2{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new QMe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function KMe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,c]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],u=e.get(a)||[];u.push(c),e.set(a,u)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new B2({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(D$(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(D$(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class eOe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function L$(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function k$(t){return"undefined"!=typeof Blob&&t instanceof Blob}function I$(t){return"undefined"!=typeof FormData&&t instanceof FormData}class j9{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function tOe(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new A0),this.context||(this.context=new eOe),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const c=e.indexOf("?");this.urlWithParams=e+(-1===c?"?":cB.set(Z,n.setHeaders[Z]),f)),n.setParams&&(w=Object.keys(n.setParams).reduce((B,Z)=>B.set(Z,n.setParams[Z]),w)),new j9(i,r,a,{params:w,headers:f,context:E,reportProgress:u,responseType:o,withCredentials:c})}}var Wc=(()=>((Wc=Wc||{})[Wc.Sent=0]="Sent",Wc[Wc.UploadProgress=1]="UploadProgress",Wc[Wc.ResponseHeader=2]="ResponseHeader",Wc[Wc.DownloadProgress=3]="DownloadProgress",Wc[Wc.Response=4]="Response",Wc[Wc.User=5]="User",Wc))();class Uk{constructor(n,e=200,i="OK"){this.headers=n.headers||new A0,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class jk extends Uk{constructor(n={}){super(n),this.type=Wc.ResponseHeader}clone(n={}){return new jk({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class W9 extends Uk{constructor(n={}){super(n),this.type=Wc.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new W9({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class uM extends Uk{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Wk(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Xd=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof j9)o=e;else{let u,f;u=r.headers instanceof A0?r.headers:new A0(r.headers),r.params&&(f=r.params instanceof B2?r.params:new B2({fromObject:r.params})),o=new j9(e,i,void 0!==r.body?r.body:null,{headers:u,context:r.context,params:f,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=Ir(o).pipe(Rf(u=>this.handler.handle(u)));if(e instanceof j9||"events"===r.observe)return a;const c=a.pipe(zo(u=>u instanceof W9));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(Qe(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(Qe(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(Qe(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return c.pipe(Qe(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${r.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 B2).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Wk(r,i))}post(e,i,r={}){return this.request("POST",e,Wk(r,i))}put(e,i,r={}){return this.request("PUT",e,Wk(r,i))}}return t.\u0275fac=function(e){return new(e||t)(Rt(E$))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();class N${constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const qk=new jn("HTTP_INTERCEPTORS");let Xk,iOe=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),rOe=0;class R${}let z$=(()=>{class t{constructor(e,i){this.callbackMap=e,this.document=i,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+rOe++}handle(e){if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");return new At(i=>{const r=this.nextCallback(),o=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${r}$1`),a=this.document.createElement("script");a.src=o;let c=null,u=!1;this.callbackMap[r]=B=>{delete this.callbackMap[r],c=B,u=!0};const f=()=>{a.parentNode&&a.parentNode.removeChild(a),delete this.callbackMap[r]};return a.addEventListener("load",B=>{this.resolvedPromise.then(()=>{f(),u?(i.next(new W9({body:c,status:200,statusText:"OK",url:o})),i.complete()):i.error(new uM({url:o,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),a.addEventListener("error",B=>{f(),i.error(new uM({error:B,status:0,statusText:"JSONP Error",url:o}))}),this.document.body.appendChild(a),i.next({type:Wc.Sent}),()=>{u||this.removeListeners(a),f()}})}removeListeners(e){Xk||(Xk=this.document.implementation.createHTMLDocument()),Xk.adoptNode(e)}}return t.\u0275fac=function(e){return new(e||t)(Rt(R$),Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),cOe=(()=>{class t{constructor(e){this.jsonp=e}intercept(e,i){return"JSONP"===e.method?this.jsonp.handle(e):i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(Rt(z$))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();const lOe=/^\)\]\}',?\n/;let F$=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new At(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((Z,ee)=>r.setRequestHeader(Z,ee.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const Z=e.detectContentTypeHeader();null!==Z&&r.setRequestHeader("Content-Type",Z)}if(e.responseType){const Z=e.responseType.toLowerCase();r.responseType="json"!==Z?Z:"text"}const o=e.serializeBody();let a=null;const c=()=>{if(null!==a)return a;const Z=r.statusText||"OK",ee=new A0(r.getAllResponseHeaders()),be=function dOe(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new jk({headers:ee,status:r.status,statusText:Z,url:be}),a},u=()=>{let{headers:Z,status:ee,statusText:be,url:_e}=c(),Pe=null;204!==ee&&(Pe=void 0===r.response?r.responseText:r.response),0===ee&&(ee=Pe?200:0);let Ie=ee>=200&&ee<300;if("json"===e.responseType&&"string"==typeof Pe){const ge=Pe;Pe=Pe.replace(lOe,"");try{Pe=""!==Pe?JSON.parse(Pe):null}catch(Re){Pe=ge,Ie&&(Ie=!1,Pe={error:Re,text:Pe})}}Ie?(i.next(new W9({body:Pe,headers:Z,status:ee,statusText:be,url:_e||void 0})),i.complete()):i.error(new uM({error:Pe,headers:Z,status:ee,statusText:be,url:_e||void 0}))},f=Z=>{const{url:ee}=c(),be=new uM({error:Z,status:r.status||0,statusText:r.statusText||"Unknown Error",url:ee||void 0});i.error(be)};let w=!1;const E=Z=>{w||(i.next(c()),w=!0);let ee={type:Wc.DownloadProgress,loaded:Z.loaded};Z.lengthComputable&&(ee.total=Z.total),"text"===e.responseType&&!!r.responseText&&(ee.partialText=r.responseText),i.next(ee)},B=Z=>{let ee={type:Wc.UploadProgress,loaded:Z.loaded};Z.lengthComputable&&(ee.total=Z.total),i.next(ee)};return r.addEventListener("load",u),r.addEventListener("error",f),r.addEventListener("timeout",f),r.addEventListener("abort",f),e.reportProgress&&(r.addEventListener("progress",E),null!==o&&r.upload&&r.upload.addEventListener("progress",B)),r.send(o),i.next({type:Wc.Sent}),()=>{r.removeEventListener("error",f),r.removeEventListener("abort",f),r.removeEventListener("load",u),r.removeEventListener("timeout",f),e.reportProgress&&(r.removeEventListener("progress",E),null!==o&&r.upload&&r.upload.removeEventListener("progress",B)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Rt(f$))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();const $k=new jn("XSRF_COOKIE_NAME"),Qk=new jn("XSRF_HEADER_NAME");class H${}let uOe=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,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=o$(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr),Rt(Tl),Rt($k))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),Kk=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(Rt(H$),Rt(Qk))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),hOe=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(qk,[]);this.chain=i.reduceRight((r,o)=>new N$(r,o),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(Rt(T$),Rt(hs))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();function pOe(){return"object"==typeof window?window:{}}let fOe=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Kk,useClass:iOe}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:$k,useValue:e.cookieName}:[],e.headerName?{provide:Qk,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[Kk,{provide:qk,useExisting:Kk,multi:!0},{provide:H$,useClass:uOe},{provide:$k,useValue:"XSRF-TOKEN"},{provide:Qk,useValue:"X-XSRF-TOKEN"}]}),t})(),gOe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[Xd,{provide:E$,useClass:hOe},F$,{provide:T$,useExisting:F$}],imports:[[fOe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),mOe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[z$,{provide:R$,useFactory:pOe},{provide:qk,useClass:cOe,multi:!0}]}),t})();class Zk{}const Bp="*";function sa(t,n){return{type:7,name:t,definitions:n,options:{}}}function gr(t,n=null){return{type:4,styles:n,timings:t}}function Vg(t,n=null){return{type:3,steps:t,options:n}}function q9(t,n=null){return{type:2,steps:t,options:n}}function Wn(t){return{type:6,styles:t,offset:null}}function Nr(t,n,e){return{type:0,name:t,styles:n,options:e}}function Bg(t){return{type:5,steps:t}}function Cr(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function O1(t=null){return{type:9,options:t}}function Ea(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function Jk(t,n){return{type:12,timings:t,animation:n}}function V$(t){Promise.resolve(null).then(t)}class X9{constructor(n=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=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){V$(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class B${constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?V$(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++i==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,c)=>Math.max(a,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const Aa=!1;function G$(t){return new ye(3e3,Aa)}function JOe(){return"undefined"!=typeof window&&void 0!==window.document}function tI(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function zf(t){switch(t.length){case 0:return new X9;case 1:return t[0];default:return new B$(t)}}function Y$(t,n,e,i,r={},o={}){const a=[],c=[];let u=-1,f=null;if(i.forEach(w=>{const E=w.offset,B=E==u,Z=B&&f||{};Object.keys(w).forEach(ee=>{let be=ee,_e=w[ee];if("offset"!==ee)switch(be=n.normalizePropertyName(be,a),_e){case"!":_e=r[ee];break;case Bp:_e=o[ee];break;default:_e=n.normalizeStyleValue(ee,be,_e,a)}Z[be]=_e}),B||c.push(Z),f=Z,u=E}),a.length)throw function GOe(t){return new ye(3502,Aa)}();return c}function nI(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&iI(e,"start",t)));break;case"done":t.onDone(()=>i(e&&iI(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&iI(e,"destroy",t)))}}function iI(t,n,e){const i=e.totalTime,o=rI(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),a=t._data;return null!=a&&(o._data=a),o}function rI(t,n,e,i,r="",o=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function $d(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function U$(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let oI=(t,n)=>!1,j$=(t,n,e)=>[],W$=null;function aI(t){const n=t.parentNode||t.host;return n===W$?null:n}(tI()||"undefined"!=typeof Element)&&(JOe()?(W$=(()=>document.documentElement)(),oI=(t,n)=>{for(;n;){if(n===t)return!0;n=aI(n)}return!1}):oI=(t,n)=>t.contains(n),j$=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Gg=null,q$=!1;function X$(t){Gg||(Gg=function tSe(){return"undefined"!=typeof document?document.body:null}()||{},q$=!!Gg.style&&"WebkitAppearance"in Gg.style);let n=!0;return Gg.style&&!function eSe(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Gg.style,!n&&q$&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Gg.style)),n}const $$=oI,Q$=j$;let K$=(()=>{class t{validateStyleProperty(e){return X$(e)}matchesElement(e,i){return!1}containsElement(e,i){return $$(e,i)}getParentElement(e){return aI(e)}query(e,i,r){return Q$(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,a,c=[],u){return new X9(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),sI=(()=>{class t{}return t.NOOP=new K$,t})();const cI="ng-enter",pM="ng-leave",fM="ng-trigger",gM=".ng-trigger",J$="ng-animating",lI=".ng-animating";function Yg(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:dI(parseFloat(n[1]),n[2])}function dI(t,n){return"s"===n?1e3*t:t}function mM(t,n,e){return t.hasOwnProperty("duration")?t:function rSe(t,n,e){let r,o=0,a="";if("string"==typeof t){const c=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return n.push(G$()),{duration:0,delay:0,easing:""};r=dI(parseFloat(c[1]),c[2]);const u=c[3];null!=u&&(o=dI(parseFloat(u),c[4]));const f=c[5];f&&(a=f)}else r=t;if(!e){let c=!1,u=n.length;r<0&&(n.push(function bOe(){return new ye(3100,Aa)}()),c=!0),o<0&&(n.push(function xOe(){return new ye(3101,Aa)}()),c=!0),c&&n.splice(u,0,G$())}return{duration:r,delay:o,easing:a}}(t,n,e)}function C6(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function Ff(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else C6(t,e);return e}function tQ(t,n,e){return e?n+":"+e+";":""}function nQ(t){let n="";for(let e=0;e{const r=hI(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[r]),t.style[r]=n[i]}),tI()&&nQ(t))}function Ug(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=hI(e);t.style[i]=""}),tI()&&nQ(t))}function $9(t){return Array.isArray(t)?1==t.length?t[0]:q9(t):t}const uI=new RegExp("{{\\s*(.+?)\\s*}}","g");function iQ(t){let n=[];if("string"==typeof t){let e;for(;e=uI.exec(t);)n.push(e[1]);uI.lastIndex=0}return n}function _M(t,n,e){const i=t.toString(),r=i.replace(uI,(o,a)=>{let c=n[a];return n.hasOwnProperty(a)||(e.push(function wOe(t){return new ye(3003,Aa)}()),c=""),c.toString()});return r==i?t:r}function vM(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const aSe=/-+([a-z0-9])/g;function hI(t){return t.replace(aSe,(...n)=>n[1].toUpperCase())}function sSe(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Qd(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function MOe(t){return new ye(3004,Aa)}()}}function rQ(t,n){return window.getComputedStyle(t)[n]}function pSe(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function fSe(t,n,e){if(":"==t[0]){const u=function gSe(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof u)return void n.push(u);t=u}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function zOe(t){return new ye(3015,Aa)}()),n;const r=i[1],o=i[2],a=i[3];n.push(oQ(r,a));"<"==o[0]&&!("*"==r&&"*"==a)&&n.push(oQ(a,r))}(i,e,n)):e.push(t),e}const yM=new Set(["true","1"]),wM=new Set(["false","0"]);function oQ(t,n){const e=yM.has(t)||wM.has(t),i=yM.has(n)||wM.has(n);return(r,o)=>{let a="*"==t||t==r,c="*"==n||n==o;return!a&&e&&"boolean"==typeof r&&(a=r?yM.has(t):wM.has(t)),!c&&i&&"boolean"==typeof o&&(c=o?yM.has(n):wM.has(n)),a&&c}}const mSe=new RegExp("s*:selfs*,?","g");function pI(t,n,e,i){return new _Se(t).build(n,e,i)}class _Se{constructor(n){this._driver=n}build(n,e,i){const r=new bSe(e);this._resetContextStyleTimingState(r);const o=Qd(this,$9(n),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),o}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function SOe(){return new ye(3006,Aa)}()),n.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const u=c,f=u.name;f.toString().split(/\s*,\s*/).forEach(w=>{u.name=w,o.push(this.visitState(u,e))}),u.name=f}else if(1==c.type){const u=this.visitTransition(c,e);i+=u.queryCount,r+=u.depCount,a.push(u)}else e.errors.push(function POe(){return new ye(3007,Aa)}())}),{type:7,name:n.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,a=r||{};i.styles.forEach(c=>{if(MM(c)){const u=c;Object.keys(u).forEach(f=>{iQ(u[f]).forEach(w=>{a.hasOwnProperty(w)||o.add(w)})})}}),o.size&&(vM(o.values()),e.errors.push(function EOe(t,n){return new ye(3008,Aa)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Qd(this,$9(n.animation),e);return{type:1,matchers:pSe(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:jg(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>Qd(this,i,e)),options:jg(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(a=>{e.currentTime=i;const c=Qd(this,a,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:o,options:jg(n.options)}}visitAnimate(n,e){const i=function ySe(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return fI(mM(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=fI(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=mM(e,n);return fI(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Wn({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=n.styles,c=!1;if(!a){c=!0;const f={};i.easing&&(f.easing=i.easing),a=Wn(f)}e.currentTime+=i.duration+i.delay;const u=this.visitStyle(a,e);u.isEmptyStep=c,r=u}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(a=>{"string"==typeof a?a==Bp?i.push(a):e.errors.push(function TOe(t){return new ye(3002,Aa)}()):i.push(a)}):i.push(n.styles);let r=!1,o=null;return i.forEach(a=>{if(MM(a)){const c=a,u=c.easing;if(u&&(o=u,delete c.easing),!r)for(let f in c)if(c[f].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:o,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&Object.keys(a).forEach(c=>{if(!this._driver.validateStyleProperty(c))return delete a[c],void e.unsupportedCSSPropertiesFound.add(c);const u=e.collectedStyles[e.currentQuerySelector],f=u[c];let w=!0;f&&(o!=r&&o>=f.startTime&&r<=f.endTime&&(e.errors.push(function AOe(t,n,e,i,r){return new ye(3010,Aa)}()),w=!1),o=f.startTime),w&&(u[c]={startTime:o,endTime:r}),e.options&&function oSe(t,n,e){const i=n.params||{},r=iQ(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function yOe(t){return new ye(3001,Aa)}())})}(a[c],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function DOe(){return new ye(3011,Aa)}()),i;let o=0;const a=[];let c=!1,u=!1,f=0;const w=n.steps.map(Pe=>{const Ie=this._makeStyleAst(Pe,e);let ge=null!=Ie.offset?Ie.offset:function xSe(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(MM(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(MM(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(Ie.styles),Re=0;return null!=ge&&(o++,Re=Ie.offset=ge),u=u||Re<0||Re>1,c=c||Re0&&o{const ge=B>0?Ie==Z?1:B*Ie:a[Ie],Re=ge*_e;e.currentTime=ee+be.delay+Re,be.duration=Re,this._validateStyleAst(Pe,e),Pe.offset=ge,i.styles.push(Pe)}),i}visitReference(n,e){return{type:8,animation:Qd(this,$9(n.animation),e),options:jg(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:jg(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:jg(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,a]=function vSe(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(mSe,"")),t=t.replace(/@\*/g,gM).replace(/@\w+/g,e=>gM+"-"+e.substr(1)).replace(/:animating/g,lI),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,$d(e.collectedStyles,e.currentQuerySelector,{});const c=Qd(this,$9(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:c,originalSelector:n.selector,options:jg(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function NOe(){return new ye(3013,Aa)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:mM(n.timings,e.errors,!0);return{type:12,animation:Qd(this,$9(n.animation),e),timings:i,options:null}}}class bSe{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function MM(t){return!Array.isArray(t)&&"object"==typeof t}function jg(t){return t?(t=C6(t)).params&&(t.params=function CSe(t){return t?C6(t):null}(t.params)):t={},t}function fI(t,n,e){return{duration:t,delay:n,easing:e}}function gI(t,n,e,i,r,o,a=null,c=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:c}}class OM{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const OSe=new RegExp(":enter","g"),PSe=new RegExp(":leave","g");function mI(t,n,e,i,r,o={},a={},c,u,f=[]){return(new ESe).buildKeyframes(t,n,e,i,r,o,a,c,u,f)}class ESe{buildKeyframes(n,e,i,r,o,a,c,u,f,w=[]){f=f||new OM;const E=new _I(n,e,f,r,o,w,[]);E.options=u,E.currentTimeline.setStyles([a],null,E.errors,u),Qd(this,i,E);const B=E.timelines.filter(Z=>Z.containsAnimation());if(Object.keys(c).length){let Z;for(let ee=B.length-1;ee>=0;ee--){const be=B[ee];if(be.element===e){Z=be;break}}Z&&!Z.allowOnlyTimelineStyles()&&Z.setStyles([c],null,E.errors,u)}return B.length?B.map(Z=>Z.buildKeyframes()):[gI(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const a=null!=i.duration?Yg(i.duration):null,c=null!=i.delay?Yg(i.delay):null;return 0!==a&&n.forEach(u=>{const f=e.appendInstructionToTimeline(u,a,c);o=Math.max(o,f.duration+f.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),Qd(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=SM);const a=Yg(o.delay);r.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>Qd(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Yg(n.options.delay):0;n.steps.forEach(a=>{const c=e.createSubContext(n.options);o&&c.delayNextStep(o),Qd(this,a,c),r=Math.max(r,c.currentTimeline.currentTime),i.push(c.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return mM(e.params?_M(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,c=e.createSubContext().currentTimeline;c.easing=i.easing,n.styles.forEach(u=>{c.forwardTime((u.offset||0)*o),c.setStyles(u.styles,u.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Yg(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=SM);let a=i;const c=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let u=null;c.forEach((f,w)=>{e.currentQueryIndex=w;const E=e.createSubContext(n.options,f);o&&E.delayNextStep(o),f===e.element&&(u=E.currentTimeline),Qd(this,n.animation,E),E.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,E.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,a=Math.abs(o.duration),c=a*(e.currentQueryTotal-1);let u=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=c-u;break;case"full":u=i.currentStaggerTime}const w=e.currentTimeline;u&&w.delayNextStep(u);const E=w.currentTime;Qd(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-E+(r.startTime-i.currentTimeline.startTime)}}const SM={};class _I{constructor(n,e,i,r,o,a,c,u){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=SM,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new PM(this._driver,e,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Yg(i.duration)),null!=i.delay&&(r.delay=Yg(i.delay));const o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(c=>{(!e||!a.hasOwnProperty(c))&&(a[c]=_M(o[c],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new _I(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=SM,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},o=new TSe(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,a){let c=[];if(r&&c.push(this.element),n.length>0){n=(n=n.replace(OSe,"."+this._enterClassName)).replace(PSe,"."+this._leaveClassName);let f=this._driver.query(this.element,n,1!=i);0!==i&&(f=i<0?f.slice(f.length+i,f.length):f.slice(0,i)),c.push(...f)}return!o&&0==c.length&&a.push(function ROe(t){return new ye(3014,Aa)}()),c}}class PM{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new PM(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Bp,this._currentKeyframe[e]=Bp}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&(this._previousKeyframe.easing=e);const o=r&&r.params||{},a=function ASe(t,n){const e={};let i;return t.forEach(r=>{"*"===r?(i=i||Object.keys(n),i.forEach(o=>{e[o]=Bp})):Ff(r,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(a).forEach(c=>{const u=_M(a[c],o,i);this._pendingStyles[c]=u,this._localTimelineStyles.hasOwnProperty(c)||(this._backFill[c]=this._globalTimelineStyles.hasOwnProperty(c)?this._globalTimelineStyles[c]:Bp),this._updateStyle(c,u)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=n._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,u)=>{const f=Ff(c,!0);Object.keys(f).forEach(w=>{const E=f[w];"!"==E?n.add(w):E==Bp&&e.add(w)}),i||(f.offset=u/this.duration),r.push(f)});const o=n.size?vM(n.values()):[],a=e.size?vM(e.values()):[];if(i){const c=r[0],u=C6(c);c.offset=0,u.offset=1,r=[c,u]}return gI(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class TSe extends PM{constructor(n,e,i,r,o,a,c=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=c,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=i+e,c=e/a,u=Ff(n[0],!1);u.offset=0,o.push(u);const f=Ff(n[0],!1);f.offset=cQ(c),o.push(f);const w=n.length-1;for(let E=1;E<=w;E++){let B=Ff(n[E],!1);B.offset=cQ((e+B.offset*i)/a),o.push(B)}i=a,e=0,r="",n=o}return gI(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function cQ(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class vI{}class DSe extends vI{normalizePropertyName(n,e){return hI(n)}normalizeStyleValue(n,e,i,r){let o="";const a=i.toString().trim();if(LSe[e]&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const c=i.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function OOe(t,n){return new ye(3005,Aa)}())}return a+o}}const LSe=(()=>function kSe(t){const n={};return t.forEach(e=>n[e]=!0),n}("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 lQ(t,n,e,i,r,o,a,c,u,f,w,E,B){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:a,timelines:c,queriedElements:u,preStyleProps:f,postStyleProps:w,totalTime:E,errors:B}}const CI={};class dQ{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function ISe(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){const r=this._stateStyles["*"],o=this._stateStyles[n],a=r?r.buildStyles(e,i):{};return o?o.buildStyles(e,i):a}build(n,e,i,r,o,a,c,u,f,w){const E=[],B=this.ast.options&&this.ast.options.params||CI,ee=this.buildStyles(i,c&&c.params||CI,E),be=u&&u.params||CI,_e=this.buildStyles(r,be,E),Pe=new Set,Ie=new Map,ge=new Map,Re="void"===r,Ye={params:Object.assign(Object.assign({},B),be)},Je=w?[]:mI(n,e,this.ast.animation,o,a,ee,_e,Ye,f,E);let gt=0;if(Je.forEach(_t=>{gt=Math.max(_t.duration+_t.delay,gt)}),E.length)return lQ(e,this._triggerName,i,r,Re,ee,_e,[],[],Ie,ge,gt,E);Je.forEach(_t=>{const Yt=_t.element,tn=$d(Ie,Yt,{});_t.preStyleProps.forEach(Wt=>tn[Wt]=!0);const _n=$d(ge,Yt,{});_t.postStyleProps.forEach(Wt=>_n[Wt]=!0),Yt!==e&&Pe.add(Yt)});const ft=vM(Pe.values());return lQ(e,this._triggerName,i,r,Re,ee,_e,Je,ft,Ie,ge,gt)}}class NSe{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},r=C6(this.defaultParams);return Object.keys(n).forEach(o=>{const a=n[o];null!=a&&(r[o]=a)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const a=o;Object.keys(a).forEach(c=>{let u=a[c];u.length>1&&(u=_M(u,r,e));const f=this.normalizer.normalizePropertyName(c,e);u=this.normalizer.normalizeStyleValue(c,f,u,e),i[f]=u})}}),i}}class zSe{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new NSe(r.style,r.options&&r.options.params||{},i)}),uQ(this.states,"true","1"),uQ(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new dQ(n,r,this.states))}),this.fallbackTransition=function FSe(t,n,e){return new dQ(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,c)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(a=>a.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function uQ(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const HSe=new OM;class VSe{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],o=pI(this._driver,e,i,[]);if(i.length)throw function YOe(t){return new ye(3503,Aa)}();this._animations[n]=o}_buildPlayer(n,e,i){const r=n.element,o=Y$(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations[n];let a;const c=new Map;if(o?(a=mI(this._driver,e,o,cI,pM,{},{},i,HSe,r),a.forEach(w=>{const E=$d(c,w.element,{});w.postStyleProps.forEach(B=>E[B]=null)})):(r.push(function UOe(){return new ye(3300,Aa)}()),a=[]),r.length)throw function jOe(t){return new ye(3504,Aa)}();c.forEach((w,E)=>{Object.keys(w).forEach(B=>{w[B]=this._driver.computeStyle(E,B,Bp)})});const f=zf(a.map(w=>{const E=c.get(w.element);return this._buildPlayer(w,{},E)}));return this._playersById[n]=f,f.onDestroy(()=>this.destroy(n)),this.players.push(f),f}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw function WOe(t){return new ye(3301,Aa)}();return e}listen(n,e,i,r){const o=rI(e,"","","");return nI(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const hQ="ng-animate-queued",bI="ng-animate-disabled",jSe=[],pQ={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},WSe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Su="__ng_removed";class xI{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function QSe(t){return null!=t?t:null}(i?n.value:n),i){const o=C6(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Q9="void",yI=new xI(Q9);class qSe{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Pu(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function qOe(t,n){return new ye(3302,Aa)}();if(null==i||0==i.length)throw function XOe(t){return new ye(3303,Aa)}();if(!function KSe(t){return"start"==t||"done"==t}(i))throw function $Oe(t,n){return new ye(3400,Aa)}();const o=$d(this._elementListeners,n,[]),a={name:e,phase:i,callback:r};o.push(a);const c=$d(this._engine.statesByElement,n,{});return c.hasOwnProperty(e)||(Pu(n,fM),Pu(n,fM+"-"+e),c[e]=yI),()=>{this._engine.afterFlush(()=>{const u=o.indexOf(a);u>=0&&o.splice(u,1),this._triggers[e]||delete c[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw function QOe(t){return new ye(3401,Aa)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),a=new wI(this.id,e,n);let c=this._engine.statesByElement.get(n);c||(Pu(n,fM),Pu(n,fM+"-"+e),this._engine.statesByElement.set(n,c={}));let u=c[e];const f=new xI(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&u&&f.absorbOptions(u.options),c[e]=f,u||(u=yI),f.value!==Q9&&u.value===f.value){if(!function ePe(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Ug(n,_e),D0(n,Pe)})}return}const B=$d(this._engine.playersByElement,n,[]);B.forEach(be=>{be.namespaceId==this.id&&be.triggerName==e&&be.queued&&be.destroy()});let Z=o.matchTransition(u.value,f.value,n,f.params),ee=!1;if(!Z){if(!r)return;Z=o.fallbackTransition,ee=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:Z,fromState:u,toState:f,player:a,isFallbackTransition:ee}),ee||(Pu(n,hQ),a.onStart(()=>{b6(n,hQ)})),a.onDone(()=>{let be=this.players.indexOf(a);be>=0&&this.players.splice(be,1);const _e=this._engine.playersByElement.get(n);if(_e){let Pe=_e.indexOf(a);Pe>=0&&_e.splice(Pe,1)}}),this.players.push(a),B.push(a),a}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,gM,!0);i.forEach(r=>{if(r[Su])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),a=new Map;if(o){const c=[];if(Object.keys(o).forEach(u=>{if(a.set(u,o[u].value),this._triggers[u]){const f=this.trigger(n,u,Q9,r);f&&c.push(f)}}),c.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&zf(c).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const u=this._triggers[a].fallbackTransition,f=i[a]||yI,w=new xI(Q9),E=new wI(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:u,fromState:f,toState:w,player:E,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Su];(!o||o===pQ)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Pu(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,a=this._elementListeners.get(o);a&&a.forEach(c=>{if(c.name==i.triggerName){const u=rI(o,i.triggerName,i.fromState.value,i.toState.value);u._data=n,nI(i.player,c.phase,u,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class XSe{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new qSe(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement,o=i.length-1;if(o>=0){let a=!1;if(void 0!==this.driver.getParentElement){let c=this.driver.getParentElement(e);for(;c;){const u=r.get(c);if(u){const f=i.indexOf(u);i.splice(f+1,0,n),a=!0;break}c=this.driver.getParentElement(c)}}else for(let c=o;c>=0;c--)if(this.driver.containsElement(i[c].hostElement,e)){i.splice(c+1,0,n),a=!0;break}a||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const r=Object.keys(i);for(let o=0;o=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Pu(n,bI)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),b6(n,bI))}removeNode(n,e,i,r){if(EM(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const a=this.namespacesByHostElement.get(e);a&&a.id!==n&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Su]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return EM(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,gM,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,lI,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return zf(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[Su];if(i&&i.setForRemoval){if(n[Su]=pQ,i.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}(null===(e=n.classList)||void 0===e?void 0:e.contains(bI))&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?zf(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function KOe(t){return new ye(3402,Aa)}()}_flushAnimations(n,e){const i=new OM,r=[],o=new Map,a=[],c=new Map,u=new Map,f=new Map,w=new Set;this.disabledNodes.forEach(bn=>{w.add(bn);const Kn=this.driver.query(bn,".ng-animate-queued",!0);for(let fi=0;fi{const fi=cI+be++;ee.set(Kn,fi),bn.forEach(oi=>Pu(oi,fi))});const _e=[],Pe=new Set,Ie=new Set;for(let bn=0;bnPe.add(oi)):Ie.add(Kn))}const ge=new Map,Re=mQ(B,Array.from(Pe));Re.forEach((bn,Kn)=>{const fi=pM+be++;ge.set(Kn,fi),bn.forEach(oi=>Pu(oi,fi))}),n.push(()=>{Z.forEach((bn,Kn)=>{const fi=ee.get(Kn);bn.forEach(oi=>b6(oi,fi))}),Re.forEach((bn,Kn)=>{const fi=ge.get(Kn);bn.forEach(oi=>b6(oi,fi))}),_e.forEach(bn=>{this.processLeaveNode(bn)})});const Ye=[],Je=[];for(let bn=this._namespaceList.length-1;bn>=0;bn--)this._namespaceList[bn].drainQueuedTransitions(e).forEach(fi=>{const oi=fi.player,wi=fi.element;if(Ye.push(oi),this.collectedEnterElements.length){const Si=wi[Su];if(Si&&Si.setForMove){if(Si.previousTriggersValues&&Si.previousTriggersValues.has(fi.triggerName)){const bo=Si.previousTriggersValues.get(fi.triggerName),ni=this.statesByElement.get(fi.element);ni&&ni[fi.triggerName]&&(ni[fi.triggerName].value=bo)}return void oi.destroy()}}const Li=!E||!this.driver.containsElement(E,wi),Ai=ge.get(wi),$i=ee.get(wi),Yn=this._buildInstruction(fi,i,$i,Ai,Li);if(Yn.errors&&Yn.errors.length)return void Je.push(Yn);if(Li)return oi.onStart(()=>Ug(wi,Yn.fromStyles)),oi.onDestroy(()=>D0(wi,Yn.toStyles)),void r.push(oi);if(fi.isFallbackTransition)return oi.onStart(()=>Ug(wi,Yn.fromStyles)),oi.onDestroy(()=>D0(wi,Yn.toStyles)),void r.push(oi);const mo=[];Yn.timelines.forEach(Si=>{Si.stretchStartingKeyframe=!0,this.disabledNodes.has(Si.element)||mo.push(Si)}),Yn.timelines=mo,i.append(wi,Yn.timelines),a.push({instruction:Yn,player:oi,element:wi}),Yn.queriedElements.forEach(Si=>$d(c,Si,[]).push(oi)),Yn.preStyleProps.forEach((Si,bo)=>{const ni=Object.keys(Si);if(ni.length){let vi=u.get(bo);vi||u.set(bo,vi=new Set),ni.forEach(zi=>vi.add(zi))}}),Yn.postStyleProps.forEach((Si,bo)=>{const ni=Object.keys(Si);let vi=f.get(bo);vi||f.set(bo,vi=new Set),ni.forEach(zi=>vi.add(zi))})});if(Je.length){const bn=[];Je.forEach(Kn=>{bn.push(function ZOe(t,n){return new ye(3505,Aa)}())}),Ye.forEach(Kn=>Kn.destroy()),this.reportError(bn)}const gt=new Map,ft=new Map;a.forEach(bn=>{const Kn=bn.element;i.has(Kn)&&(ft.set(Kn,Kn),this._beforeAnimationBuild(bn.player.namespaceId,bn.instruction,gt))}),r.forEach(bn=>{const Kn=bn.element;this._getPreviousPlayers(Kn,!1,bn.namespaceId,bn.triggerName,null).forEach(oi=>{$d(gt,Kn,[]).push(oi),oi.destroy()})});const _t=_e.filter(bn=>vQ(bn,u,f)),Yt=new Map;gQ(Yt,this.driver,Ie,f,Bp).forEach(bn=>{vQ(bn,u,f)&&_t.push(bn)});const _n=new Map;Z.forEach((bn,Kn)=>{gQ(_n,this.driver,new Set(bn),u,"!")}),_t.forEach(bn=>{const Kn=Yt.get(bn),fi=_n.get(bn);Yt.set(bn,Object.assign(Object.assign({},Kn),fi))});const Wt=[],An=[],Gn={};a.forEach(bn=>{const{element:Kn,player:fi,instruction:oi}=bn;if(i.has(Kn)){if(w.has(Kn))return fi.onDestroy(()=>D0(Kn,oi.toStyles)),fi.disabled=!0,fi.overrideTotalTime(oi.totalTime),void r.push(fi);let wi=Gn;if(ft.size>1){let Ai=Kn;const $i=[];for(;Ai=Ai.parentNode;){const Yn=ft.get(Ai);if(Yn){wi=Yn;break}$i.push(Ai)}$i.forEach(Yn=>ft.set(Yn,wi))}const Li=this._buildAnimation(fi.namespaceId,oi,gt,o,_n,Yt);if(fi.setRealPlayer(Li),wi===Gn)Wt.push(fi);else{const Ai=this.playersByElement.get(wi);Ai&&Ai.length&&(fi.parentPlayer=zf(Ai)),r.push(fi)}}else Ug(Kn,oi.fromStyles),fi.onDestroy(()=>D0(Kn,oi.toStyles)),An.push(fi),w.has(Kn)&&r.push(fi)}),An.forEach(bn=>{const Kn=o.get(bn.element);if(Kn&&Kn.length){const fi=zf(Kn);bn.setRealPlayer(fi)}}),r.forEach(bn=>{bn.parentPlayer?bn.syncPlayerEvents(bn.parentPlayer):bn.destroy()});for(let bn=0;bn<_e.length;bn++){const Kn=_e[bn],fi=Kn[Su];if(b6(Kn,pM),fi&&fi.hasAnimation)continue;let oi=[];if(c.size){let Li=c.get(Kn);Li&&Li.length&&oi.push(...Li);let Ai=this.driver.query(Kn,lI,!0);for(let $i=0;$i!Li.destroyed);wi.length?ZSe(this,Kn,wi):this.processLeaveNode(Kn)}return _e.length=0,Wt.forEach(bn=>{this.players.push(bn),bn.onDone(()=>{bn.destroy();const Kn=this.players.indexOf(bn);this.players.splice(Kn,1)}),bn.play()}),Wt}elementContainsData(n,e){let i=!1;const r=e[Su];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let a=[];if(e){const c=this.playersByQueriedElement.get(n);c&&(a=c)}else{const c=this.playersByElement.get(n);if(c){const u=!o||o==Q9;c.forEach(f=>{f.queued||!u&&f.triggerName!=r||a.push(f)})}}return(i||r)&&(a=a.filter(c=>!(i&&i!=c.namespaceId||r&&r!=c.triggerName))),a}_beforeAnimationBuild(n,e,i){const o=e.element,a=e.isRemovalTransition?void 0:n,c=e.isRemovalTransition?void 0:e.triggerName;for(const u of e.timelines){const f=u.element,w=f!==o,E=$d(i,f,[]);this._getPreviousPlayers(f,w,a,c,e.toState).forEach(Z=>{const ee=Z.getRealPlayer();ee.beforeDestroy&&ee.beforeDestroy(),Z.destroy(),E.push(Z)})}Ug(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,a){const c=e.triggerName,u=e.element,f=[],w=new Set,E=new Set,B=e.timelines.map(ee=>{const be=ee.element;w.add(be);const _e=be[Su];if(_e&&_e.removedBeforeQueried)return new X9(ee.duration,ee.delay);const Pe=be!==u,Ie=function JSe(t){const n=[];return _Q(t,n),n}((i.get(be)||jSe).map(gt=>gt.getRealPlayer())).filter(gt=>!!gt.element&>.element===be),ge=o.get(be),Re=a.get(be),Ye=Y$(0,this._normalizer,0,ee.keyframes,ge,Re),Je=this._buildPlayer(ee,Ye,Ie);if(ee.subTimeline&&r&&E.add(be),Pe){const gt=new wI(n,c,be);gt.setRealPlayer(Je),f.push(gt)}return Je});f.forEach(ee=>{$d(this.playersByQueriedElement,ee.element,[]).push(ee),ee.onDone(()=>function $Se(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,ee.element,ee))}),w.forEach(ee=>Pu(ee,J$));const Z=zf(B);return Z.onDestroy(()=>{w.forEach(ee=>b6(ee,J$)),D0(u,e.toStyles)}),E.forEach(ee=>{$d(r,ee,[]).push(Z)}),Z}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new X9(n.duration,n.delay)}}class wI{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new X9,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>nI(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){$d(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function EM(t){return t&&1===t.nodeType}function fQ(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function gQ(t,n,e,i,r){const o=[];e.forEach(u=>o.push(fQ(u)));const a=[];i.forEach((u,f)=>{const w={};u.forEach(E=>{const B=w[E]=n.computeStyle(f,E,r);(!B||0==B.length)&&(f[Su]=WSe,a.push(f))}),t.set(f,w)});let c=0;return e.forEach(u=>fQ(u,o[c++])),a}function mQ(t,n){const e=new Map;if(t.forEach(c=>e.set(c,[])),0==n.length)return e;const r=new Set(n),o=new Map;function a(c){if(!c)return 1;let u=o.get(c);if(u)return u;const f=c.parentNode;return u=e.has(f)?f:r.has(f)?1:a(f),o.set(c,u),u}return n.forEach(c=>{const u=a(c);1!==u&&e.get(u).push(c)}),e}function Pu(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function b6(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function ZSe(t,n,e){zf(e).onDone(()=>t.processLeaveNode(n))}function _Q(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class TM{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new XSe(n,e,i),this._timelineEngine=new VSe(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const a=n+"-"+r;let c=this._triggerCache[a];if(!c){const u=[],w=pI(this._driver,o,u,[]);if(u.length)throw function BOe(t,n){return new ye(3404,Aa)}();c=function RSe(t,n,e){return new zSe(t,n,e)}(r,w,this._normalizer),this._triggerCache[a]=c}this._transitionEngine.registerTrigger(e,r,c)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,a]=U$(i);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[a,c]=U$(i);return this._timelineEngine.listen(a,e,c,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let nPe=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&D0(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(D0(this._element,this._initialStyles),this._endStyles&&(D0(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ug(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ug(this._element,this._endStyles),this._endStyles=null),D0(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function MI(t){let n=null;const e=Object.keys(t);for(let i=0;in()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(n[i]=this._finished?e[i]:rQ(this.element,i))})}this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class rPe{validateStyleProperty(n){return X$(n)}matchesElement(n,e){return!1}containsElement(n,e){return $$(n,e)}getParentElement(n){return aI(n)}query(n,e,i){return Q$(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,a=[]){const u={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(u.easing=o);const f={},w=a.filter(B=>B instanceof CQ);(function cSe(t,n){return 0===t||0===n})(i,r)&&w.forEach(B=>{let Z=B.currentSnapshot;Object.keys(Z).forEach(ee=>f[ee]=Z[ee])}),e=function lSe(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let o=n[0],a=[];if(i.forEach(c=>{o.hasOwnProperty(c)||a.push(c),o[c]=e[c]}),a.length)for(var r=1;rFf(B,!1)),f);const E=function tPe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=MI(n[0]),n.length>1&&(i=MI(n[n.length-1]))):n&&(e=MI(n)),e||i?new nPe(t,e,i):null}(n,e);return new CQ(n,e,u,E)}}let oPe=(()=>{class t extends Zk{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:_s.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?q9(e):e;return bQ(this._renderer,null,i,"register",[r]),new aPe(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Rt(D9),Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();class aPe extends class _Oe{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new sPe(this._id,n,e||{},this._renderer)}}class sPe{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return bQ(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function bQ(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const xQ="@.disabled";let cPe=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,a)=>{const c=null==a?void 0:a.parentNode(o);c&&a.removeChild(c,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let w=this._rendererCache.get(o);return w||(w=new yQ("",o,this.engine),this._rendererCache.set(o,w)),w}const a=i.id,c=i.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const u=w=>{Array.isArray(w)?w.forEach(u):this.engine.registerTrigger(a,c,e,w.name,w)};return i.data.animation.forEach(u),new lPe(this,c,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,c]=o;a(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Rt(D9),Rt(TM),Rt(ji))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();class yQ{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==xQ?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class lPe extends yQ{constructor(n,e,i,r){super(e,i,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==xQ?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function dPe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.substr(1),a="";return"@"!=o.charAt(0)&&([o,a]=function uPe(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,c=>{this.factory.scheduleListenerCallback(c._data||-1,i,c)})}return this.delegate.listen(n,e,i)}}let hPe=(()=>{class t extends TM{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr),Rt(sI),Rt(vI))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();const $l=new jn("AnimationModuleType"),wQ=[{provide:Zk,useClass:oPe},{provide:vI,useFactory:function pPe(){return new DSe}},{provide:TM,useClass:hPe},{provide:D9,useFactory:function fPe(t,n,e){return new cPe(t,n,e)},deps:[dM,TM,ji]}],MQ=[{provide:sI,useFactory:()=>new rPe},{provide:$l,useValue:"BrowserAnimations"},...wQ],gPe=[{provide:sI,useClass:K$},{provide:$l,useValue:"NoopAnimations"},...wQ];let mPe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?gPe:MQ}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:MQ,imports:[Gk]}),t})();class mr extends z{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const{isArray:_Pe}=Array,{getPrototypeOf:vPe,prototype:CPe,keys:bPe}=Object;function OQ(t){if(1===t.length){const n=t[0];if(_Pe(n))return{args:n,keys:null};if(function xPe(t){return t&&"object"==typeof t&&vPe(t)===CPe}(n)){const e=bPe(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:yPe}=Array;function OI(t){return Qe(n=>function wPe(t,n){return yPe(n)?t(...n):t(n)}(t,n))}function SQ(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function K9(...t){const n=qa(t),e=Yl(t),{args:i,keys:r}=OQ(t);if(0===i.length)return Jo([],n);const o=new At(function MPe(t,n,e=Te){return i=>{PQ(n,()=>{const{length:r}=t,o=new Array(r);let a=r,c=r;for(let u=0;u{const f=Jo(t[u],n);let w=!1;f.subscribe(Be(i,E=>{o[u]=E,w||(w=!0,c--),c||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,r?a=>SQ(r,a):Te));return e?o.pipe(OI(e)):o}function PQ(t,n,e){t?na(e,t,n):n()}function Z9(t,n){const e=ue(t)?t:()=>t,i=r=>r.error(e());return new At(n?r=>n.schedule(i,0,r):i)}const DM=De(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function J9(...t){return function OPe(){return p1(1)}()(Jo(t,qa(t)))}function ev(t){return new At(n=>{jr(t()).subscribe(n)})}function EQ(){return Ce((t,n)=>{let e=null;t._refCount++;const i=Be(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class SPe extends At{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,se(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Me;const e=this.getSubject();n.add(this.source.subscribe(Be(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Me.EMPTY)}return n}refCount(){return EQ()(this)}}function S1(t,n){return Ce((e,i)=>{let r=null,o=0,a=!1;const c=()=>a&&!r&&i.complete();e.subscribe(Be(i,u=>{null==r||r.unsubscribe();let f=0;const w=o++;jr(t(u,w)).subscribe(r=Be(i,E=>i.next(n?n(u,E,w,f++):E),()=>{r=null,c()}))},()=>{a=!0,c()}))})}function Zs(...t){const n=qa(t);return Ce((e,i)=>{(n?J9(t,e,n):J9(t,e)).subscribe(i)})}function PPe(t,n,e,i,r){return(o,a)=>{let c=e,u=n,f=0;o.subscribe(Be(a,w=>{const E=f++;u=c?t(u,w,E):(c=!0,w),i&&a.next(u)},r&&(()=>{c&&a.next(u),a.complete()})))}}function TQ(t,n){return Ce(PPe(t,n,arguments.length>=2,!0))}function Gp(t){return Ce((n,e)=>{let o,i=null,r=!1;i=n.subscribe(Be(e,void 0,void 0,a=>{o=jr(t(a,Gp(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function SI(t){return t<=0?()=>ls:Ce((n,e)=>{let i=[];n.subscribe(Be(e,r=>{i.push(r),t{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function AQ(t=EPe){return Ce((n,e)=>{let i=!1;n.subscribe(Be(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function EPe(){return new DM}function DQ(t){return Ce((n,e)=>{let i=!1;n.subscribe(Be(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function x6(t,n){const e=arguments.length>=2;return i=>i.pipe(t?zo((r,o)=>t(r,o,i)):Te,Po(1),e?DQ(n):AQ(()=>new DM))}function ts(t,n,e){const i=ue(t)||n||e?{next:t,error:n,complete:e}:t;return i?Ce((r,o)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let c=!0;r.subscribe(Be(o,u=>{var f;null===(f=i.next)||void 0===f||f.call(i,u),o.next(u)},()=>{var u;c=!1,null===(u=i.complete)||void 0===u||u.call(i),o.complete()},u=>{var f;c=!1,null===(f=i.error)||void 0===f||f.call(i,u),o.error(u)},()=>{var u,f;c&&(null===(u=i.unsubscribe)||void 0===u||u.call(i)),null===(f=i.finalize)||void 0===f||f.call(i)}))}):Te}function Eu(t){return Ce((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}class Yp{constructor(n,e){this.id=n,this.url=e}}class y6 extends Yp{constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Up extends Yp{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class LQ extends Yp{constructor(n,e,i){super(n,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class APe extends Yp{constructor(n,e,i){super(n,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class DPe extends Yp{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class LPe extends Yp{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kPe extends Yp{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class IPe extends Yp{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NPe extends Yp{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kQ{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class IQ{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class RPe{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zPe{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FPe{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class HPe{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NQ{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const wa="primary";class VPe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function w6(t){return new VPe(t)}const RQ="ngNavigationCancelingError";function PI(t){const n=Error("NavigationCancelingError: "+t);return n[RQ]=!0,n}function GPe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function FQ(t){return Array.prototype.concat.apply([],t)}function HQ(t){return t.length>0?t[t.length-1]:null}function P1(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function k0(t){return FL(t)?t:O9(t)?Jo(Promise.resolve(t)):Ir(t)}const jPe={exact:function GQ(t,n,e){if(!qg(t.segments,n.segments)||!LM(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!GQ(t.children[i],n.children[i],e))return!1;return!0},subset:YQ},VQ={exact:function WPe(t,n){return L0(t,n)},subset:function qPe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>zQ(t[e],n[e]))},ignored:()=>!0};function BQ(t,n,e){return jPe[e.paths](t.root,n.root,e.matrixParams)&&VQ[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function YQ(t,n,e){return UQ(t,n,n.segments,e)}function UQ(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!qg(r,e)||n.hasChildren()||!LM(r,e,i))}if(t.segments.length===e.length){if(!qg(t.segments,e)||!LM(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!YQ(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(qg(t.segments,r)&&LM(t.segments,r,i)&&t.children[wa])&&UQ(t.children[wa],n,o,i)}}function LM(t,n,e){return n.every((i,r)=>VQ[e](t[r].parameters,i.parameters))}class Wg{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=w6(this.queryParams)),this._queryParamMap}toString(){return QPe.serialize(this)}}class Da{constructor(n,e){this.segments=n,this.children=e,this.parent=null,P1(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kM(this)}}class tv{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=w6(this.parameters)),this._parameterMap}toString(){return $Q(this)}}function qg(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}class jQ{}class WQ{parse(n){const e=new oEe(n);return new Wg(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${nv(n.root,!0)}`,i=function JPe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${IM(e)}=${IM(r)}`).join("&"):`${IM(e)}=${IM(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function KPe(t){return encodeURI(t)}(n.fragment)}`:""}`}}const QPe=new WQ;function kM(t){return t.segments.map(n=>$Q(n)).join("/")}function nv(t,n){if(!t.hasChildren())return kM(t);if(n){const e=t.children[wa]?nv(t.children[wa],!1):"",i=[];return P1(t.children,(r,o)=>{o!==wa&&i.push(`${o}:${nv(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function $Pe(t,n){let e=[];return P1(t.children,(i,r)=>{r===wa&&(e=e.concat(n(i,r)))}),P1(t.children,(i,r)=>{r!==wa&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===wa?[nv(t.children[wa],!1)]:[`${r}:${nv(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[wa]?`${kM(t)}/${e[0]}`:`${kM(t)}/(${e.join("//")})`}}function qQ(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function IM(t){return qQ(t).replace(/%3B/gi,";")}function EI(t){return qQ(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function NM(t){return decodeURIComponent(t)}function XQ(t){return NM(t.replace(/\+/g,"%20"))}function $Q(t){return`${EI(t.path)}${function ZPe(t){return Object.keys(t).map(n=>`;${EI(n)}=${EI(t[n])}`).join("")}(t.parameters)}`}const eEe=/^[^\/()?;=#]+/;function RM(t){const n=t.match(eEe);return n?n[0]:""}const tEe=/^[^=?&#]+/,iEe=/^[^&#]+/;class oEe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Da([],{}):new Da([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[wa]=new Da(n,e)),i}parseSegment(){const n=RM(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new tv(NM(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=RM(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=RM(this.remaining);r&&(i=r,this.capture(i))}n[NM(e)]=NM(i)}parseQueryParam(n){const e=function nEe(t){const n=t.match(tEe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function rEe(t){const n=t.match(iEe);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const r=XQ(e),o=XQ(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=RM(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let o;i.indexOf(":")>-1?(o=i.substr(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=wa);const a=this.parseChildren();e[o]=1===Object.keys(a).length?a[wa]:new Da([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class QQ{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=TI(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=TI(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=AI(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return AI(n,this._root).map(e=>e.value)}}function TI(t,n){if(t===n.value)return n;for(const e of n.children){const i=TI(t,e);if(i)return i}return null}function AI(t,n){if(t===n.value)return[n];for(const e of n.children){const i=AI(t,e);if(i.length)return i.unshift(n),i}return[]}class jp{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function M6(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class KQ extends QQ{constructor(n,e){super(n),this.snapshot=e,DI(this,n)}toString(){return this.snapshot.toString()}}function ZQ(t,n){const e=function aEe(t,n){const a=new zM([],{},{},"",{},wa,n,null,t.root,-1,{});return new eK("",new jp(a,[]))}(t,n),i=new mr([new tv("",{})]),r=new mr({}),o=new mr({}),a=new mr({}),c=new mr(""),u=new Tu(i,r,a,c,o,wa,n,e.root);return u.snapshot=e.root,new KQ(new jp(u,[]),e)}class Tu{constructor(n,e,i,r,o,a,c,u){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=c,this._futureSnapshot=u}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(Qe(n=>w6(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Qe(n=>w6(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function JQ(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function sEe(t){return t.reduce((n,e)=>({params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign({},n.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class zM{constructor(n,e,i,r,o,a,c,u,f,w,E){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=c,this.routeConfig=u,this._urlSegment=f,this._lastPathIndex=w,this._resolve=E}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=w6(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=w6(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class eK extends QQ{constructor(n,e){super(e),this.url=n,DI(this,e)}toString(){return tK(this._root)}}function DI(t,n){n.value._routerState=t,n.children.forEach(e=>DI(t,e))}function tK(t){const n=t.children.length>0?` { ${t.children.map(tK).join(", ")} } `:"";return`${t.value}${n}`}function LI(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,L0(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),L0(n.params,e.params)||t.params.next(e.params),function YPe(t,n){if(t.length!==n.length)return!1;for(let e=0;eL0(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||kI(t.parent,n.parent))}function iv(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function lEe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return iv(t,i,r);return iv(t,i)})}(t,n,e);return new jp(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(c=>iv(t,c)),a}}const i=function dEe(t){return new Tu(new mr(t.url),new mr(t.params),new mr(t.queryParams),new mr(t.fragment),new mr(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>iv(t,o));return new jp(i,r)}}function FM(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function rv(t){return"object"==typeof t&&null!=t&&t.outlets}function II(t,n,e,i,r){let o={};if(i&&P1(i,(c,u)=>{o[u]=Array.isArray(c)?c.map(f=>`${f}`):`${c}`}),t===n)return new Wg(e,o,r);const a=nK(t,n,e);return new Wg(a,o,r)}function nK(t,n,e){const i={};return P1(t.children,(r,o)=>{i[o]=r===n?e:nK(r,n,e)}),new Da(t.segments,i)}class iK{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&FM(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(rv);if(r&&r!==HQ(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class NI{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function rK(t,n,e){if(t||(t=new Da([],{})),0===t.segments.length&&t.hasChildren())return HM(t,n,e);const i=function mEe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const a=t.segments[r],c=e[i];if(rv(c))break;const u=`${c}`,f=i0&&void 0===u)break;if(u&&f&&"object"==typeof f&&void 0===f.outlets){if(!aK(u,f,a))return o;i+=2}else{if(!aK(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[a]=rK(t.children[a],n,o))}),P1(t.children,(o,a)=>{void 0===i[a]&&(r[a]=o)}),new Da(t.segments,r)}}function RI(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=RI(new Da([],{}),0,e))}),n}function oK(t){const n={};return P1(t,(e,i)=>n[i]=`${e}`),n}function aK(t,n,e){return t==e.path&&L0(n,e.parameters)}class CEe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),LI(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=M6(e);n.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),P1(r,(o,a)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=M6(n);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);if(i&&i.outlet){const a=i.outlet.detach(),c=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=M6(n);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=M6(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new HPe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new zPe(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(LI(r),r===o)if(r.component){const a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const c=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),LI(c.route.value),this.activateChildRoutes(n,null,a.children)}else{const c=function bEe(t){for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),u=c?c.module.componentFactoryResolver:null;a.attachRef=null,a.route=r,a.resolver=u,a.outlet&&a.outlet.activateWith(r,u),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class zI{constructor(n,e){this.routes=n,this.module=e}}function Hf(t){return"function"==typeof t}function Xg(t){return t instanceof Wg}const ov=Symbol("INITIAL_VALUE");function av(){return S1(t=>K9(t.map(n=>n.pipe(Po(1),Zs(ov)))).pipe(TQ((n,e)=>{let i=!1;return e.reduce((r,o,a)=>r!==ov?r:(o===ov&&(i=!0),i||!1!==o&&a!==e.length-1&&!Xg(o)?r:o),n)},ov),zo(n=>n!==ov),Qe(n=>Xg(n)?n:!0===n),Po(1)))}class SEe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new sv,this.attachRef=null}}class sv{constructor(){this.contexts=new Map}onChildOutletCreated(n,e){const i=this.getOrCreateContext(n);i.outlet=e,this.contexts.set(n,i)}onChildOutletDestroyed(n){const e=this.getContext(n);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let e=this.getContext(n);return e||(e=new SEe,this.contexts.set(n,e)),e}getContext(n){return this.contexts.get(n)||null}}let FI=(()=>{class t{constructor(e,i,r,o,a){this.parentContexts=e,this.location=i,this.resolver=r,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new Bn,this.deactivateEvents=new Bn,this.attachEvents=new Bn,this.detachEvents=new Bn,this.name=o||wa,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 a=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),c=this.parentContexts.getOrCreateContext(this.name).children,u=new PEe(e,c,this.location.injector);this.activated=this.location.createComponent(a,this.location.length,u),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(de(sv),de(As),de(Df),Ts("name"),de(Do))},t.\u0275dir=nn({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class PEe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Tu?this.route:n===sv?this.childContexts:this.parent.get(n,e)}}let sK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&$e(0,"router-outlet")},directives:[FI],encapsulation:2}),t})();function cK(t,n=""){for(let e=0;eAu(i)===n);return e.push(...t.filter(i=>Au(i)!==n)),e}const dK={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function VM(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},dK):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||GPe)(e,t,n);if(!o)return Object.assign({},dK);const a={};P1(o.posParams,(u,f)=>{a[f]=u.path});const c=o.consumed.length>0?Object.assign(Object.assign({},a),o.consumed[o.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:c,positionalParamSegments:null!==(i=o.posParams)&&void 0!==i?i:{}}}function BM(t,n,e,i,r="corrected"){if(e.length>0&&function LEe(t,n,e){return e.some(i=>GM(t,n,i)&&Au(i)!==wa)}(t,e,i)){const a=new Da(n,function DEe(t,n,e,i){const r={};r[wa]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Au(o)!==wa){const a=new Da([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,r[Au(o)]=a}return r}(t,n,i,new Da(e,t.children)));return a._sourceSegment=t,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&function kEe(t,n,e){return e.some(i=>GM(t,n,i))}(t,e,i)){const a=new Da(t.segments,function AEe(t,n,e,i,r,o){const a={};for(const c of i)if(GM(t,e,c)&&!r[Au(c)]){const u=new Da([],{});u._sourceSegment=t,u._segmentIndexShift="legacy"===o?t.segments.length:n.length,a[Au(c)]=u}return Object.assign(Object.assign({},r),a)}(t,n,e,i,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:e}}const o=new Da(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}function GM(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function uK(t,n,e,i){return!!(Au(t)===i||i!==wa&&GM(n,e,t))&&("**"===t.path||VM(n,t,e).matched)}function hK(t,n,e){return 0===n.length&&!t.children[e]}class YM{constructor(n){this.segmentGroup=n||null}}class pK{constructor(n){this.urlTree=n}}function cv(t){return Z9(new YM(t))}function fK(t){return Z9(new pK(t))}class zEe{constructor(n,e,i,r,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=n.get(Rp)}apply(){const n=BM(this.urlTree.root,[],[],this.config).segmentGroup,e=new Da(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,e,wa).pipe(Qe(o=>this.createUrlTree(VI(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Gp(o=>{if(o instanceof pK)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof YM?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,wa).pipe(Qe(r=>this.createUrlTree(VI(r),n.queryParams,n.fragment))).pipe(Gp(r=>{throw r instanceof YM?this.noMatchError(r):r}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const r=n.segments.length>0?new Da([],{[wa]:n}):n;return new Wg(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(Qe(o=>new Da([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Jo(r).pipe(Rf(o=>{const a=i.children[o],c=lK(e,o);return this.expandSegmentGroup(n,c,a,o).pipe(Qe(u=>({segment:u,outlet:o})))}),TQ((o,a)=>(o[a.outlet]=a.segment,o),{}),function TPe(t,n){const e=arguments.length>=2;return i=>i.pipe(t?zo((r,o)=>t(r,o,i)):Te,SI(1),e?DQ(n):AQ(()=>new DM))}())}expandSegment(n,e,i,r,o,a){return Jo(i).pipe(Rf(c=>this.expandSegmentAgainstRoute(n,e,i,c,r,o,a).pipe(Gp(f=>{if(f instanceof YM)return Ir(null);throw f}))),x6(c=>!!c),Gp((c,u)=>{if(c instanceof DM||"EmptyError"===c.name)return hK(e,r,o)?Ir(new Da([],{})):cv(e);throw c}))}expandSegmentAgainstRoute(n,e,i,r,o,a,c){return uK(r,e,o,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,a):c&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a):cv(e):cv(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?fK(o):this.lineralizeSegments(i,o).pipe(ba(a=>{const c=new Da(a,{});return this.expandSegment(n,c,e,a,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a){const{matched:c,consumedSegments:u,remainingSegments:f,positionalParamSegments:w}=VM(e,r,o);if(!c)return cv(e);const E=this.applyRedirectCommands(u,r.redirectTo,w);return r.redirectTo.startsWith("/")?fK(E):this.lineralizeSegments(r,E).pipe(ba(B=>this.expandSegment(n,e,i,B.concat(f),a,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Ir(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(Qe(E=>(i._loadedConfig=E,new Da(r,{})))):Ir(new Da(r,{}));const{matched:a,consumedSegments:c,remainingSegments:u}=VM(e,i,r);return a?this.getChildConfig(n,i,r).pipe(ba(w=>{const E=w.module,B=w.routes,{segmentGroup:Z,slicedSegments:ee}=BM(e,c,u,B),be=new Da(Z.segments,Z.children);if(0===ee.length&&be.hasChildren())return this.expandChildren(E,B,be).pipe(Qe(ge=>new Da(c,ge)));if(0===B.length&&0===ee.length)return Ir(new Da(c,{}));const _e=Au(i)===o;return this.expandSegment(E,be,B,ee,_e?wa:o,!0).pipe(Qe(Ie=>new Da(c.concat(Ie.segments),Ie.children)))})):cv(e)}getChildConfig(n,e,i){return e.children?Ir(new zI(e.children,n)):e.loadChildren?void 0!==e._loadedConfig?Ir(e._loadedConfig):this.runCanLoadGuards(n.injector,e,i).pipe(ba(r=>r?this.configLoader.load(n.injector,e).pipe(Qe(o=>(e._loadedConfig=o,o))):function NEe(t){return Z9(PI(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))}(e))):Ir(new zI([],n))}runCanLoadGuards(n,e,i){const r=e.canLoad;return r&&0!==r.length?Ir(r.map(a=>{const c=n.get(a);let u;if(function yEe(t){return t&&Hf(t.canLoad)}(c))u=c.canLoad(e,i);else{if(!Hf(c))throw new Error("Invalid CanLoad guard");u=c(e,i)}return k0(u)})).pipe(av(),ts(a=>{if(!Xg(a))return;const c=PI(`Redirecting to "${this.urlSerializer.serialize(a)}"`);throw c.url=a,c}),Qe(a=>!0===a)):Ir(!0)}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Ir(i);if(r.numberOfChildren>1||!r.children[wa])return Z9(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n.redirectTo}'`));r=r.children[wa]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreatreUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new Wg(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return P1(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const c=r.substring(1);i[o]=e[c]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let a={};return P1(e.children,(c,u)=>{a[u]=this.createSegmentGroup(n,c,i,r)}),new Da(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}function VI(t){const n={};for(const i of Object.keys(t.children)){const o=VI(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function FEe(t){if(1===t.numberOfChildren&&t.children[wa]){const n=t.children[wa];return new Da(t.segments.concat(n.segments),n.children)}return t}(new Da(t.segments,n))}class gK{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class UM{constructor(n,e){this.component=n,this.route=e}}function VEe(t,n,e){const i=t._root;return lv(i,n?n._root:null,e,[i.value])}function jM(t,n,e){const i=function GEe(t){if(!t)return null;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(n);return(i?i.module.injector:e).get(t)}function lv(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=M6(n);return t.children.forEach(a=>{(function YEe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const u=function UEe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!qg(t.url,n.url);case"pathParamsOrQueryParamsChange":return!qg(t.url,n.url)||!L0(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!kI(t,n)||!L0(t.queryParams,n.queryParams);default:return!kI(t,n)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new gK(i)):(o.data=a.data,o._resolvedData=a._resolvedData),lv(t,n,o.component?c?c.children:null:e,i,r),u&&c&&c.outlet&&c.outlet.isActivated&&r.canDeactivateChecks.push(new UM(c.outlet.component,a))}else a&&dv(n,c,r),r.canActivateChecks.push(new gK(i)),lv(t,null,o.component?c?c.children:null:e,i,r)})(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),P1(o,(a,c)=>dv(a,e.getContext(c),r)),r}function dv(t,n,e){const i=M6(t),r=t.value;P1(i,(o,a)=>{dv(o,r.component?n?n.children.getContext(a):null:n,e)}),e.canDeactivateChecks.push(new UM(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}class JEe{}function mK(t){return new At(n=>n.error(t))}class tTe{constructor(n,e,i,r,o,a){this.rootComponentType=n,this.config=e,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}recognize(){const n=BM(this.urlTree.root,[],[],this.config.filter(a=>void 0===a.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,n,wa);if(null===e)return null;const i=new zM([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},wa,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new jp(i,e),o=new eK(this.url,r);return this.inheritParamsAndData(o._root),o}inheritParamsAndData(n){const e=n.value,i=JQ(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(n,e):this.processSegment(n,e,e.segments,i)}processChildren(n,e){const i=[];for(const o of Object.keys(e.children)){const a=e.children[o],c=lK(n,o),u=this.processSegmentGroup(c,a,o);if(null===u)return null;i.push(...u)}const r=_K(i);return function nTe(t){t.sort((n,e)=>n.value.outlet===wa?-1:e.value.outlet===wa?1:n.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(n,e,i,r){for(const o of n){const a=this.processSegmentAgainstRoute(o,e,i,r);if(null!==a)return a}return hK(e,i,r)?[]:null}processSegmentAgainstRoute(n,e,i,r){if(n.redirectTo||!uK(n,e,i,r))return null;let o,a=[],c=[];if("**"===n.path){const Z=i.length>0?HQ(i).parameters:{};o=new zM(i,Z,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bK(n),Au(n),n.component,n,vK(e),CK(e)+i.length,xK(n))}else{const Z=VM(e,n,i);if(!Z.matched)return null;a=Z.consumedSegments,c=Z.remainingSegments,o=new zM(a,Z.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bK(n),Au(n),n.component,n,vK(e),CK(e)+a.length,xK(n))}const u=function iTe(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(n),{segmentGroup:f,slicedSegments:w}=BM(e,a,c,u.filter(Z=>void 0===Z.redirectTo),this.relativeLinkResolution);if(0===w.length&&f.hasChildren()){const Z=this.processChildren(u,f);return null===Z?null:[new jp(o,Z)]}if(0===u.length&&0===w.length)return[new jp(o,[])];const E=Au(n)===r,B=this.processSegment(u,f,w,E?wa:r);return null===B?null:[new jp(o,B)]}}function rTe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function _K(t){const n=[],e=new Set;for(const i of t){if(!rTe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=_K(i.children);n.push(new jp(i.value,r))}return n.filter(i=>!e.has(i))}function vK(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function CK(t){let n=t,e=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift?n._segmentIndexShift:0;return e-1}function bK(t){return t.data||{}}function xK(t){return t.resolve||{}}function yK(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function BI(t){return S1(n=>{const e=t(n);return e?Jo(e).pipe(Qe(()=>n)):Ir(n)})}class hTe extends class uTe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const GI=new jn("ROUTES");class wK{constructor(n,e,i,r){this.injector=n,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=r}load(n,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(Qe(o=>{this.onLoadEndListener&&this.onLoadEndListener(e);const a=o.create(n);return new zI(FQ(a.injector.get(GI,void 0,xi.Self|xi.Optional)).map(HI),a)}),Gp(o=>{throw e._loader$=void 0,o}));return e._loader$=new SPe(r,()=>new z).pipe(EQ()),e._loader$}loadModuleFactory(n){return k0(n()).pipe(ba(e=>e instanceof Uq?Ir(e):Jo(this.compiler.compileModuleAsync(e))))}}class fTe{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function gTe(t){throw t}function mTe(t,n,e){return n.parse("/")}function MK(t,n){return Ir(null)}const _Te={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vTe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ql=(()=>{class t{constructor(e,i,r,o,a,c,u){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new z,this.errorHandler=gTe,this.malformedUriErrorHandler=mTe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:MK,afterPreactivation:MK},this.urlHandlingStrategy=new fTe,this.routeReuseStrategy=new hTe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(Rp),this.console=a.get(dye);const E=a.get(ji);this.isNgZoneEnabled=E instanceof ji&&ji.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function UPe(){return new Wg(new Da([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new wK(a,c,B=>this.triggerEvent(new kQ(B)),B=>this.triggerEvent(new IQ(B))),this.routerState=ZQ(this.currentUrlTree,this.rootComponentType),this.transitions=new mr({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(zo(r=>0!==r.id),Qe(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),S1(r=>{let o=!1,a=!1;return Ir(r).pipe(ts(c=>{this.currentNavigation={id:c.id,initialUrl:c.currentRawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),S1(c=>{const u=this.browserUrlTree.toString(),f=!this.navigated||c.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||f)&&this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return OK(c.source)&&(this.browserUrlTree=c.extractedUrl),Ir(c).pipe(S1(E=>{const B=this.transitions.getValue();return i.next(new y6(E.id,this.serializeUrl(E.extractedUrl),E.source,E.restoredState)),B!==this.transitions.getValue()?ls:Promise.resolve(E)}),function HEe(t,n,e,i){return S1(r=>function REe(t,n,e,i,r){return new zEe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(Qe(o=>Object.assign(Object.assign({},r),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ts(E=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:E.urlAfterRedirects})}),function oTe(t,n,e,i,r){return ba(o=>function eTe(t,n,e,i,r="emptyOnly",o="legacy"){try{const a=new tTe(t,n,e,i,r,o).recognize();return null===a?mK(new JEe):Ir(a)}catch(a){return mK(a)}}(t,n,o.urlAfterRedirects,e(o.urlAfterRedirects),i,r).pipe(Qe(a=>Object.assign(Object.assign({},o),{targetSnapshot:a}))))}(this.rootComponentType,this.config,E=>this.serializeUrl(E),this.paramsInheritanceStrategy,this.relativeLinkResolution),ts(E=>{if("eager"===this.urlUpdateStrategy){if(!E.extras.skipLocationChange){const Z=this.urlHandlingStrategy.merge(E.urlAfterRedirects,E.rawUrl);this.setBrowserUrl(Z,E)}this.browserUrlTree=E.urlAfterRedirects}const B=new DPe(E.id,this.serializeUrl(E.extractedUrl),this.serializeUrl(E.urlAfterRedirects),E.targetSnapshot);i.next(B)}));if(f&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:B,extractedUrl:Z,source:ee,restoredState:be,extras:_e}=c,Pe=new y6(B,this.serializeUrl(Z),ee,be);i.next(Pe);const Ie=ZQ(Z,this.rootComponentType).snapshot;return Ir(Object.assign(Object.assign({},c),{targetSnapshot:Ie,urlAfterRedirects:Z,extras:Object.assign(Object.assign({},_e),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=c.rawUrl,c.resolve(null),ls}),BI(c=>{const{targetSnapshot:u,id:f,extractedUrl:w,rawUrl:E,extras:{skipLocationChange:B,replaceUrl:Z}}=c;return this.hooks.beforePreactivation(u,{navigationId:f,appliedUrlTree:w,rawUrlTree:E,skipLocationChange:!!B,replaceUrl:!!Z})}),ts(c=>{const u=new LPe(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(u)}),Qe(c=>Object.assign(Object.assign({},c),{guards:VEe(c.targetSnapshot,c.currentSnapshot,this.rootContexts)})),function jEe(t,n){return ba(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return 0===a.length&&0===o.length?Ir(Object.assign(Object.assign({},e),{guardsResult:!0})):function WEe(t,n,e,i){return Jo(t).pipe(ba(r=>function ZEe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?Ir(o.map(c=>{const u=jM(c,n,r);let f;if(function OEe(t){return t&&Hf(t.canDeactivate)}(u))f=k0(u.canDeactivate(t,n,e,i));else{if(!Hf(u))throw new Error("Invalid CanDeactivate guard");f=k0(u(t,n,e,i))}return f.pipe(x6())})).pipe(av()):Ir(!0)}(r.component,r.route,e,n,i)),x6(r=>!0!==r,!0))}(a,i,r,t).pipe(ba(c=>c&&function xEe(t){return"boolean"==typeof t}(c)?function qEe(t,n,e,i){return Jo(n).pipe(Rf(r=>J9(function $Ee(t,n){return null!==t&&n&&n(new RPe(t)),Ir(!0)}(r.route.parent,i),function XEe(t,n){return null!==t&&n&&n(new FPe(t)),Ir(!0)}(r.route,i),function KEe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>function BEe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>ev(()=>Ir(a.guards.map(u=>{const f=jM(u,a.node,e);let w;if(function MEe(t){return t&&Hf(t.canActivateChild)}(f))w=k0(f.canActivateChild(i,t));else{if(!Hf(f))throw new Error("Invalid CanActivateChild guard");w=k0(f(i,t))}return w.pipe(x6())})).pipe(av())));return Ir(o).pipe(av())}(t,r.path,e),function QEe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Ir(!0);const r=i.map(o=>ev(()=>{const a=jM(o,n,e);let c;if(function wEe(t){return t&&Hf(t.canActivate)}(a))c=k0(a.canActivate(n,t));else{if(!Hf(a))throw new Error("Invalid CanActivate guard");c=k0(a(n,t))}return c.pipe(x6())}));return Ir(r).pipe(av())}(t,r.route,e))),x6(r=>!0!==r,!0))}(i,o,t,n):Ir(c)),Qe(c=>Object.assign(Object.assign({},e),{guardsResult:c})))})}(this.ngModule.injector,c=>this.triggerEvent(c)),ts(c=>{if(Xg(c.guardsResult)){const f=PI(`Redirecting to "${this.serializeUrl(c.guardsResult)}"`);throw f.url=c.guardsResult,f}const u=new kPe(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.triggerEvent(u)}),zo(c=>!!c.guardsResult||(this.restoreHistory(c),this.cancelNavigationTransition(c,""),!1)),BI(c=>{if(c.guards.canActivateChecks.length)return Ir(c).pipe(ts(u=>{const f=new IPe(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(f)}),S1(u=>{let f=!1;return Ir(u).pipe(function aTe(t,n){return ba(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Ir(e);let o=0;return Jo(r).pipe(Rf(a=>function sTe(t,n,e,i){return function cTe(t,n,e,i){const r=yK(t);if(0===r.length)return Ir({});const o={};return Jo(r).pipe(ba(a=>function lTe(t,n,e,i){const r=jM(t,n,i);return k0(r.resolve?r.resolve(n,e):r(n,e))}(t[a],n,e,i).pipe(ts(c=>{o[a]=c}))),SI(1),ba(()=>yK(o).length===r.length?Ir(o):ls))}(t._resolve,t,n,i).pipe(Qe(o=>(t._resolvedData=o,t.data=Object.assign(Object.assign({},t.data),JQ(t,e).resolve),null)))}(a.route,i,t,n)),ts(()=>o++),SI(1),ba(a=>o===r.length?Ir(e):ls))})}(this.paramsInheritanceStrategy,this.ngModule.injector),ts({next:()=>f=!0,complete:()=>{f||(this.restoreHistory(u),this.cancelNavigationTransition(u,"At least one route resolver didn't emit any value."))}}))}),ts(u=>{const f=new NPe(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(f)}))}),BI(c=>{const{targetSnapshot:u,id:f,extractedUrl:w,rawUrl:E,extras:{skipLocationChange:B,replaceUrl:Z}}=c;return this.hooks.afterPreactivation(u,{navigationId:f,appliedUrlTree:w,rawUrlTree:E,skipLocationChange:!!B,replaceUrl:!!Z})}),Qe(c=>{const u=function cEe(t,n,e){const i=iv(t,n._root,e?e._root:void 0);return new KQ(i,n)}(this.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return Object.assign(Object.assign({},c),{targetRouterState:u})}),ts(c=>{this.currentUrlTree=c.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl),this.routerState=c.targetRouterState,"deferred"===this.urlUpdateStrategy&&(c.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,c),this.browserUrlTree=c.urlAfterRedirects)}),((t,n,e)=>Qe(i=>(new CEe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,c=>this.triggerEvent(c)),ts({next(){o=!0},complete(){o=!0}}),Eu(()=>{var c;o||a||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(c=this.currentNavigation)||void 0===c?void 0:c.id)===r.id&&(this.currentNavigation=null)}),Gp(c=>{if(a=!0,function BPe(t){return t&&t[RQ]}(c)){const u=Xg(c.url);u||(this.navigated=!0,this.restoreHistory(r,!0));const f=new LQ(r.id,this.serializeUrl(r.extractedUrl),c.message);i.next(f),u?setTimeout(()=>{const w=this.urlHandlingStrategy.merge(c.url,this.rawUrlTree),E={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||OK(r.source)};this.scheduleNavigation(w,"imperative",null,E,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const u=new APe(r.id,this.serializeUrl(r.extractedUrl),c);i.next(u);try{r.resolve(this.errorHandler(c))}catch(f){r.reject(f)}}return ls}))}))}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 r;const o={replaceUrl:!0},a=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(a){const u=Object.assign({},a);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(o.state=u)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,i,a,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){cK(e),this.config=e.map(HI),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:r,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,f=r||this.routerState.root,w=u?this.currentUrlTree.fragment:a;let E=null;switch(c){case"merge":E=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":E=this.currentUrlTree.queryParams;break;default:E=o||null}return null!==E&&(E=this.removeEmptyProps(E)),function uEe(t,n,e,i,r){if(0===e.length)return II(n.root,n.root,n.root,i,r);const o=function hEe(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new iK(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const c={};return P1(o.outlets,(u,f)=>{c[f]="string"==typeof u?u.split("/"):u}),[...r,{outlets:c}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===a?(o.split("/").forEach((c,u)=>{0==u&&"."===c||(0==u&&""===c?e=!0:".."===c?n++:""!=c&&r.push(c))}),r):[...r,o]},[]);return new iK(e,n,i)}(e);if(o.toRoot())return II(n.root,n.root,new Da([],{}),i,r);const a=function pEe(t,n,e){if(t.isAbsolute)return new NI(n.root,!0,0);if(-1===e.snapshot._lastPathIndex){const o=e.snapshot._urlSegment;return new NI(o,o===n.root,0)}const i=FM(t.commands[0])?0:1;return function fEe(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new NI(i,!1,r-o)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(o,n,t),c=a.processChildren?HM(a.segmentGroup,a.index,o.commands):rK(a.segmentGroup,a.index,o.commands);return II(n.root,a.segmentGroup,c,i,r)}(f,this.currentUrlTree,e,E,null!=w?w:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Xg(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function CTe(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Up(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,r,o,a){var c,u;if(this.disposed)return Promise.resolve(!1);let f,w,E;a?(f=a.resolve,w=a.reject,E=a.promise):E=new Promise((ee,be)=>{f=ee,w=be});const B=++this.navigationId;let Z;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),Z=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(c=this.browserPageId)&&void 0!==c?c:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):Z=0,this.setTransition({id:B,targetPageId:Z,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:f,reject:w,promise:E,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),E.catch(ee=>Promise.reject(ee))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){var r,o;if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===a?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}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 r=new LQ(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){Ip()},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();function OK(t){return"imperative"!==t}class SK{}class PK{preload(n,e){return Ir(null)}}let EK=(()=>{class t{constructor(e,i,r,o){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=new wK(r,i,u=>e.triggerEvent(new kQ(u)),u=>e.triggerEvent(new IQ(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(zo(e=>e instanceof Up),Rf(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Rp);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i)if(o.loadChildren&&!o.canLoad&&o._loadedConfig){const a=o._loadedConfig;r.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?r.push(this.preloadConfig(e,o)):o.children&&r.push(this.processRoutes(e,o.children));return Jo(r).pipe(p1(),Qe(o=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?Ir(i._loadedConfig):this.loader.load(e.injector,i)).pipe(ba(o=>(i._loadedConfig=o,this.processRoutes(o.module,o.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ql),Rt(OX),Rt(hs),Rt(SK))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),jI=(()=>{class t{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.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 y6?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Up&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof NQ&&(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 NQ(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){Ip()},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();const $g=new jn("ROUTER_CONFIGURATION"),TK=new jn("ROUTER_FORROOT_GUARD"),wTe=[H9,{provide:jQ,useClass:WQ},{provide:Ql,useFactory:function ETe(t,n,e,i,r,o,a={},c,u){const f=new Ql(null,t,n,e,i,r,FQ(o));return c&&(f.urlHandlingStrategy=c),u&&(f.routeReuseStrategy=u),function TTe(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(a,f),a.enableTracing&&f.events.subscribe(w=>{var E,B;null===(E=console.group)||void 0===E||E.call(console,`Router Event: ${w.constructor.name}`),console.log(w.toString()),console.log(w),null===(B=console.groupEnd)||void 0===B||B.call(console)}),f},deps:[jQ,sv,H9,hs,OX,GI,$g,[class pTe{},new Ol],[class dTe{},new Ol]]},sv,{provide:Tu,useFactory:function ATe(t){return t.routerState.root},deps:[Ql]},EK,PK,class yTe{preload(n,e){return e().pipe(Gp(()=>Ir(null)))}},{provide:$g,useValue:{enableTracing:!1}}];function MTe(){return new AX("Router",Ql)}let G2=(()=>{class t{constructor(e,i){}static forRoot(e,i){return{ngModule:t,providers:[wTe,AK(e),{provide:TK,useFactory:PTe,deps:[[Ql,new Ol,new Ms]]},{provide:$g,useValue:i||{}},{provide:m6,useFactory:STe,deps:[Hg,[new k5(Mk),new Ol],$g]},{provide:jI,useFactory:OTe,deps:[Ql,pMe,$g]},{provide:SK,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:PK},{provide:AX,multi:!0,useFactory:MTe},[WI,{provide:Ww,multi:!0,useFactory:DTe,deps:[WI]},{provide:DK,useFactory:LTe,deps:[WI]},{provide:uk,multi:!0,useExisting:DK}]]}}static forChild(e){return{ngModule:t,providers:[AK(e)]}}}return t.\u0275fac=function(e){return new(e||t)(Rt(TK,8),Rt(Ql,8))},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})();function OTe(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new jI(t,n,e)}function STe(t,n,e={}){return e.useHash?new nwe(t,n):new $X(t,n)}function PTe(t){return"guarded"}function AK(t){return[{provide:Ux,multi:!0,useValue:t},{provide:GI,multi:!0,useValue:t}]}let WI=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new z}appInitializer(){return this.injector.get(Jye,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(c=>i=c),o=this.injector.get(Ql),a=this.injector.get($g);return"disabled"===a.initialNavigation?(o.setUpLocationChangeListener(),i(!0)):"enabled"===a.initialNavigation||"enabledBlocking"===a.initialNavigation?(o.hooks.afterPreactivation=()=>this.initNavigation?Ir(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),o.initialNavigation()):i(!0),r})}bootstrapListener(e){const i=this.injector.get($g),r=this.injector.get(EK),o=this.injector.get(jI),a=this.injector.get(Ql),c=this.injector.get(F9);e===c.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&a.initialNavigation(),r.setUpPreloading(),o.init(),a.resetRootComponentType(c.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(Rt(hs))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();function DTe(t){return t.appInitializer.bind(t)}function LTe(t){return t.bootstrapListener.bind(t)}const DK=new jn("Router Initializer");function Bi(t){return null!=t&&"false"!=`${t}`}function cc(t,n=0){return LK(t)?Number(t):n}function LK(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function WM(t){return Array.isArray(t)?t:[t]}function il(t){return null==t?"":"string"==typeof t?t:`${t}px`}function qc(t){return t instanceof gi?t.nativeElement:t}function kK(t,n=/\s+/){const e=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(n);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}const ITe=["addListener","removeListener"],NTe=["addEventListener","removeEventListener"],RTe=["on","off"];function Rc(t,n,e,i){if(ue(e)&&(i=e,e=void 0),i)return Rc(t,n,e).pipe(OI(i));const[r,o]=function HTe(t){return ue(t.addEventListener)&&ue(t.removeEventListener)}(t)?NTe.map(a=>c=>t[a](n,c,e)):function zTe(t){return ue(t.addListener)&&ue(t.removeListener)}(t)?ITe.map(IK(t,n)):function FTe(t){return ue(t.on)&&ue(t.off)}(t)?RTe.map(IK(t,n)):[];if(!r&&Bo(t))return ba(a=>Rc(a,n,e))(jr(t));if(!r)throw new TypeError("Invalid event target");return new At(a=>{const c=(...u)=>a.next(1o(c)})}function IK(t,n){return e=>i=>t[e](n,i)}class VTe extends Me{constructor(n,e){super()}schedule(n,e=0){return this}}const qM={setInterval(t,n,...e){const{delegate:i}=qM;return(null==i?void 0:i.setInterval)?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=qM;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0};class qI extends VTe{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return qM.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;qM.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,xe(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const uv={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=uv;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=n(o=>{e=void 0,t(o)});return new Me(()=>null==e?void 0:e(r))},requestAnimationFrame(...t){const{delegate:n}=uv;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=uv;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame)(...t)},delegate:void 0},NK={now:()=>(NK.delegate||Date).now(),delegate:void 0};class hv{constructor(n,e=hv.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}hv.now=NK.now;class XI extends hv{constructor(n,e=hv.now){super(n,e),this.actions=[],this._active=!1,this._scheduled=void 0}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const RK=new class GTe extends XI{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class BTe extends qI{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=uv.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){if(null!=i&&i>0||null==i&&this.delay>0)return super.recycleAsyncId(n,e,i);n.actions.some(r=>r.id===e)||(uv.cancelAnimationFrame(e),n._scheduled=void 0)}});let $I,YTe=1;const XM={};function zK(t){return t in XM&&(delete XM[t],!0)}const UTe={setImmediate(t){const n=YTe++;return XM[n]=!0,$I||($I=Promise.resolve()),$I.then(()=>zK(n)&&t()),n},clearImmediate(t){zK(t)}},{setImmediate:jTe,clearImmediate:WTe}=UTe,$M={setImmediate(...t){const{delegate:n}=$M;return((null==n?void 0:n.setImmediate)||jTe)(...t)},clearImmediate(t){const{delegate:n}=$M;return((null==n?void 0:n.clearImmediate)||WTe)(t)},delegate:void 0},QM=new class XTe extends XI{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class qTe extends qI{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=$M.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){if(null!=i&&i>0||null==i&&this.delay>0)return super.recycleAsyncId(n,e,i);n.actions.some(r=>r.id===e)||($M.clearImmediate(e),n._scheduled=void 0)}}),pv=new XI(qI),$Te=pv;function QI(t=0,n,e=$Te){let i=-1;return null!=n&&(g1(n)?e=n:i=n),new At(r=>{let o=function KTe(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function KI(t,n=pv){return function QTe(t){return Ce((n,e)=>{let i=!1,r=null,o=null,a=!1;const c=()=>{if(null==o||o.unsubscribe(),o=null,i){i=!1;const f=r;r=null,e.next(f)}a&&e.complete()},u=()=>{o=null,a&&e.complete()};n.subscribe(Be(e,f=>{i=!0,r=f,o||jr(t(f)).subscribe(o=Be(e,c,u))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>QI(t,n))}function Ln(t){return Ce((n,e)=>{jr(t).subscribe(Be(e,()=>e.complete(),pt)),!e.closed&&n.subscribe(e)})}let ZI;try{ZI="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){ZI=!1}let S6,Ds=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Dl(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&&!ZI)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(Rt(Tl))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZTe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})();const FK=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function HK(){if(S6)return S6;if("object"!=typeof document||!document)return S6=new Set(FK),S6;let t=document.createElement("input");return S6=new Set(FK.filter(n=>(t.setAttribute("type",n),t.type===n))),S6}let fv,KM,Qg,JI;function wh(t){return function JTe(){if(null==fv&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>fv=!0}))}finally{fv=fv||!1}return fv}()?t:!!t.capture}function VK(){if(null==Qg){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Qg=!1,Qg;if("scrollBehavior"in document.documentElement.style)Qg=!0;else{const t=Element.prototype.scrollTo;Qg=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Qg}function gv(){if("object"!=typeof document||!document)return 0;if(null==KM){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),KM=0,0===t.scrollLeft&&(t.scrollLeft=1,KM=0===t.scrollLeft?1:2),t.remove()}return KM}function ZM(t){if(function eAe(){if(null==JI){const t="undefined"!=typeof document?document.head:null;JI=!(!t||!t.createShadowRoot&&!t.attachShadow)}return JI}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function mv(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Du(t){return t.composedPath?t.composedPath()[0]:t.target}function eN(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const tAe=new jn("cdk-dir-doc",{providedIn:"root",factory:function nAe(){return Ep(Xr)}}),iAe=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Xc=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new Bn,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function rAe(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?iAe.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Rt(tAe,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Vf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})(),_v=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new z,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}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 At(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(KI(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ir()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(zo(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=qc(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Rc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Rt(ji),Rt(Ds),Rt(Xr,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vv=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new z,this._elementScrolled=new At(a=>this.ngZone.runOutsideAngular(()=>Rc(this.elementRef.nativeElement,"scroll").pipe(Ln(this._destroyed)).subscribe(a)))}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,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=gv()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==gv()?e.left=e.right:1==gv()&&(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;VK()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?r:i:"end"==e&&(e=a?i:r),a&&2==gv()?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==gv()?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(_v),de(ji),de(Xc,8))},t.\u0275dir=nn({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),Bf=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new z,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.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:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(KI(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ds),Rt(ji),Rt(Xr,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),I0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})(),Cv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Vf,I0],Vf,I0]}),t})();function rl(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Ls(t,n=pv){return Ce((e,i)=>{let r=null,o=null,a=null;const c=()=>{if(r){r.unsubscribe(),r=null;const f=o;o=null,i.next(f)}};function u(){const f=a+t,w=n.now();if(w{o=f,a=n.now(),r||(r=n.schedule(u,t),i.add(r))},()=>{c(),i.complete()},void 0,()=>{o=r=null}))})}function GK(t){return zo((n,e)=>t<=e)}function ns(t,n=Te){return t=null!=t?t:_Ae,Ce((e,i)=>{let r,o=!0;e.subscribe(Be(i,a=>{const c=n(a);(o||!t(r,c))&&(o=!1,r=c,i.next(a))}))})}function _Ae(t,n){return t===n}let YK=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vAe=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=qc(e);return new At(r=>{const a=this._observeElement(i).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new z,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,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:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(Rt(YK))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rN=(()=>{class t{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Bn,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Bi(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=cc(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(Ls(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(de(vAe),de(gi),de(ji))},t.\u0275dir=nn({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),yv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[YK]}),t})();function tO(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const jK="cdk-describedby-message",nO="cdk-describedby-host";let WK=0,xAe=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+WK++,this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=oN(i,r);"string"!=typeof i?(qK(i),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){var o;if(!i||!this._isElementNode(e))return;const a=oN(i,r);if(this._isElementDescribedByMessage(e,a)&&this._removeMessageReference(e,a),"string"==typeof i){const c=this._messageRegistry.get(a);c&&0===c.referenceCount&&this._deleteMessageElement(a)}0===(null===(o=this._messagesContainer)||void 0===o?void 0:o.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${nO}="${this._id}"]`);for(let r=0;r0!=r.indexOf(jK));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function CAe(t,n,e){const i=tO(t,n);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(nO,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function bAe(t,n,e){const r=tO(t,n).filter(o=>o!=e.trim());r.length?t.setAttribute(n,r.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(nO)}_isElementDescribedByMessage(e,i){const r=tO(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&-1!=r.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr),Rt(Ds))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function oN(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function qK(t){t.id||(t.id=`${jK}-${WK++}`)}class XK{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new z,this._typeaheadSubscription=Me.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new z,this.change=new z,n instanceof Rg&&n.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ts(e=>this._pressedLetters.push(e)),Ls(n),zo(()=>this._pressedLetters.length>0),Qe(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||rl(n,"shiftKey"))&&(n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n),r=e[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof Rg?this._items.toArray():this._items}}class $K extends XK{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class aN extends XK{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let sN=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function wAe(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function yAe(t){try{return t.frameElement}catch(n){return null}}(function DAe(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===KK(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=KK(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function TAe(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function AAe(t){return!function OAe(t){return function PAe(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function MAe(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function SAe(t){return function EAe(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||QK(t))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ds))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function QK(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function KK(t){if(!QK(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class LAe{constructor(n,e,i,r,o=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Po(1)).subscribe(n)}}let cN=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new LAe(e,this._checker,this._ngZone,this._document,i)}}return t.\u0275fac=function(e){return new(e||t)(Rt(sN),Rt(ji),Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),kAe=(()=>{class t{constructor(e,i,r){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Bi(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Bi(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=mv(),this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(cN),de(Xr))},t.\u0275dir=nn({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[$r]}),t})();function iO(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function rO(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const IAe=new jn("cdk-input-modality-detector-options"),NAe={ignoreKeys:[18,17,224,91,16]},P6=wh({passive:!0,capture:!0});let RAe=(()=>{class t{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new mr(null),this._lastTouchMs=0,this._onKeydown=a=>{var c,u;(null===(u=null===(c=this._options)||void 0===c?void 0:c.ignoreKeys)||void 0===u?void 0:u.some(f=>f===a.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Du(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(iO(a)?"keyboard":"mouse"),this._mostRecentTarget=Du(a))},this._onTouchstart=a=>{rO(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Du(a))},this._options=Object.assign(Object.assign({},NAe),o),this.modalityDetected=this._modality.pipe(GK(1)),this.modalityChanged=this.modalityDetected.pipe(ns()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,P6),r.addEventListener("mousedown",this._onMousedown,P6),r.addEventListener("touchstart",this._onTouchstart,P6)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,P6),document.removeEventListener("mousedown",this._onMousedown,P6),document.removeEventListener("touchstart",this._onTouchstart,P6))}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ds),Rt(ji),Rt(Xr),Rt(IAe,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const zAe=new jn("liveAnnouncerElement",{providedIn:"root",factory:function FAe(){return null}}),HAe=new jn("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let lN=(()=>{class t{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o{class t{constructor(e,i,r,o,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new z,this._rootNodeFocusAndBlurListener=c=>{const u=Du(c),f="focus"===c.type?this._onFocus:this._onBlur;for(let w=u;w;w=w.parentElement)f.call(this,c,w)},this._document=o,this._detectionMode=(null==a?void 0:a.detectionMode)||0}monitor(e,i=!1){const r=qc(e);if(!this._platform.isBrowser||1!==r.nodeType)return Ir(null);const o=ZM(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;const c={checkChildren:i,subject:new z,rootNode:o};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const i=qc(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=qc(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([c,u])=>this._originChanged(c,i,u)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}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 r=this._elementInfo.get(i),o=Du(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,oO),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,oO)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ln(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,oO),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,oO),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}}return t.\u0275fac=function(e){return new(e||t)(Rt(ji),Rt(Ds),Rt(RAe),Rt(Xr,8),Rt(VAe,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),BAe=(()=>{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new Bn}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>this.cdkFocusChange.emit(i))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Cd))},t.\u0275dir=nn({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const JK="cdk-high-contrast-black-on-white",eZ="cdk-high-contrast-white-on-black",dN="cdk-high-contrast-active";let tZ=(()=>{class t{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,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){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(dN),e.remove(JK),e.remove(eZ),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(dN),e.add(JK)):2===i&&(e.add(dN),e.add(eZ))}}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ds),Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),aO=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(Rt(tZ))},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[yv]]}),t})();function GAe(t,n){if(1&t&&$e(0,"mat-pseudo-checkbox",4),2&t){const e=He();oe("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function YAe(t,n){if(1&t&&(G(0,"span",5),he(1),W()),2&t){const e=He();K(1),Ft("(",e.group.label,")")}}const UAe=["*"],XAe=new jn("mat-sanity-checks",{providedIn:"root",factory:function qAe(){return!0}});let Mr=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!eN()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(Rt(tZ),Rt(XAe,8),Rt(Xr))},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Vf],Vf]}),t})();function N0(t){return class extends t{constructor(...n){super(...n),this._disabled=!1}get disabled(){return this._disabled}set disabled(n){this._disabled=Bi(n)}}}function Oh(t,n){return class extends t{constructor(...e){super(...e),this.defaultColor=n,this.color=n}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function Iu(t){return class extends t{constructor(...n){super(...n),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=Bi(n)}}}function Kg(t,n=0){return class extends t{constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?cc(e):this.defaultTabIndex}}}function uN(t){return class extends t{constructor(...n){super(...n),this.stateChanges=new z,this.errorState=!1}updateErrorState(){const n=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==n&&(this.errorState=o,this.stateChanges.next())}}}function iZ(t){return class extends t{constructor(...n){super(...n),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new At(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(n){n.next(),n.complete()}}}const hN=new jn("MAT_DATE_LOCALE",{providedIn:"root",factory:function $Ae(){return Ep(Fp)}});class Ll{constructor(){this._localeChanges=new z,this.localeChanges=this._localeChanges}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return null==n||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}}const Uf=new jn("mat-date-formats"),QAe=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function pN(t,n){const e=Array(t);for(let i=0;i{class t extends Ll{constructor(e,i){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return pN(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return pN(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){const i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return pN(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){const i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth(),o}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,12*i)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(QAe.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,r){const o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){const r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}}return t.\u0275fac=function(e){return new(e||t)(Rt(hN,8),Rt(Ds))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();const ZAe={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let JAe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[{provide:Ll,useClass:KAe}]}),t})(),rZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[{provide:Uf,useValue:ZAe}],imports:[[JAe]]}),t})(),E6=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),sO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Mr],Mr]}),t})();class nDe{constructor(n,e,i){this._renderer=n,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const oZ={enterDuration:225,exitDuration:150},fN=wh({passive:!0}),aZ=["mousedown","touchstart"],sZ=["mouseup","mouseleave","touchend","touchcancel"];class cZ{constructor(n,e,i,r){this._target=n,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=qc(i))}fadeInRipple(n,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},oZ),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);const a=i.radius||function oDe(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}(n,e,r),c=n-r.left,u=e-r.top,f=o.enterDuration,w=document.createElement("div");w.classList.add("mat-ripple-element"),w.style.left=c-a+"px",w.style.top=u-a+"px",w.style.height=2*a+"px",w.style.width=2*a+"px",null!=i.color&&(w.style.backgroundColor=i.color),w.style.transitionDuration=`${f}ms`,this._containerElement.appendChild(w),function rDe(t){window.getComputedStyle(t).getPropertyValue("opacity")}(w),w.style.transform="scale(1)";const E=new nDe(this,w,i);return E.state=0,this._activeRipples.add(E),i.persistent||(this._mostRecentTransientRipple=E),this._runTimeoutOutsideZone(()=>{const B=E===this._mostRecentTransientRipple;E.state=1,!i.persistent&&(!B||!this._isPointerDown)&&E.fadeOut()},f),E}fadeOutRipple(n){const e=this._activeRipples.delete(n);if(n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=n.element,r=Object.assign(Object.assign({},oZ),n.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",n.state=2,this._runTimeoutOutsideZone(()=>{n.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=qc(n);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(aZ))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sZ),this._pointerUpEventsRegistered=!0)}_onMousedown(n){const e=iO(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_runTimeoutOutsideZone(n,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(n,e))}_registerEvents(n){this._ngZone.runOutsideAngular(()=>{n.forEach(e=>{this._triggerElement.addEventListener(e,this,fN)})})}_removeTriggerEvents(){this._triggerElement&&(aZ.forEach(n=>{this._triggerElement.removeEventListener(n,this,fN)}),this._pointerUpEventsRegistered&&sZ.forEach(n=>{this._triggerElement.removeEventListener(n,this,fN)}))}}const lZ=new jn("mat-ripple-global-options");let Sh=(()=>{class t{constructor(e,i,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new cZ(this,i,e,r)}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,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(ji),de(Ds),de(lZ,8),de($l,8))},t.\u0275dir=nn({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&sr("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),bd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Mr],Mr]}),t})(),dZ=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(de($l,8))},t.\u0275cmp=En({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&sr("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}),t})(),gN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Mr]]}),t})();const mN=new jn("MAT_OPTION_PARENT_COMPONENT"),_N=new jn("MatOptgroup");let aDe=0;class uZ{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let sDe=(()=>{class t{constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+aDe++,this.onSelectionChange=new Bn,this._stateChanges=new z}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=Bi(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 r=this._getHostElement();"function"==typeof r.focus&&r.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)&&!rl(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 uZ(this,e))}}return t.\u0275fac=function(e){Ip()},t.\u0275dir=nn({type:t,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),xd=(()=>{class t extends sDe{constructor(e,i,r,o){super(e,i,r,o)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Do),de(mN,8),de(_N,8))},t.\u0275cmp=En({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&it("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(yu("id",i.id),Ti("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),sr("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[Vn],ngContentSelectors:UAe,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&&(Ua(),Ve(0,GAe,1,2,"mat-pseudo-checkbox",0),G(1,"span",1),yo(2),W(),Ve(3,YAe,2,1,"span",2),$e(4,"div",3)),2&e&&(oe("ngIf",i.multiple),K(3),oe("ngIf",i.group&&i.group._inert),K(1),oe("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[dZ,er,Sh],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;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}),t})();function vN(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}let cO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[bd,ta,Mr,gN]]}),t})();function qp(t){return Qe(()=>t)}const lO=["*"],cDe=["content"];function lDe(t,n){if(1&t){const e=Nn();G(0,"div",2),it("click",function(){return Ut(e),He()._onBackdropClicked()}),W()}2&t&&sr("mat-drawer-shown",He()._isShowingBackdrop())}function dDe(t,n){1&t&&(G(0,"mat-drawer-content"),yo(1,2),W())}const uDe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],hDe=["mat-drawer","mat-drawer-content","*"];function pDe(t,n){if(1&t){const e=Nn();G(0,"div",2),it("click",function(){return Ut(e),He()._onBackdropClicked()}),W()}2&t&&sr("mat-drawer-shown",He()._isShowingBackdrop())}function fDe(t,n){1&t&&(G(0,"mat-sidenav-content"),yo(1,2),W())}const gDe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],mDe=["mat-sidenav","mat-sidenav-content","*"],pZ={transformDrawer:sa("transform",[Nr("open, open-instant",Wn({transform:"none",visibility:"visible"})),Nr("void",Wn({"box-shadow":"none",visibility:"hidden"})),Cr("void => open-instant",gr("0ms")),Cr("void <=> open, open-instant => void",gr("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},vDe=new jn("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function CDe(){return!1}}),CN=new jn("MAT_DRAWER_CONTAINER");let Xp=(()=>{class t extends vv{constructor(e,i,r,o,a){super(r,o,a),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(de(Do),de(oo(()=>Jg)),de(gi),de(_v),de(ji))},t.\u0275cmp=En({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&jo("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[Ki([{provide:vv,useExisting:t}]),Vn],ngContentSelectors:lO,decls:1,vars:0,template:function(e,i){1&e&&(Ua(),yo(0))},encapsulation:2,changeDetection:0}),t})(),Zg=(()=>{class t{constructor(e,i,r,o,a,c,u,f){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=r,this._platform=o,this._ngZone=a,this._interactivityChecker=c,this._doc=u,this._container=f,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new z,this._animationEnd=new z,this._animationState="void",this.openedChange=new Bn(!0),this._openedStream=this.openedChange.pipe(zo(w=>w),Qe(()=>{})),this.openedStart=this._animationStarted.pipe(zo(w=>w.fromState!==w.toState&&0===w.toState.indexOf("open")),qp(void 0)),this._closedStream=this.openedChange.pipe(zo(w=>!w),Qe(()=>{})),this.closedStart=this._animationStarted.pipe(zo(w=>w.fromState!==w.toState&&"void"===w.toState),qp(void 0)),this._destroyed=new z,this.onPositionChanged=new Bn,this._modeChanged=new z,this.openedChange.subscribe(w=>{w?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Rc(this._elementRef.nativeElement,"keydown").pipe(zo(w=>27===w.keyCode&&!this.disableClose&&!rl(w)),Ln(this._destroyed)).subscribe(w=>this._ngZone.run(()=>{this.close(),w.stopPropagation(),w.preventDefault()}))}),this._animationEnd.pipe(ns((w,E)=>w.fromState===E.fromState&&w.toState===E.toState)).subscribe(w=>{const{fromState:E,toState:B}=w;(0===B.indexOf("open")&&"void"===E||"void"===B&&0===E.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Bi(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Bi(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Bi(e))}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(Po(1)).subscribe(a=>o(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,r=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(cN),de(Cd),de(Ds),de(ji),de(sN),de(Xr,8),de(CN,8))},t.\u0275cmp=En({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&fr(cDe,5),2&e){let r;hi(r=pi())&&(i._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&c6("@transform.start",function(o){return i._animationStarted.next(o)})("@transform.done",function(o){return i._animationEnd.next(o)}),2&e&&(Ti("align",null),d6("@transform",i._animationState),sr("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:lO,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(Ua(),G(0,"div",0,1),yo(2),W())},directives:[vv],encapsulation:2,data:{animation:[pZ.transformDrawer]},changeDetection:0}),t})(),Jg=(()=>{class t{constructor(e,i,r,o,a,c=!1,u){this._dir=e,this._element=i,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=u,this._drawers=new Rg,this.backdropClick=new Bn,this._destroyed=new z,this._doCheckSubject=new z,this._contentMargins={left:null,right:null},this._contentMarginChanges=new z,e&&e.change.pipe(Ln(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(Ln(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=c}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Bi(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:Bi(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Zs(this._allDrawers),Ln(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Zs(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(Ls(10),Ln(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 r=this._left._getWidth();e+=r,i-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();i+=r,e-=r}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(zo(i=>i.fromState!==i.toState),Ln(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(Ln(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Ln(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Po(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ln(So(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return t.\u0275fac=function(e){return new(e||t)(de(Xc,8),de(gi),de(ji),de(Do),de(Bf),de(vDe),de($l,8))},t.\u0275cmp=En({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,r){if(1&e&&(wo(r,Xp,5),wo(r,Zg,5)),2&e){let o;hi(o=pi())&&(i._content=o.first),hi(o=pi())&&(i._allDrawers=o)}},viewQuery:function(e,i){if(1&e&&fr(Xp,5),2&e){let r;hi(r=pi())&&(i._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&sr("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Ki([{provide:CN,useExisting:t}])],ngContentSelectors:hDe,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&&(Ua(uDe),Ve(0,lDe,1,2,"div",0),yo(1),yo(2,1),Ve(3,dDe,2,0,"mat-drawer-content",1)),2&e&&(oe("ngIf",i.hasBackdrop),K(3),oe("ngIf",!i._content))},directives:[Xp,er],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),t})(),fZ=(()=>{class t extends Xp{constructor(e,i,r,o,a){super(e,i,r,o,a)}}return t.\u0275fac=function(e){return new(e||t)(de(Do),de(oo(()=>mZ)),de(gi),de(_v),de(ji))},t.\u0275cmp=En({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,i){2&e&&jo("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[Ki([{provide:vv,useExisting:t}]),Vn],ngContentSelectors:lO,decls:1,vars:0,template:function(e,i){1&e&&(Ua(),yo(0))},encapsulation:2,changeDetection:0}),t})(),gZ=(()=>{class t extends Zg{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Bi(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=cc(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=cc(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=En({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,i){2&e&&(Ti("align",null),jo("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),sr("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:[Vn],ngContentSelectors:lO,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(Ua(),G(0,"div",0,1),yo(2),W())},directives:[vv],encapsulation:2,data:{animation:[pZ.transformDrawer]},changeDetection:0}),t})(),mZ=(()=>{class t extends Jg{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=En({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,r){if(1&e&&(wo(r,fZ,5),wo(r,gZ,5)),2&e){let o;hi(o=pi())&&(i._content=o.first),hi(o=pi())&&(i._allDrawers=o)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){2&e&&sr("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ki([{provide:CN,useExisting:t}]),Vn],ngContentSelectors:mDe,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&&(Ua(gDe),Ve(0,pDe,1,2,"div",0),yo(1),yo(2,1),Ve(3,fDe,2,0,"mat-sidenav-content",1)),2&e&&(oe("ngIf",i.hasBackdrop),K(3),oe("ngIf",!i._content))},directives:[fZ,er],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),t})(),em=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,Mr,I0],I0,Mr]}),t})();var Nt=v(17489);const _Z=new jn("noctuaCustomConfig");let dO=(()=>{class t{constructor(e,i,r){this._platform=e,this._router=i,this._config=r,this._defaultConfig=r,this._init()}set config(e){let i=this._configSubject.getValue();i=(0,Nt.merge)({},i,e),this._configSubject.next(i)}get config(){return this._configSubject.asObservable()}get defaultConfig(){return this._defaultConfig}_init(){(this._platform.ANDROID||this._platform.IOS)&&(this._defaultConfig.customScrollbars=!1),this._configSubject=new mr((0,Nt.cloneDeep)(this._defaultConfig)),this._router.events.pipe(zo(e=>e instanceof y6)).subscribe(()=>{if(!(0,Nt.isEqual)(this._configSubject.getValue(),this._defaultConfig)){const e=(0,Nt.cloneDeep)(this._defaultConfig);this._configSubject.next(e)}})}setConfig(e,i={emitEvent:!0}){let r=this._configSubject.getValue();r=(0,Nt.merge)({},r,e),!0===i.emitEvent&&this._configSubject.next(r)}getConfig(){return this._configSubject.asObservable()}resetToDefaults(){this._configSubject.next((0,Nt.cloneDeep)(this._defaultConfig))}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ds),Rt(Ql),Rt(_Z))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();function vZ(t){for(let n in t){let e=t[n]||"";switch(n){case"display":t.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":t["-webkit-"+n]=e;break;case"flex-direction":e=e||"row",t["-webkit-flex-direction"]=e,t["flex-direction"]=e;break;case"order":t.order=t["-webkit-"+n]=isNaN(+e)?"0":e}}return t}const bN="inline",uO=["row","column","row-reverse","column-reverse"];function CZ(t){let[n,e,i]=bZ(t);return function xDe(t,n=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":n||null}}(n,e,i)}function bZ(t){var n;t=null!==(n=null==t?void 0:t.toLowerCase())&&void 0!==n?n:"";let[e,i,r]=t.split(" ");return uO.find(o=>o===e)||(e=uO[0]),i===bN&&(i=r!==bN?r:"",r=bN),[e,bDe(i),!!r]}function Mv(t){let[n]=bZ(t);return n.indexOf("row")>-1}function bDe(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}function $p(t,...n){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let e of n)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}const wDe={provide:uk,useFactory:function yDe(t,n){return()=>{if(Dl(n)){const e=Array.from(t.querySelectorAll(`[class*=${xZ}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${xZ}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}},deps:[Xr,Tl],multi:!0},xZ="flex-layout-";let xN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[wDe]}),t})();class jf{constructor(n=!1,e="all",i="",r="",o=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}clone(){return new jf(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let MDe=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){const o=this.stylesheet.get(e);o?o.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const r=this.stylesheet.get(e);let o="";if(r){const a=r.get(i);("number"==typeof a||"string"==typeof a)&&(o=a+"")}return o}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const yN={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Ph=new jn("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>yN}),T6=new jn("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),wN=new jn("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function MN(t,n){return t=t?t.clone():new jf,n&&(t.mqAlias=n.alias,t.mediaQuery=n.mediaQuery,t.suffix=n.suffix,t.priority=n.priority),t}class zc{constructor(){this.shouldCache=!0}sideEffect(n,e,i){}}let Js=(()=>{class t{constructor(e,i,r,o){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=o}applyStyleToElement(e,i,r=null){let o={};"string"==typeof i&&(o[i]=r,i=o),o=this.layoutConfig.disableVendorPrefixes?i:vZ(i),this._applyMultiValueStyleToElement(o,e)}applyStyleToElements(e,i=[]){const r=this.layoutConfig.disableVendorPrefixes?e:vZ(e);i.forEach(o=>{this._applyMultiValueStyleToElement(r,o)})}getFlowDirection(e){const i="flex-direction";let r=this.lookupStyle(e,i);return[r||"row",this.lookupInlineStyle(e,i)||If(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var r;return null!==(r=e.getAttribute(i))&&void 0!==r?r:""}lookupInlineStyle(e,i){return Dl(this._platformId)?e.style.getPropertyValue(i):function ODe(t,n){var e;return null!==(e=yZ(t)[n])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,r=!1){let o="";return e&&((o=this.lookupInlineStyle(e,i))||(Dl(this._platformId)?r||(o=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(e,i)))),o?o.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{const o=e[r],a=Array.isArray(o)?o:[o];a.sort();for(let c of a)c=c?c+"":"",Dl(this._platformId)||!this._serverModuleLoaded?Dl(this._platformId)?i.style.setProperty(r,c):SDe(i,r,c):this._serverStylesheet.addStyleToElement(i,r,c)})}}return t.\u0275fac=function(e){return new(e||t)(Rt(MDe),Rt(T6),Rt(Tl),Rt(Ph))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function SDe(t,n,e){n=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=yZ(t);i[n]=null!=e?e:"",function PDe(t,n){let e="";for(const i in n)n[i]&&(e+=`${i}:${n[i]};`);t.setAttribute("style",e)}(t,i)}function yZ(t){const n={},e=t.getAttribute("style");if(e){const i=e.split(/;+/g);for(let r=0;r0){const a=o.indexOf(":");if(-1===a)throw new Error(`Invalid CSS style: ${o}`);n[o.substr(0,a).trim()]=o.substr(a+1).trim()}}}return n}function A6(t,n){return(n&&n.priority||0)-(t&&t.priority||0)}function EDe(t,n){return(t.priority||0)-(n.priority||0)}let hO=(()=>{class t{constructor(e,i,r){this._zone=e,this._platformId=i,this._document=r,this.source=new mr(new jf(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){var i;const r=this.registry.get(e);return null!==(i=null==r?void 0:r.matches)&&void 0!==i?i:this.registerQuery(e).some(o=>o.matches)}observe(e,i=!1){if(e&&e.length){const r=this._observable$.pipe(zo(a=>!i||e.indexOf(a.mediaQuery)>-1));return So(new At(a=>{const c=this.registerQuery(e);if(c.length){const u=c.pop();c.forEach(f=>{a.next(f)}),this.source.next(u)}a.complete()}),r)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],r=[];return function TDe(t,n){const e=t.filter(i=>!wZ[i]);if(e.length>0){const i=e.join(", ");try{const r=n.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(n.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),n.head.appendChild(r),e.forEach(o=>wZ[o]=r)}catch(r){console.error(r)}}}(i,this._document),i.forEach(o=>{const a=u=>{this._zone.run(()=>this.source.next(new jf(u.matches,o)))};let c=this.registry.get(o);c||(c=this.buildMQL(o),c.addListener(a),this.pendingRemoveListenerFns.push(()=>c.removeListener(a)),this.registry.set(o,c)),c.matches&&r.push(new jf(!0,o))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function ADe(t,n){return n&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,Dl(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(Rt(ji),Rt(Tl),Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const wZ={},DDe=[{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}],MZ="(orientation: portrait) and (max-width: 599.98px)",OZ="(orientation: landscape) and (max-width: 959.98px)",SZ="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",PZ="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",EZ="(orientation: portrait) and (min-width: 840px)",TZ="(orientation: landscape) and (min-width: 1280px)",Qp={HANDSET:`${MZ}, ${OZ}`,TABLET:`${SZ} , ${PZ}`,WEB:`${EZ}, ${TZ} `,HANDSET_PORTRAIT:`${MZ}`,TABLET_PORTRAIT:`${SZ} `,WEB_PORTRAIT:`${EZ}`,HANDSET_LANDSCAPE:`${OZ}`,TABLET_LANDSCAPE:`${PZ}`,WEB_LANDSCAPE:`${TZ}`},LDe=[{alias:"handset",priority:2e3,mediaQuery:Qp.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Qp.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Qp.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Qp.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Qp.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Qp.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Qp.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Qp.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Qp.WEB_PORTRAIT,overlapping:!0}],kDe=/(\.|-|_)/g;function IDe(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}const FDe=new jn("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Ep(wN),n=Ep(Ph),e=[].concat.apply([],(t||[]).map(r=>Array.isArray(r)?r:[r]));return function zDe(t,n=[]){const e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?$p(e[i.alias],i):e[i.alias]=i}),function RDe(t){return t.forEach(n=>{n.suffix||(n.suffix=function NDe(t){return t.replace(kDe,"|").split("|").map(IDe).join("")}(n.alias),n.overlapping=!!n.overlapping)}),t}(Object.keys(e).map(i=>e[i]))}((n.disableDefaultBps?[]:DDe).concat(n.addOrientationBps?LDe:[]),e)}});let pO=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(EDe)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var i;return null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:""})}findWithPredicate(e,i){var r;let o=this.findByMap.get(e);return o||(o=null!==(r=this.items.find(i))&&void 0!==r?r:null,this.findByMap.set(e,o)),null!=o?o:null}}return t.\u0275fac=function(e){return new(e||t)(Rt(FDe))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const D6="print",HDe={alias:D6,mediaQuery:D6,priority:1e3};let AZ=(()=>{class t{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new VDe,this.deactivations=[]}withPrintQuery(e){return[...e,D6]}isPrintEvent(e){return e.mediaQuery.startsWith(D6)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(A6)}updateEvent(e){var i;let r=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(r=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:""),MN(e,r)}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 jf(!0,D6))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(e){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const r=this.breakpoints.findByQuery(i.mediaQuery);if(r){const o=this.formerActivations&&this.formerActivations.includes(r),a=!this.formerActivations&&e.activatedBreakpoints.includes(r);(o||a)&&(this.deactivations.push(r),this.deactivations.sort(A6))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return t.\u0275fac=function(e){return new(e||t)(Rt(pO),Rt(Ph),Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class VDe{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(HDe),n.sort(A6),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)&&(this.printBreakpoints=function BDe(t){var n;return null!==(n=null==t?void 0:t.mediaQuery.startsWith(D6))&&void 0!==n&&n}(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}}let lc=(()=>{class t{constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new z,this.observeActivations()}get activatedAlias(){var e,i;return null!==(i=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==i?i:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);if(i){e=MN(e,i);const r=this.activatedBreakpoints.indexOf(i);e.matches&&-1===r?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(A6),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(A6),this.updateStyles())}}init(e,i,r,o,a=[]){DZ(this.updateMap,e,i,r),DZ(this.clearMap,e,i,o),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,a)}getValue(e,i,r){const o=this.elementMap.get(e);if(o){const a=void 0!==r?o.get(r):this.getActivatedValues(o,i);if(a)return a.get(i)}}hasValue(e,i){const r=this.elementMap.get(e);if(r){const o=this.getActivatedValues(r,i);if(o)return void 0!==o.get(i)||!1}return!1}setValue(e,i,r,o){var a;let c=this.elementMap.get(e);if(c){const f=(null!==(a=c.get(o))&&void 0!==a?a:new Map).set(i,r);c.set(o,f),this.elementMap.set(e,c)}else c=(new Map).set(o,(new Map).set(i,r)),this.elementMap.set(e,c);const u=this.getValue(e,i);void 0!==u&&this.updateElement(e,i,u)}trackValue(e,i){return this.subject.asObservable().pipe(zo(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const r=new Set(this.elementKeyMap.get(i));let o=this.getActivatedValues(e);o&&o.forEach((a,c)=>{this.updateElement(i,c,a),r.delete(c)}),r.forEach(a=>{if(o=this.getActivatedValues(e,a),o){const c=o.get(a);this.updateElement(i,a,c)}else this.clearElement(i,a)})})}clearElement(e,i){const r=this.clearMap.get(e);if(r){const o=r.get(i);o&&(o(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){const o=this.updateMap.get(e);if(o){const a=o.get(i);a&&(a(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(o=>o.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((o,a)=>r.delete(a)),this.elementMap.delete(e))}triggerUpdate(e,i){const r=this.elementMap.get(e);if(r){const o=this.getActivatedValues(r,i);o&&(i?this.updateElement(e,i,o.get(i)):o.forEach((a,c)=>this.updateElement(e,c,a)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let o=this.watcherMap.get(e);if(o||(o=new Map,this.watcherMap.set(e,o)),!o.get(i)){const c=So(...r).subscribe(()=>{const u=this.getValue(e,i);this.updateElement(e,i,u)});o.set(i,c)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let o=0;oi.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(ts(this.hook.interceptEvents(this)),zo(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(Rt(hO),Rt(pO),Rt(AZ))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function DZ(t,n,e,i){var r;if(void 0!==i){const o=null!==(r=t.get(n))&&void 0!==r?r:new Map;o.set(e,i),t.set(n,o)}}let Pc=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=o,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new z,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 r=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,r)}})}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 r=this.styleBuilder,o=r.shouldCache;let a=this.styleCache.get(e);(!a||!o)&&(a=r.buildStyles(e,i),o&&this.styleCache.set(e,a)),this.mru=Object.assign({},a),this.applyStyleToElement(a),r.sideEffect(e,a,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[r,o]=this.styler.getFlowDirection(e);if(!o&&i){const a=CZ(r);this.styler.applyStyleToElements(a,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(zc),de(Js),de(lc))},t.\u0275dir=nn({type:t,features:[$r]}),t})(),jDe=(()=>{class t{constructor(e,i,r){this.breakpoints=e,this.matchMedia=i,this.hook=r,this.filterOverlaps=!1,this.destroyed$=new z,this._media$=this.watchActivations(),this.media$=this._media$.pipe(zo(o=>o.length>0),Qe(o=>o[0]))}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(e){return function qDe(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}(function UDe(t){return Array.isArray(t)?t:[t]}(e)).some(r=>{const o=function WDe(t,n){var e,i;const r=null!==(e=n.findByAlias(t))&&void 0!==e?e:n.findByQuery(t);return null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:null}(r,this.breakpoints);return null!==o&&this.matchMedia.isActive(o)})}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(zo(a=>a.matches),Ls(0,QM),S1(a=>Ir(this.findAllActivations())),Qe(a=>this.filterOverlaps?a.filter(c=>{var u;const f=this.breakpoints.findByQuery(c.mediaQuery);return null===(u=null==f?void 0:f.overlapping)||void 0===u||u}):a),zo(a=>a.filter(u=>u.mediaQuery.length>0).length>0),ns((a,c)=>{if(a.length!==c.length)return!1;const u=a.map(E=>E.mediaQuery),f=new Set(c.map(E=>E.mediaQuery));return 0===new Set(u.filter(E=>!f.has(E))).size}),Ln(this.destroyed$))}findAllActivations(){return this.matchMedia.activations.map(r=>new jf(!0,r)).map(r=>this.hook.isPrintEvent(r)?this.hook.updateEvent(r):r).map(r=>MN(r,this.breakpoints.findByQuery(r.mediaQuery))).sort(A6)}}return t.\u0275fac=function(e){return new(e||t)(Rt(pO),Rt(hO),Rt(AZ))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function LZ(t,n="1",e="1"){let i=[n,e,t],r=t.indexOf("calc");if(r>0){i[2]=kZ(t.substring(r).trim());let o=t.substr(0,r).trim().split(" ");2==o.length&&(i[0]=o[0],i[1]=o[1])}else if(0==r)i[2]=kZ(t.trim());else{let o=t.split(" ");i=3===o.length?o:[n,e,t]}return i}function kZ(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let XDe=(()=>{class t{constructor(e){this._mediaObserver=e,this.onMediaChange=new mr(""),this.activeMediaQuery="",this._init()}_init(){this._mediaObserver.media$.pipe(Ls(500),ns()).subscribe(e=>{this.activeMediaQuery!==e.mqAlias&&(this.activeMediaQuery=e.mqAlias,this.onMediaChange.next(e.mqAlias))})}}return t.\u0275fac=function(e){return new(e||t)(Rt(jDe))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),NZ=(()=>{class t{constructor(e,i,r){if(this.animationBuilder=e,this.document=i,this.router=r,this.splashScreenEl=this.document.body.querySelector("#noctua-splash-screen"),this.splashScreenEl){const o=this.router.events.subscribe(a=>{a instanceof Up&&setTimeout(()=>{this.hide(),o.unsubscribe()},0)})}}show(){this.player=this.animationBuilder.build([Wn({opacity:"0",zIndex:"99999"}),gr("400ms ease",Wn({opacity:"1"}))]).create(this.splashScreenEl),setTimeout(()=>{this.player.play()},0)}hide(){this.player=this.animationBuilder.build([Wn({opacity:"1"}),gr("400ms ease",Wn({opacity:"0",zIndex:"-10"}))]).create(this.splashScreenEl),setTimeout(()=>{this.player.play()},0)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Zk),Rt(Xr),Rt(Ql))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),$De=(()=>{class t{constructor(e){if(e)throw new Error("NoctuaModule is already loaded. Import it in the AppModule only!")}static forRoot(e){return{ngModule:t,providers:[{provide:_Z,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(Rt(t,12))},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[dO,XDe,NZ]}),t})();const RZ=["mat-button",""],zZ=["*"],ZDe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],JDe=Oh(N0(Iu(class{constructor(t){this._elementRef=t}})));let Er=(()=>{class t extends JDe{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of ZDe)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Cd),de($l,8))},t.\u0275cmp=En({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&fr(Sh,5),2&e){let r;hi(r=pi())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Ti("disabled",i.disabled||null),sr("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Vn],attrs:RZ,ngContentSelectors:zZ,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&&(Ua(),G(0,"span",0),yo(1),W(),$e(2,"span",1)(3,"span",2)),2&e&&(K(2),sr("mat-button-ripple-round",i.isRoundButton||i.isIconButton),oe("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Sh],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color: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;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;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;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}),t})(),Ov=(()=>{class t extends Er{constructor(e,i,r,o){super(i,e,r),this._ngZone=o,this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return t.\u0275fac=function(e){return new(e||t)(de(Cd),de(gi),de($l,8),de(ji,8))},t.\u0275cmp=En({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,i){2&e&&(Ti("tabindex",i.disabled?-1:i.tabIndex)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),sr("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Vn],attrs:RZ,ngContentSelectors:zZ,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&&(Ua(),G(0,"span",0),yo(1),W(),$e(2,"span",1)(3,"span",2)),2&e&&(K(2),sr("mat-button-ripple-round",i.isRoundButton||i.isIconButton),oe("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Sh],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color: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;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;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;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}),t})(),Nu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[bd,Mr],Mr]}),t})();function R0(...t){const n=Yl(t),{args:e,keys:i}=OQ(t),r=new At(o=>{const{length:a}=e;if(!a)return void o.complete();const c=new Array(a);let u=a,f=a;for(let w=0;w{E||(E=!0,f--),c[w]=B},()=>u--,void 0,()=>{(!u||!E)&&(f||o.next(i?SQ(i,c):c),o.complete())}))}});return n?r.pipe(OI(n)):r}const eLe=["*"];let gO;function Sv(t){var n;return(null===(n=function tLe(){if(void 0===gO&&(gO=null,"undefined"!=typeof window)){const t=window;void 0!==t.trustedTypes&&(gO=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return gO}())||void 0===n?void 0:n.createHTML(t))||t}function FZ(t){return Error(`Unable to find icon with the name "${t}"`)}function HZ(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function VZ(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class tm{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let mO=(()=>{class t{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,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=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new tm(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const a=this._sanitizer.sanitize(Ya.HTML,r);if(!a)throw VZ(r);const c=Sv(a);return this._addSvgIconConfig(e,i,new tm("",c,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new tm(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(Ya.HTML,i);if(!o)throw VZ(i);const a=Sv(o);return this._addSvgIconSetConfig(e,new tm("",a,r))}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(Ya.RESOURCE_URL,e);if(!i)throw HZ(e);const r=this._cachedIconsByUrl.get(i);return r?Ir(_O(r)):this._loadSvgIconFromConfig(new tm(e,null)).pipe(ts(o=>this._cachedIconsByUrl.set(i,o)),Qe(o=>_O(o)))}getNamedSvgIcon(e,i=""){const r=BZ(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Z9(FZ(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Ir(_O(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Qe(i=>_O(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?Ir(r):R0(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Gp(c=>{const f=`Loading icon set URL: ${this._sanitizer.sanitize(Ya.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(f)),Ir(null)})))).pipe(Qe(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw FZ(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(o),c=this._extractSvgIconFromSet(a,e,o.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(ts(i=>e.svgText=i),Qe(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Ir(null):this._fetchIcon(e).pipe(ts(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const c=this._svgElementFromString(Sv(""));return c.appendChild(a),this._setSvgAttributes(c,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Sv("")),r=e.attributes;for(let o=0;oSv(w)),Eu(()=>this._inProgressUrlFetches.delete(c)),Yc());return this._inProgressUrlFetches.set(c,f),f}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(BZ(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.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 r=0;rn?n.pathname+n.search:""}}}),GZ=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],cLe=GZ.map(t=>`[${t}]`).join(", "),lLe=/^url\(['"]?#(.*?)['"]?\)$/;let Mo=(()=>{class t extends oLe{constructor(e,i,r,o,a){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=a,this._inline=!1,this._currentIconFetch=Me.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Bi(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.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((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(cLe),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const c=i[o],u=c.getAttribute(a),f=u?u.match(lLe):null;if(f){let w=r.get(c);w||(w=[],r.set(c,w)),w.push({name:a,value:f[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Po(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(mO),Ts("aria-hidden"),de(aLe),de(w0))},t.\u0275cmp=En({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(Ti("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),sr("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:[Vn],ngContentSelectors:eLe,decls:1,vars:0,template:function(e,i){1&e&&(Ua(),yo(0))},styles:[".mat-icon{-webkit-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}),t})(),Kp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Mr],Mr]}),t})();const dLe=["primaryValueBar"],uLe=Oh(class{constructor(t){this._elementRef=t}},"primary"),hLe=new jn("mat-progress-bar-location",{providedIn:"root",factory:function pLe(){const t=Ep(Xr),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}}),fLe=new jn("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let gLe=0,Pv=(()=>{class t extends uLe{constructor(e,i,r,o,a,c){super(e),this._ngZone=i,this._animationMode=r,this._changeDetectorRef=c,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new Bn,this._animationEndSubscription=Me.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+gLe++;const u=o?o.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${u}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===r,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(e){var i;this._value=YZ(cc(e)||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(e){var i;this._bufferValue=YZ(e||0),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=this._primaryValueBar.nativeElement;this._animationEndSubscription=Rc(e,"transitionend").pipe(zo(i=>i.target===e)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(ji),de($l,8),de(hLe,8),de(fLe,8),de(Do))},t.\u0275cmp=En({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(e,i){if(1&e&&fr(dLe,5),2&e){let r;hi(r=pi())&&(i._primaryValueBar=r.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,i){2&e&&(Ti("aria-valuenow","indeterminate"===i.mode||"query"===i.mode?null:i.value)("mode",i.mode),sr("_mat-animation-noopable",i._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[Vn],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,i){1&e&&(G(0,"div",0),ua(),G(1,"svg",1)(2,"defs")(3,"pattern",2),$e(4,"circle",3),W()(),$e(5,"rect",4),W(),oc(),$e(6,"div",5)(7,"div",6,7)(9,"div",8),W()),2&e&&(K(3),oe("id",i.progressbarId),K(2),Ti("fill",i._rectangleFillValue),K(1),oe("ngStyle",i._bufferTransform()),K(1),oe("ngStyle",i._primaryTransform()))},directives:[_6],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function YZ(t,n=0,e=100){return Math.max(n,Math.min(e,t))}let vO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,Mr],Mr]}),t})(),mLe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,G2,Nu,Kp,vO]]}),t})();class ON{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Kd extends ON{constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class L6 extends ON{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class _Le extends ON{constructor(n){super(),this.element=n instanceof gi?n.nativeElement:n}}class CO{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Kd?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof L6?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof _Le?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class UZ extends CO{constructor(n,e,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=a=>{const c=a.element,u=this._document.createComment("dom-portal");c.parentNode.insertBefore(u,c),this.outletElement.appendChild(c),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(c,u)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||hs.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let k6=(()=>{class t extends CO{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Bn,this.attachDomPortal=o=>{const a=o.element,c=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}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 t.\u0275fac=function(e){return new(e||t)(de(Df),de(As),de(Xr))},t.\u0275dir=nn({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Vn]}),t})(),Wf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})();class bO{constructor(n,e){this._parentInjector=n,this._customTokens=e}get(n,e){const i=this._customTokens.get(n);return void 0!==i?i:this._parentInjector.get(n,e)}}const jZ=VK();class CLe{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=il(-this._previousScrollPosition.left),n.style.top=il(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),jZ&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),jZ&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_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 bLe{constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class WZ{enable(){}disable(){}attach(){}}function SN(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function qZ(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class xLe{constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();SN(e,[{width:i,height:r,bottom:r,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 yLe=(()=>{class t{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new WZ,this.close=a=>new bLe(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new CLe(this._viewportRuler,this._document),this.reposition=a=>new xLe(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return t.\u0275fac=function(e){return new(e||t)(Rt(_v),Rt(Bf),Rt(ji),Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Eh{constructor(n){if(this.scrollStrategy=new WZ,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class wLe{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}class MLe{constructor(n,e,i,r,o,a,c,u,f){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=c,this._location=u,this._outsideClickDispatcher=f,this._backdropElement=null,this._backdropClick=new z,this._attachments=new z,this._detachments=new z,this._locationChanges=Me.EMPTY,this._backdropClickHandler=w=>this._backdropClick.next(w),this._backdropTransitionendHandler=w=>{this._disposeBackdrop(w.target)},this._keydownEvents=new z,this._outsidePointerEvents=new z,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Po(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 n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){var n;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(n=this._host)||void 0===n||n.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=il(this._config.width),n.height=il(this._config.height),n.minWidth=il(this._config.minWidth),n.minHeight=il(this._config.minHeight),n.maxWidth=il(this._config.maxWidth),n.maxHeight=il(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._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(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;!n||(n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500)))}_toggleClasses(n,e,i){const r=WM(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Ln(So(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let PN=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||eN()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let a;for(let c of this._preferredPositions){let u=this._getOriginPoint(n,r,c),f=this._getOverlayPoint(u,e,c),w=this._getOverlayFit(f,e,i,c);if(w.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,u);this._canFitWithFlexibleDimensions(w,f,i)?o.push({position:c,origin:u,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(u,c)}):(!a||a.overlayFit.visibleAreau&&(u=w,c=f)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&nm(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(XZ),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const a=this._isRtl()?n.right:n.left,c=this._isRtl()?n.left:n.right;r="start"==i.originX?a:c}return e.left<0&&(r-=e.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){const o=KZ(e);let{x:a,y:c}=n,u=this._getOffset(r,"x"),f=this._getOffset(r,"y");u&&(a+=u),f&&(c+=f);let B=0-c,Z=c+o.height-i.height,ee=this._subtractOverflows(o.width,0-a,a+o.width-i.width),be=this._subtractOverflows(o.height,B,Z),_e=ee*be;return{visibleArea:_e,isCompletelyWithinViewport:o.width*o.height===_e,fitsInViewportVertically:be===o.height,fitsInViewportHorizontally:ee==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,a=QZ(this._overlayRef.getConfig().minHeight),c=QZ(this._overlayRef.getConfig().minWidth),f=n.fitsInViewportHorizontally||null!=c&&c<=o;return(n.fitsInViewportVertically||null!=a&&a<=r)&&f}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=KZ(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),c=Math.max(n.y+r.height-o.height,0),u=Math.max(o.top-i.top-n.y,0),f=Math.max(o.left-i.left-n.x,0);let w=0,E=0;return w=r.width<=o.width?f||-a:n.xee&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-ee/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)B=i.width-n.x+this._viewportMargin,w=n.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)E=n.x,w=i.right-n.x;else{const Z=Math.min(i.right-n.x+i.left,n.x),ee=this._lastBoundingBoxSize.width;w=2*Z,E=n.x-Z,w>ee&&!this._isInitialRender&&!this._growAfterOpen&&(E=n.x-ee/2)}return{top:a,left:E,bottom:c,right:B,width:w,height:o}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=il(i.height),r.top=il(i.top),r.bottom=il(i.bottom),r.width=il(i.width),r.left=il(i.left),r.right=il(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=il(o)),a&&(r.maxWidth=il(a))}this._lastBoundingBoxSize=i,nm(this._boundingBox.style,r)}_resetBoundingBoxStyles(){nm(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){nm(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const w=this._viewportRuler.getViewportScrollPosition();nm(i,this._getExactOverlayY(e,n,w)),nm(i,this._getExactOverlayX(e,n,w))}else i.position="static";let c="",u=this._getOffset(e,"x"),f=this._getOffset(e,"y");u&&(c+=`translateX(${u}px) `),f&&(c+=`translateY(${f}px)`),i.transform=c.trim(),a.maxHeight&&(r?i.maxHeight=il(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=il(a.maxWidth):o&&(i.maxWidth="")),nm(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=il(o.y),r}_getExactOverlayX(n,e,i){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),a=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=il(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:qZ(n,i),isOriginOutsideView:SN(n,i),isOverlayClipped:qZ(e,i),isOverlayOutsideView:SN(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&WM(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof gi)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function nm(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function QZ(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(OLe);return e&&"px"!==e?null:parseFloat(n)}return t||null}function KZ(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const ZZ="cdk-global-overlay-wrapper";class SLe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(ZZ),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._rightOffset="",this._leftOffset=n,this._justifyContent="flex-start",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._leftOffset="",this._rightOffset=n,this._justifyContent="flex-end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._justifyContent="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:c}=i,u=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),f=!("100%"!==o&&"100vh"!==o||c&&"100%"!==c&&"100vh"!==c);n.position=this._cssPosition,n.marginLeft=u?"0":this._leftOffset,n.marginTop=f?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=this._rightOffset,u?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=f?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(ZZ),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let PLe=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new SLe}flexibleConnectedTo(e){return new $Z(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Bf),Rt(Xr),Rt(Ds),Rt(PN))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),JZ=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ELe=(()=>{class t extends JZ{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const c=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr),Rt(ji,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),TLe=(()=>{class t extends JZ{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Du(o)},this._clickListener=o=>{const a=Du(o),c="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const u=this._attachedOverlays.slice();for(let f=u.length-1;f>-1;f--){const w=u[f];if(w._outsidePointerEvents.observers.length<1||!w.hasAttached())continue;if(w.overlayElement.contains(a)||w.overlayElement.contains(c))break;const E=w._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>E.next(o)):E.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr),Rt(Ds),Rt(ji,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ALe=0,ol=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E,B){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=c,this._ngZone=u,this._document=f,this._directionality=w,this._location=E,this._outsideClickDispatcher=B}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),a=new Eh(e);return a.direction=a.direction||this._directionality.value,new MLe(o,i,r,a,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-"+ALe++,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(F9)),new UZ(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Rt(yLe),Rt(PN),Rt(Df),Rt(PLe),Rt(ELe),Rt(hs),Rt(ji),Rt(Xr),Rt(Xc),Rt(H9),Rt(TLe))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();const DLe=[{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"}],eJ=new jn("cdk-connected-overlay-scroll-strategy");let tJ=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(de(gi))},t.\u0275dir=nn({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),nJ=(()=>{class t{constructor(e,i,r,o,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Me.EMPTY,this._attachSubscription=Me.EMPTY,this._detachSubscription=Me.EMPTY,this._positionSubscription=Me.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Bn,this.positionChange=new Bn,this.attach=new Bn,this.detach=new Bn,this.overlayKeydown=new Bn,this.overlayOutsideClick=new Bn,this._templatePortal=new L6(i,r),this._scrollStrategyFactory=o,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=Bi(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Bi(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Bi(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Bi(e)}get push(){return this._push}set push(e){this._push=Bi(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=DLe);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&&!rl(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 Eh({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(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.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 tJ?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 vLe(t,n=!1){return Ce((e,i)=>{let r=0;e.subscribe(Be(i,o=>{const a=t(o,r++);(a||n)&&i.next(o),!a&&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 t.\u0275fac=function(e){return new(e||t)(de(ol),de(Ks),de(As),de(eJ),de(Xc,8))},t.\u0275dir=nn({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[$r]}),t})();const kLe={provide:eJ,deps:[ol],useFactory:function LLe(t){return()=>t.scrollStrategies.reposition()}};let im=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[ol,kLe],imports:[[Vf,Wf,Cv],Cv]}),t})(),iJ=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(de(Uc),de(gi))},t.\u0275dir=nn({type:t}),t})(),rm=(()=>{class t extends iJ{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,features:[Vn]}),t})();const Kl=new jn("NgValueAccessor"),NLe={provide:Kl,useExisting:oo(()=>yd),multi:!0},zLe=new jn("CompositionEventMode");let yd=(()=>{class t extends iJ{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function RLe(){const t=T0()?T0().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Uc),de(gi),de(zLe,8))},t.\u0275dir=nn({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&it("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Ki([NLe]),Vn]}),t})();function qf(t){return null==t||0===t.length}function oJ(t){return null!=t&&"number"==typeof t.length}const kl=new jn("NgValidators"),Xf=new jn("NgAsyncValidators"),FLe=/^(?=.{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 I6{static min(n){return function aJ(t){return n=>{if(qf(n.value)||qf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(qf(n.value)||qf(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return cJ(n)}static requiredTrue(n){return function lJ(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function dJ(t){return qf(t.value)||FLe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function uJ(t){return n=>qf(n.value)||!oJ(n.value)?null:n.value.lengthoJ(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function pJ(t){if(!t)return xO;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(qf(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return CJ(n)}static composeAsync(n){return bJ(n)}}function cJ(t){return qf(t.value)?{required:!0}:null}function xO(t){return null}function fJ(t){return null!=t}function gJ(t){const n=O9(t)?Jo(t):t;return FL(n),n}function mJ(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function _J(t,n){return n.map(e=>e(t))}function vJ(t){return t.map(n=>function HLe(t){return!t.validate}(n)?n:e=>n.validate(e))}function CJ(t){if(!t)return null;const n=t.filter(fJ);return 0==n.length?null:function(e){return mJ(_J(e,n))}}function EN(t){return null!=t?CJ(vJ(t)):null}function bJ(t){if(!t)return null;const n=t.filter(fJ);return 0==n.length?null:function(e){return R0(_J(e,n).map(gJ)).pipe(Qe(mJ))}}function TN(t){return null!=t?bJ(vJ(t)):null}function xJ(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function yJ(t){return t._rawValidators}function wJ(t){return t._rawAsyncValidators}function AN(t){return t?Array.isArray(t)?t:[t]:[]}function yO(t,n){return Array.isArray(t)?t.includes(n):t===n}function MJ(t,n){const e=AN(n);return AN(t).forEach(r=>{yO(e,r)||e.push(r)}),e}function OJ(t,n){return AN(n).filter(e=>!yO(t,e))}class SJ{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=EN(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=TN(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Th extends SJ{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Y2 extends SJ{get formDirective(){return null}get path(){return null}}class PJ{constructor(n){this._cd=n}is(n){var e,i,r;return"submitted"===n?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[n])}}let E1=(()=>{class t extends PJ{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Th,2))},t.\u0275dir=nn({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&sr("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:[Vn]}),t})(),Il=(()=>{class t extends PJ{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Y2,10))},t.\u0275dir=nn({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&sr("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"))("ng-submitted",i.is("submitted"))},features:[Vn]}),t})();function MO(t,n){return[...n.path,t]}function Ev(t,n){kN(t,n),n.valueAccessor.writeValue(t.value),function qLe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&TJ(t,n)})}(t,n),function $Le(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function XLe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&TJ(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function WLe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function OO(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),PO(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function SO(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function kN(t,n){const e=yJ(t);null!==n.validator?t.setValidators(xJ(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=wJ(t);null!==n.asyncValidator?t.setAsyncValidators(xJ(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();SO(n._rawValidators,r),SO(n._rawAsyncValidators,r)}function PO(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=yJ(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=wJ(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return SO(n._rawValidators,i),SO(n._rawAsyncValidators,i),e}function TJ(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function AJ(t,n){kN(t,n)}function IN(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function LJ(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function NN(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===yd?e=o:function ZLe(t){return Object.getPrototypeOf(t.constructor)===rm}(o)?i=o:r=o}),r||i||e||null}function RN(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const Tv="VALID",EO="INVALID",N6="PENDING",Av="DISABLED";function FN(t){return(TO(t)?t.validators:t)||null}function kJ(t){return Array.isArray(t)?EN(t):t||null}function HN(t,n){return(TO(n)?n.asyncValidators:t)||null}function IJ(t){return Array.isArray(t)?TN(t):t||null}function TO(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const VN=t=>t instanceof br,AO=t=>t instanceof r2,NJ=t=>t instanceof Ah;function RJ(t){return VN(t)?t.value:t.getRawValue()}function zJ(t,n){const e=AO(t),i=t.controls;if(!(e?Object.keys(i):i).length)throw new ye(1e3,"");if(!i[n])throw new ye(1001,"")}function FJ(t,n){AO(t),t._forEachChild((i,r)=>{if(void 0===n[r])throw new ye(1002,"")})}class BN{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=kJ(this._rawValidators),this._composedAsyncValidatorFn=IJ(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Tv}get invalid(){return this.status===EO}get pending(){return this.status==N6}get disabled(){return this.status===Av}get enabled(){return this.status!==Av}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=kJ(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=IJ(n)}addValidators(n){this.setValidators(MJ(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(MJ(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(OJ(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(OJ(n,this._rawAsyncValidators))}hasValidator(n){return yO(this._rawValidators,n)}hasAsyncValidator(n){return yO(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=N6,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Av,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Tv,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tv||this.status===N6)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Av:Tv}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=N6,this._hasOwnPendingAsyncValidator=!0;const e=gJ(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){return function JLe(t,n,e){if(null==n||(Array.isArray(n)||(n=n.split(e)),Array.isArray(n)&&0===n.length))return null;let i=t;return n.forEach(r=>{i=AO(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:NJ(i)&&i.at(r)||null}),i}(this,n,".")}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Bn,this.statusChanges=new Bn}_calculateStatus(){return this._allControlsDisabled()?Av:this.errors?EO:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(N6)?N6:this._anyControlsHaveStatus(EO)?EO:Tv}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){TO(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class br extends BN{constructor(n=null,e,i){super(FN(e),HN(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),TO(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){RN(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){RN(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}class r2 extends BN{constructor(n,e,i){super(FN(e),HN(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){FJ(this,n),Object.keys(n).forEach(i=>{zJ(this,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=RJ(e),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,e,i)=>((e.enabled||this.disabled)&&(n[i]=e.value),n))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Ah extends BN{constructor(n,e,i){super(FN(e),HN(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[n]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){FJ(this,n),n.forEach((i,r)=>{zJ(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>RJ(n))}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}const eke={provide:Y2,useExisting:oo(()=>z0)},Dv=(()=>Promise.resolve(null))();let z0=(()=>{class t extends Y2{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Bn,this.form=new r2({},EN(e),TN(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Dv.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Ev(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Dv.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Dv.then(()=>{const i=this._findContainer(e.path),r=new r2({});AJ(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Dv.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Dv.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,LJ(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 t.\u0275fac=function(e){return new(e||t)(de(kl,10),de(Xf,10))},t.\u0275dir=nn({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&it("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ki([eke]),Vn]}),t})(),HJ=(()=>{class t extends Y2{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return MO(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,features:[Vn]}),t})();const nke={provide:Th,useExisting:oo(()=>DO)},BJ=(()=>Promise.resolve(null))();let DO=(()=>{class t extends Th{constructor(e,i,r,o,a){super(),this._changeDetectorRef=a,this.control=new br,this._registered=!1,this.update=new Bn,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=NN(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),IN(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ev(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){BJ.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=""===i||i&&"false"!==i;BJ.then(()=>{var o;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()})}_getPath(e){return this._parent?MO(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(de(Y2,9),de(kl,10),de(Xf,10),de(Kl,10),de(Do,8))},t.\u0275dir=nn({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ki([nke]),Vn,$r]}),t})(),U2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),YJ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})();const GN=new jn("NgModelWithFormControlWarning"),cke={provide:Y2,useExisting:oo(()=>al)};let al=(()=>{class t extends Y2{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 Bn,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&&(PO(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 Ev(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){OO(e.control||null,e,!1),RN(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,LJ(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,r=this.form.get(e.path);i!==r&&(OO(i||null,e),VN(r)&&(Ev(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);AJ(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function QLe(t,n){return PO(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){kN(this.form,this),this._oldForm&&PO(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(de(kl,10),de(Xf,10))},t.\u0275dir=nn({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&it("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ki([cke]),Vn,$r]}),t})();const lke={provide:Y2,useExisting:oo(()=>om)};let om=(()=>{class t extends HJ{constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){qJ(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(de(Y2,13),de(kl,10),de(Xf,10))},t.\u0275dir=nn({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Ki([lke]),Vn]}),t})();const dke={provide:Y2,useExisting:oo(()=>$f)};let $f=(()=>{class t extends Y2{constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return MO(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){qJ(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(de(Y2,13),de(kl,10),de(Xf,10))},t.\u0275dir=nn({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Ki([dke]),Vn]}),t})();function qJ(t){return!(t instanceof om||t instanceof al||t instanceof $f)}const uke={provide:Th,useExisting:oo(()=>o2)};let o2=(()=>{class t extends Th{constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new Bn,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=NN(0,o)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),IN(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return MO(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(de(Y2,13),de(kl,10),de(Xf,10),de(Kl,10),de(GN,8))},t.\u0275dir=nn({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ki([uke]),Vn,$r]}),t})(),am=(()=>{class t{constructor(){this._validator=xO}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):xO,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t,features:[$r]}),t})();const xke={provide:kl,useExisting:oo(()=>LO),multi:!0};let LO=(()=>{class t extends am{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function vke(t){return null!=t&&!1!==t&&"false"!=`${t}`}(e),this.createValidator=e=>cJ}enabled(e){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,i){2&e&&Ti("required",i._enabled?"":null)},inputs:{required:"required"},features:[Ki([xke]),Vn]}),t})(),ree=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[YJ]]}),t})(),Qf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[ree]}),t})(),Zp=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:GN,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[ree]}),t})(),Zd=(()=>{class t{group(e,i=null){const r=this._reduceControls(e);let c,o=null,a=null;return null!=i&&(function Pke(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(i)?(o=null!=i.validators?i.validators:null,a=null!=i.asyncValidators?i.asyncValidators:null,c=null!=i.updateOn?i.updateOn:void 0):(o=null!=i.validator?i.validator:null,a=null!=i.asyncValidator?i.asyncValidator:null)),new r2(r,{asyncValidators:a,updateOn:c,validators:o})}control(e,i,r){return new br(e,i,r)}array(e,i,r){const o=e.map(a=>this._createControl(a));return new Ah(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return VN(e)||AO(e)||NJ(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:Zp}),t})();const Eke=["connectionContainer"],Tke=["inputContainer"],Ake=["label"];function Dke(t,n){1&t&&(Qr(0),G(1,"div",14),$e(2,"div",15)(3,"div",16)(4,"div",17),W(),G(5,"div",18),$e(6,"div",15)(7,"div",16)(8,"div",17),W(),Kr())}function Lke(t,n){if(1&t){const e=Nn();G(0,"div",19),it("cdkObserveContent",function(){return Ut(e),He().updateOutlineGap()}),yo(1,1),W()}2&t&&oe("cdkObserveContentDisabled","outline"!=He().appearance)}function kke(t,n){if(1&t&&(Qr(0),yo(1,2),G(2,"span"),he(3),W(),Kr()),2&t){const e=He(2);K(3),Zr(e._control.placeholder)}}function Ike(t,n){1&t&&yo(0,3,["*ngSwitchCase","true"])}function Nke(t,n){1&t&&(G(0,"span",23),he(1," *"),W())}function Rke(t,n){if(1&t){const e=Nn();G(0,"label",20,21),it("cdkObserveContent",function(){return Ut(e),He().updateOutlineGap()}),Ve(2,kke,4,1,"ng-container",12),Ve(3,Ike,1,0,"ng-content",12),Ve(4,Nke,2,0,"span",22),W()}if(2&t){const e=He();sr("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),oe("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Ti("for",e._control.id)("aria-owns",e._control.id),K(2),oe("ngSwitchCase",!1),K(1),oe("ngSwitchCase",!0),K(1),oe("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function zke(t,n){1&t&&(G(0,"div",24),yo(1,4),W())}function Fke(t,n){if(1&t&&(G(0,"div",25),$e(1,"span",26),W()),2&t){const e=He();K(1),sr("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Hke(t,n){1&t&&(G(0,"div"),yo(1,5),W()),2&t&&oe("@transitionMessages",He()._subscriptAnimationState)}function Vke(t,n){if(1&t&&(G(0,"div",30),he(1),W()),2&t){const e=He(2);oe("id",e._hintLabelId),K(1),Zr(e.hintLabel)}}function Bke(t,n){if(1&t&&(G(0,"div",27),Ve(1,Vke,2,2,"div",28),yo(2,6),$e(3,"div",29),yo(4,7),W()),2&t){const e=He();oe("@transitionMessages",e._subscriptAnimationState),K(1),oe("ngIf",e.hintLabel)}}const Gke=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Yke=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Uke=new jn("MatError"),jke={transitionMessages:sa("transitionMessages",[Nr("enter",Wn({opacity:1,transform:"translateY(0%)"})),Cr("void => enter",[Wn({opacity:0,transform:"translateY(-5px)"}),gr("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Lv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t}),t})();const Wke=new jn("MatHint");let Ru=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t,selectors:[["mat-label"]]}),t})(),qke=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t,selectors:[["mat-placeholder"]]}),t})();const Xke=new jn("MatPrefix"),oee=new jn("MatSuffix");let kv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t,selectors:[["","matSuffix",""]],features:[Ki([{provide:oee,useExisting:t}])]}),t})(),aee=0;const Qke=Oh(class{constructor(t){this._elementRef=t}},"primary"),Kke=new jn("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Iv=new jn("MatFormField");let Jd=(()=>{class t extends Qke{constructor(e,i,r,o,a,c,u){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=a,this._ngZone=c,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new z,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+aee++,this._labelId="mat-form-field-label-"+aee++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==u,this.appearance=o&&o.appearance?o.appearance:"legacy",this._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.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=Bi(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(Zs(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ln(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ln(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),So(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Zs(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Zs(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ln(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,Rc(this._label.nativeElement,"transitionend").pipe(Po(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(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",o=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const w=i.querySelectorAll(`${r}, ${o}`);for(let E=0;E0?.75*ee+10:0}for(let w=0;w{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,Mr,yv],Mr]}),t})();function cee(t,n){return n?e=>J9(n.pipe(Po(1),function Zke(){return Ce((t,n)=>{t.subscribe(Be(n,pt))})}()),e.pipe(cee(t))):ba((e,i)=>t(e,i).pipe(Po(1),qp(e)))}function jN(t,n=pv){const e=QI(t,n);return cee(()=>e)}const Jke=["panel"];function eIe(t,n){if(1&t&&(G(0,"div",0,1),yo(2),W()),2&t){const e=n.id,i=He();oe("id",i.id)("ngClass",i._classList),Ti("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const tIe=["*"];let nIe=0;class iIe{constructor(n,e){this.source=n,this.option=e}}const rIe=Iu(class{}),lee=new jn("mat-autocomplete-default-options",{providedIn:"root",factory:function oIe(){return{autoActiveFirstOption:!1}}});let aIe=(()=>{class t extends rIe{constructor(e,i,r,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._activeOptionChanges=Me.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Bn,this.opened=new Bn,this.closed=new Bn,this.optionActivated=new Bn,this._classList={},this.id="mat-autocomplete-"+nIe++,this.inertGroups=(null==o?void 0:o.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=Bi(e)}set classList(e){this._classList=e&&e.length?kK(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new $K(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new iIe(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(de(Do),de(gi),de(lee),de(Ds))},t.\u0275dir=nn({type:t,viewQuery:function(e,i){if(1&e&&(fr(Ks,7),fr(Jke,5)),2&e){let r;hi(r=pi())&&(i.template=r.first),hi(r=pi())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Vn]}),t})(),Kf=(()=>{class t extends aIe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=En({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(wo(r,_N,5),wo(r,xd,5)),2&e){let o;hi(o=pi())&&(i.optionGroups=o),hi(o=pi())&&(i.options=o)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Ki([{provide:mN,useExisting:t}]),Vn],ngContentSelectors:tIe,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(Ua(),Ve(0,eIe,3,4,"ng-template"))},directives:[Qa],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const dee=new jn("mat-autocomplete-scroll-strategy"),cIe={provide:dee,deps:[ol],useFactory:function sIe(t){return()=>t.scrollStrategies.reposition()}},lIe={provide:Kl,useExisting:oo(()=>Jp),multi:!0};let dIe=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E,B){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=a,this._dir=u,this._formField=f,this._document=w,this._viewportRuler=E,this._defaults=B,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Me.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new z,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=ev(()=>{const Z=this.autocomplete?this.autocomplete.options:null;return Z?Z.changes.pipe(Zs(Z),S1(()=>So(...Z.map(ee=>ee.onSelectionChange)))):this._zone.onStable.pipe(Po(1),S1(()=>this.optionSelections))}),this._scrollStrategy=c}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=Bi(e)}ngAfterViewInit(){const e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return So(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(zo(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(zo(()=>this._overlayAttached)):Ir()).pipe(Qe(e=>e instanceof uZ?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return So(Rc(this._document,"click"),Rc(this._document,"auxclick"),Rc(this._document,"touchend")).pipe(zo(e=>{const i=Du(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve().then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=rl(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==o)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return So(this._zone.onStable.pipe(Po(1)),this.autocomplete.options.changes.pipe(ts(()=>this._positionStrategy.reapplyLastPosition()),jN(0))).pipe(S1(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),Po(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,r=null!=i?i:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(e){const i=e&&e.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){var e;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new L6(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(o=>{(27===o.keyCode&&!rl(o)||38===o.keyCode&&rl(o,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),o.stopPropagation(),o.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new Eh({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let a;a="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const i=this.autocomplete,r=vN(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const o=i.options.toArray()[e];if(o){const a=o._getHostElement(),c=hZ(a.offsetTop,a.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(c)}}}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(ol),de(As),de(ji),de(Do),de(dee),de(Xc,8),de(Iv,9),de(Xr,8),de(Bf),de(lee,8))},t.\u0275dir=nn({type:t,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[$r]}),t})(),Jp=(()=>{class t extends dIe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&it("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(o){return i._handleInput(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(){return i._handleClick()}),2&e&&Ti("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Ki([lIe]),Vn]}),t})(),IO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[cIe],imports:[[im,cO,Mr,ta],I0,cO,Mr]}),t})();class uee{}function NO(t){return t&&"function"==typeof t.connect}class hee{applyChanges(n,e,i,r,o){n.forEachOperation((a,c,u)=>{let f,w;if(null==a.previousIndex){const E=i(a,c,u);f=e.createEmbeddedView(E.templateRef,E.context,E.index),w=1}else null==u?(e.remove(c),w=3):(f=e.get(c),e.move(f,u),w=2);o&&o({context:null==f?void 0:f.context,operation:w,record:a})})}detach(){}}class zu{constructor(n=!1,e,i=!0){this._multiple=n,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new z,e&&e.length&&(n?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...n){this._verifyValueAssignment(n),n.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...n){this._verifyValueAssignment(n),n.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(n){this.isSelected(n)?this.deselect(n):this.select(n)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(n){return this._selection.has(n)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){this.isSelected(n)||(this._multiple||this._unmarkAll(),this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}}let uIe=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Nv=new jn("_ViewRepeater");let RO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Mr,bd],Mr]}),t})(),vee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Mr],Mr]}),t})();const vIe=["input"],CIe=function(t){return{enterDuration:t}},bIe=["*"],xIe=new jn("mat-checkbox-default-options",{providedIn:"root",factory:Cee});function Cee(){return{color:"accent",clickAction:"check-indeterminate"}}let yIe=0;const bee=Cee(),wIe={provide:Kl,useExisting:oo(()=>Zf),multi:!0};class MIe{}const OIe=Kg(Oh(Iu(N0(class{constructor(t){this._elementRef=t}}))));let Zf=(()=>{class t extends OIe{constructor(e,i,r,o,a,c,u){super(e),this._changeDetectorRef=i,this._focusMonitor=r,this._ngZone=o,this._animationMode=c,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++yIe,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new Bn,this.indeterminateChange=new Bn,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||bee,this.color=this.defaultColor=this._options.color||bee.color,this.tabIndex=parseInt(a)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Bi(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){const i=Bi(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=Bi(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=Bi(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._elementRef.nativeElement;if(i!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){const e=new MIe;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick(e){var i;const r=null===(i=this._options)||void 0===i?void 0:i.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,i){e?this._focusMonitor.focusVia(this._inputElement,e,i):this._inputElement.nativeElement.focus(i)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===i)r="unchecked-checked";else{if(3!=i)return"";r="unchecked-indeterminate"}break;case 2:r=1===i?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===i?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===i?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Do),de(Cd),de(ji),Ts("tabindex"),de($l,8),de(xIe,8))},t.\u0275cmp=En({type:t,selectors:[["mat-checkbox"]],viewQuery:function(e,i){if(1&e&&(fr(vIe,5),fr(Sh,5)),2&e){let r;hi(r=pi())&&(i._inputElement=r.first),hi(r=pi())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,i){2&e&&(yu("id",i.id),Ti("tabindex",null)("aria-label",null)("aria-labelledby",null),sr("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ki([wIe]),Vn],ngContentSelectors:bIe,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,i){if(1&e&&(Ua(),G(0,"label",0,1)(2,"span",2)(3,"input",3,4),it("change",function(o){return i._onInteractionEvent(o)})("click",function(o){return i._onInputClick(o)}),W(),G(5,"span",5),$e(6,"span",6),W(),$e(7,"span",7),G(8,"span",8),ua(),G(9,"svg",9),$e(10,"path",10),W(),oc(),$e(11,"span",11),W()(),G(12,"span",12,13),it("cdkObserveContent",function(){return i._onLabelTextChange()}),G(14,"span",14),he(15,"\xa0"),W(),yo(16),W()()),2&e){const r=Di(1),o=Di(13);Ti("for",i.inputId),K(2),sr("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),K(1),oe("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),Ti("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),K(2),oe("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Pr(19,CIe,"NoopAnimations"===i._animationMode?0:150))}},directives:[Sh,rN],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),xee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})(),yee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[bd,Mr,yv,xee],Mr,xee]}),t})();const EIe=["*"],wee=new jn("MatChipRemove"),Mee=new jn("MatChipAvatar"),Oee=new jn("MatChipTrailingIcon");class TIe{constructor(n){this._elementRef=n}}const AIe=Kg(Oh(Iu(TIe),"primary"),-1);let wd=(()=>{class t extends AIe{constructor(e,i,r,o,a,c,u,f){super(e),this._ngZone=i,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new z,this._onBlur=new z,this.selectionChange=new Bn,this.destroyed=new Bn,this.removed=new Bn,this._addHostClassName(),this._chipRippleTarget=c.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new cZ(this,i,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=o||{},this._animationsDisabled="NoopAnimations"===u,this.tabIndex=null!=f&&parseInt(f)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const i=Bi(e);i!==this._selected&&(this._selected=i,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Bi(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Bi(e)}get removable(){return this._removable}set removable(e){this._removable=Bi(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",i=this._elementRef.nativeElement;i.hasAttribute(e)||i.tagName.toLowerCase()===e?i.classList.add(e):i.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Po(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(ji),de(Ds),de(lZ,8),de(Do),de(Xr),de($l,8),Ts("tabindex"))},t.\u0275dir=nn({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(wo(r,Mee,5),wo(r,Oee,5),wo(r,wee,5)),2&e){let o;hi(o=pi())&&(i.avatar=o.first),hi(o=pi())&&(i.trailingIcon=o.first),hi(o=pi())&&(i.removeIcon=o.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,i){1&e&&it("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(Ti("tabindex",i.disabled?null:i.tabIndex)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),sr("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Vn]}),t})(),WN=(()=>{class t{constructor(e,i){this._parentChip=e,"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}_handleClick(e){const i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(de(wd),de(gi))},t.\u0275dir=nn({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,i){1&e&&it("click",function(o){return i._handleClick(o)})},features:[Ki([{provide:wee,useExisting:t}])]}),t})();const See=new jn("mat-chips-default-options");let kIe=0,Pee=(()=>{class t{constructor(e,i){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Bn,this.placeholder="",this.id="mat-chip-list-input-"+kIe++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=Bi(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=Bi(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!rl(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!rl(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(See))},t.\u0275dir=nn({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,i){1&e&&it("keydown",function(o){return i._keydown(o)})("keyup",function(o){return i._keyup(o)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&(yu("id",i.id),Ti("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipList&&i._chipList.ngControl?i._chipList.ngControl.invalid:null)("aria-required",i._chipList&&i._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[$r]}),t})();const IIe=uN(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i}});let NIe=0;class RIe{constructor(n,e){this.source=n,this.value=e}}let z6=(()=>{class t extends IIe{constructor(e,i,r,o,a,c,u){super(c,o,a,u),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new z,this._uid="mat-chip-list-"+NIe++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(f,w)=>f===w,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new Bn,this.valueChange=new Bn,this.ngControl&&(this.ngControl.valueAccessor=this)}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 role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=Bi(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,i,r,o;return null!==(o=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(I6.required))&&void 0!==o&&o}set required(e){this._required=Bi(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Bi(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Bi(e),this.chips&&this.chips.forEach(i=>i.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return So(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return So(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return So(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return So(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new aN(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ln(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Ln(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Zs(null),Ln(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new zu(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const i=e.target;i&&i.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,i)),this._sortValues();else{const r=this._selectValue(e,i);r&&i&&this._keyManager.setActiveItem(r)}}_selectValue(e,i=!0){const r=this.chips.find(o=>null!=o.value&&this._compareWith(o.value,e));return r&&(i?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(i=>{i!==e&&i.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let i=null;i=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.change.emit(new RIe(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(i=>{!this._selectionModel.isSelected(i)&&i.selected&&i.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&this._keyManager.updateActiveItem(i),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const i=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&i._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-chip"))return!0;i=i.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Do),de(Xc,8),de(z0,8),de(al,8),de(E6),de(Th,10))},t.\u0275cmp=En({type:t,selectors:[["mat-chip-list"]],contentQueries:function(e,i,r){if(1&e&&wo(r,wd,5),2&e){let o;hi(o=pi())&&(i.chips=o)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,i){1&e&&it("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(o){return i._keydown(o)}),2&e&&(yu("id",i._uid),Ti("tabindex",i.disabled?null:i._tabIndex)("aria-describedby",i._ariaDescribedby||null)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),sr("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Ki([{provide:Lv,useExisting:t}]),Vn],ngContentSelectors:EIe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(Ua(),G(0,"div",0),yo(1),W())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),zO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[E6,{provide:See,useValue:{separatorKeyCodes:[13]}}],imports:[[Mr]]}),t})();const Eee=wh({passive:!0});let zIe=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ls;const i=qc(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new z,a="cdk-text-field-autofilled",c=u=>{"cdk-text-field-autofill-start"!==u.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===u.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:u.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>o.next({target:u.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",c,Eee),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",c,Eee)}}),o}stopMonitoring(e){const i=qc(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ds),Rt(ji))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})();const Aee=new jn("MAT_INPUT_VALUE_ACCESSOR"),FIe=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let HIe=0;const VIe=uN(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i}});let Dh=(()=>{class t extends VIe{constructor(e,i,r,o,a,c,u,f,w,E){super(c,o,a,r),this._elementRef=e,this._platform=i,this._autofillMonitor=f,this._formField=E,this._uid="mat-input-"+HIe++,this.focused=!1,this.stateChanges=new z,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(ee=>HK().has(ee)),this._iOSKeyupListener=ee=>{const be=ee.target;!be.value&&0===be.selectionStart&&0===be.selectionEnd&&(be.setSelectionRange(1,1),be.setSelectionRange(0,0))};const B=this._elementRef.nativeElement,Z=B.nodeName.toLowerCase();this._inputValueAccessor=u||B,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&w.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Z,this._isTextarea="textarea"===Z,this._isInFormField=!!E,this._isNativeSelect&&(this.controlType=B.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=Bi(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,r,o;return null!==(o=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(I6.required))&&void 0!==o&&o}set required(e){this._required=Bi(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&HK().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=Bi(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,i;const r=(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(r!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=r,r?o.setAttribute("placeholder",r):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){FIe.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Ds),de(Th,10),de(z0,8),de(al,8),de(E6),de(Aee,10),de(zIe),de(ji),de(Iv,8))},t.\u0275dir=nn({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&it("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(yu("disabled",i.disabled)("required",i.required),Ti("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),sr("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Ki([{provide:Lv,useExisting:t}]),Vn,$r]}),t})(),FO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[E6],imports:[[Tee,R6,Mr],Tee,R6]}),t})();const BIe=["mat-calendar-body",""];function GIe(t,n){if(1&t&&(G(0,"tr",2)(1,"td",3),he(2),W()()),2&t){const e=He();K(1),jo("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Ti("colspan",e.numCols),K(1),Ft(" ",e.label," ")}}function YIe(t,n){if(1&t&&(G(0,"td",3),he(1),W()),2&t){const e=He(2);jo("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Ti("colspan",e._firstRowOffset),K(1),Ft(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function UIe(t,n){if(1&t){const e=Nn();G(0,"td",7)(1,"button",8),it("click",function(r){const a=Ut(e).$implicit;return He(2)._cellClicked(a,r)}),G(2,"div",9),he(3),W(),$e(4,"div",10),W()()}if(2&t){const e=n.$implicit,i=n.index,r=He().index,o=He();jo("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),Ti("data-mat-row",r)("data-mat-col",i),K(1),sr("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),oe("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),Ti("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null),K(1),sr("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),K(1),Ft(" ",e.displayValue," ")}}function jIe(t,n){if(1&t&&(G(0,"tr",4),Ve(1,YIe,2,6,"td",5),Ve(2,UIe,5,47,"td",6),W()),2&t){const e=n.$implicit,i=n.index,r=He();K(1),oe("ngIf",0===i&&r._firstRowOffset),K(1),oe("ngForOf",e)}}function WIe(t,n){if(1&t&&(G(0,"th",5)(1,"span",6),he(2),W(),G(3,"span",7),he(4),W()()),2&t){const e=n.$implicit;K(2),Zr(e.long),K(2),Zr(e.narrow)}}const qIe=["*"];function XIe(t,n){}function $Ie(t,n){if(1&t){const e=Nn();G(0,"mat-month-view",5),it("activeDateChange",function(r){return Ut(e),He().activeDate=r})("_userSelection",function(r){return Ut(e),He()._dateSelected(r)}),W()}if(2&t){const e=He();oe("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function QIe(t,n){if(1&t){const e=Nn();G(0,"mat-year-view",6),it("activeDateChange",function(r){return Ut(e),He().activeDate=r})("monthSelected",function(r){return Ut(e),He()._monthSelectedInYearView(r)})("selectedChange",function(r){return Ut(e),He()._goToDateInView(r,"month")}),W()}if(2&t){const e=He();oe("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function KIe(t,n){if(1&t){const e=Nn();G(0,"mat-multi-year-view",7),it("activeDateChange",function(r){return Ut(e),He().activeDate=r})("yearSelected",function(r){return Ut(e),He()._yearSelectedInMultiYearView(r)})("selectedChange",function(r){return Ut(e),He()._goToDateInView(r,"year")}),W()}if(2&t){const e=He();oe("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function ZIe(t,n){}const JIe=["button"];function eNe(t,n){1&t&&(ua(),G(0,"svg",3),$e(1,"path",4),W())}const tNe=[[["","matDatepickerToggleIcon",""]]],nNe=["[matDatepickerToggleIcon]"];class qN{constructor(n,e,i,r,o={},a=n,c){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=c}}let F6=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Bn,this.previewChange=new Bn,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const o=this._getCellFromElement(r.target);o&&this._ngZone.run(()=>this.previewChange.emit({value:o.enabled?o:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},i.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(e,i){e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/o+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/o+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Po(1)).subscribe(()=>{setTimeout(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})})}_isRangeStart(e){return XN(e,this.startValue,this.endValue)}_isRangeEnd(e){return $N(e,this.startValue,this.endValue)}_isInRange(e){return QN(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return XN(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){const a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){const a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return $N(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return QN(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return XN(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return $N(e,this.previewStart,this.previewEnd)}_isInPreview(e){return QN(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let i;if(Dee(e)?i=e:Dee(e.parentNode)&&(i=e.parentNode),i){const r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)][parseInt(o)]}return null}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(ji))},t.\u0275cmp=En({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[$r],attrs:BIe,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,i){1&e&&(Ve(0,GIe,3,6,"tr",0),Ve(1,jIe,3,2,"tr",1)),2&e&&(oe("ngIf",i._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),t})();function Dee(t){return"TD"===t.nodeName}function XN(t,n,e){return null!==e&&n!==e&&t=n&&t===e}function QN(t,n,e,i){return i&&null!==n&&null!==e&&n!==e&&t>=n&&t<=e}class Md{constructor(n,e){this.start=n,this.end=e}}let Jf=(()=>{class t{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new z,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return t.\u0275fac=function(e){Ip()},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),iNe=(()=>{class t extends Jf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ll))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();const Lee={provide:Jf,deps:[[new Ol,new Ms,Jf],Ll],useFactory:function oNe(t,n){return t||new iNe(n)}},HO=new jn("MAT_DATE_RANGE_SELECTION_STRATEGY");let kee=(()=>{class t{constructor(e,i,r,o,a){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=o,this._rangeStrategy=a,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new Bn,this._userSelection=new Bn,this.activeDateChange=new Bn,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Md?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zs(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,r=this._dateAdapter.getYear(this.activeDate),o=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(r,o,i);let c,u;this._selected instanceof Md?(c=this._getDateInCurrentMonth(this._selected.start),u=this._getDateInCurrentMonth(this._selected.end)):c=u=this._getDateInCurrentMonth(this._selected),(c!==i||u!==i)&&this.selectedChange.emit(a),this._userSelection.emit({value:a,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!rl(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_previewChanged({event:e,value:i}){if(this._rangeStrategy){const o=this._rangeStrategy.createPreview(i?i.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow");let o=this._dateAdapter.getDayOfWeekNames("long").map((a,c)=>({long:a,narrow:i[c]}));this._weekdays=o.slice(e).concat(o.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,o=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Md?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Do),de(Uf,8),de(Ll,8),de(Xc,8),de(HO,8))},t.\u0275cmp=En({type:t,selectors:[["mat-month-view"]],viewQuery:function(e,i){if(1&e&&fr(F6,5),2&e){let r;hi(r=pi())&&(i._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[$r],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,i){1&e&&(G(0,"table",0)(1,"thead",1)(2,"tr"),Ve(3,WIe,5,2,"th",2),W(),G(4,"tr"),$e(5,"th",3),W()(),G(6,"tbody",4),it("selectedValueChange",function(o){return i._dateSelected(o)})("previewChange",function(o){return i._previewChanged(o)})("keyup",function(o){return i._handleCalendarBodyKeyup(o)})("keydown",function(o){return i._handleCalendarBodyKeydown(o)}),W()()),2&e&&(K(3),oe("ngForOf",i._weekdays),K(3),oe("label",i._monthLabel)("rows",i._weeks)("todayValue",i._todayDate)("startValue",i._rangeStart)("endValue",i._rangeEnd)("comparisonStart",i._comparisonRangeStart)("comparisonEnd",i._comparisonRangeEnd)("previewStart",i._previewStart)("previewEnd",i._previewEnd)("isRange",i._isRange)("labelMinRequiredCells",3)("activeCell",i._dateAdapter.getDate(i.activeDate)-1))},directives:[F6,vo],encapsulation:2,changeDetection:0}),t})(),Iee=(()=>{class t{constructor(e,i,r){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new Bn,this.yearSelected=new Bn,this.activeDateChange=new Bn,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),Nee(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Md?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zs(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-Rv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,o=[];r<24;r++)o.push(i+r),4==o.length&&(this._years.push(o.map(a=>this._createCellForYear(a))),o=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value;this.yearSelected.emit(this._dateAdapter.createDate(i,0,1));let r=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(i,r,1));this.selectedChange.emit(this._dateAdapter.createDate(i,r,Math.min(this._dateAdapter.getDate(this.activeDate),o)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Rv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Rv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Rv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new qN(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{constructor(e,i,r,o){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=Me.EMPTY,this.selectedChange=new Bn,this.monthSelected=new Bn,this.activeDateChange=new Bn,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Md?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Zs(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);const o=this._dateAdapter.getNumDaysInMonth(r);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,Math.min(this._dateAdapter.getDate(this.activeDate),o)))}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,i){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new qN(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let o=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{constructor(){this.changes=new z,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,i){return`${e} \u2013 ${i}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dNe=0,uNe=(()=>{class t{constructor(e,i,r,o,a){this._intl=e,this.calendar=i,this._dateAdapter=r,this._dateFormats=o,this._buttonDescriptionId="mat-calendar-button-"+dNe++,this.calendar.stateChanges.subscribe(()=>a.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const i=this._dateAdapter.getYear(this.calendar.activeDate)-Rv(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+24-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(o,a)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):Nee(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(de(zv),de(oo(()=>JN)),de(Ll,8),de(Uf,8),de(Do))},t.\u0275cmp=En({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:qIe,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,i){1&e&&(Ua(),G(0,"div",0)(1,"div",1)(2,"button",2),it("click",function(){return i.currentPeriodClicked()}),G(3,"span"),he(4),W(),ua(),G(5,"svg",3),$e(6,"polygon",4),W()(),oc(),$e(7,"div",5),yo(8),G(9,"button",6),it("click",function(){return i.previousClicked()}),W(),G(10,"button",7),it("click",function(){return i.nextClicked()}),W()()()),2&e&&(K(2),Ti("aria-label",i.periodButtonLabel)("aria-describedby",i._buttonDescriptionId),K(1),Ti("id",i._buttonDescriptionId),K(1),Zr(i.periodButtonText),K(1),sr("mat-calendar-invert","month"!==i.calendar.currentView),K(4),oe("disabled",!i.previousEnabled()),Ti("aria-label",i.prevButtonLabel),K(1),oe("disabled",!i.nextEnabled()),Ti("aria-label",i.nextButtonLabel))},directives:[Er],encapsulation:2,changeDetection:0}),t})(),JN=(()=>{class t{constructor(e,i,r,o){this._dateAdapter=i,this._dateFormats=r,this._changeDetectorRef=o,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Bn,this.yearSelected=new Bn,this.monthSelected=new Bn,this.viewChanged=new Bn(!0),this._userSelection=new Bn,this.stateChanges=new z,this._intlChanges=e.changes.subscribe(()=>{o.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Md?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}ngAfterContentInit(){this._calendarHeaderPortal=new Kd(this.headerComponent||uNe),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){const a=this._getCurrentViewComponent();a&&(this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof Md||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(de(zv),de(Ll,8),de(Uf,8),de(Do))},t.\u0275cmp=En({type:t,selectors:[["mat-calendar"]],viewQuery:function(e,i){if(1&e&&(fr(kee,5),fr(zee,5),fr(Iee,5)),2&e){let r;hi(r=pi())&&(i.monthView=r.first),hi(r=pi())&&(i.yearView=r.first),hi(r=pi())&&(i.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[Ki([Lee]),$r],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,i){1&e&&(Ve(0,XIe,0,0,"ng-template",0),G(1,"div",1),Ve(2,$Ie,1,8,"mat-month-view",2),Ve(3,QIe,1,6,"mat-year-view",3),Ve(4,KIe,1,6,"mat-multi-year-view",4),W()),2&e&&(oe("cdkPortalOutlet",i._calendarHeaderPortal),K(1),oe("ngSwitch",i.currentView),K(1),oe("ngSwitchCase","month"),K(1),oe("ngSwitchCase","year"),K(1),oe("ngSwitchCase","multi-year"))},directives:[kee,zee,Iee,k6,BAe,V2,Ou],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const Fee={transformPanel:sa("transformPanel",[Cr("void => enter-dropdown",gr("120ms cubic-bezier(0, 0, 0.2, 1)",Bg([Wn({opacity:0,transform:"scale(1, 0.8)"}),Wn({opacity:1,transform:"scale(1, 1)"})]))),Cr("void => enter-dialog",gr("150ms cubic-bezier(0, 0, 0.2, 1)",Bg([Wn({opacity:0,transform:"scale(0.7)"}),Wn({transform:"none",opacity:1})]))),Cr("* => void",gr("100ms linear",Wn({opacity:0})))]),fadeInCalendar:sa("fadeInCalendar",[Nr("void",Wn({opacity:0})),Nr("enter",Wn({opacity:1})),Cr("void => *",gr("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let hNe=0;const Hee=new jn("mat-datepicker-scroll-strategy"),fNe={provide:Hee,deps:[ol],useFactory:function pNe(t){return()=>t.scrollStrategies.reposition()}},gNe=Oh(class{constructor(t){this._elementRef=t}});let mNe=(()=>{class t extends gNe{constructor(e,i,r,o,a,c){super(e),this._changeDetectorRef=i,this._globalModel=r,this._dateAdapter=o,this._rangeSelectionStrategy=a,this._subscriptions=new Me,this._animationDone=new z,this._actionsPortal=null,this._closeButtonText=c.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const i=this._model.selection,r=e.value,o=i instanceof Md;if(o&&this._rangeSelectionStrategy){const a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Do),de(Jf),de(Ll),de(HO,8),de(zv))},t.\u0275cmp=En({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(e,i){if(1&e&&fr(JN,5),2&e){let r;hi(r=pi())&&(i._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,i){1&e&&c6("@transformPanel.done",function(){return i._animationDone.next()}),2&e&&(d6("@transformPanel",i._animationState),sr("mat-datepicker-content-touch",i.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Vn],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,i){if(1&e&&(G(0,"div",0)(1,"mat-calendar",1),it("yearSelected",function(o){return i.datepicker._selectYear(o)})("monthSelected",function(o){return i.datepicker._selectMonth(o)})("viewChanged",function(o){return i.datepicker._viewChanged(o)})("_userSelection",function(o){return i._handleUserSelection(o)}),W(),Ve(2,ZIe,0,0,"ng-template",2),G(3,"button",3),it("focus",function(){return i._closeButtonFocused=!0})("blur",function(){return i._closeButtonFocused=!1})("click",function(){return i.datepicker.close()}),he(4),W()()),2&e){let r;sr("mat-datepicker-content-container-with-custom-header",i.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",i._actionsPortal),Ti("aria-modal",!0)("aria-labelledby",null!==(r=i._dialogLabelId)&&void 0!==r?r:void 0),K(1),oe("id",i.datepicker.id)("ngClass",i.datepicker.panelClass)("startAt",i.datepicker.startAt)("startView",i.datepicker.startView)("minDate",i.datepicker._getMinDate())("maxDate",i.datepicker._getMaxDate())("dateFilter",i.datepicker._getDateFilter())("headerComponent",i.datepicker.calendarHeaderComponent)("selected",i._getSelected())("dateClass",i.datepicker.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("@fadeInCalendar","enter"),K(1),oe("cdkPortalOutlet",i._actionsPortal),K(1),sr("cdk-visually-hidden",!i._closeButtonFocused),oe("color",i.color||"primary"),K(1),Zr(i._closeButtonText)}},directives:[JN,Er,kAe,Qa,k6],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[Fee.transformPanel,Fee.fadeInCalendar]},changeDetection:0}),t})(),Vee=(()=>{class t{constructor(e,i,r,o,a,c,u){this._overlay=e,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=a,this._dir=c,this._model=u,this._inputStateChanges=Me.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Bn,this.monthSelected=new Bn,this.viewChanged=new Bn(!0),this.openedStream=new Bn,this.closedStream=new Bn,this._opened=!1,this.id="mat-datepicker-"+hNe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new z,this._scrollStrategy=o}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Bi(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const i=Bi(e);i!==this._disabled&&(this._disabled=i,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Bi(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=kK(e)}get opened(){return this._opened}set opened(e){Bi(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof $Z&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=mv(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const i=this._componentRef.instance;i._startExitAnimation(),i._animationDone.pipe(Po(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){var e,i;null===(i=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===i||i._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal,e._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const e=this.touchUi,i=new Kd(mNe,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new Eh({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Po(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const i="end"===this.xPosition?"end":"start",r="start"===i?"end":"start",o="above"===this.yPosition?"bottom":"top",a="top"===o?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){return So(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(zo(i=>27===i.keyCode&&!rl(i)||this.datepickerInput&&rl(i,"altKey")&&38===i.keyCode)))}}return t.\u0275fac=function(e){return new(e||t)(de(ol),de(ji),de(As),de(Hee),de(Ll,8),de(Xc,8),de(Jf))},t.\u0275dir=nn({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[$r]}),t})(),_Ne=(()=>{class t extends Vee{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=En({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ki([Lee,{provide:Vee,useExisting:t}]),Vn],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0}),t})();class VO{constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}}let vNe=(()=>{class t{constructor(e,i,r){this._elementRef=e,this._dateAdapter=i,this._dateFormats=r,this.dateChange=new Bn,this.dateInput=new Bn,this.stateChanges=new z,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Me.EMPTY,this._localeSubscription=Me.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=o=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}},this._minValidator=o=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),c=this._getMinDate();return!c||!a||this._dateAdapter.compareDate(c,a)<=0?null:{matDatepickerMin:{min:c,actual:a}}},this._maxValidator=o=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),c=this._getMaxDate();return!c||!a||this._dateAdapter.compareDate(c,a)>=0?null:{matDatepickerMax:{max:c,actual:a}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const i=Bi(e),r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){const r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new VO(this,this._elementRef.nativeElement)),this.dateChange.emit(new VO(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function CNe(t,n){const e=Object.keys(t);for(let i of e){const{previousValue:r,currentValue:o}=t[i];if(!n.isDateInstance(r)||!n.isDateInstance(o))return!0;if(!n.sameDate(r,o))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const i=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const o=!this._dateAdapter.sameDate(r,this.value);!r||o?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),i!==this._lastValueValid&&this._validatorOnChange()),o&&(this._assignValue(r),this.dateInput.emit(new VO(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new VO(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const i=this._getDateFilter();return!i||i(e)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Ll,8),de(Uf,8))},t.\u0275dir=nn({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[$r]}),t})();const bNe={provide:Kl,useExisting:oo(()=>eR),multi:!0},xNe={provide:kl,useExisting:oo(()=>eR),multi:!0};let eR=(()=>{class t extends vNe{constructor(e,i,r,o){super(e,i,r),this._formField=o,this._closedSubscription=Me.EMPTY,this._validator=I6.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Ll,8),de(Uf,8),de(Iv,8))},t.\u0275dir=nn({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,i){1&e&&it("input",function(o){return i._onInput(o.target.value)})("change",function(){return i._onChange()})("blur",function(){return i._onBlur()})("keydown",function(o){return i._onKeydown(o)}),2&e&&(yu("disabled",i.disabled),Ti("aria-haspopup",i._datepicker?"dialog":null)("aria-owns",(null==i._datepicker?null:i._datepicker.opened)&&i._datepicker.id||null)("min",i.min?i._dateAdapter.toIso8601(i.min):null)("max",i.max?i._dateAdapter.toIso8601(i.max):null)("data-mat-calendar",i._datepicker?i._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Ki([bNe,xNe,{provide:Aee,useExisting:t}]),Vn]}),t})(),yNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),wNe=(()=>{class t{constructor(e,i,r){this._intl=e,this._changeDetectorRef=i,this._stateChanges=Me.EMPTY;const o=Number(r);this.tabIndex=o||0===o?o:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Bi(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:Ir(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Ir(),r=this.datepicker?So(this.datepicker.openedStream,this.datepicker.closedStream):Ir();this._stateChanges.unsubscribe(),this._stateChanges=So(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(de(zv),de(Do),Ts("tabindex"))},t.\u0275cmp=En({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,i,r){if(1&e&&wo(r,yNe,5),2&e){let o;hi(o=pi())&&(i._customIcon=o.first)}},viewQuery:function(e,i){if(1&e&&fr(JIe,5),2&e){let r;hi(r=pi())&&(i._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,i){1&e&&it("click",function(o){return i._open(o)}),2&e&&(Ti("tabindex",null)("data-mat-calendar",i.datepicker?i.datepicker.id:null),sr("mat-datepicker-toggle-active",i.datepicker&&i.datepicker.opened)("mat-accent",i.datepicker&&"accent"===i.datepicker.color)("mat-warn",i.datepicker&&"warn"===i.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[$r],ngContentSelectors:nNe,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,i){1&e&&(Ua(tNe),G(0,"button",0,1),Ve(2,eNe,2,0,"svg",2),yo(3),W()),2&e&&(oe("disabled",i.disabled)("disableRipple",i.disableRipple),Ti("aria-haspopup",i.datepicker?"dialog":null)("aria-label",i.ariaLabel||i._intl.openCalendarLabel)("tabindex",i.disabled?-1:i.tabIndex),K(2),oe("ngIf",!i._customIcon))},directives:[Er,er],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),BO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[zv,fNe],imports:[[ta,Nu,im,aO,Wf,Mr],I0]}),t})();function MNe(t,n){}class tR{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.delayFocusTrap=!0,this.closeOnNavigation=!0}}const ONe={dialogContainer:sa("dialogContainer",[Nr("void, exit",Wn({opacity:0,transform:"scale(0.7)"})),Nr("enter",Wn({transform:"none"})),Cr("* => enter",Vg([gr("150ms cubic-bezier(0, 0, 0.2, 1)",Wn({transform:"none",opacity:1})),Ea("@*",O1(),{optional:!0})])),Cr("* => void, * => exit",Vg([gr("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Wn({opacity:0})),Ea("@*",O1(),{optional:!0})]))])};let SNe=(()=>{class t extends CO{constructor(e,i,r,o,a,c,u,f){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=r,this._config=a,this._interactivityChecker=c,this._ngZone=u,this._focusMonitor=f,this._animationStateChanged=new Bn,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=w=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(w)),this._ariaLabelledBy=a.ariaLabelledBy||null,this._document=o}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=mv())}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(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,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=mv(),r=this._elementRef.nativeElement;(!i||i===this._document.body||i===r||r.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=mv();return e===i||e.contains(i)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(cN),de(Do),de(Xr,8),de(tR),de(sN),de(ji),de(Cd))},t.\u0275dir=nn({type:t,viewQuery:function(e,i){if(1&e&&fr(k6,7),2&e){let r;hi(r=pi())&&(i._portalOutlet=r.first)}},features:[Vn]}),t})(),PNe=(()=>{class t extends SNe{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._config.delayFocusTrap&&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()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=En({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&c6("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(yu("id",i._id),Ti("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),d6("@dialogContainer",i._state))},features:[Vn],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&Ve(0,MNe,0,0,"ng-template",0)},directives:[k6],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:[ONe.dialogContainer]}}),t})(),ENe=0;class a2{constructor(n,e,i="mat-dialog-"+ENe++){this._overlayRef=n,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new z,this._afterClosed=new z,this._beforeClosed=new z,this._state=0,e._id=i,e._animationStateChanged.pipe(zo(r=>"opened"===r.state),Po(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(zo(r=>"closed"===r.state),Po(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),n.keydownEvents().pipe(zo(r=>27===r.keyCode&&!this.disableClose&&!rl(r))).subscribe(r=>{r.preventDefault(),Bee(this,"keyboard")}),n.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Bee(this,"mouse")})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(zo(e=>"closing"===e.state),Po(1)).subscribe(e=>{this._beforeClosed.next(n),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(n){let e=this._getPositionStrategy();return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(n="",e=""){return this._overlayRef.updateSize({width:n,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(n){return this._overlayRef.addPanelClass(n),this}removePanelClass(n){return this._overlayRef.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Bee(t,n,e){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=n),t.close(e)}const Od=new jn("MatDialogData"),TNe=new jn("mat-dialog-default-options"),Gee=new jn("mat-dialog-scroll-strategy"),DNe={provide:Gee,deps:[ol],useFactory:function ANe(t){return()=>t.scrollStrategies.block()}};let LNe=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._dialogRefConstructor=u,this._dialogContainerType=f,this._dialogDataToken=w,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new z,this._afterOpenedAtThisLevel=new z,this._ariaHiddenElements=new Map,this.afterAllClosed=ev(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zs(void 0))),this._scrollStrategy=c}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){i=function kNe(t,n){return Object.assign(Object.assign({},n),t)}(i,this._defaultOptions||new tR),i.id&&this.getDialogById(i.id);const r=this._createOverlay(i),o=this._attachDialogContainer(r,i),a=this._attachDialogContent(e,o,r,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(()=>this._removeOpenDialog(a)),this.afterOpened.next(a),o._initializeWithAttachedContent(),a}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()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new Eh({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 o=hs.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:tR,useValue:i}]}),a=new Kd(this._dialogContainerType,i.viewContainerRef,o,i.componentFactoryResolver);return e.attach(a).instance}_attachDialogContent(e,i,r,o){const a=new this._dialogRefConstructor(r,i,o.id);if(e instanceof Ks)i.attachTemplatePortal(new L6(e,null,{$implicit:o.data,dialogRef:a}));else{const c=this._createInjector(o,a,i),u=i.attachComponentPortal(new Kd(e,o.viewContainerRef,c,o.componentFactoryResolver));a.componentInstance=u.instance}return a.updateSize(o.width,o.height).updatePosition(o.position),a}_createInjector(e,i,r){const o=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!o||!o.get(Xc,null,xi.Optional))&&a.push({provide:Xc,useValue:{value:e.direction,change:Ir()}}),hs.create({parent:o||this._injector,providers:a})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,o)=>{r?o.setAttribute("aria-hidden",r):o.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 r=i.length-1;r>-1;r--){let o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return t.\u0275fac=function(e){Ip()},t.\u0275dir=nn({type:t}),t})(),GO=(()=>{class t extends LNe{constructor(e,i,r,o,a,c,u,f){super(e,i,o,c,u,a,a2,PNe,Od,f)}}return t.\u0275fac=function(e){return new(e||t)(Rt(ol),Rt(hs),Rt(H9,8),Rt(TNe,8),Rt(Gee),Rt(t,12),Rt(PN),Rt($l,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),Fv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),Hv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})(),Vv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[GO,DNe],imports:[[im,Wf,Mr],Mr]}),t})(),INe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})(),Uee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,Mr,INe,Wf]]}),t})(),Wee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[sO,Mr],sO,Mr]}),t})(),qee=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Bi(e)}get inset(){return this._inset}set inset(e){this._inset=Bi(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(Ti("aria-orientation",i.vertical?"vertical":"horizontal"),sr("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}),t})(),nR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Mr],Mr]}),t})();const Xee=["*"],BNe=N0(Iu(class{})),GNe=new jn("MatList");let YNe=(()=>{class t extends BNe{constructor(e){super(),this._elementRef=e,this._stateChanges=new z,"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 t.\u0275fac=function(e){return new(e||t)(de(gi))},t.\u0275cmp=En({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[Ki([{provide:GNe,useExisting:t}]),Vn,$r],ngContentSelectors:Xee,decls:1,vars:0,template:function(e,i){1&e&&(Ua(),yo(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color: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{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color: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{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-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'],encapsulation:2,changeDetection:0}),t})(),WNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),YO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[sO,bd,Mr,gN,ta],sO,Mr,gN,nR]}),t})();const ZNe=["mat-menu-item",""];function JNe(t,n){1&t&&(ua(),G(0,"svg",2),$e(1,"polygon",3),W())}const Kee=["*"];function eRe(t,n){if(1&t){const e=Nn();G(0,"div",0),it("keydown",function(r){return Ut(e),He()._handleKeydown(r)})("click",function(){return Ut(e),He().closed.emit("click")})("@transformMenu.start",function(r){return Ut(e),He()._onAnimationStart(r)})("@transformMenu.done",function(r){return Ut(e),He()._onAnimationDone(r)}),G(1,"div",1),yo(2),W()()}if(2&t){const e=He();oe("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Ti("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const UO={transformMenu:sa("transformMenu",[Nr("void",Wn({opacity:0,transform:"scale(0.8)"})),Cr("void => enter",gr("120ms cubic-bezier(0, 0, 0.2, 1)",Wn({opacity:1,transform:"scale(1)"}))),Cr("* => void",gr("100ms 25ms linear",Wn({opacity:0})))]),fadeInItems:sa("fadeInItems",[Nr("showing",Wn({opacity:1})),Cr("void => *",[Wn({opacity:0}),gr("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},tRe=new jn("MatMenuContent"),iR=new jn("MAT_MENU_PANEL"),nRe=Iu(N0(class{}));let sl=(()=>{class t extends nRe{constructor(e,i,r,o,a){var c;super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new z,this._focused=new z,this._highlighted=!1,this._triggersSubmenu=!1,null===(c=null==o?void 0:o.addItem)||void 0===c||c.call(o,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),r=i.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Rg,this._tabSubscription=Me.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new z,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Bn,this.close=this.closed,this.panelId="mat-menu-panel-"+rRe++}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=Bi(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Bi(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!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 aN(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Zs(this._directDescendantItems),S1(e=>So(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var i;const r=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=r.activeItem)||void 0===i?void 0:i._hasFocus())){const o=e.toArray(),a=Math.max(0,Math.min(o.length-1,r.activeItemIndex||0));o[a]&&!o[a].disabled?r.setActiveItem(a):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Zs(this._directDescendantItems),S1(i=>So(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:rl(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(Po(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){var r;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,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Zs(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(ji),de(Zee),de(Do))},t.\u0275dir=nn({type:t,contentQueries:function(e,i,r){if(1&e&&(wo(r,tRe,5),wo(r,sl,5),wo(r,sl,4)),2&e){let o;hi(o=pi())&&(i.lazyContent=o.first),hi(o=pi())&&(i._allItems=o),hi(o=pi())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&fr(Ks,5),2&e){let r;hi(r=pi())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),T1=(()=>{class t extends Bv{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(ji),de(Zee),de(Do))},t.\u0275cmp=En({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&Ti("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Ki([{provide:iR,useExisting:t}]),Vn],ngContentSelectors:Kee,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&&(Ua(),Ve(0,eRe,3,6,"ng-template"))},directives:[Qa],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;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]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.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:[UO.transformMenu,UO.fadeInItems]},changeDetection:0}),t})();const Jee=new jn("mat-menu-scroll-strategy"),aRe={provide:Jee,deps:[ol],useFactory:function oRe(t){return()=>t.scrollStrategies.reposition()}},tte=wh({passive:!0});let sRe=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=u,this._focusMonitor=f,this._ngZone=w,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Me.EMPTY,this._hoverSubscription=Me.EMPTY,this._menuCloseSubscription=Me.EMPTY,this._handleTouchStart=E=>{rO(E)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Bn,this.onMenuOpen=this.menuOpened,this.menuClosed=new Bn,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof Bv?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,tte),c&&(c._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,tte),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(),r=i.positionStrategy;this._setPosition(r),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 Bv&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Ln(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}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 Bv?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(zo(r=>"void"===r.toState),Po(1),Ln(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 Eh({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=>{const r="start"===i.connectionPair.overlayX?"after":"before",o="top"===i.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(r,o)):this.menu.setPositionClasses(r,o)})}_setPosition(e){let[i,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[o,a]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[c,u]=[o,a],[f,w]=[i,r],E=0;this.triggersSubmenu()?(w=i="before"===this.menu.xPosition?"start":"end",r=f="end"===i?"start":"end",E="bottom"===o?8:-8):this.menu.overlapTrigger||(c="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:i,originY:c,overlayX:f,overlayY:o,offsetY:E},{originX:r,originY:c,overlayX:w,overlayY:o,offsetY:E},{originX:i,originY:u,overlayX:f,overlayY:a,offsetY:-E},{originX:r,originY:u,overlayX:w,overlayY:a,offsetY:-E}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return So(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ir(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(zo(a=>a!==this._menuItemInstance),zo(()=>this._menuOpen)):Ir(),i)}_handleMousedown(e){iO(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(zo(e=>e===this._menuItemInstance&&!e.disabled),jN(0,QM)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Bv&&this.menu._isAnimating?this.menu._animationDone.pipe(Po(1),jN(0,QM),Ln(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new L6(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(de(ol),de(gi),de(As),de(Jee),de(iR,8),de(sl,10),de(Xc,8),de(Cd),de(ji))},t.\u0275dir=nn({type:t,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,i){1&e&&it("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&Ti("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),Zl=(()=>{class t extends sRe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Vn]}),t})(),Gv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[aRe],imports:[[ta,Mr,bd,im],I0,Mr]}),t})();const cRe=["trigger"],lRe=["panel"];function dRe(t,n){if(1&t&&(G(0,"span",8),he(1),W()),2&t){const e=He();K(1),Zr(e.placeholder)}}function uRe(t,n){if(1&t&&(G(0,"span",12),he(1),W()),2&t){const e=He(2);K(1),Zr(e.triggerValue)}}function hRe(t,n){1&t&&yo(0,0,["*ngSwitchCase","true"])}function pRe(t,n){1&t&&(G(0,"span",9),Ve(1,uRe,2,1,"span",10),Ve(2,hRe,1,0,"ng-content",11),W()),2&t&&(oe("ngSwitch",!!He().customTrigger),K(2),oe("ngSwitchCase",!0))}function fRe(t,n){if(1&t){const e=Nn();G(0,"div",13)(1,"div",14,15),it("@transformPanel.done",function(r){return Ut(e),He()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return Ut(e),He()._handleKeydown(r)}),yo(3,1),W()()}if(2&t){const e=He();oe("@transformPanelWrap",void 0),K(1),Af("mat-select-panel ",e._getPanelTheme(),""),jo("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),oe("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Ti("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const gRe=[[["mat-select-trigger"]],"*"],mRe=["mat-select-trigger","*"],nte={transformPanelWrap:sa("transformPanelWrap",[Cr("* => void",Ea("@transformPanel",[O1()],{optional:!0}))]),transformPanel:sa("transformPanel",[Nr("void",Wn({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Nr("showing",Wn({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Nr("showing-multiple",Wn({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Cr("void => *",gr("120ms cubic-bezier(0, 0, 0.2, 1)")),Cr("* => void",gr("100ms 25ms linear",Wn({opacity:0})))])};let ite=0;const ote=new jn("mat-select-scroll-strategy"),bRe=new jn("MAT_SELECT_CONFIG"),xRe={provide:ote,deps:[ol],useFactory:function CRe(t){return()=>t.scrollStrategies.reposition()}};class yRe{constructor(n,e){this.source=n,this.value=e}}const wRe=Iu(Kg(N0(uN(class{constructor(t,n,e,i,r){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r}})))),MRe=new jn("MatSelectTrigger");let ORe=(()=>{class t extends wRe{constructor(e,i,r,o,a,c,u,f,w,E,B,Z,ee,be){var _e,Pe,Ie;super(a,o,u,f,E),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=c,this._parentFormField=w,this._liveAnnouncer=ee,this._defaultOptions=be,this._panelOpen=!1,this._compareWith=(ge,Re)=>ge===Re,this._uid="mat-select-"+ite++,this._triggerAriaLabelledBy=null,this._destroy=new z,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ite++,this._panelDoneAnimatingStream=new z,this._overlayPanelClass=(null===(_e=this._defaultOptions)||void 0===_e?void 0:_e.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Ie=null===(Pe=this._defaultOptions)||void 0===Pe?void 0:Pe.disableOptionCentering)&&void 0!==Ie&&Ie,this.ariaLabel="",this.optionSelectionChanges=ev(()=>{const ge=this.options;return ge?ge.changes.pipe(Zs(ge),S1(()=>So(...ge.map(Re=>Re.onSelectionChange)))):this._ngZone.onStable.pipe(Po(1),S1(()=>this.optionSelectionChanges))}),this.openedChange=new Bn,this._openedStream=this.openedChange.pipe(zo(ge=>ge),Qe(()=>{})),this._closedStream=this.openedChange.pipe(zo(ge=>!ge),Qe(()=>{})),this.selectionChange=new Bn,this.valueChange=new Bn,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==be?void 0:be.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=be.typeaheadDebounceInterval),this._scrollStrategyFactory=Z,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(B)||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,r,o;return null!==(o=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(I6.required))&&void 0!==o&&o}set required(e){this._required=Bi(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Bi(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Bi(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=cc(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new zu(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ns(),Ln(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ln(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Zs(null),Ln(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&o&&!rl(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;a.onKeydown(e);const u=this.selected;u&&c!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(a||13!==r&&32!==r||!i.activeItem||rl(e))if(!a&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(c?u.select():u.deselect())})}else{const c=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==c&&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(Po(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(o){return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new $K(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ln(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ln(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=So(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ln(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),So(...this.options.map(i=>i._stateChanges)).pipe(Ln(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==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)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.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 r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_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 t.\u0275fac=function(e){return new(e||t)(de(Bf),de(Do),de(ji),de(E6),de(gi),de(Xc,8),de(z0,8),de(al,8),de(Iv,8),de(Th,10),Ts("tabindex"),de(ote),de(lN),de(bRe,8))},t.\u0275dir=nn({type:t,viewQuery:function(e,i){if(1&e&&(fr(cRe,5),fr(lRe,5),fr(nJ,5)),2&e){let r;hi(r=pi())&&(i.trigger=r.first),hi(r=pi())&&(i.panel=r.first),hi(r=pi())&&(i._overlayDir=r.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:[Vn,$r]}),t})(),V6=(()=>{class t extends ORe{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,r){const o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Ln(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(Po(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=vN(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:hZ((e+i)*r,r,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 yRe(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),o=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let f=this._selectionModel.selected[0]||this.options.first;a=f&&f.group?32:16}r||(a*=-1);const c=0-(e.left+a-(r?o:0)),u=e.right+a-i.width+(r?0:o);c>0?a+=c+8:u>0&&(a-=u+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const o=this._getItemHeight(),a=(o-this._triggerRect.height)/2,c=Math.floor(256/o);let u;return this.disableOptionCentering?0:(u=0===this._scrollTop?e*o:this._scrollTop===r?(e-(this._getItemCount()-c))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*u-a))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,a=r.height-this._triggerRect.bottom-8,c=Math.abs(this._offsetY),f=Math.min(this._getItemCount()*i,256)-c-this._triggerRect.height;f>a?this._adjustPanelUp(f,a):c>o?this._adjustPanelDown(c,o,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),a=i*e-r;let c;c=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),c+=vN(c,this.options,this.optionGroups);const u=r/2;this._scrollTop=this._calculateOverlayScroll(c,u,a),this._offsetY=this._calculateOverlayOffsetY(c,u,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=En({type:t,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(wo(r,MRe,5),wo(r,xd,5),wo(r,_N,5)),2&e){let o;hi(o=pi())&&(i.customTrigger=o.first),hi(o=pi())&&(i.options=o),hi(o=pi())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&it("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Ti("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()),sr("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:[Ki([{provide:Lv,useExisting:t},{provide:mN,useExisting:t}]),Vn],ngContentSelectors:mRe,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&&(Ua(gRe),G(0,"div",0,1),it("click",function(){return i.toggle()}),G(3,"div",2),Ve(4,dRe,2,1,"span",3),Ve(5,pRe,3,2,"span",4),W(),G(6,"div",5),$e(7,"div",6),W()(),Ve(8,fRe,4,14,"ng-template",7),it("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=Di(1);Ti("aria-owns",i.panelOpen?i.id+"-panel":null),K(3),oe("ngSwitch",i.empty),Ti("id",i._valueId),K(1),oe("ngSwitchCase",!0),K(1),oe("ngSwitchCase",!1),K(3),oe("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[tJ,V2,Ou,c$,nJ,Qa],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color: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;visibility:hidden}\n'],encapsulation:2,data:{animation:[nte.transformPanelWrap,nte.transformPanel]},changeDetection:0}),t})(),rR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[xRe],imports:[[ta,im,cO,Mr],I0,R6,cO,Mr]}),t})();const ate=new Set;let B6,SRe=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ERe}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function PRe(t){if(!ate.has(t))try{B6||(B6=document.createElement("style"),B6.setAttribute("type","text/css"),document.head.appendChild(B6)),B6.sheet&&(B6.sheet.insertRule(`@media ${t} {body{ }}`,0),ate.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ds))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ERe(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let oR=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new z}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ste(WM(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=K9(ste(WM(e)).map(a=>this._registerQuery(a).observable));return o=J9(o.pipe(Po(1)),o.pipe(GK(1),Ls(0))),o.pipe(Qe(a=>{const c={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:f})=>{c.matches=c.matches||u,c.breakpoints[f]=u}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new At(a=>{const c=u=>this._zone.run(()=>a.next(u));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(Zs(i),Qe(({matches:a})=>({query:e,matches:a})),Ln(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return t.\u0275fac=function(e){return new(e||t)(Rt(SRe),Rt(ji))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ste(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}const TRe=["tooltip"],lte="tooltip-panel",dte=wh({passive:!0}),ute=new jn("mat-tooltip-scroll-strategy"),kRe={provide:ute,deps:[ol],useFactory:function LRe(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},IRe=new jn("mat-tooltip-default-options",{providedIn:"root",factory:function NRe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let RRe=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E,B,Z){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=c,this._ariaDescriber=u,this._focusMonitor=f,this._dir=E,this._defaultOptions=B,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 z,this._scrollStrategy=w,this._document=Z,B&&(B.position&&(this.position=B.position),B.touchGestures&&(this.touchGestures=B.touchGestures)),E.change.pipe(Ln(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Bi(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=cc(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=cc(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ln(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,dte)}),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 Kd(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=i.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Ln(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.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(){var e;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(Ln(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:r,panelClass:`${this._cssClassPrefix}-${lte}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ln(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ln(this._destroyed)).subscribe(()=>{var o;return null===(o=this._tooltipInstance)||void 0===o?void 0:o._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Ln(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!rl(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(e=this._defaultOptions)||void 0===e?void 0:e.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),o.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),o.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Po(1),Ln(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:r,originY:o}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",a!==this._currentPosition){const c=this._overlayRef;if(c){const u=`${this._cssClassPrefix}-${lte}-`;c.removePanelClass(u+this._currentPosition),c.addPanelClass(u+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{var r;const o=i.relatedTarget;(!o||!(null===(r=this._overlayRef)||void 0===r?void 0:r.overlayElement.contains(o)))&&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,r])=>{this._elementRef.nativeElement.addEventListener(i,r,dte)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){Ip()},t.\u0275dir=nn({type:t,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),Jl=(()=>{class t extends RRe{constructor(e,i,r,o,a,c,u,f,w,E,B,Z){super(e,i,r,o,a,c,u,f,w,E,B,Z),this._tooltipComponent=FRe}}return t.\u0275fac=function(e){return new(e||t)(de(ol),de(gi),de(_v),de(As),de(ji),de(Ds),de(xAe),de(Cd),de(ute),de(Xc,8),de(IRe,8),de(Xr))},t.\u0275dir=nn({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Vn]}),t})(),zRe=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new z,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(de(Do),de($l,8))},t.\u0275dir=nn({type:t}),t})(),FRe=(()=>{class t extends zRe{constructor(e,i,r){super(e,r),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return t.\u0275fac=function(e){return new(e||t)(de(Do),de(oR),de($l,8))},t.\u0275cmp=En({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&fr(TRe,7),2&e){let r;hi(r=pi())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&it("mouseleave",function(o){return i._handleMouseLeave(o)}),2&e&&jo("zoom",i.isVisible()?1:null)},features:[Vn],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(G(0,"div",0,1),it("animationend",function(o){return i._handleAnimationEnd(o)}),E0(2,"async"),he(3),W()),2&e){let r;sr("mat-tooltip-handset",null==(r=Ng(2,4,i._isHandset))?null:r.matches),oe("ngClass",i.tooltipClass),K(3),Zr(i.message)}},directives:[Qa],pipes:[oM],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),t})(),Uv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[kRe],imports:[[aO,ta,im,Mr],Mr,I0]}),t})();function HRe(t,n){if(1&t&&(G(0,"mat-option",19),he(1),W()),2&t){const e=n.$implicit;oe("value",e),K(1),Ft(" ",e," ")}}function VRe(t,n){if(1&t){const e=Nn();G(0,"mat-form-field",16)(1,"mat-select",17),it("selectionChange",function(r){return Ut(e),He(2)._changePageSize(r.value)}),Ve(2,HRe,2,2,"mat-option",18),W()()}if(2&t){const e=He(2);oe("appearance",e._formFieldAppearance)("color",e.color),K(1),oe("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),K(1),oe("ngForOf",e._displayedPageSizeOptions)}}function BRe(t,n){if(1&t&&(G(0,"div",20),he(1),W()),2&t){const e=He(2);K(1),Zr(e.pageSize)}}function GRe(t,n){if(1&t&&(G(0,"div",12)(1,"div",13),he(2),W(),Ve(3,VRe,3,6,"mat-form-field",14),Ve(4,BRe,2,1,"div",15),W()),2&t){const e=He();K(2),Ft(" ",e._intl.itemsPerPageLabel," "),K(1),oe("ngIf",e._displayedPageSizeOptions.length>1),K(1),oe("ngIf",e._displayedPageSizeOptions.length<=1)}}function YRe(t,n){if(1&t){const e=Nn();G(0,"button",21),it("click",function(){return Ut(e),He().firstPage()}),ua(),G(1,"svg",7),$e(2,"path",22),W()()}if(2&t){const e=He();oe("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),Ti("aria-label",e._intl.firstPageLabel)}}function URe(t,n){if(1&t){const e=Nn();ua(),oc(),G(0,"button",23),it("click",function(){return Ut(e),He().lastPage()}),ua(),G(1,"svg",7),$e(2,"path",24),W()()}if(2&t){const e=He();oe("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),Ti("aria-label",e._intl.lastPageLabel)}}let G6=(()=>{class t{constructor(){this.changes=new z,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,r)=>{if(0==r||0==i)return`0 of ${r}`;const o=e*i;return`${o+1} \u2013 ${o<(r=Math.max(r,0))?Math.min(o+i,r):o+i} of ${r}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const WRe={provide:G6,deps:[[new Ol,new Ms,G6]],useFactory:function jRe(t){return t||new G6}},XRe=new jn("MAT_PAGINATOR_DEFAULT_OPTIONS"),$Re=N0(iZ(class{}));let QRe=(()=>{class t extends $Re{constructor(e,i,r){if(super(),this._intl=e,this._changeDetectorRef=i,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new Bn,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:o,pageSizeOptions:a,hidePageSize:c,showFirstLastButtons:u}=r;null!=o&&(this._pageSize=o),null!=a&&(this._pageSizeOptions=a),null!=c&&(this._hidePageSize=c),null!=u&&(this._showFirstLastButtons=u)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(cc(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=cc(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(cc(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>cc(i)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Bi(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Bi(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){Ip()},t.\u0275dir=nn({type:t,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[Vn]}),t})(),KRe=(()=>{class t extends QRe{constructor(e,i,r){super(e,i,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(de(G6),de(Do),de(XRe,8))},t.\u0275cmp=En({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Vn],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1),Ve(2,GRe,5,3,"div",2),G(3,"div",3)(4,"div",4),he(5),W(),Ve(6,YRe,3,5,"button",5),G(7,"button",6),it("click",function(){return i.previousPage()}),ua(),G(8,"svg",7),$e(9,"path",8),W()(),oc(),G(10,"button",9),it("click",function(){return i.nextPage()}),ua(),G(11,"svg",7),$e(12,"path",10),W()(),Ve(13,URe,3,5,"button",11),W()()()),2&e&&(K(2),oe("ngIf",!i.hidePageSize),K(3),Ft(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),K(1),oe("ngIf",i.showFirstLastButtons),K(1),oe("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Ti("aria-label",i._intl.previousPageLabel),K(3),oe("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Ti("aria-label",i._intl.nextPageLabel),K(3),oe("ngIf",i.showFirstLastButtons))},directives:[Jd,V6,xd,Er,er,vo,Jl],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),t})(),WO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[WRe],imports:[[ta,Nu,rR,Uv,Mr]]}),t})();function ZRe(t,n){if(1&t&&(ua(),$e(0,"circle",4)),2&t){const e=He(),i=Di(1);jo("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Ti("r",e._getCircleRadius())}}function JRe(t,n){if(1&t&&(ua(),$e(0,"circle",4)),2&t){const e=He(),i=Di(1);jo("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Ti("r",e._getCircleRadius())}}const tze=Oh(class{constructor(t){this._elementRef=t}},"primary"),nze=new jn("mat-progress-spinner-default-options",{providedIn:"root",factory:function ize(){return{diameter:100}}});class e3 extends tze{constructor(n,e,i,r,o,a,c,u){super(n),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=Me.EMPTY,this.mode="determinate";const f=e3._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),f.has(i.head)||f.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,"mat-spinner"===n.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth)),e.isBrowser&&e.SAFARI&&c&&a&&u&&(this._resizeSubscription=c.change(150).subscribe(()=>{"indeterminate"===this.mode&&u.run(()=>a.markForCheck())}))}get diameter(){return this._diameter}set diameter(n){this._diameter=cc(n),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(n){this._strokeWidth=cc(n)}get value(){return"determinate"===this.mode?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,cc(n)))}ngOnInit(){const n=this._elementRef.nativeElement;this._styleRoot=ZM(n)||this._document.head,this._attachStyleNode(),n.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const n=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${n} ${n}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(n){var e;const i=50*(null!==(e=n.currentScale)&&void 0!==e?e:1);return`${i}% ${i}%`}_attachStyleNode(){const n=this._styleRoot,e=this._diameter,i=e3._diameters;let r=i.get(n);if(!r||!r.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),n.appendChild(o),r||(r=new Set,i.set(n,r)),r.add(e)}}_getAnimationText(){const n=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*n).replace(/END_VALUE/g,""+.2*n).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}e3._diameters=new WeakMap,e3.\u0275fac=function(n){return new(n||e3)(de(gi),de(Ds),de(Xr,8),de($l,8),de(nze),de(Do),de(Bf),de(ji))},e3.\u0275cmp=En({type:e3,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(n,e){2&n&&(Ti("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),jo("width",e.diameter,"px")("height",e.diameter,"px"),sr("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[Vn],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(n,e){1&n&&(ua(),G(0,"svg",0,1),Ve(2,ZRe,1,11,"circle",2),Ve(3,JRe,1,9,"circle",3),W()),2&n&&(jo("width",e.diameter,"px")("height",e.diameter,"px"),oe("ngSwitch","indeterminate"===e.mode),Ti("viewBox",e._getViewBox()),K(2),oe("ngSwitchCase",!0),K(1),oe("ngSwitchCase",!1))},directives:[V2,Ou],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;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 qO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Mr,ta],Mr]}),t})();const oze=["input"],aze=function(t){return{enterDuration:t}},sze=["*"],cze=new jn("mat-radio-default-options",{providedIn:"root",factory:function lze(){return{color:"accent"}}});let hte=0;const dze={provide:Kl,useExisting:oo(()=>XO),multi:!0};class pte{constructor(n,e){this.source=n,this.value=e}}const fte=new jn("MatRadioGroup");let uze=(()=>{class t{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+hte++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Bn}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=Bi(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=Bi(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new pte(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(de(Do))},t.\u0275dir=nn({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),t})(),XO=(()=>{class t extends uze{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,i,r){if(1&e&&wo(r,$O,5),2&e){let o;hi(o=pi())&&(i._radios=o)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[Ki([dze,{provide:fte,useExisting:t}]),Vn]}),t})();class hze{constructor(n){this._elementRef=n}}const pze=Iu(Kg(hze));let fze=(()=>{class t extends pze{constructor(e,i,r,o,a,c,u,f){super(i),this._changeDetector=r,this._focusMonitor=o,this._radioDispatcher=a,this._providerOverride=u,this._uniqueId="mat-radio-"+ ++hte,this.id=this._uniqueId,this.change=new Bn,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===c,f&&(this.tabIndex=cc(f,0)),this._removeUniqueSelectionListener=a.listen((w,E)=>{w!==this.id&&E===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const i=Bi(e);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(Bi(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Bi(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new pte(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){var e;const i=this.radioGroup;let r;if(r=i&&i.selected&&!this.disabled?i.selected===this?this.tabIndex:-1:this.tabIndex,r!==this._previousTabIndex){const o=null===(e=this._inputElement)||void 0===e?void 0:e.nativeElement;o&&(o.setAttribute("tabindex",r+""),this._previousTabIndex=r)}}}return t.\u0275fac=function(e){Ip()},t.\u0275dir=nn({type:t,viewQuery:function(e,i){if(1&e&&fr(oze,5),2&e){let r;hi(r=pi())&&(i._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[Vn]}),t})(),$O=(()=>{class t extends fze{constructor(e,i,r,o,a,c,u,f){super(e,i,r,o,a,c,u,f)}}return t.\u0275fac=function(e){return new(e||t)(de(fte,8),de(gi),de(Do),de(Cd),de(uIe),de($l,8),de(cze,8),Ts("tabindex"))},t.\u0275cmp=En({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,i){1&e&&it("focus",function(){return i._inputElement.nativeElement.focus()}),2&e&&(Ti("tabindex",null)("id",i.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),sr("mat-radio-checked",i.checked)("mat-radio-disabled",i.disabled)("_mat-animation-noopable",i._noopAnimations)("mat-primary","primary"===i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[Vn],ngContentSelectors:sze,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,i){if(1&e&&(Ua(),G(0,"label",0,1)(2,"span",2),$e(3,"span",3)(4,"span",4),G(5,"input",5,6),it("change",function(o){return i._onInputInteraction(o)})("click",function(o){return i._onInputClick(o)}),W(),G(7,"span",7),$e(8,"span",8),W()(),G(9,"span",9)(10,"span",10),he(11,"\xa0"),W(),yo(12),W()()),2&e){const r=Di(1);Ti("for",i.inputId),K(5),oe("id",i.inputId)("checked",i.checked)("disabled",i.disabled)("required",i.required),Ti("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),K(2),oe("matRippleTrigger",r)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Pr(17,aze,i._noopAnimations?0:150)),K(2),sr("mat-radio-label-before","before"==i.labelPosition)}},directives:[Sh],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),QO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[bd,Mr],Mr]}),t})(),gte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})(),KO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[gte,bd,Mr,yv],gte,Mr]}),t})(),vte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,Mr],Mr]}),t})();function Fze(t,n){if(1&t){const e=Nn();G(0,"div",2)(1,"button",3),it("click",function(){return Ut(e),He().action()}),he(2),W()()}if(2&t){const e=He();K(2),Zr(e.data.action)}}function Hze(t,n){}const Cte=new jn("MatSnackBarData");class ZO{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Vze=Math.pow(2,31)-1;class cR{constructor(n,e){this._overlayRef=e,this._afterDismissed=new z,this._afterOpened=new z,this._onAction=new z,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,Vze))}_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 Bze=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(de(cR),de(Cte))},t.\u0275cmp=En({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(G(0,"span",0),he(1),W(),Ve(2,Fze,3,1,"div",1)),2&e&&(K(1),Zr(i.data.message),K(1),oe("ngIf",i.hasAction))},directives:[Er,er],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),t})();const Gze={snackBarState:sa("state",[Nr("void, hidden",Wn({transform:"scale(0.8)",opacity:0})),Nr("visible",Wn({transform:"scale(1)",opacity:1})),Cr("* => visible",gr("150ms cubic-bezier(0, 0, 0.2, 1)")),Cr("* => void, * => hidden",gr("75ms cubic-bezier(0.4, 0.0, 1, 1)",Wn({opacity:0})))])};let Yze=(()=>{class t extends CO{constructor(e,i,r,o,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new z,this._onExit=new z,this._onEnter=new z,this._animationState="void",this.attachDomPortal=c=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(c)),this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.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:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Po(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):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 r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==r||r.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(de(ji),de(gi),de(Do),de(Ds),de(ZO))},t.\u0275cmp=En({type:t,selectors:[["snack-bar-container"]],viewQuery:function(e,i){if(1&e&&fr(k6,7),2&e){let r;hi(r=pi())&&(i._portalOutlet=r.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&c6("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&d6("@state",i._animationState)},features:[Vn],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(G(0,"div",0),Ve(1,Hze,0,0,"ng-template",1),W(),$e(2,"div")),2&e&&(K(2),Ti("aria-live",i._live)("role",i._role))},directives:[k6],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:[Gze.snackBarState]}}),t})(),Wv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[im,Wf,ta,Nu,Mr],Mr]}),t})();const bte=new jn("mat-snack-bar-default-options",{providedIn:"root",factory:function Uze(){return new ZO}});let jze=(()=>{class t{constructor(e,i,r,o,a,c){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o=Object.assign(Object.assign({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=hs.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:ZO,useValue:i}]}),a=new Kd(this.snackBarContainerComponent,i.viewContainerRef,o),c=e.attach(a);return c.instance.snackBarConfig=i,c.instance}_attach(e,i){const r=Object.assign(Object.assign(Object.assign({},new ZO),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),c=new cR(a,o);if(e instanceof Ks){const u=new L6(e,null,{$implicit:r.data,snackBarRef:c});c.instance=a.attachTemplatePortal(u)}else{const u=this._createInjector(r,c),f=new Kd(e,void 0,u),w=a.attachComponentPortal(f);c.instance=w.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ln(o.detachments())).subscribe(u=>{o.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(c,r),this._openedSnackBarRef=c,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 Eh;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,c=!a&&"center"!==e.horizontalPosition;return a?r.left("0"):c?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return hs.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:cR,useValue:i},{provide:Cte,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(Rt(ol),Rt(lN),Rt(hs),Rt(oR),Rt(t,12),Rt(bte))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),lR=(()=>{class t extends jze{constructor(e,i,r,o,a,c){super(e,i,r,o,a,c),this.simpleSnackBarComponent=Bze,this.snackBarContainerComponent=Yze,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(Rt(ol),Rt(lN),Rt(hs),Rt(oR),Rt(t,12),Rt(bte))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:Wv}),t})(),dR=(()=>{class t{constructor(){this.changes=new z}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const qze={provide:dR,deps:[[new Ol,new Ms,dR]],useFactory:function Wze(t){return t||new dR}},Xze=new jn("MAT_SORT_DEFAULT_OPTIONS"),$ze=iZ(N0(class{}));let xte=(()=>{class t extends $ze{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new z,this.start="asc",this._direction="",this.sortChange=new Bn}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Bi(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var i,r,o;if(!e)return"";const a=null!==(r=null!==(i=null==e?void 0:e.disableClear)&&void 0!==i?i:this.disableClear)&&void 0!==r?r:!!(null===(o=this._defaultOptions)||void 0===o?void 0:o.disableClear);let c=function Qze(t,n){let e=["asc","desc"];return"desc"==t&&e.reverse(),n||e.push(""),e}(e.start||this.start,a),u=c.indexOf(this.direction)+1;return u>=c.length&&(u=0),c[u]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Xze,8))},t.\u0275dir=nn({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Vn,$r]}),t})(),yte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[qze],imports:[[ta,Mr]]}),t})(),Kze=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Vf]]}),t})(),uR=(()=>{class t{constructor(){this.changes=new z,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const cFe={provide:uR,deps:[[new Ol,new Ms,uR]],useFactory:function sFe(t){return t||new uR}};let Mte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[cFe,E6],imports:[[Mr,ta,Wf,Nu,Kze,Kp,bd],Mr]}),t})();function hR(t){return!!t&&(t instanceof At||ue(t.lift)&&ue(t.subscribe))}const lFe=[[["caption"]],[["colgroup"],["col"]]],dFe=["caption","colgroup, col"];function pR(t){return class extends t{constructor(...n){super(...n),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(n){const e=this._sticky;this._sticky=Bi(n),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const n=this._hasStickyChanged;return this._hasStickyChanged=!1,n}resetStickyChanged(){this._hasStickyChanged=!1}}}const Y6=new jn("CDK_TABLE");let t4=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(de(Ks))},t.\u0275dir=nn({type:t,selectors:[["","cdkCellDef",""]]}),t})(),n4=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(de(Ks))},t.\u0275dir=nn({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),JO=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(de(Ks))},t.\u0275dir=nn({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class fFe{}const gFe=pR(fFe);let Lh=(()=>{class t extends gFe{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=Bi(e),this._hasStickyChanged=i!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(de(Y6,8))},t.\u0275dir=nn({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,i,r){if(1&e&&(wo(r,t4,5),wo(r,n4,5),wo(r,JO,5)),2&e){let o;hi(o=pi())&&(i.cell=o.first),hi(o=pi())&&(i.headerCell=o.first),hi(o=pi())&&(i.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Ki([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Vn]}),t})();class fR{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let gR=(()=>{class t extends fR{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(de(Lh),de(gi))},t.\u0275dir=nn({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Vn]}),t})(),mR=(()=>{class t extends fR{constructor(e,i){var r;if(super(e,i),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const o=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(de(Lh),de(gi))},t.\u0275dir=nn({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Vn]}),t})();class Ste{constructor(){this.tasks=[],this.endTasks=[]}}const _R=new jn("_COALESCED_STYLE_SCHEDULER");let Pte=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new z}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ste,this._getScheduleObservable().pipe(Ln(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new Ste;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Jo(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Po(1))}}return t.\u0275fac=function(e){return new(e||t)(Rt(ji))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),vR=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof qv?e.headerCell.template:this instanceof Xv?e.footerCell.template:e.cell.template}}return t.\u0275fac=function(e){return new(e||t)(de(Ks),de(qd))},t.\u0275dir=nn({type:t,features:[$r]}),t})();class mFe extends vR{}const _Fe=pR(mFe);let qv=(()=>{class t extends _Fe{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Ks),de(qd),de(Y6,8))},t.\u0275dir=nn({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Vn,$r]}),t})();class vFe extends vR{}const CFe=pR(vFe);let Xv=(()=>{class t extends CFe{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Ks),de(qd),de(Y6,8))},t.\u0275dir=nn({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Vn,$r]}),t})(),eS=(()=>{class t extends vR{constructor(e,i,r){super(e,i),this._table=r}}return t.\u0275fac=function(e){return new(e||t)(de(Ks),de(qd),de(Y6,8))},t.\u0275dir=nn({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Vn]}),t})(),t3=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.mostRecentCellOutlet=null,t.\u0275fac=function(e){return new(e||t)(de(As))},t.\u0275dir=nn({type:t,selectors:[["","cdkCellOutlet",""]]}),t})(),CR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&n2(0,0)},directives:[t3],encapsulation:2}),t})(),xR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&n2(0,0)},directives:[t3],encapsulation:2}),t})(),tS=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return t.\u0275fac=function(e){return new(e||t)(de(Ks))},t.\u0275dir=nn({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const Ete=["top","bottom","left","right"];class bFe{constructor(n,e,i,r,o=!0,a=!0,c){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=c,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const r of n)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(n,e,i,r=!0){if(!n.length||!this._isBrowser||!e.some(B=>B)&&!i.some(B=>B))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=n[0],a=o.children.length,c=this._getCellWidths(o,r),u=this._getStickyStartColumnPositions(c,e),f=this._getStickyEndColumnPositions(c,i),w=e.lastIndexOf(!0),E=i.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const B="rtl"===this.direction,Z=B?"right":"left",ee=B?"left":"right";for(const be of n)for(let _e=0;_ee[_e]?be:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===E?[]:c.slice(E).map((be,_e)=>i[_e+E]?be:null).reverse()}))})}stickRows(n,e,i){if(!this._isBrowser)return;const r="bottom"===i?n.slice().reverse():n,o="bottom"===i?e.slice().reverse():e,a=[],c=[],u=[];for(let w=0,E=0;w{var w,E;for(let B=0;B{e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(n,e){for(const r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);Ete.some(r=>-1===e.indexOf(r)&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of Ete)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}}const yR=new jn("CDK_SPL");let nS=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(de(As),de(gi))},t.\u0275dir=nn({type:t,selectors:[["","rowOutlet",""]]}),t})(),iS=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(de(As),de(gi))},t.\u0275dir=nn({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),rS=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(de(As),de(gi))},t.\u0275dir=nn({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),oS=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}}return t.\u0275fac=function(e){return new(e||t)(de(As),de(gi))},t.\u0275dir=nn({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),aS=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E,B,Z){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=a,this._platform=u,this._viewRepeater=f,this._coalescedStyleScheduler=w,this._viewportRuler=E,this._stickyPositioningListener=B,this._ngZone=Z,this._onDestroy=new z,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Bn,this.viewChange=new mr({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=c,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Bi(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Bi(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Ln(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),NO(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&ji.isInAngularZone()?this._ngZone.onStable.pipe(Po(1),Ln(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{const a=[];for(let c=0;c{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const c=r&&r.has(a)?r.get(a):[];if(c.length){const u=c.shift();return u.dataIndex=i,u}return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),sS(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=sS(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=sS(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=sS(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,c)=>a||!!c.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],NO(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;NO(this.dataSource)?e=this.dataSource.connect(this):hR(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ir(this.dataSource)),this._renderChangeSubscription=e.pipe(Ln(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(c=>this._columnDefsByName.get(c)),o=r.map(c=>c.sticky),a=r.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))t3.mostRecentCellOutlet&&t3.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const a of r.outlets)o.appendChild(a.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new bFe(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Ir()).pipe(Ln(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];1===o.rootNodes.length&&(null==a?void 0:a.nodeType)===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i}}return t.\u0275fac=function(e){return new(e||t)(de(qd),de(Do),de(gi),Ts("role"),de(Xc,8),de(Xr),de(Ds),de(Nv),de(_R),de(Bf),de(yR,12),de(ji,8))},t.\u0275cmp=En({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,i,r){if(1&e&&(wo(r,tS,5),wo(r,Lh,5),wo(r,eS,5),wo(r,qv,5),wo(r,Xv,5)),2&e){let o;hi(o=pi())&&(i._noDataRow=o.first),hi(o=pi())&&(i._contentColumnDefs=o),hi(o=pi())&&(i._contentRowDefs=o),hi(o=pi())&&(i._contentHeaderRowDefs=o),hi(o=pi())&&(i._contentFooterRowDefs=o)}},viewQuery:function(e,i){if(1&e&&(fr(nS,7),fr(iS,7),fr(rS,7),fr(oS,7)),2&e){let r;hi(r=pi())&&(i._rowOutlet=r.first),hi(r=pi())&&(i._headerRowOutlet=r.first),hi(r=pi())&&(i._footerRowOutlet=r.first),hi(r=pi())&&(i._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,i){2&e&&sr("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ki([{provide:Y6,useExisting:t},{provide:Nv,useClass:hee},{provide:_R,useClass:Pte},{provide:yR,useValue:null}])],ngContentSelectors:dFe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Ua(lFe),yo(0),yo(1,1),n2(2,0)(3,1)(4,2)(5,3))},directives:[iS,nS,oS,rS],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function sS(t,n){return t.concat(Array.from(n))}let wR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Cv]]}),t})();const yFe=[[["caption"]],[["colgroup"],["col"]]],wFe=["caption","colgroup, col"];let U6=(()=>{class t extends aS{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=En({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,i){2&e&&sr("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[Ki([{provide:Nv,useClass:hee},{provide:aS,useExisting:t},{provide:Y6,useExisting:t},{provide:_R,useClass:Pte},{provide:yR,useValue:null}]),Vn],ngContentSelectors:wFe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,i){1&e&&(Ua(yFe),yo(0),yo(1,1),n2(2,0)(3,1)(4,2)(5,3))},directives:[iS,nS,oS,rS],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})(),cm=(()=>{class t extends t4{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","matCellDef",""]],features:[Ki([{provide:t4,useExisting:t}]),Vn]}),t})(),lm=(()=>{class t extends n4{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ki([{provide:n4,useExisting:t}]),Vn]}),t})(),dm=(()=>{class t extends Lh{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Ki([{provide:Lh,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Vn]}),t})(),um=(()=>{class t extends gR{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Vn]}),t})(),hm=(()=>{class t extends mR{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Vn]}),t})(),j6=(()=>{class t extends qv{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Ki([{provide:qv,useExisting:t}]),Vn]}),t})(),W6=(()=>{class t extends eS{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Ki([{provide:eS,useExisting:t}]),Vn]}),t})(),q6=(()=>{class t extends CR{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=En({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Ki([{provide:CR,useExisting:t}]),Vn],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&n2(0,0)},directives:[t3],encapsulation:2}),t})(),X6=(()=>{class t extends xR{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=En({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Ki([{provide:xR,useExisting:t}]),Vn],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,i){1&e&&n2(0,0)},directives:[t3],encapsulation:2}),t})(),cS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[wR,Mr],Mr]}),t})();class IFe extends uee{constructor(n=[]){super(),this._renderData=new mr([]),this._filter=new mr(""),this._internalPageChanges=new z,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const r=e[i];if(LK(r)){const o=Number(r);return o<9007199254740991?o:r}return r},this.sortData=(e,i)=>{const r=i.active,o=i.direction;return r&&""!=o?e.sort((a,c)=>{let u=this.sortingDataAccessor(a,r),f=this.sortingDataAccessor(c,r);const w=typeof u,E=typeof f;w!==E&&("number"===w&&(u+=""),"number"===E&&(f+=""));let B=0;return null!=u&&null!=f?u>f?B=1:u{const r=Object.keys(e).reduce((a,c)=>a+e[c]+"\u25ec","").toLowerCase(),o=i.trim().toLowerCase();return-1!=r.indexOf(o)},this._data=new mr(n),this._updateChangeSubscription()}get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_updateChangeSubscription(){var n;const e=this._sort?So(this._sort.sortChange,this._sort.initialized):Ir(null),i=this._paginator?So(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Ir(null),o=K9([this._data,this._filter]).pipe(Qe(([u])=>this._filterData(u))),a=K9([o,e]).pipe(Qe(([u])=>this._orderData(u))),c=K9([a,i]).pipe(Qe(([u])=>this._pageData(u)));null===(n=this._renderChangesSubscription)||void 0===n||n.unsubscribe(),this._renderChangesSubscription=c.subscribe(u=>this._renderData.next(u))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var n;null===(n=this._renderChangesSubscription)||void 0===n||n.unsubscribe(),this._renderChangesSubscription=null}}class lS extends IFe{}let Ate=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,Mr,Wf,bd,yv,aO],Mr]}),t})();const HFe=["*",[["mat-toolbar-row"]]],VFe=["*","mat-toolbar-row"],BFe=Oh(class{constructor(t){this._elementRef=t}});let n3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),r3=(()=>{class t extends BFe{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Ds),de(Xr))},t.\u0275cmp=En({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&wo(r,n3,5),2&e){let o;hi(o=pi())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&sr("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Vn],ngContentSelectors:VFe,decls:2,vars:0,template:function(e,i){1&e&&(Ua(HFe),yo(0),yo(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}),t})(),MR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Mr],Mr]}),t})(),Dte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[aO,Mr],Mr]}),t})(),Lte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[IO,Nu,RO,vee,yee,zO,BO,Vv,Uee,R6,Wee,Kp,FO,YO,Gv,rZ,WO,vO,qO,QO,bd,rR,em,vte,KO,Wv,Mte,yte,cS,Ate,MR,Uv,wR,Dte],IO,Nu,RO,vee,yee,zO,BO,Vv,Uee,Wee,Kp,FO,YO,Gv,rZ,WO,vO,qO,QO,bd,rR,em,vte,KO,Wv,Mte,yte,cS,Ate,MR,Uv,wR,Dte]}),t})(),qFe=(()=>{class t extends Pc{constructor(e,i,r,o,a,c,u){super(e,null,i,r),this.ngClassInstance=u,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new Qa(o,a,e,c)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Js),de(lc),de(qd),de(kf),de(Uc),de(Qa,10))},t.\u0275dir=nn({type:t,inputs:{klass:["class","klass"]},features:[Vn]}),t})();const XFe=["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 ec=(()=>{class t extends qFe{constructor(){super(...arguments),this.inputs=XFe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Vn]}),t})();class JFe{constructor(n,e,i=!0){this.key=n,this.value=e,this.key=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function kte(t){let n=typeof t;return"object"===n?t.constructor===Array?"array":t.constructor===Set?"set":"object":n}function Nte(t){const[n,...e]=t.split(":");return new JFe(n,e.join(":"))}function Rte(t,n){return n.key&&(t[n.key]=n.value),t}let nHe=(()=>{class t extends Pc{constructor(e,i,r,o,a,c,u,f,w){var E;super(e,null,i,r),this.sanitizer=o,this.ngStyleInstance=u,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new _6(e,a,c)),this.init();const B=null!==(E=this.nativeElement.getAttribute("style"))&&void 0!==E?E:"";this.fallbackStyles=this.buildStyleMap(B),this.isServer=f&&If(w)}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=r=>{var o;return null!==(o=this.sanitizer.sanitize(Ya.STYLE,r))&&void 0!==o?o:""};if(e)switch(kte(e)){case"string":return Fte(function eHe(t,n=";"){return String(t).trim().split(n).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return Fte(e,i);default:return function Ite(t,n){let e=[];return"set"===kte(t)?t.forEach(i=>e.push(i)):Object.keys(t).forEach(i=>{e.push(`${i}:${t[i]}`)}),function tHe(t,n){return t.map(Nte).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(Rte,{})}(e,n)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Js),de(lc),de(U9),de(kf),de(Uc),de(_6,10),de(T6),de(Tl))},t.\u0275dir=nn({type:t,features:[Vn]}),t})();const iHe=["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 zte=(()=>{class t extends nHe{constructor(){super(...arguments),this.inputs=iHe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[Vn]}),t})();function Fte(t,n){return t.map(Nte).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(Rte,{})}let Hte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[xN]]}),t})(),rHe=(()=>{class t extends zc{buildStyles(e,{display:i}){const r=CZ(e);return Object.assign(Object.assign({},r),{display:"none"===i?i:r.display})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oHe=["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 aHe=(()=>{class t extends Pc{constructor(e,i,r,o,a){super(e,r,i,o),this._config=a,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const o=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=Vte.get(o))&&void 0!==i?i:new Map,Vte.set(o,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:o}),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Js),de(rHe),de(lc),de(Ph))},t.\u0275dir=nn({type:t,features:[Vn]}),t})(),Lr=(()=>{class t extends aHe{constructor(){super(...arguments),this.inputs=oHe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Vn]}),t})();const Vte=new Map;let vHe=(()=>{class t extends zc{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[r,o,...a]=e.split(" "),c=a.join(" ");const u=i.direction.indexOf("column")>-1?"column":"row",f=Mv(u)?"max-width":"max-height",w=Mv(u)?"min-width":"min-height",E=String(c).indexOf("calc")>-1,B=E||"auto"===c,Z=String(c).indexOf("%")>-1&&!E,ee=String(c).indexOf("px")>-1||String(c).indexOf("rem")>-1||String(c).indexOf("em")>-1||String(c).indexOf("vw")>-1||String(c).indexOf("vh")>-1;let be=E||ee;r="0"==r?0:r,o="0"==o?0:o;const _e=!r&&!o;let Pe={};const Ie={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(c||""){case"":const ge=!1!==this.layoutConfig.useColumnBasisZero;c="row"===u?"0%":ge?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,c="auto";break;case"grow":c="100%";break;case"noshrink":o=0,c="auto";break;case"auto":break;case"none":r=0,o=0,c="auto";break;default:!be&&!Z&&!isNaN(c)&&(c+="%"),"0%"===c&&(be=!0),"0px"===c&&(c="0%"),Pe=$p(Ie,E?{"flex-grow":r,"flex-shrink":o,"flex-basis":be?c:"100%"}:{flex:`${r} ${o} ${be?c:"100%"}`})}return Pe.flex||Pe["flex-grow"]||(Pe=$p(Ie,E?{"flex-grow":r,"flex-shrink":o,"flex-basis":c}:{flex:`${r} ${o} ${c}`})),"0%"!==c&&"0px"!==c&&"0.000000001px"!==c&&"auto"!==c&&(Pe[w]=_e||be&&r?c:null,Pe[f]=_e||!B&&o?c:null),Pe[w]||Pe[f]?i.hasWrap&&(Pe[E?"flex-basis":"flex"]=Pe[f]?E?Pe[f]:`${r} ${o} ${Pe[f]}`:E?Pe[w]:`${r} ${o} ${Pe[w]}`):Pe=$p(Ie,E?{"flex-grow":r,"flex-shrink":o,"flex-basis":c}:{flex:`${r} ${o} ${c}`}),$p(Pe,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ph))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const CHe=["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 bHe=(()=>{class t extends Pc{constructor(e,i,r,o,a){super(e,o,i,a),this.layoutConfig=r,this.marshal=a,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(Ln(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Ln(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const r=e.value.split(" ");this.direction=r[0],this.wrap=void 0!==r[1]&&"wrap"===r[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 r=this.direction,o=r.startsWith("row"),a=this.wrap;o&&a?this.styleCache=wHe:o&&!a?this.styleCache=xHe:!o&&a?this.styleCache=MHe:!o&&!a&&(this.styleCache=yHe);const u=LZ(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(u.join(" "),{direction:r,hasWrap:a})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=LZ(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Js),de(Ph),de(vHe),de(lc))},t.\u0275dir=nn({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Vn]}),t})(),Vr=(()=>{class t extends bHe{constructor(){super(...arguments),this.inputs=CHe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Vn]}),t})();const xHe=new Map,yHe=new Map,wHe=new Map,MHe=new Map;let qHe=(()=>{class t extends zc{buildStyles(e,i){const r={},[o,a]=e.split(" ");switch(o){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;default:r["justify-content"]="flex-start"}switch(a){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;default:r["align-items"]=r["align-content"]="stretch"}return $p(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===a?Mv(i.layout)?null:"100%":null,"max-height":"stretch"===a&&Mv(i.layout)?"100%":null})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const XHe=["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 $He=(()=>{class t extends Pc{constructor(e,i,r,o){super(e,r,i,o),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Ln(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",r=this.inline;"row"===i&&r?this.styleCache=eVe:"row"!==i||r?"row-reverse"===i&&r?this.styleCache=nVe:"row-reverse"!==i||r?"column"===i&&r?this.styleCache=tVe:"column"!==i||r?"column-reverse"===i&&r?this.styleCache=iVe:"column-reverse"===i&&!r&&(this.styleCache=JHe):this.styleCache=KHe:this.styleCache=ZHe:this.styleCache=QHe,this.addStyles(e,{layout:i,inline:r})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),uO.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Js),de(qHe),de(lc))},t.\u0275dir=nn({type:t,features:[Vn]}),t})(),kr=(()=>{class t extends $He{constructor(){super(...arguments),this.inputs=XHe}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Vn]}),t})();const QHe=new Map,KHe=new Map,ZHe=new Map,JHe=new Map,eVe=new Map,tVe=new Map,nVe=new Map,iVe=new Map;let Yte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[xN,Vf]]}),t})(),Kte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[xN]]}),t})(),uS=(()=>{class t{constructor(e,i){If(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Ph,useValue:Object.assign(Object.assign({},yN),e)},{provide:wN,useValue:i,multi:!0},{provide:T6,useValue:!0}]:[{provide:Ph,useValue:Object.assign(Object.assign({},yN),e)},{provide:wN,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(Rt(T6),Rt(Tl))},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Yte,Hte,Kte],Yte,Hte,Kte]}),t})(),Zte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[]]}),t})(),Jte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[]]}),t})();function SR(t,n,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];r?t.setProperty(i,r,(null==e?void 0:e.has(i))?"important":""):t.removeProperty(i)}return t}function $6(t,n){const e=n?"":"none";SR(t.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function ene(t,n,e){SR(t.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function hS(t,n){return n&&"none"!=n?t+" "+n:t}function tne(t){const n=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*n}function PR(t,n){return t.getPropertyValue(n).split(",").map(i=>i.trim())}function ER(t){const n=t.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function TR(t,n,e){const{top:i,bottom:r,left:o,right:a}=t;return e>=i&&e<=r&&n>=o&&n<=a}function $v(t,n,e){t.top+=n,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function nne(t,n,e,i){const{top:r,right:o,bottom:a,left:c,width:u,height:f}=t,w=u*n,E=f*n;return i>r-E&&ic-w&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:ER(e)})})}handleScroll(n){const e=Du(n),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,a;if(e===this._document){const f=this.getViewportScrollPosition();o=f.top,a=f.left}else o=e.scrollTop,a=e.scrollLeft;const c=r.top-o,u=r.left-a;return this.positions.forEach((f,w)=>{f.clientRect&&e!==w&&e.contains(w)&&$v(f.clientRect,c,u)}),r.top=o,r.left=a,{top:c,left:u}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function rne(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();n.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const u=this._getTargetHandle(c);u&&!this._disabledHandles.has(u)&&!this.disabled&&this._initializeDragSequence(u,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const u=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(u.x-this._pickupPositionOnPage.x)+Math.abs(u.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Z=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),ee=this._dropContainer;if(!Z)return void this._endDragSequence(c);(!ee||!ee.isDragging()&&!ee.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const f=this._getConstrainedPointerPosition(u);if(this._hasMoved=!0,this._lastKnownPointerPosition=u,this._updatePointerDirectionDelta(f),this._dropContainer)this._updateActiveDropContainer(f,u);else{const w=this._activeTransform;w.x=f.x-this._pickupPositionOnPage.x+this._passiveTransform.x,w.y=f.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(w.x,w.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:f,event:c,distance:this._getDragDistance(f),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const u=this._getTargetHandle(c);u&&!this._disabledHandles.has(u)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new ine(i),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(n){const e=Bi(n);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>$6(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(i=>qc(i)),this._handles.forEach(i=>$6(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){const e=qc(n);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,pS),e.addEventListener("touchstart",this._pointerDown,cne),e.addEventListener("dragstart",this._nativeDragStart,pS)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?qc(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){var n,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(n=this._rootElement)||void 0===n||n.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),$6(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),$6(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){const n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){const n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var n,e;null===(n=this._preview)||void 0===n||n.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var n,e;null===(n=this._placeholder)||void 0===n||n.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){Qv(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(a,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),ene(i,!1,AR),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=Qv(e),o=!r&&0!==e.button,a=this._rootElement,c=Du(e),u=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),f=r?rO(e):iO(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||u||f)return;if(this._handles.length){const B=a.style;this._rootElementTapHighlight=B.webkitTapHighlightColor||"",B.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(B=>this._updateOnScroll(B)),this._boundaryElement&&(this._boundaryRect=ER(this._boundaryElement));const w=this._previewTemplate;this._pickupPositionInElement=w&&w.template&&!w.matchSize?{x:0,y:0}:this._getPointerPositionInElement(n,e);const E=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:E.x,y:E.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){ene(this._rootElement,!0,AR),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(n),o=this._getDragDistance(r),a=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r}),e.drop(this,i,this._initialIndex,this._initialContainer,a,o,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,n,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const n=this._previewTemplate,e=this.previewClass,i=n?n.template:null;let r;if(i&&n){const o=n.matchSize?this._rootElement.getBoundingClientRect():null,a=n.viewContainer.createEmbeddedView(i,n.context);a.detectChanges(),r=dne(a,this._document),this._previewRef=a,n.matchSize?une(r,o):r.style.transform=fS(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const o=this._rootElement;r=rne(o),une(r,o.getBoundingClientRect()),this._initialTransform&&(r.style.transform=this._initialTransform)}return SR(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},AR),$6(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const n=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);const e=function SBe(t){const n=getComputedStyle(t),e=PR(n,"transition-property"),i=e.find(c=>"transform"===c||"all"===c);if(!i)return 0;const r=e.indexOf(i),o=PR(n,"transition-duration"),a=PR(n,"transition-delay");return tne(o[r])+tne(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=a=>{var c;(!a||Du(a)===this._preview&&"transform"===a.propertyName)&&(null===(c=this._preview)||void 0===c||c.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const n=this._placeholderTemplate,e=n?n.template:null;let i;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),i=dne(this._placeholderRef,this._document)):i=rne(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(n,e){const i=this._rootElement.getBoundingClientRect(),r=n===this._rootElement?null:n,o=r?r.getBoundingClientRect():i,a=Qv(e)?e.targetTouches[0]:e,c=this._getViewportScrollPosition();return{x:o.left-i.left+(a.pageX-o.left-c.left),y:o.top-i.top+(a.pageY-o.top-c.top)}}_getPointerPositionOnPage(n){const e=this._getViewportScrollPosition(),i=Qv(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=o,c.matrixTransform(a.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(n){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(n,this):n;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,c=this._boundaryRect,{width:u,height:f}=this._getPreviewRect(),w=c.top+a,E=c.bottom-(f-a);i=lne(i,c.left+o,c.right-(u-o)),r=lne(r,w,E)}return{x:i,y:r}}_updatePointerDirectionDelta(n){const{x:e,y:i}=n,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),c=Math.abs(i-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,$6(this._rootElement,n))}_removeRootElementListeners(n){n.removeEventListener("mousedown",this._pointerDown,pS),n.removeEventListener("touchstart",this._pointerDown,cne),n.removeEventListener("dragstart",this._nativeDragStart,pS)}_applyRootElementTransform(n,e){const i=fS(n,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=hS(i,this._initialTransform)}_applyPreviewTransform(n,e){var i;const r=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,o=fS(n,e);this._preview.style.transform=hS(o,r)}_getDragDistance(n){const e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(0===n&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===r.width&&0===r.height)return;const o=i.left-r.left,a=r.right-i.right,c=i.top-r.top,u=r.bottom-i.bottom;i.width>r.width?(o>0&&(n+=o),a>0&&(n-=a)):n=0,i.height>r.height?(c>0&&(e+=c),u>0&&(e-=u)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){const e=this.dragStartDelay;return"number"==typeof e?e:Qv(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){const e=this._parentPositions.handleScroll(n);if(e){const i=Du(n);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&$v(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var n;return(null===(n=this._parentPositions.positions.get(this._document))||void 0===n?void 0:n.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=ZM(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){const i=this._previewContainer||"global";if("parent"===i)return n;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return qc(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),this._previewRect}_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}}function fS(t,n){return`translate3d(${Math.round(t)}px, ${Math.round(n)}px, 0)`}function lne(t,n,e){return Math.max(n,Math.min(e,t))}function Qv(t){return"t"===t.type[0]}function dne(t,n){const e=t.rootNodes;if(1===e.length&&e[0].nodeType===n.ELEMENT_NODE)return e[0];const i=n.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function une(t,n){t.style.width=`${n.width}px`,t.style.height=`${n.height}px`,t.style.transform=fS(n.left,n.top)}function hne(t,n,e){const i=Kv(n,t.length-1),r=Kv(e,t.length-1);if(i===r)return;const o=t[i],a=r!0,this.sortPredicate=()=>!0,this.beforeStarted=new z,this.entered=new z,this.exited=new z,this.dropped=new z,this.sorted=new z,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Me.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new z,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function OBe(t=0,n=pv){return t<0&&(t=0),QI(t,t,n)}(0,RK).pipe(Ln(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-c):2===this._verticalScrollDirection&&a.scrollBy(0,c),1===this._horizontalScrollDirection?a.scrollBy(-c,0):2===this._horizontalScrollDirection&&a.scrollBy(c,0)})},this.element=qc(n),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new ine(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,i,r){let o;this._draggingStarted(),null==r?(o=this.sortingDisabled?this._draggables.indexOf(n):-1,-1===o&&(o=this._getItemIndexFromPointerPosition(n,e,i))):o=r;const a=this._activeDraggables,c=a.indexOf(n),u=n.getPlaceholderElement();let f=a[o];if(f===n&&(f=a[o+1]),!f&&(null==o||-1===o||o-1&&a.splice(c,1),f&&!this._dragDropRegistry.isDragging(f)){const w=f.getRootElement();w.parentElement.insertBefore(u,w),a.splice(o,0,n)}else qc(this.element).appendChild(u),a.push(n);u.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,i,r,o,a,c){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:c})}withItems(n){const e=this._draggables;return this._draggables=n,n.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===n.indexOf(r))?this._reset():this._cacheItems()),this}withDirection(n){return this._direction=n,this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){return this._orientation=n,this}withScrollableParents(n){const e=qc(this.element);return this._scrollableElements=-1===n.indexOf(e)?[e,...n]:n.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===n):this._draggables.indexOf(n)}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,i,r){if(this.sortingDisabled||!this._clientRect||!nne(this._clientRect,.05,e,i))return;const o=this._itemPositions,a=this._getItemIndexFromPointerPosition(n,e,i,r);if(-1===a&&o.length>0)return;const c="horizontal"===this._orientation,u=o.findIndex(_e=>_e.drag===n),f=o[a],E=f.clientRect,B=u>a?1:-1,Z=this._getItemOffsetPx(o[u].clientRect,E,B),ee=this._getSiblingOffsetPx(u,o,B),be=o.slice();hne(o,u,a),this.sorted.next({previousIndex:u,currentIndex:a,container:this,item:n}),o.forEach((_e,Pe)=>{if(be[Pe]===_e)return;const Ie=_e.drag===n,ge=Ie?Z:ee,Re=Ie?n.getPlaceholderElement():_e.drag.getRootElement();_e.offset+=ge,c?(Re.style.transform=hS(`translate3d(${Math.round(_e.offset)}px, 0, 0)`,_e.initialTransform),$v(_e.clientRect,0,ge)):(Re.style.transform=hS(`translate3d(0, ${Math.round(_e.offset)}px, 0)`,_e.initialTransform),$v(_e.clientRect,ge,0))}),this._previousSwap.overlaps=TR(E,e,i),this._previousSwap.drag=f.drag,this._previousSwap.delta=c?r.x:r.y}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((a,c)=>{c===this._document||!a.clientRect||i||nne(a.clientRect,.05,n,e)&&([r,o]=function LBe(t,n,e,i){const r=gne(n,i),o=mne(n,e);let a=0,c=0;if(r){const u=t.scrollTop;1===r?u>0&&(a=1):t.scrollHeight-u>t.clientHeight&&(a=2)}if(o){const u=t.scrollLeft;1===o?u>0&&(c=1):t.scrollWidth-u>t.clientWidth&&(c=2)}return[a,c]}(c,a.clientRect,n,e),(r||o)&&(i=c))}),!r&&!o){const{width:a,height:c}=this._viewportRuler.getViewportSize(),u={width:a,height:c,top:0,right:a,bottom:c,left:0};r=gne(u,e),o=mne(u,n),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const n=qc(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const n=qc(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(n).clientRect}_cacheItemPositions(){const n="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:ER(i)}}).sort((e,i)=>n?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const n=qc(this.element).style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var i;const r=e.getRootElement();if(r){const o=null===(i=this._itemPositions.find(a=>a.drag===e))||void 0===i?void 0:i.initialTransform;r.style.transform=o||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(n,e,i){const r="horizontal"===this._orientation,o=e[n].clientRect,a=e[n+-1*i];let c=o[r?"width":"height"]*i;if(a){const u=r?"left":"top",f=r?"right":"bottom";-1===i?c-=a.clientRect[u]-o[f]:c+=o[u]-a.clientRect[f]}return c}_getItemOffsetPx(n,e,i){const r="horizontal"===this._orientation;let o=r?e.left-n.left:e.top-n.top;return-1===i&&(o+=r?e.width-n.width:e.height-n.height),o}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const a=i[i.length-1].clientRect;return r?n>=a.right:e>=a.bottom}{const a=i[0].clientRect;return r?n<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(n,e,i,r){const o="horizontal"===this._orientation,a=this._itemPositions.findIndex(({drag:c,clientRect:u})=>{if(c===n)return!1;if(r){const f=o?r.x:r.y;if(c===this._previousSwap.drag&&this._previousSwap.overlaps&&f===this._previousSwap.delta)return!1}return o?e>=Math.floor(u.left)&&e=Math.floor(u.top)&&ir._canReceive(n,e,i))}_canReceive(n,e,i){if(!this._clientRect||!TR(this._clientRect,e,i)||!this.enterPredicate(n,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=qc(this.element);return r===o||o.contains(r)}_startReceiving(n,e){const i=this._activeSiblings;!i.has(n)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(n),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(n);e&&(this._itemPositions.forEach(({clientRect:i})=>{$v(i,e.top,e.left)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const n=ZM(qc(this.element));this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const n=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}}function gne(t,n){const{top:e,bottom:i,height:r}=t,o=.05*r;return n>=e-o&&n<=e+o?1:n>=i-o&&n<=i+o?2:0}function mne(t,n){const{left:e,right:i,width:r}=t,o=.05*r;return n>=e-o&&n<=e+o?1:n>=i-o&&n<=i+o?2:0}const gS=wh({passive:!1,capture:!0});let kBe=(()=>{class t{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new z,this.pointerUp=new z,this.scroll=new z,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,gS)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,gS)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:gS}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:gS}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new At(r=>this._ngZone.runOutsideAngular(()=>{const a=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),So(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(Rt(ji),Rt(Xr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const IBe={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let NBe=(()=>{class t{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=IBe){return new TBe(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new DBe(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xr),Rt(ji),Rt(Bf),Rt(kBe))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_ne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[NBe],imports:[I0]}),t})();function RBe(){}function DR(t){return null==t?RBe:function(){return this.querySelector(t)}}function FBe(){return[]}function vne(t){return null==t?FBe:function(){return this.querySelectorAll(t)}}function Cne(t){return function(){return this.matches(t)}}function bne(t){return new Array(t.length)}function mS(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function YBe(t,n,e,i,r,o){for(var c,a=0,u=n.length,f=o.length;an?1:t>=n?0:NaN}mS.prototype={constructor:mS,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var LR="http://www.w3.org/1999/xhtml";const yne={svg:"http://www.w3.org/2000/svg",xhtml:LR,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _S(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),yne.hasOwnProperty(n)?{space:yne[n],local:t}:t}function rGe(t){return function(){this.removeAttribute(t)}}function oGe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function aGe(t,n){return function(){this.setAttribute(t,n)}}function sGe(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function cGe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function lGe(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function wne(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function uGe(t){return function(){this.style.removeProperty(t)}}function hGe(t,n,e){return function(){this.style.setProperty(t,n,e)}}function pGe(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function Q6(t,n){return t.style.getPropertyValue(n)||wne(t).getComputedStyle(t,null).getPropertyValue(n)}function gGe(t){return function(){delete this[t]}}function mGe(t,n){return function(){this[t]=n}}function _Ge(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Mne(t){return t.trim().split(/^|\s+/)}function kR(t){return t.classList||new One(t)}function One(t){this._node=t,this._names=Mne(t.getAttribute("class")||"")}function Sne(t,n){for(var e=kR(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Tne={},pm=null;function qGe(t,n,e){return t=Ane(t,n,e),function(i){var r=i.relatedTarget;(!r||r!==this&&!(8&r.compareDocumentPosition(this)))&&t.call(this,i)}}function Ane(t,n,e){return function(i){var r=pm;pm=i;try{t.call(this,this.__data__,n,e)}finally{pm=r}}}function XGe(t){return t.trim().split(/^|\s+/).map(function(n){var e="",i=n.indexOf(".");return i>=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function $Ge(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=ge&&(ge=Ie+1);!(Ye=_e[ge])&&++ge=0;)(a=i[r])&&(o&&4^a.compareDocumentPosition(o)&&o.parentNode.insertBefore(a,o),o=a);return this},sort:function QBe(t){function n(E,B){return E&&B?t(E.__data__,B.__data__):!E-!B}t||(t=KBe);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?uGe:"function"==typeof n?pGe:hGe)(t,n,null==e?"":e)):Q6(this.node(),t)},property:function vGe(t,n){return arguments.length>1?this.each((null==n?gGe:"function"==typeof n?_Ge:mGe)(t,n)):this.node()[t]},classed:function yGe(t,n){var e=Mne(t+"");if(arguments.length<2){for(var i=kR(this.node()),r=-1,o=e.length;++r=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function rYe(t,n){for(var r,e=0,i=t.length;e0)for(var r,o,e=new Array(r),i=0;i=0&&t._call.call(null,n),t=t._next;--K6}function Hne(){fm=(bS=nC.now())+xS,K6=Jv=0;try{Fne()}finally{K6=0,function sYe(){for(var t,e,n=CS,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:CS=e);tC=t,NR(i)}(),fm=0}}function aYe(){var t=nC.now(),n=t-bS;n>1e3&&(xS-=n,bS=t)}function NR(t){K6||(Jv&&(Jv=clearTimeout(Jv)),t-fm>24?(t<1/0&&(Jv=setTimeout(Hne,t-nC.now()-xS)),eC&&(eC=clearInterval(eC))):(eC||(bS=nC.now(),eC=setInterval(aYe,1e3)),K6=1,zne(Hne)))}function RR(t,n,e){var i=new iC;return i.restart(function(r){i.stop(),t(r+n)},n=null==n?0:+n,e),i}iC.prototype=IR.prototype={constructor:iC,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Z6():+e)+(null==n?0:+n),!this._next&&tC!==this&&(tC?tC._next=this:CS=this,tC=this),this._call=t,this._time=e,NR()},stop:function(){this._call&&(this._call=null,this._time=1/0,NR())}};var cYe=Nne("start","end","cancel","interrupt"),lYe=[];function MS(t,n,e,i,r,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function dYe(t,n,e){var r,i=t.__transition;function a(f){var w,E,B,Z;if(1!==e.state)return u();for(w in i)if((Z=i[w]).name===e.name){if(3===Z.state)return RR(a);4===Z.state?(Z.state=6,Z.timer.stop(),Z.on.call("interrupt",t,t.__data__,Z.index,Z.group),delete i[w]):+w0)throw new Error("too late; already scheduled");return e}function o3(t,n){var e=Ih(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Ih(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function r4(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var rC,BR,jne,OS,Yne=180/Math.PI,VR={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Une(t,n,e,i,r,o){var a,c,u;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(u=t*e+n*i)&&(e-=t*u,i-=n*u),(c=Math.sqrt(e*e+i*i))&&(e/=c,i/=c,u/=c),t*i180?w+=360:w-f>180&&(f+=360),B.push({i:E.push(r(E)+"rotate(",null,i)-2,x:r4(f,w)})):w&&E.push(r(E)+"rotate("+w+i)}(f.rotate,w.rotate,E,B),function c(f,w,E,B){f!==w?B.push({i:E.push(r(E)+"skewX(",null,i)-2,x:r4(f,w)}):w&&E.push(r(E)+"skewX("+w+i)}(f.skewX,w.skewX,E,B),function u(f,w,E,B,Z,ee){if(f!==E||w!==B){var be=Z.push(r(Z)+"scale(",null,",",null,")");ee.push({i:be-4,x:r4(f,E)},{i:be-2,x:r4(w,B)})}else(1!==E||1!==B)&&Z.push(r(Z)+"scale("+E+","+B+")")}(f.scaleX,f.scaleY,w.scaleX,w.scaleY,E,B),f=w=null,function(Z){for(var _e,ee=-1,be=B.length;++ee>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?PS(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?PS(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=xYe.exec(t))?new tu(n[1],n[2],n[3],1):(n=yYe.exec(t))?new tu(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=wYe.exec(t))?PS(n[1],n[2],n[3],n[4]):(n=MYe.exec(t))?PS(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=OYe.exec(t))?eie(n[1],n[2]/100,n[3]/100,1):(n=SYe.exec(t))?eie(n[1],n[2]/100,n[3]/100,n[4]):Xne.hasOwnProperty(t)?Kne(Xne[t]):"transparent"===t?new tu(NaN,NaN,NaN,0):null}function Kne(t){return new tu(t>>16&255,t>>8&255,255&t,1)}function PS(t,n,e,i){return i<=0&&(t=n=e=NaN),new tu(t,n,e,i)}function EYe(t){return t instanceof oC||(t=cC(t)),t?new tu((t=t.rgb()).r,t.g,t.b,t.opacity):new tu}function ES(t,n,e,i){return 1===arguments.length?EYe(t):new tu(t,n,e,null==i?1:i)}function tu(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function Zne(){return"#"+UR(this.r)+UR(this.g)+UR(this.b)}function Jne(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function UR(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function eie(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new H0(t,n,e,i)}function tie(t){if(t instanceof H0)return new H0(t.h,t.s,t.l,t.opacity);if(t instanceof oC||(t=cC(t)),!t)return new H0;if(t instanceof H0)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),a=NaN,c=o-r,u=(o+r)/2;return c?(a=n===o?(e-i)/c+6*(e0&&u<1?0:a,new H0(a,c,u,t.opacity)}function H0(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function jR(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function nie(t,n,e,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*i+a*r)/6}function iie(t){return function(){return t}}function oie(t,n){var e=n-t;return e?function rie(t,n){return function(e){return t+e*n}}(t,e):iie(isNaN(t)?n:t)}YR(oC,cC,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:$ne,formatHex:$ne,formatHsl:function PYe(){return tie(this).formatHsl()},formatRgb:Qne,toString:Qne}),YR(tu,ES,qne(oC,{brighter:function(t){return t=null==t?SS:Math.pow(SS,t),new tu(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new tu(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Zne,formatHex:Zne,formatRgb:Jne,toString:Jne})),YR(H0,function TYe(t,n,e,i){return 1===arguments.length?tie(t):new H0(t,n,e,null==i?1:i)},qne(oC,{brighter:function(t){return t=null==t?SS:Math.pow(SS,t),new H0(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new H0(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new tu(jR(t>=240?t-240:t+120,r,i),jR(t,r,i),jR(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const aie=function t(n){var e=function kYe(t){return 1==(t=+t)?oie:function(n,e){return e-n?function LYe(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):iie(isNaN(n)?e:n)}}(n);function i(r,o){var a=e((r=ES(r)).r,(o=ES(o)).r),c=e(r.g,o.g),u=e(r.b,o.b),f=oie(r.opacity,o.opacity);return function(w){return r.r=a(w),r.g=c(w),r.b=u(w),r.opacity=f(w),r+""}}return i.gamma=t,i}(1);function sie(t){return function(n){var a,c,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(a=0;a=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return nie((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),c[a]?c[a]+=o:c[++a]=o),(i=i[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,u.push({i:a,x:r4(i,r)})),e=qR.lastIndex;return e=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?HR:o3;return function(){var a=o(this,t),c=a.on;c!==i&&(r=(i=c).copy()).on(n,e),a.on=r}}var hUe=Zv.prototype.constructor;function lie(t){return function(){this.style.removeProperty(t)}}function CUe(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function bUe(t,n,e){var i,r;function o(){var a=n.apply(this,arguments);return a!==r&&(i=(r=a)&&CUe(t,a,e)),i}return o._value=n,o}function OUe(t){return function(n){this.textContent=t.call(this,n)}}function SUe(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&OUe(r)),n}return i._value=t,i}var AUe=0;function a3(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function die(){return++AUe}var e_=Zv.prototype;a3.prototype=function DUe(t){return Zv().transition(t)}.prototype={constructor:a3,select:function dUe(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=DR(t));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[a]):o=!1;o&&delete t.__transition}}(this,t)})},Zv.prototype.transition=function IUe(t){var n,e;t instanceof a3?(n=t._id,t=t._name):(n=die(),(e=XR).time=Z6(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o=(E=(c+f)/2))?c=E:f=E,(_e=e>=(B=(u+w)/2))?u=B:w=B,r=o,!(o=o[Pe=_e<<1|be]))return r[Pe]=a,t;if(Z=+t._x.call(null,o.data),ee=+t._y.call(null,o.data),n===Z&&e===ee)return a.next=o,r?r[Pe]=a:t._root=a,t;do{r=r?r[Pe]=new Array(4):t._root=new Array(4),(be=n>=(E=(c+f)/2))?c=E:f=E,(_e=e>=(B=(u+w)/2))?u=B:w=B}while((Pe=_e<<1|be)==(Ie=(ee>=B)<<1|Z>=E));return r[Ie]=o,r[Pe]=a,t}function j2(t,n,e,i,r){this.node=t,this.x0=n,this.y0=e,this.x1=i,this.y1=r}function nje(t){return t[0]}function rje(t){return t[1]}function $R(t,n,e){var i=new QR(null==n?nje:n,null==e?rje:e,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function QR(t,n,e,i,r,o){this._x=t,this._y=n,this._x0=e,this._y0=i,this._x1=r,this._y1=o,this._root=void 0}function fie(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var W2=$R.prototype=QR.prototype;function aje(t){return t.x+t.vx}function sje(t){return t.y+t.vy}function gie(t){var n,e,i=1,r=1;function o(){for(var u,w,E,B,Z,ee,be,f=n.length,_e=0;_eB+_t||YeZ+_t||JeE.index){var Yt=B-gt.x-gt.vx,tn=Z-gt.y-gt.vy,_n=Yt*Yt+tn*tn;_n<_t*_t&&(0===Yt&&(_n+=(Yt=o4())*Yt),0===tn&&(_n+=(tn=o4())*tn),_n=(_t-(_n=Math.sqrt(_n)))/_n*i,E.vx+=(Yt*=_n)*(_t=(ft*=ft)/(be+ft)),E.vy+=(tn*=_n)*_t,gt.vx-=Yt*(_t=1-_t),gt.vy-=tn*_t)}}}function a(u){if(u.data)return u.r=e[u.data.index];for(var f=u.r=0;f<4;++f)u[f]&&u[f].r>u.r&&(u.r=u[f].r)}function c(){if(n){var u,w,f=n.length;for(e=new Array(f),u=0;uw&&(w=r),oE&&(E=o));if(u>w||f>E)return this;for(this.cover(u,f).cover(w,E),e=0;et||t>=r||i>n||n>=o;)switch(f=(nw||(c=ee.y0)>E||(u=ee.x1)=Pe)<<1|t>=_e)&&(ee=B[B.length-1],B[B.length-1]=B[B.length-1-be],B[B.length-1-be]=ee)}else{var Ie=t-+this._x.call(null,Z.data),ge=n-+this._y.call(null,Z.data),Re=Ie*Ie+ge*ge;if(Re=(B=(a+u)/2))?a=B:u=B,(be=E>=(Z=(c+f)/2))?c=Z:f=Z,n=e,!(e=e[_e=be<<1|ee]))return this;if(!e.length)break;(n[_e+1&3]||n[_e+2&3]||n[_e+3&3])&&(i=n,Pe=_e)}for(;e.data!==t;)if(r=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,r?(o?r.next=o:delete r.next,this):n?(o?n[_e]=o:delete n[_e],(e=n[0]||n[1]||n[2]||n[3])&&e===(n[3]||n[2]||n[1]||n[0])&&!e.length&&(i?i[Pe]=e:this._root=e),this):(this._root=o,this)},W2.removeAll=function KUe(t){for(var n=0,e=t.length;n=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function fje(t,n){for(var r,e=0,i=t.length;e0)for(var r,o,e=new Array(r),i=0;i=0&&t._call.call(null,n),t=t._next;--i_}()}finally{i_=0,function Cje(){for(var t,e,n=LS,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:LS=e);uC=t,JR(i)}(),mm=0}}function vje(){var t=hC.now(),n=t-kS;n>1e3&&(IS-=n,kS=t)}function JR(t){i_||(lC&&(lC=clearTimeout(lC)),t-mm>24?(t<1/0&&(lC=setTimeout(Pie,t-hC.now()-IS)),dC&&(dC=clearInterval(dC))):(dC||(kS=hC.now(),dC=setInterval(vje,1e3)),i_=1,Mie(Pie)))}function bje(t){return t.x}function xje(t){return t.y}ZR.prototype=Sie.prototype={constructor:ZR,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Oie():+e)+(null==n?0:+n),!this._next&&uC!==this&&(uC?uC._next=this:LS=this,uC=this),this._call=t,this._time=e,JR()},stop:function(){this._call&&(this._call=null,this._time=1/0,JR())}};var wje=Math.PI*(3-Math.sqrt(5));function Eie(t){var n,e=1,i=.001,r=1-Math.pow(i,1/300),o=0,a=.6,c=KR(),u=Sie(w),f=gje("tick","end");function w(){E(),f.call("tick",n),e1?(null==be?c.remove(ee):c.set(ee,Z(be)),n):c.get(ee)},find:function(ee,be,_e){var ge,Re,Ye,Je,gt,Pe=0,Ie=t.length;for(null==_e?_e=1/0:_e*=_e,Pe=0;Pe1?(f.on(ee,be),n):f.on(ee)}}}function Tie(){var t,n,e,r,i=Nl(-30),o=1,a=1/0,c=.81;function u(B){var Z,ee=t.length,be=$R(t,bje,xje).visitAfter(w);for(e=B,Z=0;Z=a)){(B.data!==n||B.next)&&(0===_e&&(ge+=(_e=o4())*_e),0===Pe&&(ge+=(Pe=o4())*Pe),ge{return(t=o_||(o_={})).LEFT_TO_RIGHT="LR",t.RIGHT_TO_LEFT="RL",t.TOP_TO_BOTTOM="TB",t.BOTTOM_TO_TOM="BT",o_;var t})();function a_(t){return"string"==typeof t?{id:t,x:0,y:0}:t}function kie(t,n){return"number"==typeof n?t[n]:n}const Iie={dagre:class jje{constructor(){this.defaultSettings={orientation:o_.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),n_.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],r=n.nodes.find(o=>o.id===i.id);r.position={x:i.x,y:i.y},r.dimension={width:i.width,height:i.height}}return n}updateEdge(n,e){const i=n.nodes.find(u=>u.id===e.source),r=n.nodes.find(u=>u.id===e.target),o=i.position.y<=r.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:r.position.x,y:r.position.y+o*(r.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new n_.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const r=Object.assign({},i);return r.width=i.dimension.width,r.height=i.dimension.height,r.x=i.position.x,r.y=i.position.y,r}),this.dagreEdges=n.edges.map(i=>{const r=Object.assign({},i);return r.id||(r.id=r_()),r});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class Wje{constructor(){this.defaultSettings={orientation:o_.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),n_.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const r=this.dagreGraph._nodes[i.id];return Object.assign(Object.assign({},i),{position:{x:r.x,y:r.y},dimension:{width:r.width,height:r.height}})};return n.clusters=(n.clusters||[]).map(e),n.nodes=n.nodes.map(e),n}updateEdge(n,e){const i=n.nodes.find(u=>u.id===e.source),r=n.nodes.find(u=>u.id===e.target),o=i.position.y<=r.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:r.position.x,y:r.position.y+o*(r.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new n_.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const r=Object.assign({},i);return r.width=i.dimension.width,r.height=i.dimension.height,r.x=i.position.x,r.y=i.position.y,r}),this.dagreClusters=n.clusters||[],this.dagreEdges=n.edges.map(i=>{const r=Object.assign({},i);return r.id||(r.id=r_()),r});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(r=>{this.dagreGraph.setParent(r,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class Xje{constructor(){this.defaultSettings={orientation:o_.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),n_.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],r=n.nodes.find(o=>o.id===i.id);r.position={x:i.x,y:i.y},r.dimension={width:i.width,height:i.height}}for(const e of n.edges)this.updateEdge(n,e);return n}updateEdge(n,e){const i=n.nodes.find(ee=>ee.id===e.source),r=n.nodes.find(ee=>ee.id===e.target),o="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",a="y"===o?"x":"y",c="y"===o?"height":"width",u=i.position[o]<=r.position[o]?-1:1,f={[a]:i.position[a],[o]:i.position[o]-u*(i.dimension[c]/2)},w={[a]:r.position[a],[o]:r.position[o]+u*(r.dimension[c]/2)},E=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[f,{[a]:f[a],[o]:f[o]-u*E},{[a]:w[a],[o]:w[o]+u*E},w];const Z=n.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return Z&&(Z.points=e.points),n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new n_.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=n.nodes.map(i=>{const r=Object.assign({},i);return r.width=i.dimension.width,r.height=i.dimension.height,r.x=i.position.x,r.y=i.position.y,r}),this.dagreEdges=n.edges.map(i=>{const r=Object.assign({},i);return r.id||(r.id=r_()),r});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class $je{constructor(){this.defaultSettings={force:Eie().force("charge",Tie().strength(-150)).force("collide",gie(5)),forceLink:bie().id(n=>n.id).distance(()=>100)},this.settings={},this.outputGraph$=new z}run(n){return this.inputGraph=n,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign({},e))],edges:[...this.inputGraph.edges.map(e=>Object.assign({},e))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(n){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||r_(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>Object.assign(Object.assign({},e),{source:a_(e.source).id,target:a_(e.target).id,points:[{x:a_(e.source).x,y:a_(e.source).y},{x:a_(e.target).x,y:a_(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(r=>r.id===n.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(n,e){if(!n)return;const i=this.d3Graph.nodes.find(r=>r.id===n.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(n,e){if(!n)return;const i=this.d3Graph.nodes.find(r=>r.id===n.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class Qje{constructor(){this.defaultSettings={force:(0,Pje.d3adaptor)(Object.assign(Object.assign(Object.assign({},m),y),A)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new z}run(n){return this.inputGraph=n,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign(Object.assign({},e),{width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(r=>r.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(r=>r.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),r=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(-1!==i&&-1!==r)return Object.assign(Object.assign({},e),{source:i,target:r})}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),r=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(!(i>=0&&r>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(n){return this.outputGraph.nodes=n.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||r_(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=n.links.map(e=>{const i=kie(n.nodes,e.source),r=kie(n.nodes,e.target);return Object.assign(Object.assign({},e),{source:i.id,target:r.id,points:[i.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})}).concat(n.groupLinks.map(e=>{const i=n.nodes.find(c=>c.id===e.source),r=n.nodes.find(c=>c.id===e.target),o=i||n.groups.find(c=>c.id===e.source),a=r||n.groups.find(c=>c.id===e.target);return Object.assign(Object.assign({},e),{source:o.id,target:a.id,points:[o.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy())]})})),this.outputGraph.clusters=n.groups.map((e,i)=>Object.assign(Object.assign({},this.inputGraph.clusters[i]),{dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){const i=this.outputGraph.nodes.findIndex(o=>o.id===n.id),r=this.internalGraph.nodes[i];!r||(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}onDrag(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===n.id),r=this.internalGraph.nodes[i];!r||(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}onDragEnd(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===n.id),r=this.internalGraph.nodes[i];!r||(r.fixed=0)}}};let Kje=(()=>{class t{getLayout(e){if(Iie[e])return new Iie[e];throw new Error(`Unknown layout type '${e}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),Zje=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[Kje],imports:[[ta]]}),t})(),Nie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta],Zje]}),t})();function Rie(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function yr(t){for(var n=1;nt.length)&&(n=t.length);for(var e=0,i=new Array(n);e0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function s_(t){for(var n=[],e=(t||[]).length>>>0;e--;)n[e]=t[e];return n}function cz(t){return t.classList?s_(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(n){return n})}function tre(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function BS(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,": ").concat(t[e].trim(),";")},"")}function lz(t){return t.size!==V0.size||t.x!==V0.x||t.y!==V0.y||t.rotate!==V0.rotate||t.flipX||t.flipY}function nre(){var t="fa",n=Xie,e=go.familyPrefix,i=go.replacementClass,r=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0);\n animation-delay: var(--fa-animation-delay, 0);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(e!==t||i!==n){var o=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\--".concat(t,"\\-"),"g"),c=new RegExp("\\.".concat(n),"g");r=r.replace(o,".".concat(e,"-")).replace(a,"--".concat(e,"-")).replace(c,".".concat(i))}return r}var ire=!1;function dz(){go.autoAddCss&&!ire&&(function OWe(t){if(t&&s3){var n=tc.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=t;for(var e=tc.head.childNodes,i=null,r=e.length-1;r>-1;r--){var o=e[r],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(i=o)}tc.head.insertBefore(n,i)}}(nre()),ire=!0)}var DWe={mixout:function(){return{dom:{css:nre,insertCss:dz}}},hooks:function(){return{beforeDOMElementCreation:function(){dz()},beforeI2svg:function(){dz()}}}},l3=a4||{};l3[c3]||(l3[c3]={}),l3[c3].styles||(l3[c3].styles={}),l3[c3].hooks||(l3[c3].hooks={}),l3[c3].shims||(l3[c3].shims=[]);var Nh=l3[c3],rre=[],GS=!1;function kWe(t){!s3||(GS?setTimeout(t,0):rre.push(t))}function _C(t){var n=t.tag,e=t.attributes,i=void 0===e?{}:e,r=t.children,o=void 0===r?[]:r;return"string"==typeof t?tre(t):"<".concat(n," ").concat(function PWe(t){return Object.keys(t||{}).reduce(function(n,e){return n+"".concat(e,'="').concat(tre(t[e]),'" ')},"").trim()}(i),">").concat(o.map(_C).join(""),"")}function ore(t,n,e){if(t&&t[n]&&t[n][e])return{prefix:n,iconName:e,icon:t[n][e]}}s3&&((GS=(tc.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(tc.readyState))||tc.addEventListener("DOMContentLoaded",function t(){tc.removeEventListener("DOMContentLoaded",t),GS=1,rre.map(function(n){return n()})}));var uz=function(n,e,i,r){var u,f,w,o=Object.keys(n),a=o.length,c=void 0!==r?function(n,e){return function(i,r,o,a){return n.call(e,i,r,o,a)}}(e,r):e;for(void 0===i?(u=1,w=n[o[0]]):(u=0,w=i);u=55296&&r<=56319&&e2&&void 0!==arguments[2]?arguments[2]:{},i=e.skipHooks,r=void 0!==i&&i,o=are(n);"function"!=typeof Nh.hooks.addPack||r?Nh.styles[t]=yr(yr({},Nh.styles[t]||{}),o):Nh.hooks.addPack(t,are(n)),"fas"===t&&pz("fa",n)}var vC=Nh.styles,zWe=Nh.shims,FWe=Object.values(Kie),fz=null,sre={},cre={},lre={},dre={},ure={},HWe=Object.keys(sz);function BWe(t,n){var e=n.split("-"),i=e[0],r=e.slice(1).join("-");return i!==t||""===r||function VWe(t){return~CWe.indexOf(t)}(r)?null:r}var hre=function(){var n=function(o){return uz(vC,function(a,c,u){return a[u]=uz(c,o,{}),a},{})};sre=n(function(r,o,a){return o[3]&&(r[o[3]]=a),o[2]&&o[2].filter(function(u){return"number"==typeof u}).forEach(function(u){r[u.toString(16)]=a}),r}),cre=n(function(r,o,a){return r[a]=a,o[2]&&o[2].filter(function(u){return"string"==typeof u}).forEach(function(u){r[u]=a}),r}),ure=n(function(r,o,a){var c=o[2];return r[a]=a,c.forEach(function(u){r[u]=a}),r});var e="far"in vC||go.autoFetchSvg,i=uz(zWe,function(r,o){var a=o[0],c=o[1],u=o[2];return"far"===c&&!e&&(c="fas"),"string"==typeof a&&(r.names[a]={prefix:c,iconName:u}),"number"==typeof a&&(r.unicodes[a.toString(16)]={prefix:c,iconName:u}),r},{names:{},unicodes:{}});lre=i.names,dre=i.unicodes,fz=YS(go.styleDefault)};function gz(t,n){return(sre[t]||{})[n]}function c_(t,n){return(ure[t]||{})[n]}function pre(t){return lre[t]||{prefix:null,iconName:null}}function c4(){return fz}function YS(t){return HS[t]||HS[sz[t]]||(t in Nh.styles?t:null)||null}function US(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.skipLookups,i=void 0!==e&&e,r=null,o=t.reduce(function(a,c){var u=BWe(go.familyPrefix,c);if(vC[c]?(c=FWe.includes(c)?pWe[c]:c,r=c,a.prefix=c):HWe.indexOf(c)>-1?(r=c,a.prefix=YS(c)):u?a.iconName=u:c!==go.replacementClass&&a.rest.push(c),!i&&a.prefix&&a.iconName){var f="fa"===r?pre(a.iconName):{},w=c_(a.prefix,a.iconName);f.prefix&&(r=null),a.iconName=f.iconName||w||a.iconName,a.prefix=f.prefix||a.prefix,"far"===a.prefix&&!vC.far&&vC.fas&&!go.autoFetchSvg&&(a.prefix="fas")}return a},{prefix:null,iconName:null,rest:[]});return("fa"===o.prefix||"fa"===r)&&(o.prefix=c4()||"fas"),o}(function MWe(t){VS.push(t)})(function(t){fz=YS(t.styleDefault)}),hre();var UWe=function(){function t(){(function Jje(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")})(this,t),this.definitions={}}return function eWe(t,n,e){n&&zie(t.prototype,n),e&&zie(t,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"add",value:function(){for(var e=this,i=arguments.length,r=new Array(i),o=0;o0&&w.forEach(function(E){"string"==typeof E&&(e[c][E]=f)}),e[c][u]=f}),e}}]),t}(),fre=[],l_={},d_={},jWe=Object.keys(d_);function _z(t,n){for(var e=arguments.length,i=new Array(e>2?e-2:0),r=2;r1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return s3?(Cm("beforeI2svg",n),u3("pseudoElements2svg",n),u3("i2svg",n)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.autoReplaceSvgRoot;!1===go.autoReplaceSvg&&(go.autoReplaceSvg=!0),go.observeMutations=!0,kWe(function(){QWe({autoReplaceSvgRoot:e}),Cm("watch",n)})}},$We={icon:function(n){if(null===n)return null;if("object"===NS(n)&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:c_(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&2===n.length){var e=0===n[1].indexOf("fa-")?n[1].slice(3):n[1],i=YS(n[0]);return{prefix:i,iconName:c_(i,e)||e}}if("string"==typeof n&&(n.indexOf("".concat(go.familyPrefix,"-"))>-1||n.match(fWe))){var r=US(n.split(" "),{skipLookups:!0});return{prefix:r.prefix||c4(),iconName:c_(r.prefix,r.iconName)||r.iconName}}if("string"==typeof n){var o=c4();return{prefix:o,iconName:c_(o,n)||n}}}},nu={noAuto:function(){go.autoReplaceSvg=!1,go.observeMutations=!1,Cm("noAuto")},config:go,dom:XWe,parse:$We,library:gre,findIconDefinition:vz,toHtml:_C},QWe=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.autoReplaceSvgRoot,i=void 0===e?tc:e;(Object.keys(Nh.styles).length>0||go.autoFetchSvg)&&s3&&go.autoReplaceSvg&&nu.dom.i2svg({node:i})};function jS(t,n){return Object.defineProperty(t,"abstract",{get:n}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(i){return _C(i)})}}),Object.defineProperty(t,"node",{get:function(){if(s3){var i=tc.createElement("div");return i.innerHTML=t.html,i.children}}}),t}function Cz(t){var n=t.icons,e=n.main,i=n.mask,r=t.prefix,o=t.iconName,a=t.transform,c=t.symbol,u=t.title,f=t.maskId,w=t.titleId,E=t.extra,B=t.watchable,Z=void 0!==B&&B,ee=i.found?i:e,be=ee.width,_e=ee.height,Pe="fak"===r,Ie=[go.replacementClass,o?"".concat(go.familyPrefix,"-").concat(o):""].filter(function(_t){return-1===E.classes.indexOf(_t)}).filter(function(_t){return""!==_t||!!_t}).concat(E.classes).join(" "),ge={children:[],attributes:yr(yr({},E.attributes),{},{"data-prefix":r,"data-icon":o,class:Ie,role:E.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(be," ").concat(_e)})},Re=Pe&&!~E.classes.indexOf("fa-fw")?{width:"".concat(be/_e*16*.0625,"em")}:{};Z&&(ge.attributes[_m]=""),u&&(ge.children.push({tag:"title",attributes:{id:ge.attributes["aria-labelledby"]||"title-".concat(w||mC())},children:[u]}),delete ge.attributes.title);var Ye=yr(yr({},ge),{},{prefix:r,iconName:o,main:e,mask:i,maskId:f,transform:a,symbol:c,styles:yr(yr({},Re),E.styles)}),Je=i.found&&e.found?u3("generateAbstractMask",Ye)||{children:[],attributes:{}}:u3("generateAbstractIcon",Ye)||{children:[],attributes:{}},ft=Je.attributes;return Ye.children=Je.children,Ye.attributes=ft,c?function ZWe(t){var e=t.iconName,i=t.children,r=t.attributes,o=t.symbol,a=!0===o?"".concat(t.prefix,"-").concat(go.familyPrefix,"-").concat(e):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:yr(yr({},r),{},{id:a}),children:i}]}]}(Ye):function KWe(t){var n=t.children,e=t.main,i=t.mask,r=t.attributes,o=t.styles,a=t.transform;if(lz(a)&&e.found&&!i.found){var f={x:e.width/e.height/2,y:.5};r.style=BS(yr(yr({},o),{},{"transform-origin":"".concat(f.x+a.x/16,"em ").concat(f.y+a.y/16,"em")}))}return[{tag:"svg",attributes:r,children:n}]}(Ye)}function mre(t){var n=t.content,e=t.width,i=t.height,r=t.transform,o=t.title,a=t.extra,c=t.watchable,u=void 0!==c&&c,f=yr(yr(yr({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});u&&(f[_m]="");var w=yr({},a.styles);lz(r)&&(w.transform=function TWe(t){var n=t.transform,e=t.width,r=t.height,o=void 0===r?16:r,a=t.startCentered,c=void 0!==a&&a,u="";return u+=c&&Wie?"translate(".concat(n.x/16-(void 0===e?16:e)/2,"em, ").concat(n.y/16-o/2,"em) "):c?"translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):"translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),(u+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "))+"rotate(".concat(n.rotate,"deg) ")}({transform:r,startCentered:!0,width:e,height:i}),w["-webkit-transform"]=w.transform);var E=BS(w);E.length>0&&(f.style=E);var B=[];return B.push({tag:"span",attributes:f,children:[n]}),o&&B.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),B}function JWe(t){var n=t.content,e=t.title,i=t.extra,r=yr(yr(yr({},i.attributes),e?{title:e}:{}),{},{class:i.classes.join(" ")}),o=BS(i.styles);o.length>0&&(r.style=o);var a=[];return a.push({tag:"span",attributes:r,children:[n]}),e&&a.push({tag:"span",attributes:{class:"sr-only"},children:[e]}),a}var bz=Nh.styles;function xz(t){var n=t[0],e=t[1],o=ez(t.slice(4),1)[0];return{found:!0,width:n,height:e,icon:Array.isArray(o)?{tag:"g",attributes:{class:"".concat(go.familyPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(go.familyPrefix,"-").concat("secondary"),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(go.familyPrefix,"-").concat("primary"),fill:"currentColor",d:o[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:o}}}}var eqe={found:!1,width:512,height:512};function yz(t,n){var e=n;return"fa"===n&&null!==go.styleDefault&&(n=c4()),new Promise(function(i,r){if(u3("missingIconAbstract"),"fa"===e){var a=pre(t)||{};t=a.iconName||t,n=a.prefix||n}if(t&&n&&bz[n]&&bz[n][t])return i(xz(bz[n][t]));(function tqe(t,n){!Qie&&!go.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(n,'" is missing.'))})(t,n),i(yr(yr({},eqe),{},{icon:go.showMissingIcons&&t&&u3("missingIconAbstract")||{}}))})}var _re=function(){},wz=go.measurePerformance&&FS&&FS.mark&&FS.measure?FS:{mark:_re,measure:_re},CC='FA "6.1.1"',Mz_begin=function(n){return wz.mark("".concat(CC," ").concat(n," begins")),function(){return function(n){wz.mark("".concat(CC," ").concat(n," ends")),wz.measure("".concat(CC," ").concat(n),"".concat(CC," ").concat(n," begins"),"".concat(CC," ").concat(n," ends"))}(n)}},WS=function(){};function Cre(t){return"string"==typeof(t.getAttribute?t.getAttribute(_m):null)}function aqe(t){return tc.createElementNS("http://www.w3.org/2000/svg",t)}function sqe(t){return tc.createElement(t)}function bre(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.ceFn,i=void 0===e?"svg"===t.tag?aqe:sqe:e;if("string"==typeof t)return tc.createTextNode(t);var r=i(t.tag);Object.keys(t.attributes||[]).forEach(function(a){r.setAttribute(a,t.attributes[a])});var o=t.children||[];return o.forEach(function(a){r.appendChild(bre(a,{ceFn:i}))}),r}var qS={replace:function(n){var e=n[0];if(e.parentNode)if(n[1].forEach(function(r){e.parentNode.insertBefore(bre(r),e)}),null===e.getAttribute(_m)&&go.keepOriginalSource){var i=tc.createComment(function cqe(t){var n=" ".concat(t.outerHTML," ");return"".concat(n,"Font Awesome fontawesome.com ")}(e));e.parentNode.replaceChild(i,e)}else e.remove()},nest:function(n){var e=n[0],i=n[1];if(~cz(e).indexOf(go.replacementClass))return qS.replace(n);var r=new RegExp("".concat(go.familyPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var o=i[0].attributes.class.split(" ").reduce(function(c,u){return u===go.replacementClass||u.match(r)?c.toSvg.push(u):c.toNode.push(u),c},{toNode:[],toSvg:[]});i[0].attributes.class=o.toSvg.join(" "),0===o.toNode.length?e.removeAttribute("class"):e.setAttribute("class",o.toNode.join(" "))}var a=i.map(function(c){return _C(c)}).join("\n");e.setAttribute(_m,""),e.innerHTML=a}};function xre(t){t()}function yre(t,n){var e="function"==typeof n?n:WS;if(0===t.length)e();else{var i=xre;"async"===go.mutateApproach&&(i=a4.requestAnimationFrame||xre),i(function(){var r=function oqe(){return!0===go.autoReplaceSvg?qS.replace:qS[go.autoReplaceSvg]||qS.replace}(),o=Mz_begin("mutate");t.map(r),o(),e()})}}var Oz=!1;function wre(){Oz=!0}function Sz(){Oz=!1}var XS=null;function Mre(t){if(jie&&go.observeMutations){var n=t.treeCallback,e=void 0===n?WS:n,i=t.nodeCallback,r=void 0===i?WS:i,o=t.pseudoElementsCallback,a=void 0===o?WS:o,c=t.observeMutationsRoot,u=void 0===c?tc:c;XS=new jie(function(f){if(!Oz){var w=c4();s_(f).forEach(function(E){if("childList"===E.type&&E.addedNodes.length>0&&!Cre(E.addedNodes[0])&&(go.searchPseudoElements&&a(E.target),e(E.target)),"attributes"===E.type&&E.target.parentNode&&go.searchPseudoElements&&a(E.target.parentNode),"attributes"===E.type&&Cre(E.target)&&~vWe.indexOf(E.attributeName))if("class"===E.attributeName&&function iqe(t){var n=t.getAttribute?t.getAttribute(oz):null,e=t.getAttribute?t.getAttribute(az):null;return n&&e}(E.target)){var B=US(cz(E.target)),ee=B.iconName;E.target.setAttribute(oz,B.prefix||w),ee&&E.target.setAttribute(az,ee)}else(function rqe(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(go.replacementClass)})(E.target)&&r(E.target)})}}),s3&&XS.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function dqe(t){var n=t.getAttribute("style"),e=[];return n&&(e=n.split(";").reduce(function(i,r){var o=r.split(":"),a=o[0],c=o.slice(1);return a&&c.length>0&&(i[a]=c.join(":").trim()),i},{})),e}function uqe(t){var n=t.getAttribute("data-prefix"),e=t.getAttribute("data-icon"),i=void 0!==t.innerText?t.innerText.trim():"",r=US(cz(t));return r.prefix||(r.prefix=c4()),n&&e&&(r.prefix=n,r.iconName=e),r.iconName&&r.prefix||r.prefix&&i.length>0&&(r.iconName=function GWe(t,n){return(cre[t]||{})[n]}(r.prefix,t.innerText)||gz(r.prefix,hz(t.innerText))),r}function hqe(t){var n=s_(t.attributes).reduce(function(r,o){return"class"!==r.name&&"style"!==r.name&&(r[o.name]=o.value),r},{}),e=t.getAttribute("title"),i=t.getAttribute("data-fa-title-id");return go.autoA11y&&(e?n["aria-labelledby"]="".concat(go.replacementClass,"-title-").concat(i||mC()):(n["aria-hidden"]="true",n.focusable="false")),n}function Ore(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},e=uqe(t),i=e.iconName,r=e.prefix,o=e.rest,a=hqe(t),c=_z("parseNodeAttributes",{},t),u=n.styleParser?dqe(t):[];return yr({iconName:i,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:r,transform:V0,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:u,attributes:a}},c)}var fqe=Nh.styles;function Sre(t){var n="nest"===go.autoReplaceSvg?Ore(t,{styleParser:!1}):Ore(t);return~n.extra.classes.indexOf(Zie)?u3("generateLayersText",t,n):u3("generateSvgReplacementMutation",t,n)}function Pre(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!s3)return Promise.resolve();var e=tc.documentElement.classList,i=function(E){return e.add("".concat($ie,"-").concat(E))},r=function(E){return e.remove("".concat($ie,"-").concat(E))},o=Object.keys(go.autoFetchSvg?sz:fqe),a=[".".concat(Zie,":not([").concat(_m,"])")].concat(o.map(function(w){return".".concat(w,":not([").concat(_m,"])")})).join(", ");if(0===a.length)return Promise.resolve();var c=[];try{c=s_(t.querySelectorAll(a))}catch(w){}if(!(c.length>0))return Promise.resolve();i("pending"),r("complete");var u=Mz_begin("onTree"),f=c.reduce(function(w,E){try{var B=Sre(E);B&&w.push(B)}catch(Z){Qie||"MissingIcon"===Z.name&&console.error(Z)}return w},[]);return new Promise(function(w,E){Promise.all(f).then(function(B){yre(B,function(){i("active"),i("complete"),r("pending"),"function"==typeof n&&n(),u(),w()})}).catch(function(B){u(),E(B)})})}function gqe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Sre(t).then(function(e){e&&yre([e],n)})}var _qe=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.transform,r=void 0===i?V0:i,o=e.symbol,a=void 0!==o&&o,c=e.mask,u=void 0===c?null:c,f=e.maskId,w=void 0===f?null:f,E=e.title,B=void 0===E?null:E,Z=e.titleId,ee=void 0===Z?null:Z,be=e.classes,_e=void 0===be?[]:be,Pe=e.attributes,Ie=void 0===Pe?{}:Pe,ge=e.styles,Re=void 0===ge?{}:ge;if(n){var Ye=n.prefix,Je=n.iconName,gt=n.icon;return jS(yr({type:"icon"},n),function(){return Cm("beforeDOMElementCreation",{iconDefinition:n,params:e}),go.autoA11y&&(B?Ie["aria-labelledby"]="".concat(go.replacementClass,"-title-").concat(ee||mC()):(Ie["aria-hidden"]="true",Ie.focusable="false")),Cz({icons:{main:xz(gt),mask:u?xz(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Ye,iconName:Je,transform:yr(yr({},V0),r),symbol:a,title:B,maskId:w,titleId:ee,extra:{attributes:Ie,styles:Re,classes:_e}})})}},vqe={mixout:function(){return{icon:(t=_qe,function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(n||{}).icon?n:vz(n||{}),r=e.mask;return r&&(r=(r||{}).icon?r:vz(r||{})),t(i,yr(yr({},e),{},{mask:r}))})};var t},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Pre,e.nodeCallback=gqe,e}}},provides:function(n){n.i2svg=function(e){var i=e.node,o=e.callback;return Pre(void 0===i?tc:i,void 0===o?function(){}:o)},n.generateSvgReplacementMutation=function(e,i){var r=i.iconName,o=i.title,a=i.titleId,c=i.prefix,u=i.transform,f=i.symbol,w=i.mask,E=i.maskId,B=i.extra;return new Promise(function(Z,ee){Promise.all([yz(r,c),w.iconName?yz(w.iconName,w.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(be){var _e=ez(be,2);Z([e,Cz({icons:{main:_e[0],mask:_e[1]},prefix:c,iconName:r,transform:u,symbol:f,maskId:E,title:o,titleId:a,extra:B,watchable:!0})])}).catch(ee)})},n.generateAbstractIcon=function(e){var f,i=e.children,r=e.attributes,o=e.main,a=e.transform,u=BS(e.styles);return u.length>0&&(r.style=u),lz(a)&&(f=u3("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),i.push(f||o.icon),{children:i,attributes:r}}}},Cqe={mixout:function(){return{layer:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.classes,o=void 0===r?[]:r;return jS({type:"layer"},function(){Cm("beforeDOMElementCreation",{assembler:e,params:i});var a=[];return e(function(c){Array.isArray(c)?c.map(function(u){a=a.concat(u.abstract)}):a=a.concat(c.abstract)}),[{tag:"span",attributes:{class:["".concat(go.familyPrefix,"-layers")].concat(zS(o)).join(" ")},children:a}]})}}}},bqe={mixout:function(){return{counter:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.title,o=void 0===r?null:r,a=i.classes,c=void 0===a?[]:a,u=i.attributes,f=void 0===u?{}:u,w=i.styles,E=void 0===w?{}:w;return jS({type:"counter",content:e},function(){return Cm("beforeDOMElementCreation",{content:e,params:i}),JWe({content:e.toString(),title:o,extra:{attributes:f,styles:E,classes:["".concat(go.familyPrefix,"-layers-counter")].concat(zS(c))}})})}}}},xqe={mixout:function(){return{text:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.transform,o=void 0===r?V0:r,a=i.title,c=void 0===a?null:a,u=i.classes,f=void 0===u?[]:u,w=i.attributes,E=void 0===w?{}:w,B=i.styles,Z=void 0===B?{}:B;return jS({type:"text",content:e},function(){return Cm("beforeDOMElementCreation",{content:e,params:i}),mre({content:e,transform:yr(yr({},V0),o),title:c,extra:{attributes:E,styles:Z,classes:["".concat(go.familyPrefix,"-layers-text")].concat(zS(f))}})})}}},provides:function(n){n.generateLayersText=function(e,i){var r=i.title,o=i.transform,a=i.extra,c=null,u=null;if(Wie){var f=parseInt(getComputedStyle(e).fontSize,10),w=e.getBoundingClientRect();c=w.width/f,u=w.height/f}return go.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,mre({content:e.innerHTML,width:c,height:u,transform:o,title:r,extra:a,watchable:!0})])}}},yqe=new RegExp('"',"ug"),Ere=[1105920,1112319];function Tre(t,n){var e="".concat("data-fa-pseudo-element-pending").concat(n.replace(":","-"));return new Promise(function(i,r){if(null!==t.getAttribute(e))return i();var a=s_(t.children).filter(function(Je){return Je.getAttribute(rz)===n})[0],c=a4.getComputedStyle(t,n),u=c.getPropertyValue("font-family").match(gWe),f=c.getPropertyValue("font-weight"),w=c.getPropertyValue("content");if(a&&!u)return t.removeChild(a),i();if(u&&"none"!==w&&""!==w){var E=c.getPropertyValue("content"),B=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?HS[u[2].toLowerCase()]:mWe[f],Z=function wqe(t){var n=t.replace(yqe,""),e=function RWe(t,n){var r,e=t.length,i=t.charCodeAt(n);return i>=55296&&i<=56319&&e>n+1&&(r=t.charCodeAt(n+1))>=56320&&r<=57343?1024*(i-55296)+r-56320+65536:i}(n,0),i=e>=Ere[0]&&e<=Ere[1],r=2===n.length&&n[0]===n[1];return{value:hz(r?n[0]:n),isSecondary:i||r}}(E),ee=Z.value,be=Z.isSecondary,_e=u[0].startsWith("FontAwesome"),Pe=gz(B,ee),Ie=Pe;if(_e){var ge=function YWe(t){var n=dre[t],e=gz("fas",t);return n||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}(ee);ge.iconName&&ge.prefix&&(Pe=ge.iconName,B=ge.prefix)}if(!Pe||be||a&&a.getAttribute(oz)===B&&a.getAttribute(az)===Ie)i();else{t.setAttribute(e,Ie),a&&t.removeChild(a);var Re=function pqe(){return{iconName:null,title:null,titleId:null,prefix:null,transform:V0,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Ye=Re.extra;Ye.attributes[rz]=n,yz(Pe,B).then(function(Je){var gt=Cz(yr(yr({},Re),{},{icons:{main:Je,mask:{prefix:null,iconName:null,rest:[]}},prefix:B,iconName:Ie,extra:Ye,watchable:!0})),ft=tc.createElement("svg");"::before"===n?t.insertBefore(ft,t.firstChild):t.appendChild(ft),ft.outerHTML=gt.map(function(_t){return _C(_t)}).join("\n"),t.removeAttribute(e),i()}).catch(r)}}else i()})}function Mqe(t){return Promise.all([Tre(t,"::before"),Tre(t,"::after")])}function Oqe(t){return!(t.parentNode===document.head||~hWe.indexOf(t.tagName.toUpperCase())||t.getAttribute(rz)||t.parentNode&&"svg"===t.parentNode.tagName)}function Are(t){if(s3)return new Promise(function(n,e){var i=s_(t.querySelectorAll("*")).filter(Oqe).map(Mqe),r=Mz_begin("searchPseudoElements");wre(),Promise.all(i).then(function(){r(),Sz(),n()}).catch(function(){r(),Sz(),e()})})}var Sqe={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Are,e}}},provides:function(n){n.pseudoElements2svg=function(e){var i=e.node;go.searchPseudoElements&&Are(void 0===i?tc:i)}}},Dre=!1,Pqe={mixout:function(){return{dom:{unwatch:function(){wre(),Dre=!0}}}},hooks:function(){return{bootstrap:function(){Mre(_z("mutationObserverCallbacks",{}))},noAuto:function(){!function lqe(){!XS||XS.disconnect()}()},watch:function(e){var i=e.observeMutationsRoot;Dre?Sz():Mre(_z("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},Lre=function(n){return n.toLowerCase().split(" ").reduce(function(i,r){var o=r.toLowerCase().split("-"),a=o[0],c=o.slice(1).join("-");if(a&&"h"===c)return i.flipX=!0,i;if(a&&"v"===c)return i.flipY=!0,i;if(c=parseFloat(c),isNaN(c))return i;switch(a){case"grow":i.size=i.size+c;break;case"shrink":i.size=i.size-c;break;case"left":i.x=i.x-c;break;case"right":i.x=i.x+c;break;case"up":i.y=i.y-c;break;case"down":i.y=i.y+c;break;case"rotate":i.rotate=i.rotate+c}return i},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Eqe={mixout:function(){return{parse:{transform:function(e){return Lre(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,i){var r=i.getAttribute("data-fa-transform");return r&&(e.transform=Lre(r)),e}}},provides:function(n){n.generateAbstractTransformGrouping=function(e){var i=e.main,r=e.transform,a=e.iconWidth,c={transform:"translate(".concat(e.containerWidth/2," 256)")},u="translate(".concat(32*r.x,", ").concat(32*r.y,") "),f="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),w="rotate(".concat(r.rotate," 0 0)"),Z={outer:c,inner:{transform:"".concat(u," ").concat(f," ").concat(w)},path:{transform:"translate(".concat(a/2*-1," -256)")}};return{tag:"g",attributes:yr({},Z.outer),children:[{tag:"g",attributes:yr({},Z.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:yr(yr({},i.icon.attributes),Z.path)}]}]}}}},Pz={x:0,y:0,width:"100%",height:"100%"};function kre(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||n)&&(t.attributes.fill="black"),t}var Aqe={hooks:function(){return{parseNodeAttributes:function(e,i){var r=i.getAttribute("data-fa-mask"),o=r?US(r.split(" ").map(function(a){return a.trim()})):{prefix:null,iconName:null,rest:[]};return o.prefix||(o.prefix=c4()),e.mask=o,e.maskId=i.getAttribute("data-fa-mask-id"),e}}},provides:function(n){n.generateAbstractMask=function(e){var t,i=e.children,r=e.attributes,o=e.main,a=e.mask,c=e.maskId,w=o.icon,B=a.icon,Z=function EWe(t){var n=t.transform,i=t.iconWidth,r={transform:"translate(".concat(t.containerWidth/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),a="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),c="rotate(".concat(n.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(o," ").concat(a," ").concat(c)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:e.transform,containerWidth:a.width,iconWidth:o.width}),ee={tag:"rect",attributes:yr(yr({},Pz),{},{fill:"white"})},be=w.children?{children:w.children.map(kre)}:{},_e={tag:"g",attributes:yr({},Z.inner),children:[kre(yr({tag:w.tag,attributes:yr(yr({},w.attributes),Z.path)},be))]},Pe={tag:"g",attributes:yr({},Z.outer),children:[_e]},Ie="mask-".concat(c||mC()),ge="clip-".concat(c||mC()),Re={tag:"mask",attributes:yr(yr({},Pz),{},{id:Ie,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[ee,Pe]},Ye={tag:"defs",children:[{tag:"clipPath",attributes:{id:ge},children:(t=B,"g"===t.tag?t.children:[t])},Re]};return i.push(Ye,{tag:"rect",attributes:yr({fill:"currentColor","clip-path":"url(#".concat(ge,")"),mask:"url(#".concat(Ie,")")},Pz)}),{children:i,attributes:r}}}},Dqe={provides:function(n){var e=!1;a4.matchMedia&&(e=a4.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){var i=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:yr(yr({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=yr(yr({},o),{},{attributeName:"opacity"}),c={tag:"circle",attributes:yr(yr({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||c.children.push({tag:"animate",attributes:yr(yr({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:yr(yr({},a),{},{values:"1;0;1;1;0;1;"})}),i.push(c),i.push({tag:"path",attributes:yr(yr({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:yr(yr({},a),{},{values:"1;0;0;0;0;1;"})}]}),e||i.push({tag:"path",attributes:yr(yr({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:yr(yr({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},kqe=[DWe,vqe,Cqe,bqe,xqe,Sqe,Pqe,Eqe,Aqe,Dqe,{hooks:function(){return{parseNodeAttributes:function(e,i){var r=i.getAttribute("data-fa-symbol");return e.symbol=null!==r&&(""===r||r),e}}}}];!function WWe(t,n){var e=n.mixoutsTo;fre=t,l_={},Object.keys(d_).forEach(function(i){-1===jWe.indexOf(i)&&delete d_[i]}),fre.forEach(function(i){var r=i.mixout?i.mixout():{};if(Object.keys(r).forEach(function(a){"function"==typeof r[a]&&(e[a]=r[a]),"object"===NS(r[a])&&Object.keys(r[a]).forEach(function(c){e[a]||(e[a]={}),e[a][c]=r[a][c]})}),i.hooks){var o=i.hooks();Object.keys(o).forEach(function(a){l_[a]||(l_[a]=[]),l_[a].push(o[a])})}i.provides&&i.provides(d_)})}(kqe,{mixoutsTo:nu});var Iqe=nu.parse,Nqe=nu.icon;const Rqe=["*"],Hqe=t=>{const n={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,[`fa-${t.size}`]:null!==t.size,[`fa-rotate-${t.rotate}`]:null!==t.rotate,[`fa-pull-${t.pull}`]:null!==t.pull,[`fa-stack-${t.stackItemSize}`]:null!=t.stackItemSize};return Object.keys(n).map(e=>n[e]?e:null).filter(e=>e)};let Gqe=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ire=(()=>{class t{constructor(){this.definitions={}}addIcons(...e){for(const i of e){i.prefix in this.definitions||(this.definitions[i.prefix]={}),this.definitions[i.prefix][i.iconName]=i;for(const r of i.icon[2])"string"==typeof r&&(this.definitions[i.prefix][r]=i)}}addIconPacks(...e){for(const i of e){const r=Object.keys(i).map(o=>i[o]);this.addIcons(...r)}}getIconDefinition(e,i){return e in this.definitions&&i in this.definitions[e]?this.definitions[e][i]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Yqe=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(e){if("size"in e)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=nn({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[$r]}),t})(),Uqe=(()=>{class t{constructor(e,i){this.renderer=e,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(e){"size"in e&&(null!=e.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${e.size.currentValue}`),null!=e.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${e.size.previousValue}`))}}return t.\u0275fac=function(e){return new(e||t)(de(Uc),de(gi))},t.\u0275cmp=En({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[$r],ngContentSelectors:Rqe,decls:1,vars:0,template:function(e,i){1&e&&(Ua(),yo(0))},encapsulation:2}),t})(),ks=(()=>{class t{constructor(e,i,r,o,a){this.sanitizer=e,this.config=i,this.iconLibrary=r,this.stackItem=o,this.classes=[],null!=a&&null==o&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(e){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let i=null;if(i=null==this.icon?this.config.fallbackIcon:this.icon,e){const r=this.findIconDefinition(i);if(null!=r){const o=this.buildParams();this.renderIcon(r,o)}}}render(){this.ngOnChanges({})}findIconDefinition(e){const i=((t,n)=>(t=>void 0!==t.prefix&&void 0!==t.iconName)(t)?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:n,iconName:t}:void 0)(e,this.config.defaultPrefix);if("icon"in i)return i;const r=this.iconLibrary.getIconDefinition(i.prefix,i.iconName);return null!=r?r:((t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(i),null)}buildParams(){const e={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},i="string"==typeof this.transform?Iqe.transform(this.transform):this.transform;return{title:this.title,transform:i,classes:[...Hqe(e),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(e,i){const r=Nqe(e,i);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(r.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(de(U9),de(Gqe),de(Ire),de(Yqe,8),de(Uqe,8))},t.\u0275cmp=En({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(e,i){2&e&&(yu("innerHTML",i.renderedIconHTML,D7),Ti("title",i.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[$r],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Nre=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})();v(71345),new jn("SMOOTH_SCROLL_OPTIONS");let jqe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})();const Xqe=new jn("NG_SCROLLBAR_OPTIONS");let Rre=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Xqe,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,Vf,Wf,ZTe,jqe]]}),t})();function B0(t){return getComputedStyle(t)}function Sd(t,n){for(var e in n){var i=n[e];"number"==typeof i&&(i+="px"),t.style[e]=i}return t}function $S(t){var n=document.createElement("div");return n.className=t,n}var zre="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function l4(t,n){if(!zre)throw new Error("No element matching method supported");return zre.call(t,n)}function u_(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function Fre(t,n){return Array.prototype.filter.call(t.children,function(e){return l4(e,n)})}var cl_element_thumb=function(t){return"ps__thumb-"+t},cl_element_rail=function(t){return"ps__rail-"+t},cl_element_consuming="ps__child--consume",cl_state_focus="ps--focus",cl_state_clicking="ps--clicking",cl_state_active=function(t){return"ps--active-"+t},cl_state_scrolling=function(t){return"ps--scrolling-"+t},Hre={x:null,y:null};function Vre(t,n){var e=t.element.classList,i=cl_state_scrolling(n);e.contains(i)?clearTimeout(Hre[n]):e.add(i)}function Bre(t,n){Hre[n]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(cl_state_scrolling(n))},t.settings.scrollingThreshold)}var bC=function(n){this.element=n,this.handlers={}},Gre={isEmpty:{configurable:!0}};bC.prototype.bind=function(n,e){void 0===this.handlers[n]&&(this.handlers[n]=[]),this.handlers[n].push(e),this.element.addEventListener(n,e,!1)},bC.prototype.unbind=function(n,e){var i=this;this.handlers[n]=this.handlers[n].filter(function(r){return!(!e||r===e)||(i.element.removeEventListener(n,r,!1),!1)})},bC.prototype.unbindAll=function(){for(var n in this.handlers)this.unbind(n)},Gre.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(n){return 0===t.handlers[n].length})},Object.defineProperties(bC.prototype,Gre);var h_=function(){this.eventElements=[]};function QS(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,void 0),n}function KS(t,n,e,i,r){var o;if(void 0===i&&(i=!0),void 0===r&&(r=!1),"top"===n)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==n)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function Qqe(t,n,e,i,r){var o=e[0],a=e[1],c=e[2],u=e[3],f=e[4],w=e[5];void 0===i&&(i=!0),void 0===r&&(r=!1);var E=t.element;t.reach[u]=null,E[c]<1&&(t.reach[u]="start"),E[c]>t[o]-t[a]-1&&(t.reach[u]="end"),n&&(E.dispatchEvent(QS("ps-scroll-"+u)),n<0?E.dispatchEvent(QS("ps-scroll-"+f)):n>0&&E.dispatchEvent(QS("ps-scroll-"+w)),i&&function $qe(t,n){Vre(t,n),Bre(t,n)}(t,u)),t.reach[u]&&(n||r)&&E.dispatchEvent(QS("ps-"+u+"-reach-"+t.reach[u]))}(t,e,o,i,r)}function Ec(t){return parseInt(t,10)||0}h_.prototype.eventElement=function(n){var e=this.eventElements.filter(function(i){return i.element===n})[0];return e||(e=new bC(n),this.eventElements.push(e)),e},h_.prototype.bind=function(n,e,i){this.eventElement(n).bind(e,i)},h_.prototype.unbind=function(n,e,i){var r=this.eventElement(n);r.unbind(e,i),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},h_.prototype.unbindAll=function(){this.eventElements.forEach(function(n){return n.unbindAll()}),this.eventElements=[]},h_.prototype.once=function(n,e,i){var r=this.eventElement(n),o=function(a){r.unbind(e,o),i(a)};r.bind(e,o)};var p_={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function h3(t){var n=t.element,e=Math.floor(n.scrollTop),i=n.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=n.scrollWidth,t.contentHeight=n.scrollHeight,n.contains(t.scrollbarXRail)||(Fre(n,cl_element_rail("x")).forEach(function(r){return u_(r)}),n.appendChild(t.scrollbarXRail)),n.contains(t.scrollbarYRail)||(Fre(n,cl_element_rail("y")).forEach(function(r){return u_(r)}),n.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function Jqe(t,n){var e={width:n.railXWidth},i=Math.floor(t.scrollTop);e.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+n.containerWidth-n.contentWidth:t.scrollLeft,n.isScrollbarXUsingBottom?e.bottom=n.scrollbarXBottom-i:e.top=n.scrollbarXTop+i,Sd(n.scrollbarXRail,e);var r={top:i,height:n.railYHeight};n.isScrollbarYUsingRight?r.right=n.isRtl?n.contentWidth-(n.negativeScrollAdjustment+t.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth-9:n.scrollbarYRight-t.scrollLeft:r.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:n.scrollbarYLeft+t.scrollLeft,Sd(n.scrollbarYRail,r),Sd(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),Sd(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth})}(n,t),t.scrollbarXActive?n.classList.add(cl_state_active("x")):(n.classList.remove(cl_state_active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,n.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?n.classList.add(cl_state_active("y")):(n.classList.remove(cl_state_active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,n.scrollTop=0)}function Yre(t,n){return t.settings.minScrollbarLength&&(n=Math.max(n,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(n=Math.min(n,t.settings.maxScrollbarLength)),n}function Ure(t,n){var e=n[0],i=n[1],r=n[2],o=n[3],a=n[4],c=n[5],u=n[6],f=n[7],w=n[8],E=t.element,B=null,Z=null,ee=null;function be(Ie){Ie.touches&&Ie.touches[0]&&(Ie[r]=Ie.touches[0].pageY),E[u]=B+ee*(Ie[r]-Z),Vre(t,f),h3(t),Ie.stopPropagation(),Ie.preventDefault()}function _e(){Bre(t,f),t[w].classList.remove(cl_state_clicking),t.event.unbind(t.ownerDocument,"mousemove",be)}function Pe(Ie,ge){B=E[u],ge&&Ie.touches&&(Ie[r]=Ie.touches[0].pageY),Z=Ie[r],ee=(t[i]-t[e])/(t[o]-t[c]),ge?t.event.bind(t.ownerDocument,"touchmove",be):(t.event.bind(t.ownerDocument,"mousemove",be),t.event.once(t.ownerDocument,"mouseup",_e),Ie.preventDefault()),t[w].classList.add(cl_state_clicking),Ie.stopPropagation()}t.event.bind(t[a],"mousedown",function(Ie){Pe(Ie)}),t.event.bind(t[a],"touchstart",function(Ie){Pe(Ie,!0)})}var aXe={"click-rail":function eXe(t){t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,h3(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,h3(t),e.stopPropagation()})},"drag-thumb":function tXe(t){Ure(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Ure(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function nXe(t){var n=t.element;t.event.bind(t.ownerDocument,"keydown",function(o){if(!(o.isDefaultPrevented&&o.isDefaultPrevented()||o.defaultPrevented)&&(l4(n,":hover")||l4(t.scrollbarX,":focus")||l4(t.scrollbarY,":focus"))){var a=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(a){if("IFRAME"===a.tagName)a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(function Kqe(t){return l4(t,"input,[contenteditable]")||l4(t,"select,[contenteditable]")||l4(t,"textarea,[contenteditable]")||l4(t,"button,[contenteditable]")}(a))return}var c=0,u=0;switch(o.which){case 37:c=o.metaKey?-t.contentWidth:o.altKey?-t.containerWidth:-30;break;case 38:u=o.metaKey?t.contentHeight:o.altKey?t.containerHeight:30;break;case 39:c=o.metaKey?t.contentWidth:o.altKey?t.containerWidth:30;break;case 40:u=o.metaKey?-t.contentHeight:o.altKey?-t.containerHeight:-30;break;case 32:u=o.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:u=t.containerHeight;break;case 34:u=-t.containerHeight;break;case 36:u=t.contentHeight;break;case 35:u=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==c||t.settings.suppressScrollY&&0!==u||(n.scrollTop-=u,n.scrollLeft+=c,h3(t),function r(o,a){var c=Math.floor(n.scrollTop);if(0===o){if(!t.scrollbarYActive)return!1;if(0===c&&a>0||c>=t.contentHeight-t.containerHeight&&a<0)return!t.settings.wheelPropagation}var u=n.scrollLeft;if(0===a){if(!t.scrollbarXActive)return!1;if(0===u&&o<0||u>=t.contentWidth-t.containerWidth&&o>0)return!t.settings.wheelPropagation}return!0}(c,u)&&o.preventDefault())}})},wheel:function iXe(t){var n=t.element;function o(a){var c=function i(a){var c=a.deltaX,u=-1*a.deltaY;return(void 0===c||void 0===u)&&(c=-1*a.wheelDeltaX/6,u=a.wheelDeltaY/6),a.deltaMode&&1===a.deltaMode&&(c*=10,u*=10),c!=c&&u!=u&&(c=0,u=a.wheelDelta),a.shiftKey?[-u,-c]:[c,u]}(a),u=c[0],f=c[1];if(!function r(a,c,u){if(!p_.isWebKit&&n.querySelector("select:focus"))return!0;if(!n.contains(a))return!1;for(var f=a;f&&f!==n;){if(f.classList.contains(cl_element_consuming))return!0;var w=B0(f);if(u&&w.overflowY.match(/(scroll|auto)/)){var E=f.scrollHeight-f.clientHeight;if(E>0&&(f.scrollTop>0&&u<0||f.scrollTop0))return!0}if(c&&w.overflowX.match(/(scroll|auto)/)){var B=f.scrollWidth-f.clientWidth;if(B>0&&(f.scrollLeft>0&&c<0||f.scrollLeft0))return!0}f=f.parentNode}return!1}(a.target,u,f)){var w=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(f?n.scrollTop-=f*t.settings.wheelSpeed:n.scrollTop+=u*t.settings.wheelSpeed,w=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(u?n.scrollLeft+=u*t.settings.wheelSpeed:n.scrollLeft-=f*t.settings.wheelSpeed,w=!0):(n.scrollTop-=f*t.settings.wheelSpeed,n.scrollLeft+=u*t.settings.wheelSpeed),h3(t),w=w||function e(a,c){var u=Math.floor(n.scrollTop),f=0===n.scrollTop,w=u+n.offsetHeight===n.scrollHeight,E=0===n.scrollLeft,B=n.scrollLeft+n.offsetWidth===n.scrollWidth;return!(Math.abs(c)>Math.abs(a)?f||w:E||B)||!t.settings.wheelPropagation}(u,f),w&&!a.ctrlKey&&(a.stopPropagation(),a.preventDefault())}}void 0!==window.onwheel?t.event.bind(n,"wheel",o):void 0!==window.onmousewheel&&t.event.bind(n,"mousewheel",o)},touch:function rXe(t){if(p_.supportsTouch||p_.supportsIePointer){var n=t.element,r={},o=0,a={},c=null;p_.supportsTouch?(t.event.bind(n,"touchstart",w),t.event.bind(n,"touchmove",B),t.event.bind(n,"touchend",Z)):p_.supportsIePointer&&(window.PointerEvent?(t.event.bind(n,"pointerdown",w),t.event.bind(n,"pointermove",B),t.event.bind(n,"pointerup",Z)):window.MSPointerEvent&&(t.event.bind(n,"MSPointerDown",w),t.event.bind(n,"MSPointerMove",B),t.event.bind(n,"MSPointerUp",Z)))}function i(ee,be){n.scrollTop-=be,n.scrollLeft-=ee,h3(t)}function u(ee){return ee.targetTouches?ee.targetTouches[0]:ee}function f(ee){return!(ee.pointerType&&"pen"===ee.pointerType&&0===ee.buttons||!(ee.targetTouches&&1===ee.targetTouches.length||ee.pointerType&&"mouse"!==ee.pointerType&&ee.pointerType!==ee.MSPOINTER_TYPE_MOUSE))}function w(ee){if(f(ee)){var be=u(ee);r.pageX=be.pageX,r.pageY=be.pageY,o=(new Date).getTime(),null!==c&&clearInterval(c)}}function B(ee){if(f(ee)){var be=u(ee),_e={pageX:be.pageX,pageY:be.pageY},Pe=_e.pageX-r.pageX,Ie=_e.pageY-r.pageY;if(function E(ee,be,_e){if(!n.contains(ee))return!1;for(var Pe=ee;Pe&&Pe!==n;){if(Pe.classList.contains(cl_element_consuming))return!0;var Ie=B0(Pe);if(_e&&Ie.overflowY.match(/(scroll|auto)/)){var ge=Pe.scrollHeight-Pe.clientHeight;if(ge>0&&(Pe.scrollTop>0&&_e<0||Pe.scrollTop0))return!0}if(be&&Ie.overflowX.match(/(scroll|auto)/)){var Re=Pe.scrollWidth-Pe.clientWidth;if(Re>0&&(Pe.scrollLeft>0&&be<0||Pe.scrollLeft0))return!0}Pe=Pe.parentNode}return!1}(ee.target,Pe,Ie))return;i(Pe,Ie),r=_e;var ge=(new Date).getTime(),Re=ge-o;Re>0&&(a.x=Pe/Re,a.y=Ie/Re,o=ge),function e(ee,be){var _e=Math.floor(n.scrollTop),Pe=n.scrollLeft,Ie=Math.abs(ee),ge=Math.abs(be);if(ge>Ie){if(be<0&&_e===t.contentHeight-t.containerHeight||be>0&&0===_e)return 0===window.scrollY&&be>0&&p_.isChrome}else if(Ie>ge&&(ee<0&&Pe===t.contentWidth-t.containerWidth||ee>0&&0===Pe))return!0;return!0}(Pe,Ie)&&ee.preventDefault()}}function Z(){t.settings.swipeEasing&&(clearInterval(c),c=setInterval(function(){t.isInitialized?clearInterval(c):a.x||a.y?Math.abs(a.x)<.01&&Math.abs(a.y)<.01?clearInterval(c):(i(30*a.x,30*a.y),a.x*=.8,a.y*=.8):clearInterval(c)},10))}}},xC=function(n,e){var i=this;if(void 0===e&&(e={}),"string"==typeof n&&(n=document.querySelector(n)),!n||!n.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var r in this.element=n,n.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[r]=e[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var w,f,o=function(){return n.classList.add(cl_state_focus)},a=function(){return n.classList.remove(cl_state_focus)};this.isRtl="rtl"===B0(n).direction,!0===this.isRtl&&n.classList.add("ps__rtl"),this.isNegativeScroll=(f=n.scrollLeft,n.scrollLeft=-1,w=n.scrollLeft<0,n.scrollLeft=f,w),this.negativeScrollAdjustment=this.isNegativeScroll?n.scrollWidth-n.clientWidth:0,this.event=new h_,this.ownerDocument=n.ownerDocument||document,this.scrollbarXRail=$S(cl_element_rail("x")),n.appendChild(this.scrollbarXRail),this.scrollbarX=$S(cl_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=B0(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Ec(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Ec(c.borderLeftWidth)+Ec(c.borderRightWidth),Sd(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Ec(c.marginLeft)+Ec(c.marginRight),Sd(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=$S(cl_element_rail("y")),n.appendChild(this.scrollbarYRail),this.scrollbarY=$S(cl_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=B0(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Ec(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function Zqe(t){var n=B0(t);return Ec(n.width)+Ec(n.paddingLeft)+Ec(n.paddingRight)+Ec(n.borderLeftWidth)+Ec(n.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Ec(u.borderTopWidth)+Ec(u.borderBottomWidth),Sd(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Ec(u.marginTop)+Ec(u.marginBottom),Sd(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:n.scrollLeft<=0?"start":n.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:n.scrollTop<=0?"start":n.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(f){return aXe[f](i)}),this.lastScrollTop=Math.floor(n.scrollTop),this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,"scroll",function(f){return i.onScroll(f)}),h3(this)};xC.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Sd(this.scrollbarXRail,{display:"block"}),Sd(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Ec(B0(this.scrollbarXRail).marginLeft)+Ec(B0(this.scrollbarXRail).marginRight),this.railYMarginHeight=Ec(B0(this.scrollbarYRail).marginTop)+Ec(B0(this.scrollbarYRail).marginBottom),Sd(this.scrollbarXRail,{display:"none"}),Sd(this.scrollbarYRail,{display:"none"}),h3(this),KS(this,"top",0,!1,!0),KS(this,"left",0,!1,!0),Sd(this.scrollbarXRail,{display:""}),Sd(this.scrollbarYRail,{display:""}))},xC.prototype.onScroll=function(n){!this.isAlive||(h3(this),KS(this,"top",this.element.scrollTop-this.lastScrollTop),KS(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},xC.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),u_(this.scrollbarX),u_(this.scrollbarY),u_(this.scrollbarXRail),u_(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},xC.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(n){return!n.match(/^ps([-_].+|)$/)}).join(" ")};const sXe=xC;var jre=function(){if("undefined"!=typeof Map)return Map;function t(n,e){var i=-1;return n.some(function(r,o){return r[0]===e&&(i=o,!0)}),i}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(e){var i=t(this.__entries__,e),r=this.__entries__[i];return r&&r[1]},n.prototype.set=function(e,i){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=i:this.__entries__.push([e,i])},n.prototype.delete=function(e){var i=this.__entries__,r=t(i,e);~r&&i.splice(r,1)},n.prototype.has=function(e){return!!~t(this.__entries__,e)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(e,i){void 0===i&&(i=null);for(var r=0,o=this.__entries__;r0},t.prototype.connect_=function(){!Ez||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),pXe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!Ez||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(n){var e=n.propertyName,i=void 0===e?"":e;hXe.some(function(o){return!!~i.indexOf(o)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Wre=function(t,n){for(var e=0,i=Object.keys(n);e0},t}(),$re="undefined"!=typeof WeakMap?new WeakMap:new jre,Qre=function t(n){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=fXe.getInstance(),i=new MXe(n,e,this);$re.set(this,i)};["observe","unobserve","disconnect"].forEach(function(t){Qre.prototype[t]=function(){var n;return(n=$re.get(this))[t].apply(n,arguments)}});const SXe=void 0!==ZS.ResizeObserver?ZS.ResizeObserver:Qre,TXe=new jn("PERFECT_SCROLLBAR_CONFIG");class AXe{constructor(n,e,i,r){this.x=n,this.y=e,this.w=i,this.h=r}}class Kre{constructor(n,e){this.x=n,this.y=e}}const Zre=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class DXe{constructor(n={}){this.assign(n)}assign(n={}){for(const e in n)this[e]=n[e]}}let d4=(()=>{class t{constructor(e,i,r,o,a){this.zone=e,this.differs=i,this.elementRef=r,this.platformId=o,this.defaults=a,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new z,this.disabled=!1,this.psScrollY=new Bn,this.psScrollX=new Bn,this.psScrollUp=new Bn,this.psScrollDown=new Bn,this.psScrollLeft=new Bn,this.psScrollRight=new Bn,this.psYReachEnd=new Bn,this.psYReachStart=new Bn,this.psXReachEnd=new Bn,this.psXReachStart=new Bn}ngOnInit(){if(!this.disabled&&Dl(this.platformId)){const e=new DXe(this.defaults);e.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new sXe(this.elementRef.nativeElement,e)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new SXe(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{Zre.forEach(i=>{const r=i.replace(/([A-Z])/g,o=>`-${o.toLowerCase()}`);Rc(this.elementRef.nativeElement,r).pipe(KI(20),Ln(this.ngDestroy)).subscribe(o=>{this[i].emit(o)})})})}}ngOnDestroy(){Dl(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&Dl(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(e){e.disabled&&!e.disabled.isFirstChange()&&Dl(this.platformId)&&e.disabled.currentValue!==e.disabled.previousValue&&(!0===e.disabled.currentValue?this.ngOnDestroy():!1===e.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(e){}},0))}geometry(e="scroll"){return new AXe(this.elementRef.nativeElement[e+"Left"],this.elementRef.nativeElement[e+"Top"],this.elementRef.nativeElement[e+"Width"],this.elementRef.nativeElement[e+"Height"])}position(e=!1){return!e&&this.instance?new Kre(this.instance.reach.x||0,this.instance.reach.y||0):new Kre(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(e="any"){const i=this.elementRef.nativeElement;return"any"===e?i.classList.contains("ps--active-x")||i.classList.contains("ps--active-y"):"both"===e?i.classList.contains("ps--active-x")&&i.classList.contains("ps--active-y"):i.classList.contains("ps--active-"+e)}scrollTo(e,i,r){this.disabled||(null==i&&null==r?this.animateScrolling("scrollTop",e,r):(null!=e&&this.animateScrolling("scrollLeft",e,r),null!=i&&this.animateScrolling("scrollTop",i,r)))}scrollToX(e,i){this.animateScrolling("scrollLeft",e,i)}scrollToY(e,i){this.animateScrolling("scrollTop",e,i)}scrollToTop(e,i){this.animateScrolling("scrollTop",e||0,i)}scrollToLeft(e,i){this.animateScrolling("scrollLeft",e||0,i)}scrollToRight(e,i){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(e||0),i)}scrollToBottom(e,i){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(e||0),i)}scrollToElement(e,i,r){if("string"==typeof e&&(e=this.elementRef.nativeElement.querySelector(e)),e){const o=e.getBoundingClientRect(),a=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",o.left-a.left+this.elementRef.nativeElement.scrollLeft+(i||0),r),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",o.top-a.top+this.elementRef.nativeElement.scrollTop+(i||0),r)}}animateScrolling(e,i,r){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),r&&"undefined"!=typeof window){if(i!==this.elementRef.nativeElement[e]){let o=0,a=0,c=performance.now(),u=this.elementRef.nativeElement[e];const f=(u-i)/2,w=E=>{a+=Math.PI/(r/(E-c)),o=Math.round(i+f+f*Math.cos(a)),this.elementRef.nativeElement[e]===u&&(a>=Math.PI?this.animateScrolling(e,i,0):(this.elementRef.nativeElement[e]=o,u=this.elementRef.nativeElement[e],c=E,this.animation=window.requestAnimationFrame(w)))};window.requestAnimationFrame(w)}}else this.elementRef.nativeElement[e]=i}}return t.\u0275fac=function(e){return new(e||t)(de(ji),de(kf),de(gi),de(Tl),de(TXe,8))},t.\u0275dir=nn({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[$r]}),t})(),tP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta],ta]}),t})(),A1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,Qf,Lte,Zp,uS,Zte,Jte,_ne,Rre,tP,Nie,Nre],ta,Lte,Qf,Zp,uS,Zte,Jte,_ne,Rre,tP,Nie,Nre]}),t})();const LXe={customScrollbars:!0,routerAnimation:"fadeIn"};class Rh{static cleanID(n){return n&&n.replace(/\W/g,"_")}static generateGUID(){function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return n()+n()}static pad(n,e){let i=0,r="";for(;i++{return(t=G0||(G0={})).ACTIVITY_NODE="activity_node",t.EVIDENCE="evidence",t.ENTITY="entity",t.ARTICLE="article",t.CONTRIBUTOR="contributor",G0;var t})();class _i{constructor(n,e,i,r,o){this.id=n,this.label=e,this.url=i,this.modelId=o,this.entityType=G0.ENTITY,this.termHistory=[],this.weight=1,this._uuid=null,this.uuid=r}static createEntity(n){return new _i(null==n?void 0:n.id,null==n?void 0:n.label)}get uuid(){return this._uuid}set uuid(n){n&&(this._uuid=n),this.displayId="noc-node-"+Rh.cleanID(n)}hasValue(){return null!=this.id&&this.id.length>0}}function HXe(t,n){return t.weight{return(t=ll||(ll={})).general="general",t.cardinality="cardinality",t.relation="relation",ll;var t})(),dl=(()=>{return(t=dl||(dl={})).warning="warning",t.error="error",dl;var t})();class q2{constructor(n,e,i,r){this.category=n,this.type=e,this.message=i,this.meta=r}}class yC{constructor(n,e){this.results=[],this.category=n,this.requestParams=e}}class bm{constructor(n,e,i){this.uuid=n,this.oldValue=e,this.newValue=i}}class VXe{constructor(){this.categoryType="isa_closure"}}var vn=(()=>{return(t=vn||(vn={})).GoCellularComponent="GoCellularComponent",t.GoBiologicalProcess="GoBiologicalProcess",t.GoMolecularFunction="GoMolecularFunction",t.GoMolecularEntity="GoMolecularEntity",t.GoCellularAnatomical="GoCellularAnatomical",t.GoProteinContainingComplex="GoProteinContainingComplex",t.GoBiologicalPhase="GoBiologicalPhase",t.GoChemicalEntity="GoChemicalEntity",t.GoCellTypeEntity="GoCellTypeEntity",t.GoAnatomicalEntity="GoAnatomicalEntity",t.GoOrganism="GoOrganism",t.WormLifeStage="WormLifeStage",t.GoChemicalEntityHasInput="GoChemicalEntityHasInput",t.GoChemicalEntityHasOutput="GoChemicalEntityHasOutput",t.GoEvidence="GoEvidence",t.BPPhaseStageExistenceOverlaps="BPPhaseStageExistenceOverlaps",t.BPPhaseStageExistenceStartsEnds="BPPhaseStageExistenceStartsEnds",t.UberonStage="UberonStage",vn;var t})();class nP{constructor(n){this.entityType=G0.ACTIVITY_NODE,this.rootTypes=[],this.term=new _i("",""),this.termLookup=new yC,this.isExtension=!1,this.nodeGroup={},this.ontologyClass=[],this.isComplement=!1,this.closures=[],this.assignedBy=null,this.contributor=null,this.isCatalyticActivity=!1,this.isKey=!1,this.treeLevel=1,this.required=!1,this.termRequired=!1,this.visible=!0,this.skipEvidenceCheck=!1,this.showEvidence=!0,this.errors=[],this.warnings=[],this.status="0",this.relationEditable=!1,this.showInMenu=!1,this.insertMenuNodes=[],this.linkedNode=!1,this.familyNodes=[],this.expandable=!0,this.expanded=!1,this.causalNode=!1,this.canDelete=!0,n&&this.overrideValues(n)}getTerm(){return this.term}get id(){return this._id}set id(n){this._id=n,this.displayId=Rh.cleanID(n)}get classExpression(){return this.term.classExpression}set classExpression(n){this.term.classExpression=n}setTermOntologyClass(n){this.ontologyClass=n}toggleIsComplement(){const n=this;n.isComplement=!n.isComplement,n.nodeGroup.isComplement=n.isComplement}setIsComplement(n){this.isComplement=n}hasValue(){return this.term.hasValue()}hasRootType(n){return!!(0,Nt.find)(this.rootTypes,i=>i.id===n.category)}hasRootTypes(n){let e=!1;for(let i=0;i0&&(e=!1),e}reviewTermChanges(n,e){const i=this;let r=!1;return i.term.modified&&(i.id===vn.GoMolecularEntity?(e.gpsCount++,n.gpsCount++):(e.termsCount++,n.termsCount++),r=!0),(0,Nt.each)(i.predicate.evidence,(o,a)=>{const c=o.reviewEvidenceChanges(n,e);r=r||c}),e.updateTotal(),r}checkStored(n){const e=this;n&&e.term.id!==n.term.id&&(e.term.termHistory.unshift(new _i(n.term.id,n.term.label)),e.term.modified=!0),(0,Nt.each)(e.predicate.evidence,(i,r)=>{const o=null==n?void 0:n.predicate.getEvidenceById(i.uuid);i.checkStored(o)})}addPendingChanges(n){const e=this;e.term.id!==n.term.id&&(e.pendingEntityChanges=new bm(e.uuid,n.term,e.term)),e.predicate.edge.id!==n.predicate.edge.id&&(e.pendingRelationChanges=new bm(e.uuid,n.predicate.edge,e.predicate.edge)),(0,Nt.each)(e.predicate.evidence,(i,r)=>{const o=n.predicate.getEvidenceById(i.uuid);i.addPendingChanges(o)})}enableSubmit(n,e=!0){const i=this;let r=!0;if(i.termRequired&&!i.term.id){i.required=!0;const a=new q2(dl.error,ll.general,`"${i.label}" is required`,{aspect:i.label});n.push(a),r=!1}else i.required=!1;return!i.skipEvidenceCheck&&i.hasValue()&&e&&(0,Nt.each)(i.predicate.evidence,(o,a)=>{r=o.enableSubmit(n,i,a+1)&&r}),r}overrideValues(n={}){Object.assign(this,n)}}function Tz(t){return t.map(e=>{let i;return i="is_obsolete"===e.categoryType?`${e.categoryType}:${e.category}`:`${e.categoryType}:"${e.category}"`,e.suffix&&(i+=" "+e.suffix),i}).join(" OR ")}function eoe(t,n){return t.term.id===n.term.id}function toe(t,n){return t.weight0;e=c&&u}return e}}function noe(t,n){return t.evidence.id===n.evidence.id&&t.reference===n.reference&&t.with===n.with}function ioe(t,n){return t.evidence.id===n.evidence.id}function roe(t,n){return t.reference===n.reference}function ooe(t,n){return t.with===n.with}function GXe(t,n){return t.date===n.date}class xm{constructor(n,e){this._edge=new _i("",""),this.isComplement=!1,this.isReverseLink=!1,this.evidenceLookup=new yC,this.referenceLookup=new yC,this.withLookup=new yC,this._evidenceMeta={lookupBase:"",ontologyClass:"eco"},this.visible=!0,this.edge=n,this.evidence=e||[]}get edge(){return this._edge}set edge(n){this._edge=n||new _i("","")}setEvidenceMeta(n,e){this._evidenceMeta.lookupBase=e,this._evidenceMeta.ontologyClass=n,this.evidenceLookup.requestParams=JSON.parse(JSON.stringify(e)),this.addEvidence()}setEvidence(n){const e=this;e.evidence=[],(0,Nt.each)(n,function(i,r){e.addEvidence(i)})}addEvidence(n){const i=n?(0,Nt.cloneDeep)(n):new Rl;return i.setEvidenceOntologyClass(this._evidenceMeta.ontologyClass),this.evidence.push(i),i}hasEvidence(){return!!this.evidence&&(this.evidence.length>1||this.evidence.length>0&&!!this.evidence[0].hasValue())}removeEvidence(n){const e=this;0===n&&1===e.evidence.length?e.evidence[0].clearValues():e.evidence.splice(n,1)}resetEvidence(){const n=this;n.evidence=[n.evidence[0]],n.evidence[0].clearValues()}getEvidenceById(n){return(0,Nt.find)(this.evidence,i=>i.uuid===n)}}const Az={defType:"edismax",indent:"on",qt:"standard",wt:"json",rows:"50",start:"0",packet:"1",callback_type:"search",qf:["annotation_class^3","annotation_class_label_searchable^5.5","description_searchable^1","comment_searchable^0.5","synonym_searchable^1","alternate_id^1","isa_closure^1","isa_closure_label_searchable^1"],_:Date.now()},YXe={id:null,category:"true",categoryType:"is_obsolete"},zl={id:vn.GoProteinContainingComplex,category:"GO:0032991",categoryType:"isa_closure"},e1={id:vn.GoCellularComponent,category:"GO:0005575",categoryType:"isa_closure",suffix:`OR NOT ${zl.categoryType}:"${zl.category}"`},UXe={id:vn.GoCellularComponent,category:"GO:0005575",categoryType:"isa_closure"},D1={id:vn.GoBiologicalProcess,category:"GO:0008150",categoryType:"isa_closure"},ul={id:vn.GoMolecularFunction,category:"GO:0003674",categoryType:"isa_closure"},Fl={id:vn.GoMolecularEntity,category:"CHEBI:33695",categoryType:"isa_closure"},Y0={id:vn.GoChemicalEntity,category:"CHEBI:24431",categoryType:"isa_closure"},Dz={id:vn.GoEvidence,category:"ECO:0000352",categoryType:"isa_closure"},aoe={id:vn.GoEvidence,category:"ECO:0000000",categoryType:"isa_closure"},m_={id:vn.GoCellTypeEntity,category:"CL:0000003",categoryType:"isa_closure"},p3={id:vn.GoAnatomicalEntity,category:"CARO:0000000",categoryType:"isa_closure"},wC={id:vn.GoOrganism,category:"NCBITaxon",categoryType:"idspace"},MC={id:vn.GoBiologicalPhase,category:"GO:0044848",categoryType:"isa_closure"},iP={id:vn.UberonStage,category:"UBERON:0000105",categoryType:"isa_closure"},Vu=(t,n={})=>{const e=new nP,i=new xm(null),r=Tz(t),o=Tz([Dz]);return i.setEvidenceMeta("eco",Object.assign({},JSON.parse(JSON.stringify(Az)),{fq:['document_category:"ontology_class"',o]})),e.predicate=i,t&&t.length>0&&(e.termLookup=new yC(null,Object.assign({},JSON.parse(JSON.stringify(Az)),{fq:['document_category:"ontology_class"',r]}))),e.overrideValues(n),e};var rP,WXe=new Uint8Array(16);function qXe(){if(!rP&&!(rP="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 rP(WXe)}const XXe=/^(?:[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,QXe=function $Xe(t){return"string"==typeof t&&XXe.test(t)};for(var L1=[],Lz=0;Lz<256;++Lz)L1.push((Lz+256).toString(16).substr(1));const OC=function JXe(t,n,e){var i=(t=t||{}).random||(t.rng||qXe)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){e=e||0;for(var r=0;r<16;++r)n[e+r]=i[r];return n}return function KXe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(L1[t[n+0]]+L1[t[n+1]]+L1[t[n+2]]+L1[t[n+3]]+"-"+L1[t[n+4]]+L1[t[n+5]]+"-"+L1[t[n+6]]+L1[t[n+7]]+"-"+L1[t[n+8]]+L1[t[n+9]]+"-"+L1[t[n+10]]+L1[t[n+11]]+L1[t[n+12]]+L1[t[n+13]]+L1[t[n+14]]+L1[t[n+15]]).toLowerCase();if(!QXe(e))throw TypeError("Stringified UUID is invalid");return e}(i)};class zh{constructor(n,e,i){this.id=OC(),this.subject=n,this.object=e,this.predicate=i}isTripleComplete(){return this.subject&&this.object&&this.predicate}}function soe(t,n){return t.object.weight{e.push(...t._edges[i])}),e}function kz(t,n){return t._edges[n.subjectId].push(n),t}function i$e(t,n){return t.uuid===n.uuid}function r$e(t,n){const e=Object.values(u4(t)),i=Object.values(u4(n));return(0,Nt.differenceWith)(e,i,i$e)}var o$e=v(85510);class doe{constructor(){this.graph={_nodes:{},_edges:{}},this.graphlib=new o$e.Graph}get nodes(){const n=u4(this.graph);return Object.values(n)}get edges(){return this.getEdges(null)}exist(n){return n in this.graph._nodes}getNode(n){return function coe(t,n){return t._nodes[n]}(this.graph,n)}getNodes(n){const e=this;return n.map(r=>e.getNode(r))}addNode(n){return this.graphlib.setNode(n.id),SC(this.graph,n,n.id)}addNodes(...n){const e=this;n.forEach(i=>{e.addNode(i)})}removeNode(n){this.graphlib.removeNode(n.id),function e$e(t,n){delete t._nodes[n]}(this.graph,n.id)}addEdge(n,e,i){const r=new zh(n,e,i),o={subjectId:n.id,objectId:e.id,metadata:r};this.graphlib.setEdge(r.subject.id,r.object.id),kz(this.graph,o)}addEdgeById(n,e,i){const r=this.getNode(n),o=this.getNode(e);this.addEdge(r,o,i)}editEdge(n,e,i){this.getEdge(n,e)}getEdge(n,e){const r=function t$e(t,n){return(0,Nt.find)(t._edges[n.subjectId],e=>e.objectId===n.objectId)}(this.graph,{subjectId:n,objectId:e,metadata:null});return r?r.metadata:null}getEdges(n){const e=h4(this.graph,n);return null==e?void 0:e.map(i=>i.metadata)}removeEdge(n,e,i){const r=new zh(n,e,i),o={subjectId:n.id,objectId:e.id,metadata:r};this.graphlib.removeEdge(n.id,e.id),function n$e(t,n){(0,Nt.remove)(t._edges[n.subjectId],e=>e.objectId===n.objectId)}(this.graph,o)}sourceNodes(){const n=this.graphlib.sources();return this.getNodes(n)}successors(n){const e=this.graphlib.successors(n);return this.getNodes(e)}descendants(n){const e=this._descendantsDFS(n);return this.getNodes(e)}_descendantsDFS(n){const e=this,i=this.graphlib.successors(n);return i?(0,Nt.flatten)(i.concat(i.map(function(r){return e._descendantsDFS(r)}))):[]}getTrimmedGraph(n){const e=this,i={_nodes:{},_edges:{}},r=e.getEdges(n),o=e.getNode(n);return SC(i,o,o.id),(0,Nt.each)(r,a=>{e._trimGraphDFS(i,a.subject,a.object,a.predicate,a.predicate)}),i}edgeTypeExist(n,e,i,r){return(0,Nt.find)(this.getEdges(n),c=>c.predicate.edge.id===e&&c.subject.type===i&&c.object.type===r)}_trimGraphDFS(n,e,i,r,o){const a=this;if(i.hasValue()){const c=new xm(r.edge,o.evidence),u=new zh(e,i,c),f={subjectId:e.id,objectId:i.id,metadata:u};SC(n,i,i.id),kz(n,f)}(0,Nt.each)(a.getEdges(i.id),c=>{a._trimGraphDFS(n,i.hasValue()?i:e,c.object,i.hasValue()?c.predicate:r,c.predicate)})}}const uoe=JSON.parse('{"Y":[{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CHEBI:24431","CARO:0000000","GO:0032991","NCBITaxon:1"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002233","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002234","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CHEBI:24431","CARO:0000000","GO:0032991","NCBITaxon:1"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004009","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004008","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000066","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002313","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002339","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002338","exclude_from_extensions":false},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002411","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002305","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002304","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002211","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002212","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002213","exclude_from_extensions":true},{"subject":"GO:0008150","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000","NCBITaxon:1"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012003","exclude_from_extensions":false},{"subject":"GO:0048856","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002296","exclude_from_extensions":false},{"subject":"GO:0048646","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002297","exclude_from_extensions":false},{"subject":"GO:0009653","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002298","exclude_from_extensions":false},{"subject":"GO:0030154","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002315","exclude_from_extensions":false},{"subject":"GO:0051301","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002233","exclude_from_extensions":false},{"subject":"GO:0045165","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002348","exclude_from_extensions":false},{"subject":"GO:0001709","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002349","exclude_from_extensions":false},{"subject":"GO:0001708","root_subject":"GO:0008150","object":["CL:0000003"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002356","exclude_from_extensions":false},{"subject":"GO:0022607","root_subject":"GO:0008150","object":["GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002588","exclude_from_extensions":false},{"subject":"GO:0022411","root_subject":"GO:0008150","object":["GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002590","exclude_from_extensions":false},{"subject":"GO:0016043","root_subject":"GO:0008150","object":["GO:0005575"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002592","exclude_from_extensions":false},{"subject":"GO:0021700","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002299","exclude_from_extensions":false},{"subject":"GO:0040007","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002343","exclude_from_extensions":false},{"subject":"GO:0051179","root_subject":"GO:0008150","object":["CARO:0000000","CHEBI:24431","CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002313","exclude_from_extensions":false},{"subject":"GO:0051179","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002339","exclude_from_extensions":false},{"subject":"GO:0051179","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002338","exclude_from_extensions":false},{"subject":"GO:0040011","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002565","exclude_from_extensions":false},{"subject":"GO:0008152","root_subject":"GO:0008150","object":["CHEBI:24431"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004009","exclude_from_extensions":false},{"subject":"GO:0008152","root_subject":"GO:0008150","object":["CHEBI:24431"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004008","exclude_from_extensions":false},{"subject":"GO:0034367","root_subject":"GO:0008150","object":["GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002591","exclude_from_extensions":false},{"subject":"GO:0007389","root_subject":"GO:0008150","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002356","exclude_from_extensions":false},{"subject":"GO:0006810","root_subject":"GO:0008150","object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004009","exclude_from_extensions":false},{"subject":"GO:0006810","root_subject":"GO:0008150","object":["CHEBI:24431","CARO:0000000","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004008","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CHEBI:33695","GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002333","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000051","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000066","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CHEBI:24431","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002234","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CHEBI:24431","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002233","exclude_from_extensions":false},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002413","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002211","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002212","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002213","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002578","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002630","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002629","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012012","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002407","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002409","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012009","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0012010","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent","GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002418","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004046","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0004047","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002411","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002305","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150","GO:0003674","http://purl.obolibrary.org/obo/go/shapes/MolecularEvent"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002304","exclude_from_extensions":true},{"subject":"GO:0003674","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0044848","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002092","exclude_from_extensions":false},{"subject":"GO:0005215","root_subject":"GO:0003674","object":["CHEBI:24431","CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002313","exclude_from_extensions":false},{"subject":"GO:0005215","root_subject":"GO:0003674","object":["GO:0005575"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002339","exclude_from_extensions":false},{"subject":"GO:0005215","root_subject":"GO:0003674","object":["GO:0005575"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002338","exclude_from_extensions":false},{"subject":"CARO:0000000","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"CARO:0000000","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CHEBI:33695","GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001015","exclude_from_extensions":false},{"subject":"CL:0000003","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002220","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002131","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002490","exclude_from_extensions":false},{"subject":"GO:0005575","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002491","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001025","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CARO:0000000","http://purl.obolibrary.org/obo/go/shapes/RootCellularComponent"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002432","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["CHEBI:33695","GO:0032991"],"is_multivalued":true,"is_required":false,"context":"","predicate":"BFO:0000051","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002490","exclude_from_extensions":false},{"subject":"GO:0032991","root_subject":"http://purl.obolibrary.org/obo/go/shapes/GoCamEntity","object":["GO:0008150","UBERON:0000105","PO:0009012"],"is_multivalued":true,"is_required":false,"context":"","predicate":"RO:0002491","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001025","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["CARO:0000000","http://purl.obolibrary.org/obo/go/shapes/RootCellularComponent"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002432","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"CHEBI:36080","root_subject":"CHEBI:24431","object":["GO:0003674"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002326","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["CARO:0000000"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0001025","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["CARO:0000000","http://purl.obolibrary.org/obo/go/shapes/RootCellularComponent"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002432","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["GO:0032991"],"is_multivalued":false,"is_required":false,"context":"","predicate":"BFO:0000050","exclude_from_extensions":false},{"subject":"CHEBI:33695","root_subject":"CHEBI:24431","object":["GO:0003674"],"is_multivalued":false,"is_required":false,"context":"","predicate":"RO:0002326","exclude_from_extensions":false}]}'),a$e=JSON.parse('[{"id":"CHEBI:33695","label":"information biomacromolecule","definition":"","comment":"","synonyms":[""]},{"id":"CHEBI:36080","label":"protein","definition":"A biological macromolecule minimally consisting of one polypeptide chain synthesized at the ribosome.","comment":"","synonyms":["proteins"]},{"id":"GO:0032991","label":"protein complex","definition":"A stable assembly of two or more macromolecules, i.e. proteins, nucleic acids, carbohydrates or lipids, in which at least one component is a protein and the constituent parts function together.","comment":"A protein complex in this context is meant as a stable set of interacting proteins which can be co-purified by an acceptable method, and where the complex has been shown to exist as an isolated, functional unit in vivo. Acceptable experimental methods include stringent protein purification followed by detection of protein interaction. The following methods should be considered non-acceptable: simple immunoprecipitation, pull-down experiments from cell extracts without further purification, colocalization and 2-hybrid screening. Interactions that should not be captured as protein complexes include: 1) enzyme/substrate, receptor/ligand or any similar transient interactions, unless these are a critical part of the complex assembly or are required e.g. for the receptor to be functional; 2) proteins associated in a pull-down/co-immunoprecipitation assay with no functional link or any evidence that this is a defined biological entity rather than a loose-affinity complex; 3) any complex where the only evidence is based on genetic interaction data; 4) partial complexes, where some subunits (e.g. transmembrane ones) cannot be expressed as recombinant proteins and are excluded from experiments (in this case, independent evidence is necessary to find out the composition of the full complex, if known). Interactions that may be captured as protein complexes include: 1) enzyme/substrate or receptor/ligand if the complex can only assemble and become functional in the presence of both classes of subunits; 2) complexes where one of the members has not been shown to be physically linked to the other(s), but is a homologue of, and has the same functionality as, a protein that has been experimentally demonstrated to form a complex with the other member(s); 3) complexes whose existence is accepted based on localization and pharmacological studies, but for which experimental evidence is not yet available for the complex as a whole.","synonyms":["macromolecular complex","macromolecule complex","protein complex"]},{"id":"GO:0005575","label":"cellular component","definition":"A location, relative to cellular compartments and structures, occupied by a macromolecular machine when it carries out a molecular function. There are two ways in which the gene ontology describes locations of gene products: (1) relative to cellular structures (e.g., cytoplasmic side of plasma membrane) or compartments (e.g., mitochondrion), and (2) the stable macromolecular complexes of which they are parts (e.g., the ribosome).","comment":"Note that, in addition to forming the root of the cellular component ontology, this term is recommended for use for the annotation of gene products whose cellular component is unknown. When this term is used for annotation, it indicates that no information was available about the cellular component of the gene product annotated as of the date the annotation was made; the evidence code \'no data\' (ND), is used to indicate this.","synonyms":["cell or subcellular entity","cellular component"]},{"id":"GO:0008150","label":"biological process","definition":"A biological process represents a specific objective that the organism is genetically programmed to achieve. Biological processes are often described by their outcome or ending state, e.g., the biological process of cell division results in the creation of two daughter cells (a divided cell) from a single parent cell. A biological process is accomplished by a particular set of molecular functions carried out by specific gene products (or macromolecular complexes), often in a highly regulated manner and in a particular temporal sequence.","comment":"Note that, in addition to forming the root of the biological process ontology, this term is recommended for use for the annotation of gene products whose biological process is unknown. When this term is used for annotation, it indicates that no information was available about the biological process of the gene product annotated as of the date the annotation was made; the evidence code \'no data\' (ND), is used to indicate this.","synonyms":["biological process","physiological process"]},{"id":"GO:0048856","label":"anatomical structure development","definition":"The biological process whose specific outcome is the progression of an anatomical structure from an initial condition to its mature state. This process begins with the formation of the structure and ends with the mature structure, whatever form that may be including its natural destruction. An anatomical structure is any biological entity that occupies space and is distinguished from its surroundings. Anatomical structures can be macroscopic such as a carpel, or microscopic such as an acrosome.","comment":"","synonyms":["development of an anatomical structure"]},{"id":"GO:0048646","label":"anatomical structure formation involved in morphogenesis","definition":"The developmental process pertaining to the initial formation of an anatomical structure from unspecified parts. This process begins with the specific processes that contribute to the appearance of the discrete structure and ends when the structural rudiment is recognizable. An anatomical structure is any biological entity that occupies space and is distinguished from its surroundings. Anatomical structures can be macroscopic such as a carpel, or microscopic such as an acrosome.","comment":"Note that, for example, the formation of a pseudopod in an amoeba would not be considered formation involved in morphogenesis because it would not be thought of as the formation of an anatomical structure that was part of the shaping of the amoeba during its development. The formation of an axon from a neuron would be considered the formation of an anatomical structure involved in morphogenesis because it contributes to the creation of the form of the neuron in a developmental sense.","synonyms":["formation of an anatomical structure involved in morphogenesis"]},{"id":"GO:0009653","label":"anatomical structure morphogenesis","definition":"The process in which anatomical structures are generated and organized. Morphogenesis pertains to the creation of form.","comment":"","synonyms":["anatomical structure organization","morphogenesis"]},{"id":"GO:0030154","label":"cell differentiation","definition":"The process in which relatively unspecialized cells, e.g. embryonic or regenerative cells, acquire specialized structural and/or functional features that characterize the cells, tissues, or organs of the mature organism or some other relatively stable phase of the organism\'s life history. Differentiation includes the processes involved in commitment of a cell to a specific fate and its subsequent development to the mature state.","comment":"","synonyms":[""]},{"id":"GO:0051301","label":"cell division","definition":"The process resulting in division and partitioning of components of a cell to form more cells; may or may not be accompanied by the physical separation of a cell into distinct, individually membrane-bounded daughter cells.","comment":"Note that this term differs from \'cytokinesis ; GO:0000910\' in that cytokinesis does not include nuclear division.","synonyms":[""]},{"id":"GO:0045165","label":"cell fate commitment","definition":"The commitment of cells to specific cell fates and their capacity to differentiate into particular kinds of cells. Positional information is established through protein signals that emanate from a localized source within a cell (the initial one-cell zygote) or within a developmental field.","comment":"Note that this term was \'cell fate determination\' but the term name was changed to better match its existing definition and the child term \'cell fate determination; GO:0001709\' was also created.","synonyms":[""]},{"id":"GO:0001709","label":"cell fate determination","definition":"A process involved in cell fate commitment. Once determination has taken place, a cell becomes committed to differentiate down a particular pathway regardless of its environment.","comment":"","synonyms":[""]},{"id":"GO:0001708","label":"cell fate specification","definition":"The process involved in the specification of cell identity. Once specification has taken place, a cell will be committed to differentiate down a specific pathway if left in its normal environment.","comment":"","synonyms":[""]},{"id":"GO:0022607","label":"cellular component assembly","definition":"The aggregation, arrangement and bonding together of a cellular component.","comment":"","synonyms":["cell structure assembly","cellular component assembly at cellular level"]},{"id":"GO:0022411","label":"cellular component disassembly","definition":"A cellular process that results in the breakdown of a cellular component.","comment":"","synonyms":["cell structure disassembly","cellular component disassembly at cellular level"]},{"id":"GO:0016043","label":"cellular component organization","definition":"A process that results in the assembly, arrangement of constituent parts, or disassembly of a cellular component.","comment":"","synonyms":["cell organisation","cellular component organisation at cellular level","cellular component organisation in other organism","cellular component organization at cellular level","cellular component organization in other organism"]},{"id":"GO:0021700","label":"developmental maturation","definition":"A developmental process, independent of morphogenetic (shape) change, that is required for an anatomical structure, cell or cellular component to attain its fully functional state.","comment":"","synonyms":[""]},{"id":"GO:0040007","label":"growth","definition":"The increase in size or mass of an entire organism, a part of an organism or a cell.","comment":"See also the biological process term \'cell growth ; GO:0016049\'.","synonyms":[""]},{"id":"GO:0051179","label":"localization","definition":"Any process in which a cell, a substance, or a cellular entity, such as a protein complex or organelle, is transported, tethered to or otherwise maintained in a specific location. In the case of substances, localization may also be achieved via selective degradation.","comment":"","synonyms":["establishment and maintenance of localization","establishment and maintenance of position","localisation"]},{"id":"GO:0040011","label":"locomotion","definition":"Self-propelled movement of a cell or organism from one location to another.","comment":"","synonyms":[""]},{"id":"GO:0034367","label":"protein-containing complex remodeling","definition":"The acquisition, loss, or modification of macromolecules within a complex, resulting in the alteration of an existing complex.","comment":"","synonyms":[""]},{"id":"GO:0007389","label":"pattern specification process","definition":"Any developmental process that results in the creation of defined areas or spaces within an organism to which cells respond and eventually are instructed to differentiate.","comment":"","synonyms":[""]},{"id":"GO:0008152","label":"metabolic process","definition":"The chemical reactions and pathways, including anabolism and catabolism, by which living organisms transform chemical substances. Metabolic processes typically transform small molecules, but also include macromolecular processes such as DNA repair and replication, and protein synthesis and degradation.","comment":"Note that metabolic processes do not include single functions or processes such as protein-protein interactions, protein-nucleic acids, nor receptor-ligand interactions.","synonyms":["metabolism"]},{"id":"GO:0006810","label":"transport","definition":"The directed movement of substances (such as macromolecules, small molecules, ions) or cellular components (such as complexes and organelles) into, out of or within a cell, or between cells, or within a multicellular organism by means of some agent such as a transporter or a transporter complex, a pore or a motor protein.","comment":"Note that this term should not be used for direct annotation. It should be possible to make a more specific annotation to one of the children of this term, for e.g. to transmembrane transport, to microtubule-based transport or to vesicle-mediated transport.","synonyms":[""]},{"id":"GO:0003674","label":"molecular function","definition":"A molecular process that can be carried out by the action of a single macromolecular machine, usually via direct physical interactions with other molecular entities. Function in this sense denotes an action, or activity, that a gene product (or a complex) performs. These actions are described from two distinct but related perspectives: (1) biochemical activity, and (2) role as a component in a larger system/process.","comment":"Note that, in addition to forming the root of the molecular function ontology, this term is recommended for use for the annotation of gene products whose molecular function is unknown. When this term is used for annotation, it indicates that no information was available about the molecular function of the gene product annotated as of the date the annotation was made; the evidence code \'no data\' (ND), is used to indicate this. Despite its name, this is not a type of \'function\' in the sense typically defined by upper ontologies such as Basic Formal Ontology (BFO). It is instead a BFO:process carried out by a single gene product or complex.","synonyms":["molecular function"]},{"id":"GO:0005215","label":"transporter activity","definition":"Enables the directed movement of substances (such as macromolecules, small molecules, ions) into, out of or within a cell, or between cells.","comment":"Some transporters, such as certain members of the SLC family, are referred to as \'carriers\'; however GO uses carrier with a different meaning: a carrier binds to and transports the substance (see GO:0140104 molecular carrier activity), whereas a transporter forms some pore that allows the passing of molecules.","synonyms":[""]},{"id":"CHEBI:24431","label":"chemical","definition":"A chemical entity is a physical entity of interest in chemistry including molecular entities, parts thereof, and chemical substances.","comment":"","synonyms":["chemical entity"]},{"id":"ECO:0000000","label":"evidence","definition":"A type of information that is used to support an assertion.","comment":"","synonyms":[""]},{"id":"CARO:0000000","label":"anatomy","definition":"","comment":"","synonyms":[""]},{"id":"CL:0000003","label":"cell","definition":"A cell that is found in a natural setting, which includes multicellular organism cells \'in vivo\' (i.e. part of an organism), and unicellular organisms \'in environment\' (i.e. part of a natural environment).","comment":"","synonyms":[""]},{"id":"NCBITaxon:1","label":"Organism","definition":"","comment":"","synonyms":[""]},{"id":"GO:0044848","label":"biological phase","definition":"A distinct period or stage in a biological process or cycle.","comment":"Note that phases are is_a disjoint from other biological processes. happens_during relationships can operate between phases and other biological processes e.g. DNA replication happens_during S phase.","synonyms":[""]},{"id":"UBERON:0000105","label":"stage","definition":"A spatiotemporal region encompassing some part of the life cycle of an organism.","comment":"","synonyms":[""]},{"id":"PO:0009012","label":"plant stage","definition":"A stage in the life of a plant structure (PO:0009011) during which the plant structure undergoes developmental processes.","comment":"","synonyms":["etapa de desarrollo de estructura vegetal (Spanish, exact)","plant growth and development stage (exact)"]},{"id":"BFO:0000050","label":"part of","definition":"a core relation that holds between a part and its whole","comment":"","synonyms":[""]},{"id":"BFO:0000051","label":"has part","definition":"a core relation that holds between a whole and its part","comment":"","synonyms":[""]},{"id":"BFO:0000066","label":"occurs in","definition":"b occurs_in c =def b is a process and c is a material entity or immaterial entity& there exists a spatiotemporal region r and b occupies_spatiotemporal_region r.& forall(t) if b exists_at t then c exists_at t & there exist spatial regions s and s\u2019 where & b spatially_projects_onto s at t& c is occupies_spatial_region s\u2019 at t& s is a proper_continuant_part_of s\u2019 at t","comment":"Paraphrase of definition: a relation between a process and an independent continuant, in which the process takes place entirely within the independent continuant","synonyms":[""]},{"id":"RO:0002220","label":"adjacent to","definition":"x adjacent to y if and only if x and y share a boundary.","comment":"","synonyms":[""]},{"id":"RO:0002131","label":"overlaps","definition":"x overlaps y if and only if there exists some z such that x has part z and z part of y","comment":"","synonyms":[""]},{"id":"RO:0002490","label":"existence overlaps","definition":"x existence overlaps y if and only if either (a) the start of x is part of y or (b) the end of x is part of y. Formally: x existence starts and ends during y iff (\u03b1(x) >= \u03b1(y) & \u03b1(x) <= \u03c9(y)) OR (\u03c9(x) <= \u03c9(y) & \u03c9(x) >= \u03b1(y))","comment":"The relations here were created based on work originally by Fabian Neuhaus and David Osumi-Sutherland. The work has not yet been vetted and errors in definitions may have occurred during transcription.","synonyms":[""]},{"id":"RO:0002491","label":"existence starts and ends during","definition":"x exists during y if and only if: 1) the time point at which x begins to exist is after or equal to the time point at which y begins and 2) the time point at which x ceases to exist is before or equal to the point at which y ends. Formally: x existence starts and ends during y iff \u03b1(x) >= \u03b1(y) & \u03b1(x) <= \u03c9(y) & \u03c9(x) <= \u03c9(y) & \u03c9(x) >= \u03b1(y)","comment":"The relations here were created based on work originally by Fabian Neuhaus and David Osumi-Sutherland. The work has not yet been vetted and errors in definitions may have occurred during transcription.","synonyms":["exists during"]},{"id":"RO:0002333","label":"enabled by","definition":"inverse of enables","comment":"","synonyms":[""]},{"id":"RO:0002326","label":"contributes to","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002233","label":"has input","definition":"p has input c iff: p is a process, c is a material entity, c is a participant in p, c is present at the start of p, and the state of c is modified during p.","comment":"","synonyms":[""]},{"id":"RO:0002234","label":"has output","definition":"p has output c iff c is a participant in p, c is present at the end of p, and c is not present in the same state at the beginning of p.","comment":"","synonyms":[""]},{"id":"RO:0004009","label":"has primary input","definition":"p has primary input c if (a) p has input c and (b) the goal of process is to modify, consume, or transform c.","comment":"","synonyms":[""]},{"id":"RO:0004008","label":"has primary output","definition":"p has primary output c if (a) p has output c and (b) the goal of process is to modify, produce, or transform c.","comment":"","synonyms":[""]},{"id":"RO:0002339","label":"has target end location","definition":"This relationship holds between p and l when p is a transport or localization process in which the outcome is to move some cargo c from a an initial location to some destination l.","comment":"","synonyms":[""]},{"id":"RO:0002338","label":"has target start location","definition":"This relationship holds between p and l when p is a transport or localization process in which the outcome is to move some cargo c from some initial location l to some destination.","comment":"","synonyms":[""]},{"id":"RO:0002313","label":"transports or maintains localization of","definition":"Holds between p and c when p is a localization process (localization covers maintenance of localization as well as its establishment) and the outcome of this process is to regulate the localization of c.","comment":"","synonyms":[""]},{"id":"RO:0002413","label":"directly provides input for","definition":"p provides input for q iff p is immediately causally upstream of q, and there exists some c such that p has_output c and q has_input c.","comment":"","synonyms":[""]},{"id":"RO:0002629","label":"directly positively regulates","definition":"p directly positively regulates q iff p is immediately causally upstream of q, and p positively regulates q.","comment":"","synonyms":[""]},{"id":"RO:0001025","label":"located in","definition":"a relation between two independent continuants, the target and the location, in which the target is entirely within the location","comment":"","synonyms":[""]},{"id":"RO:0001015","label":"location of","definition":"a relation between two independent continuants, the location and the target, in which the target is entirely within the location","comment":"","synonyms":[""]},{"id":"RO:0002432","label":"is active in","definition":"c executes activity in d if and only if c enables p and p occurs_in d. Assuming no action at a distance by gene products, if a gene product enables (is capable of) a process that occurs in some structure, it must have at least some part in that structure.","comment":"","synonyms":["enables activity in"]},{"id":"RO:0002092","label":"happens during","definition":"","comment":"X happens_during Y iff: (start(Y) before_or_simultaneous_with start(X)) AND (end(X) before_or_simultaneous_with end(Y))","synonyms":[""]},{"id":"RO:0002211","label":"regulates","definition":"process(P1) regulates process(P2) iff:\xa0P1 results in the initiation or termination of P2 OR affects the frequency of its initiation or termination OR affects the magnitude or rate of output of P2.","comment":"","synonyms":[""]},{"id":"RO:0002212","label":"negatively regulates","definition":"p negatively regulates q iff p regulates q, and p decreases the rate or magnitude of execution of q.","comment":"","synonyms":[""]},{"id":"RO:0002213","label":"positively regulates","definition":"p positively regulates q iff p regulates q, and p increases the rate or magnitude of execution of q.","comment":"","synonyms":[""]},{"id":"RO:0002578","label":"directly regulates","definition":"p directly regulates q iff p is immediately causally upstream of q and p regulates q.","comment":"","synonyms":[""]},{"id":"RO:0002630","label":"directly negatively regulates","definition":"p directly negatively regulates q iff p is immediately causally upstream of q, and p negatively regulates q.","comment":"","synonyms":[""]},{"id":"RO:0002406","label":"directly activates","definition":"p directly activates q if and only if p is immediately upstream of q and p is the realization of a function to increase the rate or activity of q","comment":"This term was obsoleted because it has the same meaning as \'directly positively regulates\'.","synonyms":[""]},{"id":"RO:0012012","label":"indirectly regulates","definition":"p indirectly regulates q iff p is indirectly causally upstream of q and p regulates q.","comment":"","synonyms":[""]},{"id":"RO:0002407","label":"indirectly activates","definition":"p indirectly activates q if and only if p is upstream of q and there is a chain of directly activates relationships connecting p and q, where the chain is of length greater than one.","comment":"","synonyms":[""]},{"id":"RO:0002409","label":"indirectly inhibits","definition":"p indirectly negatively regulates q iff p is indirectly causally upstream of q and p negatively regulates q.","comment":"","synonyms":[""]},{"id":"RO:0012009","label":"constitutively upstream of","definition":"p is constitutively upstream of q iff p is causally upstream of q, p is required for execution of q or a part of q, and the execution of p is approximately constant.","comment":"","synonyms":[""]},{"id":"RO:0012010","label":"removes input for","definition":"p removes input for q iff p is causally upstream of q, there exists some c such that p has_input c and q has_input c, p reduces the levels of c, and c is rate limiting for execution of q.","comment":"","synonyms":[""]},{"id":"RO:0002418","label":"causally upstream of or within","definition":"p \'causally upstream or within\' q iff (1) the end of p is before the end of q and (2) the execution of p exerts some causal influence over the outputs of q; i.e. if p was abolished or the outputs of p were to be modified, this would necessarily affect q.","comment":"","synonyms":[""]},{"id":"RO:0004046","label":"causally upstream of or within, negative effect","definition":"","comment":"","synonyms":[""]},{"id":"RO:0004047","label":"causally upstream of or within, positive effect","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002411","label":"causally upstream of","definition":"p is causally upstream of q if and only if p precedes q and p and q are linked in a causal chain","comment":"","synonyms":[""]},{"id":"RO:0002305","label":"causally upstream of, negative effect","definition":"p is causally upstream of, negative effect q iff p is casually upstream of q, and the execution of p decreases the execution of q.","comment":"holds between x and y if and only if x is causally upstream of y and the progression of x decreases the frequency, rate or extent of y","synonyms":[""]},{"id":"RO:0002304","label":"causally upstream of, positive effect","definition":"p is causally upstream of, positive effect q iff p is casually upstream of q, and the execution of p is required for the execution of q.","comment":"holds between x and y if and only if x is causally upstream of y and the progression of x increases the frequency, rate or extent of y","synonyms":[""]},{"id":"RO:0012003","label":"acts on population of","definition":"p acts on population of c iff c\' is a collection, has members of type c, and p has participant c","comment":"","synonyms":[""]},{"id":"RO:0002296","label":"results in development of","definition":"p \'results in development of\' c if and only if p is a developmental process and p results in the state of c changing from its initial state as a primordium or anlage through its mature state and to its final state.","comment":"","synonyms":[""]},{"id":"RO:0002297","label":"results in formation of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002298","label":"results in morphogenesis of","definition":"The relationship that links an entity with the process that results in the formation and shaping of that entity over time from an immature to a mature state.","comment":"","synonyms":[""]},{"id":"RO:0002315","label":"results in acquisition of features of","definition":"The relationship that links a specified entity with the process that results in an unspecified entity acquiring the features and characteristics of the specified entity","comment":"","synonyms":[""]},{"id":"RO:0002348","label":"results in commitment to","definition":"p \'results in commitment to\' c if and only if p is a developmental process and c is a cell and p results in the state of c changing such that is can only develop into a single cell type.","comment":"","synonyms":[""]},{"id":"RO:0002349","label":"results in determination of","definition":"p \'results in determination of\' c if and only if p is a developmental process and c is a cell and p results in the state of c changing to be determined. Once a cell becomes determined, it becomes committed to differentiate down a particular pathway regardless of its environment.","comment":"","synonyms":[""]},{"id":"RO:0002356","label":"results in specification of","definition":"The relationship linking a cell and its participation in a process that results in the fate of the cell being specified. Once specification has taken place, a cell will be committed to differentiate down a specific pathway if left in its normal environment. ","comment":"","synonyms":[""]},{"id":"RO:0002588","label":"results in assembly of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002590","label":"results in disassembly of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002592","label":"results in organization of","definition":"p results in organization of c iff p results in the assembly, arrangement of constituent parts, or disassembly of c","comment":"","synonyms":[""]},{"id":"RO:0002299","label":"results in maturation of","definition":"The relationship that links an entity with a process that results in the progression of the entity over time that is independent of changes in it\'s shape and results in an end point state of that entity.","comment":"","synonyms":[""]},{"id":"RO:0002343","label":"results in growth of","definition":"","comment":"","synonyms":[""]},{"id":"RO:0002565","label":"results in movement of","definition":"Holds between p and c when p is locomotion process and the outcome of this process is the change of location of c","comment":"","synonyms":[""]},{"id":"RO:0002591","label":"results in remodeling of","definition":"","comment":"","synonyms":[""]}]');class __{static toTitleCase(n){n=n.toLowerCase().split(" ");for(var e=0;e{n[e.id]=e}),n}static getSubjectShapes(n,e){return n.filter(i=>i.subject===e&&!i.exclude_from_extensions)}static getPredicates(n){const e=n.map(i=>i.predicate);return[...new Set(e)]}static getRangeBySubject(n,e,i){return n.find(r=>r.subject===e&&r.predicate===i&&!r.exclude_from_extensions)}static getRangeLabels(n,e){return n.map(r=>{const o=r.object.map(c=>{var u;return null===(u=e[c])||void 0===u?void 0:u.label}),a=(0,Nt.cloneDeep)(e[r.predicate]);return a.rangeLabel=o.join(", "),a})}}var ja=(()=>{return(t=ja||(ja={})).none="none",t.oneToOne="oneToOne",t.oneToMany="oneToMany",ja;var t})();function c$e(t,n){return t.id===n.id}const hoe={[vn.GoMolecularEntity]:[{label:"Add part of (Protein Complex)",id:vn.GoProteinContainingComplex,node:{type:vn.GoProteinContainingComplex,category:[zl],label:"(GP) part of (Protein Complex)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:3,isKey:!1,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:ja.oneToMany},{label:"Add located in (CC)",id:vn.GoCellularComponent,node:{type:vn.GoCellularComponent,category:[e1],label:"(GP) located in (CC)",aspect:"C",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:10,showInMenu:!0},predicate:Ht.edge.locatedIn,cardinality:ja.oneToMany}],[vn.GoProteinContainingComplex]:[{label:"Add has part (Gene Product)",id:vn.GoMolecularEntity,node:{type:vn.GoMolecularEntity,category:[Fl,zl],label:"(Protein Complex) has part (GP)",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:3,isKey:!1,showInMenu:!0},predicate:Ht.edge.hasPart,cardinality:ja.oneToMany}],[vn.GoMolecularFunction]:[{label:"Add enabled by Protein Complex",id:vn.GoProteinContainingComplex,node:{id:zl.id,type:vn.GoProteinContainingComplex,category:[zl],label:"(MF) enabled by (Protein Complex)",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,termRequired:!0,weight:2,isKey:!0},predicate:Ht.edge.enabledBy,cardinality:ja.oneToOne},{label:"Add enabled by GP",id:vn.GoMolecularEntity,node:{id:Fl.id,type:vn.GoMolecularEntity,category:[Fl,zl],label:"(MF) enabled by (GP)",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,termRequired:!0,weight:2,isKey:!0},predicate:Ht.edge.enabledBy,cardinality:ja.oneToOne},{label:"Add part of (BP)",id:vn.GoBiologicalProcess,node:{type:vn.GoBiologicalProcess,category:[D1],label:"(MF) part of (BP)",aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,weight:10,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:ja.oneToOne},{label:"Add occurs in (CC)",id:vn.GoCellularComponent,node:{type:vn.GoCellularComponent,category:[e1],label:"(MF) occurs in (CC)",aspect:"C",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:20,showInMenu:!0},predicate:Ht.edge.occursIn,cardinality:ja.oneToOne},{label:"Add occurs in (Cell Type)",id:vn.GoCellTypeEntity,node:{category:[m_],type:vn.GoCellTypeEntity,label:"occurs in (Cell Type)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!1,weight:30},predicate:Ht.edge.occursIn,cardinality:ja.oneToOne},{label:"Add occurs in (Anatomy)",id:vn.GoAnatomicalEntity,node:{category:[p3],type:vn.GoAnatomicalEntity,label:"occurs in (Anatomy)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:40},predicate:Ht.edge.occursIn,cardinality:ja.oneToOne},{label:"Add occurs in (Organism)",id:vn.GoOrganism,node:{category:[wC],type:vn.GoOrganism,label:"part of (Organism)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:50},predicate:Ht.edge.occursIn,cardinality:ja.oneToOne},{label:"Add Has Input (Chemical/Protein Containing Complex)",id:vn.GoChemicalEntityHasInput,node:{category:[Y0,zl],type:vn.GoChemicalEntityHasInput,label:"has input (Chemical/Protein Containing Complex)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,isExtension:!0,weight:4,showInMenu:!0},predicate:Ht.edge.hasInput,cardinality:ja.oneToMany},{label:"Add Has Output (Chemical/Protein Containing Complex)",id:vn.GoChemicalEntityHasOutput,node:{category:[Y0,zl],type:vn.GoChemicalEntityHasOutput,label:"has output (Chemical/Protein Containing Complex)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,isExtension:!0,weight:5,showInMenu:!0},predicate:Ht.edge.hasOutput,cardinality:ja.oneToMany},{label:"Add Happens During (Biological Phase)",id:vn.GoBiologicalPhase,node:{category:[MC,iP],type:vn.GoBiologicalPhase,label:"happens during (Biological Phase)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,isExtension:!0,weight:3,showInMenu:!0},predicate:Ht.edge.happensDuring,cardinality:ja.oneToOne},{label:"Add has part (Subfunction)",id:vn.GoMolecularFunction,node:{type:vn.GoMolecularFunction,category:[ul],label:"has part (Subfunction)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:100,showInMenu:!0},predicate:Ht.edge.hasPart,cardinality:ja.oneToMany},...(t=>{const n=[];return(0,Nt.each)(t,e=>{n.push({id:vn.GoBiologicalProcess,node:{type:vn.GoBiologicalProcess,category:[D1],label:`MF ${e.label} BP`,aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,isKey:!0,relationEditable:!0,weight:10},predicate:e,cardinality:ja.oneToOne})}),n})([_i.createEntity(Ht.edge.causallyUpstreamOfOrWithin),_i.createEntity(Ht.edge.causallyUpstreamOf),_i.createEntity(Ht.edge.causallyUpstreamOfNegativeEffect),_i.createEntity(Ht.edge.causallyUpstreamOfPositiveEffect),_i.createEntity(Ht.edge.causallyUpstreamOfOrWithinPositiveEffect),_i.createEntity(Ht.edge.causallyUpstreamOfOrWithinNegativeEffect)])],[vn.GoBiologicalProcess]:[{label:"Add part of (BP)",id:vn.GoBiologicalProcess,node:{category:[D1],type:vn.GoBiologicalProcess,label:"part of (BP)",aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,isExtension:!0,weight:10,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:ja.oneToOne},{label:"Add occurs in (CC)",id:vn.GoCellularComponent,node:{category:[e1],type:vn.GoCellularComponent,aspect:"C",label:"occurs in (CC)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,isExtension:!0,weight:20},predicate:Ht.edge.occursIn,cardinality:ja.oneToOne},{label:"Add Has Input (Chemical/Anatomical Entity/Protein Containing Complex)",id:vn.GoChemicalEntityHasInput,node:{category:[Y0,p3,zl],type:vn.GoChemicalEntityHasInput,label:"Has Input (Chemical/Anatomical Entity/Protein Containing Complex)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,isExtension:!0,weight:14,showInMenu:!0},predicate:Ht.edge.hasInput,cardinality:ja.oneToMany},{label:"Add Has Output (Chemical/Anatomical Entity/Protein Containing Complex)",id:vn.GoChemicalEntityHasInput,node:{category:[Y0,p3,zl],type:vn.GoChemicalEntityHasOutput,label:"Has Output (Chemical/Anatomical Entity/Protein Containing Complex)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,isExtension:!0,weight:14,showInMenu:!0},predicate:Ht.edge.hasOutput,cardinality:ja.oneToMany}],[vn.GoCellularComponent]:[{label:"Add part of (CC)",id:vn.GoCellularComponent,node:{category:[e1],type:vn.GoCellularComponent,aspect:"C",label:"part of (CC)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:20,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:ja.oneToOne},{label:"Add part of (Cell Type)",id:vn.GoCellTypeEntity,node:{category:[m_],type:vn.GoCellTypeEntity,label:"part of (Cell Type)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:30,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:ja.oneToOne},{label:"Add part of (Anatomy)",id:vn.GoAnatomicalEntity,node:{category:[p3],type:vn.GoAnatomicalEntity,label:"part of (Anatomy)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:40,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:ja.oneToOne},{label:"Add part of (Organism)",id:vn.GoOrganism,node:{category:[wC],type:vn.GoOrganism,label:"part of (Organism)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:50,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:ja.oneToOne},{label:"Add Existence Overlaps (BP/Phase/Stage)",id:vn.BPPhaseStageExistenceOverlaps,node:{category:[D1,iP],type:vn.BPPhaseStageExistenceOverlaps,label:"existence overlaps (BP/Phase/Stage)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:60,showInMenu:!0},predicate:Ht.edge.existenceOverlaps,cardinality:ja.oneToMany},{label:"Add Existence Starts and Ends During (BP/Phase/Stage)",id:vn.BPPhaseStageExistenceStartsEnds,node:{category:[D1,iP],type:vn.BPPhaseStageExistenceStartsEnds,label:"Add Existence Starts and Ends During (BP/Phase/Stage)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:61,showInMenu:!0},predicate:Ht.edge.existenceStartsEndsDuring,cardinality:ja.oneToMany}],[vn.GoCellTypeEntity]:[{label:"Add part of (Anatomy)",id:vn.GoAnatomicalEntity,node:{category:[p3],type:vn.GoAnatomicalEntity,label:"part of (Anatomy)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:40,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:ja.oneToOne},{label:"Add part of (Organism)",id:vn.GoOrganism,node:{category:[wC],type:vn.GoOrganism,label:"part of (Organism)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:50,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:ja.oneToOne}],[vn.GoAnatomicalEntity]:[{label:"Add part of (Organism)",id:vn.GoOrganism,node:{category:[wC],type:vn.GoOrganism,label:"part of (Organism)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:50,showInMenu:!0},predicate:Ht.edge.partOf,cardinality:ja.oneToOne}],[vn.GoChemicalEntity]:[{label:"Add located in (CC)",id:vn.GoCellularComponent,node:{category:[e1],type:vn.GoCellularComponent,aspect:"C",label:"located in (CC)",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,isExtension:!0,weight:20,showInMenu:!0},predicate:Ht.edge.locatedIn,cardinality:ja.oneToOne}]};class iu{constructor(n,e){this.count=0,this.frequency=0,this.tooltip="",this.nodes=[],this.label=n||null,this.shorthand=e||null}getSortedNodes(){return(0,Nt.orderBy)(this.nodes,["frequency"],["desc"])}append(n){this.nodes.push(n),this.count=this.nodes.length,n instanceof nP?this.tooltip+=`${n.term.label} (${n.term.id}) \n`:n instanceof Rl&&(this.tooltip+=`${n.evidence.label} (${n.evidence.id}) \n\n ${n.referenceEntity.label} \n\n ${n.withEntity.label} \n`)}}class Iz{constructor(){this.bp=new iu("Biological Process","BP"),this.cc=new iu("Cellular Component","CC"),this.mf=new iu("Molecular Function","MF"),this.gp=new iu("Gene Product","GP"),this.other=new iu("Other"),this.evidences=new iu("Evidence(Full)"),this.evidenceEcos=new iu("Evidence Codes"),this.references=new iu("Reference"),this.withs=new iu("With/From"),this.papers=new iu("PMID Papers"),this.contributors=new iu("Contribution"),this.relations=new iu("Relations"),this.dates=new iu("Dates"),this.allTerms=[],this.nodes=[],this.nodes=[this.mf,this.bp,this.cc]}}var PC=v(15439),d$e=v.t(PC,2),oP=v.n(PC),EC=(()=>{return(t=EC||(EC={}))[t.creation=1]="creation",t[t.editing=2]="editing",EC;var t})(),p4=(()=>{return(t=p4||(p4={})).GP="gp",t.MF="mf",t.BP="bp",t.CC="cc",t.DATE="date",p4;var t})(),ru=(()=>{return(t=ru||(ru={})).TABLE="table",t.TREE="tree",t.TREE_TABLE="tree_table",t.SLIM_TREE="slim_tree",t.GRAPH="graph",ru;var t})(),Wi=(()=>{return(t=Wi||(Wi={})).default="default",t.bpOnly="bpOnly",t.ccOnly="ccOnly",t.molecule="molecule",t.proteinComplex="proteinComplex",Wi;var t})();class u$e{constructor(){this.width=150,this.height=150}}class h$e{constructor(){this.x=0,this.y=0}}class TC extends doe{constructor(){super(),this.validateEvidence=!0,this.modified=!1,this.expanded=!1,this.visible=!0,this.graphPreview={nodes:[],edges:[]},this.summary=new Iz,this.activityDisplayType=ru.TREE,this.displayNumber="1",this.hasViolations=!1,this.violations=[],this.position=new h$e,this.size=new u$e,this._backgroundColor="green",this.activityType="default",this.id=OC(),this.errors=[],this.submitErrors=[]}updateProperties(){this.updateSummary(),this.updateDate(),this.gpNode=this.getGPNode(),this.mfNode=this.getMFNode(),this.bpNode=this.getRootNodeByType(vn.GoBiologicalProcess),this.ccNode=this.getRootNodeByType(vn.GoCellularComponent)}get id(){return this._id}set id(n){this._id=n,this.displayId=Rh.cleanID(n)+"activity"}get backgroundColor(){switch(this.activityType){case Wi.ccOnly:return"purple";case Wi.bpOnly:return"brown";case Wi.molecule:return"teal";default:return this._backgroundColor}}get activityConnections(){throw new Error("Method not implemented")}get rootNodeType(){return this.activityType===Wi.ccOnly?vn.GoMolecularEntity:this.activityType===Wi.molecule?vn.GoChemicalEntity:vn.GoMolecularFunction}get rootNode(){return this.getNode(this.rootNodeType)}get rootEdge(){let n;return n=this.getEdge(vn.GoMolecularFunction,this.activityType===Wi.proteinComplex?vn.GoProteinContainingComplex:vn.GoMolecularEntity),n}postRunUpdateCompliment(){const n=this;if(this.activityType===Wi.default||this.activityType===Wi.bpOnly){const e=n.getMFNode(),i=n.getEdge(vn.GoMolecularFunction,vn.GoMolecularEntity);e&&i&&e.isComplement&&(i.predicate.isComplement=!0)}}postRunUpdate(){const n=this;if(this.activityType!==Wi.ccOnly){const e=n.getMFNode(),i=n.rootEdge;e&&i&&(e.predicate=i.predicate,i.predicate.edge&&(i.predicate.edge.label=""))}}getActivityTypeDetail(){return Ht.activityType.options[this.activityType]}updateDate(){const n=this,e=this.rootNode;!e||(n.date=oP()(e.date,"YYYY-MM-DD"),(0,Nt.each)(n.nodes,i=>{const r=oP()(i.date,"YYYY-MM-DD");r>n.date&&(n.date=r)}),(0,Nt.each)(n.edges,i=>{(0,Nt.each)(i.predicate.evidence,r=>{const o=oP()(r.date,"YYYY-MM-DD");o>n.date&&(n.date=o)})}),this.formattedDate=n.date.format("ll"))}updateSummary(){let e=new Iz,i=0;const r=this.nodes.filter(o=>o.term.hasValue());(0,Nt.each)(r,o=>{o.type===vn.GoMolecularFunction?e.mf.append(o):o.type===vn.GoBiologicalProcess?e.bp.append(o):o.type===vn.GoCellularComponent?e.cc.append(o):e.other.append(o)}),e.mf.nodes.length>0&&(i|=4),e.bp.nodes.length>0&&(i|=2),e.cc.nodes.length>0&&(i|=1),e.coverage=i,this.summary=e}updateEntityInsertMenu(){const n=this;(0,Nt.each)(n.nodes,e=>{const r=[];(0,Nt.each)(hoe[e.type]||[],o=>{o.cardinality===ja.oneToOne&&n.edgeTypeExist(e.id,o.predicate.id,e.type,o.node.type)||r.push(o)}),e.canInsertNodes=r,e.insertMenuNodes=(0,Nt.filter)(r,o=>o.node.showInMenu)})}updateShapeMenuShex(n){(0,Nt.each)(this.nodes,i=>{const r=i.category.map(c=>c.category);n&&r.push(...n.map(c=>c.id));const o=(t=>{const n=[],e=__.genTermLookupTable(),i=uoe.Y;return t.forEach(r=>{const o=__.getSubjectShapes(i,r);if(o){__.getPredicates(i);const c=__.getRangeLabels(o,e);n.push(...c)}}),(0,Nt.uniqWith)(n,c$e)})(r),a=[];(0,Nt.each)(o,c=>{a.push(c)}),i.canInsertNodes=a,i.insertMenuNodes=(0,Nt.filter)(a,c=>!0)})}updateEdges(n,e,i){const r=this;let a=!1;(0,Nt.each)(hoe[n.type]||[],c=>{if(i.edge.id===c.predicate.id&&c.cardinality===ja.oneToOne){const u=r.edgeTypeExist(n.id,c.predicate.id,n.type,c.node.type);if(u)return u.object.treeLevel++,r.removeEdge(u.subject,u.object,u.predicate),r.addEdge(u.subject,e,u.predicate),r.addEdge(e,u.object,i),a=!0,!1}}),a||r.addEdgeById(n.id,e.id,i)}getNodesByType(n){return(0,Nt.filter)(this.nodes,r=>r.type===n)}getGPNode(){const n=this;return n.getNode(n.activityType===Wi.proteinComplex?vn.GoProteinContainingComplex:n.activityType===Wi.molecule?vn.GoChemicalEntity:vn.GoMolecularEntity)}getFDRootNode(){return this.getNode(this.activityType===Wi.molecule?vn.GoCellularComponent:vn.GoMolecularFunction)}getMFNode(){return this.getNode(vn.GoMolecularFunction)}getBPNode(){return this.getNode(vn.GoBiologicalProcess)}getCCNode(){return this.getNode(vn.GoCellularComponent)}getRootNodeByType(n){const i=this.getEdges(this.rootNode.id),r=(0,Nt.find)(i,o=>o.object.type===n);return r?r.object:null}adjustCC(){const e=this.getNode(vn.GoCellularComponent);if(e&&!e.hasValue()){const i=this.getEdges(e.id);if(i.length>0){const r=i[0],o=Ht.rootNode.cc;e.term=new _i(o.id,o.label),e.predicate.evidence=r.predicate.evidence}}}getViolationDisplayErrors(){const e=[];return e.push(...this.violations.map(i=>i.getDisplayError())),e}adjustActivity(){const n=this;if(n.activityType===Ht.activityType.options.bpOnly.name){const e=Ht.rootNode.mf,i=n.getMFNode(),r=n.getNode(vn.GoBiologicalProcess),o=n.getEdge(i.id,r.id);i.term=new _i(e.id,e.label),i.predicate.evidence=r.predicate.evidence,n.bpOnlyEdge&&(o.predicate.edge.id=r.predicate.edge.id=n.bpOnlyEdge.id,o.predicate.edge.label=r.predicate.edge.label=n.bpOnlyEdge.label)}if(n.activityType!==Wi.ccOnly&&n.activityType!==Wi.molecule){const e=n.getMFNode(),i=n.rootEdge;e&&i&&(i.predicate.evidence=e.predicate.evidence)}}copyValues(n){(0,Nt.each)(this.nodes,function(i){const r=n.getNode(i.id);r&&i.copyValues(r)})}setActivityType(n){this.activityType=n}getEdgesByEdgeId(n){return(0,Nt.filter)(this.edges,r=>r.predicate.edge.id===n)||null}enableSubmit(){const n=this;let e=!0;if(n.submitErrors=[],(0,Nt.each)(n.nodes,i=>{e=i.enableSubmit(n.submitErrors,this.validateEvidence)&&e}),n.activityType===Wi.bpOnly&&!n.bpOnlyEdge){const r=new q2(dl.error,ll.general,"Causal relation is required",{aspect:"Molecular Function"});n.submitErrors.push(r),e=!1}if(n.nodes.length<2){const i=new q2(dl.error,ll.general,"At least 2 nodes are required");n.submitErrors.push(i),e=!1}return e}createSave(){var n;const e=this,i={title:"enabled by "+(null===(n=e.getNode(vn.GoMolecularEntity))||void 0===n?void 0:n.term.label),triples:[],nodes:[],graph:null};e.adjustCC(),e.adjustActivity();const r=e.getTrimmedGraph(this.rootNodeType),o=u4(r),a=h4(r);return i.nodes=Object.values(o),i.triples=a.map(c=>c.metadata),i.graph=r,i}createCCSave(){const n=this,e=n.getEdges(n.rootNode.id);(0,Nt.each)(e,i=>{const r=new TC;r.addNode(n.rootNode),r.addEdge(i.subject,i.object,i.predicate)})}createEdit(n){const i=n.createSave(),r=this.createSave();return{addNodes:r.nodes,addTriples:r.triples,removeIds:r$e(i.graph,r.graph).map(a=>a.uuid),removeTriples:[]}}createEditEvidence(n,e){const r=n.getEdge(e.subjectId,e.objectId);return{addTriples:this.getEdge(e.subjectId,e.objectId),removeTriples:r}}createAddIndividual(n,e){return{addTriples:this.getEdge(e.subjectId,e.objectId)}}createDelete(){const e={uuids:[],triples:[]},i=[];return(0,Nt.each)(this.nodes,r=>{r.hasValue()&&i.push(r.uuid)}),e.uuids=i,e}createActivityNodeDelete(n){const i={uuids:[]},r=this.descendants(n.id).map(o=>o.uuid);return r.push(n.uuid),i.uuids=r,i}setPreview(){const n=this,e=n.createSave();n.graphPreview.nodes=e.nodes.map(i=>({id:i.id,label:i.term.label?i.term.label:""})),n.graphPreview.edges=e.triples.map(i=>({source:i.subject.id,target:i.object.id,label:i.predicate.edge.label}))}insertSubgraph(n,e,i){n.getTrimmedGraph(i.id)}get title(){const n=this,e=n.getGPNode(),i=e?e.getTerm().label:"";let r="";return r=n.activityType===Wi.ccOnly||n.activityType===Wi.molecule?i:`enabled by (${i})`,r}buildTrees(){const n=this,e=n.edges.sort(soe),i=n.getFDRootNode();return i?[n._buildTree(e,i)]:[]}buildGPTrees(){const n=this,e=n.edges.sort(soe);return[n._buildTree(e,n.gpNode)]}_buildTree(n,e){if(!e)return;const r=[new poe(e)],o=a=>{for(const c in a){const u=[];for(const f in n)n[f].subject.id===a[c].node.id&&u.push(new poe(n[f].object));u.length>0&&(a[c].children=u,o(u))}};return o(r),r[0]}get presentation(){const n=this;if(this._presentation)return this._presentation;const e=n.getNode(vn.GoMolecularEntity),i=n.getNode(vn.GoMolecularFunction),r=e?e.getTerm().label:"",o=i?i.getTerm().label:"";let a="",c="";n.activityType===Wi.ccOnly||n.activityType===Wi.molecule||n.activityType===Wi.proteinComplex?c=r:(a=i.isComplement?"NOT":"",c=`enabled by ${r}`);const u={qualifier:a,title:c,gpText:r,mfText:o,gp:{},fd:{},extra:[]},f=n.nodes.sort(toe);return(0,Nt.each)(f,function(w){w.displaySection&&w.displayGroup&&(u[w.displaySection.id][w.displayGroup.id]||(u[w.displaySection.id][w.displayGroup.id]={shorthand:w.displayGroup.shorthand,label:w.displayGroup.label,nodes:[]}),u[w.displaySection.id][w.displayGroup.id].nodes.push(w),w.nodeGroup=u[w.displaySection.id][w.displayGroup.id],w.isComplement&&(w.nodeGroup.isComplement=!0))}),this._presentation=u,this._presentation}resetPresentation(){this._presentation=null}}class poe{constructor(n,e=[]){this.node=n,this.id=n.id,this.children=e}}function p$e(t,n){return t.id===n.id}const g$e={type:Wi.default,nodes:{[vn.GoMolecularFunction]:{id:ul.id,type:vn.GoMolecularFunction,category:[ul],label:"Molecular Function",aspect:"F",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,skipEvidenceCheck:!0,canDelete:!1,termRequired:!0,weight:1}},triples:[]},m$e={type:Wi.bpOnly,isComplex:!0,nodes:{[vn.GoMolecularFunction]:{id:ul.id,type:vn.GoMolecularFunction,category:[ul],label:"Molecular Function",aspect:"F",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,skipEvidenceCheck:!0,visible:!1,canDelete:!1,weight:1}},triples:[]},_$e={type:Wi.ccOnly,nodes:{[vn.GoMolecularEntity]:{id:Fl.id,type:vn.GoMolecularEntity,category:[Fl,zl],label:"Gene Product",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:1}},triples:[]},v$e={type:Wi.proteinComplex,nodes:{[vn.GoMolecularFunction]:{id:ul.id,type:vn.GoMolecularFunction,category:[ul],label:"Molecular Function",aspect:"F",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,skipEvidenceCheck:!0,visible:!1,canDelete:!1,weight:1}},triples:[]},C$e={type:Wi.molecule,nodes:{[vn.GoChemicalEntity]:{id:Y0.id,type:vn.GoChemicalEntity,category:[Y0],label:"Molecule",skipEvidenceCheck:!0,showEvidence:!1,termRequired:!0,canDelete:!1,displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:1}},triples:[]},b$e={type:Wi.default,nodes:{[vn.GoMolecularFunction]:{id:ul.id,type:vn.GoMolecularFunction,category:[ul],label:"Molecular Function",aspect:"F",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,termRequired:!0,canDelete:!1,weight:1},[vn.GoMolecularEntity]:{id:Fl.id,type:vn.GoMolecularEntity,category:[Fl,zl],label:"enabled by (GP)",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,termRequired:!0,skipEvidenceCheck:!0,canDelete:!1,weight:2},[vn.GoBiologicalProcess]:{id:D1.id,type:vn.GoBiologicalProcess,category:[D1],label:"(MF) part of (BP)",aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,weight:10},[vn.GoCellularComponent]:{id:e1.id,type:vn.GoCellularComponent,category:[e1],label:"(MF) occurs in (CC)",aspect:"C",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:20}},triples:[{subject:vn.GoMolecularFunction,object:vn.GoMolecularEntity,predicate:Ht.edge.enabledBy},{subject:vn.GoMolecularFunction,object:vn.GoBiologicalProcess,predicate:Ht.edge.partOf},{subject:vn.GoMolecularFunction,object:vn.GoCellularComponent,predicate:Ht.edge.occursIn}]},x$e={type:Wi.bpOnly,nodes:{[vn.GoMolecularFunction]:{id:ul.id,type:vn.GoMolecularFunction,category:[ul],label:"Molecular Function",aspect:"F",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,visible:!1,canDelete:!1,weight:1},[vn.GoMolecularEntity]:{id:Fl.id,type:vn.GoMolecularEntity,category:[Fl,zl],label:"enabled by (GP)",displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,termRequired:!0,skipEvidenceCheck:!0,canDelete:!1,weight:2},[vn.GoBiologicalProcess]:{id:D1.id,type:vn.GoBiologicalProcess,category:[D1],label:"Biological Process",aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,termRequired:!0,weight:10},[vn.GoCellularComponent]:{id:e1.id,type:vn.GoCellularComponent,category:[e1],label:"occurs in (CC)",aspect:"C",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:20}},triples:[{subject:vn.GoMolecularFunction,object:vn.GoMolecularEntity,predicate:Ht.edge.enabledBy},{subject:vn.GoMolecularFunction,object:vn.GoBiologicalProcess,predicate:Ht.edge.causallyUpstreamOfOrWithin},{subject:vn.GoBiologicalProcess,object:vn.GoCellularComponent,predicate:Ht.edge.occursIn}],overrides:{[vn.GoBiologicalProcess]:{label:"Biological Process"},[vn.GoCellularComponent]:{}}},y$e={type:Wi.ccOnly,nodes:{[vn.GoMolecularEntity]:{id:Fl.id,type:vn.GoMolecularEntity,category:[Fl,zl],label:"Gene Product",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:1}},triples:[]},w$e={type:Wi.proteinComplex,isComplex:!0,nodes:{[vn.GoProteinContainingComplex]:{id:zl.id,type:vn.GoProteinContainingComplex,category:[zl],label:"Protein Complex",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:2},[vn.GoMolecularFunction]:{id:ul.id,type:vn.GoMolecularFunction,category:[ul],label:"Molecular Function",aspect:"F",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.mf,termRequired:!0,canDelete:!1,weight:1},[vn.GoBiologicalProcess]:{id:D1.id,type:vn.GoBiologicalProcess,category:[D1],label:"(MF) part of (BP)",aspect:"P",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.bp,weight:10},[vn.GoCellularComponent]:{id:e1.id,type:vn.GoCellularComponent,category:[e1],label:"(MF) occurs in (CC)",aspect:"C",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:20}},triples:[{subject:vn.GoMolecularFunction,object:vn.GoProteinContainingComplex,predicate:Ht.edge.enabledBy},{subject:vn.GoMolecularFunction,object:vn.GoBiologicalProcess,predicate:Ht.edge.partOf},{subject:vn.GoMolecularFunction,object:vn.GoCellularComponent,predicate:Ht.edge.occursIn}]},M$e={type:Wi.molecule,nodes:{[vn.GoChemicalEntity]:{id:Y0.id,type:vn.GoChemicalEntity,category:[Y0],label:"Molecule",skipEvidenceCheck:!0,termRequired:!0,canDelete:!1,displaySection:Ht.displaySection.gp,displayGroup:Ht.displayGroup.gp,weight:1},[vn.GoCellularComponent]:{id:e1.id,type:vn.GoCellularComponent,category:[e1],label:"(Chemical) located in (CC)",aspect:"C",displaySection:Ht.displaySection.fd,displayGroup:Ht.displayGroup.cc,weight:20}},triples:[{subject:vn.GoChemicalEntity,object:vn.GoCellularComponent,predicate:Ht.edge.locatedIn}]},AC=t=>{const e=new TC;return e.activityType=t.type,(0,Nt.each)(t.nodes,i=>{const r=Vu(i.category,i);e.addNode(r)}),(0,Nt.each)(t.triples,i=>{const r=e.getNode(i.object);if(r){const o=r.predicate;o.edge=_i.createEntity(i.predicate),r.treeLevel++,e.addEdgeById(i.subject,i.object,o)}}),e.updateEntityInsertMenu(),e.enableSubmit(),e},DC=t=>{const e=new TC;return e.activityType=t.type,(0,Nt.each)(t.nodes,i=>{const r=Vu(i.category,i);e.addNode(r)}),(0,Nt.each)(t.triples,i=>{const r=e.getNode(i.object);if(r){const o=r.predicate;o.edge=_i.createEntity(i.predicate),r.treeLevel++,e.addEdgeById(i.subject,i.object,o)}}),e.updateShapeMenuShex(),e.enableSubmit(),e},aP=(t,n,e)=>{const i=Vu(e.node.category,e.node);i.id=t.exist(e.node.type)?`${e.node.type}'@@'${OC()}`:e.node.type,i.subjectId=n.id,i.type=e.node.type,t.addNode(i),i.treeLevel=n.treeLevel+1;const r=t.getNode(i.id).predicate;return r.subjectId=n.id,r.objectId=i.id,r.edge=_i.createEntity(e.predicate),t.updateEdges(n,i,r),t.resetPresentation(),i};class v_{constructor(){this.entityType=G0.CONTRIBUTOR,this.group={},this._groups=[]}set groups(n){this._groups=n,n&&n.length>0&&(this.group=n[0])}get groups(){return this._groups}static fromResponse(n){const e=new v_;return e.orcid=n.uri,e.name=n.nickname,e.groups=n.groups,e}}function S$e(t,n){return t.name{class t{constructor(e){this.httpClient=e,this.baristaUrl=lo.globalBaristaLocation,this.contributors=[],this.groups=[],this.onUserChanged=new mr(void 0)}set baristaToken(e){this._baristaToken=e}get baristaToken(){return this._baristaToken}getUser(e){const i=e||localStorage.getItem("barista_token");if(i)return this.httpClient.get(`${this.baristaUrl}/user_info_by_token/${i}`).subscribe(r=>{if(r){r.token?(this.user=v_.fromResponse(r),this.user.token=this.baristaToken=r.token,localStorage.setItem("barista_token",this.baristaToken)):(this.user=null,this.baristaToken=null,localStorage.removeItem("barista_token")),this.onUserChanged.next(this.user);const o=new URL(window.location.href);o.searchParams.delete("barista_token"),window.history.replaceState(null,null,o.href)}});this.baristaToken=null,this.user=null,this.onUserChanged.next(this.user)}getUsers(){return this.httpClient.get(`${this.baristaUrl}/users`)}getUserInfo(e){const r=encodeURIComponent(e);return this.httpClient.get(`${this.baristaUrl}/user_info_by_id/${r}`)}getContributorDetails(e){return(0,Nt.find)(this.contributors,o=>o.orcid===e)}getContributorName(e){const r=(0,Nt.find)(this.contributors,o=>o.orcid===e);return r?r.name:e}getContributorsFromAnnotations(e){const i=this;return e.map(o=>{const a=o.value(),c=i.getContributorDetails(o.value());if(c)return c;{const u=new v_;return u.orcid=u.name=a,u}})}getGroups(){return this.httpClient.get(`${this.baristaUrl}/groups`)}getGroupDetails(e){return(0,Nt.find)(this.groups,o=>o.url===e)}getGroupDetailsByName(e){return(0,Nt.find)(this.groups,o=>o.name===e)}getGroupInfo(e){const r=encodeURIComponent(e);return this.httpClient.get(`${this.baristaUrl}/group_info_by_id/${r}`)}getGroupsFromAnnotations(e){const i=this;return e.map(o=>{const a=o.value();return i.getGroupDetails(o.value())||new Nz(null,a)})}getGroupsFromUrls(e){const i=this;return e.map(o=>i.getGroupDetails(o)||new Nz(null,o))}getGroupsFromNames(e){const i=this;return e.map(o=>i.getGroupDetailsByName(o)||new Nz(null,o))}filterContributors(e){const i=e.toLowerCase();return this.contributors.filter(r=>0===r.name.toLowerCase().indexOf(i))}filterGroups(e){const i=e.toLowerCase();return this.groups.filter(r=>0===r.name.toLowerCase().indexOf(i))}getGroupName(e){const r=(0,Nt.find)(this.groups,o=>o.url===e);return r?r.name:e}distinctUser(e,i){return e&&i?e.token===i.token:e===i}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xd))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lr=(()=>{class t{constructor(e){this.noctuaUserService=e,this.globalUrl={},this._parameterize=i=>Object.keys(i).map(r=>r+"="+i[r]).join("&"),this.onSetupReady=new mr(null)}get edges(){return Ht.edge}get modelState(){const e=[Ht.modelState.options.development,Ht.modelState.options.production,Ht.modelState.options.review,Ht.modelState.options.closed,Ht.modelState.options.delete,Ht.modelState.options.internal_test];return{options:e,selected:e[0]}}get graphLayoutDetail(){const e=[Ht.graphLayoutDetail.options.activity,Ht.graphLayoutDetail.options.detailed,Ht.graphLayoutDetail.options.preview];return{options:e,selected:e[0]}}findModelState(e){return(0,Nt.find)(this.modelState.options,r=>r.name===e)}get evidenceDBs(){const e=[Ht.evidenceDB.options.pmid,Ht.evidenceDB.options.doi,Ht.evidenceDB.options.goRef];return{options:e,selected:e[0]}}get activityType(){const e=[Ht.activityType.options.default,Ht.activityType.options.bpOnly,Ht.activityType.options.ccOnly];return{options:e,selected:e[0]}}get activitySortField(){const e=[Ht.activitySortField.options.gp,Ht.activitySortField.options.date,Ht.activitySortField.options.mf,Ht.activitySortField.options.bp,Ht.activitySortField.options.cc];return{options:e,selected:e[0]}}get bpOnlyEdges(){const e=[Ht.edge.causallyUpstreamOfOrWithin,Ht.edge.causallyUpstreamOf,Ht.edge.causallyUpstreamOfPositiveEffect,Ht.edge.causallyUpstreamOfNegativeEffect,Ht.edge.causallyUpstreamOfOrWithinPositiveEffect,Ht.edge.causallyUpstreamOfOrWithinNegativeEffect];return{options:e,selected:e[0]}}get ccOnlyEdges(){const e=[Ht.edge.partOf,Ht.edge.locatedIn,Ht.edge.isActiveIn];return{options:e,selected:e[0]}}get graphDisplayDefaultEdges(){const e=[Ht.edge.enabledBy,Ht.edge.partOf,Ht.edge.occursIn,Ht.edge.hasInput];return{options:e,selected:e[0]}}get effectDirection(){const e=[Ht.effectDirection.positive,Ht.effectDirection.negative];return{options:e,selected:e[0]}}get findReplaceCategories(){const e=[Ht.findReplaceCategory.options.term,Ht.findReplaceCategory.options.gp,Ht.findReplaceCategory.options.reference];return{options:e,selected:e[0]}}get directness(){const e=[Ht.directness.direct,Ht.directness.indirect];return{options:e,selected:e[0]}}get activityRelationship(){const e=[Ht.activityRelationship.regulation,Ht.activityRelationship.constitutivelyUpstream,Ht.activityRelationship.providesInputFor,Ht.activityRelationship.removesInputFor,Ht.activityRelationship.undetermined];return{options:e,selected:e[0]}}get activityMoleculeRelationship(){const e=[Ht.activityMoleculeRelationship.product];return{options:e,selected:e[0]}}get moleculeActivityRelationship(){const e=[Ht.moleculeActivityRelationship.regulates,Ht.moleculeActivityRelationship.substrate];return{options:e,selected:e[0]}}setupUrls(){const e=this,i=e.noctuaUserService.baristaToken,r=new URL(window.location.href);r.searchParams.delete("barista_token");const a={barista_token:i},c={return:r.href};this.loginUrl=lo.globalBaristaLocation+"/login?"+e._parameterize(Object.assign({},c)),this.logoutUrl=lo.globalBaristaLocation+"/logout?"+e._parameterize(Object.assign({},a,c)),this.noctuaUrl=lo.noctuaUrl+"?"+(i?e._parameterize(Object.assign({},a)):""),this.homeUrl=window.location.href}setUniversalUrls(){const e=this;e.globalUrl={};let i=new B2;e.noctuaUserService.baristaToken&&(i=i.append("barista_token",e.noctuaUserService.baristaToken));const r=i.toString();return e.globalUrl.goUrl="http://www.geneontology.org/",e.globalUrl.noctuaUrl=lo.noctuaUrl+"?"+r,e.globalUrl.universalWorkbenches=lo.globalWorkbenchesUniversal.map(o=>({label:o["menu-name"],url:lo.workbenchUrl+o["workbench-id"]+"?"+r})),e.globalUrl.universalBetaTestWorkbenches=lo.globalWorkbenchesUniversalBetaTest.map(o=>({label:o["menu-name"],url:lo.workbenchUrl+o["workbench-id"]+"?"+r})),e.globalUrl}getModelUrls(e){const r={};let o=new B2;this.noctuaUserService.baristaToken&&(o=o.append("barista_token",this.noctuaUserService.baristaToken)),r.graphEditorUrl=lo.noctuaUrl+"/editor/graph/"+e+"?"+o.toString(),e&&(o=o.append("model_id",e));const a=o.toString();return r.owlUrl=lo.noctuaUrl+"/download/"+e+"/owl",r.gpadUrl=lo.noctuaUrl+"/download/"+e+"/gpad",r.noctuaFormUrl=lo.workbenchUrl+"noctua-form?"+a,r.noctuaVPEUrl=lo.workbenchUrl+"noctua-visual-pathway-editor?"+a,r.modelWorkbenches=lo.globalWorkbenchesModel.map(c=>({id:c["workbench-id"],label:c["menu-name"],url:lo.workbenchUrl+c["workbench-id"]+"?"+a})),r.modelBetaTestWorkbenches=lo.globalWorkbenchesModelBetaTest.map(c=>({id:c["workbench-id"],label:c["menu-name"],url:lo.workbenchUrl+c["workbench-id"]+"?"+a})),r.workbenches={},r.modelWorkbenches.forEach(c=>{r.workbenches[c.id]=c}),r}createPredicate(e,i){const r=new xm(e,i);return(t=>{const n=Tz([Dz]);t.setEvidenceMeta("eco",Object.assign({},JSON.parse(JSON.stringify(Az)),{fq:['document_category:"ontology_class"',n]}))})(r),r}createActivityBaseModel(e){switch(e){case Wi.default:return AC(g$e);case Wi.bpOnly:return AC(m$e);case Wi.ccOnly:return AC(_$e);case Wi.molecule:return AC(C$e);case Wi.proteinComplex:return AC(v$e)}}createActivityModel(e){switch(e){case Wi.default:return DC(b$e);case Wi.bpOnly:return DC(x$e);case Wi.ccOnly:return DC(y$e);case Wi.molecule:return DC(M$e);case Wi.proteinComplex:return DC(w$e)}}insertActivityNode(e,i,r){return aP(e,i,r)}insertActivityNodeShex(e,i,r){return((t,n,e)=>{const i=__.genTermLookupTable(),r=uoe.Y,o=[];n.category.forEach(f=>{console.log(f.category);const w=__.getRangeBySubject(r,f.category,e.id);if(w){const E=w.object.map(B=>{const Z=i[B],ee=new VXe;return ee.category=Z.id,ee});o.push(...E)}});const a=((t,n,e)=>({type:vn.GoMolecularEntity,category:e,label:n.label,canDelete:!0,displaySection:t.displaySection,displayGroup:t.displayGroup,weight:t.weight+2}))(n,e,o),c=Vu(o,a);c.id=OC(),c.subjectId=n.id,t.addNode(c),c.treeLevel=n.treeLevel+1;const u=t.getNode(c.id).predicate;return u.subjectId=n.id,u.objectId=c.id,u.edge=_i.createEntity(e),t.updateEdges(n,c,u),t.resetPresentation(),c})(e,i,r)}insertActivityNodeByPredicate(e,i,r,o){let c;return(0,Nt.each)(i.canInsertNodes,u=>{if(r===u.predicate.id){if(o&&o.hasRootTypes(u.node.category))return c=aP(e,i,u),!1;if(!o)return c=aP(e,i,u),!1}}),c}createActivityModelFakeData(e){const r=this.createActivityModel(Wi.default);return e.forEach(o=>{const a=r.getNode(o.id),c=[];a.term=new _i(o.term.id,o.term.label),(0,Nt.each)(o.evidence,u=>{const f=new Rl;f.evidence=new _i(u.evidence.id,u.evidence.label),f.reference=u.reference,f.with=u.with,c.push(f)}),a.predicate.setEvidence(c)}),r.enableSubmit(),r}findEdge(e){const i=(0,Nt.find)(Ht.allEdges,{id:e});return _i.createEntity(i||{id:e,label:e})}getAspect(e){const i=(0,Nt.find)(Ht.rootNode,{id:e});return i?i.aspect:""}getModelId(e){return"gomodel:"+e.substr(e.lastIndexOf("/")+1)}getIndividalId(e){return"gomodel:"+e.substr(e.lastIndexOf("/")+2)}}return t.\u0275fac=function(e){return new(e||t)(Rt(uo))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Fh=(()=>{return(t=Fh||(Fh={})).RESET="reset",t.STORE="store",Fh;var t})(),f3=(()=>{return(t=f3||(f3={})).NONE="none",t.MERGE="merge",t.REBUILD="rebuild",f3;var t})(),g3=(()=>{return(t=g3||(g3={})).NONE="none",t.ADD_ACTIVITY="add_activity",t.ADD_CAUSAL_RELATION="add_causal_relation",g3;var t})();class Rz{constructor(){this.terms=[],this.reference=[]}}class T$e{constructor(){this.field=p4.GP,this.label="",this.ascending=!0}}class ym{constructor(){this.totalChanges=0,this.camsCount=0,this.termsCount=0,this.gpsCount=0,this.evidenceCount=0,this.referencesCount=0,this.withsCount=0,this.relationsCount=0}updateTotal(){this.totalChanges=this.termsCount+this.gpsCount+this.evidenceCount+this.referencesCount+this.withsCount+this.relationsCount}}class Pd{constructor(n=!1,e=""){this.status=!1,this.message="",this.status=n,this.message=e}reset(){this.status=!1,this.message=""}}class A$e{constructor(){this.signal=f3.NONE,this.count=0,this.autoRebuild=!1,this.autoMerge=!1,this.message="",this.description=""}addMergeSignal(){this.count++,1===this.count?(this.signal=f3.MERGE,this.message="new changes available. Please refresh Model",this.description="Model has pending Changes. Please Reload"):(this.signal=f3.REBUILD,this.message="another new changes available. Please reload Model",this.description="Model has pending Changes. Please Reload")}addRebuildSignal(){this.count++,this.signal=f3.REBUILD,this.message="Model has been saved. Please reload Model",this.description="Model has pending Changes. Please Reload"}reset(){this.count=0,this.signal=f3.NONE,this.message="",this.description=""}}class sP{constructor(){this.comments=[],this.groups=[],this.contributors=[],this.expanded=!1,this.causalRelations=[],this.sortBy=new T$e,this.error=!1,this.modified=!1,this.modifiedStats=new ym,this.matchedCount=0,this.queryMatch=new Rz,this.dateReviewAdded=Date.now(),this.operation=g3.NONE,this.rebuildRule=new A$e,this.moreDetail=!1,this.displayNumber="1",this.graphPreview={nodes:[],edges:[]},this.loading=new Pd(!1),this.isReasoned=!1,this.hasViolations=!1,this.manualLayout=!1,this.layoutChanged=!1,this._filteredActivities=[],this._activities=[],this._storedActivities=[]}get id(){return this._id}set id(n){this._id=n,this.displayId=Rh.cleanID(n)}get activities(){var n;const e=this.sortBy.ascending?"asc":"desc";switch(null===(n=this.sortBy)||void 0===n?void 0:n.field){case p4.DATE:return(0,Nt.orderBy)(this._activities,["date",this._getGPText],[e,e]);case p4.MF:return(0,Nt.orderBy)(this._activities,[this._getMFText,this._getGPText],[e,e]);case p4.BP:return(0,Nt.orderBy)(this._activities,[this._getBPText,this._getGPText],[e,e]);case p4.CC:return(0,Nt.orderBy)(this._activities,[this._getCCText,this._getGPText],[e,e]);default:return(0,Nt.orderBy)(this._activities,[this._getGPText],[e,e])}}set activities(n){(0,Nt.each)(n,e=>{const i=this.findActivityById(e.id);i&&(e.expanded=i.expanded)}),this._activities=n}get storedActivities(){return this._storedActivities}set storedActivities(n){(0,Nt.each)(n,e=>{const i=this.findActivityById(e.id);i&&(e.expanded=i.expanded)}),this._storedActivities=n}updateSortBy(n,e){this.sortBy.field=n,this.sortBy.label=e}toggleExpand(){this.expanded=!this.expanded}expandAllActivities(n){(0,Nt.each)(this.activities,i=>{i.expanded=n})}getCausalRelation(n,e){return this.causalRelations.find(r=>{var o,a,c,u,f;return(null===(o=r.predicate)||void 0===o?void 0:o.isReverseLink)?(null===(a=r.object)||void 0===a?void 0:a.id)===n&&(null===(c=r.object)||void 0===c?void 0:c.id)===n:(null===(u=r.subject)||void 0===u?void 0:u.id)===n&&(null===(f=r.object)||void 0===f?void 0:f.id)===e})}clearHighlight(){(0,Nt.each)(this._activities,e=>{(0,Nt.each)(e.nodes,i=>{i.term.highlight=!1,(0,Nt.each)(i.predicate.evidence,r=>{r.evidence.highlight=!1,r.referenceEntity.highlight=!1,r.withEntity.highlight=!1})})})}findNodeById(n,e){let r;return(0,Nt.each)(e,o=>{if(r=(0,Nt.find)(o.nodes,a=>a.uuid===n),r)return!1}),r}findActivityById(n){return(0,Nt.find)(this.activities,i=>i.id===n)}findActivityByNodeUuid(n){const i=[];return(0,Nt.each)(this._activities,r=>{(0,Nt.each)(r.nodes,o=>{o.uuid===n&&i.push(r),(0,Nt.each)(o.predicate.evidence,a=>{a.uuid===n&&i.push(r)})})}),i}checkStored(){const n=this;(0,Nt.each)(n._activities,e=>{(0,Nt.each)(e.nodes,i=>{const r=n.findNodeById(i.uuid,n.storedActivities);i.checkStored(r)})})}applyFilter(){const n=this;n.clearHighlight(),n.queryMatch&&n.queryMatch.terms.length>0&&(n._filteredActivities=[],n.matchedCount=0,(0,Nt.each)(n._activities,e=>{let i=!1;(0,Nt.each)(e.nodes,r=>{(0,Nt.each)(n.queryMatch.terms,o=>{r.term.uuid===o.uuid&&(r.term.highlight=!0,r.term.activityDisplayId=o.activityDisplayId=e.displayId,n.matchedCount+=1,i=!0)}),(0,Nt.each)(r.predicate.evidence,o=>{(0,Nt.each)(n.queryMatch.terms,a=>{o.uuid===a.uuid&&(o.referenceEntity.highlight=!0,o.referenceEntity.activityDisplayId=a.activityDisplayId=e.displayId,n.matchedCount+=1,i=!0)})})}),i&&n._filteredActivities.push(e)}))}applyWeights(n=0){const e=this;e.queryMatch&&e.queryMatch.terms.length>0&&(0,Nt.each)(e.activities,i=>{(0,Nt.each)(i.nodes,r=>{const o=(0,Nt.find)(e.queryMatch.terms,{uuid:r.term.uuid});o&&(o.weight=r.term.weight=n,n++),(0,Nt.each)(r.predicate.evidence,a=>{const c=(0,Nt.find)(e.queryMatch.terms,{uuid:a.referenceEntity.uuid});c&&(c.weight=a.referenceEntity.weight=n,n++)})})})}addPendingChanges(n,e,i){(0,Nt.each)(this._activities,o=>{(0,Nt.each)(o.nodes,a=>{(0,Nt.each)(n,c=>{if(i.name===Ht.findReplaceCategory.options.reference.name)(0,Nt.each)(a.predicate.evidence,(u,f)=>{if(u.uuid===c.uuid){const w=new _i(u.reference,u.reference),E=new _i(e,e);u.pendingReferenceChanges=new bm(u.uuid,w,E),u.pendingReferenceChanges.uuid=u.uuid}});else if(a.term.uuid===c.uuid){const u=new _i(e,e);a.pendingEntityChanges=new bm(a.uuid,a.term,u)}})})})}reviewCamChanges(n=new ym){const e=this;let i=!1;return e.modifiedStats=new ym,(0,Nt.each)(e._activities,r=>{(0,Nt.each)(r.nodes,o=>{r.modified=o.reviewTermChanges(n,e.modifiedStats),i=i||r.modified})}),e.modifiedStats.updateTotal(),i}getNodesByType(n){const i=[];return(0,Nt.each)(this.activities,r=>{i.push({activity:r,title:r.title,activityNodes:r.getNodesByType(n)})}),i}getNodesByTypeFlat(n){const i=[];return(0,Nt.each)(this.activities,r=>{i.push(...r.getNodesByType(n))}),i}getTerms(n){const i=[];return n&&n.nodes&&(0,Nt.each)(n.nodes,r=>{i.push(r)}),(0,Nt.each)(this.activities,r=>{(0,Nt.each)(r.nodes,o=>{i.push(o)})}),i}getEvidences(n){const i=[];return n&&n.nodes&&(0,Nt.each)(n.nodes,r=>{(0,Nt.each)(r.predicate.evidence,o=>{o.hasValue()&&i.push(o)})}),(0,Nt.each)(this.activities,r=>{(0,Nt.each)(r.edges,o=>{(0,Nt.each)(o.predicate.evidence,a=>{a.hasValue()&&i.push(a)})})}),i}setViolations(){var n;null===(n=this.violations)||void 0===n||n.forEach(i=>{const r=this.findActivityByNodeUuid(i.node.uuid);r&&r.forEach(o=>{o.hasViolations=!0,o.violations.push(i)})})}getViolationDisplayErrors(){const e=[];return e.push(...this.violations.map(i=>i.getDisplayError())),e}tableCanDisplayEnabledBy(n){return n.predicate.edge&&n.predicate.edge.id===Ht.edge.enabledBy.id}tableDisplayExtension(n){return"mf"===n.id?"":n.isComplement?"NOT "+n.predicate.edge.label:n.predicate.edge.label}updateActivityDisplayNumber(){const n=this;(0,Nt.each)(n.activities,(e,i)=>{e.displayNumber=n.displayNumber+"."+(i+1).toString()})}updateProperties(){var n;(0,Nt.each)(this.activities,(i,r)=>{i.updateProperties()}),this.sortBy.label=null===(n=Ht.activitySortField.options[this.sortBy.field])||void 0===n?void 0:n.label}_getGPText(n){return n.presentation.gpText.toLowerCase()}_getMFText(n){return n.mfNode?n.mfNode.term.label:""}_getBPText(n){return n.bpNode?n.bpNode.term.label:""}_getCCText(n){return n.ccNode?n.ccNode.term.label:""}}class D$e{constructor(n){switch(this.directness=Ht.directness.direct,this.effectDirection=Ht.effectDirection.positive,this.displaySection={directness:!0,effectDirection:!0},n){case s2.ACTIVITY_ACTIVITY:this.relationship=Ht.activityRelationship.regulation;break;case s2.ACTIVITY_MOLECULE:this.relationship=Ht.activityMoleculeRelationship.product;break;case s2.MOLECULE_ACTIVITY:this.relationship=Ht.moleculeActivityRelationship.regulates}}}var m3=(()=>{return(t=m3||(m3={}))[t.creation=1]="creation",t[t.editing=2]="editing",m3;var t})(),s2=(()=>{return(t=s2||(s2={})).ACTIVITY_ACTIVITY="activity",t.ACTIVITY_MOLECULE="activityMolecule",t.MOLECULE_ACTIVITY="moleculeActivity",s2;var t})();class zz extends doe{constructor(n,e,i){super(),this.reverseEdge=!1,this.graphPreview={nodes:[],edges:[]},this.id=OC(),this.subject=n,this.object=e,this.predicate=i,this.setConnectorType(),this.rule=new D$e(this.connectorType),this.subjectNode=(0,Nt.cloneDeep)(this.subject.rootNode),this.objectNode=this.object.rootNode,this.subjectNode.predicate.evidence=i.evidence,this.setRule(),this.setLinkDirection(),this.createGraph(),this.setPreview()}setRule(){const n=this,e=n.edgeToConnectorQuestion(n.predicate.edge);e?Object.entries(e).forEach(i=>{const[r,o]=i,a=o.split(":");n.rule[r]=Ht[a[0]][a[1]]}):(n.rule.relationship=null,n.rule.directness=null,n.rule.effectDirection=null)}addDefaultEvidence(){let n;n=this.connectorType===s2.MOLECULE_ACTIVITY?this.object:this.subject;const e=n.getMFNode(),i=n.getGPNode();if(i&&e){const r=n.getEdge(e.id,i.id);this.predicate.evidence=(0,Nt.cloneDeep)(r.predicate.evidence)}}checkConnection(n){var e;const i=this;if(i.rule.displaySection.effectDirection=!0,n.relationship)switch(n.relationship.id){case Ht.activityRelationship.regulation.id:i.rule.displaySection.effectDirection=!0,i.rule.displaySection.directness=!0;break;case Ht.activityRelationship.constitutivelyUpstream.id:case Ht.activityRelationship.providesInputFor.id:case Ht.activityRelationship.removesInputFor.id:i.rule.displaySection.effectDirection=!1,i.rule.displaySection.directness=!1;break;case Ht.activityRelationship.undetermined.id:case Ht.moleculeActivityRelationship.regulates.id:i.rule.displaySection.effectDirection=!0,i.rule.displaySection.directness=!1;break;case Ht.moleculeActivityRelationship.substrate.id:case Ht.activityMoleculeRelationship.product.id:i.rule.displaySection.effectDirection=!1,i.rule.displaySection.directness=!1}i.predicate.edge=this.getCausalConnectorEdge(null===(e=n.relationship)||void 0===e?void 0:e.id,i.rule.displaySection.effectDirection&&n.effectDirection?n.effectDirection.id:null,i.rule.displaySection.directness&&n.directness?n.directness.id:null),i.prepareSave(n),this.setLinkDirection(),i.setPreview()}getVPEEdge(n,e,i){const r=Ht.decisionTree;if(r[n]){if(r[n].edge)return r[n].edge;if(e&&r[n][e]){if(r[n][e].edge)return r[n][e].edge;if(i&&r[n][e][i])return r[n][e][i].edge}}}getCausalConnectorEdge(n,e,i){const r=this.getVPEEdge(n,e,i),o=(0,Nt.find)(Ht.allEdges,{id:r}),a=_i.createEntity(o||{id:r,label:r});return a.id===Ht.edge.hasInput.id&&(a.label="input of"),a}getInputs(n){const e=Ht.decisionTree;for(const i in e){if(e[i].edge===n)return{relationship:i};if("object"==typeof e[i])for(const r in e[i]){if(e[i][r].edge===n)return{relationship:i,effectDirection:r};if("object"==typeof e[i][r])for(const o in e[i][r])if(e[i][r][o].edge===n)return{relationship:i,effectDirection:r,directness:o}}}return null}edgeToConnectorQuestion(n){return this.getInputs(n.id)}setConnectorType(){this.subject.activityType!==Wi.molecule&&this.object.activityType!==Wi.molecule?this.connectorType=s2.ACTIVITY_ACTIVITY:this.subject.activityType!==Wi.molecule&&this.object.activityType===Wi.molecule?this.connectorType=s2.ACTIVITY_MOLECULE:this.subject.activityType===Wi.molecule&&this.object.activityType!==Wi.molecule&&(this.connectorType=s2.MOLECULE_ACTIVITY)}setLinkDirection(){this.predicate.isReverseLink=this.connectorType===s2.MOLECULE_ACTIVITY&&this.predicate.edge.id===Ht.edge.hasInput.id}setPreview(){this.graphPreview.nodes=[...this._getPreviewNodes()],this.graphPreview.edges=[...this._getPreviewEdges()]}_getPreviewNodes(){let e=[];return e=[this.subject,this.object].map(r=>{const o=r.getMFNode();return{id:r.id,label:o?null==o?void 0:o.term.label:""}}),e}createSave(){const n=this,e={title:"",nodes:[],triples:[],graph:null};let i;return i=n.predicate.isReverseLink?[new zh(n.objectNode,n.subjectNode,n.predicate)]:[new zh(n.subjectNode,n.objectNode,n.predicate)],e.triples=i,e}createEdit(n,e){e&&(this.predicate=e);const r=n.createSave(),o=this.createSave();return{removeTriples:r.triples,addTriples:o.triples}}createEditEvidence(n,e){const i=this;i.predicate.evidence=e.evidence;const r=new zh(i.subjectNode,i.objectNode,n.predicate);return{addTriples:new zh(i.subjectNode,i.objectNode,i.predicate),removeTriples:r}}createDelete(){const n=this,e={triples:[]};return e.triples.push(n.predicate.isReverseLink?new zh(n.objectNode,n.subjectNode,n.predicate):new zh(n.subjectNode,n.objectNode,n.predicate)),e}createGraph(n){const e=this,i=n||e.predicate.evidence;e.addNodes(e.subjectNode,e.objectNode),e.addEdge(e.subjectNode,e.objectNode,new xm(e.predicate.edge,i))}prepareSave(n){const i=n.evidenceFormArray.map(r=>{const o=new Rl;return o.uuid=r.uuid,o.evidence=new _i(r.evidence.id,r.evidence.label),o.reference=r.reference,o.with=r.with,o});this.predicate.evidence=i}_getPreviewEdges(){const n=this;let e=[];return e=[{source:n.subject.id,target:n.object.id,label:n.predicate.edge?n.predicate.edge.label:""}],e}}class Fz{constructor(){this.entityType=G0.ARTICLE}}const foe=v(6268),k$e=new(v(9951).conf)(foe.data.golr),I$e=lo.globalGolrServer,N$e=v(99572).jquery,R$e=v(61503),goe=new N$e(v(6740));goe.use_jsonp(!0);let X2=(()=>{class t{constructor(e,i,r){this.httpClient=e,this.noctuaUserService=i,this.noctuaFormConfigService=r,this.evidenceList=[],this.termList=[],this.articleCache={},this.onArticleCacheReady=new mr(null),this.name="DefaultLookupName",this.linker=new foe.linker,this.golrURLBase=lo.globalGolrNeoServer+"select?",this.localClosures=[]}lookupFunc(){return{termLookup:this.termLookup.bind(this),evidenceLookup:this.evidenceLookup.bind(this)}}escapeGolrValue(e){return e.replace(/([\!\*\+\-\=\<\>\&\|\(\)\[\]\{\}\^\~\?\:\\/"])/g,"\\$1")}buildQ(e){const i=new R$e(I$e,k$e,goe,"async");return i.set_comfy_query(e),i.get_query(e)}termLookup(e,i){const r=this;i.q=r.buildQ(e);const o=new B2({fromObject:i}),a=this.golrURLBase+o.toString();return this.httpClient.jsonp(a,"json.wrf").pipe(Qe(c=>r._lookupMap(c)))}termPreLookup(e){return(0,Nt.filter)(this.termList,o=>o.type===e).map(o=>o.term)}evidencePreLookup(){return(0,Nt.uniqWith)(this.evidenceList,ioe).map(r=>r.evidence)}referencePreLookup(){return(0,Nt.uniqWith)(this.evidenceList,roe).map(r=>r.reference)}withPreLookup(){return(0,Nt.uniqWith)(this.evidenceList,ooe).map(r=>r.with)}evidenceLookup(e,i){const r=this,o=e.toLowerCase();let a=[];switch(i){case"reference":a=r.referencePreLookup().filter(c=>!!c&&c.toLowerCase().includes(o));break;case"with":a=r.withPreLookup().filter(c=>!!c&&c.toLowerCase().includes(o))}return a}companionLookup(e,i,r){const o=this,a=lo.globalGolrServer+"select?",c={defType:"edismax",qt:"standard",indent:"on",wt:"json",sort:"annotation_class_label asc",rows:"2000",start:"0",fl:"*,score",facet:"true","facet.mincount":"1","facet.sort":"count","json.nl":"arrarr","facet.limit":"2000",fq:['document_category: "annotation"','aspect: "'+i+'"','bioentity: "'+e+'"'],"facet.field":["source","assigned_by","aspect","evidence_type_closure","annotation_class_label"],q:"*:*"};r.term&&c.fq.push('annotation_class:"'+r.term+'"'),r.evidence&&c.fq.push('evidence:"'+r.evidence+'"');const f=a+new B2({fromObject:c}).toString();return this.httpClient.jsonp(f,"json.wrf").pipe(Qe(w=>{const B=[];return(0,Nt.each)(w.response.docs,function(Z){let ee;const be=new Rl;if(be.setEvidence(new _i(Z.evidence,Z.evidence_label)),Z.reference&&Z.reference.length>0&&(be.reference=Z.reference.join(" | ")),Z.evidence_with&&Z.evidence_with.length>0&&(be.with=Z.evidence_with.join(" | ")),be.groups=o.noctuaUserService.getGroupsFromNames([Z.assigned_by]),ee=(0,Nt.find)(B,_e=>_e.getTerm().id===Z.annotation_class),Z.annotation_extension_json)try{const _e=[];Array.isArray(Z.annotation_extension_json)?Z.annotation_extension_json.forEach(Pe=>{_e.push(JSON.parse(Pe))}):_e.push(JSON.parse(Z.annotation_extension_json)),be.evidenceExts=[],_e.forEach(Pe=>{if(Pe.relationship&&Pe.relationship.relation){const Ie=new BXe;Ie.term=new _i(Pe.relationship.id,Pe.relationship.label),Pe.relationship.relation.forEach(ge=>{Ie.relations.push(new _i(ge.id,ge.label))}),be.evidenceExts.push(Ie)}})}catch(_e){console.log(_e,ee,Z.annotation_extension_json)}ee?ee.predicate.addEvidence(be):(ee=new nP,ee.predicate=new xm(null),ee.term=new _i(Z.annotation_class,Z.annotation_class_label),ee.predicate.addEvidence(be),B.push(ee))}),B}))}categoryToClosure(e){return e.map(i=>`${i.categoryType}:"${i.category}"`).join(" OR ")}isaClosure(e,i){const o={q:this.buildQ(e),defType:"edismax",indent:"on",qt:"standard",wt:"json",rows:"2",start:"0",fl:"*,score",facet:"true","facet.mincount":"1","facet.sort":"count","facet.limit":"25","json.nl":"arrarr",packet:"1",callback_type:"search","facet.field":["source","subset","idspace","is_obsolete"],fq:['document_category:"ontology_class"',i],qf:["annotation_class^3","isa_closure^1"]},a=new B2({fromObject:o}),c=this.golrURLBase+a.toString();return this.httpClient.jsonp(c,"json.wrf").pipe(Qe(u=>{const f=u.response.docs;let w=!1;return f.length>0&&(w=f[0].annotation_class===e),w}))}getTermDetail(e){const i=this,r={q:i.buildQ(e),defType:"edismax",indent:"on",qt:"standard",wt:"json",rows:"2",start:"0",fl:"*,score",facet:"true","facet.mincount":"1","facet.sort":"count","facet.limit":"25","json.nl":"arrarr",packet:"1",callback_type:"search","facet.field":["source","subset","idspace","is_obsolete"],fq:['document_category:"ontology_class"'],qf:["annotation_class^3","isa_closure^1"]},o=new B2({fromObject:r}),a=this.golrURLBase+o.toString();return this.httpClient.jsonp(a,"json.wrf").pipe(Qe(c=>i._lookupMap(c)),Qe(c=>c.length>0?c[0]:c))}getTermURL(e){if(e.startsWith("ECO"))return"http://www.evidenceontology.org/term/"+e;if(e.startsWith("PMID")){const r=e.split(":");return r.length>1?"https://www.ncbi.nlm.nih.gov/pubmed/"+r[1].trim():null}return this.linker.url(e)}addPubmedInfos(e){const i=this,r=Object.keys(this.articleCache),o=(0,Nt.difference)(e,r);if(o.length>0){const a=lo.pubMedSummaryApi+o.join(",");this.httpClient.get(a).pipe(Qe(c=>c.result),Qe(c=>c.uids.map(u=>this._addArticles(c[u])))).subscribe(c=>{c.forEach(u=>{i.articleCache["PMID:"+u.id]=u}),i.onArticleCacheReady.next(!0)})}else i.onArticleCacheReady.next(!0)}getPubmedInfo(e){return this.httpClient.get(lo.pubMedSummaryApi+e).pipe(Qe(r=>r.result),Qe(r=>r[e]),Qe(r=>this._addArticles(r)))}_addArticles(e){if(!e)return;const r=new Fz;return r.id=e.uid,r.title=e.title,r.link=this.linker.url(`${Ht.evidenceDB.options.pmid.name}:${e.uid}`),r.date=e.pubdate,e.authors&&Array.isArray(e.authors)&&(r.author=e.authors.map(o=>o.name).join(", ")),r}_lookupMap(e){const i=this,o=e.response.docs.map(a=>{let c;if(a.database_xref&&a.database_xref.length>0){const u=a.database_xref[0].split(":");c=u.length>1?u[1]:u[0]}return{id:a.annotation_class,label:a.annotation_class_label,link:i.getTermURL(a.annotation_class),description:a.description,isObsolete:a.is_obsolete,replacedBy:a.replaced_by,rootTypes:i._makeEntitiesArray(a.isa_closure,a.isa_closure_label),xref:c}});return console.log(null==o?void 0:o.rootTypes),o}_makeEntitiesArray(e,i){let r=[];return i||e?(i?e.length===i.length&&(r=e.map((o,a)=>new _i(o,i[a]))):r=e.map((o,a)=>new _i(o,o)),(0,Nt.filter)(r,o=>!o.id.startsWith("BFO"))):[]}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xd),Rt(uo),Rt(lr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var moe=v(66713);const F$e={"@context":{gomodel:"http://model.geneontology.org/",BIOMD:"http://www.ebi.ac.uk/compneur-srv/biomodels-main/publ-model.do?mid=",COG_Function:"http://www.ncbi.nlm.nih.gov/COG/grace/shokog.cgi?fun=",WB:"http://identifiers.org/wormbase/",FBbt:"http://purl.obolibrary.org/obo/FBbt_",KEGG_LIGAND:"http://www.genome.jp/dbget-bin/www_bget?cpd:",PSO_GIT:"https://github.com/Planteome/plant-stress-ontology/issues/",MaizeGDB_stock:"http://maizegdb.org/data_center/stock?id=",EMAPA:"http://purl.obolibrary.org/obo/EMAPA_",GO:"http://purl.obolibrary.org/obo/GO_",NCBI_GP:"http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=protein&val=",NMPDR:"http://www.nmpdr.org/linkin.cgi?id=",CASSPC:"http://research.calacademy.org/research/ichthyology/catalog/getname.asp?rank=Species&id=",TGD_REF:"http://db.ciliate.org/cgi-bin/reference/reference.pl?dbid=",NCBIGene:"http://identifiers.org/ncbigene/",KEGG_REACTION:"http://www.genome.jp/dbget-bin/www_bget?rn:",PseudoCAP:"http://v2.pseudomonas.com/getAnnotation.do?locusID=",UniPathway:"http://www.grenoble.prabi.fr/obiwarehouse/unipathway/upa?upid=",MEROPS_fam:"http://merops.sanger.ac.uk/cgi-bin/famsum?family=",GO_REF:"http://purl.obolibrary.org/obo/go/references/",VEGA:"http://vega.sanger.ac.uk/id/",ZFIN:"http://identifiers.org/zfin/",AspGD_REF:"http://www.aspergillusgenome.org/cgi-bin/reference/reference.pl?dbid=",RO:"http://purl.obolibrary.org/obo/RO_",Pfam:"http://pfam.xfam.org/family/",UBERON:"http://purl.obolibrary.org/obo/UBERON_",GR:"http://www.gramene.org/db/searches/browser?search_type=All&RGN=on&query=",PDB:"http://www.rcsb.org/pdb/cgi/explore.cgi?pdbId=",CORIELL:"http://ccr.coriell.org/Sections/Search/Sample_Detail.aspx?Ref=",JCVI_GenProp:"http://cmr.jcvi.org/cgi-bin/CMR/shared/GenomePropDefinition.cgi?prop_acc=",SGN:"http://identifiers.org/sgn/",BFO:"http://purl.obolibrary.org/obo/BFO_","Genesys-pgr":"https://www.genesys-pgr.org/acn/search?q=",UniMod:"http://www.unimod.org/modifications_view.php?editid1=","UM-BBD_reactionID":"http://eawag-bbd.ethz.ch/servlets/pageservlet?ptype=r&reacID=",PubChem_Substance:"http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&DB=pcsubstance&term=",EcoCyc:"http://biocyc.org/ECOLI/NEW-IMAGE?type=PATHWAY&object=",Reactome:"http://identifiers.org/reactome/",InterPro:"http://identifiers.org/interpro/",UniRule:"http://www.uniprot.org/unirule/",MGCSC_GENETIC_STOCKS:"http://www.maizegdb.org/cgi-bin/displaystockrecord.cgi?id=",dictyBase:"http://identifiers.org/dictybase/",PO_GIT:"https://github.com/Planteome/plant-ontology/issues/",AspGD_LOCUS:"http://identifiers.org/aspgd.locus/",SGD:"http://identifiers.org/sgd/",COG_Pathway:"http://www.ncbi.nlm.nih.gov/COG/new/release/coglist.cgi?pathw=",ENZYME:"http://www.expasy.ch/cgi-bin/nicezyme.pl?",PAMGO_MGG:"http://scotland.fgl.ncsu.edu/cgi-bin/adHocQuery.cgi?adHocQuery_dbName=smeng_goannotation&Action=Data&QueryName=Functional+Categorization+of+MGG+GO+Annotation&P_KeyWord=",AgBase:"http://www.agbase.msstate.edu/cgi-bin/getEntry.pl?db_pick=[ChickGO/MaizeGO]&uid=",AraCyc:"http://www.arabidopsis.org:1555/ARA/NEW-IMAGE?type=NIL&object=",EcoCyc_REF:"http://biocyc.org/ECOLI/reference.html?type=CITATION-FRAME&object=",CHEBI:"http://purl.obolibrary.org/obo/CHEBI_",HGNC:"http://identifiers.org/hgnc/",dictyBase_gene_name:"http://dictybase.org/gene/",TAIR:"http://identifiers.org/tair.locus/",EnsemblFungi:"http://www.ensemblgenomes.org/id/",Wikipedia:"http://en.wikipedia.org/wiki/",SUPERFAMILY:"http://supfam.cs.bris.ac.uk/SUPERFAMILY/cgi-bin/scop.cgi?ipid=SSF",SWALL:"http://ca.expasy.org/cgi-bin/sprot-search-de?S=1&T=1&SEARCH=","PSI-MOD":"http://www.ebi.ac.uk/ontology-lookup/?termId=MOD:",FYPO:"http://purl.obolibrary.org/obo/FYPO_",RGD:"http://identifiers.org/rgd/","UM-BBD_enzymeID":"http://eawag-bbd.ethz.ch/servlets/pageservlet?ptype=ep&enzymeID=",Broad_MGG:"http://www.broad.mit.edu/annotation/genome/magnaporthe_grisea/GeneLocus.html?sp=S","Swiss-Prot":"http://www.ebi.uniprot.org/uniprot-srv/uniProtView.do?proteinac=",PMID:"http://www.ncbi.nlm.nih.gov/pubmed/",Xenbase:"http://identifiers.org/xenbase/",PR:"http://purl.obolibrary.org/obo/PR_",MIPS_funcat:"http://mips.gsf.de/cgi-bin/proj/funcatDB/search_advanced.pl?action=2&wert=",GR_REF:"http://www.gramene.org/db/literature/pub_search?ref_id=",MaizeGDB:"http://maizegdb.org/gene_center/gene/",HAMAP:"http://hamap.expasy.org/unirule/",SGN_ref:"http://www.sgn.cornell.edu/chado/publication.pl?pub_id=",TO_GIT:"https://github.com/Planteome/plant-trait-ontology/issues/",MeSH:"http://n2t.net/MESH:",GR_PROTEIN:"http://identifiers.org/gramene.protein/",MaizeGDB_REF:"http://maizegdb.org/data_center/reference?id=",GEO:"http://www.ncbi.nlm.nih.gov/sites/GDSbrowser?acc=",PO:"http://purl.obolibrary.org/obo/PO_",PomBase:"http://identifiers.org/pombase/",ENA:"http://www.ebi.ac.uk/ena/data/view/",PIRSF:"http://pir.georgetown.edu/cgi-bin/ipcSF?id=",EMBL:"http://www.ebi.ac.uk/cgi-bin/emblfetch?style=html&Submit=Go&id=",Prosite:"http://www.expasy.ch/cgi-bin/prosite-search-ac?","H-invDB_cDNA":"http://www.h-invitational.jp/hinv/spsoup/transcript_view?acc_id=",EC:"http://www.expasy.org/enzyme/",MACSC_REF:"http://www.maizegdb.org/cgi-bin/displaytraitrecord.cgi?id=",PAMGO_VMD:"http://vmd.vbi.vt.edu/cgi-bin/browse/go_detail.cgi?gene_id=",IRGC:"https://www.genesys-pgr.org/acn/search?q=IRGC+",NASC_code:"http://seeds.nottingham.ac.uk/NASC/stockatidb.lasso?code=",COG_Cluster:"http://www.ncbi.nlm.nih.gov/COG/new/release/cow.cgi?cog=",TreeGenes:"http://dendrome.ucdavis.edu/treegenes/protein/view_protein.php?id=",WB_REF:"http://www.wormbase.org/db/misc/paper?name=",TGD_LOCUS:"http://db.ciliate.org/cgi-bin/locus.pl?locus=",MA:"http://purl.obolibrary.org/obo/MA_",UniProtKB:"http://identifiers.org/uniprot/",MGI:"http://identifiers.org/mgi/",GRINDesc:"https://npgsweb.ars-grin.gov/gringlobal/descriptordetail.aspx?id=",DDANAT:"http://purl.obolibrary.org/obo/DDANAT_","RAP-DB":"http://rapdb.dna.affrc.go.jp/tools/search/run?id=on&attr=desc&attr=cgs&attr=cgn&attr=cgss&attr=cgns&attr=rgss&attr=rgns&keyword=",KEGG_PATHWAY:"http://identifiers.org/kegg.pathway/",JCVI_CMR:"http://cmr.jcvi.org/cgi-bin/CMR/shared/GenePage.cgi?locus=",dictyBase_REF:"http://dictybase.org/db/cgi-bin/dictyBase/reference/reference.pl?refNo=",DOI:"http://dx.doi.org/",LIFEdb:"http://www.dkfz.de/LIFEdb/LIFEdb.aspx?ID=",PANTHER:"http://identifiers.org/panther.family/",Gene3D:"http://gene3d.biochem.ucl.ac.uk/search?mode=family&sterm=",PATRIC:"http://patric.vbi.vt.edu/gene/overview.php?fid=",FB:"http://identifiers.org/flybase/",PAINT_REF:"http://www.pantherdb.org/panther/lookupId.jsp?id=PTHR",CASREF:"http://research.calacademy.org/research/ichthyology/catalog/getref.asp?id=",ENSEMBL:"http://identifiers.org/ensembl/",SMART:"http://smart.embl-heidelberg.de/smart/do_annotation.pl?BLAST=DUMMY&DOMAIN=",RefSeq:"http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=",WBls:"http://purl.obolibrary.org/obo/WBls_",MaizeGDB_QTL:"http://www.maizegdb.org/data_center/trait?id=",SOY_ref:"http://www.soybase.org/sbt/search/search_results.php?category=Soybase_ID&search_term=",ECO:"http://purl.obolibrary.org/obo/ECO_",CGD_REF:"http://www.candidagenome.org/cgi-bin/reference/reference.pl?dbid=",ECK:"http://www.ecogene.org/geneInfo.php?eck_id=",CGD:"http://identifiers.org/cgd/",GR_GENE:"http://identifiers.org/gramene.gene/",RNAmods:"http://s59.cas.albany.edu/RNAmods/cgi-bin/rnashow.cgi?",KEGG_ENZYME:"http://identifiers.org/kegg.enzyme/",CACAO:"http://gowiki.tamu.edu/wiki/index.php/",IUPHAR_GPCR:"http://www.iuphar-db.org/DATABASE/FamilyMenuForward?familyId=",JCVI_TIGRFAMS:"http://search.jcvi.org/search?p&q=",SOY_QTL:"http://soybase.org/sbt/search/search_results.php?category=QTLName&search_term=",DDBJ:"http://arsa.ddbj.nig.ac.jp/arsa/ddbjSplSearch?KeyWord=",PRINTS:"http://www.bioinf.manchester.ac.uk/cgi-bin/dbbrowser/sprint/searchprintss.cgi?display_opts=Prints&category=None&queryform=false®expr=off&prints_accn=",PO_REF:"http://planteome.org/po_ref/",IMG:"http://img.jgi.doe.gov/cgi-bin/pub/main.cgi?section=GeneDetail&page=geneDetail&gene_oid=",CL:"http://purl.obolibrary.org/obo/CL_","UniProtKB-SubCell":"http://www.uniprot.org/locations/",NIF_Subcellular:"http://www.neurolex.org/wiki/",GeneDB:"http://identifiers.org/genedb/",ApiDB_PlasmoDB:"http://www.plasmodb.org/gene/",RNAcentral:"http://rnacentral.org/rna/",CGD_LOCUS:"http://www.candidagenome.org/cgi-bin/locus.pl?locus=",Rfam:"http://rfam.sanger.ac.uk/family/",Broad_NEUROSPORA:"http://www.broadinstitute.org/annotation/genome/neurospora/GeneDetails.html?sp=S",AGI_LocusCode:"http://arabidopsis.org/servlets/TairObject?type=locus&name=",OBO_SF2_PO:"http://sourceforge.net/p/obo/plant-ontology-po-term-requests/",FMA:"http://purl.obolibrary.org/obo/FMA_",CDD:"http://www.ncbi.nlm.nih.gov/Structure/cdd/cddsrv.cgi?uid=",PubChem_Compound:"http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&DB=pccompound&term=",HGNC_gene:"http://identifiers.org/hgnc.gene/",PharmGKB:"http://www.pharmgkb.org/do/serve?objId=",VMD:"http://vmd.vbi.vt.edu/cgi-bin/browse/browserDetail_new.cgi?gene_id=",UniParc:"http://www.uniprot.org/uniparc/",MEROPS:"http://merops.sanger.ac.uk/cgi-bin/pepsum?mid=",GDB:"http://www.gdb.org/gdb-bin/genera/accno?accessionNum=GDB:",SEED:"http://www.theseed.org/linkin.cgi?id=",SO:"http://purl.obolibrary.org/obo/SO_",Soy_gene:"http://www.soybase.org/sbt/search/search_results.php?category=FeatureName&search_term=",CORUM:"http://mips.gsf.de/genre/proj/corum/complexdetails.html?id=",RHEA:"http://www.rhea-db.org/reaction.xhtml?id=",dbSNP:"http://identifiers.org/dbsnp/",MaizeGDB_Locus:"http://identifiers.org/maizegdb.locus/",MO:"http://mged.sourceforge.net/ontologies/MGEDontology.php#",PLANA_REF:"http://purl.obolibrary.org/obo/plana/references/",BRENDA:"http://www.brenda-enzymes.info/php/result_flat.php4?ecno=",ASAP:"https://asap.ahabs.wisc.edu/annotation/php/feature_info.php?FeatureID=",CAS:"http://identifiers.org/cas/","H-invDB_locus":"http://www.h-invitational.jp/hinv/spsoup/locus_view?hix_id=","UM-BBD_ruleID":"http://eawag-bbd.ethz.ch/servlets/rule.jsp?rule=",NCBITaxon:"http://purl.obolibrary.org/obo/NCBITaxon_",ComplexPortal:"https://www.ebi.ac.uk/complexportal/complex/",JSTOR:"http://www.jstor.org/stable/",GRIMS:"https://www.genesys-pgr.org/acn/search2?q=IRGC+",PATO:"http://purl.obolibrary.org/obo/PATO_",GR_QTL:"http://identifiers.org/gramene.qtl/",ECOGENE:"http://www.ecogene.org/geneInfo.php?eg_id=",HPA_antibody:"http://www.proteinatlas.org/antibody_info.php?antibody_id=",VBRC:"http://vbrc.org/query.asp?web_id=VBRC:",EO_GIT:"https://github.com/Planteome/plant-environment-ontology/issues/",EchoBASE:"http://www.biolws1.york.ac.uk/echobase/Gene.cfm?recordID=",CASGEN:"http://research.calacademy.org/research/ichthyology/catalog/getname.asp?rank=Genus&id=",IUPHAR_RECEPTOR:"http://www.iuphar-db.org/DATABASE/ObjectDisplayForward?objectId=",IRIC:"http://oryzasnp.org/_variety.zul?irisid=",GenBank:"http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?db=nucleotide&val=",TGD:"http://identifiers.org/tgd/",JCVI_EGAD:"http://cmr.jcvi.org/cgi-bin/CMR/EgadSearch.cgi?search_string=",PubChem_BioAssay:"http://pubchem.ncbi.nlm.nih.gov/assay/assay.cgi?aid=",TC:"http://www.tcdb.org/tcdb/index.php?tc=","SABIO-RK":"http://sabio.villa-bosch.de/reacdetails.jsp?reactid=",OBO_SF2_PECO:"https://sourceforge.net/p/obo/plant-environment-ontology-eo/",MetaCyc:"http://identifiers.org/metacyc/",PAMGO_GAT:"http://agro.vbi.vt.edu/public/servlet/GeneEdit?&Search=Search&level=2&genename=",ModBase:"http://salilab.org/modbase/searchbyid?databaseID=",OMIM:"http://omim.org/entry/",GR_MUT:"http://www.gramene.org/db/genes/search_gene?acc=",HPA:"http://www.proteinatlas.org/tissue_profile.php?antibody_id=",IntAct:"http://identifiers.org/intact/",ProDom:"http://prodom.prabi.fr/prodom/current/cgi-bin/request.pl?question=DBEN&query=",GRIN:"https://npgsweb.ars-grin.gov/gringlobal/accessiondetail.aspx?id=",WBPhenotype:"http://purl.obolibrary.org/obo/WBPhenotype_",BioCyc:"http://biocyc.org/META/NEW-IMAGE?type=PATHWAY&object=",ENSEMBL_GeneID:"http://www.ensembl.org/id/",PIR:"http://pir.georgetown.edu/cgi-bin/pirwww/nbrfget?uid=","UniProtKB-KW":"http://www.uniprot.org/keywords/",Planteome_gene:"https://www.google.com/search?q=",AspGD:"http://www.aspergillusgenome.org/cgi-bin/locus.pl?dbid=",JCVI_Medtr:"http://medicago.jcvi.org/cgi-bin/medicago/search/shared/ORF_infopage.cgi?orf=",EuPathDB:"http://eupathdb.org/gene/",PMCID:"http://www.ncbi.nlm.nih.gov/sites/entrez?db=pmc&cmd=search&term="}};let C_=(()=>{class t{constructor(){const e=(0,moe.q)(F$e);this._curie=new moe.T(e)}getCurieUtil(){return this._curie}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var LC=(()=>{return(t=LC||(LC={})).cardinality="cardinality",t.relation="relations",LC;var t})();class _oe{constructor(n,e){this.node=n,this.type=e}getDisplayError(){}get message(){return this._message}}class H$e extends _oe{constructor(n,e,i,r){super(n,LC.cardinality),this.node=n,this.predicate=e,this.nobjects=i,this.cardinality=r,this.subject=n}get message(){var n;return this._message=`Only one ${null===(n=this.predicate)||void 0===n?void 0:n.label} is allowed`,this._message}getDisplayError(){var n,e,i;const r=this,o={aspect:"",subjectNode:{label:null===(e=null===(n=r.subject)||void 0===n?void 0:n.term)||void 0===e?void 0:e.label},edge:{label:null===(i=r.predicate)||void 0===i?void 0:i.label}};return new q2(dl.error,ll.cardinality,r.message,o)}}class V$e extends _oe{constructor(n){super(n,LC.relation),this.node=n,this.subject=n}get message(){var n,e,i,r;return this._message=`Incorrect relationship between ${null===(e=null===(n=this.subject)||void 0===n?void 0:n.term)||void 0===e?void 0:e.label} and ${null===(r=null===(i=this.object)||void 0===i?void 0:i.term)||void 0===r?void 0:r.label}`,this._message}getDisplayError(){var n,e,i,r,o,a,c,u,f;const w=this,E={aspect:"",subjectNode:{label:null===(e=null===(n=w.subject)||void 0===n?void 0:n.term)||void 0===e?void 0:e.label},edge:{label:null===(i=w.predicate)||void 0===i?void 0:i.label},objectNode:{label:(null===(o=null===(r=w.object)||void 0===r?void 0:r.term)||void 0===o?void 0:o.label)?null===(c=null===(a=w.object)||void 0===a?void 0:a.term)||void 0===c?void 0:c.label:null===(f=null===(u=w.object)||void 0===u?void 0:u.term)||void 0===f?void 0:f.id}};return new q2(dl.error,ll.relation,w.message,E)}}var cP=v(72759);const B$e=v(29494),G$e=v(6268),Y$e=v(61759),Ed=v(33837),U$e=v(99572).jquery,f4=v(8886),j$e=v(42023);let hl=(()=>{class t{constructor(e,i,r,o,a){this.curieService=e,this.httpClient=i,this.noctuaUserService=r,this.noctuaFormConfigService=o,this.noctuaLookupService=a,this.baristaLocation=lo.globalBaristaLocation,this.minervaDefinitionName=lo.globalMinervaDefinitionName,this.linker=new G$e.linker,this.curieUtil=this.curieService.getCurieUtil(),this.onCamRebuildChange=new mr(null),this.onCamGraphChanged=new mr(null),this.onActivityAdded=new mr(null)}registerManager(e=!1){const i=new U$e(Y$e);i.method("POST");const r=new j$e(this.baristaLocation,this.minervaDefinitionName,this.noctuaUserService.baristaToken,i,"async");return r.register("prerun",()=>{}),r.register("postrun",()=>{},9),r.register("manager_error",w=>{console.log("There was a manager error ("+w.message_type()+"): "+w.message())},10),r.register("warning",w=>{alert("Warning: "+w.message()+"; your operation was likely not performed")},10),r.register("error",w=>{w.message()&&-1!==w.message().indexOf("InsufficientPermissionsException")?alert("Error: it seems like you do not have permission to perform that operation. Did you remember to login?"):w.message()&&-1!==w.message().indexOf("token")?alert("Error: it seems like you have a bad token..."):(console.log("error:",w,w.message_type(),w.message()),w.message().includes("UnknownIdentifierException"))},10),r.use_reasoner_p(e),r}registerBaristaClient(e){const i=this,r=new B$e(lo.globalBaristaLocation,this.noctuaUserService.baristaToken);return r.register("merge",function(o){console.log("barista/merge response"),i.onCamMergeSignal(e,o)}),r.register("rebuild",function(o){console.log("barista/rebuild response"),i.onCamRebuildSignal(e,o)}),r.connect(e.id),r}getGraphInfo(e,i){const r=this;e.loading=new Pd(!0,"Loading Model Activities ..."),e.id=i,e.manager=this.registerManager(),e.copyModelManager=this.registerManager(),e.artManager=this.registerManager(),e.groupManager=this.registerManager(),e.replaceManager=this.registerManager(!1),e.manager.register("rebuild",function(o){r.rebuild(e,o)},10)}getMetadata(e){const i=this,r=new sP;r.graph=new cP.graph,r.graph.load_data_basic(e),r.id=e.id,r.model=Object.assign({},{modelInfo:this.noctuaFormConfigService.getModelUrls(r.id)}),r.modified=e["modified-p"];const o=r.graph.get_annotations_by_key("title"),a=r.graph.get_annotations_by_key("comment"),c=r.graph.get_annotations_by_key("state"),u=r.graph.get_annotations_by_key("date"),f=r.graph.get_annotations_by_key("providedBy"),w=r.graph.get_annotations_by_key("contributor");return r.contributors=i.noctuaUserService.getContributorsFromAnnotations(w),r.groups=i.noctuaUserService.getGroupsFromAnnotations(f),u.length>0&&(r.date=u[0].value()),o.length>0&&(r.title=o[0].value()),r.comments=a.map(E=>E.value()),c.length>0&&(r.state=i.noctuaFormConfigService.findModelState(c[0].value())),r}rebuild(e,i){const r=this;if(e.graph){const E=new cP.graph;E.load_data_basic(i.data()),e.graph.merge_special(E)}else e.graph=new cP.graph,e.graph.load_data_basic(i.data());e.id=i.data().id,e.modified=i.data()["modified-p"],e.isReasoned=i["is-reasoned"];const o=e.graph.get_annotations_by_key("title"),a=e.graph.get_annotations_by_key("comment"),c=e.graph.get_annotations_by_key("state"),u=e.graph.get_annotations_by_key("date"),f=e.graph.get_annotations_by_key("providedBy"),w=e.graph.get_annotations_by_key("contributor");e.contributors=r.noctuaUserService.getContributorsFromAnnotations(w),e.groups=r.noctuaUserService.getGroupsFromAnnotations(f),u.length>0&&(e.date=u[0].value()),o.length>0&&(e.title=o[0].value()),e.comments=a.map(E=>E.value()),c.length>0&&(e.state=r.noctuaFormConfigService.findModelState(c[0].value())),r.loadCam(e),r.loadViolations(e,i.data()["validation-results"]),e.loading.status=!1}onCamMergeSignal(e,i){e.rebuildRule.addMergeSignal(),e.rebuildRule.autoRebuild&&this.onCamRebuildChange.next(e)}onCamRebuildSignal(e,i){e.rebuildRule.addRebuildSignal(),e.rebuildRule.autoRebuild&&this.onCamRebuildChange.next(e)}rebuildFromStoredApi(e,i){const r=this;e.graph=new cP.graph,e.graph.load_data_basic(i),e.id=i.id;const o=e.graph.get_annotations_by_key("title"),a=e.graph.get_annotations_by_key("comment"),c=e.graph.get_annotations_by_key("state"),u=e.graph.get_annotations_by_key("date"),f=e.graph.get_annotations_by_key("providedBy"),w=e.graph.get_annotations_by_key("contributor");e.contributors=r.noctuaUserService.getContributorsFromAnnotations(w),e.groups=r.noctuaUserService.getGroupsFromAnnotations(f),u.length>0&&(e.date=u[0].value()),o.length>0&&(e.title=o[0].value()),e.comments=a.map(E=>E.value()),c.length>0&&(e.state=r.noctuaFormConfigService.findModelState(c[0].value())),r.loadCam(e,!1)}loadCam(e,i=!0){const r=this,o=r.graphToActivities(e.graph);if(lo.isGraph){const a=r.graphToMolecules(e.graph);if(o.push(...a),e.operation===g3.ADD_ACTIVITY){const c=r.getAddedActivity(o,e.activities);r.onActivityAdded.next(c)}e.activities=o,e.causalRelations=r.getCausalRelations(e),r.getActivityLocations(e)}else e.activities=o;e.applyFilter(),e.updateActivityDisplayNumber(),e.updateProperties(),e.operation=g3.NONE,i&&r.onCamGraphChanged.next(e)}getAddedActivity(e,i){const r=(0,Nt.differenceWith)(e,i,p$e);return r&&r.length>0?r[0]:null}loadViolations(e,i){const r=this;let o;i&&i["shex-validation"]&&i["shex-validation"].violations&&(o=i["shex-validation"].violations,e.hasViolations=o.length>0,e.violations=[],o.forEach(a=>{a.explanations.forEach(c=>{c.constraints.forEach(u=>{const f=r.generateViolation(e,a.node,u);f&&e.violations.push(f)})})})),e.setViolations()}generateViolation(e,i,r){const o=this,a=o.nodeToActivityNode(e.graph,i);if(!a)return null;let c;if(r.cardinality){const u=o.noctuaFormConfigService.findEdge(r.property);c=new H$e(a,u,r.nobjects,r.cardinality)}else if(r.object){c=new V$e(a),c.predicate=o.noctuaFormConfigService.findEdge(r.property);const u=r.object.startsWith("http")?o.curieUtil.getCurie(r.object):r.object;c.object=o.nodeToActivityNode(e.graph,u)}return c}getNodeInfo(e){const i={};return(0,Nt.each)(e.types(),function(r){const o="complement"===r.type()?r.complement_class_expression():r;i.id=o.class_id(),i.label=o.class_label(),i.classExpression=o}),i}getNodeRootInfo(e){return e.root_types().map(r=>{const o="complement"===r.type()?r.complement_class_expression():r;return new _i(o.class_id(),o.class_label())})}getNodeDate(e){const i=e.get_annotations_by_key("date");return i.length>0?i[0].value():null}getNodeLocation(e){const i={x:0,y:0},r=e.get_annotations_by_key("hint-layout-x"),o=e.get_annotations_by_key("hint-layout-y");return 1===r.length&&(i.x=parseInt(r[0].value())),1===o.length&&(i.y=parseInt(o[0].value())),i}getNodeIsComplement(e){let i=!0;return e&&(0,Nt.each)(e.types(),function(r){const o=r.type();i=i&&"complement"===o}),i}nodeToActivityNode(e,i){const r=this,o=e.get_node(i);if(!o)return null;const a=r.getNodeInfo(o),c={uuid:i,date:r.getNodeDate(o),term:new _i(a.id,a.label,r.linker.url(a.id),i),rootTypes:r.getNodeRootInfo(o),classExpression:a.classExpression,location:r.getNodeLocation(o),isComplement:r.getNodeIsComplement(o)};return new nP(c)}edgeToEvidence(e,i){const r=this,o=i.get_annotations_by_key("evidence"),a=[];return(0,Nt.each)(o,function(c){const u=c.value(),f=e.get_node(u),w=new Rl;if(w.edge=new _i(i.predicate_id(),""),w.uuid=f.id(),f){const E=r.getNodeInfo(f);w.setEvidence(new _i(E.id,E.label,r.noctuaLookupService.getTermURL(E.id)),E.classExpression);const B=f.get_annotations_by_key("source"),Z=f.get_annotations_by_key("with"),ee=f.get_annotations_by_key("contributor"),be=f.get_annotations_by_key("providedBy"),_e=r.getNodeDate(f),Pe=PC(_e,"YYYY-MM-DD");if(w.date=_e,w.formattedDate=Pe.format("ll"),B.length>0){const Ie=B.sort(r._compareSources);w.reference=Ie.map(Re=>Re.value()).join("| ");const ge=r.noctuaLookupService.getTermURL(w.reference);w.referenceEntity=new _i(w.reference,w.reference,ge,w.uuid)}Z.length>0&&(w.with=Z[0].value(),w.withEntity=new _i(w.with,w.with,null,w.uuid)),be.length>0&&(w.groups=r.noctuaUserService.getGroupsFromAnnotations(be)),ee.length>0&&(w.contributors=r.noctuaUserService.getContributorsFromAnnotations(ee)),a.push(w)}}),a}isaClosurePostParse(e,i,r){const a=this.noctuaLookupService.categoryToClosure(i);return this.noctuaLookupService.isaClosure(e,a).pipe(Qe(c=>(r.isCatalyticActivity=c,c)))}isStartEdge(e,i){return i===Ht.edge.enabledBy.id||(i===Ht.edge.partOf.id||i===Ht.edge.locatedIn.id||i===Ht.edge.isActiveIn.id)&&e.hasRootType(Fl)}getTerms(e){const i=this,r=new Iz,o=[],a={};(0,Nt.each)(e.all_nodes(),u=>{const f=i.nodeToActivityNode(e,u.id());f.id=f.uuid,o.push(f),a[f.term.id]=a[f.term.id]?a[f.term.id]+1:1,f.hasRootType(Fl)?r.gp.frequency++:f.hasRootType(ul)?r.mf.frequency++:f.hasRootType(D1)?r.bp.frequency++:f.hasRootType(e1)?r.cc.frequency++:f.hasRootType(aoe)||r.other.frequency++});const c=(0,Nt.chain)(o).uniqWith(eoe).value();return(0,Nt.each)(c,u=>{u.frequency=a[u.term.id],u.hasRootType(Fl)?(u.type=vn.GoMolecularEntity,r.gp.append(u)):u.hasRootType(ul)?(u.type=vn.GoMolecularFunction,r.mf.append(u)):u.hasRootType(D1)?(u.type=vn.GoBiologicalProcess,r.bp.append(u)):u.hasRootType(e1)?(u.type=vn.GoCellularComponent,r.cc.append(u)):u.hasRootType(aoe)||r.other.append(u)}),r.allTerms=c,this.addSummaryEvidences(e,r),r}addSummaryEvidences(e,i){const r=this,o=[],a={},c=[],u=[];(0,Nt.each)(e.all_edges(),_e=>{const Pe=_e.predicate_id(),Ie=r.edgeToEvidence(e,_e);u.push(Pe),a[Pe]=a[Pe]?a[Pe]+1:1,i.relations.frequency++,Ie.forEach(ge=>{var Re;o.push(ge);const Ye=ge.evidence.id+ge.referenceEntity.id+ge.withEntity.id;a[ge.evidence.id]=a[ge.evidence.id]?a[ge.evidence.id]+1:1,a[Ye]=a[Ye]?a[Ye]+1:1,a[ge.referenceEntity.id]=a[ge.referenceEntity.id]?a[ge.referenceEntity.id]+1:1,a[ge.withEntity.id]=a[ge.withEntity.id]?a[ge.withEntity.id]+1:1,a[ge.date]=a[ge.date]?a[ge.date]+1:1,ge.contributors.map(Je=>{a[Je.orcid]=a[Je.orcid]?a[Je.orcid]+1:1,i.contributors.frequency++,c.push(Je)}),i.evidences.frequency++,i.evidenceEcos.frequency++,i.dates.frequency++,ge.referenceEntity.id&&i.references.frequency++,ge.withEntity.id&&i.withs.frequency++,(null===(Re=ge.referenceEntity)||void 0===Re?void 0:Re.label.trim().startsWith("PMID"))&&i.papers.frequency++})});const f=(0,Nt.uniq)(u),w=(0,Nt.chain)(o).uniqWith(GXe).value(),E=(0,Nt.chain)(o).uniqWith(noe).value(),B=(0,Nt.chain)(o).uniqWith(ioe).value(),Z=(0,Nt.chain)(o).uniqWith(roe).value(),ee=(0,Nt.chain)(o).uniqWith(ooe).value(),be=(0,Nt.chain)(c).uniqWith(P$e).value();(0,Nt.each)(w,_e=>{const Pe=new _i(_e.date,_e.formattedDate);Pe.frequency=a[_e.date],i.dates.append(Pe)}),(0,Nt.each)(f,_e=>{const Pe=r.noctuaFormConfigService.findEdge(_e);Pe.frequency=a[_e],i.relations.append(Pe)}),(0,Nt.each)(E,_e=>{_e.frequency=a[_e.evidence.id+_e.referenceEntity.id+_e.withEntity.id],i.evidences.append(_e)}),(0,Nt.each)(B,_e=>{_e.evidence.frequency=a[_e.evidence.id],i.evidenceEcos.append(_e.evidence)}),(0,Nt.each)(Z,_e=>{_e.referenceEntity.frequency=a[_e.evidence.id],i.references.append(_e.referenceEntity)}),(0,Nt.each)(ee,_e=>{_e.withEntity.frequency=a[_e.evidence.id],i.withs.append(_e.withEntity)}),(0,Nt.each)(Z,_e=>{var Pe;if(_e.referenceEntity&&(null===(Pe=_e.referenceEntity)||void 0===Pe?void 0:Pe.id.trim().startsWith("PMID"))){const Ie=new Fz;Ie.id=_e.referenceEntity.id.trim(),Ie.frequency=a[_e.referenceEntity.id],i.papers.append(Ie)}}),(0,Nt.each)(be,_e=>{_e.frequency=a[_e.orcid],i.contributors.append(_e)})}getActivityPreset(e,i,r,o){let c=Wi.default;return r!==Ht.edge.partOf.id&&r!==Ht.edge.locatedIn.id&&r!==Ht.edge.isActiveIn.id||!e.hasRootType(Fl)?e.term.id===Ht.rootNode.mf.id?(0,Nt.each)(o,function(u){(0,Nt.find)(Ht.causalEdges,{id:u.predicate_id()})&&(c=Wi.bpOnly)}):i.hasRootType(zl)&&(c=Wi.proteinComplex):c=Wi.ccOnly,this.noctuaFormConfigService.createActivityBaseModel(c)}graphToActivities(e){const i=this,r=[];return(0,Nt.each)(e.all_edges(),o=>{const a=o.subject_id(),c=o.object_id(),u=i.nodeToActivityNode(e,a),f=i.nodeToActivityNode(e,c);if(i.isStartEdge(u,o.predicate_id())){const w=e.get_edges_by_subject(a),E=i.getActivityPreset(u,f,o.predicate_id(),w),B=E.rootNode;B.term=u.term,B.date=u.date,B.classExpression=u.classExpression,B.setIsComplement(u.isComplement),B.uuid=a,i._graphToActivityDFS(e,E,w,B),E.id=a,E.postRunUpdateCompliment(),E.postRunUpdate(),r.push(E)}}),r}graphToMolecules(e){const i=this,r=[];return(0,Nt.each)(e.all_nodes(),o=>{const a=i.nodeToActivityNode(e,o.id());if(a.hasRootType(Y0)&&!a.hasRootType(Fl)){const c=e.get_edges_by_subject(o.id()),u=e.get_edges_by_object(o.id());if(!(0,Nt.find)(u,w=>w.predicate_id()===Ht.edge.enabledBy.id)){const w=i.noctuaFormConfigService.createActivityBaseModel(Wi.molecule),E=w.rootNode;E.term=a.term,E.date=a.date,E.classExpression=a.classExpression,E.uuid=o.id(),w.id=o.id(),i._graphToActivityDFS(e,w,c,E),r.push(w)}}}),r}getCausalRelations(e){const i=this,r=[];return(0,Nt.each)(e.activities,o=>{(0,Nt.each)(e.graph.get_edges_by_subject(o.id),a=>{const c=a.predicate_id(),u=i.edgeToEvidence(e.graph,a),f=a.object_id(),w=i.nodeToActivityNode(e.graph,f),B=this.noctuaFormConfigService.findEdge(c);if(w.hasRootType(ul)||w.hasRootType(Y0)){const Z=e.findActivityById(f),ee=new xm(B,u);B.id===Ht.edge.hasInput.id&&(ee.isReverseLink=!0,ee.reverseLinkTitle="input of");const be=new zh(o,Z,ee);be.subject&&be.object&&r.push(be)}})}),r}saveModelGroup(e,i){e.manager.use_groups([i]),e.groupId=i}copyModel(e,i){const r=this,o=new Ed.request_set(r.noctuaUserService.baristaToken,e.id),a=new Ed.request("model","copy");return a.model(e.id),o.add_annotation_to_model("title",i),o.add(a,"query"),r.noctuaUserService.user&&r.noctuaUserService.user.groups.length>0&&o.use_groups([r.noctuaUserService.user.group.id]),e.copyModelManager.request_with(o)}copyModelRaw(e,i,r=!1){const o=this,a=lo.globalBaristaLocation,c=lo.globalMinervaDefinitionName;let u=new A0;u=u.append("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");let w=`token=${this.noctuaUserService.baristaToken}&intention=query&requests=${encodeURIComponent(JSON.stringify([{entity:"model",operation:"copy",arguments:{"model-id":e.id,"preserve-evidence":r,values:[{key:"title",value:i}]}}]))}`;return o.noctuaUserService.user&&o.noctuaUserService.user.groups.length>0&&(w=w+"&provided-by="+o.noctuaUserService.user.group.id),this.httpClient.post(`${a}/api/${c}/m3BatchPrivileged`,w,{headers:u})}resetModel(e){const r=new Ed.request_set(this.noctuaUserService.baristaToken,e.id),o=new Ed.request("model","reset");return o.model(e.id),r.add(o,"query"),e.manager.request_with(r)}storeCam(e){const i=this,r=new Ed.request_set(i.noctuaUserService.baristaToken,e.id);return i.noctuaUserService.user&&i.noctuaUserService.user.groups.length>0&&r.use_groups([i.noctuaUserService.user.group.id]),r.store_model(e.id),e.manager.request_with(r)}saveCamAnnotations(e,i){const o=e.graph.get_annotations_by_key("title"),a=e.graph.get_annotations_by_key("state"),c=e.graph.get_annotations_by_key("comment"),u=new Ed.request_set(this.noctuaUserService.baristaToken,e.id);(0,Nt.each)(o,function(f){u.remove_annotation_from_model("title",f.value())}),(0,Nt.each)(a,function(f){u.remove_annotation_from_model("state",f.value())}),(0,Nt.each)(c,function(f){u.remove_annotation_from_model("comment",f.value())}),u.add_annotation_to_model("title",i.title),u.add_annotation_to_model("state",i.state),i.comments.forEach(f=>{u.add_annotation_to_model("comment",f)}),u.store_model(e.id),e.manager.request_with(u)}addActivity(e,i,r,o,a=g3.ADD_ACTIVITY){const c=this,u=new Ed.request_set(c.noctuaUserService.baristaToken,e.model.id);return e.title||u.add_annotation_to_model("title",o),(0,Nt.each)(i,function(f){c.addIndividual(u,f)}),c.addFact(u,r),c.noctuaUserService.user&&c.noctuaUserService.user.groups.length>0&&u.use_groups([c.noctuaUserService.user.group.id]),e.operation=a,u.store_model(e.id),e.manager.request_with(u)}editConnection(e,i,r){const o=this,a=new Ed.request_set(o.noctuaUserService.baristaToken,e.id);return(0,Nt.each)(i,c=>{a.remove_fact([c.subject.uuid,c.object.uuid,c.predicate.edge.id])}),o.addFact(a,r),o.noctuaUserService.user&&o.noctuaUserService.user.groups.length>0&&a.use_groups([o.noctuaUserService.user.group.id]),a.store_model(e.id),e.manager.request_with(a)}editActivity(e,i,r,o,a=[]){const c=this,u=new Ed.request_set(c.noctuaUserService.baristaToken,e.id);return(0,Nt.each)(i,function(f){c.addIndividual(u,f)}),(0,Nt.each)(a,function(f){u.remove_fact([f.subject.uuid,f.object.uuid,f.predicate.edge.id])}),c.addFact(u,r),(0,Nt.each)(o,function(f){u.remove_individual(f)}),c.noctuaUserService.user&&c.noctuaUserService.user.groups.length>0&&u.use_groups([c.noctuaUserService.user.group.id]),u.store_model(e.id),e.manager.request_with(u)}bulkEditActivity(e){const i=this,r=new Ed.request_set(i.noctuaUserService.baristaToken,e.id);return(0,Nt.each)(e.activities,o=>{(0,Nt.each)(o.nodes,a=>{i.bulkEditIndividual(r,e.id,a),(0,Nt.each)(a.predicate.evidence,c=>{i.bulkEditEvidence(r,e.id,c)})})}),i.noctuaUserService.user&&i.noctuaUserService.user.groups.length>0&&r.use_groups([i.noctuaUserService.user.group.id]),e.replaceManager.request_with(r)}bulkEditActivityNode(e,i){const r=this,o=new Ed.request_set(r.noctuaUserService.baristaToken,e.id);return r.bulkEditIndividual(o,e.id,i),(0,Nt.each)(i.predicate.evidence,a=>{r.bulkEditEvidence(o,e.id,a)}),r.noctuaUserService.user&&r.noctuaUserService.user.groups.length>0&&o.use_groups([r.noctuaUserService.user.group.id]),e.replaceManager.request_with(o)}deleteActivity(e,i,r){const o=this;return(()=>{const c=new Ed.request_set(o.noctuaUserService.baristaToken,e.model.id);return(0,Nt.each)(r,function(u){c.remove_fact([u.subject.uuid,u.object.uuid,u.predicate.edge.id])}),(0,Nt.each)(i,function(u){c.remove_individual(u)}),c.store_model(e.id),o.noctuaUserService.user&&o.noctuaUserService.user.groups.length>0&&c.use_groups([o.noctuaUserService.user.group.id]),e.manager.request_with(c)})()}deleteEvidence(e,i){const r=this;return(()=>{const a=new Ed.request_set(r.noctuaUserService.baristaToken,e.model.id);return a.remove_evidence(i,e.model.id),a.store_model(e.id),r.noctuaUserService.user&&r.noctuaUserService.user.groups.length>0&&a.use_groups([r.noctuaUserService.user.group.id]),e.manager.request_with(a)})()}deleteEvidenceAnnotation(e,i,r,o){const a=this;return(()=>{const u=new Ed.request_set(a.noctuaUserService.baristaToken,e.model.id);return u.remove_annotation_from_individual(r,o,null,i),u.store_model(e.id),a.noctuaUserService.user&&a.noctuaUserService.user.groups.length>0&&u.use_groups([a.noctuaUserService.user.group.id]),e.manager.request_with(u)})()}addFact(e,i){const r=this;(0,Nt.each)(i,function(o){const a=r.addIndividual(e,o.subject),c=r.addIndividual(e,o.object);a&&c&&(o.predicate.uuid=e.add_fact([a,c,o.predicate.edge.id]),(0,Nt.each)(o.predicate.evidence,function(u){e.add_evidence(u.evidence.id,u.reference,u.with,o.predicate.uuid)}))})}deleteFact(e,i){(0,Nt.each)(i,function(o){(0,Nt.each)(o.predicate.evidence,function(a){e.remove_individual(a.uuid)}),e.remove_individual(o.subject.uuid)})}addIndividual(e,i){if(i.uuid)return i.uuid;if(i.hasValue()){if(i.isComplement){const r=new f4;r.as_complement(i.term.id),i.uuid=e.add_individual(r)}else i.uuid=e.add_individual(i.term.id);return i.uuid}return null}editIndividual(e,i,r,o){r.hasValue()&&o.hasValue()&&(e.remove_type_from_individual(r.classExpression,r.uuid,i.id),e.add_type_to_individual(f4.cls(o.getTerm().id),r.uuid,i.id))}bulkEditIndividual(e,i,r){r.hasValue()&&r.pendingEntityChanges&&(e.remove_type_from_individual(f4.cls(r.pendingEntityChanges.oldValue.id),r.pendingEntityChanges.uuid,i),e.add_type_to_individual(f4.cls(r.pendingEntityChanges.newValue.id),r.pendingEntityChanges.uuid,i))}bulkEditEvidence(e,i,r){r.hasValue()&&r.pendingEvidenceChanges&&(e.remove_type_from_individual(f4.cls(r.pendingEvidenceChanges.oldValue.id),r.uuid,i),e.add_type_to_individual(f4.cls(r.pendingEvidenceChanges.newValue.id),r.pendingEvidenceChanges.uuid,i),this.editUserEvidenceAnnotations(e,r.pendingEvidenceChanges.uuid)),r.hasValue()&&r.pendingReferenceChanges&&(e.remove_annotation_from_individual("source",r.pendingReferenceChanges.oldValue.id,null,r.pendingReferenceChanges.uuid),e.add_annotation_to_individual("source",r.pendingReferenceChanges.newValue.id,null,r.pendingReferenceChanges.uuid),this.editUserEvidenceAnnotations(e,r.pendingReferenceChanges.uuid)),r.hasValue()&&r.pendingWithChanges&&(e.remove_annotation_from_individual("with",r.pendingWithChanges.oldValue.id,null,r.pendingWithChanges.uuid),e.add_annotation_to_individual("with",r.pendingWithChanges.newValue.id,null,r.pendingWithChanges.uuid),this.editUserEvidenceAnnotations(e,r.pendingWithChanges.uuid))}editUserEvidenceAnnotations(e,i){e.remove_annotation_from_individual("provided-by",this.noctuaUserService.user.group.url,null,i),e.add_annotation_to_individual("provided-by",this.noctuaUserService.user.group.url,null,i),e.remove_annotation_from_individual("contributor",this.noctuaUserService.user.orcid,null,i),e.add_annotation_to_individual("contributor",this.noctuaUserService.user.orcid,null,i)}replaceIndividual(e,i,r,o){e.remove_type_from_individual(f4.cls(r.id),r.uuid,i),e.add_type_to_individual(f4.cls(o.id),r.uuid,i)}deleteIndividual(e,i){i.uuid&&e.remove_individual(i.uuid)}getActivityLocations(e){const i=localStorage.getItem(`activityLocations-${e.id}`);if(i){e.manualLayout=!0;const r=JSON.parse(i);e.activities.forEach(o=>{const a=(0,Nt.find)(r,{id:o.id});a&&(o.position.x=a.x,o.position.y=a.y)})}}setActivityLocations(e){const i=e.activities.map(r=>({id:r.id,x:r.position.x,y:r.position.y}));localStorage.setItem(`activityLocations-${e.id}`,JSON.stringify(i))}addActivityLocation(e,i){const r=[...e.activities,i].map(o=>({id:o.id,x:o.position.x,y:o.position.y}));localStorage.setItem(`activityLocations-${e.id}`,JSON.stringify(r))}_graphToActivityDFS(e,i,r,o){const a=this;return(0,Nt.each)(r,c=>{const u=c.predicate_id(),f=c.object_id(),w=a.edgeToEvidence(e,c),E=a.nodeToActivityNode(e,f),B=this._insertNode(i,u,o,E);if(i.updateEntityInsertMenu(),B){const Z=i.getEdge(o.id,B.id);Z&&(Z.object.uuid=E.uuid,Z.object.term=E.term,Z.object.date=E.date,Z.object.classExpression=E.classExpression,Z.object.setIsComplement(E.isComplement),Z.predicate.isComplement=Z.object.isComplement,Z.predicate.evidence=w,Z.predicate.uuid=c.id(),a._graphToActivityDFS(e,i,e.get_edges_by_subject(f),Z.object))}}),i}_insertNode(e,i,r,o){let c;return(0,Nt.each)(r.canInsertNodes,u=>{if(i===u.predicate.id&&o.hasRootTypes(u.node.category))return c=aP(e,r,u),!1}),c}_compareSources(e,i){return e.value()>i.value()?-1:1}}return t.\u0275fac=function(e){return new(e||t)(Rt(C_),Rt(Xd),Rt(uo),Rt(lr),Rt(X2))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class W$e{constructor(n){this.title=new br,this.state=new br,this.group=new br,this.commentFormArray=new Ah([]),this._metadata=n}createCamForm(n,e){const i=this;n&&(i.title.setValue(n.title),i.state.setValue(n.state),i.group.setValue(e?e.group:""),n.comments.forEach(r=>{i.commentFormArray.push(new br(r))}))}getError(){}populateConnectorForm(n){n.title=this.title.value,n.state=this.state.value}}class lP{constructor(n){this._lookupFunc=n}get lookupFunc(){return this._lookupFunc()}}const q$e=v(72759);let Zo=(()=>{class t{constructor(e,i,r,o,a,c,u,f){this.noctuaFormConfigService=e,this.zone=i,this.httpClient=r,this.noctuaUserService=o,this._fb=a,this.noctuaLookupService=c,this._noctuaGraphService=u,this.curieService=f,this.searchApi=lo.searchApi,this.cams=[],this.currentMatch=new _i(null,null),this.onCamChanged=new mr(null),this.camFormGroup=new mr(null),this.camFormGroup$=this.camFormGroup.asObservable(),this.onCamsChanged=new mr(null),this.onCopyModelChanged=new mr(null),this.onCamsCheckoutChanged=new mr(null),this.onSelectedCamChanged=new mr(null),this.onSelectedNodeChanged=new mr(null),this.onSelectedActivityChanged=new mr(null),this.curieUtil=this.curieService.getCurieUtil(),this.onSelectedCamChanged.subscribe(w=>{w&&(this.currentMatch.modelId=w)}),this.onSelectedNodeChanged.subscribe(w=>{w&&(this.currentMatch.uuid=w)})}initializeForm(e){e&&(this.cam=e),this.camForm=this.createCamForm(),this.camFormGroup.next(this._fb.group(this.camForm))}createCamForm(){const i=new lP(this.noctuaLookupService.lookupFunc.bind(this.noctuaLookupService)),r=new W$e(i);return r.createCamForm(this.cam,this.noctuaUserService.user),r}getCam(e){const i=new sP;return this.cam=i,i.graph=null,i.id=e,i.model=Object.assign({},{id:e,title:"",modelInfo:this.noctuaFormConfigService.getModelUrls(e)}),i.expanded=!0,this._noctuaGraphService.getGraphInfo(i,e),i.manager.get_model(i.id),this.onCamChanged.next(i),i}reload(e){this._noctuaGraphService.onCamRebuildChange.next(e)}loadCam(e){e.graph=null,e.modifiedStats=new ym,e.rebuildRule.reset(),e.model=Object.assign({},{id:e.id,title:"",modelInfo:this.noctuaFormConfigService.getModelUrls(e.id)}),this._noctuaGraphService.getGraphInfo(e,e.id),this.cam=e,e.manager.get_model(e.id)}loadCamMeta(e){e.graph=null,e.modifiedStats=new ym,e.model=Object.assign({},{id:e.id,title:"",modelInfo:this.noctuaFormConfigService.getModelUrls(e.id)}),this._noctuaGraphService.getGraphInfo(e,e.id)}buildTermsTree(e){return[e.mf,e.bp,e.cc,e.gp,e.other,e.relations,e.evidences,e.evidenceEcos,e.references,e.withs,e.papers,e.contributors,e.dates].map(o=>({id:o.label,frequency:o.frequency,isCategory:!0,label:o.label,children:o.getSortedNodes()}))}getStoredModel(e){return this.httpClient.get(`${this.searchApi}/stored?id=${e.id}`)}bulkEditCam(e){const r=[];return r.push(this._noctuaGraphService.bulkEditActivity(e)),R0(r)}deleteActivity(e){const r=e.createDelete();return this._noctuaGraphService.deleteActivity(this.cam,r.uuids,r.triples)}updateTermList(e,i){this.noctuaLookupService.termList=this.getUniqueTerms(e),i.termLookup.results=this.noctuaLookupService.termPreLookup(i.type)}updateEvidenceList(e,i){this.noctuaLookupService.evidenceList=this.getUniqueEvidence(e),i.predicate.evidenceLookup.results=this.noctuaLookupService.evidencePreLookup()}updateReferenceList(e,i){this.noctuaLookupService.evidenceList=this.getUniqueEvidence(e),i.predicate.referenceLookup.results=this.noctuaLookupService.referencePreLookup()}updateWithList(e,i){this.noctuaLookupService.evidenceList=this.getUniqueEvidence(e),i.predicate.withLookup.results=this.noctuaLookupService.withPreLookup()}getNodesByType(e){return this.cam.getNodesByType(e)}getNodesByTypeFlat(e){return this.cam.getNodesByTypeFlat(e)}getUniqueTerms(e){const i=this.cam.getTerms(e);return(0,Nt.uniqWith)(i,eoe)}getUniqueEvidence(e){const i=this.cam.getEvidences(e);return(0,Nt.uniqWith)(i,noe)}copyModel(e,i,r=!1){const o=this;return o._noctuaGraphService.copyModelRaw(e,i,r).subscribe(a=>{const c=o._noctuaGraphService.getMetadata(a.data);o.onCopyModelChanged.next(c)})}resetModel(e){return this._noctuaGraphService.resetModel(e)}reviewChangesCam(e,i){return e.reviewCamChanges(i)}reviewCamChanges(e){const r=new ym;return this.reviewChangesCam(e,r)&&r.camsCount++,r.updateTotal(),{stats:r}}populateStoredModel(e,i){e.storedGraph=new(0,q$e.graph),e.storedGraph.load_data_basic(i),e.storedActivities=this._noctuaGraphService.graphToActivities(e.storedGraph),e.checkStored(),e.reviewCamChanges()}addCamEdit(e){const i=this;e.loading.status=!0,i.getStoredModel(e).pipe(Eu(()=>{e.loading.status=!1})).subscribe({next:r=>{if(!r||!r.storedModel||!r.activeModel)return;i.populateStoredModel(e,r.storedModel);const o=i.reviewCamChanges(e);i.onCamsCheckoutChanged.next(o),e.loading.status=!1}})}loadCams(){this.onCamsChanged.next(this.cams)}updateModel(e,i){const r=this;i&&i.length>0&&i.forEach(o=>{const a=(0,Nt.find)(e,{id:o.data().id});a&&(r._noctuaGraphService.rebuild(a,o),a.checkStored())})}expandMatch(e){(0,Nt.each)(this.cams,r=>{r.expanded=!0;const o=r.findActivityByNodeUuid(e);(0,Nt.each)(o,a=>{a.expanded=!0})})}getReplaceObject(e,i,r){const a=(0,Nt.groupBy)(e,"modelId"),c=[];let u;return u=r&&r.name===Ht.findReplaceCategory.options.reference.name?Rl.formatReference(i):null==i?void 0:i.id,(0,Nt.each)(a,(f,w)=>{const E=(0,Nt.find)(this.cams,{id:w});E&&(E.addPendingChanges(e,u,r),c.push(E))}),this.reviewChangesCams(),c}replace(e){return this.reviewChangesCams(),this.bulkEditCams(e)}bulkEditActivityNode(e,i){const r=this,o=[];return o.push(r._noctuaGraphService.bulkEditActivityNode(e,i)),R0(o).pipe(Qe(a=>r.updateModel([e],a)))}bulkEditCams(e){const i=this,r=[];return(0,Nt.each)(e,o=>{r.push(i._noctuaGraphService.bulkEditActivity(o))}),R0(r).pipe(Qe(o=>i.updateModel(e,o)))}storeCams(e){const i=this;return Jo(e).pipe(ba(r=>i._noctuaGraphService.storeCam(r)))}bulkStoredModel(e){const i=this,r=[];return(0,Nt.each)(e,o=>{o.loading=new Pd(!0,"Calculating Pending Changes ..."),r.push(i.getStoredModel(o))}),R0(r)}reviewChangesCams(){const e=this,i=new ym;(0,Nt.each)(this.cams,o=>{e.reviewChangesCam(o,i)&&i.camsCount++}),i.updateTotal(),this.onCamsCheckoutChanged.next({stats:i})}clearHighlight(){(0,Nt.each)(this.cams,e=>e.clearHighlight())}clearCams(){this.cams=[],this.onCamsChanged.next(this.cams)}resetCams(e){const i=this;return Jo(e).pipe(ba(r=>i._noctuaGraphService.resetModel(r)))}resetMatch(){(0,Nt.each)(this.cams,e=>{e.queryMatch=new Rz})}resetLoading(e,i=new Pd){(0,Nt.each)(e,r=>{r.loading=i})}reloadCam(e,i){const r=this;Jo([e]).pipe(ba(o=>i===Fh.RESET?(o.loading=new Pd(!0,"Resetting Model ..."),r.resetCams([o])):i===Fh.STORE?(o.loading=new Pd(!0,"Saving Model ..."),r.storeCams([o])):ls),Eu(()=>{r.resetLoading([e])})).subscribe({next:o=>{if(!o||!o.data())return;r.populateStoredModel(e,o.data());const a=r.reviewCamChanges(e);r.onCamsCheckoutChanged.next(a),e.loading.status=!1}})}sortCams(){this.cams.sort(this._compareDateReviewAdded)}applyMatchWeights(e){(0,Nt.each)(e,(r,o)=>{r.applyWeights(1)})}updateDisplayNumber(e){(0,Nt.each)(e,(i,r)=>{i.displayNumber=(r+1).toString(),i.updateActivityDisplayNumber()})}_compareDateReviewAdded(e,i){return e.dateReviewAdded{e._metadata.lookupFunc.termLookup(i,n.evidenceLookup.requestParams).subscribe(r=>{n.evidenceLookup.results=r})}),e.reference.valueChanges.pipe(ns(),Ls(400)).subscribe(i=>{n.referenceLookup.results=e._metadata.lookupFunc.evidenceLookup(i,"reference")}),e.with.valueChanges.pipe(ns(),Ls(400)).subscribe(i=>{n.withLookup.results=e._metadata.lookupFunc.evidenceLookup(i,"with")})}setEvidenceValidator(){this.evidence.setValidators(function X$e(t){return n=>{if(t&&t.hasValue()){if(!n.value)return{[`Evidence for "${t.label}" is required`]:{value:n.value}};if(!n.value.id)return{[`Select correct evidence for "${t.label}" correct value`]:{value:n.value}}}return null}}(this._term))}getErrors(n){this.evidence.errors&&n.push(this.evidence.errors),this.reference.errors&&n.push(this.reference.errors),this.with.errors&&n.push(this.with.errors)}}class $$e{constructor(n){this.edge=new br,this.relationship=new br,this.directness=new br,this.effectDirection=new br,this.evidenceForms=[],this.evidenceFormArray=new Ah([]),this._fb=new Zd,this._metadata=n}createEntityForms(n){const e=this;n.evidence.forEach(i=>{const r=new dP(e._metadata,null,i);e.evidenceForms.push(r),r.onValueChanges(n),e.evidenceFormArray.push(e._fb.group(r))})}updateEvidenceForms(n){const e=this;e.evidenceForms=[],e.evidenceFormArray=new Ah([]),n.evidence.forEach(i=>{const r=new dP(e._metadata,null,i);e.evidenceForms.push(r),r.onValueChanges(n),e.evidenceFormArray.push(e._fb.group(r))})}populateConnectorForm(){const e=[];this.evidenceForms.forEach(i=>{const r=new Rl;i.populateEvidence(r),e.push(r)})}}let uP=(()=>{class t{constructor(e,i,r,o,a){this._fb=e,this.noctuaFormConfigService=i,this.camService=r,this.noctuaLookupService=o,this.noctuaGraphService=a,this.connectors=[],this._allowRequestWatch=!1,this.onActivityChanged=new mr(null),this.onLinkChanged=new mr(null),this.connectorFormGroup=new mr(null),this.connectorFormGroup$=this.connectorFormGroup.asObservable(),this.camService.onCamChanged.subscribe(c=>{!c||(this.cam=c)})}initializeForm(e,i){const r=this;if(r._allowRequestWatch=!1,r.subjectActivity=this.cam.findActivityById(e),r.objectActivity=this.cam.findActivityById(i),r.causalConnection=r.cam.getCausalRelation(e,i),this.causalConnection){const o=(0,Nt.cloneDeep)(this.causalConnection.predicate);r.connectorActivity=new zz(r.subjectActivity,r.objectActivity,o),r.connectorActivity.state=m3.editing,r.currentConnectorActivity=(0,Nt.cloneDeep)(this.connectorActivity)}else{const o=r.noctuaFormConfigService.createPredicate(_i.createEntity(Ht.edge.positivelyRegulates));r.connectorActivity=new zz(r.subjectActivity,r.objectActivity,o),r.connectorActivity.state=m3.creation,r.connectorActivity.addDefaultEvidence()}this.connectorForm=this.createConnectorForm(),this.connectorFormGroup.next(this._fb.group(this.connectorForm)),this.connectorActivity.connectorType===s2.ACTIVITY_ACTIVITY?(this.connectorForm.relationship.setValue(this.connectorActivity.rule.relationship),this.connectorForm.effectDirection.setValue(this.connectorActivity.rule.effectDirection),this.connectorForm.directness.setValue(this.connectorActivity.rule.directness)):this.connectorActivity.connectorType===s2.ACTIVITY_MOLECULE?this.connectorForm.relationship.setValue(this.connectorActivity.rule.relationship):this.connectorActivity.connectorType===s2.MOLECULE_ACTIVITY&&(this.connectorForm.relationship.setValue(this.connectorActivity.rule.relationship),this.connectorForm.effectDirection.setValue(this.connectorActivity.rule.effectDirection)),this._onActivityFormChanges(),this.connectorForm.effectDirection.setValue(this.connectorActivity.rule.effectDirection)}updateEvidence(e){this.connectorForm.updateEvidenceForms(e.predicate),this.connectorFormGroup.next(this._fb.group(this.connectorForm))}createConnectorForm(){const e=this,i=new lP(e.noctuaLookupService.lookupFunc.bind(e.noctuaLookupService)),r=new $$e(i);return r.createEntityForms(e.connectorActivity.predicate),r}saveActivity(){const e=this;if(e.connectorActivity.state===m3.editing){const i=e.connectorActivity.createEdit(e.currentConnectorActivity);return e.noctuaGraphService.editConnection(e.cam,i.removeTriples,i.addTriples).then(()=>{this.initializeForm(e.subjectActivity.id,e.objectActivity.id)})}{const i=e.connectorActivity.createSave();return e.noctuaGraphService.addActivity(e.cam,[],i.triples,"",g3.ADD_CAUSAL_RELATION)}}deleteConnectorEdge(e){const r=e.createDelete();return this.noctuaGraphService.deleteActivity(this.cam,[],r.triples)}_onActivityFormChanges(){this.connectorFormGroup.getValue().valueChanges.subscribe(e=>{var i,r;this.connectorActivity.checkConnection(e),(null===(r=null===(i=this.connectorActivity.predicate)||void 0===i?void 0:i.edge)||void 0===r?void 0:r.id)&&this._allowRequestWatch&&this.connectorActivity.state===m3.editing&&this.saveActivity(),this._allowRequestWatch=!0})}}return t.\u0275fac=function(e){return new(e||t)(Rt(Zd),Rt(lr),Rt(Zo),Rt(X2),Rt(hl))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class voe{constructor(n,e){this.relationship=new br,this.term=new br,this.evidenceForms=[],this.evidenceFormArray=new Ah([]),this._fb=new Zd,this._metadata=n,this.id=e.id,this.node=e,this.term.setValue(e.getTerm()),this.relationship.setValue(e.predicate.edge),this._onValueChanges(e.termLookup)}createEvidenceForms(n){const e=this;this.setTermValidator(n),n.predicate.evidence.forEach(i=>{const r=new dP(e._metadata,n,i);e.evidenceForms.push(r),r.onValueChanges(n.predicate),e.evidenceFormArray.push(e._fb.group(r))})}refreshEvidenceForms(n){const e=this;e.evidenceForms=[],e.evidenceFormArray=new Ah([]),n.forEach(i=>{const r=new dP(e._metadata,e.node,i);e.evidenceForms.push(r),r.onValueChanges(e.node.predicate),e.evidenceFormArray.push(e._fb.group(r))})}populateTerm(){const n=this;n.relationship.value&&n.node.relationEditable&&(n.node.predicate.edge=n.relationship.value),n.term.value&&n.term.value.id&&(n.node.term=new _i(n.term.value.id,n.term.value.label),n.evidenceForms.forEach((e,i)=>{const r=n.node.predicate.evidence[i];r&&e.populateEvidence(r)}))}populateTermEvidenceOnly(){const n=this;n.evidenceForms.forEach((e,i)=>{const r=n.node.predicate.evidence[i];r&&e.populateEvidence(r)})}_onValueChanges(n){const e=this;e.term.valueChanges.pipe(ns(),Ls(400)).subscribe(i=>{e._metadata.lookupFunc.termLookup(i,n.requestParams).subscribe(r=>{n.results=r})})}setTermValidator(n){this.term.setValidators("mf"===n.id?function Q$e(t){return n=>n.value?n.value.id?null:{[`Selevt ${t.label} correct value`]:{value:n.value}}:{[`${t.label} is required`]:{value:n.value}}}(n):null)}getErrors(n){const e=this;e.term.errors&&n.push(e.term.errors),e.evidenceForms.forEach(i=>{i.getErrors(n)})}}let Td=(()=>{class t{constructor(e,i,r,o,a,c){this._fb=e,this.zone=i,this.noctuaFormConfigService=r,this.noctuaGraphService=o,this.camService=a,this.noctuaLookupService=c,this.entityFormGroup=new mr(null),this.entityFormGroup$=this.entityFormGroup.asObservable(),this.camService.onCamChanged.subscribe(u=>{!u||(this.cam=u)})}initializeForm(e,i){this.currentActivity=(0,Nt.cloneDeep)(e),this.activity=e,this.entity=i,this.entityForm=this.createActivityEntityForm(this.entity),this.entityFormGroup.next(this._fb.group(this.entityForm)),this._onActivityFormChanges()}reinitializeForm(e,i){this.entityForm.term.setValue(e),this.entityForm.refreshEvidenceForms(i),this.entityFormGroup.next(this._fb.group(this.entityForm))}createActivityEntityForm(e){const r=new lP(this.noctuaLookupService.lookupFunc.bind(this.noctuaLookupService)),o=new voe(r,e);return o.createEvidenceForms(e),o}activityEntityFormToActivity(){this.entityForm.populateTerm()}_onActivityFormChanges(){this.entityFormGroup.getValue().valueChanges.subscribe(()=>{})}saveActivity(){const e=this;e.activityEntityFormToActivity(),e.activity instanceof zz&&(e.activity.predicate.evidence=e.entity.predicate.evidence);const i=e.activity.createEdit(e.currentActivity);return e.noctuaGraphService.editActivity(e.cam,i.addNodes,i.addTriples,i.removeIds)}addIndividual(){const e=this;e.activityEntityFormToActivity();const i=e.activity.createAddIndividual(e.currentActivity,e.entity.predicate);return e.noctuaGraphService.editActivity(e.cam,[e.entity],[i.addTriples],[],[])}saveSearchDatabase(){const e=this,i=e.currentActivity.getEdge(e.entity.predicate.subjectId,e.entity.predicate.objectId),r=e.activity.getEdge(e.entity.predicate.subjectId,e.entity.predicate.objectId);return e.noctuaGraphService.editActivity(e.cam,[],[r],[],[i])}addEvidence(){const e=this;e.activityEntityFormToActivity();const i=e.activity.createEditEvidence(e.currentActivity,e.entity.predicate);return e.noctuaGraphService.editActivity(e.cam,[],[i.addTriples],[],[i.removeTriples])}createEvidence(e){const i=this;i.entity.predicate.evidence=e;const r=i.activity.createEditEvidence(i.currentActivity,i.entity.predicate);return i.noctuaGraphService.editActivity(i.cam,[],[r.addTriples],[],[r.removeTriples])}deleteActivityNode(e,i){const o=e.createActivityNodeDelete(i);return this.noctuaGraphService.deleteActivity(this.cam,o.uuids,[])}deleteEvidence(e){return this.noctuaGraphService.deleteEvidence(this.cam,e)}deleteEvidenceReference(e,i){return this.noctuaGraphService.deleteEvidenceAnnotation(this.cam,e,"source",i)}deleteEvidenceWith(e,i){return this.noctuaGraphService.deleteEvidenceAnnotation(this.cam,e,"with",i)}saveActivityReplace(e,i){const r=this;i&&(e.loading=new Pd(!0,"Replacing ..."));const o=(0,Nt.cloneDeep)(r.entity);return r.activityEntityFormToActivity(),r.entity.addPendingChanges(o),r.camService.bulkEditActivityNode(e,r.entity)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Zd),Rt(ji),Rt(lr),Rt(hl),Rt(Zo),Rt(X2))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Coe{constructor(n){this.name="",this.isComplement=!1,this.entityForms=[],this.entityGroup=new Ah([]),this._fb=new Zd,this._metadata=n}createEntityForms(n){const e=this;this.entityForms=[],n.forEach(i=>{if(i.visible){const r=new voe(e._metadata,i);i.skipEvidenceCheck||r.createEvidenceForms(i),e.entityForms.push(r),e.entityGroup.push(e._fb.group(r))}})}populateActivityNodes(n){this.entityForms.forEach(i=>{i.populateTerm()})}getErrors(n){this.entityForms.forEach(i=>{i.getErrors(n)})}}class K$e{constructor(n){this.entityGroupForms=[],this.bpOnlyEdge=new br,this.ccOnlyEdge=new br,this.gp=new Ah([]),this.fd=new Ah([]),this._fb=new Zd,this._metadata=n}createMolecularEntityForm(n){const e=this;(0,Nt.each)(n,(i,r)=>{const o=new Coe(this._metadata);this.entityGroupForms.push(o),o.name=r,o.createEntityForms(i.nodes),e.gp.push(e._fb.group(o))})}createFunctionDescriptionForm(n){const e=this;(0,Nt.each)(n,(i,r)=>{const o=new Coe(this._metadata);this.entityGroupForms.push(o),o.name=r,o.isComplement=i.isComplement,o.createEntityForms(i.nodes),e.fd.push(e._fb.group(o))})}populateActivity(n){this.entityGroupForms.forEach(e=>{e.populateActivityNodes(n)}),this.bpOnlyEdge.value&&(n.bpOnlyEdge=new _i(this.bpOnlyEdge.value.id,this.bpOnlyEdge.value.label))}getErrors(n){this.entityGroupForms.forEach(e=>{e.getErrors(n)})}}let ps=(()=>{class t{constructor(e,i,r,o,a){this._fb=e,this.noctuaFormConfigService=i,this.camService=r,this.noctuaGraphService=o,this.noctuaLookupService=a,this.errors=[],this.camService.onCamChanged.subscribe(c=>{!c||(this.cam=c)}),this.activity=this.noctuaFormConfigService.createActivityModel(Wi.default),this.onActivityCreated=new mr(null),this.onActivityChanged=new mr(null),this.activityFormGroup=new mr(null),this.activityFormGroup$=this.activityFormGroup.asObservable(),this.initializeForm()}initializeForm(e){const i=this;i.errors=[],i.state=EC.creation,i.currentActivity=null,i.activity.resetPresentation(),i.activityForm=this.createActivityForm(),i.activityFormGroup.next(this._fb.group(this.activityForm)),i.activity.updateShapeMenuShex(e),i.activity.enableSubmit(),i._onActivityFormChanges()}initializeFormData(){this.fakester(this.activity),this.initializeForm()}createActivityForm(){const e=this,i=new lP(e.noctuaLookupService.lookupFunc.bind(e.noctuaLookupService)),r=new K$e(i);return r.createFunctionDescriptionForm(e.activity.presentation.fd),r.createMolecularEntityForm(e.activity.presentation.gp),r}activityFormToActivity(){this.activityForm.populateActivity(this.activity)}_onActivityFormChanges(){this.activityFormGroup.getValue().valueChanges.subscribe(()=>{this.activityFormToActivity(),this.activity.enableSubmit()})}getActivityFormErrors(){let e=[];return this.activityForm.getErrors(e),e}setActivityType(e){this.activity=this.noctuaFormConfigService.createActivityModel(e),this.initializeForm()}linkFormNode(e,i){e.uuid=i.uuid,e.term=i.getTerm()}cloneForm(e,i){this.activity=this.noctuaFormConfigService.createActivityModel(e.activityType),i&&(0,Nt.each)(i,function(r){let o=this.activity.getNode(r.id);o&&o.copyValues(r)}),this.initializeForm()}saveActivity(){const e=this;if(e.activityFormToActivity(),this.activity.activityType===Wi.ccOnly){const i=[],r=e.createCCAnnotations(e.activity);return(0,Nt.each)(r,o=>{const a=o.createSave();i.push(e.noctuaGraphService.addActivity(e.cam,a.nodes,a.triples,a.title))}),R0(i)}{const i=e.activity.createSave();return R0(e.noctuaGraphService.addActivity(e.cam,i.nodes,i.triples,i.title))}}createCCAnnotations(e){const i=this,r=e.getEdges(e.rootNode.id),o=[];return(0,Nt.each)(r,a=>{const c=new TC,u=(0,Nt.cloneDeep)(a.subject),f=(0,Nt.cloneDeep)(a.object),w=(0,Nt.cloneDeep)(a.predicate);c.activityType=e.activityType,c.addNode(u),c.addNodes(f),c.addEdge(u,f,w),i._createCCAnnotationsDFS(e,c,f),o.push(c)}),o}_createCCAnnotationsDFS(e,i,r){const o=this,a=e.getEdges(r.id);(0,Nt.each)(a,c=>{const u=(0,Nt.cloneDeep)(c.object),f=(0,Nt.cloneDeep)(c.predicate);i.addNodes(u),i.addEdge(r,u,f),o._createCCAnnotationsDFS(e,i,u)})}clearForm(){this.activity=this.noctuaFormConfigService.createActivityModel(this.activity.activityType),this.initializeForm()}fakester(e){const i=this;(0,Nt.each)(e.nodes,r=>{i.noctuaLookupService.termLookup("a",Object.assign({},r.termLookup.requestParams,{rows:100})).subscribe(o=>{if(o&&o.length>0){const a=o.length;r.term=_i.createEntity(o[Math.floor(Math.random()*a)]),(0,Nt.each)(r.predicate.evidence,c=>{i.noctuaLookupService.termLookup("a",Object.assign({},r.predicate.evidenceLookup.requestParams,{rows:100})).subscribe(u=>{if(u&&u.length>0){const f=u.length;c.evidence=_i.createEntity(u[Math.floor(Math.random()*f)]),c.reference=`PMID:${Math.floor(1e6*Math.random())+1e3}`}})})}})})}}return t.\u0275fac=function(e){return new(e||t)(Rt(Zd),Rt(lr),Rt(Zo),Rt(hl),Rt(X2))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var b_=(()=>{return(t=b_||(b_={})).ACTIVITY="activity",t.ACTIVITY_CONNECTOR="activity_connector",b_;var t})();let kC=(()=>{class t{constructor(e){this.noctuaFormConfigService=e}buildTermsStats(e){return[e.mf,e.bp,e.cc,e.gp,e.other].map(o=>({name:o.shorthand?o.shorthand:o.label,series:o.getSortedNodes().map(a=>({name:a.term.label,value:a.frequency}))}))}buildTermsDistribution(e){const i=e.reduce((a,c)=>(a.push(...c.nodes),a),[]);return(0,Nt.orderBy)(i,["frequency"],["desc"]).slice(0,20).map(a=>({name:a.term.label,value:a.frequency}))}buildContributionsStats(e){const i=(0,Nt.orderBy)(e,["id"]);let r=0;return[{name:"All Contributors",series:i.map(a=>(r+=a.frequency,{name:new Date(a.label),value:r}))}]}buildAspectPie(e){return e.map(r=>({name:r.label,value:r.frequency}))}buildTermsPie(e){return e.map(r=>({name:r.term.label,value:r.frequency}))}buildRelationsPie(e){return(0,Nt.orderBy)(e,["frequency"],["desc"]).map(o=>({name:o.label,value:o.frequency}))}buildContributorBar(e){return(0,Nt.orderBy)(e,["frequency"],["desc"]).map(o=>({name:o.name,value:o.frequency}))}}return t.\u0275fac=function(e){return new(e||t)(Rt(lr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var k1=(()=>{return(t=k1||(k1={})).activityForm="activityForm",t.camForm="camForm",t.findReplace="findReplace",t.copyModel="copyModel",t.camTermsSummary="camTermsSummary",t.camStats="camStats",k1;var t})(),x_=(()=>{return(t=x_||(x_={})).camPreview="camPreview",t.camTable="camTable",x_;var t})(),y_=(()=>{return(t=y_||(y_={})).activityForm="activityForm",t.camForm="camForm",t.termDetail="termDetail",y_;var t})();class Z$e{}function J$e(t,n){return t.taxonName{class t{constructor(e){this._router=e,this._init()}get bufferValue(){return this._bufferValue.asObservable()}setBufferValue(e){this._bufferValue.next(e)}get mode(){return this._mode.asObservable()}setMode(e){this._mode.next(e)}get value(){return this._value.asObservable()}setValue(e){this._value.next(e)}get visible(){return this._visible.asObservable()}_init(){this._bufferValue=new mr(0),this._mode=new mr("indeterminate"),this._value=new mr(0),this._visible=new mr(!1),this._router.events.pipe(zo(e=>e instanceof y6)).subscribe(()=>{this.show()}),this._router.events.pipe(zo(e=>e instanceof Up)).subscribe(()=>{this.hide()})}show(){this._visible.next(!0)}hide(){this._visible.next(!1)}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ql))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function nQe(t,n){if(1&t&&(Qr(0),$e(1,"mat-progress-bar",1),Kr()),2&t){const e=He();K(1),oe("bufferValue",e.bufferValue)("mode",e.mode)("value",e.value)}}let iQe=(()=>{class t{constructor(e){this._noctuaProgressBarService=e,this._unsubscribeAll=new z}ngOnInit(){this._noctuaProgressBarService.bufferValue.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{this.bufferValue=e}),this._noctuaProgressBarService.mode.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{this.mode=e}),this._noctuaProgressBarService.value.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{this.value=e}),this._noctuaProgressBarService.visible.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{this.visible=e})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(tQe))},t.\u0275cmp=En({type:t,selectors:[["noctua-progress-bar"]],decls:1,vars:1,consts:[[4,"ngIf"],["color","accent",3,"bufferValue","mode","value"]],template:function(e,i){1&e&&Ve(0,nQe,2,3,"ng-container",0),2&e&&oe("ngIf",i.visible)},directives:[er,Pv],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}noctua-progress-bar{position:absolute;top:0;left:0;right:0;width:100%;z-index:99998}noctua-progress-bar mat-progress-bar .mat-progress-bar-buffer{background-color:#c5c6cb!important}\n'],encapsulation:2}),t})();var $2=(()=>{return(t=$2||($2={})).filter="filter",t.relation="relation",t.group="group",t.contributor="contributor",t.organism="organism",t.history="history",t.replace="replace",t.artBasket="artBasket",t.activityForm="activityForm",t.camForm="camForm",t.copyModel="copyModel",t.apps="apps",t.announcement="announcement",t.findReplace="findReplace",t.camTermsSummary="camTermsSummary",t.camStats="camStats",$2;var t})(),Bu=(()=>{return(t=Bu||(Bu={})).camPreview="camPreview",t.camTable="camTable",t.camGraph="camGraph",Bu;var t})(),_3=(()=>{return(t=_3||(_3={})).activityForm="activityForm",t.activityPreview="activityPreview",t.camForm="camForm",t.camTable="camTable",t.activityTable="activityTable",t.activityConnectorTable="activityConnectorTable",t.graphSettings="graphSettings",t.termDetail="termDetail",_3;var t})();class w_{constructor(){this.showAspect=!1,this.showIsExtension=!1,this.showEvidence=!0,this.showEvidenceSummary=!0,this.showReference=!0,this.showEvidenceCode=!0,this.showWith=!0,this.showGroup=!0,this.showContributor=!0,this.showAddEvidenceButton=!1}createSettingsForm(){return new r2({showAspect:new br(this.showAspect),showIsExtension:new br(this.showIsExtension),showEvidence:new br(this.showEvidence),showEvidenceSummary:new br(this.showEvidenceSummary),showEvidenceCode:new br(this.showEvidenceCode),showReference:new br(this.showReference),showWith:new br(this.showWith),showGroup:new br(this.showGroup),showContributor:new br(this.showContributor)})}populateSettings(n){this.showAspect=n.showAspect,this.showIsExtension=n.showIsExtension,this.showEvidence=n.showEvidence,this.showReference=n.showReference,this.showEvidenceCode=n.showEvidenceCode,this.showEvidenceSummary=n.showEvidenceSummary,this.showWith=n.showWith,this.showGroup=n.showGroup,this.showContributor=n.showContributor}graphSettings(){this.showAspect=!1,this.showIsExtension=!1,this.showEvidence=!0,this.showEvidenceSummary=!0,this.showReference=!0,this.showEvidenceCode=!0,this.showWith=!0,this.showGroup=!1,this.showContributor=!1}}var U0=(()=>{return(t=U0||(U0={})).FORM="noctua-form",t.GRAPH_EDITOR="graph-editor",t.VISUAL_PATHWAY_EDITOR="noctua-visual-pathway-editor",U0;var t})();let $c=(()=>{class t{constructor(e,i){this._noctuaGraphService=e,this.noctuaUserService=i,this.selectedLeftSidenav=$2.apps;const r=new w_;r.graphSettings(),this.onCamSettingsChanged=new mr(r)}createModel(e){const i=this,r=this._noctuaGraphService.registerManager();r.register("rebuild",function(o){},10),r.add_model().then(o=>{const a=o.data().id;let c=new B2;c=c.append("model_id",a),c=c.append("barista_token",i.noctuaUserService.baristaToken);const u=c.toString();window.open({[U0.GRAPH_EDITOR]:`${lo.noctuaUrl}/editor/graph/${a}?${u}`,[U0.FORM]:`${lo.workbenchUrl}${U0.FORM}?${u}`,[U0.VISUAL_PATHWAY_EDITOR]:`${lo.workbenchUrl}${U0.VISUAL_PATHWAY_EDITOR}?${u}`}[e],"_blank")})}setLeftSidenav(e){this._leftSidenav=e}openLeftSidenav(){return this._leftSidenav.open()}selectLeftSidenav(e){this.selectedLeftSidenav=e}selectLeftPanel(e){this.selectedLeftPanel=e}selectMiddlePanel(e){this.selectedMiddlePanel=e}selectRightPanel(e){this.selectedRightPanel=e}setLeftDrawer(e){this._leftDrawer=e}closeLeftDrawer(){return this._leftDrawer.close()}setRightDrawer(e){this._rightDrawer=e}openLeftDrawer(){return this._leftDrawer.open()}openRightDrawer(){return this._rightDrawer.open()}closeRightDrawer(){return this._rightDrawer.close()}toggleLeftDrawer(e){if(this.selectedLeftPanel!==e)return this.selectLeftPanel(e),this.openLeftDrawer();this._leftDrawer.toggle()}scrollTo(e){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToElement(e,-140,1e3)}))})}}return t.\u0275fac=function(e){return new(e||t)(Rt(hl),Rt(uo))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),boe=(()=>{class t{constructor(e){this.httpClient=e,this.cursor=0,this.onAnnouncementsChanged=new mr(null),this.onAnnouncementChanged=new mr(null)}getAnnouncement(){return this.httpClient.get(lo.announcementUrl).subscribe(e=>{e&&(e.length>0&&this.onAnnouncementChanged.next(e[this.cursor]),this.onAnnouncementsChanged.next(e))})}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xd))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var ss=(()=>{return(t=ss||(ss={})).filter="filter",t.relation="relation",t.group="group",t.contributor="contributor",t.organism="organism",t.history="history",t.replace="replace",t.artBasket="artBasket",ss;var t})(),Wo=(()=>{return(t=Wo||(Wo={})).home="home",t.cams="cams",t.camsReview="camReview",t.reviewChanges="reviewChanges",Wo;var t})(),Hh=(()=>{return(t=Hh||(Hh={})).camForm="camForm",t.copyModel="copyModel",t.announcement="announcement",Hh;var t})(),Fc=(()=>{return(t=Fc||(Fc={})).off="off",t.on="on",t.locked="locked",Fc;var t})(),hP=(()=>{return(t=hP||(hP={})).term="term",t.gp="gp",t.reference="reference",hP;var t})();let Hc=(()=>{class t{constructor(){this.reviewMode=Fc.off,this.isReviewMode=!1,this.reviewLevel=0,this.selectedLeftPanel=ss.filter,this.selectedMiddlePanel=Wo.cams}selectLeftPanel(e){this.selectedLeftPanel=e}selectMiddlePanel(e){this.selectedMiddlePanel=e,e===Wo.cams?this.reviewLevel=0:e===Wo.camsReview?this.reviewLevel=1:e===Wo.reviewChanges&&(this.reviewLevel=2),this.scrollToTop()}selectRightPanel(e){this.selectedRightPanel=e}setLeftDrawer(e){this.leftDrawer=e}openLeftDrawer(){return this.leftDrawer.open()}closeLeftDrawer(){return this.leftDrawer.close()}toggleLeftDrawer(e){if(this.selectedLeftPanel!==e)return this.selectLeftPanel(e),this.openLeftDrawer();this.leftDrawer.toggle()}setRightDrawer(e){this.rightDrawer=e}openRightDrawer(){return this.rightDrawer.open()}closeRightDrawer(){return this.rightDrawer.close()}scrollToTop(){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToTop(0)}))})}scrollTo(e){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToElement(e,-140,1e3)}))})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function j0(t){return getComputedStyle(t)}function Ad(t,n){for(var e in n){var i=n[e];"number"==typeof i&&(i+="px"),t.style[e]=i}return t}function pP(t){var n=document.createElement("div");return n.className=t,n}var xoe="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function g4(t,n){if(!xoe)throw new Error("No element matching method supported");return xoe.call(t,n)}function M_(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function yoe(t,n){return Array.prototype.filter.call(t.children,function(e){return g4(e,n)})}var pl_element_thumb=function(t){return"ps__thumb-"+t},pl_element_rail=function(t){return"ps__rail-"+t},pl_element_consuming="ps__child--consume",pl_state_focus="ps--focus",pl_state_clicking="ps--clicking",pl_state_active=function(t){return"ps--active-"+t},pl_state_scrolling=function(t){return"ps--scrolling-"+t},woe={x:null,y:null};function Moe(t,n){var e=t.element.classList,i=pl_state_scrolling(n);e.contains(i)?clearTimeout(woe[n]):e.add(i)}function Ooe(t,n){woe[n]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(pl_state_scrolling(n))},t.settings.scrollingThreshold)}var IC=function(n){this.element=n,this.handlers={}},Soe={isEmpty:{configurable:!0}};IC.prototype.bind=function(n,e){void 0===this.handlers[n]&&(this.handlers[n]=[]),this.handlers[n].push(e),this.element.addEventListener(n,e,!1)},IC.prototype.unbind=function(n,e){var i=this;this.handlers[n]=this.handlers[n].filter(function(r){return!(!e||r===e)||(i.element.removeEventListener(n,r,!1),!1)})},IC.prototype.unbindAll=function(){for(var n in this.handlers)this.unbind(n)},Soe.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(n){return 0===t.handlers[n].length})},Object.defineProperties(IC.prototype,Soe);var O_=function(){this.eventElements=[]};function fP(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,void 0),n}function gP(t,n,e,i,r){var o;if(void 0===i&&(i=!0),void 0===r&&(r=!1),"top"===n)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==n)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function oQe(t,n,e,i,r){var o=e[0],a=e[1],c=e[2],u=e[3],f=e[4],w=e[5];void 0===i&&(i=!0),void 0===r&&(r=!1);var E=t.element;t.reach[u]=null,E[c]<1&&(t.reach[u]="start"),E[c]>t[o]-t[a]-1&&(t.reach[u]="end"),n&&(E.dispatchEvent(fP("ps-scroll-"+u)),n<0?E.dispatchEvent(fP("ps-scroll-"+f)):n>0&&E.dispatchEvent(fP("ps-scroll-"+w)),i&&function rQe(t,n){Moe(t,n),Ooe(t,n)}(t,u)),t.reach[u]&&(n||r)&&E.dispatchEvent(fP("ps-"+u+"-reach-"+t.reach[u]))}(t,e,o,i,r)}function Tc(t){return parseInt(t,10)||0}O_.prototype.eventElement=function(n){var e=this.eventElements.filter(function(i){return i.element===n})[0];return e||(e=new IC(n),this.eventElements.push(e)),e},O_.prototype.bind=function(n,e,i){this.eventElement(n).bind(e,i)},O_.prototype.unbind=function(n,e,i){var r=this.eventElement(n);r.unbind(e,i),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},O_.prototype.unbindAll=function(){this.eventElements.forEach(function(n){return n.unbindAll()}),this.eventElements=[]},O_.prototype.once=function(n,e,i){var r=this.eventElement(n),o=function(a){r.unbind(e,o),i(a)};r.bind(e,o)};var S_={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function v3(t){var n=t.element,e=Math.floor(n.scrollTop),i=n.getBoundingClientRect();t.containerWidth=Math.round(i.width),t.containerHeight=Math.round(i.height),t.contentWidth=n.scrollWidth,t.contentHeight=n.scrollHeight,n.contains(t.scrollbarXRail)||(yoe(n,pl_element_rail("x")).forEach(function(r){return M_(r)}),n.appendChild(t.scrollbarXRail)),n.contains(t.scrollbarYRail)||(yoe(n,pl_element_rail("y")).forEach(function(r){return M_(r)}),n.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function cQe(t,n){var e={width:n.railXWidth},i=Math.floor(t.scrollTop);e.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+n.containerWidth-n.contentWidth:t.scrollLeft,n.isScrollbarXUsingBottom?e.bottom=n.scrollbarXBottom-i:e.top=n.scrollbarXTop+i,Ad(n.scrollbarXRail,e);var r={top:i,height:n.railYHeight};n.isScrollbarYUsingRight?r.right=n.isRtl?n.contentWidth-(n.negativeScrollAdjustment+t.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth-9:n.scrollbarYRight-t.scrollLeft:r.left=n.isRtl?n.negativeScrollAdjustment+t.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:n.scrollbarYLeft+t.scrollLeft,Ad(n.scrollbarYRail,r),Ad(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),Ad(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth})}(n,t),t.scrollbarXActive?n.classList.add(pl_state_active("x")):(n.classList.remove(pl_state_active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,n.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?n.classList.add(pl_state_active("y")):(n.classList.remove(pl_state_active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,n.scrollTop=0)}function Poe(t,n){return t.settings.minScrollbarLength&&(n=Math.max(n,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(n=Math.min(n,t.settings.maxScrollbarLength)),n}function Eoe(t,n){var e=n[0],i=n[1],r=n[2],o=n[3],a=n[4],c=n[5],u=n[6],f=n[7],w=n[8],E=t.element,B=null,Z=null,ee=null;function be(Ie){Ie.touches&&Ie.touches[0]&&(Ie[r]=Ie.touches[0].pageY),E[u]=B+ee*(Ie[r]-Z),Moe(t,f),v3(t),Ie.stopPropagation(),Ie.type.startsWith("touch")&&Ie.changedTouches.length>1&&Ie.preventDefault()}function _e(){Ooe(t,f),t[w].classList.remove(pl_state_clicking),t.event.unbind(t.ownerDocument,"mousemove",be)}function Pe(Ie,ge){B=E[u],ge&&Ie.touches&&(Ie[r]=Ie.touches[0].pageY),Z=Ie[r],ee=(t[i]-t[e])/(t[o]-t[c]),ge?t.event.bind(t.ownerDocument,"touchmove",be):(t.event.bind(t.ownerDocument,"mousemove",be),t.event.once(t.ownerDocument,"mouseup",_e),Ie.preventDefault()),t[w].classList.add(pl_state_clicking),Ie.stopPropagation()}t.event.bind(t[a],"mousedown",function(Ie){Pe(Ie)}),t.event.bind(t[a],"touchstart",function(Ie){Pe(Ie,!0)})}var gQe={"click-rail":function lQe(t){t.event.bind(t.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(i>t.scrollbarYTop?1:-1)*t.containerHeight,v3(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(i>t.scrollbarXLeft?1:-1)*t.containerWidth,v3(t),e.stopPropagation()})},"drag-thumb":function dQe(t){Eoe(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Eoe(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function uQe(t){var n=t.element;t.event.bind(t.ownerDocument,"keydown",function(o){if(!(o.isDefaultPrevented&&o.isDefaultPrevented()||o.defaultPrevented)&&(g4(n,":hover")||g4(t.scrollbarX,":focus")||g4(t.scrollbarY,":focus"))){var a=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(a){if("IFRAME"===a.tagName)a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(function aQe(t){return g4(t,"input,[contenteditable]")||g4(t,"select,[contenteditable]")||g4(t,"textarea,[contenteditable]")||g4(t,"button,[contenteditable]")}(a))return}var c=0,u=0;switch(o.which){case 37:c=o.metaKey?-t.contentWidth:o.altKey?-t.containerWidth:-30;break;case 38:u=o.metaKey?t.contentHeight:o.altKey?t.containerHeight:30;break;case 39:c=o.metaKey?t.contentWidth:o.altKey?t.containerWidth:30;break;case 40:u=o.metaKey?-t.contentHeight:o.altKey?-t.containerHeight:-30;break;case 32:u=o.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:u=t.containerHeight;break;case 34:u=-t.containerHeight;break;case 36:u=t.contentHeight;break;case 35:u=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==c||t.settings.suppressScrollY&&0!==u||(n.scrollTop-=u,n.scrollLeft+=c,v3(t),function r(o,a){var c=Math.floor(n.scrollTop);if(0===o){if(!t.scrollbarYActive)return!1;if(0===c&&a>0||c>=t.contentHeight-t.containerHeight&&a<0)return!t.settings.wheelPropagation}var u=n.scrollLeft;if(0===a){if(!t.scrollbarXActive)return!1;if(0===u&&o<0||u>=t.contentWidth-t.containerWidth&&o>0)return!t.settings.wheelPropagation}return!0}(c,u)&&o.preventDefault())}})},wheel:function hQe(t){var n=t.element;function o(a){var c=function i(a){var c=a.deltaX,u=-1*a.deltaY;return(void 0===c||void 0===u)&&(c=-1*a.wheelDeltaX/6,u=a.wheelDeltaY/6),a.deltaMode&&1===a.deltaMode&&(c*=10,u*=10),c!=c&&u!=u&&(c=0,u=a.wheelDelta),a.shiftKey?[-u,-c]:[c,u]}(a),u=c[0],f=c[1];if(!function r(a,c,u){if(!S_.isWebKit&&n.querySelector("select:focus"))return!0;if(!n.contains(a))return!1;for(var f=a;f&&f!==n;){if(f.classList.contains(pl_element_consuming))return!0;var w=j0(f);if(u&&w.overflowY.match(/(scroll|auto)/)){var E=f.scrollHeight-f.clientHeight;if(E>0&&(f.scrollTop>0&&u<0||f.scrollTop0))return!0}if(c&&w.overflowX.match(/(scroll|auto)/)){var B=f.scrollWidth-f.clientWidth;if(B>0&&(f.scrollLeft>0&&c<0||f.scrollLeft0))return!0}f=f.parentNode}return!1}(a.target,u,f)){var w=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(f?n.scrollTop-=f*t.settings.wheelSpeed:n.scrollTop+=u*t.settings.wheelSpeed,w=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(u?n.scrollLeft+=u*t.settings.wheelSpeed:n.scrollLeft-=f*t.settings.wheelSpeed,w=!0):(n.scrollTop-=f*t.settings.wheelSpeed,n.scrollLeft+=u*t.settings.wheelSpeed),v3(t),w=w||function e(a,c){var u=Math.floor(n.scrollTop),f=0===n.scrollTop,w=u+n.offsetHeight===n.scrollHeight,E=0===n.scrollLeft,B=n.scrollLeft+n.offsetWidth===n.scrollWidth;return!(Math.abs(c)>Math.abs(a)?f||w:E||B)||!t.settings.wheelPropagation}(u,f),w&&!a.ctrlKey&&(a.stopPropagation(),a.preventDefault())}}void 0!==window.onwheel?t.event.bind(n,"wheel",o):void 0!==window.onmousewheel&&t.event.bind(n,"mousewheel",o)},touch:function pQe(t){if(S_.supportsTouch||S_.supportsIePointer){var n=t.element,r={},o=0,a={},c=null;S_.supportsTouch?(t.event.bind(n,"touchstart",w),t.event.bind(n,"touchmove",B),t.event.bind(n,"touchend",Z)):S_.supportsIePointer&&(window.PointerEvent?(t.event.bind(n,"pointerdown",w),t.event.bind(n,"pointermove",B),t.event.bind(n,"pointerup",Z)):window.MSPointerEvent&&(t.event.bind(n,"MSPointerDown",w),t.event.bind(n,"MSPointerMove",B),t.event.bind(n,"MSPointerUp",Z)))}function i(ee,be){n.scrollTop-=be,n.scrollLeft-=ee,v3(t)}function u(ee){return ee.targetTouches?ee.targetTouches[0]:ee}function f(ee){return!(ee.pointerType&&"pen"===ee.pointerType&&0===ee.buttons||!(ee.targetTouches&&1===ee.targetTouches.length||ee.pointerType&&"mouse"!==ee.pointerType&&ee.pointerType!==ee.MSPOINTER_TYPE_MOUSE))}function w(ee){if(f(ee)){var be=u(ee);r.pageX=be.pageX,r.pageY=be.pageY,o=(new Date).getTime(),null!==c&&clearInterval(c)}}function B(ee){if(f(ee)){var be=u(ee),_e={pageX:be.pageX,pageY:be.pageY},Pe=_e.pageX-r.pageX,Ie=_e.pageY-r.pageY;if(function E(ee,be,_e){if(!n.contains(ee))return!1;for(var Pe=ee;Pe&&Pe!==n;){if(Pe.classList.contains(pl_element_consuming))return!0;var Ie=j0(Pe);if(_e&&Ie.overflowY.match(/(scroll|auto)/)){var ge=Pe.scrollHeight-Pe.clientHeight;if(ge>0&&(Pe.scrollTop>0&&_e<0||Pe.scrollTop0))return!0}if(be&&Ie.overflowX.match(/(scroll|auto)/)){var Re=Pe.scrollWidth-Pe.clientWidth;if(Re>0&&(Pe.scrollLeft>0&&be<0||Pe.scrollLeft0))return!0}Pe=Pe.parentNode}return!1}(ee.target,Pe,Ie))return;i(Pe,Ie),r=_e;var ge=(new Date).getTime(),Re=ge-o;Re>0&&(a.x=Pe/Re,a.y=Ie/Re,o=ge),function e(ee,be){var _e=Math.floor(n.scrollTop),Pe=n.scrollLeft,Ie=Math.abs(ee),ge=Math.abs(be);if(ge>Ie){if(be<0&&_e===t.contentHeight-t.containerHeight||be>0&&0===_e)return 0===window.scrollY&&be>0&&S_.isChrome}else if(Ie>ge&&(ee<0&&Pe===t.contentWidth-t.containerWidth||ee>0&&0===Pe))return!0;return!0}(Pe,Ie)&&ee.preventDefault()}}function Z(){t.settings.swipeEasing&&(clearInterval(c),c=setInterval(function(){t.isInitialized?clearInterval(c):a.x||a.y?Math.abs(a.x)<.01&&Math.abs(a.y)<.01?clearInterval(c):t.element?(i(30*a.x,30*a.y),a.x*=.8,a.y*=.8):clearInterval(c):clearInterval(c)},10))}}},NC=function(n,e){var i=this;if(void 0===e&&(e={}),"string"==typeof n&&(n=document.querySelector(n)),!n||!n.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var r in this.element=n,n.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[r]=e[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var w,f,o=function(){return n.classList.add(pl_state_focus)},a=function(){return n.classList.remove(pl_state_focus)};this.isRtl="rtl"===j0(n).direction,!0===this.isRtl&&n.classList.add("ps__rtl"),this.isNegativeScroll=(f=n.scrollLeft,n.scrollLeft=-1,w=n.scrollLeft<0,n.scrollLeft=f,w),this.negativeScrollAdjustment=this.isNegativeScroll?n.scrollWidth-n.clientWidth:0,this.event=new O_,this.ownerDocument=n.ownerDocument||document,this.scrollbarXRail=pP(pl_element_rail("x")),n.appendChild(this.scrollbarXRail),this.scrollbarX=pP(pl_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=j0(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Tc(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Tc(c.borderLeftWidth)+Tc(c.borderRightWidth),Ad(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Tc(c.marginLeft)+Tc(c.marginRight),Ad(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=pP(pl_element_rail("y")),n.appendChild(this.scrollbarYRail),this.scrollbarY=pP(pl_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=j0(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Tc(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function sQe(t){var n=j0(t);return Tc(n.width)+Tc(n.paddingLeft)+Tc(n.paddingRight)+Tc(n.borderLeftWidth)+Tc(n.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Tc(u.borderTopWidth)+Tc(u.borderBottomWidth),Ad(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Tc(u.marginTop)+Tc(u.marginBottom),Ad(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:n.scrollLeft<=0?"start":n.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:n.scrollTop<=0?"start":n.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(f){return gQe[f](i)}),this.lastScrollTop=Math.floor(n.scrollTop),this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,"scroll",function(f){return i.onScroll(f)}),v3(this)};NC.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Ad(this.scrollbarXRail,{display:"block"}),Ad(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Tc(j0(this.scrollbarXRail).marginLeft)+Tc(j0(this.scrollbarXRail).marginRight),this.railYMarginHeight=Tc(j0(this.scrollbarYRail).marginTop)+Tc(j0(this.scrollbarYRail).marginBottom),Ad(this.scrollbarXRail,{display:"none"}),Ad(this.scrollbarYRail,{display:"none"}),v3(this),gP(this,"top",0,!1,!0),gP(this,"left",0,!1,!0),Ad(this.scrollbarXRail,{display:""}),Ad(this.scrollbarYRail,{display:""}))},NC.prototype.onScroll=function(n){!this.isAlive||(v3(this),gP(this,"top",this.element.scrollTop-this.lastScrollTop),gP(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},NC.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),M_(this.scrollbarX),M_(this.scrollbarY),M_(this.scrollbarXRail),M_(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},NC.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(n){return!n.match(/^ps([-_].+|)$/)}).join(" ")};const mQe=NC;class _Qe{constructor(n,e,i,r){this.x=n,this.y=e,this.w=i,this.h=r}}class Toe{constructor(n,e){this.x=n,this.y=e}}let Fa=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this._noctuaConfigService=i,this._platform=r,this._router=o,this.isInitialized=!1,this.isMobile=!1,this._animation=null,this._enabled=!1,this._debouncedUpdate=Nt.debounce(this.update,150),this._options={updateOnRouteChange:!1},this._unsubscribeAll=new z}set noctuaPerfectScrollbarOptions(e){this._options=Nt.merge({},this._options,e),setTimeout(()=>{this._destroy()}),setTimeout(()=>{this._init()})}get noctuaPerfectScrollbarOptions(){return this._options}set enabled(e){""===e&&(e=!0),this.enabled!==e&&(this._enabled=e,this.enabled?this._init():this._destroy())}get enabled(){return this._enabled}ngOnInit(){Rc(window,"resize").pipe(Ln(this._unsubscribeAll),Ls(150)).subscribe(()=>{this.update()})}ngAfterViewInit(){this._noctuaConfigService.config.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{this.enabled=e.customScrollbars}),this.noctuaPerfectScrollbarOptions.updateOnRouteChange&&this._router.events.pipe(Ln(this._unsubscribeAll),zo(e=>e instanceof Up)).subscribe(()=>{setTimeout(()=>{this.scrollToTop(),this.update()},0)})}ngOnDestroy(){this._destroy(),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_init(){this.isInitialized||((this._platform.ANDROID||this._platform.IOS)&&(this.isMobile=!0),!this.isMobile&&(this.isInitialized=!0,this.ps=new mQe(this.elementRef.nativeElement,Object.assign({},this.noctuaPerfectScrollbarOptions)),this.ps.event.eventElements.forEach(e=>{void 0!==e.handlers.keydown&&e.element.removeEventListener("keydown",e.handlers.keydown[0])})))}_destroy(){!this.isInitialized||!this.ps||(this.ps.destroy(),this.ps=null,this.isInitialized=!1)}_updateOnResize(){this._debouncedUpdate()}documentClick(e){!this.isInitialized||!this.ps||this.ps.update()}update(){!this.isInitialized||this.ps.update()}destroy(){this.ngOnDestroy()}geometry(e="scroll"){return new _Qe(this.elementRef.nativeElement[e+"Left"],this.elementRef.nativeElement[e+"Top"],this.elementRef.nativeElement[e+"Width"],this.elementRef.nativeElement[e+"Height"])}position(e=!1){return!e&&this.ps?new Toe(this.ps.reach.x||0,this.ps.reach.y||0):new Toe(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollTo(e,i,r){null==i&&null==r?this.animateScrolling("scrollTop",e,r):(null!=e&&this.animateScrolling("scrollLeft",e,r),null!=i&&this.animateScrolling("scrollTop",i,r))}scrollToX(e,i){this.animateScrolling("scrollLeft",e,i)}scrollToY(e,i){this.animateScrolling("scrollTop",e,i)}scrollToTop(e,i){this.animateScrolling("scrollTop",e||0,i)}scrollToLeft(e,i){this.animateScrolling("scrollLeft",e||0,i)}scrollToRight(e,i){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(e||0),i)}scrollToBottom(e,i){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(e||0),i)}scrollToElement(e,i,r){const o=this.elementRef.nativeElement.querySelector(e);if(!o)return;const a=o.getBoundingClientRect(),c=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",a.left-c.left+this.elementRef.nativeElement.scrollLeft+(i||0),r),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",a.top-c.top+this.elementRef.nativeElement.scrollTop+(i||0),r)}animateScrolling(e,i,r){if(this._animation&&(window.cancelAnimationFrame(this._animation),this._animation=null),r&&"undefined"!=typeof window){if(i!==this.elementRef.nativeElement[e]){let o=0,a=0,c=performance.now(),u=this.elementRef.nativeElement[e];const f=(u-i)/2,w=E=>{a+=Math.PI/(r/(E-c)),o=Math.round(i+f+f*Math.cos(a)),this.elementRef.nativeElement[e]===u&&(a>=Math.PI?this.animateScrolling(e,i,0):(this.elementRef.nativeElement[e]=o,u=this.elementRef.nativeElement[e],c=E,this._animation=window.requestAnimationFrame(w)))};window.requestAnimationFrame(w)}}else this.elementRef.nativeElement[e]=i}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(dO),de(Ds),de(Ql))},t.\u0275dir=nn({type:t,selectors:[["","noctuaPerfectScrollbar",""]],hostBindings:function(e,i){1&e&&it("resize",function(){return i._updateOnResize()},!1,F5)("click",function(o){return i.documentClick(o)},!1,Iy)},inputs:{noctuaPerfectScrollbarOptions:"noctuaPerfectScrollbarOptions",enabled:["noctuaPerfectScrollbar","enabled"]}}),t})();function vQe(t,n){1&t&&(G(0,"a",8),he(1," More Details "),W()),2&t&&Yr("href",He().$implicit.descriptionUrl,ir)}function CQe(t,n){if(1&t&&(G(0,"div")(1,"strong"),he(2),W(),$e(3,"br"),he(4),Ve(5,vQe,2,1,"a",7),W()),2&t){const e=n.$implicit;Af("alert alert-",e.level," w-100-p my-8"),K(2),Zr(e.title),K(2),Ft(" ",e.description," "),K(1),oe("ngIf",e.descriptionUrl)}}let bQe=(()=>{class t{constructor(e,i){this.noctuaSearchMenuService=e,this.noctuaAnnouncementService=i,this._unsubscribeAll=new z}ngOnInit(){this.noctuaAnnouncementService.onAnnouncementsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&(this.announcements=e)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}close(){this.sidenav.close()}}return t.\u0275fac=function(e){return new(e||t)(de(Hc),de(boe))},t.\u0275cmp=En({type:t,selectors:[["noc-announcement-panel"]],inputs:{sidenav:"sidenav"},decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p","p-8"],[3,"class",4,"ngFor","ngForOf"],["target","_banl",3,"href",4,"ngIf"],["target","_banl",3,"href"]],template:function(e,i){1&e&&(G(0,"form",0)(1,"div",1)(2,"span",2),he(3," Announcements"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),G(9,"div",5),Ve(10,CQe,6,6,"div",6),W()()),2&e&&(K(10),oe("ngForOf",i.announcements))},directives:[U2,Il,z0,Lr,kr,Vr,Er,Mo,Fa,vo,er],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-form[_ngcontent-%COMP%]{width:500px;min-width:500px;max-width:500px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}']}),t})();function xQe(t,n){if(1&t){const e=Nn();G(0,"div",7)(1,"div",8)(2,"div",9),he(3," Create Model In "),W(),$e(4,"span",3),W(),G(5,"div",14)(6,"div",15)(7,"button",16),it("click",function(){Ut(e);const r=He();return r.createModel(r.WorkbenchId.VISUAL_PATHWAY_EDITOR)}),he(8," PATHWAY EDITOR "),W(),G(9,"button",17),it("click",function(){Ut(e);const r=He();return r.createModel(r.WorkbenchId.FORM)}),he(10," FORM EDITOR "),W(),G(11,"button",18),it("click",function(){Ut(e);const r=He();return r.createModel(r.WorkbenchId.GRAPH_EDITOR)}),he(12," GRAPH EDITOR "),W()()()()}}const yQe=function(){return["fas","list-alt"]},wQe=function(){return["fas","sitemap"]};function MQe(t,n){if(1&t&&(G(0,"div",7)(1,"div",8)(2,"div",9),he(3," Edit In "),W(),$e(4,"span",3),W(),G(5,"div",19)(6,"div",20)(7,"a",21)(8,"mat-chip",22)(9,"div",23),$e(10,"fa-icon",24),W(),G(11,"div",25),he(12," Form Editor "),W()()()(),G(13,"div",20)(14,"a",21)(15,"mat-chip",22)(16,"div",23),$e(17,"fa-icon",24),W(),G(18,"div",25),he(19," Graph Editor "),W()()()()()()),2&t){const e=He();K(7),oe("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.noctuaFormUrl,ir),K(3),oe("icon",ai(4,yQe)),K(4),oe("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.graphEditorUrl,ir),K(3),oe("icon",ai(5,wQe))}}function OQe(t,n){if(1&t&&(G(0,"div",7)(1,"div",8)(2,"div",9),he(3," Export As "),W(),$e(4,"span",3),W(),G(5,"div",19)(6,"div",26)(7,"a",21)(8,"mat-chip",22)(9,"div",25),he(10," GPAD "),W()()()(),G(11,"div",26)(12,"a",21)(13,"mat-chip",22)(14,"div",25),he(15," OWL "),W()()()()()()),2&t){const e=He();K(7),oe("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.gpadUrl,ir),K(5),oe("href",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.owlUrl,ir)}}function SQe(t,n){if(1&t&&(G(0,"div",27)(1,"a",21)(2,"mat-chip",22)(3,"div",25),he(4),W()()()()),2&t){const e=n.$implicit;K(1),Yr("href",e.url,ir),K(3),Ft(" ",e.label," ")}}function PQe(t,n){if(1&t&&(G(0,"div",7)(1,"div",8)(2,"div",9),he(3," Model Workbenches "),W(),$e(4,"span",3),W(),G(5,"div",10),Ve(6,SQe,5,2,"div",11),W()()),2&t){const e=He();K(6),oe("ngForOf",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.modelWorkbenches)}}function EQe(t,n){if(1&t&&(G(0,"div",27)(1,"a",21)(2,"mat-chip",22)(3,"div",25),he(4),W()()()()),2&t){const e=n.$implicit;K(1),Yr("href",e.url,ir),K(3),Ft(" ",e.label," ")}}function TQe(t,n){if(1&t&&(G(0,"div",27)(1,"a",21)(2,"mat-chip",22)(3,"div",25),he(4),W()()()()),2&t){const e=n.$implicit;K(1),Yr("href",e.url,ir),K(3),Ft(" ",e.label," ")}}function AQe(t,n){if(1&t&&(G(0,"div",27)(1,"a",21)(2,"mat-chip",22)(3,"div",25),he(4),W()()()()),2&t){const e=n.$implicit;K(1),Yr("href",e.url,ir),K(3),Ft(" ",e.label," ")}}function DQe(t,n){if(1&t&&(Qr(0),Ve(1,AQe,5,2,"div",11),Kr()),2&t){const e=He();K(1),oe("ngForOf",null==e.cam||null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.modelBetaTestWorkbenches)}}let LQe=(()=>{class t{constructor(e,i,r,o){this.noctuaConfigService=e,this.noctuaCommonMenuService=i,this.camService=r,this.noctuaUserService=o,this.WorkbenchId=U0,this.date=new Date,this._unsubscribeAll=new z}ngOnInit(){this.camService.onCamChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)})}createModel(e){this.noctuaCommonMenuService.createModel(e)}close(){this.sidenav.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(lr),de($c),de(Zo),de(uo))},t.\u0275cmp=En({type:t,selectors:[["noc-noctua-apps"]],inputs:{sidenav:"sidenav"},decls:30,vars:7,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],["class","noc-form-section","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxLayout","column","fxLayoutAlign","start start",1,"noc-section-body","p-8"],["class","w-100-p p-4",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","noc-beta"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-section-body","p-8"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-create","w-100-p"],["mat-raised-button","","fxFlex","33",1,"noc-rounded-button","noc-half-button","noc-r",3,"click"],["mat-raised-button","","fxFlex","33",1,"noc-rounded-button","mr-4","noc-half-button","noc-m",3,"click"],["mat-raised-button","","fxFlex","33",1,"noc-rounded-button","noc-half-button","noc-l",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-body","p-8"],["fxFlex","50",1,"p-8"],["target","_blank",1,"w-100-p",3,"href"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip"],[1,"noc-icon"],[3,"icon"],["fxFlex","",1,"noc-chip-label"],["fxFlex","50",1,"p-4"],[1,"w-100-p","p-4"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Workbenches"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),G(9,"div",5),Ve(10,xQe,13,0,"div",6),Ve(11,MQe,20,6,"div",6),$e(12,"mat-divider"),Ve(13,OQe,16,2,"div",6),Ve(14,PQe,7,1,"div",6),G(15,"div",7)(16,"div",8)(17,"div",9),he(18," Global Workbenches "),W(),$e(19,"span",3),W(),G(20,"div",10),Ve(21,EQe,5,2,"div",11),W()(),G(22,"div",12)(23,"div",8)(24,"div",9),he(25," Beta Testing Workbenches "),W(),$e(26,"span",3),W(),G(27,"div",10),Ve(28,TQe,5,2,"div",11),Ve(29,DQe,2,1,"ng-container",13),W()()()()),2&e&&(K(10),oe("ngIf",i.noctuaUserService.user),K(1),oe("ngIf",i.cam),K(2),oe("ngIf",i.cam),K(1),oe("ngIf",i.cam),K(7),oe("ngForOf",null==i.noctuaConfigService.globalUrl?null:i.noctuaConfigService.globalUrl.universalWorkbenches),K(7),oe("ngForOf",null==i.noctuaConfigService.globalUrl?null:i.noctuaConfigService.globalUrl.universalBetaTestWorkbenches),K(1),oe("ngIf",i.cam))},directives:[Lr,kr,Vr,Er,Mo,Fa,er,wd,ks,qee,vo],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled{pointer-events:none;opacity:.3}.mat-row:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected{background-color:#798fb826}.mat-toolbar{height:40px;min-height:40px;max-height:40px}.mat-toolbar mat-toolbar-row{height:40px;min-height:40px;max-height:40px}.mat-toolbar mat-toolbar-row button{color:#eee;border:#ccc solid 1px}.mat-toolbar mat-toolbar-row button:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body{padding:0!important}.noc-drawer .noc-drawer-header{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer .noc-drawer-header .noc-drawer-header-title{font-size:14px;font-weight:700}.noc-drawer .noc-drawer-body{min-height:calc(100% - 90px)}.noc-drawer .noc-drawer-body .noc-draw-body-disabled{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer .noc-drawer-footer{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog{height:100%;width:100%;overflow:hidden}.noc-dialog .noc-dialog-header{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog .noc-dialog-header .noc-dialog-header-title{font-size:14px;font-weight:700}.noc-dialog .noc-dialog-header button{color:#eee;border:#ccc solid 1px}.noc-dialog .noc-dialog-header button:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog .noc-dialog-body{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog .noc-dialog-footer{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section{width:100%;background-color:#fff}.noc-form-section .noc-section-header{height:30px;background-color:#798fb84d}.noc-form-section .noc-section-header .noc-section-heading{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section .noc-section-header .noc-action-button{margin:0;height:30px}.noc-form-section .noc-section-body{padding:4px 8px}.noc-column-toolbar{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar button{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert{padding:10px;font-size:12px;font-style:italic}.noc-card-simple{margin-bottom:20px}.noc-card-simple .noc-header{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple .noc-header .noc-title{font-size:14px;font-weight:700}.noc-card-simple .noc-body{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button:hover{background-color:#ee7979;color:#fff}mwlResizable{box-sizing:border-box}.resize-handle-top,.resize-handle-bottom{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top{top:0}.resize-handle-bottom{bottom:0}.resize-handle-left,.resize-handle-right{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left{left:0}.resize-handle-right{right:0}noc-noctua-apps{display:block;width:370px;min-width:370px;max-width:370px;z-index:100;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}noc-noctua-apps .noc-create{padding:8px}noc-noctua-apps .noc-create button{color:#039be5;font-size:10px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}noc-noctua-apps .noc-cam-form{width:100%;min-width:100%;max-width:100%}noc-noctua-apps .noc-beta{background-color:#fad38a}noc-noctua-apps .noc-header{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}noc-noctua-apps .noc-header mat-icon-button{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}noc-noctua-apps .noc-header .noc-title{font-size:10px;padding:0 14px}noc-noctua-apps .noc-body{padding:0 14px 14px}noc-noctua-apps .noc-drawer-body{padding-bottom:250px}noc-noctua-apps a{display:block;text-decoration:none!important}noc-noctua-apps mat-chip{font-size:12px;font-weight:400;height:30px;min-height:30px;max-height:30px;max-width:100%;text-overflow:ellipsis;white-space:nowrap}noc-noctua-apps mat-chip .noc-chip-label{padding:0 8px 0 12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}noc-noctua-apps mat-chip .noc-chip-label .noc-icon-action{font-size:10px;background-color:transparent}noc-noctua-apps mat-chip .noc-chip-label .noc-icon-action:hover{font-size:14px;color:#222}noc-noctua-apps mat-chip.noc-table-chip{padding:0;height:30px;min-height:30px;max-height:30px;font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}noc-noctua-apps mat-chip.noc-table-chip .noc-icon,noc-noctua-apps mat-chip.noc-table-chip .noc-icon-action{display:flex;align-items:center;justify-content:center;height:30px;width:30px;border-radius:50%;color:#777;font-size:14px}noc-noctua-apps mat-chip.noc-table-chip .noc-icon-action{font-size:10px;background-color:transparent}noc-noctua-apps mat-chip.noc-table-chip .noc-icon-action:hover{font-size:14px;color:#222;background-color:#0003}noc-noctua-apps mat-chip.noc-table-chip .noc-icon{background-color:#bbc9cc}noc-noctua-apps mat-chip.noc-table-chip.noc-user-chip{border:#bbc9cc solid 1px;background-color:#bbc9cc33}noc-noctua-apps mat-chip.noc-table-chip.noc-user-chip .noc-icon{background-color:#bbc9cc}noc-noctua-apps mat-chip.noc-table-chip.noc-user-chip .noc-icon{color:#59939e}noc-noctua-apps mat-chip.noc-table-chip.noc-date-chip{border:#aee9f5 solid 1px;background-color:#aee9f533}noc-noctua-apps mat-chip.noc-table-chip.noc-date-chip .noc-icon{background-color:#aee9f5}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-development{border:#f4c89c solid 1px;background-color:#f4c89c33}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-development .noc-icon{background-color:#f4c89c}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-production{border:#b6f1cc solid 1px;background-color:#b6f1cc33}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-production .noc-icon{background-color:#b6f1cc}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-review{border:#d8f6a3 solid 1px;background-color:#d8f6a333}noc-noctua-apps mat-chip.noc-table-chip.noc-state-chip.noc-review .noc-icon{background-color:#d8f6a3}\n'],encapsulation:2}),t})();class Hz extends class kQe{constructor(){this.size=50,this.total=0,this.pageNumber=0,this.pageSizeOptions=[10,25,50,100]}}{}var I1=(()=>{return(t=I1||(I1={})).ids="ids",t.titles="titles",t.gps="gps",t.terms="terms",t.obsoleteTerms="obsoleteTerms",t.pmids="pmids",t.contributors="contributors",t.groups="groups",t.organisms="organisms",t.states="states",t.exactdates="exactdates",t.startdates="startdates",t.enddates="enddates",I1;var t})();class N1{constructor(n){this.camPage=new Hz,this.titles=[],this.ids=[],this.gps=[],this.terms=[],this.obsoleteTerms=[],this.pmids=[],this.contributors=[],this.groups=[],this.organisms=[],this.states=[],this.exactdates=[],this.startdates=[],this.enddates=[],this.expand=!0,this.filtersCount=0,n&&(this.camPage=n.camPage||new Hz,this.titles=n.titles||[],this.contributors=n.contributors||[],this.groups=n.groups||[],this.pmids=n.pmids||[],this.terms=n.terms||[],this.obsoleteTerms=n.obsoleteTerms||[],this.ids=n.ids||[],this.gps=n.gps||[],this.organisms=n.organisms||[],this.states=n.states||[],this.exactdates=n.exactdates||[],this.startdates=n.startdates||[],this.enddates=n.enddates||[],this.expand=n.expand)}updateFiltersCount(){const n=this;n.filtersCount=n.titles.length+n.ids.length+n.gps.length+n.terms.length+n.obsoleteTerms.length+n.pmids.length+n.contributors.length+n.groups.length+n.organisms.length+n.states.length+n.exactdates.length+n.startdates.length+n.enddates.length}query(n=!0){const e=this,i=[];return n&&(i.push(`offset=${(e.camPage.pageNumber*e.camPage.size).toString()}`),i.push(`limit=${e.camPage.size.toString()}`)),(0,Nt.each)(e.titles,r=>{i.push(`title=${r}`)}),(0,Nt.each)(e.terms,r=>{i.push(`term=${r.id}`)}),(0,Nt.each)(e.obsoleteTerms,r=>{i.push(`term=${r.id}`)}),(0,Nt.each)(e.groups,r=>{i.push(`group=${r.url}`)}),(0,Nt.each)(e.contributors,r=>{i.push(`contributor=${r.orcid}`)}),(0,Nt.each)(e.ids,r=>{i.push(`id=${r}`)}),(0,Nt.each)(e.gps,r=>{i.push(`gp=${r.id}`)}),(0,Nt.each)(e.pmids,r=>{i.push(`pmid=${r}`)}),(0,Nt.each)(e.exactdates,r=>{i.push(`exactdate=${r}`)}),(0,Nt.each)(e.startdates,r=>{i.push(`date=${r}`)}),(0,Nt.each)(e.enddates,r=>{i.push(`dateend=${r}`)}),(0,Nt.each)(e.organisms,r=>{i.push(`taxon=${r.taxonIri}`)}),(0,Nt.each)(e.states,r=>{i.push(`state=${r.name}`)}),e.expand&&i.push("expand"),i.push("debug"),i}build(n=!0){return this.query(n).join("&")}clearSearch(){this.titles=[],this.contributors=[],this.groups=[],this.pmids=[],this.terms=[],this.gps=[],this.organisms=[],this.states=[],this.exactdates=[],this.startdates=[],this.enddates=[]}}var Aoe=v(94327);class Doe{constructor(n){this.displaySections=[],this.save(n)}generateHistorySummary(n){const e=this;let r=0;if(n.ids&&n.ids.length>0){const o=n.ids.map(a=>a.label).join(", ");e._addParam("Model Id(s)",o),r++}if(n.contributors&&n.contributors.length>0){const o=n.contributors.map(a=>a.name).join(", ");e._addParam("Contributor(s)",o,"user"),r++}if(n.groups&&n.groups.length>0){const o=n.groups.map(a=>a.name).join(", ");e._addParam("Group(s)",o,"users"),r++}if(n.pmids&&n.pmids.length>0){const o=n.pmids.join(", ");e._addParam("Ref",o),r++}if(n.terms&&n.terms.length>0){const o=n.terms.map(a=>a.label).join(", ");e._addParam("Term(s)",o),r++}if(n.gps&&n.gps.length>0){const o=n.gps.map(a=>a.label).join(", ");e._addParam("GP(s)",o),r++}if(n.organisms&&n.organisms.length>0){const o=n.organisms.map(a=>a.taxonName).join(", ");e._addParam("Organism(s)",o,"paw"),r++}if(n.states&&n.states.length>0){const o=n.states.map(a=>a.label).join(", ");e._addParam("State(s)",o,"tasks"),r++}if(n.exactdates&&n.exactdates.length>0){const o=n.exactdates.join(", ");e._addParam("Date",o,"calendar-day"),r++}n.startdates&&n.startdates.length>0&&n.enddates&&n.enddates.length>0&&(e._addParam("Date Range",`${n.startdates[0]} - ${n.enddates[0]}`,"calendar-week"),r++),0===r&&e._addParam("Default Search","Recent Models","clock")}save(n){this.searchCriteriaString=JSON.stringify(n,void 0,2),this.generateHistorySummary(n)}getSearchCriteria(){return new N1(JSON.parse(this.searchCriteriaString))}_addParam(n,e,i){this.displaySections.push({name:n,value:e,icon:i})}}class m4{static cleanID(n){return n&&n.replace(/\W/g,"_")}static filterArrayByString(n,e){return""===e?n:(e=e.toLowerCase(),n.filter(i=>this.searchInObj(i,e)))}static searchInObj(n,e){for(const i in n){if(!n.hasOwnProperty(i))continue;const r=n[i];if("string"==typeof r){if(this.searchInString(r,e))return!0}else if(Array.isArray(r)&&this.searchInArray(r,e))return!0;if("object"==typeof r&&this.searchInObj(r,e))return!0}}static searchInArray(n,e){for(const i of n)if("string"==typeof i&&this.searchInString(i,e)||"object"==typeof i&&this.searchInObj(i,e))return!0}static searchInString(n,e){return n.toLowerCase().includes(e)}static generateGUID(){function n(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return n()+n()}static toggleInArray(n,e){-1===e.indexOf(n)?e.push(n):e.splice(e.indexOf(n),1)}static handleize(n){return n.toString().toLowerCase().replace(new RegExp("/s+/g"),"-").replace(new RegExp("/[^w-]+/g"),"").replace(new RegExp("/--+/g"),"-").replace(new RegExp("/^-+/"),"").replace(new RegExp("/-+$/"),"")}}class Loe{constructor(n,e,i){this.id=n,this.title=e,this.dateAdded=i,this.displayId=m4.cleanID(n)}}class P_{constructor(n){this.cams=[],n&&this.addCamsToBasket(n.cams)}addCamsToBasket(n){const e=this;(0,Nt.each)(n,i=>{if(!(0,Nt.find)(this.cams,{id:i.id})){const o=new Loe(i.id,i.title,i.dateAdded);e.cams.push(o)}}),e.sortCams()}addCamToBasket(n,e){if((0,Nt.find)(this.cams,{id:n}))return null;const o=new Loe(n,e,new Date);return this.cams.push(o),this.sortCams(),o}removeCamFromBasket(n){(0,Nt.remove)(this.cams,{id:n})}clearBasket(){this.cams=[]}sortCams(){this.cams.sort(this._compareDateReviewAdded)}_compareDateReviewAdded(n,e){return n.dateAdded>e.dateAdded?-1:1}}const Rn="rgba(black, 0.87)",eo="rgba(white, 0.87)",Vz={red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:"white",600:"white",700:"white",800:eo,900:eo,A100:Rn,A200:"white",A400:"white",A700:"white"}},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:"white",600:"white",700:eo,800:eo,900:eo,A100:Rn,A200:"white",A400:"white",A700:"white"}},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrast:{50:Rn,100:Rn,200:Rn,300:"white",400:"white",500:eo,600:eo,700:eo,800:eo,900:eo,A100:Rn,A200:"white",A400:"white",A700:"white"}},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrast:{50:Rn,100:Rn,200:Rn,300:"white",400:"white",500:eo,600:eo,700:eo,800:eo,900:eo,A100:Rn,A200:"white",A400:eo,A700:eo}},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrast:{50:Rn,100:Rn,200:Rn,300:"white",400:"white",500:eo,600:eo,700:eo,800:eo,900:eo,A100:Rn,A200:"white",A400:"white",A700:eo}},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:"white",600:"white",700:"white",800:eo,900:eo,A100:Rn,A200:"white",A400:"white",A700:"white"}},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:"white",600:"white",700:"white",800:"white",900:eo,A100:Rn,A200:Rn,A400:Rn,A700:"white"}},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:"white",600:"white",700:"white",800:"white",900:eo,A100:Rn,A200:Rn,A400:Rn,A700:Rn}},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:"white",600:"white",700:"white",800:eo,900:eo,A100:Rn,A200:Rn,A400:Rn,A700:Rn}},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:"white",600:"white",700:"white",800:eo,900:eo,A100:Rn,A200:Rn,A400:Rn,A700:Rn}},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:Rn,600:Rn,700:Rn,800:"white",900:"white",A100:Rn,A200:Rn,A400:Rn,A700:Rn}},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:Rn,600:Rn,700:Rn,800:Rn,900:"white",A100:Rn,A200:Rn,A400:Rn,A700:Rn}},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:Rn,600:Rn,700:Rn,800:Rn,900:Rn,A100:Rn,A200:Rn,A400:Rn,A700:Rn}},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:Rn,600:Rn,700:Rn,800:Rn,900:Rn,A100:Rn,A200:Rn,A400:Rn,A700:Rn}},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:Rn,600:Rn,700:Rn,800:"white",900:"white",A100:Rn,A200:Rn,A400:Rn,A700:"black"}},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:"white",600:"white",700:"white",800:"white",900:"white",A100:Rn,A200:Rn,A400:"white",A700:"white"}},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrast:{50:Rn,100:Rn,200:Rn,300:"white",400:"white",500:eo,600:eo,700:eo,800:eo,900:eo,A100:Rn,A200:Rn,A400:"white",A700:eo}},grey:{0:"#ffffff",50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",1e3:"#000000",A100:"#ffffff",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161",contrast:{0:Rn,50:Rn,100:Rn,200:Rn,300:Rn,400:Rn,500:Rn,600:eo,700:eo,800:eo,900:eo,1e3:eo,A100:Rn,A200:Rn,A400:Rn,A700:eo}},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrast:{50:Rn,100:Rn,200:Rn,300:Rn,400:"white",500:"white",600:eo,700:eo,800:eo,900:eo,A100:Rn,A200:Rn,A400:"white",A700:eo}},"noctua-dark":{50:"#ECECEE",100:"#C5C6CB",200:"#9EA1A9",300:"#7D818C",400:"#5C616F",500:"#3C4252",600:"#353A48",700:"#2D323E",800:"#262933",900:"#1E2129",A100:"#C5C6CB",A200:"#9EA1A9",A400:"#5C616F",A700:"#2D323E",contrast:{50:Rn,100:Rn,200:Rn,300:"white",400:"white",500:eo,600:eo,700:eo,800:eo,900:eo,A100:Rn,A200:eo,A400:eo,A700:eo}},white:{500:"white",contrast:{500:Rn}},black:{500:"black",contrast:{500:"white"}}},IQe=["#ffebee","#ffcdd2","#ef9a9a","#e57373","#ef5350","#f44336","#e53935","#d32f2f","#c62828","#b71c1c","#ff8a80","#ff5252","#ff1744","#d50000","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f","#ff80ab","#ff4081","#f50057","#c51162","#f3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c","#ea80fc","#e040fb","#d500f9","#aa00ff","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92","#b388ff","#7c4dff","#651fff","#6200ea","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e","#8c9eff","#536dfe","#3d5afe","#304ffe","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0d47a1","#82b1ff","#448aff","#2979ff","#2962ff","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b","#80d8ff","#40c4ff","#00b0ff","#0091ea","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064","#84ffff","#18ffff","#00e5ff","#00b8d4","#e0f2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40","#a7ffeb","#64ffda","#1de9b6","#00bfa5","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20","#b9f6ca","#69f0ae","#00e676","#00c853","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e","#ccff90","#b2ff59","#76ff03","#64dd17","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#cddc39","#c0ca33","#afb42b","#9e9d24","#827717","#f4ff81","#eeff41","#c6ff00","#aeea00","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17","#ffff8d","#ffff00","#ffea00","#ffd600","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00","#ffe57f","#ffd740","#ffc400","#ffab00","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100","#ffd180","#ffab40","#ff9100","#ff6d00","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c","#ff9e80","#ff6e40","#ff3d00","#dd2c00","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723","#d7ccc8","#bcaaa4","#8d6e63","#5d4037","#fafafa","#f5f5f5","#eeeeee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121","#ffffff","#eeeeee","#bdbdbd","#616161","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#607d8b","#546e7a","#455a64","#37474f","#263238","#cfd8dc","#b0bec5","#78909c","#455a64"];let Bz=(()=>{class t{static getColor(e){return!!Vz[e]&&Vz[e]}}return t.all=Vz,t.presets=IQe,t})(),E_=(()=>{class t{constructor(e,i){this.httpClient=e,this.noctuaUserService=i,this.baristaUrl=lo.globalBaristaLocation,this.searchApi=lo.searchApi,this.onOrganismsChanged=new mr(null)}setup(){const e=this;R0([this.getUsers(),this.getGroups()]).subscribe(r=>!!r&&(e.noctuaUserService.contributors=e.loadContributors(r[0]),e.noctuaUserService.groups=e.loadGroups(r[1]),!0))}getUsers(){return this.httpClient.get(`${this.baristaUrl}/users`)}getUserInfo(e){const r=encodeURIComponent(e);return this.httpClient.get(`${this.baristaUrl}/user_info_by_id/${r}`)}getGroups(){return this.httpClient.get(`${this.baristaUrl}/groups`)}getOrganisms(){return this.httpClient.get(`${this.searchApi}/taxa`).pipe(Qe(i=>i.taxa))}loadContributors(e){const i=this;return e.map(o=>{const a=new v_;return a.name=o.nickname,a.orcid=o.uri,a.group=o.group,a.initials=i.getInitials(o.nickname),a.color=i.getColor(a.initials),a}).sort(S$e)}loadGroups(e){return e.map(r=>({name:r.label,url:r.id})).sort(E$e)}loadOrganisms(){this.getOrganisms().subscribe(e=>{if(!e)return;const i=e.map(r=>({taxonName:r.label?r.label:"",taxonIri:r.id}));this.onOrganismsChanged.next(i.sort(J$e))})}getInitials(e){const i=e.split(" ");let r=i[0].substring(0,1).toUpperCase();return i.length>1&&(r+=i[i.length-1].substring(0,1).toUpperCase()),r}getColor(e){const i=Object.keys(Bz.all),r=(e.charCodeAt(0)-65)%(i.length-5);return r&&r>0?Bz.getColor(i[r])[100]:"##bbc9cc"}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xd),Rt(uo))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),R1=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w){this.httpClient=e,this.noctuaDataService=i,this._noctuaGraphService=r,this.noctuaLookupService=o,this.camService=a,this.noctuaFormConfigService=c,this.noctuaUserService=u,this.noctuaSearchMenuService=f,this.curieService=w,this.searchHistory=[],this.contributors=[],this.groups=[],this.organisms=[],this.states=[],this.cams=[],this.searchApi=lo.searchApi,this.separator="@@",this.loading=!1,this.searchSummary={},this.onDetailTermChanged=new mr(null),this.onCamsChanged=new mr([]),this.onCamsPageChanged=new mr(null),this.onSearchHistoryChanged=new mr(null),this.states=this.noctuaFormConfigService.modelState.options,this.searchCriteria=new N1,this.onSearchCriteriaChanged=new mr(null),this.curieUtil=this.curieService.getCurieUtil(),this.onSearchCriteriaChanged.subscribe(E=>{!E||(this.getCams(E).subscribe(B=>{this.cams=B,this.camService.updateDisplayNumber(this.cams),this.onCamsChanged.next(this.cams)}),this.getCamsCount(E).subscribe(B=>{this.camPage=new Hz,this.camPage.total=B.n,this.onCamsPageChanged.next(this.camPage)}),this.noctuaSearchMenuService.selectedMiddlePanel===Wo.cams&&this.noctuaSearchMenuService.scrollToTop())}),this.loadCamRebuild()}setup(){this.noctuaDataService.loadOrganisms(),this.noctuaDataService.onOrganismsChanged.subscribe(r=>{r&&(this.organisms=r)}),this.searchCriteria.terms.length>0?this.searchFormUrl():this.updateSearch()}searchFormUrl(){const e=this,i=[],r=[...this.searchCriteria.gps,...this.searchCriteria.terms];r.forEach(o=>{i.push(e.noctuaLookupService.getTermDetail(o.id))}),R0(i).subscribe(o=>{o&&(r.forEach(a=>{const c=(0,Nt.find)(o,{id:a.id});Object.assign(a,c)}),this.updateSearch())})}loadCamRebuild(){const e=this;e._noctuaGraphService.onCamRebuildChange.subscribe(i=>{if(!i)return;const r=(0,Nt.find)(e.cams,{id:i.id});!r||!r.expanded||(this.camService.loadCam(r),this.camService.onCamChanged.next(r))})}search(e){this.searchCriteria=new N1,e.title&&this.searchCriteria.titles.push(e.title),e.contributor&&this.searchCriteria.contributors.push(e.contributor),e.group&&this.searchCriteria.groups.push(e.group),e.pmid&&this.searchCriteria.pmids.push(e.pmid),e.term&&this.searchCriteria.terms.push(e.term),e.obsoleteTerm&&this.searchCriteria.obsoleteTerms.push(e.obsoleteTerm),e.id&&this.searchCriteria.ids.push(e.id),e.gp&&this.searchCriteria.gps.push(e.gp),e.organism&&this.searchCriteria.organisms.push(e.organism),e.state&&this.searchCriteria.states.push(e.state),e.exactdate&&this.searchCriteria.exactdates.push(e.exactdate),e.startdate&&this.searchCriteria.exactdates.push(e.startdate),e.enddate&&this.searchCriteria.exactdates.push(e.enddate),this.updateSearch()}getPage(e,i){this.searchCriteria.camPage.pageNumber=e,this.searchCriteria.camPage.size=i,this.updateSearch()}paramsToSearch(e){this.searchCriteria.titles=this.makeArray(e.title),this.searchCriteria.contributors=this.makeArray(e.contributor,I1.contributors),this.searchCriteria.groups=this.makeArray(e.group,I1.groups),this.searchCriteria.pmids=this.makeArray(e.pmid),this.searchCriteria.terms=this.makeArray(e.term,I1.terms),this.searchCriteria.obsoleteTerms=this.makeArray(e.term,I1.obsoleteTerms),this.searchCriteria.gps=this.makeArray(e.gp,I1.gps),this.searchCriteria.organisms=this.makeArray(e.organism,I1.organisms),this.searchCriteria.states=this.makeArray(e.state),this.searchCriteria.exactdates=this.makeArray(e.exactdate),this.searchCriteria.startdates=this.makeArray(e.startdate),this.searchCriteria.enddates=this.makeArray(e.enddate)}makeArray(e,i){let r;switch(Array.isArray(e)&&(r=e),r="string"==typeof e?[e]:[],i){case I1.terms:case I1.gps:return r.map(o=>({id:o,label:o}));case I1.contributors:return r.map(o=>({orcid:o,name:o}));case I1.groups:return r.map(o=>({url:o,name:o}));case I1.organisms:return r.map(o=>({taxonIri:o,taxonName:o}));default:return r}}updateSearch(e=!0,i=!0){if(this.searchCriteria.updateFiltersCount(),this.onSearchCriteriaChanged.next(this.searchCriteria),i&&this.saveHistory(),e)if(this.searchCriteria.filtersCount>0){const r=this.searchCriteria.build(),o=`${window.location.origin}${window.location.pathname}?${r}`;history.pushState({},"",o)}else{const r=`${window.location.origin}${window.location.pathname}`;history.replaceState({},"",r)}}filter(e,i){this.searchCriteria[e].push(i),this.updateSearch()}removeFilterType(e){this.searchCriteria[e]=[],this.updateSearch()}removeFilter(e){this.searchCriteria[e]=null}clearSearchCriteria(){this.searchCriteria=new N1,this.updateSearch()}saveHistory(){const e=new Doe(this.searchCriteria);this.searchHistory.unshift(e),this.onSearchHistoryChanged.next(this.searchHistory)}clearHistory(){this.searchHistory=[],this.onSearchHistoryChanged.next(this.searchHistory)}downloadSearchConfig(){const e=new Blob([JSON.stringify(this.searchCriteria,void 0,2)],{type:"application/json"});(0,Aoe.saveAs)(e,"search-filter.json")}uploadSearchConfig(e){this.searchCriteria=new N1,e.titles&&(this.searchCriteria.titles=e.titles),e.ids&&(this.searchCriteria.ids=e.ids),e.contributors&&(this.searchCriteria.contributors=e.contributors),e.groups&&(this.searchCriteria.groups=e.groups),e.pmids&&(this.searchCriteria.pmids=e.pmids),e.terms&&(this.searchCriteria.terms=e.terms),e.obsoleteTerms&&(this.searchCriteria.obsoleteTerms=e.obsoleteTerms),e.gps&&(this.searchCriteria.gps=e.gps),e.organisms&&(this.searchCriteria.organisms=e.organisms),e.states&&(this.searchCriteria.states=e.states),e.exactdates&&(this.searchCriteria.exactdates=e.exactdates),e.startdates&&(this.searchCriteria.startdates=e.startdates),e.enddates&&(this.searchCriteria.enddates=e.enddates),this.updateSearch()}getCams(e){const i=this,r=e.build(),o=`${this.searchApi}/models?${r}`;return i.loading=!0,this.httpClient.get(o).pipe(Qe(a=>this.addCam(a)),Eu(()=>{i.loading=!1}))}getCamsCount(e){const r=e.build();return this.httpClient.get(`${this.searchApi}/models?${r}&count`).pipe()}addCam(e){const i=this,r=[];return e.models.forEach(o=>{const a=o.id,c=new sP;c.graph=null,c.id=a,c.state=i.noctuaFormConfigService.findModelState(o.state),c.title=o.title,c.date=o.date,c.modified=o["modified-p"],c.model=Object.assign({},{modelInfo:this.noctuaFormConfigService.getModelUrls(a)}),c.groups=o.groups.map(u=>(0,Nt.find)(i.noctuaUserService.groups,w=>w.url===u)||{url:u}),c.contributors=o.contributors.map(u=>(0,Nt.find)(i.noctuaUserService.contributors,w=>w.orcid===u)||{orcid:u}),r.push(c)}),r}addCamTerms(e){const i=this,r=[];return e.forEach(o=>{const a=new _i(i.curieUtil.getCurie(o.id.value),o.label.value);r.push(a)}),r}groupContributors(){return(0,Nt.groupBy)(this.contributors,function(e){return e.group})}filterOrganisms(e){const i=e.toLowerCase();return this.organisms.filter(r=>0===r.taxonName.toLowerCase().indexOf(i))}filterStates(e){const i=e.toLowerCase();return this.states.filter(r=>0===r.name.toLowerCase().indexOf(i))}}return t.\u0275fac=function(e){return new(e||t)(Rt(Xd),Rt(E_),Rt(hl),Rt(X2),Rt(Zo),Rt(lr),Rt(uo),Rt(Hc),Rt(C_))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function NQe(t,n){if(1&t){const e=Nn();G(0,"div",7),$e(1,"span",3),G(2,"button",8),it("click",function(){return Ut(e),He().cancel()}),he(3),W(),G(4,"button",9),it("click",function(){return Ut(e),He().confirm()}),he(5),W()()}if(2&t){const e=He();K(3),Ft(" ",e.cancelLabel,""),K(2),Ft(" ",e.confirmLabel," ")}}function RQe(t,n){if(1&t){const e=Nn();G(0,"div",7),$e(1,"span",3),G(2,"button",10),it("click",function(){return Ut(e),He().cancel()}),he(3,"Close"),W()()}}let Gz=(()=>{class t{constructor(e,i){this.dialogRef=e,this._data=i,this.readonlyDialog=!1,this.cancelLabel="Cancel",this.confirmLabel="Confirm",i&&(this.cancelLabel=i.cancelLabel?i.cancelLabel:"Cancel",this.confirmLabel=i.confirmLabel?i.confirmLabel:"Confirm")}confirm(){this.dialogRef.close(!0)}cancel(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(Od))},t.\u0275cmp=En({type:t,selectors:[["noctua-confirm-dialog"]],decls:13,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["mat-dialog-content","",1,"noc-dialog-body"],["mat-dialog-actions","","class","m-0 p-16 noc-dialog-footer","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["type","button","mat-raised-button","","color","",1,"",3,"click"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.cancel()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),G(9,"div",5),he(10),W(),Ve(11,NQe,6,2,"div",6),Ve(12,RQe,4,0,"div",6),W()),2&e&&(K(3),Ft(" ",i.title,""),K(7),Ft(" ",i.message," "),K(1),oe("ngIf",!i.readonlyDialog),K(1),oe("ngIf",i.readonlyDialog))},directives:[Lr,kr,Vr,Er,Mo,Fv,er,Hv],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:24px 12px;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-height:90%;display:flex;flex-direction:column}']}),t})(),Q2=(()=>{class t{constructor(e,i){this.snackBar=e,this._matDialog=i}openInfoToast(e,i){this.snackBar.open(e,i,{duration:5e3,verticalPosition:"top"})}openConfirmDialog(e,i,r,o){let a=this._matDialog.open(Gz,{panelClass:"noc-confirm-dialog",disableClose:!1,width:"600px",data:o});a.componentInstance.title=e,a.componentInstance.message=i,r||(a.componentInstance.readonlyDialog=!0),a.afterClosed().subscribe(c=>{c&&r(c),a=null})}}return t.\u0275fac=function(e){return new(e||t)(Rt(lR),Rt(GO))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),z1=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w){this.zone=e,this.noctuaUserService=i,this._noctuaGraphService=r,this._noctuaSearchService=o,this.noctuaSearchMenuService=a,this.confirmDialogService=c,this.httpClient=u,this.camService=f,this.curieService=w,this.artBasket=new P_,this.searchHistory=[],this.searchApi=lo.searchApi,this.loading=!1,this.matchedEntities=[],this.matchedCountCursor=0,this.matchedCount=0,this.filterType={gps:"gps",terms:"terms",pmids:"pmids"};const E=this;this.onArtBasketChanged=new mr(null),this.onResetReview=new mr(!1),this.onClearForm=new mr(!1),this.onReplaceChanged=new mr(!1),this.onCamsPageChanged=new mr(null),this.onCamChanged=new mr([]),this.onCamTermSearch=new mr(null),this.onCamReplaceTermSearch=new mr(null),this.onSearchHistoryChanged=new mr(null),this.searchCriteria=new N1,this.onSearchCriteriaChanged=new mr(null),this.curieUtil=this.curieService.getCurieUtil(),this.onSearchCriteriaChanged.subscribe(B=>{!B||(E.camService.resetMatch(),B.ids.length>0&&E.getCams(B).subscribe(()=>{E.matchedCountCursor=0,E.calculateMatched(),E.camService.applyMatchWeights(E.camService.cams),E.sortMatched(),E.goto(0)}))}),this.camService.onCamsChanged.subscribe(B=>{if(!B)return;const Z=B.map(ee=>ee.id);this.searchCriteria.ids=Z}),E.loadCamRebuild()}setup(){if(!this.noctuaUserService.user)return void this.clearBasket();const e=localStorage.getItem("artBasket");e&&(this.artBasket=new P_(JSON.parse(e)),this.camService.cams=[],this.addCamsToReview(this.artBasket.cams,this.camService.cams),this.onArtBasketChanged.next(this.artBasket))}loadCamRebuild(){const e=this;e._noctuaGraphService.onCamRebuildChange.subscribe(i=>{!i||e.updateStoredCams([i],e.camService.cams)})}addCamsToReview(e,i){const r=this;if(!e||0===e.length)return;const o=e.reduce((a,c)=>((0,Nt.find)(i,{id:c.id})||a.push(c.id),a),[]);r.updateSearch(!0,[...o,...i.map(a=>a.id)]),0!==o.length&&r.searchCamsByIds(o).pipe(S1(a=>{const c=[];return(0,Nt.each)(a,u=>{const f=(0,Nt.find)(e,{id:u.id});u.expanded=!0,u.dateReviewAdded=f?f.dateAdded:Date.now(),u.title=null==f?void 0:f.title,i.push(u),r.camService.loadCamMeta(u),u.loading=new Pd(!0,"Loading Model Activities ..."),c.push(u)}),Jo(c)}),ba(a=>r.camService.getStoredModel(a)),Eu(()=>{r.camService.sortCams(),r.camService.updateDisplayNumber(i),r.camService.onCamsChanged.next(i)})).subscribe({next:a=>{if(!a||!a.storedModel||!a.activeModel)return;const c=(0,Nt.find)(i,{id:a.activeModel.id});!c||(r._noctuaGraphService.rebuildFromStoredApi(c,a.activeModel),r.camService.populateStoredModel(c,a.storedModel),c.loading.status=!1,r.camService.sortCams(),r.camService.updateDisplayNumber(i),r.camService.onCamsChanged.next(i),r.updateSearch())}})}removeCamFromReview(e){(0,Nt.remove)(this.camService.cams,{id:e.id}),this.updateSearch(),this.artBasket.removeCamFromBasket(e.id),localStorage.setItem("artBasket",JSON.stringify(this.artBasket)),this.camService.updateDisplayNumber(this.camService.cams),this.camService.onCamsChanged.next(this.camService.cams),this.onArtBasketChanged.next(this.artBasket)}reloadCams(e,i,r,o=!1){const a=this;!e||0===e.length||0===e.map(u=>u.id).length||Jo(e).pipe(ba(u=>r===Fh.RESET?(u.loading=new Pd(!0,"Resetting Model ..."),a.camService.resetCams([u])):r===Fh.STORE?(u.loading=new Pd(!0,"Saving Model ..."),a.camService.storeCams([u])):ls),Eu(()=>{a.camService.updateDisplayNumber(i),a.camService.onCamsChanged.next(i),a.camService.resetLoading(e),a._noctuaSearchService.updateSearch(!1,!1),a.onReplaceChanged.next(!0),a.updateSearch(),a.zone.run(()=>{a.camService.resetLoading(i),a.confirmDialogService.openInfoToast("Changes successfully saved.","OK"),a.camService.reviewChangesCams(),o&&a.confirmAfterSave()})})).subscribe({next:u=>{if(!u||!u.data())return;const f=(0,Nt.find)(i,{id:u.data().id});!f||(a.camService.populateStoredModel(f,u.data()),f.loading.status=!1,a.camService.updateDisplayNumber(i),a.camService.onCamsChanged.next(i),a.updateSearch())}})}updateStoredCams(e,i){const r=this;if(!e||0===e.length)return;const o=e.map(a=>a.id);0!==o.length&&r.searchCamsByIds(o).pipe(S1(a=>{const c=[];return(0,Nt.each)(a,u=>{u.expanded=!0,r.camService.loadCamMeta(u),u.loading.status=!0,c.push(u)}),Jo(c)}),ba(a=>((0,Nt.find)(i,{id:a.id}).loading=new Pd(!0,"Reloading Model ..."),r.camService.getStoredModel(a))),Eu(()=>{})).subscribe({next:a=>{if(!a||!a.storedModel||!a.activeModel)return;const c=(0,Nt.find)(i,{id:a.activeModel.id});!c||(c.rebuildRule.reset(),r._noctuaGraphService.rebuildFromStoredApi(c,a.activeModel),r.camService.populateStoredModel(c,a.storedModel),c.loading.status=!1,r.camService.sortCams(),r.camService.updateDisplayNumber(i),r.camService.onCamsChanged.next(i),r.updateSearch())}})}confirmAfterSave(){const e=this;this.confirmDialogService.openConfirmDialog("Changes successfully saved.","Do you want to clear all your selected models from ART",o=>{o&&(e.noctuaSearchMenuService.selectMiddlePanel(Wo.cams),e.noctuaSearchMenuService.selectLeftPanel(ss.filter),e.clear(),e.camService.clearCams(),e.clearBasket(),e.onResetReview.next(!0),e.noctuaSearchMenuService.scrollToTop())},{cancelLabel:"No",confirmLabel:"Yes"})}searchCamsByIds(e){const r=new N1;return r.ids=e,this.camService.resetMatch(),this._noctuaSearchService.getCams(r)}search(e){this.searchCriteria=new N1,e.pmid&&this.searchCriteria.pmids.push(e.pmid),e.term&&this.searchCriteria.terms.push(e.term),e.id&&this.searchCriteria.ids.push(e.id),e.gp&&this.searchCriteria.gps.push(e.gp),this.updateSearch()}findNext(){if(0!==this.matchedCount)return this.matchedCountCursor=(this.matchedCountCursor+1)%this.matchedCount,this.currentMatchedEnity=this.matchedEntities[this.matchedCountCursor],this.camService.expandMatch(this.currentMatchedEnity.uuid),this.camService.currentMatch=this.currentMatchedEnity,!this.currentMatchedEnity.activityDisplayId&&this.matchedCountCursor0)this.searchCriteria.ids=i;else{const r=this.camService.cams.map(o=>o.id);this.searchCriteria.ids=r}this.searchCriteria.updateFiltersCount(),this.onSearchCriteriaChanged.next(this.searchCriteria),e&&this.saveHistory()}filter(e,i){this.searchCriteria[e].push(i),this.updateSearch()}removeFilterType(e){this.searchCriteria[e]=[],this.updateSearch()}removeFilter(e){this.searchCriteria[e]=null}clearSearchCriteria(){this.searchCriteria=new N1,this.updateSearch()}saveHistory(){const e=new Doe(this.searchCriteria);this.searchHistory.unshift(e),this.onSearchHistoryChanged.next(this.searchHistory)}clearHistory(){this.searchHistory=[],this.onSearchHistoryChanged.next(this.searchHistory)}addToArtBasket(e,i){this.artBasket.addCamToBasket(e,i),localStorage.setItem("artBasket",JSON.stringify(this.artBasket)),this.onArtBasketChanged.next(this.artBasket)}clearBasket(){this.artBasket.clearBasket(),localStorage.setItem("artBasket",JSON.stringify(this.artBasket)),this.onArtBasketChanged.next(this.artBasket),this.noctuaSearchMenuService.scrollToTop()}downloadSearchConfig(){const e=new Blob([JSON.stringify(this.searchCriteria,void 0,2)],{type:"application/json"});(0,Aoe.saveAs)(e,"search-filter.json")}uploadSearchConfig(e){this.searchCriteria=new N1,e.ids&&(this.searchCriteria.ids=e.ids),e.pmids&&(this.searchCriteria.pmids=e.pmids),e.terms&&(this.searchCriteria.terms=e.terms),e.gps&&(this.searchCriteria.gps=e.gps),this.updateSearch()}getCams(e){const i=this;e.expand=!1;const r=e.build(!1),o=`${this.searchApi}/models?${r}`;return i.loading=!0,this.httpClient.get(o).pipe(Qe(a=>this.addCam(a)),Eu(()=>{i.loading=!1}))}addCam(e){const i=this,r=[];return(0,Nt.each)(i.camService.cams,o=>o.clearHighlight()),e.models.forEach(o=>{const a=o.id,c=(0,Nt.find)(i.camService.cams,u=>u.id===a);c&&(c.queryMatch=new Rz,(0,Nt.each)(o.query_match,(u,f)=>{c.queryMatch.terms.push(...u.map(w=>new _i(i.curieUtil.getCurie(f),"",null,i.curieUtil.getCurie(w),c.id)))}),c.applyFilter()),r.push(c)}),r}addCamTerms(e){const i=this,r=[];return e.forEach(o=>{const a=new _i(i.curieUtil.getCurie(o.id.value),o.label.value);r.push(a)}),r}calculateMatchedCountNumber(){return this.camService.cams.reduce((i,r)=>i+r.matchedCount,0)}calculateMatched(){this.matchedEntities=this.camService.cams.reduce((e,i)=>(i.queryMatch&&i.queryMatch.terms&&e.push(...i.queryMatch.terms),e),[]),this.matchedCount=this.matchedEntities.length,this.matchedCountCursor=0}sortMatched(){this.matchedEntities=this.matchedEntities.sort(HXe)}}return t.\u0275fac=function(e){return new(e||t)(Rt(ji),Rt(uo),Rt(hl),Rt(R1),Rt(Hc),Rt(Q2),Rt(Xd),Rt(Zo),Rt(C_))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const zQe=function vOe(t,n=null){return{type:8,animation:t,options:n}}([Wn({opacity:"{{opacity}}",transform:"scale({{scale}}) translate3d({{x}}, {{y}}, {{z}})"}),gr("{{duration}} {{delay}} cubic-bezier(0.0, 0.0, 0.2, 1)",Wn("*"))],{params:{duration:"200ms",delay:"0ms",opacity:"0",scale:"1",x:"0",y:"0",z:"0"}}),dc=[sa("animate",[Cr("void => *",[function COe(t,n=null){return{type:10,animation:t,options:n}}(zQe)])]),sa("animateStagger",[Nr("50",Wn("*")),Nr("100",Wn("*")),Nr("200",Wn("*")),Cr("void => 50",Ea("@*",[Jk("50ms",[O1()])],{optional:!0})),Cr("void => 100",Ea("@*",[Jk("100ms",[O1()])],{optional:!0})),Cr("void => 200",Ea("@*",[Jk("200ms",[O1()])],{optional:!0}))]),sa("fadeInOut",[Nr("0",Wn({display:"none",opacity:0})),Nr("1",Wn({display:"block",opacity:1})),Cr("1 => 0",gr("300ms ease-out")),Cr("0 => 1",gr("300ms ease-in"))]),sa("slideInOut",[Nr("0",Wn({height:"0px",display:"none"})),Nr("1",Wn({height:"*",display:"block"})),Cr("1 => 0",gr("300ms ease-out")),Cr("0 => 1",gr("300ms ease-in"))]),sa("slideIn",[Cr("void => left",[Wn({transform:"translateX(100%)"}),gr("300ms ease-in",Wn({transform:"translateX(0)"}))]),Cr("left => void",[Wn({transform:"translateX(0)"}),gr("300ms ease-in",Wn({transform:"translateX(-100%)"}))]),Cr("void => right",[Wn({transform:"translateX(-100%)"}),gr("300ms ease-in",Wn({transform:"translateX(0)"}))]),Cr("right => void",[Wn({transform:"translateX(0)"}),gr("300ms ease-in",Wn({transform:"translateX(100%)"}))])]),sa("slideInLeft",[Nr("void",Wn({transform:"translateX(-100%)",display:"none"})),Nr("*",Wn({transform:"translateX(0)",display:"flex"})),Cr("void => *",gr("300ms")),Cr("* => void",gr("300ms"))]),sa("slideInRight",[Nr("void",Wn({transform:"translateX(100%)",display:"none"})),Nr("*",Wn({transform:"translateX(0)",display:"flex"})),Cr("void => *",gr("300ms")),Cr("* => void",gr("300ms"))]),sa("slideInTop",[Nr("void",Wn({transform:"translateY(-100%)",display:"none"})),Nr("*",Wn({transform:"translateY(0)",display:"flex"})),Cr("void => *",gr("300ms")),Cr("* => void",gr("300ms"))]),sa("slideInBottom",[Nr("void",Wn({transform:"translateY(100%)",display:"none"})),Nr("*",Wn({transform:"translateY(0)",display:"flex"})),Cr("void => *",gr("300ms")),Cr("* => void",gr("300ms"))]),sa("expandCollapse",[Nr("void",Wn({height:"0px"})),Nr("*",Wn({height:"*"})),Cr("void => *",gr("300ms ease-out")),Cr("* => void",gr("300ms ease-in"))]),sa("routerTransitionLeft",[Cr("* => *",[Ea("noctua-content > :enter, noctua-content > :leave",[Wn({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),Ea("noctua-content > :enter",[Wn({transform:"translateX(100%)",opacity:0})],{optional:!0}),q9([Vg([Ea("noctua-content > :leave",[Wn({transform:"translateX(0)",opacity:1}),gr("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",Wn({transform:"translateX(-100%)",opacity:0}))],{optional:!0}),Ea("noctua-content > :enter",[Wn({transform:"translateX(100%)"}),gr("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",Wn({transform:"translateX(0%)",opacity:1}))],{optional:!0})]),Ea("noctua-content > :leave",O1(),{optional:!0}),Ea("noctua-content > :enter",O1(),{optional:!0})])])]),sa("routerTransitionRight",[Cr("* => *",[Ea("noctua-content > :enter, noctua-content > :leave",[Wn({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),Ea("noctua-content > :enter",[Wn({transform:"translateX(-100%)",opacity:0})],{optional:!0}),q9([Vg([Ea("noctua-content > :leave",[Wn({transform:"translateX(0)",opacity:1}),gr("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",Wn({transform:"translateX(100%)",opacity:0}))],{optional:!0}),Ea("noctua-content > :enter",[Wn({transform:"translateX(-100%)"}),gr("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",Wn({transform:"translateX(0%)",opacity:1}))],{optional:!0})]),Ea("noctua-content > :leave",O1(),{optional:!0}),Ea("noctua-content > :enter",O1(),{optional:!0})])])]),sa("routerTransitionUp",[Cr("* => *",[Ea("noctua-content > :enter, noctua-content > :leave",[Wn({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),Ea("noctua-content > :enter",[Wn({transform:"translateY(100%)",opacity:0})],{optional:!0}),Vg([Ea("noctua-content > :leave",[Wn({transform:"translateY(0)",opacity:1}),gr("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",Wn({transform:"translateY(-100%)",opacity:0}))],{optional:!0}),Ea("noctua-content > :enter",[Wn({transform:"translateY(100%)"}),gr("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",Wn({transform:"translateY(0%)",opacity:1}))],{optional:!0})]),Ea("noctua-content > :leave",O1(),{optional:!0}),Ea("noctua-content > :enter",O1(),{optional:!0})])]),sa("routerTransitionDown",[Cr("* => *",[Ea("noctua-content > :enter, noctua-content > :leave",[Wn({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),Ea("noctua-content > :enter",[Wn({transform:"translateY(-100%)",opacity:0})],{optional:!0}),q9([Vg([Ea("noctua-content > :leave",[Wn({transform:"translateY(0)",opacity:1}),gr("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",Wn({transform:"translateY(100%)",opacity:0}))],{optional:!0}),Ea("noctua-content > :enter",[Wn({transform:"translateY(-100%)"}),gr("600ms cubic-bezier(0.0, 0.0, 0.2, 1)",Wn({transform:"translateY(0%)",opacity:1}))],{optional:!0})]),Ea("noctua-content > :leave",O1(),{optional:!0}),Ea("noctua-content > :enter",O1(),{optional:!0})])])]),sa("routerTransitionFade",[Cr("* => *",Vg([Ea("noctua-content > :enter, noctua-content > :leave ",[Wn({position:"absolute",top:0,bottom:0,left:0,right:0})],{optional:!0}),Ea("noctua-content > :enter",[Wn({opacity:0})],{optional:!0}),Ea("noctua-content > :leave",[Wn({opacity:1}),gr("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",Wn({opacity:0}))],{optional:!0}),Ea("noctua-content > :enter",[Wn({opacity:0}),gr("300ms cubic-bezier(0.0, 0.0, 0.2, 1)",Wn({opacity:1}))],{optional:!0}),Ea("noctua-content > :enter",O1(),{optional:!0}),Ea("noctua-content > :leave",O1(),{optional:!0})]))])];function FQe(t,n){1&t&&(G(0,"th",21),he(1," Category "),W())}function HQe(t,n){if(1&t&&(G(0,"td",22),he(1),W()),2&t){const e=n.$implicit;K(1),Ft(" ",e.category," ")}}function VQe(t,n){1&t&&(G(0,"th",23),he(1,"Changes"),W())}function BQe(t,n){if(1&t&&(G(0,"td",24),he(1),W()),2&t){const e=n.$implicit;K(1),Ft(" ",e.count," ")}}function GQe(t,n){1&t&&$e(0,"tr",25)}function YQe(t,n){1&t&&(G(0,"tr",26),it("click",function(i){return i.stopPropagation()}),W())}function UQe(t,n){if(1&t){const e=Nn();G(0,"div",27)(1,"button",28),it("click",function(){return Ut(e),He().cancel()}),he(2),W(),G(3,"button",29),it("click",function(){return Ut(e),He().confirm()}),he(4),W()()}if(2&t){const e=He();K(2),Ft(" ",e.cancelLabel,""),K(2),Ft(" ",e.confirmLabel," ")}}function jQe(t,n){if(1&t){const e=Nn();G(0,"div",27)(1,"button",28),it("click",function(){return Ut(e),He().cancel()}),he(2,"Close"),W()()}}const WQe=function(){return{value:"50"}};let qQe=(()=>{class t{constructor(e,i,r,o,a,c,u){this._matDialogRef=e,this._data=i,this.noctuaReviewSearchService=r,this.noctuaSearchMenuService=o,this.noctuaUserService=a,this.noctuaFormConfigService=c,this.noctuaActivityFormService=u,this.ReviewMode=Fc,this.LeftPanel=ss,this.MiddlePanel=Wo,this.RightPanel=Hh,this.stats=[],this.title="Review Changes",this.readonlyDialog=!1,this.cancelLabel="Cancel",this.confirmLabel="Confirm",this.displayedColumns=["category","count"],this._unsubscribeAll=new z,i.options&&(this.cancelLabel=i.options.cancelLabel?i.options.cancelLabel:"Cancel",this.confirmLabel=i.options.confirmLabel?i.options.confirmLabel:"Confirm"),this.summary=this._data.summary,this.stats=this.generateStats(this.summary.stats)}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}generateStats(e){return e.updateTotal(),[{category:"Genes",count:e.gpsCount},{category:"Terms",count:e.termsCount},{category:"Evidence",count:e.evidenceCount},{category:"Reference",count:e.referencesCount},{category:"With",count:e.withsCount},{category:"Relations",count:e.relationsCount}]}selectMiddlePanel(e){switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case Wo.cams:this.noctuaSearchMenuService.selectLeftPanel(ss.filter);break;case Wo.camsReview:case Wo.reviewChanges:this.noctuaSearchMenuService.selectLeftPanel(ss.artBasket)}}confirm(){this._matDialogRef.close(!0)}cancel(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(Od),de(z1),de(Hc),de(uo),de(lr),de(ps))},t.\u0275cmp=En({type:t,selectors:[["noc-cams-review-changes-dialog"]],decls:31,vars:11,consts:[[1,"dialog-content-wrapper","noc-dialog"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-dialog-body","noc-form-section"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-stats-results"],[1,"alert","alert-warning","w-100-p"],[1,"noc-stat-summary","w-100-p"],[1,"noc-number"],["fxFlex","1 1 auto","mat-table","",1,"noc-summary-table",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","250px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["class","m-0 p-16 noc-dialog-footer","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-header-row",""],["mat-row","",3,"click"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),he(4),W(),$e(5,"span",4),G(6,"button",5),it("click",function(){return i.cancel()}),G(7,"mat-icon"),he(8,"close"),W(),he(9," Close "),W()()(),G(10,"div",6)(11,"div",7)(12,"div",8),he(13),G(14,"div",9)(15,"span",10),he(16),W(),he(17," unsaved changes across "),G(18,"span",10),he(19),W()()(),G(20,"table",11),Qr(21,12),Ve(22,FQe,2,0,"th",13),Ve(23,HQe,2,1,"td",14),Kr(),Qr(24,15),Ve(25,VQe,2,0,"th",16),Ve(26,BQe,2,1,"td",17),Kr(),Ve(27,GQe,1,0,"tr",18),Ve(28,YQe,1,0,"tr",19),W()()(),Ve(29,UQe,5,2,"div",20),Ve(30,jQe,3,0,"div",20),W()),2&e&&(K(4),Ft(" ",i.title," "),K(9),Ft(" ",i.message," "),K(3),Ft(" ",null==i.summary?null:i.summary.stats.totalChanges," "),K(3),Ft(" ",null==i.summary?null:i.summary.stats.camsCount," model(s) "),K(1),oe("dataSource",i.stats)("@animateStagger",ai(10,WQe)),K(7),oe("matHeaderRowDef",i.displayedColumns),K(1),oe("matRowDefColumns",i.displayedColumns),K(1),oe("ngIf",!i.readonlyDialog),K(1),oe("ngIf",i.readonlyDialog))},directives:[r3,n3,Vr,Lr,kr,Er,Mo,Fa,U6,dm,lm,um,cm,hm,j6,q6,W6,X6,er],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%]{padding:20px 10px 300px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%]{width:400px;min-width:400px;max-width:400px}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}'],data:{animation:dc}}),t})();function XQe(t,n){if(1&t&&(G(0,"div",14),he(1," It looks like you have pending changes for Annotation Review Tool. .If you leave before saving, your basket changes will be lost. "),G(2,"div",15)(3,"span",16),he(4),W(),he(5," unsaved changes across "),G(6,"span",16),he(7),W()()()),2&t){const e=He();K(4),Ft(" ",null==e.summary?null:e.summary.stats.totalChanges," "),K(3),Ft(" ",null==e.summary?null:e.summary.stats.camsCount," models ")}}function $Qe(t,n){1&t&&(G(0,"div",17),he(1," It looks like Annotation Review Tool Basket is not empty. .If you leave, your basket will be cleared. "),W())}function QQe(t,n){if(1&t&&(G(0,"div",29)(1,"div",23),he(2,"Modified Model: "),W(),he(3," ("),G(4,"strong",30),he(5),W(),he(6," change(s) ) "),$e(7,"span",4),W()),2&t){const e=He().$implicit;K(5),Zr(null==e.modifiedStats?null:e.modifiedStats.totalChanges)}}function KQe(t,n){if(1&t&&(G(0,"div",37),he(1),W()),2&t){const e=n.$implicit;Yr("matTooltip",e.name),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(1),Ft(" ",e.name?e.name:e.orcid,"; ")}}function ZQe(t,n){if(1&t&&(G(0,"span",38)(1,"div",39),he(2),W()()),2&t){const e=n.$implicit;Yr("matTooltip",e.name),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.name?e.name:e.url," ")}}function JQe(t,n){if(1&t&&(G(0,"div",31)(1,"div",22)(2,"div",23),he(3,"Contributors:"),W(),Ve(4,KQe,2,4,"div",32),W(),G(5,"div",22)(6,"div",23),he(7,"Groups:"),W(),Ve(8,ZQe,3,4,"span",33),W(),G(9,"div",24)(10,"div",23),he(11,"Open In:"),W(),G(12,"a",34),he(13," Pathway Editor "),W(),G(14,"span"),he(15,"\u2022"),W(),G(16,"a",35),he(17," Form Editor "),W(),G(18,"span"),he(19,"\u2022"),W(),G(20,"a",36),he(21," Graph Editor "),W()()()),2&t){const e=He().$implicit;K(4),oe("ngForOf",e.contributors),K(4),oe("ngForOf",e.groups),K(4),oe("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaVPEUrl,ir),K(4),oe("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ir),K(4),oe("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ir)}}const eKe=function(){return["fas","angle-double-down"]};function tKe(t,n){1&t&&(G(0,"span"),he(1,"More Details "),$e(2,"fa-icon",40),W()),2&t&&(K(2),oe("icon",ai(1,eKe)))}const nKe=function(){return["fas","angle-double-up"]};function iKe(t,n){1&t&&(G(0,"span"),he(1,"Less Details "),$e(2,"fa-icon",40),W()),2&t&&(K(2),oe("icon",ai(1,nKe)))}const rKe=function(t){return{"noc-selected":t}};function oKe(t,n){if(1&t){const e=Nn();G(0,"div",18),Ve(1,QQe,8,1,"div",19),G(2,"div",20)(3,"div",21)(4,"div",22)(5,"div",23),he(6,"Title:"),W(),he(7),W(),G(8,"div",24)(9,"div",23),he(10,"State:"),W(),he(11),W(),Ve(12,JQe,22,5,"div",25),G(13,"div",26)(14,"a",27),it("click",function(r){const a=Ut(e).$implicit;return r.stopPropagation(),a.moreDetail=!a.moreDetail}),Ve(15,tKe,3,2,"span",28),Ve(16,iKe,3,2,"span",28),W()()(),$e(17,"span",4),W()()}if(2&t){const e=n.$implicit,i=He();oe("ngClass",Pr(7,rKe,e.id===(null==i.camService.currentMatch?null:i.camService.currentMatch.modelId))),K(1),oe("ngIf",e.modified),K(6),Ft(" ",e.title," "),K(4),Ft(" ",null==e.state?null:e.state.label," "),K(1),oe("ngIf",e.moreDetail),K(3),oe("ngIf",!e.moreDetail),K(1),oe("ngIf",e.moreDetail)}}let aKe=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E,B){this._matDialogRef=e,this.zone=i,this.camService=r,this.noctuaConfigService=o,this.confirmDialogService=a,this.noctuaSearchDialogService=c,this.noctuaUserService=u,this.noctuaSearchMenuService=f,this.noctuaSearchService=w,this.noctuaFormConfigService=E,this.noctuaReviewSearchService=B,this.cams=[],this._unsubscribeAll=new z}ngOnInit(){this.camService.onCamsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.cams=e)})}ngAfterViewInit(){setTimeout(()=>{this.camService.onCamsCheckoutChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.summary=e)})},1)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}reviewChanges(){const e=this;e.camService.reviewChangesCams(),e.noctuaSearchMenuService.selectLeftPanel(ss.artBasket),e.noctuaSearchMenuService.selectMiddlePanel(Wo.camsReview),e.noctuaSearchMenuService.reviewMode=Fc.on,e.noctuaSearchMenuService.isReviewMode=!0,this.close()}logout(){this.noctuaReviewSearchService.clear(),this.camService.clearCams(),this.noctuaReviewSearchService.clearBasket(),this._matDialogRef.close(!0)}close(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(ji),de(Zo),de(lr),de(Q2),de(C3),de(uo),de(Hc),de(R1),de(lr),de(z1))},t.\u0275cmp=En({type:t,selectors:[["noc-cams-unsaved-dialog"]],decls:22,vars:3,consts:[[1,"dialog-content-wrapper","noc-dialog"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-dialog-body"],["class","alert alert-danger w-100-p",4,"ngIf"],["class","alert alert-warning w-100-p",4,"ngIf"],["class","noc-group-row","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["type","button","mat-raised-button","","color","warn",3,"click"],[1,"alert","alert-danger","w-100-p"],[1,"noc-stat-summary","w-100-p"],[1,"noc-number"],[1,"alert","alert-warning","w-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-group-row",3,"ngClass"],["class","noc-modified-header w-100-p","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],["class","w-100-p",4,"ngIf"],[1,"noc-item"],[1,"noc-more-details-button",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-modified-header","w-100-p"],[1,"mr-4"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],[3,"icon"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),he(4," Unsaved Changes (Annotation Review Tool) "),W(),$e(5,"span",4),G(6,"button",5),it("click",function(){return i.close()}),G(7,"mat-icon"),he(8,"close"),W(),he(9," Close "),W()()(),G(10,"div",6),Ve(11,XQe,8,2,"div",7),Ve(12,$Qe,2,0,"div",8),Ve(13,oKe,18,9,"div",9),W(),G(14,"div",10)(15,"button",11),it("click",function(){return i.close()}),he(16,"Cancel"),W(),$e(17,"span",4),G(18,"button",12),it("click",function(){return i.reviewChanges()}),he(19,"Review Changes"),W(),G(20,"button",13),it("click",function(){return i.logout()}),he(21,"Logout Anyway"),W()()()),2&e&&(K(11),oe("ngIf",(null==i.summary?null:i.summary.stats.totalChanges)>0),K(1),oe("ngIf",0===(null==i.summary?null:i.summary.stats.totalChanges)),K(1),oe("ngForOf",i.cams))},directives:[r3,n3,Vr,Lr,kr,Er,Mo,Fa,er,vo,Qa,ec,Jl,ks],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;height:100%}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;display:flex;flex-direction:column}[_nghost-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{min-height:40px;max-height:500px;border-bottom:#CCC solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;font-size:12px;background-color:#fffcd8;border-bottom:#fff472 solid 1px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item-body[_ngcontent-%COMP%]{padding:12px 10px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-more-details-button[_ngcontent-%COMP%]{padding:8px 0;cursor:pointer}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-remove-button[_ngcontent-%COMP%]{height:30px;width:30px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-group-row.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}'],data:{animation:dc}}),t})(),C3=(()=>{class t{constructor(e,i){this.snackBar=e,this._matDialog=i}openInfoToast(e,i){this.snackBar.open(e,i,{duration:1e4,verticalPosition:"top"})}openConfirmDialog(e,i){this.dialogRef=this._matDialog.open(Gz,{panelClass:"noc-search-database-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(r=>{r&&i(r)})}openCamReviewChangesDialog(e,i,r){let o=this._matDialog.open(qQe,{panelClass:"noc-cams-review-changes-dialog",data:{summary:i,options:r}});r&&r.title&&(o.componentInstance.title=r.title),r&&r.message&&(o.componentInstance.message=r.message),e||(o.componentInstance.readonlyDialog=!0),o.afterClosed().subscribe(a=>{a&&e(a),o=null})}openCamsUnsavedDialog(e){this.dialogRef=this._matDialog.open(aKe,{panelClass:"noc-cams-unsaved-dialog",data:{}}),this.dialogRef.afterClosed().subscribe(i=>{i&&e(i)})}}return t.\u0275fac=function(e){return new(e||t)(Rt(lR),Rt(GO))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function sKe(t,n){1&t&&(G(0,"a",36),he(1," More Details "),W()),2&t&&Yr("href",He(2).announcement.descriptionUrl,ir)}function cKe(t,n){if(1&t){const e=Nn();Qr(0),G(1,"div",31)(2,"div",32)(3,"div",33)(4,"strong"),he(5),W(),he(6),Ve(7,sKe,2,1,"a",34),W(),G(8,"button",35),it("click",function(){return Ut(e),He().openAnnouncements()}),he(9," View More "),W()()(),Kr()}if(2&t){const e=He();K(1),Af("noc-announcement alert alert-",e.announcement.level,""),K(4),Zr(e.announcement.title),K(1),Ft(" ",e.announcement.description," "),K(1),oe("ngIf",e.announcement.descriptionUrl),K(1),oe("matTooltipPosition","below")("matTooltipShowDelay",1500)}}function lKe(t,n){1&t&&$e(0,"mat-progress-bar",37)}function dKe(t,n){if(1&t&&(Qr(0),G(1,"a",38),he(2," Noctua "),W(),G(3,"a",39),he(4," Visual Pathway Editor "),W(),Kr()),2&t){const e=He();K(1),Yr("href",e.noctuaConfigService.noctuaUrl,ir),K(2),Yr("href",e.noctuaConfigService.homeUrl,ir)}}function uKe(t,n){if(1&t&&(G(0,"div",40)(1,"div",41)(2,"a",42),he(3," Noctua "),W(),G(4,"a",42),he(5," Visual Pathway Editor "),W(),he(6),W(),G(7,"div",43),he(8," Testing Version. Visit "),G(9,"a",44),he(10," Noctua "),W(),he(11," for production version "),W()()),2&t){const e=He();K(2),Yr("href",e.noctuaConfigService.noctuaUrl,ir),K(2),Yr("href",e.noctuaConfigService.homeUrl,ir),K(2),Ft(" (",e.betaText,") ")}}function hKe(t,n){if(1&t&&(G(0,"button",45)(1,"div",46)(2,"div",47)(3,"div",48),he(4),W(),G(5,"div",49),he(6),W()(),G(7,"mat-icon"),he(8,"arrow_drop_down"),W()()()),2&t){const e=He();oe("matMenuTriggerFor",Di(40)),K(4),Ft(" ",e.noctuaUserService.user.name," "),K(2),Ft(" ",null==e.noctuaUserService.user||null==e.noctuaUserService.user.group?null:e.noctuaUserService.user.group.label," ")}}function pKe(t,n){if(1&t&&(G(0,"div")(1,"a",50),he(2," Login "),W()()),2&t){const e=He();K(1),Yr("href",e.noctuaConfigService.loginUrl,ir)}}const fKe=function(t,n){return{"noc-dev":t,"noc-beta":n}},gKe=function(){return["fab","github"]},mKe=function(){return["fab","twitter"]},_Ke=function(){return["fab","facebook"]};let vKe=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E){this.router=e,this.camService=i,this.noctuaCommonMenuService=r,this.noctuaAnnouncementService=o,this.noctuaUserService=a,this.noctuaSearchDialogService=c,this.noctuaConfigService=u,this.noctuaActivityFormService=f,this.noctuaReviewSearchService=w,this.noctuaSearchMenuService=E,this.ActivityType=Wi,this.noctuaFormUrl="",this.loginUrl="",this.logoutUrl="",this.noctuaUrl="",this.isBeta=lo.isBeta,this.isDev=lo.isDev,this.betaText="",this._unsubscribeAll=new z,this.router.events.pipe(Ln(this._unsubscribeAll)).subscribe(B=>{B instanceof y6&&(this.showLoadingBar=!0),B instanceof Up&&(this.showLoadingBar=!1)})}ngOnInit(){this.camService.onCamChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.camService.onCamChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.noctuaReviewSearchService.onArtBasketChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)}),this.noctuaAnnouncementService.onAnnouncementsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&(this.announcements=e)}),this.noctuaAnnouncementService.onAnnouncementChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&(this.announcement=e)}),this.isDev&&this.isBeta?this.betaText="beta dev":this.isDev?this.betaText="dev":this.isBeta&&(this.betaText="beta")}openApps(){this.noctuaCommonMenuService.selectLeftSidenav($2.apps),this.noctuaCommonMenuService.openLeftSidenav()}openAnnouncements(){this.noctuaCommonMenuService.selectLeftSidenav($2.announcement),this.noctuaCommonMenuService.openLeftSidenav()}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel(k1.camForm),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel(k1.activityForm),this.noctuaCommonMenuService.openLeftDrawer()}logout(){var e;const i=this;(null===(e=i.artBasket)||void 0===e?void 0:e.cams.length)>0?this.noctuaSearchDialogService.openCamsUnsavedDialog(o=>{o&&(window.location.href=i.noctuaConfigService.logoutUrl)}):window.location.href=i.noctuaConfigService.logoutUrl}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Ql),de(Zo),de($c),de(boe),de(uo),de(C3),de(lr),de(ps),de(z1),de(Hc))},t.\u0275cmp=En({type:t,selectors:[["noctua-toolbar"]],decls:47,vars:20,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",3,"ngClass"],["class","loading-bar","color","accent","mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","200px",1,"noc-br","h-100-p"],["fxLayout","row","fxLayoutAlign","start",1,"noc-logo","pl-8"],["href","http://geneontology.org/","target","_blank"],["src","assets/images/logos/go-logo.large.png"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","180px",1,"noc-logo","pl-0","h-100-p"],["mat-icon-button","","matTooltip","Open Workbenches Menu",1,"noc-br","noc-apps-button",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,""],["class","noc-beta-logo","fxLayout","column","fxLayoutAlign","center start ",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex",""],["fxLayout","row","fxLayoutAlign","start center",1,"noc-br","pr-12"],["mat-icon-button","","href","https://github.com/geneontology","target","blank"],[3,"icon"],["mat-icon-button","","href","https://twitter.com/news4go","target","blank"],["mat-icon-button","","href","https://www.facebook.com/pages/Gene-Ontology/305908656519","target","blank"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-br","pl-12","pr-12"],["mat-button","",1,"",3,"matMenuTriggerFor"],["aboutMenu","matMenu"],["href","http://geneontology.org/docs/introduction-to-go-resource/","target","_blank","mat-menu-item",""],["href","http://geneontology.org/docs/gocam-overview/","target","_blank","mat-menu-item",""],["helpMenu","matMenu"],["href","http://wiki.geneontology.org/index.php/Noctua","target","_blank","mat-menu-item",""],["mat-button","","class","noc-name-button",3,"matMenuTriggerFor",4,"ngIf"],["userMenu","matMenu"],["mat-button","",1,"red-500-fg","w-100-p",3,"click"],["fxLayout","row","fxLayoutAlign","start",1,"noc-bl","noc-logo"],["href","https://www.alliancegenome.org","target","_blank"],["src","assets/images/logos/alliance-logo.png"],["fxLayout","row","fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-announcement-header"],["fxFlex",""],["target","_banl",3,"href",4,"ngIf"],["mat-stroked-button","","matTooltip","Open Announcements",1,"noc-rounded-button","ml-8","noc-sm",3,"matTooltipPosition","matTooltipShowDelay","click"],["target","_banl",3,"href"],["color","accent","mode","indeterminate",1,"loading-bar"],["target","_blank",1,"noc-main-logo",3,"href"],["target"," _blank",1,"noc-sub-logo",3,"href"],["fxLayout","column","fxLayoutAlign","center start ",1,"noc-beta-logo"],[1,"noc-title"],["target","_blank",1,"",3,"href"],[1,"noc-description"],["href","http://noctua.geneontology.org/","target","_blank",1,""],["mat-button","",1,"noc-name-button",3,"matMenuTriggerFor"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxLayoutAlign","start start",1,"noc-info"],[1,"noc-name","text-truncate"],[1,"noc-group-name","text-truncate"],["mat-button","",1,"noc-login-button",3,"href"]],template:function(e,i){if(1&e&&(G(0,"div",0),Ve(1,cKe,10,8,"ng-container",1),G(2,"mat-toolbar",2),Ve(3,lKe,1,0,"mat-progress-bar",3),G(4,"div",4)(5,"div",5)(6,"a",6),$e(7,"img",7),W()()(),G(8,"div",8)(9,"button",9),it("click",function(){return i.openApps()}),G(10,"mat-icon",10),he(11,"apps"),W()(),Ve(12,dKe,5,2,"ng-container",1),Ve(13,uKe,12,3,"div",11),W(),G(14,"div",12)(15,"div",13)(16,"a",14),$e(17,"fa-icon",15),W(),G(18,"a",16),$e(19,"fa-icon",15),W(),G(20,"a",17),$e(21,"fa-icon",15),W()(),G(22,"div",18)(23,"a",19),he(24," About "),W(),G(25,"mat-menu",null,20)(27,"a",21),he(28," About The GO "),W(),G(29,"a",22),he(30," About GO-CAM "),W()(),G(31,"a",19),he(32," Help "),W(),G(33,"mat-menu",null,23)(35,"a",24),he(36," Noctua User's Guide "),W()()(),G(37,"div",13),Ve(38,hKe,9,3,"button",25),G(39,"mat-menu",10,26)(41,"a",27),it("click",function(){return i.logout()}),he(42," Logout "),W()(),Ve(43,pKe,3,1,"div",1),W()(),G(44,"div",28)(45,"a",29),$e(46,"img",30),W()()()()),2&e){const r=Di(26),o=Di(34);K(1),oe("ngIf",i.announcement),K(1),oe("ngClass",k9(14,fKe,i.isDev,i.isBeta)),K(1),oe("ngIf",i.showLoadingBar),K(6),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(3),oe("ngIf",!i.isBeta&&!i.isDev),K(1),oe("ngIf",i.isDev||i.isBeta),K(4),oe("icon",ai(17,gKe)),K(2),oe("icon",ai(18,mKe)),K(2),oe("icon",ai(19,_Ke)),K(2),oe("matMenuTriggerFor",r),K(8),oe("matMenuTriggerFor",o),K(7),oe("ngIf",i.noctuaUserService.user),K(5),oe("ngIf",!i.noctuaUserService.user)}},directives:[Lr,kr,er,Vr,Er,Jl,r3,Qa,ec,Pv,Mo,Ov,ks,Zl,T1,sl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{position:relative;display:flex;flex:0 0 auto;z-index:4;border-bottom:2px solid #3b5998}[_nghost-%COMP%] .noc-logo-filler[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noc-logo-filler[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:30px}[_nghost-%COMP%] .noc-announcement[_ngcontent-%COMP%]{padding:0 10px 0 5px;height:50px;min-height:50px;max-height:50px;color:inherit;position:relative;padding:5px!important;margin-bottom:0!important}[_nghost-%COMP%] .noc-announcement[_ngcontent-%COMP%] noc-announcement-header[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:1000px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{padding:0 10px 0 5px;background-color:#fff;height:50px;min-height:50px;max-height:50px;color:inherit;position:relative}[_nghost-%COMP%] .mat-toolbar.noc-dev[_ngcontent-%COMP%]{background-color:#fad38a}[_nghost-%COMP%] .mat-toolbar.noc-beta[_ngcontent-%COMP%]{background-color:#fdcbbc}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;line-height:20px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#555}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-beta-logo[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:10px;font-style:italic}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row.noc-subtoolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px;height:30px;line-height:30px;padding-left:8px;padding-right:8px;font-size:12px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-apps-button[_ngcontent-%COMP%]{margin-right:12px;border-radius:0!important;height:50px;min-height:50px;max-height:50px;width:50px;min-width:50px;max-width:50px;line-height:55px;color:#3b5998}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-apps-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:30px;width:30px;min-width:30px;max-width:30px;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] .loading-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;width:100%}[_nghost-%COMP%] .noc-announcement-button[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px;height:50px;min-height:50px;max-height:50px;font-size:28px;color:#3b599880}[_nghost-%COMP%] .noc-announcement-button.noc-active[_ngcontent-%COMP%]{font-size:28px;color:#3b5998}[_nghost-%COMP%] .noc-announcement-button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:20px;height:20px;color:#fff;background-color:#2b463b;font-size:10px;text-align:center;line-height:20px}[_nghost-%COMP%] .noc-name-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;text-align:left;text-transform:initial;line-height:20px;font-size:12px}[_nghost-%COMP%] .noc-name-button[_ngcontent-%COMP%] .noc-info[_ngcontent-%COMP%]{margin-right:5px;max-width:150px;overflow:hidden}[_nghost-%COMP%] .noc-name-button[_ngcontent-%COMP%] .noc-info[_ngcontent-%COMP%] .noc-group-name[_ngcontent-%COMP%]{font-size:10px;color:#888}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%]{height:100%;padding:5px 0}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:40px}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-main-logo[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-sub-logo[_ngcontent-%COMP%]{cursor:pointer;font-size:20px;text-decoration:none!important;text-align:left;color:#555}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-main-logo[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-sub-logo[_ngcontent-%COMP%]:hover{color:#000}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-main-logo[_ngcontent-%COMP%]{margin-right:4px;font-weight:700}[_nghost-%COMP%] .noc-logo[_ngcontent-%COMP%] .noc-sub-logo[_ngcontent-%COMP%]{font-weight:400}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%]{padding:0 12px}[_nghost-%COMP%] .noc-login-button[_ngcontent-%COMP%]{background-color:#52a16c;color:#fff}[_nghost-%COMP%] .noc-create-button[_ngcontent-%COMP%]{background-color:#3b5998b3!important}']}),t})();function CKe(t,n){1&t&&$e(0,"router-outlet")}let bKe=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["noctua-content"]],decls:1,vars:1,consts:[[4,"ngIf"]],template:function(e,i){1&e&&Ve(0,CKe,1,0,"router-outlet",0),2&e&&oe("ngIf",!0)},directives:[er,FI],styles:["content{position:relative;display:flex;z-index:1;flex:1 0 auto}content>*:not(router-outlet){display:flex;flex:1 0 auto;width:100%;min-width:100%}\n"],encapsulation:2}),t})(),Yz=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["app-footer"]],decls:21,vars:0,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"footer"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","50%",1,"",2,"padding-left","0px"],[1,"mr-16"],["href","/",1,"",2,"color","white !important"],["href","http://help.geneontology.org","target","blank",1,"",2,"color","white !important"],["href","/docs/go-citation-policy/",1,"",2,"color","white !important"],["fxFlex",""],["fxFlex","40%",1,"",2,"text-align","right"],[1,""],["href"," http://www.obofoundry.org/","rel","external","title","Open Biological Ontologies","target","blank",1,"footer__link"],["href","https://projectreporter.nih.gov/project_info_details.cfm?aid=9209989","rel","external","title","National Human Genome Research Institute grant 2U41HG002273-17","target","blank",1,"footer__link"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),he(4,"Home"),W()(),G(5,"div",2)(6,"a",4),he(7,"Contact us"),W()(),G(8,"div",2)(9,"a",5),he(10,"Citation and Terms of Use"),W()()(),$e(11,"span",6),G(12,"div",7)(13,"small",8),he(14," Copyright \xa9 1999-2020 Member of the "),G(15,"a",9),he(16,"Open Biological Ontologies Foundry"),W(),he(17," The Gene Ontology Consortium is supported by a P41 grant from the National Human Genome Research Institute (NHGRI) [grant "),G(18,"a",10),he(19," U41 HG002273"),W(),he(20,"] "),W()()())},directives:[Lr,kr,Vr],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%] .footer[_ngcontent-%COMP%]{background:#1A237E;background:linear-gradient(to right,#0E2A3B 0%,#34306B 100%);padding:20px;color:#fff}']}),t})(),xKe=(()=>{class t{constructor(e){this._httpClient=e,this.date=new Date,this._unsubscribeAll=new z}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Xd))},t.\u0275cmp=En({type:t,selectors:[["quick-panel"]],decls:23,vars:12,consts:[["cdkFocusRegionStart","",1,"date"],["matSubheader","","cdkFocusInit",""],[1,"secondary-text","mat-display-1","mb-0","p-16"],[1,"mb-12"],["fxLayout","row","fxLayoutAlign","start start"],[1,"mat-subheading-1"],["cdkFocusRegionEnd",""],["matSubheader",""]],template:function(e,i){1&e&&(G(0,"mat-list",0)(1,"h3",1)(2,"span"),he(3,"Today"),W()(),G(4,"div",2)(5,"div",3),he(6),E0(7,"date"),W(),G(8,"div",4)(9,"span"),he(10),E0(11,"date"),W(),G(12,"span",5),he(13,"th"),W(),G(14,"span"),he(15),E0(16,"date"),W()()()(),$e(17,"mat-divider",6),G(18,"mat-list")(19,"h3",7)(20,"span"),he(21,"Events"),W()()(),$e(22,"mat-divider")),2&e&&(K(6),Ft(" ",Bw(7,3,i.date,"EEEE")," "),K(4),Ft(" ",Bw(11,6,i.date,"d"),""),K(5),Ft(" ",Bw(16,9,i.date,"MMMM"),""))},directives:[YNe,WNe,Lr,kr,qee],pipes:[d$],styles:["quick-panel{display:flex;width:280px;min-width:280px;max-width:280px;z-index:100;flex-direction:column}quick-panel .mat-slide-toggle-content{flex:1}\n"],encapsulation:2}),t})();const yKe=["leftSidenav"];function wKe(t,n){1&t&&$e(0,"noc-announcement-panel",10),2&t&&(He(),oe("sidenav",Di(3)))}function MKe(t,n){1&t&&$e(0,"noc-noctua-apps",10),2&t&&(He(),oe("sidenav",Di(3)))}function OKe(t,n){1&t&&$e(0,"app-footer",11)}function SKe(t,n){1&t&&$e(0,"quick-panel")}let PKe=(()=>{class t{constructor(e,i){this._noctuaConfigService=e,this.noctuaCommonMenuService=i,this.LeftPanel=$2,this._unsubscribeAll=new z}ngOnInit(){this._noctuaConfigService.config.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{this.noctuaConfig=e}),this.noctuaCommonMenuService.setLeftSidenav(this.leftSidenav)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(dO),de($c))},t.\u0275cmp=En({type:t,selectors:[["layout-noctua"]],viewQuery:function(e,i){if(1&e&&fr(yKe,7),2&e){let r;hi(r=pi())&&(i.leftSidenav=r.first)}},decls:14,vars:5,consts:[["id","noctua-main"],[1,"h-100-p",3,"ngSwitch"],["leftSidenav",""],[3,"sidenav",4,"ngSwitchCase"],["id","noctua-main-content"],[1,"above"],["id","wrapper"],[1,"content-wrapper"],["id","footer",4,"ngIf"],[4,"ngIf"],[3,"sidenav"],["id","footer"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"mat-sidenav-container")(2,"mat-sidenav",1,2),Ve(4,wKe,1,1,"noc-announcement-panel",3),Ve(5,MKe,1,1,"noc-noctua-apps",3),W(),G(6,"div",4),Qr(7),$e(8,"noctua-toolbar",5),Kr(),G(9,"div",6)(10,"div",7),$e(11,"noctua-content"),W()()()(),Ve(12,OKe,1,0,"app-footer",8),Ve(13,SKe,1,0,"quick-panel",9),W()),2&e&&(K(2),oe("ngSwitch",i.noctuaCommonMenuService.selectedLeftSidenav),K(2),oe("ngSwitchCase",i.LeftPanel.announcement),K(1),oe("ngSwitchCase",i.LeftPanel.apps),K(7),oe("ngIf",!1),K(1),oe("ngIf",!1))},directives:[mZ,gZ,V2,Ou,bQe,LQe,vKe,bKe,er,Yz,xKe],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}vertical-layout-1{display:flex;flex:1 1 auto;width:100%;height:100%}vertical-layout-1 #main{position:relative;display:flex;flex:1 1 auto;flex-direction:column;width:100%;height:100%;z-index:1}vertical-layout-1 #main.boxed{max-width:1200px;margin:0 auto;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}vertical-layout-1 #main>.container{position:relative;display:flex;flex:1 1 0%;width:100%;min-height:0;min-width:0}vertical-layout-1 #main>.container>.container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;min-width:0}vertical-layout-1 #main>.container>.container>.container{position:relative;display:flex;flex:1 1 0%;flex-direction:column;transform:translateZ(0);overflow-x:hidden;overflow-y:auto}vertical-layout-1 #main>.container>.container>.container content.inner-scroll{flex:1 1 0%;min-height:0}vertical-layout-1 #main>.container>.container>.container content.inner-scroll>*:not(router-outlet){flex:1 1 0%}\n'],encapsulation:2}),t})(),EKe=(()=>{class t{constructor(e,i,r,o,a,c,u){this.noctuaSplashScreen=e,this._renderer=i,this._elementRef=r,this.noctuaConfigService=o,this.noctuaUserService=a,this.platform=c,this.document=u,(this.platform.ANDROID||this.platform.IOS)&&(this.document.body.className+=" is-mobile"),this._unsubscribeAll=new z}onFocus(e){this.noctuaUserService.getUser()}ngOnInit(){this.noctuaConfigService.config.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{this.noctuaConfig=e})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}addClass(e){this._renderer.addClass(this._elementRef.nativeElement,e)}removeClass(e){this._renderer.removeClass(this._elementRef.nativeElement,e)}}return t.\u0275fac=function(e){return new(e||t)(de(NZ),de(Uc),de(gi),de(dO),de(uo),de(Ds),de(Xr))},t.\u0275cmp=En({type:t,selectors:[["noctua-root"]],hostBindings:function(e,i){1&e&&it("focus",function(o){return i.onFocus(o)},!1,F5)},decls:3,vars:0,template:function(e,i){1&e&&($e(0,"noctua-progress-bar"),Qr(1),$e(2,"layout-noctua"),Kr())},directives:[iQe,PKe],styles:['.ps__rail-x{top:3px;top:initial!important;bottom:0!important}i{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar{display:none!important;visibility:hidden}.noc-activity-create-dialog{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog noc-activity-form{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog,.noc-confirm-copy-model-dialog{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog{width:100%;min-width:100%;max-width:100%}}.noc-display-number{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea{resize:none!important;overflow:hidden}.mat-form-field .mat-form-field-wrapper{padding-bottom:0}.mat-form-field .mat-form-field-underline{bottom:0}.mat-form-field.noc-sm .mat-form-field-wrapper{font-size:12px}.mat-form-field.noc-sm textarea{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu .noc-menu-heading{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu .noc-item{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator .mat-paginator-page-size{align-items:center}.noc-paginator .mat-paginator-page-size-select{margin-top:-15px}.noc-paginator .mat-paginator-container{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container{width:100%;padding:20px}.noc-container{position:relative;width:1100px}.noc-container .noc-full-w{width:100%!important}.noc-breadcrumbs .noc-breadcrumb{font-size:20px;color:#777}.noc-breadcrumbs .noc-breadcrumb button{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs .noc-breadcrumb.noc-active{color:#000}.noc-breadcrumbs mat-icon{margin-left:10px;margin-right:10px}.angular-tree-component{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree{padding-left:0}.noc-tree .node-drop-slot{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree .tree-children:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree .tree-children{position:relative;padding-left:0;margin-left:16px}.noc-tree .tree-node-leaf{position:relative}.noc-tree .tree-node-leaf:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}#noctua-main{display:flex;flex-direction:column;width:100%;height:100%}#noctua-main>.mat-sidenav-container{display:flex;flex:1;overflow:auto}#noctua-main>.mat-sidenav-container>.mat-sidenav-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content{display:flex;flex:1;overflow:hidden;height:100vh}@media (max-width: 959px){#noctua-main>.mat-sidenav-container>.mat-sidenav-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content{height:auto!important}}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content{display:flex;flex:1;flex-direction:column;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper{display:flex;position:relative;flex:1;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper{display:flex;flex-direction:column;flex:1;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper noctua-content,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper noctua-content{position:relative;display:flex;flex:1;flex-direction:row;width:100%;overflow:hidden}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper noctua-content>*:not(router-outlet):not(.ps__scrollbar-x-rail):not(.ps__scrollbar-y-rail),#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper noctua-content>*:not(router-outlet):not(.ps__scrollbar-x-rail):not(.ps__scrollbar-y-rail){display:flex;flex:1;width:100%;min-width:100%}#noctua-main>.mat-sidenav-container>.mat-sidenav-content #noctua-main-content #wrapper .content-wrapper noctua-content>*.ng-animating .mat-tab-body,#noctua-main>.mat-sidenav-container>.mat-drawer-content #noctua-main-content #wrapper .content-wrapper noctua-content>*.ng-animating .mat-tab-body{height:100vh}#noctua-main[noctua-layout-mode=boxed]{max-width:1200px;margin:0 auto;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.active{background-color:#777577}#footer{background:#efefef;height:10%}\n'],encapsulation:2}),t})(),TKe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,Kp,Nu,em,uS,A1]]}),t})(),AKe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[G2,A1]]}),t})(),RC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[G2,A1]]}),t})(),DKe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[nR,YO,KO,A1]]}),t})(),LKe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[],imports:[[G2,Nu,Kp,Gv,vO,MR,A1]]}),t})(),kKe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[nR,YO,KO,A1]]}),t})(),koe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[G2,A1,AKe,RC,DKe,LKe,kKe,TKe]]}),t})(),IKe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[koe],koe]}),t})();var Uz=function(t,n){return(Uz=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])})(t,n)};function Ioe(t,n){function e(){this.constructor=t}Uz(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var K2=function(){return K2=Object.assign||function(n){for(var e,i=1,r=arguments.length;i0)&&!(r=i.next()).done;)o.push(r.value)}catch(c){a={error:c}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return o}function jz(){for(var t=[],n=0;n2&&x3("box");var e=k_(n);return new b4(t,bP(e),e.name,!0,e.equals)},shallowBox:function(t,n){return arguments.length>2&&x3("shallowBox"),Ka.box(t,{name:n,deep:!1})},array:function(t,n){arguments.length>2&&x3("array");var e=k_(n);return new w3(t,bP(e),e.name)},shallowArray:function(t,n){return arguments.length>2&&x3("shallowArray"),Ka.array(t,{name:n,deep:!1})},map:function(t,n){arguments.length>2&&x3("map");var e=k_(n);return new TP(t,bP(e),e.name)},shallowMap:function(t,n){return arguments.length>2&&x3("shallowMap"),Ka.map(t,{name:n,deep:!1})},set:function(t,n){arguments.length>2&&x3("set");var e=k_(n);return new DP(t,bP(e),e.name)},object:function(t,n,e){"string"==typeof arguments[1]&&x3("object");var i=k_(e);return dae({},t,n,i)},shallowObject:function(t,n){return"string"==typeof arguments[1]&&x3("shallowObject"),Ka.object(t,{},{name:n,deep:!1})},ref:Yoe,shallow:ZKe,deep:Jz,struct:JKe},Ka=function eZe(t,n,e){if("string"==typeof arguments[1])return Jz.apply(null,arguments);if(EP(t))return t;var i=A_(t)?Ka.object(t,n,e):Array.isArray(t)?Ka.array(t,n):D_(t)?Ka.map(t,n):FC(t)?Ka.set(t,n):t;if(i!==t)return i;ca(!1)};function x3(t){ca("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}Object.keys(Uoe).forEach(function(t){return Ka[t]=Uoe[t]});var xP=Voe(!1,function(t,n,e,i,r){!function UZe(t,n,e){var i=lF(t);e.name=i.name+"."+n,e.context=t,i.values[n]=new x4(e),Object.defineProperty(t,n,function WZe(t){return yae[t]||(yae[t]={configurable:Qi.computedConfigurable,enumerable:!1,get:function(){return wae(this).read(this,t)},set:function(n){wae(this).write(this,t,n)}})}(n))}(t,n,K2({get:e.get,set:e.set},r[0]||{}))}),tZe=xP({equals:L_.structural}),fl=function(n,e,i){if("string"==typeof e||null!==n&&"object"==typeof n&&1===arguments.length)return xP.apply(null,arguments);var r="object"==typeof e?e:{};return r.get=n,r.set="function"==typeof e?e:r.set,r.name=r.name||n.name||"",new x4(r)};fl.struct=tZe;var Za=(()=>{return(t=Za||(Za={}))[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE",Za;var t})(),Gu=(()=>{return(t=Gu||(Gu={}))[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK",Gu;var t})(),yP=function t(n){this.cause=n};function GC(t){return t instanceof yP}function eF(t){switch(t.dependenciesState){case Za.UP_TO_DATE:return!1;case Za.NOT_TRACKING:case Za.STALE:return!0;case Za.POSSIBLY_STALE:for(var n=I_(),e=t.observing,i=e.length,r=0;r0;Qi.computationDepth>0&&n&&ca(!1),!Qi.allowStateChanges&&(n||"strict"===Qi.enforceActions)&&ca(!1)}function joe(t,n,e){var i=qoe(!0);$oe(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++Qi.runId;var o,r=Qi.trackingDerivation;if(Qi.trackingDerivation=t,!0===Qi.disableErrorBoundaries)o=n.call(e);else try{o=n.call(e)}catch(a){o=new yP(a)}return Qi.trackingDerivation=r,function nZe(t){for(var n=t.observing,e=t.observing=t.newObserving,i=Za.UP_TO_DATE,r=0,o=t.unboundDepsCount,a=0;ai&&(i=c.dependenciesState);for(e.length=r,t.newObserving=null,o=n.length;o--;)0===(c=n[o]).diffValue&&Joe(c,t),c.diffValue=0;for(;r--;){var c;1===(c=e[r]).diffValue&&(c.diffValue=0,dZe(c,t))}i!==Za.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}(t),Xoe(i),o}function tF(t){var n=t.observing;t.observing=[];for(var e=n.length;e--;)Joe(n[e],t);t.dependenciesState=Za.NOT_TRACKING}function Woe(t){var n=I_(),e=t();return v4(n),e}function I_(){var t=Qi.trackingDerivation;return Qi.trackingDerivation=null,t}function v4(t){Qi.trackingDerivation=t}function qoe(t){var n=Qi.allowStateReads;return Qi.allowStateReads=t,n}function Xoe(t){Qi.allowStateReads=t}function $oe(t){if(t.dependenciesState!==Za.UP_TO_DATE){t.dependenciesState=Za.UP_TO_DATE;for(var n=t.observing,e=n.length;e--;)n[e].lowestObserverState=Za.UP_TO_DATE}}var MP=0,iZe=1;function C4(t,n){var e=function(){return Qoe(t,n,this,arguments)};return e.isMobxAction=!0,e}function Qoe(t,n,e,i){var r=function rZe(t,n,e){var i=F1()&&!!t,r=0;if(i){r=Date.now();var o=e&&e.length||0,a=new Array(o);if(o>0)for(var c=0;c0&&!t.__mobxGlobals&&(OP=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new YC).version&&(OP=!1),OP?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new YC):(setTimeout(function(){ca("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new YC));function dZe(t,n){var e=t.observers.length;e&&(t.observersIndexes[n.__mapid]=e),t.observers[e]=n,t.lowestObserverState>n.dependenciesState&&(t.lowestObserverState=n.dependenciesState)}function Joe(t,n){if(1===t.observers.length)t.observers.length=0,eae(t);else{var e=t.observers,i=t.observersIndexes,r=e.pop();if(r!==n){var o=i[n.__mapid]||0;o?i[r.__mapid]=o:delete i[r.__mapid],e[o]=r}delete i[n.__mapid]}}function eae(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,Qi.pendingUnobservations.push(t))}function Bh(){Qi.inBatch++}function Gh(){if(0==--Qi.inBatch){oae();for(var t=Qi.pendingUnobservations,n=0;n0&&eae(t),!1)}function nae(t,n){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+n.name+"'"),t.isTracing===Gu.BREAK){var e=[];iae(function MZe(t,n){return uae(qh(t,n))}(t),e,1),new Function("debugger;\n/*\nTracing '"+t.name+"'\n\nYou are entering this break point because derivation '"+t.name+"' is being traced and '"+n.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(t instanceof x4?t.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+e.join("\n")+"\n*/\n ")()}}function iae(t,n,e){n.length>=1e3?n.push("(and many more)"):(n.push(""+new Array(e).join("\t")+t.name),t.dependencies&&t.dependencies.forEach(function(i){return iae(i,n,e+1)}))}var SP=function(){function t(n,e,i,r){void 0===n&&(n="Reaction@"+Z2()),void 0===r&&(r=!1),this.name=n,this.onInvalidate=e,this.errorHandler=i,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=Za.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+Z2(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Gu.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Qi.pendingReactions.push(this),oae())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(Bh(),this._isScheduled=!1,eF(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&F1()&&Sm({name:this.name,type:"scheduled-reaction"})}catch(n){this.reportExceptionInDerivation(n)}}Gh()}},t.prototype.track=function(n){Bh();var i,e=F1();e&&(i=Date.now(),Yh({name:this.name,type:"reaction"})),this._isRunning=!0;var r=joe(this,n,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&tF(this),GC(r)&&this.reportExceptionInDerivation(r.cause),e&&Uh({time:Date.now()-i}),Gh()},t.prototype.reportExceptionInDerivation=function(n){var e=this;if(this.errorHandler)this.errorHandler(n,this);else{if(Qi.disableErrorBoundaries)throw n;var i="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";Qi.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(i,n),F1()&&Sm({type:"error",name:this.name,message:i,error:""+n}),Qi.globalReactionErrorHandlers.forEach(function(r){return r(n,e)})}},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Bh(),tF(this),Gh()))},t.prototype.getDisposer=function(){var n=this.dispose.bind(this);return n.$mobx=this,n},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(n){void 0===n&&(n=!1),function kZe(){for(var t=[],n=0;n0||Qi.isRunningReactions||function(t){t()}(fZe)}function fZe(){Qi.isRunningReactions=!0;for(var t=Qi.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+t[0]),t.splice(0));for(var e=t.splice(0),i=0,r=e.length;i",n):2===arguments.length&&"function"==typeof e?C4(n,e):1===arguments.length&&"string"==typeof n?aae(n):!0!==r?aae(e).apply(null,arguments):void(n[e]=C4(n.name||e,i.value))};function oF(t,n,e){Mm(t,n,C4(n,e.bind(t)))}function UC(t,n){void 0===n&&(n=Wz);var r,e=n&&n.name||t.name||"Autorun@"+Z2();if(n.scheduler||n.delay){var o=sae(n),a=!1;r=new SP(e,function(){a||(a=!0,o(function(){a=!1,r.isDisposed||r.track(c)}))},n.onError,n.requiresObservable)}else r=new SP(e,function(){this.track(c)},n.onError,n.requiresObservable);function c(){t(r)}return r.schedule(),r.getDisposer()}La.bound=function bZe(t,n,e,i){return!0===i?(oF(t,n,e.value),null):e?{configurable:!0,enumerable:!1,get:function(){return oF(this,n,e.value||e.initializer.call(this)),this[n]},set:vZe}:{enumerable:!1,configurable:!0,set:function(r){oF(this,n,r)},get:function(){}}};var xZe=function(t){return t()};function sae(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:xZe}function R_(t,n,e){void 0===e&&(e=Wz),"boolean"==typeof e&&(e={fireImmediately:e});var f,i=e.name||"Reaction@"+Z2(),r=La(i,e.onError?function yZe(t,n){return function(){try{return n.apply(this,arguments)}catch(e){t.call(this,e)}}}(e.onError,n):n),o=!e.scheduler&&!e.delay,a=sae(e),c=!0,u=!1,w=e.compareStructural?L_.structural:e.equals||L_.default,E=new SP(i,function(){c||o?B():u||(u=!0,a(B))},e.onError,e.requiresObservable);function B(){if(u=!1,!E.isDisposed){var Z=!1;E.track(function(){var ee=t(E);Z=c||!w(f,ee),f=ee}),c&&e.fireImmediately&&r(f,E),!c&&!0===Z&&r(f,E),c&&(c=!1)}}return E.schedule(),E.getDisposer()}function cae(t,n,e){return lae("onBecomeUnobserved",t,n,e)}function lae(t,n,e,i){var r="function"==typeof i?qh(n,e):qh(n),o="function"==typeof i?i:e,a=r[t];return"function"!=typeof a?ca(!1):(r[t]=function(){a.call(this),o.call(this)},function(){r[t]=a})}function dae(t,n,e,i){var o=(i=k_(i)).defaultDecorator||(!1===i.deep?Yoe:Jz);Om(t),lF(t,i.name,o.enhancer),Bh();try{for(var r in n){var a=Object.getOwnPropertyDescriptor(n,r),u=(e&&r in e?e[r]:a.get?xP:o)(t,r,a,!0);u&&Object.defineProperty(t,r,u)}}finally{Gh()}return t}function uae(t){var n={name:t.name};return t.observing&&t.observing.length>0&&(n.dependencies=function zKe(t){var n=[];return t.forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n}(t.observing).map(uae)),n}function gae(t,n){if(null==t)return!1;if(void 0!==n){if(kd(t)){var e=t.$mobx;return e.values&&!!e.values[n]}return!1}return kd(t)||!!t.$mobx||Zz(t)||PP(t)||N_(t)}function EP(t){return 1!==arguments.length&&ca(!1),gae(t)}function IZe(t){switch(t.length){case 0:return Qi.trackingDerivation;case 1:return qh(t[0]);case 2:return qh(t[0],t[1])}}function y3(t,n){void 0===n&&(n=void 0),Bh();try{return t.apply(n)}finally{Gh()}}function W0(t){return void 0!==t.interceptors&&t.interceptors.length>0}function WC(t,n){var e=t.interceptors||(t.interceptors=[]);return e.push(n),qz(function(){var i=e.indexOf(n);-1!==i&&e.splice(i,1)})}function q0(t,n){var e=I_();try{var i=t.interceptors;if(i)for(var r=0,o=i.length;r0}function qC(t,n){var e=t.changeListeners||(t.changeListeners=[]);return e.push(n),qz(function(){var i=e.indexOf(n);-1!==i&&e.splice(i,1)})}function Wh(t,n){var e=I_(),i=t.changeListeners;if(i){for(var r=0,o=(i=i.slice()).length;r0?n.map(this.dehancer):n},t.prototype.intercept=function(n){return WC(this,n)},t.prototype.observe=function(n,e){return void 0===e&&(e=!1),e&&n({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),qC(this,n)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.prototype.setArrayLength=function(n){if("number"!=typeof n||n<0)throw new Error("[mobx.array] Out of range: "+n);var e=this.values.length;if(n!==e)if(n>e){for(var i=new Array(n-e),r=0;r0&&n+e+1>aF&&cF(n+e+1)},t.prototype.spliceWithArray=function(n,e,i){var r=this;wP(this.atom);var o=this.values.length;if(void 0===n?n=0:n>o?n=o:n<0&&(n=Math.max(0,o+n)),e=1===arguments.length?o-n:null==e?0:Math.max(0,Math.min(e,o-n)),void 0===i&&(i=mP),W0(this)){var a=q0(this,{object:this.array,type:"splice",index:n,removedCount:e,added:i});if(!a)return mP;e=a.removedCount,i=a.added}var c=(i=0===i.length?i:i.map(function(f){return r.enhancer(f,void 0)})).length-e;this.updateArrayLength(o,c);var u=this.spliceItemsIntoValues(n,e,i);return(0!==e||0!==i.length)&&this.notifyArraySplice(n,i,u),this.dehanceValues(u)},t.prototype.spliceItemsIntoValues=function(n,e,i){var r;if(i.length<1e4)return(r=this.values).splice.apply(r,jz([n,e],i));var o=this.values.slice(n,n+e);return this.values=this.values.slice(0,n).concat(i,this.values.slice(n+e)),o},t.prototype.notifyArrayChildUpdate=function(n,e,i){var r=!this.owned&&F1(),o=jh(this),a=o||r?{object:this.array,type:"update",index:n,newValue:e,oldValue:i}:null;r&&Yh(K2({},a,{name:this.atom.name})),this.atom.reportChanged(),o&&Wh(this,a),r&&Uh()},t.prototype.notifyArraySplice=function(n,e,i){var r=!this.owned&&F1(),o=jh(this),a=o||r?{object:this.array,type:"splice",index:n,removed:i,added:e,removedCount:i.length,addedCount:e.length}:null;r&&Yh(K2({},a,{name:this.atom.name})),this.atom.reportChanged(),o&&Wh(this,a),r&&Uh()},t}(),w3=function(t){function n(e,i,r,o){void 0===r&&(r="ObservableArray@"+Z2()),void 0===o&&(o=!1);var a=t.call(this)||this,c=new _ae(r,i,a,o);if(zC(a,"$mobx",c),e&&e.length){var u=nF(!0);a.spliceWithArray(0,0,e),iF(u)}return zZe&&Object.defineProperty(c.array,"0",HZe),a}return Ioe(n,t),n.prototype.intercept=function(e){return this.$mobx.intercept(e)},n.prototype.observe=function(e,i){return void 0===i&&(i=!1),this.$mobx.observe(e,i)},n.prototype.clear=function(){return this.splice(0)},n.prototype.concat=function(){for(var e=[],i=0;i-1&&(this.splice(i,1),!0)},n.prototype.move=function(e,i){function r(c){if(c<0)throw new Error("[mobx.array] Index out of bounds: "+c+" is negative");var u=this.$mobx.values.length;if(c>=u)throw new Error("[mobx.array] Index out of bounds: "+c+" is not smaller than "+u)}if(r.call(this,e),r.call(this,i),e!==i){var a,o=this.$mobx.values;a=e{class t{constructor(e,i){this.templateRef=e,this.viewContainer=i,this.templateBindings={}}ngOnInit(){this.view=this.viewContainer.createEmbeddedView(this.templateRef),this.dispose&&this.dispose(),this.shouldDetach()&&this.view.detach(),this.autoDetect(this.view)}shouldDetach(){return this.treeMobxAutorun&&this.treeMobxAutorun.detach}autoDetect(e){this.dispose=UC(()=>e.detectChanges())}ngOnDestroy(){this.dispose&&this.dispose()}}return t.\u0275fac=function(e){return new(e||t)(de(Ks),de(As))},t.\u0275dir=nn({type:t,selectors:[["","treeMobxAutorun",""]],inputs:{treeMobxAutorun:"treeMobxAutorun"}}),t})();const t1={TOGGLE_ACTIVE:(t,n,e)=>n&&n.toggleActivated(),TOGGLE_ACTIVE_MULTI:(t,n,e)=>n&&n.toggleActivated(!0),TOGGLE_SELECTED:(t,n,e)=>n&&n.toggleSelected(),ACTIVATE:(t,n,e)=>n.setIsActive(!0),DEACTIVATE:(t,n,e)=>n.setIsActive(!1),SELECT:(t,n,e)=>n.setIsSelected(!0),DESELECT:(t,n,e)=>n.setIsSelected(!1),FOCUS:(t,n,e)=>n.focus(),TOGGLE_EXPANDED:(t,n,e)=>n.hasChildren&&n.toggleExpanded(),EXPAND:(t,n,e)=>n.expand(),COLLAPSE:(t,n,e)=>n.collapse(),DRILL_DOWN:(t,n,e)=>t.focusDrillDown(),DRILL_UP:(t,n,e)=>t.focusDrillUp(),NEXT_NODE:(t,n,e)=>t.focusNextNode(),PREVIOUS_NODE:(t,n,e)=>t.focusPreviousNode(),MOVE_NODE:(t,n,e,{from:i,to:r})=>{e.ctrlKey?t.copyNode(i,r):t.moveNode(i,r)}},V_={mouse:{click:t1.TOGGLE_ACTIVE,dblClick:null,contextMenu:null,expanderClick:t1.TOGGLE_EXPANDED,checkboxClick:t1.TOGGLE_SELECTED,drop:t1.MOVE_NODE},keys:{39:t1.DRILL_DOWN,37:t1.DRILL_UP,40:t1.NEXT_NODE,38:t1.PREVIOUS_NODE,32:t1.TOGGLE_ACTIVE,13:t1.TOGGLE_ACTIVE}};class Eae{constructor(n={}){var e,i,r,o,a,c,u,f,w,E,B,Z,ee,be,_e,Pe,Ie,ge,Re,Ye,Je,gt,ft,_t,Yt,tn,_n,Wt,An,Gn,bn,Kn,fi,oi,wi,Li,Ai,$i,Yn,mo,dr,Si,bo,ni,vi,zi,Dn,bi,Mi,Yi,_r,tr,Rr,Os,Ss,u1,pc,zs,pp,sd;this.options=n,this.actionMapping={mouse:{click:null!==(o=null===(r=null===(i=null===(e=this.options)||void 0===e?void 0:e.actionMapping)||void 0===i?void 0:i.mouse)||void 0===r?void 0:r.click)&&void 0!==o?o:V_.mouse.click,dblClick:null!==(f=null===(u=null===(c=null===(a=this.options)||void 0===a?void 0:a.actionMapping)||void 0===c?void 0:c.mouse)||void 0===u?void 0:u.dblClick)&&void 0!==f?f:V_.mouse.dblClick,contextMenu:null!==(Z=null===(B=null===(E=null===(w=this.options)||void 0===w?void 0:w.actionMapping)||void 0===E?void 0:E.mouse)||void 0===B?void 0:B.contextMenu)&&void 0!==Z?Z:V_.mouse.contextMenu,expanderClick:null!==(Pe=null===(_e=null===(be=null===(ee=this.options)||void 0===ee?void 0:ee.actionMapping)||void 0===be?void 0:be.mouse)||void 0===_e?void 0:_e.expanderClick)&&void 0!==Pe?Pe:V_.mouse.expanderClick,checkboxClick:null!==(Ye=null===(Re=null===(ge=null===(Ie=this.options)||void 0===Ie?void 0:Ie.actionMapping)||void 0===ge?void 0:ge.mouse)||void 0===Re?void 0:Re.checkboxClick)&&void 0!==Ye?Ye:V_.mouse.checkboxClick,drop:null!==(_t=null===(ft=null===(gt=null===(Je=this.options)||void 0===Je?void 0:Je.actionMapping)||void 0===gt?void 0:gt.mouse)||void 0===ft?void 0:ft.drop)&&void 0!==_t?_t:V_.mouse.drop,dragStart:null!==(Wt=null===(_n=null===(tn=null===(Yt=this.options)||void 0===Yt?void 0:Yt.actionMapping)||void 0===tn?void 0:tn.mouse)||void 0===_n?void 0:_n.dragStart)&&void 0!==Wt?Wt:void 0,drag:null!==(Kn=null===(bn=null===(Gn=null===(An=this.options)||void 0===An?void 0:An.actionMapping)||void 0===Gn?void 0:Gn.mouse)||void 0===bn?void 0:bn.drag)&&void 0!==Kn?Kn:void 0,dragEnd:null!==(Li=null===(wi=null===(oi=null===(fi=this.options)||void 0===fi?void 0:fi.actionMapping)||void 0===oi?void 0:oi.mouse)||void 0===wi?void 0:wi.dragEnd)&&void 0!==Li?Li:void 0,dragOver:null!==(mo=null===(Yn=null===($i=null===(Ai=this.options)||void 0===Ai?void 0:Ai.actionMapping)||void 0===$i?void 0:$i.mouse)||void 0===Yn?void 0:Yn.dragOver)&&void 0!==mo?mo:void 0,dragLeave:null!==(ni=null===(bo=null===(Si=null===(dr=this.options)||void 0===dr?void 0:dr.actionMapping)||void 0===Si?void 0:Si.mouse)||void 0===bo?void 0:bo.dragLeave)&&void 0!==ni?ni:void 0,dragEnter:null!==(bi=null===(Dn=null===(zi=null===(vi=this.options)||void 0===vi?void 0:vi.actionMapping)||void 0===zi?void 0:zi.mouse)||void 0===Dn?void 0:Dn.dragEnter)&&void 0!==bi?bi:void 0,mouseOver:null!==(tr=null===(_r=null===(Yi=null===(Mi=this.options)||void 0===Mi?void 0:Mi.actionMapping)||void 0===Yi?void 0:Yi.mouse)||void 0===_r?void 0:_r.mouseOver)&&void 0!==tr?tr:void 0,mouseOut:null!==(u1=null===(Ss=null===(Os=null===(Rr=this.options)||void 0===Rr?void 0:Rr.actionMapping)||void 0===Os?void 0:Os.mouse)||void 0===Ss?void 0:Ss.mouseOut)&&void 0!==u1?u1:void 0},keys:{39:t1.DRILL_DOWN,37:t1.DRILL_UP,40:t1.NEXT_NODE,38:t1.PREVIOUS_NODE,32:t1.TOGGLE_ACTIVE,13:t1.TOGGLE_ACTIVE}},(null===(zs=null===(pc=this.options)||void 0===pc?void 0:pc.actionMapping)||void 0===zs?void 0:zs.keys)&&(this.actionMapping.keys=Object.assign(Object.assign({},this.actionMapping.keys),this.options.actionMapping.keys)),n.rtl&&(this.actionMapping.keys[39]=(null===(pp=n.actionMapping)||void 0===pp?void 0:pp.keys[39])||t1.DRILL_UP,this.actionMapping.keys[37]=(null===(sd=n.actionMapping)||void 0===sd?void 0:sd.keys[37])||t1.DRILL_DOWN)}get hasChildrenField(){return this.options.hasChildrenField||"hasChildren"}get childrenField(){return this.options.childrenField||"children"}get displayField(){return this.options.displayField||"name"}get idField(){return this.options.idField||"id"}get isExpandedField(){return this.options.isExpandedField||"isExpanded"}get getChildren(){return this.options.getChildren}get levelPadding(){return this.options.levelPadding||0}get useVirtualScroll(){return this.options.useVirtualScroll}get animateExpand(){return this.options.animateExpand}get animateSpeed(){return this.options.animateSpeed||1}get animateAcceleration(){return this.options.animateAcceleration||1.2}get scrollOnActivate(){return void 0===this.options.scrollOnActivate||this.options.scrollOnActivate}get rtl(){return!!this.options.rtl}get rootId(){return this.options.rootId}get useCheckbox(){return this.options.useCheckbox}get useTriState(){return void 0===this.options.useTriState||this.options.useTriState}get scrollContainer(){return this.options.scrollContainer}get allowDragoverStyling(){return void 0===this.options.allowDragoverStyling||this.options.allowDragoverStyling}getNodeClone(n){if(this.options.getNodeClone)return this.options.getNodeClone(n);const e=Object.assign({},n.data);return e.id&&delete e.id,e}allowDrop(n,e,i){return this.options.allowDrop instanceof Function?this.options.allowDrop(n,e,i):void 0===this.options.allowDrop||this.options.allowDrop}allowDrag(n){return this.options.allowDrag instanceof Function?this.options.allowDrag(n):this.options.allowDrag}nodeClass(n){return this.options.nodeClass?this.options.nodeClass(n):""}nodeHeight(n){if(n.data.virtual)return 0;let e=this.options.nodeHeight||22;return"function"==typeof e&&(e=e(n)),e+(0===n.index?2:1)*this.dropSlotHeight}get dropSlotHeight(){return"number"==typeof this.options.dropSlotHeight?this.options.dropSlotHeight:2}}const Qc={toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",nodeActivate:"nodeActivate",nodeDeactivate:"nodeDeactivate",select:"select",deselect:"deselect",focus:"focus",blur:"blur",initialized:"initialized",updateData:"updateData",moveNode:"moveNode",copyNode:"copyNode",event:"event",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",stateChange:"stateChange"};var d2=function(t,n,e,i){var a,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(o=(r<3?a(o):r>3?a(n,e,o):a(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o},fs=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let Tae=(()=>{class t{constructor(e,i,r,o){this.data=e,this.parent=i,this.treeModel=r,this.position=0,this.allowDrop=(a,c)=>this.options.allowDrop(a,{parent:this,index:0},c),this.allowDragoverStyling=()=>this.options.allowDragoverStyling,null==this.id&&(this.id=function PJe(){return Math.floor(1e13*Math.random())}()),this.index=o,this.getField("children")&&this._initChildren(),this.autoLoadChildren()}get isHidden(){return this.treeModel.isHidden(this)}get isExpanded(){return this.treeModel.isExpanded(this)}get isActive(){return this.treeModel.isActive(this)}get isFocused(){return this.treeModel.isNodeFocused(this)}get isSelected(){return this.isSelectable()?this.treeModel.isSelected(this):this.children.some(e=>e.isSelected)}get isAllSelected(){return this.isSelectable()?this.treeModel.isSelected(this):this.children.every(e=>e.isAllSelected)}get isPartiallySelected(){return this.isSelected&&!this.isAllSelected}get level(){return this.parent?this.parent.level+1:0}get path(){return this.parent?[...this.parent.path,this.id]:[]}get elementRef(){throw"Element Ref is no longer supported since introducing virtual scroll\n\n You may use a template to obtain a reference to the element"}get originalNode(){return this._originalNode}get hasChildren(){return!!(this.getField("hasChildren")||this.children&&this.children.length>0)}get isCollapsed(){return!this.isExpanded}get isLeaf(){return!this.hasChildren}get isRoot(){return this.parent.data.virtual}get realParent(){return this.isRoot?null:this.parent}get options(){return this.treeModel.options}fireEvent(e){this.treeModel.fireEvent(e)}get displayField(){return this.getField("display")}get id(){return this.getField("id")}set id(e){this.setField("id",e)}getField(e){return this.data[this.options[`${e}Field`]]}setField(e,i){this.data[this.options[`${e}Field`]]=i}_findAdjacentSibling(e,i=!1){const r=this._getParentsChildren(i),o=r.indexOf(this);return r.length>o+e?r[o+e]:null}findNextSibling(e=!1){return this._findAdjacentSibling(1,e)}findPreviousSibling(e=!1){return this._findAdjacentSibling(-1,e)}getVisibleChildren(){return this.visibleChildren}get visibleChildren(){return(this.children||[]).filter(e=>!e.isHidden)}getFirstChild(e=!1){let i=e?this.visibleChildren:this.children;return null!=i&&i.length?i[0]:null}getLastChild(e=!1){let i=e?this.visibleChildren:this.children;return null!=i&&i.length?i[i.length-1]:null}findNextNode(e=!0,i=!1){return e&&this.isExpanded&&this.getFirstChild(i)||this.findNextSibling(i)||this.parent&&this.parent.findNextNode(!1,i)}findPreviousNode(e=!1){let i=this.findPreviousSibling(e);return i?i._getLastOpenDescendant(e):this.realParent}_getLastOpenDescendant(e=!1){const i=this.getLastChild(e);return this.isCollapsed||!i?this:i._getLastOpenDescendant(e)}_getParentsChildren(e=!1){return this.parent&&(e?this.parent.getVisibleChildren():this.parent.children)||[]}getIndexInParent(e=!1){return this._getParentsChildren(e).indexOf(this)}isDescendantOf(e){return this===e||this.parent&&this.parent.isDescendantOf(e)}getNodePadding(){return this.options.levelPadding*(this.level-1)+"px"}getClass(){return[this.options.nodeClass(this),`tree-node-level-${this.level}`].join(" ")}onDrop(e){this.mouseAction("drop",e.event,{from:e.element,to:{parent:this,index:0,dropOnNode:!0}})}allowDrag(){return this.options.allowDrag(this)}loadNodeChildren(){return this.options.getChildren?Promise.resolve(this.options.getChildren(this)).then(e=>{e&&(this.setField("children",e),this._initChildren(),this.options.useTriState&&this.treeModel.isSelected(this)&&this.setIsSelected(!0),this.children.forEach(i=>{i.getField("isExpanded")&&i.hasChildren&&i.expand()}))}).then(()=>{this.fireEvent({eventName:Qc.loadNodeChildren,node:this})}):Promise.resolve()}expand(){return this.isExpanded||this.toggleExpanded(),this}collapse(){return this.isExpanded&&this.toggleExpanded(),this}doForAll(e){Promise.resolve(e(this)).then(()=>{this.children&&this.children.forEach(i=>i.doForAll(e))})}expandAll(){this.doForAll(e=>e.expand())}collapseAll(){this.doForAll(e=>e.collapse())}ensureVisible(){return this.realParent&&(this.realParent.expand(),this.realParent.ensureVisible()),this}toggleExpanded(){return this.setIsExpanded(!this.isExpanded),this}setIsExpanded(e){return this.hasChildren&&this.treeModel.setExpandedNode(this,e),this}autoLoadChildren(){this.handler=R_(()=>this.isExpanded,e=>{!this.children&&this.hasChildren&&e&&this.loadNodeChildren()},{fireImmediately:!0})}dispose(){this.children&&this.children.forEach(e=>e.dispose()),this.handler&&this.handler(),this.parent=null,this.children=null}setIsActive(e,i=!1){return this.treeModel.setActiveNode(this,e,i),e&&this.focus(this.options.scrollOnActivate),this}isSelectable(){return this.isLeaf||!this.children||!this.options.useTriState}setIsSelected(e){return this.isSelectable()?this.treeModel.setSelectedNode(this,e):this.visibleChildren.forEach(i=>i.setIsSelected(e)),this}toggleSelected(){return this.setIsSelected(!this.isSelected),this}toggleActivated(e=!1){return this.setIsActive(!this.isActive,e),this}setActiveAndVisible(e=!1){return this.setIsActive(!0,e).ensureVisible(),setTimeout(this.scrollIntoView.bind(this)),this}scrollIntoView(e=!1){this.treeModel.virtualScroll.scrollIntoView(this,e)}focus(e=!0){let i=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(this),e&&this.scrollIntoView(),i&&this.fireEvent({eventName:Qc.blur,node:i}),this.fireEvent({eventName:Qc.focus,node:this}),this}blur(){let e=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(null),e&&this.fireEvent({eventName:Qc.blur,node:this}),this}setIsHidden(e){this.treeModel.setIsHidden(this,e)}hide(){this.setIsHidden(!0)}show(){this.setIsHidden(!1)}mouseAction(e,i,r=null){this.treeModel.setFocus(!0);const a=this.options.actionMapping.mouse[e];a&&a(this.treeModel,this,i,r)}getSelfHeight(){return this.options.nodeHeight(this)}_initChildren(){this.children=this.getField("children").map((e,i)=>new t(e,this,this.treeModel,i))}}return d2([fl,fs("design:type",Object),fs("design:paramtypes",[])],t.prototype,"isHidden",null),d2([fl,fs("design:type",Object),fs("design:paramtypes",[])],t.prototype,"isExpanded",null),d2([fl,fs("design:type",Object),fs("design:paramtypes",[])],t.prototype,"isActive",null),d2([fl,fs("design:type",Object),fs("design:paramtypes",[])],t.prototype,"isFocused",null),d2([fl,fs("design:type",Object),fs("design:paramtypes",[])],t.prototype,"isSelected",null),d2([fl,fs("design:type",Object),fs("design:paramtypes",[])],t.prototype,"isAllSelected",null),d2([fl,fs("design:type",Object),fs("design:paramtypes",[])],t.prototype,"isPartiallySelected",null),d2([Ka,fs("design:type",Array)],t.prototype,"children",void 0),d2([Ka,fs("design:type",Number)],t.prototype,"index",void 0),d2([Ka,fs("design:type",Object)],t.prototype,"position",void 0),d2([Ka,fs("design:type",Number)],t.prototype,"height",void 0),d2([fl,fs("design:type",Number),fs("design:paramtypes",[])],t.prototype,"level",null),d2([fl,fs("design:type",Array),fs("design:paramtypes",[])],t.prototype,"path",null),d2([fl,fs("design:type",Object),fs("design:paramtypes",[])],t.prototype,"visibleChildren",null),d2([La,fs("design:type",Function),fs("design:paramtypes",[Object]),fs("design:returntype",void 0)],t.prototype,"setIsSelected",null),d2([La,fs("design:type",Function),fs("design:paramtypes",[]),fs("design:returntype",void 0)],t.prototype,"_initChildren",null),t})();var Ja=function(t,n,e,i){var a,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(o=(r<3?a(o):r>3?a(n,e,o):a(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o},Zi=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let ka=(()=>{class t{constructor(){this.options=new Eae,this.eventNames=Object.keys(Qc),this.expandedNodeIds={},this.selectedLeafNodeIds={},this.activeNodeIds={},this.hiddenNodeIds={},this.focusedNodeId=null,this.firstUpdate=!0,this.subscriptions=[]}fireEvent(e){e.treeModel=this,this.events[e.eventName].emit(e),this.events.event.emit(e)}subscribe(e,i){const r=this.events[e].subscribe(i);this.subscriptions.push(r)}getFocusedNode(){return this.focusedNode}getActiveNode(){return this.activeNodes[0]}getActiveNodes(){return this.activeNodes}getVisibleRoots(){return this.virtualRoot.visibleChildren}getFirstRoot(e=!1){const i=e?this.getVisibleRoots():this.roots;return null!=i&&i.length?i[0]:null}getLastRoot(e=!1){const i=e?this.getVisibleRoots():this.roots;return null!=i&&i.length?i[i.length-1]:null}get isFocused(){return t.focusedTree===this}isNodeFocused(e){return this.focusedNode===e}isEmptyTree(){return this.roots&&0===this.roots.length}get focusedNode(){return this.focusedNodeId?this.getNodeById(this.focusedNodeId):null}get expandedNodes(){return Object.keys(this.expandedNodeIds).filter(i=>this.expandedNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}get activeNodes(){return Object.keys(this.activeNodeIds).filter(i=>this.activeNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}get hiddenNodes(){return Object.keys(this.hiddenNodeIds).filter(i=>this.hiddenNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}get selectedLeafNodes(){return Object.keys(this.selectedLeafNodeIds).filter(i=>this.selectedLeafNodeIds[i]).map(i=>this.getNodeById(i)).filter(Boolean)}getNodeByPath(e,i=null){if(!e)return null;if(i=i||this.virtualRoot,0===e.length)return i;if(!i.children)return null;const r=e.shift(),o=i.children.find(a=>a.id===r);return o?this.getNodeByPath(e,o):null}getNodeById(e){const i=e.toString();return this.getNodeBy(r=>r.id.toString()===i)}getNodeBy(e,i=null){if(!(i=i||this.virtualRoot).children)return null;const r=i.children.find(e);if(r)return r;for(let o of i.children){const a=this.getNodeBy(e,o);if(a)return a}}isExpanded(e){return this.expandedNodeIds[e.id]}isHidden(e){return this.hiddenNodeIds[e.id]}isActive(e){return this.activeNodeIds[e.id]}isSelected(e){return this.selectedLeafNodeIds[e.id]}ngOnDestroy(){this.dispose(),this.unsubscribeAll()}dispose(){this.virtualRoot&&this.virtualRoot.dispose()}unsubscribeAll(){this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions=[]}setData({nodes:e,options:i=null,events:r=null}){i&&(this.options=new Eae(i)),r&&(this.events=r),e&&(this.nodes=e),this.update()}update(){let e={id:this.options.rootId,virtual:!0,[this.options.childrenField]:this.nodes};this.dispose(),this.virtualRoot=new Tae(e,null,this,0),this.roots=this.virtualRoot.children,this.firstUpdate?this.roots&&(this.firstUpdate=!1,this._calculateExpandedNodes()):this.fireEvent({eventName:Qc.updateData})}setFocusedNode(e){this.focusedNodeId=e?e.id:null}setFocus(e){t.focusedTree=e?this:null}doForAll(e){this.roots.forEach(i=>i.doForAll(e))}focusNextNode(){let e=this.getFocusedNode(),i=e?e.findNextNode(!0,!0):this.getFirstRoot(!0);i&&i.focus()}focusPreviousNode(){let e=this.getFocusedNode(),i=e?e.findPreviousNode(!0):this.getLastRoot(!0);i&&i.focus()}focusDrillDown(){let e=this.getFocusedNode();if(e&&e.isCollapsed&&e.hasChildren)e.toggleExpanded();else{let i=e?e.getFirstChild(!0):this.getFirstRoot(!0);i&&i.focus()}}focusDrillUp(){let e=this.getFocusedNode();if(e)if(e.isExpanded)e.toggleExpanded();else{let i=e.realParent;i&&i.focus()}}setActiveNode(e,i,r=!1){r?this._setActiveNodeMulti(e,i):this._setActiveNodeSingle(e,i),i?(e.focus(this.options.scrollOnActivate),this.fireEvent({eventName:Qc.activate,node:e}),this.fireEvent({eventName:Qc.nodeActivate,node:e})):(this.fireEvent({eventName:Qc.deactivate,node:e}),this.fireEvent({eventName:Qc.nodeDeactivate,node:e}))}setSelectedNode(e,i){this.selectedLeafNodeIds=Object.assign({},this.selectedLeafNodeIds,{[e.id]:i}),i?(e.focus(),this.fireEvent({eventName:Qc.select,node:e})):this.fireEvent({eventName:Qc.deselect,node:e})}setExpandedNode(e,i){this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[e.id]:i}),this.fireEvent({eventName:Qc.toggleExpanded,node:e,isExpanded:i})}expandAll(){this.roots.forEach(e=>e.expandAll())}collapseAll(){this.roots.forEach(e=>e.collapseAll())}setIsHidden(e,i){this.hiddenNodeIds=Object.assign({},this.hiddenNodeIds,{[e.id]:i})}setHiddenNodeIds(e){this.hiddenNodeIds=e.reduce((i,r)=>Object.assign(i,{[r]:!0}),{})}performKeyAction(e,i){const r=this.options.actionMapping.keys[i.keyCode];return!!r&&(i.preventDefault(),r(this,e,i),!0)}filterNodes(e,i=!0){let r;if(!e)return this.clearFilter();if(e&&"string"==typeof e.valueOf())r=a=>-1!==a.displayField.toLowerCase().indexOf(e.toLowerCase());else{if(!e||"function"!=typeof e)return console.error("Don't know what to do with filter",e),void console.error("Should be either a string or function");r=e}const o={};this.roots.forEach(a=>this._filterNode(o,a,r,i)),this.hiddenNodeIds=o,this.fireEvent({eventName:Qc.changeFilter})}clearFilter(){this.hiddenNodeIds={},this.fireEvent({eventName:Qc.changeFilter})}moveNode(e,i){const r=e.getIndexInParent(),o=e.parent;if(!this.canMoveNode(e,i,r))return;const a=o.getField("children");i.parent.getField("children")||i.parent.setField("children",[]);const c=i.parent.getField("children"),u=a.splice(r,1)[0];let f=o===i.parent&&i.index>r?i.index-1:i.index;c.splice(f,0,u),o.treeModel.update(),i.parent.treeModel!==o.treeModel&&i.parent.treeModel.update(),this.fireEvent({eventName:Qc.moveNode,node:u,to:{parent:i.parent.data,index:f},from:{parent:o.data,index:r}})}copyNode(e,i){const r=e.getIndexInParent();if(!this.canMoveNode(e,i,r))return;i.parent.getField("children")||i.parent.setField("children",[]);const o=i.parent.getField("children"),a=this.options.getNodeClone(e);o.splice(i.index,0,a),e.treeModel.update(),i.parent.treeModel!==e.treeModel&&i.parent.treeModel.update(),this.fireEvent({eventName:Qc.copyNode,node:a,to:{parent:i.parent.data,index:i.index}})}getState(){return{expandedNodeIds:this.expandedNodeIds,selectedLeafNodeIds:this.selectedLeafNodeIds,activeNodeIds:this.activeNodeIds,hiddenNodeIds:this.hiddenNodeIds,focusedNodeId:this.focusedNodeId}}setState(e){!e||Object.assign(this,{expandedNodeIds:e.expandedNodeIds||{},selectedLeafNodeIds:e.selectedLeafNodeIds||{},activeNodeIds:e.activeNodeIds||{},hiddenNodeIds:e.hiddenNodeIds||{},focusedNodeId:e.focusedNodeId})}subscribeToState(e){UC(()=>e(this.getState()))}canMoveNode(e,i,r){return r||e.getIndexInParent(),(e.parent!==i.parent||r!==i.index)&&!i.parent.isDescendantOf(e)}calculateExpandedNodes(){this._calculateExpandedNodes()}_filterNode(e,i,r,o){let a=r(i);return i.children&&i.children.forEach(c=>{this._filterNode(e,c,r,o)&&(a=!0)}),a||(e[i.id]=!0),o&&a&&i.ensureVisible(),a}_calculateExpandedNodes(e=null){(e=e||this.virtualRoot).data[this.options.isExpandedField]&&(this.expandedNodeIds=Object.assign({},this.expandedNodeIds,{[e.id]:!0})),e.children&&e.children.forEach(i=>this._calculateExpandedNodes(i))}_setActiveNodeSingle(e,i){this.activeNodes.filter(r=>r!==e).forEach(r=>{this.fireEvent({eventName:Qc.deactivate,node:r}),this.fireEvent({eventName:Qc.nodeDeactivate,node:r})}),this.activeNodeIds=i?{[e.id]:!0}:{}}_setActiveNodeMulti(e,i){this.activeNodeIds=Object.assign({},this.activeNodeIds,{[e.id]:i})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t.focusedTree=null,t})();Ja([Ka,Zi("design:type",Array)],ka.prototype,"roots",void 0),Ja([Ka,Zi("design:type",Object)],ka.prototype,"expandedNodeIds",void 0),Ja([Ka,Zi("design:type",Object)],ka.prototype,"selectedLeafNodeIds",void 0),Ja([Ka,Zi("design:type",Object)],ka.prototype,"activeNodeIds",void 0),Ja([Ka,Zi("design:type",Object)],ka.prototype,"hiddenNodeIds",void 0),Ja([Ka,Zi("design:type",Object)],ka.prototype,"focusedNodeId",void 0),Ja([Ka,Zi("design:type",Tae)],ka.prototype,"virtualRoot",void 0),Ja([fl,Zi("design:type",Object),Zi("design:paramtypes",[])],ka.prototype,"focusedNode",null),Ja([fl,Zi("design:type",Object),Zi("design:paramtypes",[])],ka.prototype,"expandedNodes",null),Ja([fl,Zi("design:type",Object),Zi("design:paramtypes",[])],ka.prototype,"activeNodes",null),Ja([fl,Zi("design:type",Object),Zi("design:paramtypes",[])],ka.prototype,"hiddenNodes",null),Ja([fl,Zi("design:type",Object),Zi("design:paramtypes",[])],ka.prototype,"selectedLeafNodes",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object]),Zi("design:returntype",void 0)],ka.prototype,"setData",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[]),Zi("design:returntype",void 0)],ka.prototype,"update",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object]),Zi("design:returntype",void 0)],ka.prototype,"setFocusedNode",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object]),Zi("design:returntype",void 0)],ka.prototype,"setFocus",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object]),Zi("design:returntype",void 0)],ka.prototype,"doForAll",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[]),Zi("design:returntype",void 0)],ka.prototype,"focusNextNode",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[]),Zi("design:returntype",void 0)],ka.prototype,"focusPreviousNode",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[]),Zi("design:returntype",void 0)],ka.prototype,"focusDrillDown",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[]),Zi("design:returntype",void 0)],ka.prototype,"focusDrillUp",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object,Object,Object]),Zi("design:returntype",void 0)],ka.prototype,"setActiveNode",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object,Object]),Zi("design:returntype",void 0)],ka.prototype,"setSelectedNode",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object,Object]),Zi("design:returntype",void 0)],ka.prototype,"setExpandedNode",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[]),Zi("design:returntype",void 0)],ka.prototype,"expandAll",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[]),Zi("design:returntype",void 0)],ka.prototype,"collapseAll",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object,Object]),Zi("design:returntype",void 0)],ka.prototype,"setIsHidden",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object]),Zi("design:returntype",void 0)],ka.prototype,"setHiddenNodeIds",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object,Object]),Zi("design:returntype",void 0)],ka.prototype,"filterNodes",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[]),Zi("design:returntype",void 0)],ka.prototype,"clearFilter",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object,Object]),Zi("design:returntype",void 0)],ka.prototype,"moveNode",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object,Object]),Zi("design:returntype",void 0)],ka.prototype,"copyNode",null),Ja([La,Zi("design:type",Function),Zi("design:paramtypes",[Object]),Zi("design:returntype",void 0)],ka.prototype,"setState",null);let hF=(()=>{class t{constructor(){this._draggedElement=null}set(e){this._draggedElement=e}get(){return this._draggedElement}isDragging(){return!!this.get()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({factory:function(){return new t},token:t,providedIn:"root"}),t})();var O3=function(t,n,e,i){var a,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(o=(r<3?a(o):r>3?a(n,e,o):a(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o},Hl=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let Xh=(()=>{class t{constructor(e){this.treeModel=e,this.yBlocks=0,this.x=0,this.viewportHeight=null,this.viewport=null,e.virtualScroll=this,this._dispose=[UC(()=>this.fixScroll())]}get y(){return 150*this.yBlocks}get totalHeight(){return this.treeModel.virtualRoot?this.treeModel.virtualRoot.height:0}fireEvent(e){this.treeModel.fireEvent(e)}init(){const e=this.recalcPositions.bind(this);e(),this._dispose=[...this._dispose,R_(()=>this.treeModel.roots,e),R_(()=>this.treeModel.expandedNodeIds,e),R_(()=>this.treeModel.hiddenNodeIds,e)],this.treeModel.subscribe(Qc.loadNodeChildren,e)}isEnabled(){return this.treeModel.options.useVirtualScroll}_setYBlocks(e){this.yBlocks=e}recalcPositions(){this.treeModel.virtualRoot.height=this._getPositionAfter(this.treeModel.getVisibleRoots(),0)}_getPositionAfter(e,i){let r=i;return e.forEach(o=>{o.position=r,r=this._getPositionAfterNode(o,r)}),r}_getPositionAfterNode(e,i){let r=e.getSelfHeight()+i;return e.children&&e.isExpanded&&(r=this._getPositionAfter(e.visibleChildren,r)),e.height=r-i,r}clear(){this._dispose.forEach(e=>e())}setViewport(e){Object.assign(this,{viewport:e,x:e.scrollLeft,yBlocks:Math.round(e.scrollTop/150),viewportHeight:e.getBoundingClientRect?e.getBoundingClientRect().height:0})}scrollIntoView(e,i,r=!0){if(e.options.scrollContainer){const o=e.options.scrollContainer,a=o.getBoundingClientRect().height,c=o.getBoundingClientRect().top,u=this.viewport.getBoundingClientRect().top+e.position-c;(i||uo.scrollTop+a)&&(o.scrollTop=r?u-a/2:u)}else(i||e.positionthis.y+this.viewportHeight)&&this.viewport&&(this.viewport.scrollTop=r?e.position-this.viewportHeight/2:e.position,this._setYBlocks(Math.floor(this.viewport.scrollTop/150)))}getViewportNodes(e){if(!e)return[];const i=e.filter(u=>!u.isHidden);if(!this.isEnabled())return i;if(!this.viewportHeight||!i.length)return[];const r=i.slice(-1)[0];if(!r.height&&0===r.position)return[];const o=Dae(i,u=>u.position+500>this.y||u.position+u.height>this.y),a=Dae(i,u=>u.position-500>this.y+this.viewportHeight,o),c=[];for(let u=o;u<=a;u++)c.push(i[u]);return c}fixScroll(){const e=Math.max(0,this.totalHeight-this.viewportHeight);this.y<0&&this._setYBlocks(0),this.y>e&&this._setYBlocks(e/150)}}return t.\u0275fac=function(e){return new(e||t)(Rt(ka))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();function Dae(t,n,e=0){let i=e,r=t.length-1;for(;i!==r;){let o=Math.floor((i+r)/2);n(t[o])?r=o:i=i===o?r:o}return i}O3([Ka,Hl("design:type",Object)],Xh.prototype,"yBlocks",void 0),O3([Ka,Hl("design:type",Object)],Xh.prototype,"x",void 0),O3([Ka,Hl("design:type",Object)],Xh.prototype,"viewportHeight",void 0),O3([fl,Hl("design:type",Object),Hl("design:paramtypes",[])],Xh.prototype,"y",null),O3([fl,Hl("design:type",Object),Hl("design:paramtypes",[])],Xh.prototype,"totalHeight",null),O3([La,Hl("design:type",Function),Hl("design:paramtypes",[Object]),Hl("design:returntype",void 0)],Xh.prototype,"_setYBlocks",null),O3([La,Hl("design:type",Function),Hl("design:paramtypes",[]),Hl("design:returntype",void 0)],Xh.prototype,"recalcPositions",null),O3([La,Hl("design:type",Function),Hl("design:paramtypes",[Object]),Hl("design:returntype",void 0)],Xh.prototype,"setViewport",null),O3([La,Hl("design:type",Function),Hl("design:paramtypes",[Object,Object,Object]),Hl("design:returntype",void 0)],Xh.prototype,"scrollIntoView",null);let EJe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["tree-loading-component"]],inputs:{template:"template",node:"node"},decls:2,vars:5,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(Ve(0,ZZe,2,0,"span",0),n2(1,1)),2&e&&(oe("ngIf",!i.template),K(1),oe("ngTemplateOutlet",i.template)("ngTemplateOutletContext",Pr(3,JZe,i.node)))},directives:[er,v6],encapsulation:2}),t})(),TJe=(()=>{class t{constructor(e,i){this.elementRef=e,this.virtualScroll=i,this.setViewport=this.throttle(()=>{this.virtualScroll.setViewport(this.elementRef.nativeElement)},17),this.scrollEventHandler=this.setViewport.bind(this)}ngOnInit(){this.virtualScroll.init()}ngAfterViewInit(){setTimeout(()=>{this.setViewport(),this.virtualScroll.fireEvent({eventName:Qc.initialized})}),this.elementRef.nativeElement.addEventListener("scroll",this.scrollEventHandler)}ngOnDestroy(){this.virtualScroll.clear(),this.elementRef.nativeElement.removeEventListener("scroll",this.scrollEventHandler)}getTotalHeight(){return this.virtualScroll.isEnabled()&&this.virtualScroll.totalHeight+"px"||"auto"}throttle(e,i){let r=0;return function(){let o=Date.now();o-r>=i&&(e(),r=o)}}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Xh))},t.\u0275cmp=En({type:t,selectors:[["tree-viewport"]],features:[Ki([Xh])],ngContentSelectors:tJe,decls:1,vars:2,consts:[[4,"treeMobxAutorun"]],template:function(e,i){1&e&&(Ua(),Ve(0,eJe,3,2,"ng-container",0)),2&e&&oe("treeMobxAutorun",ai(1,F_))},directives:[H_],encapsulation:2}),t})(),pF=(()=>{class t{constructor(e,i){this.treeModel=e,this.treeDraggedElement=i,e.eventNames.forEach(r=>this[r]=new Bn),e.subscribeToState(r=>this.stateChange.emit(r))}set nodes(e){}set options(e){}set focused(e){this.treeModel.setFocus(e)}set state(e){this.treeModel.setState(e)}onKeydown(e){if(!this.treeModel.isFocused||["input","textarea"].includes(document.activeElement.tagName.toLowerCase()))return;const i=this.treeModel.getFocusedNode();this.treeModel.performKeyAction(i,e)}onMousedown(e){(function i(r,o){return!r||r.localName!==o&&i(r.parentElement,o)})(e.target,"tree-root")&&this.treeModel.setFocus(!1)}ngOnChanges(e){(e.options||e.nodes)&&this.treeModel.setData({options:e.options&&e.options.currentValue,nodes:e.nodes&&e.nodes.currentValue,events:this.pick(this,this.treeModel.eventNames)})}sizeChanged(){this.viewportComponent.setViewport()}pick(e,i){return i.reduce((r,o)=>(e&&e.hasOwnProperty(o)&&(r[o]=e[o]),r),{})}}return t.\u0275fac=function(e){return new(e||t)(de(ka),de(hF))},t.\u0275cmp=En({type:t,selectors:[["Tree"],["tree-root"]],contentQueries:function(e,i,r){if(1&e&&(wo(r,nJe,5),wo(r,iJe,5),wo(r,rJe,5),wo(r,oJe,5)),2&e){let o;hi(o=pi())&&(i.loadingTemplate=o.first),hi(o=pi())&&(i.treeNodeTemplate=o.first),hi(o=pi())&&(i.treeNodeWrapperTemplate=o.first),hi(o=pi())&&(i.treeNodeFullTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&fr(aJe,5),2&e){let r;hi(r=pi())&&(i.viewportComponent=r.first)}},hostBindings:function(e,i){1&e&&it("keydown",function(o){return i.onKeydown(o)},!1,R7)("mousedown",function(o){return i.onMousedown(o)},!1,R7)},inputs:{nodes:"nodes",options:"options",focused:"focused",state:"state"},outputs:{toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",nodeActivate:"nodeActivate",nodeDeactivate:"nodeDeactivate",select:"select",deselect:"deselect",focus:"focus",blur:"blur",updateData:"updateData",initialized:"initialized",moveNode:"moveNode",copyNode:"copyNode",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",event:"event",stateChange:"stateChange"},features:[Ki([ka]),$r],decls:5,vars:6,consts:[["viewport",""],[1,"angular-tree-component"],[3,"nodes","treeModel","templates",4,"ngIf"],["class","empty-tree-drop-slot",3,"dropIndex","node",4,"ngIf"],[3,"nodes","treeModel","templates"],[1,"empty-tree-drop-slot",3,"dropIndex","node"]],template:function(e,i){1&e&&(G(0,"tree-viewport",null,0)(2,"div",1),Ve(3,cJe,1,8,"tree-node-collection",2),Ve(4,lJe,1,2,"tree-node-drop-slot",3),W()()),2&e&&(K(2),sr("node-dragging",i.treeDraggedElement.isDragging())("angular-tree-component-rtl",i.treeModel.options.rtl),K(1),oe("ngIf",i.treeModel.roots),K(1),oe("ngIf",i.treeModel.isEmptyTree()))},directives:function(){return[TJe,er,B_,Lae]},encapsulation:2}),t})(),AJe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["TreeNode"],["tree-node"]],inputs:{node:"node",index:"index",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"class","tree-node","tree-node-expanded","tree-node-collapsed","tree-node-leaf","tree-node-active","tree-node-focused",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"dropIndex","node",4,"ngIf"],[3,"node","index","templates"],[3,"node","templates"],[3,"dropIndex","node"]],template:function(e,i){1&e&&Ve(0,hJe,3,8,"ng-container",0),2&e&&oe("treeMobxAutorun",ai(1,F_))},directives:function(){return[H_,er,Lae,HJe,kJe,v6]},encapsulation:2}),t})(),DJe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["tree-node-content"]],inputs:{node:"node",index:"index",template:"template"},decls:2,vars:7,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(Ve(0,pJe,2,1,"span",0),n2(1,1)),2&e&&(oe("ngIf",!i.template),K(1),oe("ngTemplateOutlet",i.template)("ngTemplateOutletContext",bh(3,fJe,i.node,i.node,i.index)))},directives:[er,v6],encapsulation:2}),t})(),Lae=(()=>{class t{onDrop(e){this.node.mouseAction("drop",e.event,{from:e.element,to:{parent:this.node,index:this.dropIndex}})}allowDrop(e,i){return this.node.options.allowDrop(e,{parent:this.node,index:this.dropIndex},i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["TreeNodeDropSlot"],["tree-node-drop-slot"]],inputs:{node:"node",dropIndex:"dropIndex"},decls:1,vars:2,consts:[[1,"node-drop-slot",3,"treeAllowDrop","allowDragoverStyling","treeDrop"]],template:function(e,i){1&e&&(G(0,"div",0),it("treeDrop",function(o){return i.onDrop(o)}),W()),2&e&&oe("treeAllowDrop",i.allowDrop.bind(i))("allowDragoverStyling",!0)},directives:function(){return[XC]},encapsulation:2}),t})(),LJe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["tree-node-expander"]],inputs:{node:"node"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],["class","toggle-children-wrapper",3,"toggle-children-wrapper-expanded","toggle-children-wrapper-collapsed","click",4,"ngIf"],["class","toggle-children-placeholder",4,"ngIf"],[1,"toggle-children-wrapper",3,"click"],[1,"toggle-children"],[1,"toggle-children-placeholder"]],template:function(e,i){1&e&&Ve(0,_Je,3,2,"ng-container",0),2&e&&oe("treeMobxAutorun",ai(1,F_))},directives:[H_,er],encapsulation:2}),t})(),kJe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["tree-node-children"]],inputs:{node:"node",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"tree-children","tree-children-no-padding",4,"treeAnimateOpen","treeAnimateOpenSpeed","treeAnimateOpenAcceleration","treeAnimateOpenEnabled"],[3,"nodes","templates","treeModel",4,"ngIf"],["class","tree-node-loading",3,"padding-left","template","node",4,"ngIf"],[3,"nodes","templates","treeModel"],[1,"tree-node-loading",3,"template","node"]],template:function(e,i){1&e&&Ve(0,xJe,2,4,"ng-container",0),2&e&&oe("treeMobxAutorun",ai(1,F_))},directives:function(){return[H_,BJe,er,B_,EJe]},encapsulation:2}),t})();const NJe=Object.assign(function IJe(...t){return La(...t)},La),zJe=Object.assign(function RJe(...t){return fl(...t)},fl),kae=Object.assign(function FJe(...t){return Ka(...t)},Ka);var kP=function(t,n,e,i){var a,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(o=(r<3?a(o):r>3?a(n,e,o):a(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o},Pm=function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};let B_=(()=>{class t{constructor(){this._dispose=[]}get nodes(){return this._nodes}set nodes(e){this.setNodes(e)}get marginTop(){const e=this.viewportNodes&&this.viewportNodes.length&&this.viewportNodes[0];return(e&&e.parent?e.position-e.parent.position-e.parent.getSelfHeight():0)+"px"}setNodes(e){this._nodes=e}ngOnInit(){this.virtualScroll=this.treeModel.virtualScroll,this._dispose=[R_(()=>this.virtualScroll.getViewportNodes(this.nodes).map(e=>e.index),e=>{this.viewportNodes=e.map(i=>this.nodes[i])},{compareStructural:!0,fireImmediately:!0}),R_(()=>this.nodes,e=>{this.viewportNodes=this.virtualScroll.getViewportNodes(e)})]}ngOnDestroy(){this._dispose.forEach(e=>e())}trackNode(e,i){return i.id}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["tree-node-collection"]],inputs:{nodes:"nodes",treeModel:"treeModel",templates:"templates"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],[3,"node","index","templates",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","index","templates"]],template:function(e,i){1&e&&Ve(0,wJe,3,4,"ng-container",0),2&e&&oe("treeMobxAutorun",ai(1,F_))},directives:[H_,vo,AJe],encapsulation:2}),t})();kP([kae,Pm("design:type",Object)],B_.prototype,"_nodes",void 0),kP([kae,Pm("design:type",Array)],B_.prototype,"viewportNodes",void 0),kP([zJe,Pm("design:type",String),Pm("design:paramtypes",[])],B_.prototype,"marginTop",null),kP([NJe,Pm("design:type",Function),Pm("design:paramtypes",[Object]),Pm("design:returntype",void 0)],B_.prototype,"setNodes",null);let HJe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["tree-node-wrapper"]],inputs:{node:"node",index:"index",templates:"templates"},decls:2,vars:8,consts:[["class","node-wrapper",3,"padding-left",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node-wrapper"],[3,"node",4,"ngIf"],[3,"node"],[1,"node-content-wrapper",3,"treeAllowDrop","allowDragoverStyling","treeDrag","treeDragEnabled","click","dblclick","mouseover","mouseout","contextmenu","treeDrop","treeDropDragOver","treeDropDragLeave","treeDropDragEnter"],[3,"node","index","template"]],template:function(e,i){1&e&&(Ve(0,OJe,5,15,"div",0),n2(1,1)),2&e&&(oe("ngIf",!i.templates.treeNodeWrapperTemplate),K(1),oe("ngTemplateOutlet",i.templates.treeNodeWrapperTemplate)("ngTemplateOutletContext",Vw(3,Pae,i.node,i.node,i.index,i.templates)))},directives:function(){return[er,VJe,LJe,IP,XC,DJe,v6]},encapsulation:2}),t})(),VJe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["tree-node-checkbox"]],inputs:{node:"node"},decls:1,vars:2,consts:[[4,"treeMobxAutorun"],["type","checkbox",1,"tree-node-checkbox",3,"checked","indeterminate","click"]],template:function(e,i){1&e&&Ve(0,SJe,2,2,"ng-container",0),2&e&&oe("treeMobxAutorun",ai(1,F_))},directives:[H_],encapsulation:2}),t})();const Iae="is-dragging-over",Nae="is-dragging-over-disabled";let XC=(()=>{class t{constructor(e,i,r,o){this.el=e,this.renderer=i,this.treeDraggedElement=r,this.ngZone=o,this.allowDragoverStyling=!0,this.onDropCallback=new Bn,this.onDragOverCallback=new Bn,this.onDragLeaveCallback=new Bn,this.onDragEnterCallback=new Bn,this._allowDrop=(a,c)=>!0,this.dragOverEventHandler=this.onDragOver.bind(this),this.dragEnterEventHandler=this.onDragEnter.bind(this),this.dragLeaveEventHandler=this.onDragLeave.bind(this)}set treeAllowDrop(e){this._allowDrop=e instanceof Function?e:(i,r)=>e}allowDrop(e){return this._allowDrop(this.treeDraggedElement.get(),e)}ngAfterViewInit(){let e=this.el.nativeElement;this.ngZone.runOutsideAngular(()=>{e.addEventListener("dragover",this.dragOverEventHandler),e.addEventListener("dragenter",this.dragEnterEventHandler),e.addEventListener("dragleave",this.dragLeaveEventHandler)})}ngOnDestroy(){let e=this.el.nativeElement;e.removeEventListener("dragover",this.dragOverEventHandler),e.removeEventListener("dragenter",this.dragEnterEventHandler),e.removeEventListener("dragleave",this.dragLeaveEventHandler)}onDragOver(e){if(!this.allowDrop(e))return this.allowDragoverStyling?this.addDisabledClass():void 0;this.onDragOverCallback.emit({event:e,element:this.treeDraggedElement.get()}),e.preventDefault(),this.allowDragoverStyling&&this.addClass()}onDragEnter(e){!this.allowDrop(e)||(e.preventDefault(),this.onDragEnterCallback.emit({event:e,element:this.treeDraggedElement.get()}))}onDragLeave(e){if(!this.allowDrop(e))return this.allowDragoverStyling?this.removeDisabledClass():void 0;this.onDragLeaveCallback.emit({event:e,element:this.treeDraggedElement.get()}),this.allowDragoverStyling&&this.removeClass()}onDrop(e){!this.allowDrop(e)||(e.preventDefault(),this.onDropCallback.emit({event:e,element:this.treeDraggedElement.get()}),this.allowDragoverStyling&&this.removeClass(),this.treeDraggedElement.set(null))}addClass(){this.renderer.addClass(this.el.nativeElement,Iae)}removeClass(){this.renderer.removeClass(this.el.nativeElement,Iae)}addDisabledClass(){this.renderer.addClass(this.el.nativeElement,Nae)}removeDisabledClass(){this.renderer.removeClass(this.el.nativeElement,Nae)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Uc),de(hF),de(ji))},t.\u0275dir=nn({type:t,selectors:[["","treeDrop",""]],hostBindings:function(e,i){1&e&&it("drop",function(o){return i.onDrop(o)})},inputs:{allowDragoverStyling:"allowDragoverStyling",treeAllowDrop:"treeAllowDrop"},outputs:{onDropCallback:"treeDrop",onDragOverCallback:"treeDropDragOver",onDragLeaveCallback:"treeDropDragLeave",onDragEnterCallback:"treeDropDragEnter"}}),t})(),IP=(()=>{class t{constructor(e,i,r,o){this.el=e,this.renderer=i,this.treeDraggedElement=r,this.ngZone=o,this.dragEventHandler=this.onDrag.bind(this)}ngAfterViewInit(){let e=this.el.nativeElement;this.ngZone.runOutsideAngular(()=>{e.addEventListener("drag",this.dragEventHandler)})}ngDoCheck(){this.renderer.setAttribute(this.el.nativeElement,"draggable",this.treeDragEnabled?"true":"false")}ngOnDestroy(){this.el.nativeElement.removeEventListener("drag",this.dragEventHandler)}onDragStart(e){e.dataTransfer.setData("text",e.target.id),this.treeDraggedElement.set(this.draggedElement),this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragStart",e)}onDrag(e){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("drag",e)}onDragEnd(){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragEnd"),this.treeDraggedElement.set(null)}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Uc),de(hF),de(ji))},t.\u0275dir=nn({type:t,selectors:[["","treeDrag",""]],hostBindings:function(e,i){1&e&&it("dragstart",function(o){return i.onDragStart(o)})("dragend",function(){return i.onDragEnd()})},inputs:{draggedElement:["treeDrag","draggedElement"],treeDragEnabled:"treeDragEnabled"}}),t})(),BJe=(()=>{class t{constructor(e,i,r){this.renderer=e,this.templateRef=i,this.viewContainerRef=r}set isOpen(e){e?(this._show(),this.isEnabled&&!1===this._isOpen&&this._animateOpen()):this.isEnabled?this._animateClose():this._hide(),this._isOpen=!!e}_show(){this.innerElement||(this.innerElement=this.viewContainerRef.createEmbeddedView(this.templateRef).rootNodes[0])}_hide(){this.viewContainerRef.clear(),this.innerElement=null}_animateOpen(){let e=this.animateSpeed,i=this.animateAcceleration,r=0;this.renderer.setStyle(this.innerElement,"max-height","0"),setTimeout(()=>{const o=setInterval(()=>{if(!this._isOpen||!this.innerElement)return clearInterval(o);r+=e;const a=Math.round(r);this.renderer.setStyle(this.innerElement,"max-height",`${a}px`);const c=this.innerElement.getBoundingClientRect?this.innerElement.getBoundingClientRect().height:0;e*=i,i*=1.005,c{if(this._isOpen||!this.innerElement)return clearInterval(o);r-=e,this.renderer.setStyle(this.innerElement,"max-height",`${r}px`),e*=i,i*=1.005,r<=0&&(this.viewContainerRef.clear(),this.innerElement=null,clearInterval(o))},17)}}return t.\u0275fac=function(e){return new(e||t)(de(Uc),de(Ks),de(As))},t.\u0275dir=nn({type:t,selectors:[["","treeAnimateOpen",""]],inputs:{isOpen:["treeAnimateOpen","isOpen"],animateSpeed:["treeAnimateOpenSpeed","animateSpeed"],animateAcceleration:["treeAnimateOpenAcceleration","animateAcceleration"],isEnabled:["treeAnimateOpenEnabled","isEnabled"]}}),t})(),fF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[],imports:[[ta]]}),t})();const GJe=["leftDrawer"],YJe=["rightDrawer"];function UJe(t,n){1&t&&(G(0,"div",27),he(1," Not Logged In: You can only view existing annotations "),W())}function jJe(t,n){if(1&t){const e=Nn();G(0,"div",27)(1,"small",28),he(2,"Not Saved"),W(),G(3,"button",29),it("click",function(){Ut(e);const r=He();return r.resetCam(r.cam)}),he(4," Reset "),W(),G(5,"button",30),it("click",function(){Ut(e);const r=He();return r.storeCam(r.cam)}),he(6," Save "),W()()}}function WJe(t,n){1&t&&$e(0,"noc-cam-form",31),2&t&&(He(),oe("panelDrawer",Di(28)))}function qJe(t,n){1&t&&$e(0,"noc-copy-model",32),2&t&&(He(),oe("panelDrawer",Di(28))("panelSide","left"))}function XJe(t,n){1&t&&$e(0,"noc-activity-form",31),2&t&&(He(),oe("panelDrawer",Di(28)))}function $Je(t,n){if(1&t&&$e(0,"noc-cam-table",14),2&t){const e=He(2);oe("cam",e.cam)("options",e.tableOptions)}}function QJe(t,n){if(1&t&&(G(0,"div",33),Ve(1,$Je,1,2,"noc-cam-table",34),W()),2&t){const e=He();oe("ngSwitch",e.noctuaCommonMenuService.selectedMiddlePanel),K(1),oe("ngSwitchCase",e.MiddlePanel.camTable)}}function KJe(t,n){1&t&&$e(0,"noc-term-detail",31),2&t&&(He(),oe("panelDrawer",Di(40)))}const G_=function(t){return{"noc-active":t}},ZJe=function(){return["fas","plus"]},JJe=function(){return["fas","info-circle"]},eet=function(){return["fas","search"]},tet=function(){return["fas","list"]},net=function(){return["fas","chart-bar"]},iet=function(){return["fas","clone"]},ret=function(){return{right:!0}};let zae=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E){this.route=e,this.camService=i,this._noctuaGraphService=r,this.noctuaDataService=o,this.noctuaReviewSearchService=a,this.noctuaSearchDialogService=c,this.noctuaUserService=u,this.noctuaFormConfigService=f,this.noctuaActivityFormService=w,this.noctuaCommonMenuService=E,this.ActivityType=Wi,this.LeftPanel=k1,this.MiddlePanel=x_,this.RightPanel=y_,this.camToolbarOptions={showCreateButton:!0},this.searchResults=[],this.modelId="",this.resizeStyle={},this.noctuaFormConfig=Ht,this.tableOptions={displayType:ru.TREE,slimViewer:!1,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0,editableRelation:!0,showMenu:!0},this._unsubscribeAll=new z,this.route.queryParams.pipe(Ln(this._unsubscribeAll)).subscribe(B=>{this.modelId=B.model_id||null,this.noctuaUserService.getUser(B.barista_token||null)}),this.noctuaUserService.onUserChanged.pipe(ns(this.noctuaUserService.distinctUser),Ln(this._unsubscribeAll)).subscribe(B=>{void 0!==B&&(this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.loadCam(this.modelId))})}ngOnInit(){const e=this;this.noctuaCommonMenuService.selectedMiddlePanel=x_.camTable,e.noctuaCommonMenuService.setLeftDrawer(e.leftDrawer),e.noctuaCommonMenuService.setRightDrawer(e.rightDrawer),this._noctuaGraphService.onCamGraphChanged.pipe(Ln(this._unsubscribeAll)).subscribe(i=>{!i||i.id!==e.cam.id||(this.cam=i,i.activities.length>0&&(this.camService.addCamEdit(this.cam),this.camService.cams=[i]))}),this.camService.onCamsCheckoutChanged.pipe(Ln(this._unsubscribeAll)).subscribe(i=>{!i||(this.summary=i)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}resizeValidate(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<50||e.rectangle.height<50))}onResizeEnd(e){this.resizeStyle={width:`${e.rectangle.width}px`}}loadCam(e){this.cam=this.camService.getCam(e)}openSearch(){this.noctuaCommonMenuService.selectLeftPanel(k1.findReplace),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openTermsSummary(){this.noctuaCommonMenuService.selectLeftPanel(k1.camTermsSummary),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCamStats(){this.noctuaCommonMenuService.selectLeftPanel(k1.camStats),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel(k1.camForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel(k1.activityForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCopyModel(){this.noctuaCommonMenuService.selectLeftPanel(k1.copyModel),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}resetCam(e){const i=this,r=i.camService.reviewCamChanges(e);i.noctuaSearchDialogService.openCamReviewChangesDialog(c=>{c&&(e.loading=new Pd(!0,"Resetting Model ..."),i.camService.reloadCam(e,Fh.RESET),i.noctuaReviewSearchService.onClearForm.next(!0),i.noctuaReviewSearchService.clear(),i.cam.clearHighlight())},r,{title:"Discard Unsaved Changes",message:`All your changes will be discarded for model. Model Name:"${e.title}"`,cancelLabel:"Cancel",confirmLabel:"OK"})}storeCam(e){const i=this,r=i.camService.reviewCamChanges(e);i.noctuaSearchDialogService.openCamReviewChangesDialog(c=>{c&&(e.loading=new Pd(!0,"Saving Model ..."),i.camService.reloadCam(e,Fh.STORE),i.noctuaReviewSearchService.onClearForm.next(!0),i.noctuaReviewSearchService.clear(),i.cam.clearHighlight())},r,{title:"Save Changes?",message:`All your changes will be saved for model. Model Name:"${e.title}"`,cancelLabel:"Go Back",confirmLabel:"Submit"})}}return t.\u0275fac=function(e){return new(e||t)(de(Tu),de(Zo),de(hl),de(E_),de(z1),de(C3),de(uo),de(lr),de(ps),de($c))},t.\u0275cmp=En({type:t,selectors:[["app-noctua-form"]],viewQuery:function(e,i){if(1&e&&(fr(GJe,7),fr(YJe,7)),2&e){let r;hi(r=pi())&&(i.leftDrawer=r.first),hi(r=pi())&&(i.rightDrawer=r.first)}},decls:43,vars:62,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-icon-button","","color","","color","primary","matTooltip","Add New Activity/Annotation",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","matMenuTriggerFor"],[3,"icon"],["xPosition","before"],["createOptionsLeftMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","","color","","matTooltip","Model Details",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Find and replace",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","terms summary",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","GO CAM Statistics",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Make a copy of this model",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["class","noc-not-loggedin","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[3,"cam","options"],["fxLayout","row","fxLayoutAlign","start start","autosize","",1,"noc-drawer-container","w-100-p","h-100-p"],["mode","side","position","start",1,"noc-left-drawer"],["leftDrawer",""],["mwlResizeHandle","",1,"resize-handle-right",3,"resizeEdges"],[1,"h-100-p",3,"ngSwitch"],[3,"panelDrawer",4,"ngSwitchCase"],[3,"panelDrawer","panelSide",4,"ngSwitchCase"],[3,"panelDrawer","hidden"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p","h-100-p"],["class","w-100-p h-100-p","noctuaPerfectScrollbar","",3,"ngSwitch",4,"ngIf"],["mode","side","position","end",1,"noc-right-drawer"],["rightDrawer",""],["fxLayout","row","fxLayoutAlign","center center",1,"noc-not-loggedin"],[1,"mr-16"],["mat-raised-button","","fxFlex","100px","color","warn",1,"noc-rounded-button","noc-half-button","noc-r","noc-sm",3,"click"],["mat-raised-button","","fxFlex","100px","color","primary",1,"noc-rounded-button","noc-half-button","noc-l","noc-sm","mr-8","p-0",3,"click"],[3,"panelDrawer"],[3,"panelDrawer","panelSide"],["noctuaPerfectScrollbar","",1,"w-100-p","h-100-p",3,"ngSwitch"],[3,"cam","options",4,"ngSwitchCase"]],template:function(e,i){if(1&e&&(G(0,"div",0)(1,"div",1)(2,"button",2),$e(3,"fa-icon",3),W(),G(4,"mat-menu",4,5)(6,"a",6),it("click",function(){return i.openActivityForm(i.ActivityType.default)}),he(7," Create Activity "),W(),G(8,"a",6),it("click",function(){return i.openActivityForm(i.ActivityType.bpOnly)}),he(9," Create New BP Annotation "),W(),G(10,"a",6),it("click",function(){return i.openActivityForm(i.ActivityType.ccOnly)}),he(11," Create New CC Annotation "),W()(),G(12,"button",7),it("click",function(){return i.openCamForm()}),$e(13,"fa-icon",3),W(),G(14,"button",8),it("click",function(){return i.openSearch()}),$e(15,"fa-icon",3),W(),G(16,"button",9),it("click",function(){return i.openTermsSummary()}),$e(17,"fa-icon",3),W(),G(18,"button",10),it("click",function(){return i.openCamStats()}),$e(19,"fa-icon",3),W(),G(20,"button",11),it("click",function(){return i.openCopyModel()}),$e(21,"fa-icon",3),W()(),G(22,"div",12),Ve(23,UJe,2,0,"div",13),Ve(24,jJe,7,0,"div",13),$e(25,"noc-cam-toolbar",14),G(26,"mat-drawer-container",15)(27,"mat-drawer",16,17),$e(29,"div",18),G(30,"div",19),Ve(31,WJe,1,1,"noc-cam-form",20),Ve(32,qJe,1,2,"noc-copy-model",21),Ve(33,XJe,1,1,"noc-activity-form",20),$e(34,"noc-find-replace",22)(35,"noc-cam-terms",22)(36,"noc-cam-stats",22),W()(),G(37,"mat-drawer-content",23),Ve(38,QJe,2,2,"div",24),W(),G(39,"mat-drawer",25,26)(41,"div",19),Ve(42,KJe,1,1,"noc-term-detail",20),W()()()()()),2&e){const r=Di(5),o=Di(28);K(2),oe("ngClass",Pr(43,G_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.activityForm))("matTooltipPosition","after")("matTooltipShowDelay",1500)("matMenuTriggerFor",r),K(1),oe("icon",ai(45,ZJe)),K(9),oe("ngClass",Pr(46,G_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.camForm))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(48,JJe)),K(1),oe("ngClass",Pr(49,G_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.findReplace))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(51,eet)),K(1),oe("ngClass",Pr(52,G_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.camTermsSummary))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(54,tet)),K(1),oe("ngClass",Pr(55,G_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.camStats))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(57,net)),K(1),oe("ngClass",Pr(58,G_,i.noctuaCommonMenuService.selectedLeftPanel===i.LeftPanel.copyModel))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(60,iet)),K(2),oe("ngIf",!i.noctuaUserService.user),K(1),oe("ngIf",i.noctuaUserService.user&&(null==i.cam?null:i.cam.modified)&&(null==i.cam?null:i.cam.activities.length)>0),K(1),oe("cam",i.cam)("options",i.camToolbarOptions),K(4),oe("resizeEdges",ai(61,ret)),K(1),oe("ngSwitch",i.noctuaCommonMenuService.selectedLeftPanel),K(1),oe("ngSwitchCase",i.LeftPanel.camForm),K(1),oe("ngSwitchCase",i.LeftPanel.copyModel),K(1),oe("ngSwitchCase",i.LeftPanel.activityForm),K(1),oe("panelDrawer",o)("hidden",i.noctuaCommonMenuService.selectedLeftPanel!==i.LeftPanel.findReplace),K(1),oe("panelDrawer",o)("hidden",i.noctuaCommonMenuService.selectedLeftPanel!==i.LeftPanel.camTermsSummary),K(1),oe("panelDrawer",o)("hidden",i.noctuaCommonMenuService.selectedLeftPanel!==i.LeftPanel.camStats),K(2),oe("ngIf",i.cam),K(3),oe("ngSwitch",i.noctuaCommonMenuService.selectedRightPanel),K(1),oe("ngSwitchCase",i.RightPanel.termDetail)}},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-not-loggedin[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#e5c2c2;font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#fff;font-size:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px;font-size:20px;color:#3b599880}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{font-size:28px;color:#3b5998}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}'],data:{animation:dc}}),t})();function oet(t,n){if(1&t&&(G(0,"div",17)(1,"div",18)(2,"div"),he(3),W()(),G(4,"div",19)(5,"div",20),he(6),W()(),G(7,"div",18)(8,"div"),he(9),W()()()),2&t){const e=He().$implicit;K(3),Ft(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label,""),K(3),Ft(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," "),K(3),Zr(null==e.meta||null==e.meta.objectNode?null:e.meta.objectNode.label)}}function aet(t,n){if(1&t&&(G(0,"div",21)(1,"div",18),he(2),W(),G(3,"div",22)(4,"div",20),he(5),W()()()),2&t){const e=He().$implicit;K(2),Ft(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label," "),K(3),Ft(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," ")}}function set(t,n){if(1&t&&(G(0,"div",11)(1,"div",12),he(2),W(),G(3,"div",13)(4,"div",14)(5,"strong"),he(6),W(),he(7),W(),Ve(8,oet,10,3,"div",15),Ve(9,aet,6,2,"div",16),W()()),2&t){const e=n.$implicit,i=n.index,r=He();K(2),Ft(" ",i+1," "),K(4),Zr(null==e.meta?null:e.meta.aspect),K(1),Ft(": ",e.message," "),K(1),oe("ngIf",e.type===r.ErrorType.relation),K(1),oe("ngIf",e.type===r.ErrorType.cardinality)}}let cet=(()=>{class t{constructor(e,i,r){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=r,this.ErrorType=ll,this.ErrorLevel=dl,this._unsubscribeAll=new z,this.errors=this._data.errors}ngOnInit(){}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(Od),de(lr))},t.\u0275cmp=En({type:t,selectors:[["app-activity-errors"]],decls:17,vars:1,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start stretch",1,""],["class","noc-error-row","fxLayout","row",4,"ngFor","ngForOf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["mat-raised-button","","color","",1,"mr-8",3,"click"],["fxLayout","row",1,"noc-error-row"],[1,"noc-number"],["fxFlex","",1,"noc-error-row-body"],[1,"noc-heading"],["class","pb-10","fxLayout","row",4,"ngIf"],["class","pb-10","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row",1,"pb-10"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-node-card"],["fxLayout","column","fxLayoutAlign","center stretch","fxFlex","",1,"noc-edge-card"],[1,"noc-line"],["fxLayout","row","fxLayoutAlign","center center",1,"pb-10"],["fxFlex","","fxLayout","column","fxLayoutAlign","center stretch",1,"noc-edge-card"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),he(4," Errors"),W(),$e(5,"span",4),G(6,"button",5),it("click",function(){return i.close()}),G(7,"mat-icon"),he(8,"close"),W(),he(9," Close "),W()()(),G(10,"div",6)(11,"div",7),Ve(12,set,10,5,"div",8),W()(),G(13,"div",9),$e(14,"span",4),G(15,"button",10),it("click",function(){return i.close()}),he(16,"Close"),W()()()),2&e&&(K(12),oe("ngForOf",i.errors))},directives:[r3,n3,Vr,Lr,kr,Er,Mo,Fv,Fa,vo,er,Hv],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%]{border-bottom:#CCC double 1px;width:100%}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{padding:18px 2px;width:40px;min-width:40px;max-width:40px;background-color:#ddd;font-size:12px;text-align:center}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-error-row-body[_ngcontent-%COMP%]{padding:8px 10px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{padding:8px 0;font-size:14px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card[_ngcontent-%COMP%]{padding:5px;height:100px;min-height:100px;max-height:100px;width:250px;min-width:250px;max-width:250px;border:#AAA double 2px;font-size:10px;text-align:center;overflow:hidden}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-lg[_ngcontent-%COMP%]{height:100px;min-height:100px;max-height:100px;width:150px;min-width:150px;max-width:150px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-long[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-edge-card[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding-top:15px;height:35px;min-height:35px;max-height:35px;width:100%;min-width:100%;max-width:100%;border-bottom:#AAA solid 2px;text-align:center}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:900px;min-height:80%;display:flex;flex-direction:column}']}),t})(),det=(()=>{class t{constructor(e,i,r){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=r,this.searchFormData={},this.cam={},this._unsubscribeAll=new z,this.cam=this._data.cam,this.searchForm=this.createAnswerForm()}ngOnInit(){}close(){this._matDialogRef.close()}createAnswerForm(){return new r2({annotatedEntity:new br(this.cam.annotatedEntity.id),term:new br(this.cam.term.id),evidence:new br(this.cam.evidence.id),reference:new br(this.cam.reference.label),with:new br(this.cam.with)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(Od),de(lr))},t.\u0275cmp=En({type:t,selectors:[["app-before-save"]],decls:17,vars:0,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start center",1,"w-100-p"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),he(4," Add Evidence"),W(),$e(5,"span",4),G(6,"button",5),it("click",function(){return i.close()}),G(7,"mat-icon"),he(8,"close"),W()()()(),G(9,"div",6),$e(10,"div",7),W(),G(11,"div",8),$e(12,"span",4),G(13,"button",9),it("click",function(){return i.close()}),he(14,"Cancel"),W(),G(15,"button",10),he(16,"Save"),W()()())},directives:[r3,n3,Vr,Lr,kr,Er,Mo,Fv,Fa,Hv],styles:[""]}),t})(),uet=(()=>{class t{constructor(e,i,r){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=r,this.searchFormData={},this.cam={},this._unsubscribeAll=new z,this.cam=this._data.cam,this.searchForm=this.createAnswerForm()}ngOnInit(){}close(){this._matDialogRef.close()}createAnswerForm(){return new r2({annotatedEntity:new br(this.cam.annotatedEntity.id),term:new br(this.cam.term.id),evidence:new br(this.cam.evidence.id),reference:new br(this.cam.reference.label),with:new br(this.cam.with)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(Od),de(lr))},t.\u0275cmp=En({type:t,selectors:[["app-create-from-existing"]],decls:17,vars:0,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-icon-button","","aria-label","Close dialog",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start center",1,"w-100-p"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),he(4," Add Evidence"),W(),$e(5,"span",4),G(6,"button",5),it("click",function(){return i.close()}),G(7,"mat-icon"),he(8,"close"),W()()()(),G(9,"div",6),$e(10,"div",7),W(),G(11,"div",8),$e(12,"span",4),G(13,"button",9),it("click",function(){return i.close()}),he(14,"Cancel"),W(),G(15,"button",10),he(16,"Save"),W()()())},directives:[r3,n3,Vr,Lr,kr,Er,Mo,Fv,Fa,Hv],styles:[""]}),t})();function het(t,n){if(1&t&&(G(0,"mat-radio-button",18)(1,"div",19),he(2),W(),G(3,"div",20)(4,"small"),he(5),W()()()),2&t){const e=n.$implicit;oe("value",e),K(2),Ft(" ",null==e.term?null:e.term.label," "),K(3),Zr(null==e.term?null:e.term.id)}}function pet(t,n){if(1&t&&(G(0,"div",15)(1,"div",16),he(2),W(),Ve(3,het,6,3,"mat-radio-button",17),W()),2&t){const e=n.$implicit;K(2),Ft(" ",e.title," "),K(1),oe("ngForOf",e.activityNodes)}}let fet=(()=>{class t{constructor(e,i,r){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=r,this._unsubscribeAll=new z,this.nodes=this._data.nodes}ngOnInit(){}save(){this._matDialogRef.close({activityNode:this.selectedActivityNode})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(Od),de(lr))},t.\u0275cmp=En({type:t,selectors:[["app-link-to-existing"]],decls:23,vars:2,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","noc-right-panel","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngModel","ngModelChange"],["class","noc-radio-group-section","fxLayout","column","fxLayoutAlign","start stretch",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-radio-group-section"],[1,"noc-title"],["class","mb-8",3,"value",4,"ngFor","ngForOf"],[1,"mb-8",3,"value"],[1,"h4"],[1,""]],template:function(e,i){1&e&&(G(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),he(4," Choose from Exisiting Node"),W(),$e(5,"span",4),G(6,"button",5),it("click",function(){return i.close()}),G(7,"mat-icon"),he(8,"close"),W(),he(9," Close "),W()()(),G(10,"div",6)(11,"div",7)(12,"div",8),he(13," Select Node "),W()(),G(14,"div",9)(15,"mat-radio-group",10),it("ngModelChange",function(o){return i.selectedActivityNode=o}),Ve(16,pet,4,2,"div",11),W()()(),G(17,"div",12),$e(18,"span",4),G(19,"button",13),it("click",function(){return i.close()}),he(20,"Cancel"),W(),G(21,"button",14),it("click",function(){return i.save()}),he(22,"Done"),W()()()),2&e&&(K(15),oe("ngModel",i.selectedActivityNode),K(1),oe("ngForOf",i.nodes))},directives:[r3,n3,Vr,Lr,kr,Er,Mo,Fa,XO,E1,DO,vo,$O],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-radio-group-section[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-radio-group-section[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:16px;padding:8px 8px 8px 0}[_nghost-%COMP%] .noc-radio-group-section[_ngcontent-%COMP%] radio-button[_ngcontent-%COMP%]{border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%;max-height:65vh;overflow:auto}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;display:flex;flex-direction:column}']}),t})();function get(t,n){if(1&t){const e=Nn();G(0,"mat-header-cell",30)(1,"mat-checkbox",31),it("change",function(r){Ut(e);const o=He();return r?o.masterToggle():null}),W()()}if(2&t){const e=He();K(1),oe("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function met(t,n){if(1&t){const e=Nn();G(0,"mat-cell",30)(1,"mat-checkbox",32),it("click",function(r){return r.stopPropagation()})("change",function(r){const a=Ut(e).$implicit,c=He();return r?c.selection.toggle(a):null}),W()()}if(2&t){const e=n.$implicit,i=He();K(1),oe("checked",i.selection.isSelected(e))}}function _et(t,n){1&t&&(G(0,"mat-header-cell",33),he(1,"Evidence"),W())}function vet(t,n){if(1&t&&(G(0,"mat-cell",33)(1,"p",34),he(2),W()()),2&t){const e=n.$implicit;K(2),Zr(null==e.evidence?null:e.evidence.label)}}function Cet(t,n){1&t&&(G(0,"mat-header-cell",35),he(1,"Reference"),W())}function bet(t,n){if(1&t&&(G(0,"mat-cell",35)(1,"p",34),he(2),W()()),2&t){const e=n.$implicit;K(2),Zr(e.reference)}}function xet(t,n){1&t&&(G(0,"mat-header-cell",35),he(1,"With"),W())}function yet(t,n){if(1&t&&(G(0,"mat-cell",35)(1,"p",34),he(2),W()()),2&t){const e=n.$implicit;K(2),Zr(e.with)}}function wet(t,n){1&t&&(G(0,"mat-header-cell",4),he(1,"Assigned By"),W())}function Met(t,n){if(1&t&&(G(0,"mat-cell",4)(1,"p",34),he(2),W()()),2&t){const e=n.$implicit;K(2),Zr(e.assignedBy)}}function Oet(t,n){1&t&&$e(0,"mat-header-row")}function Pet(t,n){if(1&t){const e=Nn();G(0,"mat-row",36),it("click",function(){const o=Ut(e).$implicit;return He().selection.toggle(o)}),W()}}const Eet=function(){return{value:"50"}};let Tet=(()=>{class t{constructor(e,i,r){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=r,this.evidence=[],this.displayedColumns=["select","evidence","reference","with"],this.selection=new zu(!0,[]),this._unsubscribeAll=new z,this.evidence=this._data.evidence,this.dataSource=new lS(this.evidence)}ngOnInit(){}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}save(){this._matDialogRef.close({evidences:this.selection.selected})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(Od),de(lr))},t.\u0275cmp=En({type:t,selectors:[["app-select-evidence"]],decls:40,vars:5,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","noc-right-panel","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],["matSort","","noctuaPerfectScrollbar","",1,"noc-evidence-table","w-100-p",3,"dataSource"],["table",""],["matColumnDef","select",1,""],["fxFlex","30px",4,"matHeaderCellDef"],["fxFlex","30px",4,"matCellDef"],["cdkColumnDef","evidence"],["fxFlex","40%",4,"cdkHeaderCellDef"],["fxFlex","40%",4,"cdkCellDef"],["cdkColumnDef","reference"],["fxFlex","20%",4,"cdkHeaderCellDef"],["fxFlex","20%",4,"cdkCellDef"],["cdkColumnDef","with"],["cdkColumnDef","assignedBy"],["fxFlex","",4,"cdkHeaderCellDef"],["fxFlex","",4,"cdkCellDef"],[4,"matHeaderRowDef"],[3,"click",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["fxFlex","30px"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["fxFlex","40%"],[1,""],["fxFlex","20%"],[3,"click"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),he(4," Clone Evidence"),W(),$e(5,"span",4),G(6,"button",5),it("click",function(){return i.close()}),G(7,"mat-icon"),he(8,"close"),W(),he(9," Close "),W()()(),G(10,"div",6)(11,"div",7)(12,"div",8),he(13," Select Evidence "),W()(),G(14,"div",9)(15,"mat-table",10,11),Qr(17,12),Ve(18,get,2,2,"mat-header-cell",13),Ve(19,met,2,1,"mat-cell",14),Kr(),Qr(20,15),Ve(21,_et,2,0,"mat-header-cell",16),Ve(22,vet,3,1,"mat-cell",17),Kr(),Qr(23,18),Ve(24,Cet,2,0,"mat-header-cell",19),Ve(25,bet,3,1,"mat-cell",20),Kr(),Qr(26,21),Ve(27,xet,2,0,"mat-header-cell",19),Ve(28,yet,3,1,"mat-cell",20),Kr(),Qr(29,22),Ve(30,wet,2,0,"mat-header-cell",23),Ve(31,Met,3,1,"mat-cell",24),Kr(),Ve(32,Oet,1,0,"mat-header-row",25),Ve(33,Pet,1,0,"mat-row",26),W()()(),G(34,"div",27),$e(35,"span",4),G(36,"button",28),it("click",function(){return i.close()}),he(37,"Cancel"),W(),G(38,"button",29),it("click",function(){return i.save()}),he(39,"Done"),W()()()),2&e&&(K(15),oe("dataSource",i.dataSource)("@animateStagger",ai(4,Eet)),K(17),oe("matHeaderRowDef",i.displayedColumns),K(1),oe("matRowDefColumns",i.displayedColumns))},directives:[r3,n3,Vr,Lr,kr,Er,Mo,Fa,U6,xte,dm,lm,um,Zf,cm,hm,Lh,n4,t4,j6,q6,W6,X6],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:12px!important;color:#000}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{font-size:10px!important;font-weight:700;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{min-width:0;display:flex;align-items:center}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%]{background-color:transparent}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-left:8px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding:0;font-size:12px;line-height:15px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%]{background-color:#eee;border-right:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%]{font-size:10px;color:#555;padding:10px 0;border-bottom:rgba(59,89,152,.2) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:12px;width:12px;min-width:12px;max-width:12px;height:12px;min-height:12px;max-height:12px;display:none}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%]{color:#000;font-weight:700}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:initial}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%;max-height:65vh;overflow:auto}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;display:flex;flex-direction:column}'],data:{animation:dc}}),t})();const Aet=function(t){return{"noc-term-selected":t}};function Det(t,n){if(1&t){const e=Nn();G(0,"div",34),it("click",function(){const o=Ut(e).$implicit;return He().selectActivityNode(o)}),G(1,"mat-icon",35),he(2,"check_circle"),W(),he(3),W()}if(2&t){const e=n.$implicit,i=He();oe("ngClass",Pr(2,Aet,e.getTerm().id===(null==i.selectedActivityNode?null:i.selectedActivityNode.getTerm().id))),K(3),Ft(" ",e.getTerm().label," ")}}function Let(t,n){if(1&t){const e=Nn();G(0,"mat-header-cell",36)(1,"mat-checkbox",37),it("change",function(r){Ut(e);const o=He();return r?o.masterToggle():null}),W()()}if(2&t){const e=He();K(1),oe("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function ket(t,n){if(1&t){const e=Nn();G(0,"mat-cell",36)(1,"mat-checkbox",38),it("click",function(r){return r.stopPropagation()})("change",function(r){const a=Ut(e).$implicit,c=He();return r?c.selection.toggle(a):null}),W()()}if(2&t){const e=n.$implicit,i=He();K(1),oe("checked",i.selection.isSelected(e))}}function Iet(t,n){1&t&&(G(0,"mat-header-cell",39),he(1,"Evidence"),W())}function Net(t,n){if(1&t&&(G(0,"small"),he(1),W()),2&t){const e=n.$implicit,i=He().$implicit;K(1),kw(" ",null==e?null:e.label," : ",null==i.term?null:i.term.label," ")}}function Ret(t,n){if(1&t&&(G(0,"span"),he(1," Ext: "),Ve(2,Net,2,2,"small",41),$e(3,"br"),W()),2&t){const e=n.$implicit;K(2),oe("ngForOf",e.relations)}}function zet(t,n){if(1&t&&(G(0,"mat-cell",39)(1,"p",40),he(2),$e(3,"br"),Ve(4,Ret,4,1,"span",41),W()()),2&t){const e=n.$implicit;K(2),Ft(" ",null==e.evidence?null:e.evidence.label," "),K(2),oe("ngForOf",e.evidenceExts)}}function Fet(t,n){1&t&&(G(0,"mat-header-cell",42),he(1,"Reference"),W())}function Het(t,n){if(1&t&&(G(0,"mat-cell",42)(1,"p",40),he(2),W()()),2&t){const e=n.$implicit;K(2),Zr(e.reference)}}function Vet(t,n){1&t&&(G(0,"mat-header-cell",42),he(1,"With"),W())}function Bet(t,n){if(1&t&&(G(0,"mat-cell",42)(1,"p",40),he(2),W()()),2&t){const e=n.$implicit;K(2),Zr(e.with)}}function Get(t,n){1&t&&(G(0,"mat-header-cell",3),he(1,"Assigned By"),W())}function Yet(t,n){1&t&&(G(0,"span"),he(1,",\xa0"),W())}function Uet(t,n){if(1&t&&(G(0,"span")(1,"p",43),it("click",function(i){return i.stopPropagation()}),he(2),W(),Ve(3,Yet,2,0,"span",44),W()),2&t){const e=n.$implicit,i=n.last;K(2),Ft(" ",e.name," "),K(1),oe("ngIf",!i)}}function jet(t,n){if(1&t&&(G(0,"mat-cell",3),Ve(1,Uet,4,2,"span",41),W()),2&t){const e=n.$implicit;K(1),oe("ngForOf",e.groups)}}function Wet(t,n){1&t&&$e(0,"mat-header-row")}function qet(t,n){if(1&t){const e=Nn();G(0,"mat-row",43),it("click",function(){const o=Ut(e).$implicit;return He().selection.toggle(o)}),W()}}const Xet=function(){return{value:"50"}};let $et=(()=>{class t{constructor(e,i,r,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=r,this.noctuaLookupService=o,this.evidence=[],this.activityNodes=[],this.displayedColumns=["select","evidence","reference","with","assignedBy"],this.selection=new zu(!0,[]),this._unsubscribeAll=new z,this.evidence=this._data.evidence,this.searchCriteria=this._data.searchCriteria,this.initialize()}ngOnInit(){}initialize(){this.noctuaLookupService.companionLookup(this.searchCriteria.gpNode.id,this.searchCriteria.aspect,this.searchCriteria.params).pipe(Ln(this._unsubscribeAll)).subscribe(i=>{this.activityNodes=i})}selectActivityNode(e){this.selectedActivityNode=e,this.dataSource=new lS(e.predicate.evidence)}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}save(){this._matDialogRef.close({term:this.selectedActivityNode,evidences:this.selection.selected})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(Od),de(lr),de(X2))},t.\u0275cmp=En({type:t,selectors:[["app-search-database"]],decls:54,vars:7,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-dialog-body"],["fxFlex","200px","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100-p","noc-left-panel","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading","w-100-p"],[1,"text-truncate"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],["class","noc-term-box","fxLayout","row","fxLayoutAlign","start center",3,"ngClass","click",4,"ngFor","ngForOf"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100-p","noc-right-panel","noc-form-section"],[1,"noc-section-heading"],["matSort","","noctuaPerfectScrollbar","",1,"noc-evidence-table","w-100-p",3,"dataSource"],["table",""],["matColumnDef","select",1,""],["fxFlex","30px",4,"matHeaderCellDef"],["fxFlex","30px",4,"matCellDef"],["cdkColumnDef","evidence"],["fxFlex","40%",4,"cdkHeaderCellDef"],["fxFlex","40%",4,"cdkCellDef"],["cdkColumnDef","reference"],["fxFlex","20%",4,"cdkHeaderCellDef"],["fxFlex","20%",4,"cdkCellDef"],["cdkColumnDef","with"],["cdkColumnDef","assignedBy"],["fxFlex","",4,"cdkHeaderCellDef"],["fxFlex","",4,"cdkCellDef"],[4,"matHeaderRowDef"],[3,"click",4,"matRowDef","matRowDefColumns"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-term-box",3,"ngClass","click"],["fkFlex","25px",1,"green-300-fg","mr-4"],["fxFlex","30px"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["fxFlex","40%"],[1,""],[4,"ngFor","ngForOf"],["fxFlex","20%"],[3,"click"],[4,"ngIf"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Search Annotations"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),G(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),he(13," Select Term "),G(14,"div",9)(15,"small"),he(16,"Please select below"),W()()()(),G(17,"div",10),Ve(18,Det,4,4,"div",11),W()(),G(19,"div",12)(20,"div",7)(21,"div",13),he(22," Select Evidence "),G(23,"small"),he(24,"(optional)"),W(),G(25,"div",9)(26,"small"),he(27),W()()()(),G(28,"div",10)(29,"mat-table",14,15),Qr(31,16),Ve(32,Let,2,2,"mat-header-cell",17),Ve(33,ket,2,1,"mat-cell",18),Kr(),Qr(34,19),Ve(35,Iet,2,0,"mat-header-cell",20),Ve(36,zet,5,2,"mat-cell",21),Kr(),Qr(37,22),Ve(38,Fet,2,0,"mat-header-cell",23),Ve(39,Het,3,1,"mat-cell",24),Kr(),Qr(40,25),Ve(41,Vet,2,0,"mat-header-cell",23),Ve(42,Bet,3,1,"mat-cell",24),Kr(),Qr(43,26),Ve(44,Get,2,0,"mat-header-cell",27),Ve(45,jet,2,1,"mat-cell",28),Kr(),Ve(46,Wet,1,0,"mat-header-row",29),Ve(47,qet,1,0,"mat-row",30),W()()()(),G(48,"div",31),$e(49,"span",3),G(50,"button",32),it("click",function(){return i.close()}),he(51,"Cancel"),W(),G(52,"button",33),it("click",function(){return i.save()}),he(53,"Done"),W()()()),2&e&&(K(18),oe("ngForOf",i.activityNodes),K(9),Zr(null==i.selectedActivityNode?null:i.selectedActivityNode.getTerm().label),K(2),oe("dataSource",i.dataSource)("@animateStagger",ai(6,Xet)),K(17),oe("matHeaderRowDef",i.displayedColumns),K(1),oe("matRowDefColumns",i.displayedColumns))},directives:[Lr,kr,Vr,Er,Mo,Fa,vo,Qa,ec,U6,xte,dm,lm,um,Zf,cm,hm,Lh,n4,t4,er,j6,q6,W6,X6],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:12px!important;color:#000}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{font-size:10px!important;font-weight:700;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{min-width:0;display:flex;align-items:center}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%]{background-color:transparent}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-left:8px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding:0;font-size:12px;line-height:15px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%]{background-color:#eee;border-right:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%]{font-size:10px;color:#555;padding:10px 0;border-bottom:rgba(59,89,152,.2) solid 1px}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:12px;width:12px;min-width:12px;max-width:12px;height:12px;min-height:12px;max-height:12px;display:none}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%]{color:#000;font-weight:700}[_nghost-%COMP%] .noc-left-panel[_ngcontent-%COMP%] .noc-term-box.noc-term-selected[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:initial}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}'],data:{animation:dc}}),t})();function Fae(t){this._context=t}function Hae(t){return new Fae(t)}function Vae(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function NP(t){this._context=t}function Bae(t,n){this._basis=new NP(t),this._beta=n}Fae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}},NP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Vae(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Vae(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Bae.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var u,i=t[0],r=n[0],o=t[e]-i,a=n[e]-r,c=-1;++c<=e;)this._basis.point(this._beta*t[c]+(1-this._beta)*(i+(u=c/e)*o),this._beta*n[c]+(1-this._beta)*(r+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const Qet=function t(n){function e(i){return 1===n?new NP(i):new Bae(i,n)}return e.beta=function(i){return t(+i)},e}(.85);function Gae(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function gF(t,n){this._context=t,this._k=(1-n)/6}gF.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Gae(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Gae(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Ket=function t(n){function e(i){return new gF(i,n)}return e.tension=function(i){return t(+i)},e}(0);function jae(t,n){this._context=t,this._alpha=n}Math,Math,Math,Math,Math,Math,Math,Math,jae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:!function Zet(t,n,e){var i=t._x1,r=t._y1,o=t._x2,a=t._y2;if(t._l01_a>1e-12){var c=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*c-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,r=(r*c-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>1e-12){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,w=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-n*t._l12_2a)/w,a=(a*f+t._y1*t._l23_2a-e*t._l12_2a)/w}t._context.bezierCurveTo(i,r,o,a,t._x2,t._y2)}(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Jet=function t(n){function e(i){return n?new jae(i,n):new gF(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function Wae(t){return t<0?-1:1}function qae(t,n,e){var i=t._x1-t._x0,r=n-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),a=(e-t._y1)/(r||i<0&&-0),c=(o*r+a*i)/(i+r);return(Wae(o)+Wae(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function Xae(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function _F(t,n,e){var i=t._x0,o=t._x1,a=t._y1,c=(o-i)/3;t._context.bezierCurveTo(i+c,t._y0+c*n,o-c,a-c*e,o,a)}function RP(t){this._context=t}function $ae(t){this._context=new Qae(t)}function Qae(t){this._context=t}function ett(t){return new RP(t)}function ttt(t){return new $ae(t)}function Kae(t){this._context=t}function Zae(t){var n,i,e=t.length-1,r=new Array(e),o=new Array(e),a=new Array(e);for(r[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n=0;--n)r[n]=(a[n]-r[n+1])/o[n];for(o[e-1]=(t[e]+r[e-1])/2,n=0;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};let Jae=(()=>{class t{constructor(){this.layout="dagre",this.curveType="Bundle",this.curve=Hae,this.interpolationTypes=["Bundle","Cardinal","Catmull Rom","Linear","Monotone X","Monotone Y","Natural","Step","Step After","Step Before"],this.draggingEnabled=!0,this.panningEnabled=!0,this.zoomEnabled=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.panOnZoom=!1,this.autoZoom=!0,this.autoCenter=!0,this.update$=new z,this.center$=new z,this.zoomToFit$=new z,this.layoutSettings={edgePadding:100,nodePadding:100,orientation:"LR"}}set nodes(e){this._nodes=[...e],this.update$.next(!0)}get nodes(){return this._nodes}set edges(e){this._edges=[...e],this.update$.next(!0)}get edges(){return this._edges}ngOnInit(){this.setInterpolationType(this.curveType),setTimeout(()=>{window.dispatchEvent(new Event("resize"))},10)}setInterpolationType(e){this.curveType=e,"Bundle"===e&&(this.curve=Qet.beta(1)),"Cardinal"===e&&(this.curve=Ket),"Catmull Rom"===e&&(this.curve=Jet),"Linear"===e&&(this.curve=Hae),"Monotone X"===e&&(this.curve=ett),"Monotone Y"===e&&(this.curve=ttt),"Natural"===e&&(this.curve=ntt),"Step"===e&&(this.curve=itt),"Step After"===e&&(this.curve=ott),"Step Before"===e&&(this.curve=rtt)}getStyles(e){return{"background-color":e.data.backgroundColor}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=En({type:t,selectors:[["noc-graph-preview"]],inputs:{nodes:"nodes",edges:"edges"},decls:8,vars:20,consts:[[1,"w-100-p","h-100-p","noc-graph-holder"],[3,"links","nodes","curve","layout","nodeWidth","nodeHeight","layoutSettings","draggingEnabled","panningEnabled","enableZoom","zoomSpeed","minZoomLevel","maxZoomLevel","panOnZoom","autoZoom","autoCenter","update$","center$","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["xmlns","http://www.w3.org/2000/xhtml","width","120","height","50",1,"node"],["width","120","height","50"],["xmlns","http://www.w3.org/1999/xhtml",1,"cardContainer",3,"ngStyle"],[1,"edge"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","middle",1,"edge-label"],["startOffset","50%",1,"text-path"],["class","linkMidpoint",4,"ngIf"],[1,"linkMidpoint"],["alignment-baseline","central"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"ngx-graph",1),Ve(2,att,2,0,"ng-template",null,2,zp),Ve(4,stt,4,2,"ng-template",null,3,zp),Ve(6,ltt,5,4,"ng-template",null,4,zp),W()()),2&e&&(K(1),oe("links",i.edges)("nodes",i.nodes)("curve",i.curve)("layout",i.layout)("nodeWidth",120)("nodeHeight",50)("layoutSettings",i.layoutSettings)("curve",i.curve)("draggingEnabled",i.draggingEnabled)("panningEnabled",i.panningEnabled)("enableZoom",i.zoomEnabled)("zoomSpeed",i.zoomSpeed)("minZoomLevel",i.minZoomLevel)("maxZoomLevel",i.maxZoomLevel)("panOnZoom",i.panOnZoom)("autoZoom",i.autoZoom)("autoCenter",i.autoCenter)("update$",i.update$)("center$",i.center$)("zoomToFit$",i.zoomToFit$))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;height:100%;background-color:#f2f2f2;background-size:10px 10px;background-image:linear-gradient(to right,rgba(0,0,0,.1) 1px,transparent 1px),linear-gradient(to bottom,rgba(0,0,0,.1) 1px,transparent 1px)}[_nghost-%COMP%] .noc-graph-holder[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .cardContainer[_ngcontent-%COMP%]{padding:4px;height:50px;width:120px;display:block;border:#3b5998 solid 1px;background-color:#cce3fa;font-size:10px;text-align:center;overflow:hidden}[_nghost-%COMP%] .cardContainer[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;text-align:center;font-size:20px;margin-top:4px;margin-bottom:8px}[_nghost-%COMP%] .linkMidpoint[_ngcontent-%COMP%] ellipse[_ngcontent-%COMP%]{fill:#fff;stroke:#000;stroke-width:1}[_nghost-%COMP%] .linkMidpoint[_ngcontent-%COMP%] text[_ngcontent-%COMP%]{stroke:transparent;fill:#000;text-anchor:middle;font-size:10px}']}),t})();function dtt(t,n){if(1&t&&$e(0,"noc-graph-preview",9),2&t){const e=He();oe("nodes",null==e.noctuaActivityFormService.activity?null:e.noctuaActivityFormService.activity.graphPreview.nodes)("edges",null==e.noctuaActivityFormService.activity?null:e.noctuaActivityFormService.activity.graphPreview.edges)}}let utt=(()=>{class t{constructor(e,i,r){this._matDialogRef=e,this.noctuaFormConfigService=i,this.noctuaActivityFormService=r,this.evidence=[],this.activityNodes=[],this.displayedColumns=["select","evidence","reference","with","assignedBy"],this.selection=new zu(!0,[]),this._unsubscribeAll=new z}ngOnInit(){this.preview()}preview(){this.noctuaActivityFormService.activity.setPreview()}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(lr),de(ps))},t.\u0275cmp=En({type:t,selectors:[["app-preview-activity"]],decls:15,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-dialog-body"],["class","noc-graph-preview",3,"nodes","edges",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],[1,"noc-graph-preview",3,"nodes","edges"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Preview"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),G(9,"div",5),Ve(10,dtt,1,2,"noc-graph-preview",6),W(),G(11,"div",7),$e(12,"span",3),G(13,"button",8),it("click",function(){return i.close()}),he(14,"Close"),W()()()),2&e&&(K(10),oe("ngIf",i.noctuaActivityFormService.activity))},directives:[Lr,kr,Vr,Er,Mo,er,Jae],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}'],data:{animation:dc}}),t})();class FP extends class htt{constructor(){this.expansionModel=new zu(!0)}toggle(n){this.expansionModel.toggle(this._trackByValue(n))}expand(n){this.expansionModel.select(this._trackByValue(n))}collapse(n){this.expansionModel.deselect(this._trackByValue(n))}isExpanded(n){return this.expansionModel.isSelected(this._trackByValue(n))}toggleDescendants(n){this.expansionModel.isSelected(this._trackByValue(n))?this.collapseDescendants(n):this.expandDescendants(n)}collapseAll(){this.expansionModel.clear()}expandDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.select(...e.map(i=>this._trackByValue(i)))}collapseDescendants(n){let e=[n];e.push(...this.getDescendants(n)),this.expansionModel.deselect(...e.map(i=>this._trackByValue(i)))}_trackByValue(n){return this.trackBy?this.trackBy(n):n}}{constructor(n,e,i){super(),this.getLevel=n,this.isExpandable=e,this.options=i,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(n){const i=[];for(let r=this.dataNodes.indexOf(n)+1;rthis._trackByValue(n)))}}const HP=new jn("CDK_TREE_NODE_OUTLET_NODE");let $C=(()=>{class t{constructor(e,i){this.viewContainer=e,this._node=i}}return t.\u0275fac=function(e){return new(e||t)(de(As),de(HP,8))},t.\u0275dir=nn({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class ptt{constructor(n){this.$implicit=n}}let VP=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(de(Ks))},t.\u0275dir=nn({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),S3=(()=>{class t{constructor(e,i){this._differs=e,this._changeDetectorRef=i,this._onDestroy=new z,this._levels=new Map,this.viewChange=new mr({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const e=this._nodeDefs.filter(i=>!i.when);this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let e;NO(this._dataSource)?e=this._dataSource.connect(this):hR(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=Ir(this._dataSource)),e&&(this._dataSubscription=e.pipe(Ln(this._onDestroy)).subscribe(i=>this.renderNodeChanges(i)))}renderNodeChanges(e,i=this._dataDiffer,r=this._nodeOutlet.viewContainer,o){const a=i.diff(e);!a||(a.forEachOperation((c,u,f)=>{if(null==c.previousIndex)this.insertNode(e[f],f,r,o);else if(null==f)r.remove(u),this._levels.delete(c.item);else{const w=r.get(u);r.move(w,f)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(e,i){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(o=>o.when&&o.when(i,e))||this._defaultNodeDef}insertNode(e,i,r,o){const a=this._getNodeDef(e,i),c=new ptt(e);c.level=this.treeControl.getLevel?this.treeControl.getLevel(e):void 0!==o&&this._levels.has(o)?this._levels.get(o)+1:0,this._levels.set(e,c.level),(r||this._nodeOutlet.viewContainer).createEmbeddedView(a.template,c,i),X0.mostRecentTreeNode&&(X0.mostRecentTreeNode.data=e)}}return t.\u0275fac=function(e){return new(e||t)(de(qd),de(Do))},t.\u0275cmp=En({type:t,selectors:[["cdk-tree"]],contentQueries:function(e,i,r){if(1&e&&wo(r,VP,5),2&e){let o;hi(o=pi())&&(i._nodeDefs=o)}},viewQuery:function(e,i){if(1&e&&fr($C,7),2&e){let r;hi(r=pi())&&(i._nodeOutlet=r.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(e,i){1&e&&n2(0,0)},directives:[$C],encapsulation:2}),t})(),X0=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new z,this._dataChanges=new z,t.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(e){this._elementRef.nativeElement.setAttribute("role",e)}get data(){return this._data}set data(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function ftt(t){let n=t.parentElement;for(;n&&!gtt(n);)n=n.parentElement;return n?n.classList.contains("cdk-nested-tree-node")?cc(n.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.mostRecentTreeNode=null,t.\u0275fac=function(e){return new(e||t)(de(gi),de(S3))},t.\u0275dir=nn({type:t,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(e,i){2&e&&Ti("aria-expanded",i.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t})();function gtt(t){const n=t.classList;return!(!(null==n?void 0:n.contains("cdk-nested-tree-node"))&&!(null==n?void 0:n.contains("cdk-tree")))}const mtt=/([A-Za-z%]+)$/;let CF=(()=>{class t{constructor(e,i,r,o){this._treeNode=e,this._tree=i,this._element=r,this._dir=o,this._destroyed=new z,this.indentUnits="px",this._indent=40,this._setPadding(),o&&o.change.pipe(Ln(this._destroyed)).subscribe(()=>this._setPadding(!0)),e._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,i=null==this._level?e:this._level;return"number"==typeof i?`${i*this._indent}${this.indentUnits}`:null}_setPadding(e=!1){const i=this._paddingIndent();if(i!==this._currentPadding||e){const r=this._element.nativeElement,o=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",a="paddingLeft"===o?"paddingRight":"paddingLeft";r.style[o]=i||"",r.style[a]="",this._currentPadding=i}}_setLevelInput(e){this._level=cc(e,null),this._setPadding()}_setIndentInput(e){let i=e,r="px";if("string"==typeof e){const o=e.split(mtt);i=o[0],r=o[1]||r}this.indentUnits=r,this._indent=cc(i),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(de(X0),de(S3),de(gi),de(Xc,8))},t.\u0275dir=nn({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),bF=(()=>{class t{constructor(e,i){this._tree=e,this._treeNode=i,this._recursive=!1}get recursive(){return this._recursive}set recursive(e){this._recursive=Bi(e)}_toggle(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(de(S3),de(X0))},t.\u0275dir=nn({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(e,i){1&e&&it("click",function(o){return i._toggle(o)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),_tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})();const vtt=Kg(N0(X0));let xF=(()=>{class t extends vtt{constructor(e,i,r){super(e,i),this.tabIndex=Number(r)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(S3),Ts("tabindex"))},t.\u0275dir=nn({type:t,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[Ki([{provide:X0,useExisting:t}]),Vn]}),t})(),yF=(()=>{class t extends VP{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[Ki([{provide:VP,useExisting:t}]),Vn]}),t})(),wF=(()=>{class t extends CF{get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[Ki([{provide:CF,useExisting:t}]),Vn]}),t})(),MF=(()=>{class t{constructor(e,i){this.viewContainer=e,this._node=i}}return t.\u0275fac=function(e){return new(e||t)(de(As),de(HP,8))},t.\u0275dir=nn({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[Ki([{provide:$C,useExisting:t}])]}),t})(),OF=(()=>{class t extends S3{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275cmp=En({type:t,selectors:[["mat-tree"]],viewQuery:function(e,i){if(1&e&&fr(MF,7),2&e){let r;hi(r=pi())&&(i._nodeOutlet=r.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[Ki([{provide:S3,useExisting:t}]),Vn],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(e,i){1&e&&n2(0,0)},directives:[MF],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})(),SF=(()=>{class t extends bF{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Hi(t)))(i||t)}}(),t.\u0275dir=nn({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[Ki([{provide:bF,useExisting:t}]),Vn]}),t})(),btt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[_tt,Mr],Mr]}),t})();class xtt{constructor(n,e,i,r){this.transformFunction=n,this.getLevel=e,this.isExpandable=i,this.getChildren=r}_flattenNode(n,e,i,r){const o=this.transformFunction(n,e);if(i.push(o),this.isExpandable(o)){const a=this.getChildren(n);a&&(Array.isArray(a)?this._flattenChildren(a,e,i,r):a.pipe(Po(1)).subscribe(c=>{this._flattenChildren(c,e,i,r)}))}return i}_flattenChildren(n,e,i,r){n.forEach((o,a)=>{let c=r.slice();c.push(a!=n.length-1),this._flattenNode(o,e+1,i,c)})}flattenNodes(n){let e=[];return n.forEach(i=>this._flattenNode(i,0,e,[])),e}expandFlattenedNodes(n,e){let i=[],r=[];return r[0]=!0,n.forEach(o=>{let a=!0;for(let c=0;c<=this.getLevel(o);c++)a=a&&r[c];a&&i.push(o),this.isExpandable(o)&&(r[this.getLevel(o)+1]=e.isExpanded(o))}),i}}class ytt extends uee{constructor(n,e,i){super(),this._treeControl=n,this._treeFlattener=e,this._flattenedData=new mr([]),this._expandedData=new mr([]),this._data=new mr([]),i&&(this.data=i)}get data(){return this._data.value}set data(n){this._data.next(n),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(n){return So(n.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(Qe(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}const ese=function(t){return{"background-highlight":t}};function wtt(t,n){if(1&t){const e=Nn();G(0,"mat-tree-node",18)(1,"div",19),$e(2,"button",20),G(3,"mat-checkbox",21),it("change",function(){const o=Ut(e).$implicit;return He(2).evidenceLeafItemSelectionToggle(o)}),W(),G(4,"div",22),he(5),W(),G(6,"div",23),he(7),W(),G(8,"div",23),he(9),W(),G(10,"div",3),he(11),W()()()}if(2&t){const e=n.$implicit,i=He(2);oe("ngClass",Pr(6,ese,i.activeAnnotation===e.short_name)),K(3),oe("checked",i.checklistSelection.isSelected(e)),K(2),Ft(" ",null==e.evidence||null==e.evidence.evidence?null:e.evidence.evidence.label," "),K(2),Ft(" ",null==e.evidence?null:e.evidence.reference," "),K(2),Ft(" ",null==e.evidence?null:e.evidence.with," "),K(2),Ft(" ",null==e.evidence||null==e.evidence.assignedBy?null:e.evidence.assignedBy.label," ")}}const Mtt=function(){return["fas","chevron-right"]};function Ott(t,n){1&t&&$e(0,"fa-icon",28),2&t&&oe("icon",ai(1,Mtt))}const Stt=function(){return["fas","chevron-down"]};function Ptt(t,n){1&t&&$e(0,"fa-icon",28),2&t&&oe("icon",ai(1,Stt))}function Ett(t,n){if(1&t&&(G(0,"mat-tree-node",24)(1,"button",25),Ve(2,Ott,1,2,"fa-icon",26),Ve(3,Ptt,1,2,"fa-icon",26),W(),he(4),G(5,"small"),he(6),W(),he(7,") "),$e(8,"span",3),G(9,"div",27),he(10),W()()),2&t){const e=n.$implicit,i=He(2);oe("ngClass",Pr(6,ese,i.activeAnnotation===e.short_name)),K(2),oe("ngIf",!i.treeControl.isExpanded(e)),K(1),oe("ngIf",i.treeControl.isExpanded(e)),K(1),Ft(" ",null==e.activityNode||null==e.activityNode.term?null:e.activityNode.term.label," ("),K(2),Zr(null==e.activityNode||null==e.activityNode.term?null:e.activityNode.term.id),K(4),Ft(" ",e.count," ")}}function Ttt(t,n){if(1&t&&(G(0,"div",13)(1,"mat-tree",14,15),Ve(3,wtt,12,8,"mat-tree-node",16),Ve(4,Ett,11,8,"mat-tree-node",17),W()()),2&t){const e=He();K(1),oe("dataSource",e.dataSource)("treeControl",e.treeControl),K(3),oe("matTreeNodeDefWhen",e.hasChild)}}class tse{}class Att{constructor(){this.count=0}}let Dtt=(()=>{class t{constructor(e,i,r,o){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=r,this.noctuaLookupService=o,this.activityNodes=[],this.selection=new zu(!0,[]),this.selectedParent=null,this.checklistSelection=new zu(!0),this.getLevel=a=>a.level,this.isExpandable=a=>a.expandable,this.getChildren=a=>a.children,this.hasChild=(a,c)=>c.expandable,this.transformer=(a,c)=>{const u=new Att;return u.activityNode=a.activityNode,u.evidence=a.evidence,u.level=c,u.expandable=!!a.children,u.count=a.children?a.children.length:0,u},this._unsubscribeAll=new z,this.searchCriteria=this._data.searchCriteria}ngOnInit(){this.initialize(),this.treeFlattener=new xtt(this.transformer,this.getLevel,this.isExpandable,this.getChildren),this.treeControl=new FP(this.getLevel,this.isExpandable),this.dataSource=new ytt(this.treeControl,this.treeFlattener)}initialize(){this.noctuaLookupService.companionLookup(this.searchCriteria.gpNode.id,this.searchCriteria.aspect,this.searchCriteria.params).pipe(Ln(this._unsubscribeAll)).subscribe(i=>{this.activityNodes=i,this.dataSource.data=this._buildAnnotationTree(this.activityNodes)})}save(){const e=[];(0,Nt.each)(this.checklistSelection.selected,i=>{i.evidence&&e.push(i.evidence)}),this._matDialogRef.close({evidences:e})}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}descendantsAllSelected(e){return this.treeControl.getDescendants(e).every(o=>this.checklistSelection.isSelected(o))}descendantsPartiallySelected(e){return this.treeControl.getDescendants(e).some(o=>this.checklistSelection.isSelected(o))&&!this.descendantsAllSelected(e)}evidenceItemSelectionToggle(e){this.checklistSelection.toggle(e);const i=this.treeControl.getDescendants(e);this.checklistSelection.isSelected(e)?this.checklistSelection.select(...i):this.checklistSelection.deselect(...i),i.every(r=>this.checklistSelection.isSelected(r)),this.checkAllParentsSelection(e)}evidenceLeafItemSelectionToggle(e){this.checklistSelection.toggle(e),this.checkAllParentsSelection(e)}checkAllParentsSelection(e){let i=this.getParentNode(e);for(;i;)this.checkRootNodeSelection(i),i=this.getParentNode(i)}checkRootNodeSelection(e){const i=this.checklistSelection.isSelected(e),o=this.treeControl.getDescendants(e).every(a=>this.checklistSelection.isSelected(a));i&&!o?this.checklistSelection.deselect(e):!i&&o&&this.checklistSelection.select(e)}getParentNode(e){const i=this.getLevel(e);if(i<1)return null;for(let o=this.treeControl.dataNodes.indexOf(e)-1;o>=0;o--){const a=this.treeControl.dataNodes[o];if(this.getLevel(a){const o=new tse;return o.activityNode=r,o.children=r.predicate.evidence.map(a=>{const c=new tse;return c.evidence=a,c}),o})}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(Od),de(lr),de(X2))},t.\u0275cmp=En({type:t,selectors:[["app-search-evidence"]],decls:22,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-dialog-body"],["fxFlex","100%","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100-p","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","w-100-p"],[1,"noc-section-heading"],["class","noc-section-body w-100-p","noctuaPerfectScrollbar","",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],["noctuaPerfectScrollbar","",1,"noc-section-body","w-100-p"],[3,"dataSource","treeControl"],["tree",""],["class","ann-tree-node","matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","10",3,"ngClass",4,"matTreeNodeDef"],["fxLayout","row","class","ann-tree-node text-truncate","matTreeNodePadding","","matTreeNodePaddingIndent","10",3,"ngClass",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","10",1,"ann-tree-node",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p"],["mat-icon-button","","disabled","",1,"ann-icon-button"],[1,"checklist-leaf-node","mr-8",3,"checked","change"],["fxFlex","30%"],["fxFlex","20%"],["fxLayout","row","matTreeNodePadding","","matTreeNodePaddingIndent","10",1,"ann-tree-node","text-truncate",3,"ngClass"],["mat-icon-button","","matTreeNodeToggle","",1,""],[3,"icon",4,"ngIf"],["fxFlex","100px",1,""],[3,"icon"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Search Evidence"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),G(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),he(13),$e(14,"small"),W()(),Ve(15,Ttt,5,3,"div",9),W()(),G(16,"div",10),$e(17,"span",3),G(18,"button",11),it("click",function(){return i.close()}),he(19,"Cancel"),W(),G(20,"button",12),it("click",function(){return i.save()}),he(21,"Done"),W()()()),2&e&&(K(13),Ft(" Selected Evidence : ",i.checklistSelection.selected.length," "),K(2),oe("ngIf",i.dataSource.data))},directives:[Lr,kr,Vr,Er,Mo,er,Fa,OF,yF,xF,SF,wF,Qa,ec,Zf,ks],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-section-body[_ngcontent-%COMP%]{background-color:#eee}[_nghost-%COMP%] .noc-term-box[_ngcontent-%COMP%]{width:100%;margin-bottom:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-term-box[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%]{padding:12px 8px}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:12px!important;color:#000}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%], [_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{font-size:10px!important;font-weight:700;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{min-width:0;display:flex;align-items:center}[_nghost-%COMP%] noc-select-evidence[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%]{background-color:transparent}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-left:8px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding:0;font-size:12px;line-height:15px}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;min-height:90%;display:flex;flex-direction:column}'],data:{animation:dc}}),t})();function Ltt(t,n){if(1&t&&(G(0,"div",17)(1,"div",18)(2,"div"),he(3),W()(),G(4,"div",19)(5,"div",20),he(6),W()(),G(7,"div",18)(8,"div"),he(9),W()()()),2&t){const e=He().$implicit;K(3),Ft(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label,""),K(3),Ft(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," "),K(3),Zr(null==e.meta||null==e.meta.objectNode?null:e.meta.objectNode.label)}}function ktt(t,n){if(1&t&&(G(0,"div",21)(1,"div",18),he(2),W(),G(3,"div",22)(4,"div",20),he(5),W()()()),2&t){const e=He().$implicit;K(2),Ft(" ",null==e.meta||null==e.meta.subjectNode?null:e.meta.subjectNode.label," "),K(3),Ft(" ",null==e.meta||null==e.meta.edge?null:e.meta.edge.label," ")}}function Itt(t,n){if(1&t&&(G(0,"div",11)(1,"div",12),he(2),W(),G(3,"div",13)(4,"div",14)(5,"strong"),he(6),W(),he(7),W(),Ve(8,Ltt,10,3,"div",15),Ve(9,ktt,6,2,"div",16),W()()),2&t){const e=n.$implicit,i=n.index,r=He();K(2),Ft(" ",i+1," "),K(4),Zr(null==e.meta?null:e.meta.aspect),K(1),Ft(": ",e.message," "),K(1),oe("ngIf",e.type===r.ErrorType.relation),K(1),oe("ngIf",e.type===r.ErrorType.cardinality)}}let Ntt=(()=>{class t{constructor(e,i,r){this._matDialogRef=e,this._data=i,this.noctuaFormConfigService=r,this.ErrorType=ll,this.ErrorLevel=dl,this._unsubscribeAll=new z,this.errors=this._data.errors}ngOnInit(){}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(Od),de(lr))},t.\u0275cmp=En({type:t,selectors:[["app-cam-errors"]],decls:17,vars:1,consts:[[1,"dialog-content-wrapper"],[1,"mat-primary","m-0"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],[1,"title","dialog-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["mat-dialog-content","","noctuaPerfectScrollbar","",1,"noc-dialog-body"],["fxLayout","column","fxLayoutAlign","start stretch",1,""],["class","noc-error-row","fxLayout","row",4,"ngFor","ngForOf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-16"],["mat-raised-button","","color","",1,"mr-8",3,"click"],["fxLayout","row",1,"noc-error-row"],[1,"noc-number"],["fxFlex","",1,"noc-error-row-body"],[1,"noc-heading"],["class","pb-10","fxLayout","row",4,"ngIf"],["class","pb-10","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row",1,"pb-10"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-node-card"],["fxLayout","column","fxLayoutAlign","center stretch","fxFlex","",1,"noc-edge-card"],[1,"noc-line"],["fxLayout","row","fxLayoutAlign","center center",1,"pb-10"],["fxFlex","","fxLayout","column","fxLayoutAlign","center stretch",1,"noc-edge-card"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row",2)(3,"span",3),he(4," Violations"),W(),$e(5,"span",4),G(6,"button",5),it("click",function(){return i.close()}),G(7,"mat-icon"),he(8,"close"),W(),he(9," Close "),W()()(),G(10,"div",6)(11,"div",7),Ve(12,Itt,10,5,"div",8),W()(),G(13,"div",9),$e(14,"span",4),G(15,"button",10),it("click",function(){return i.close()}),he(16,"Close"),W()()()),2&e&&(K(12),oe("ngForOf",i.errors))},directives:[r3,n3,Vr,Lr,kr,Er,Mo,Fv,Fa,vo,er,Hv],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%]{border-bottom:#CCC double 1px;width:100%}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{padding:18px 2px;width:40px;min-width:40px;max-width:40px;background-color:#ddd;font-size:12px;text-align:center}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-error-row-body[_ngcontent-%COMP%]{padding:8px 10px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{padding:8px 0;font-size:14px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card[_ngcontent-%COMP%]{padding:5px;height:100px;min-height:100px;max-height:100px;width:250px;min-width:250px;max-width:250px;border:#AAA double 2px;font-size:10px;text-align:center;overflow:hidden}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-lg[_ngcontent-%COMP%]{height:100px;min-height:100px;max-height:100px;width:150px;min-width:150px;max-width:150px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-node-card.noc-long[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-error-row[_ngcontent-%COMP%] .noc-edge-card[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding-top:15px;height:35px;min-height:35px;max-height:35px;width:100%;min-width:100%;max-width:100%;border-bottom:#AAA solid 2px;text-align:center}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{margin:0;padding:0;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:900px;min-height:80%;display:flex;flex-direction:column}']}),t})();function Rtt(t,n){1&t&&$e(0,"noc-activity-form",1),2&t&&oe("closeDialog",He().closeDialog)}function ztt(t,n){1&t&&$e(0,"noc-activity-connector",1),2&t&&oe("closeDialog",He().closeDialog)}let nse=(()=>{class t{constructor(e,i,r,o){this._matDialogRef=e,this.activityFormService=i,this._data=r,this.noctuaFormConfigService=o,this.FormType=b_,this.closeDialog=this.close.bind(this),this._unsubscribeAll=new z,this.formType=r.formType}ngOnInit(){}close(){this._matDialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(ps),de(Od),de(lr))},t.\u0275cmp=En({type:t,selectors:[["app-create-activity-dialog"]],decls:2,vars:2,consts:[[3,"closeDialog",4,"ngIf"],[3,"closeDialog"]],template:function(e,i){1&e&&(Ve(0,Rtt,1,1,"noc-activity-form",0),Ve(1,ztt,1,1,"noc-activity-connector",0)),2&e&&(oe("ngIf",i.formType===i.FormType.ACTIVITY),K(1),oe("ngIf",i.formType===i.FormType.ACTIVITY_CONNECTOR))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}@media screen and (max-width: 599px){[_nghost-%COMP%]{width:100%}}@media (min-width: 600px){[_nghost-%COMP%]{width:600px}}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%]{position:relative;height:400px!important;min-height:400px!important;max-height:400px!important}[_nghost-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{position:relative;margin:0;padding:0;width:100%;min-width:100%;max-width:100%;height:100%!important;min-height:100%!important;max-height:100%!important}[_nghost-%COMP%] .mat-dialog-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .dialog-content-wrapper[_ngcontent-%COMP%]{width:900px;min-height:80%;display:flex;flex-direction:column}']}),t})();class PF{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const ise=new jn("referenceDropdownData");function Ftt(t,n){1&t&&(G(0,"span"),he(1," Activity Unit Form "),W())}function Htt(t,n){1&t&&(G(0,"span"),he(1," BP Annotation Form "),W())}function Vtt(t,n){1&t&&(G(0,"span"),he(1," CC Annotation Form "),W())}function Btt(t,n){1&t&&(G(0,"span"),he(1," Molecule Form "),W())}function Gtt(t,n){1&t&&(G(0,"span"),he(1," Protein Complex Form "),W())}function Ytt(t,n){1&t&&(G(0,"div",24),he(1," Log in to Continue "),W())}function Utt(t,n){1&t&&(G(0,"div",25),he(1," Note that this should be used rarely, and only in the case where the activity cannot be ascribed to a single subunit of a complex "),W())}function jtt(t,n){if(1&t&&(G(0,"div",28),$e(1,"noc-entity-form",29),W()),2&t){const e=n.$implicit;oe("formGroupName",He().index),K(1),oe("entityFormGroup",e)}}function Wtt(t,n){if(1&t&&(G(0,"div",26),Ve(1,jtt,2,2,"div",27),W()),2&t){const e=n.$implicit;let i;Af("mat-elevation-z1 noc-term-group mb-4 px-8 pt-4 ",e.get("name").value,""),oe("formArrayName","gp"),K(1),oe("ngForOf",null==(i=e.get("entityGroup"))?null:i.controls)}}function qtt(t,n){if(1&t&&(G(0,"mat-option",37),he(1),W()),2&t){const e=n.$implicit;oe("value",e),K(1),Ft(" ",e.label," ")}}function Xtt(t,n){if(1&t&&(G(0,"div",30)(1,"div",31)(2,"mat-form-field",32)(3,"mat-label")(4,"strong"),he(5,"(readonly)"),W(),he(6," Molecular Function "),W(),$e(7,"input",33),W()(),G(8,"div",34)(9,"mat-form-field",32)(10,"mat-label"),he(11,"Choose Causal Relation"),W(),G(12,"mat-select",35),Ve(13,qtt,2,2,"mat-option",36),W()()()()),2&t){const e=He();K(7),oe("readonly",!0),K(6),oe("ngForOf",e.noctuaFormConfigService.bpOnlyEdges.options)}}function $tt(t,n){1&t&&(G(0,"div",42)(1,"div"),he(2,"IS NOT"),W()())}function Qtt(t,n){if(1&t&&(Qr(0,43),$e(1,"noc-entity-form",44),Kr()),2&t){const e=n.$implicit;oe("formGroupName",He().index),K(1),oe("entityFormGroup",e)}}function Ktt(t,n){if(1&t&&(G(0,"div",38),Ve(1,$tt,3,0,"div",39),G(2,"div",40),Ve(3,Qtt,2,2,"ng-container",41),W()()),2&t){const e=n.$implicit;let i,r;Af("mat-elevation-z1 noc-term-group mb-4 px-8 ",e.get("name").value,""),oe("formArrayName","fd"),K(1),oe("ngIf",null==(i=e.get("isComplement"))?null:i.value),K(2),oe("ngForOf",null==(r=e.get("entityGroup"))?null:r.controls)}}function Ztt(t,n){if(1&t){const e=Nn();G(0,"button",45),it("click",function(){return Ut(e),He().checkErrors()}),he(1,' Why is the "Save" button disabled? '),W()}}const Jtt=function(){return{right:!0}};let BP=(()=>{class t{constructor(e,i,r,o){this.noctuaFormDialogService=e,this.noctuaUserService=i,this.noctuaFormConfigService=r,this.noctuaActivityFormService=o,this.ActivityState=EC,this.ActivityType=Wi,this.resizeStyle={},this.searchCriteria={},this.activityFormData=[],this.descriptionSectionTitle="Function Description",this.annotatedSectionTitle="Gene Product",this._unsubscribeAll=new z}ngOnInit(){this.activityFormSub=this.noctuaActivityFormService.activityFormGroup$.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.activityFormGroup=e,this.currentActivity=this.noctuaActivityFormService.currentActivity,this.activity=this.noctuaActivityFormService.activity,this.state=this.noctuaActivityFormService.state,this.molecularEntity=this.activityFormGroup.get("molecularEntity"),this.activity.activityType===Wi.ccOnly?this.descriptionSectionTitle="Localization Description":this.activity.activityType===Wi.molecule?(this.annotatedSectionTitle="Small Molecule",this.descriptionSectionTitle="Location (optional)"):this.descriptionSectionTitle="Function Description")})}resizeValidate(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<50||e.rectangle.height<50))}onResizeEnd(e){this.resizeStyle={width:`${e.rectangle.width}px`}}checkErrors(){this.noctuaFormDialogService.openActivityErrorsDialog(this.noctuaActivityFormService.activity.submitErrors)}save(){const e=this;e.noctuaActivityFormService.saveActivity().subscribe(()=>{e.noctuaFormDialogService.openInfoToast("Annotation successfully created.","OK"),e.noctuaActivityFormService.clearForm(),this.closeDialog&&this.closeDialog()})}preview(){this.noctuaFormDialogService.openPreviewActivityDialog()}clear(){this.noctuaActivityFormService.clearForm()}createExample(){this.noctuaActivityFormService.initializeFormData()}termDisplayFn(e){return e?e.label:void 0}close(){this.panelDrawer&&this.panelDrawer.close(),this.closeDialog&&this.closeDialog()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(gl),de(uo),de(lr),de(ps))},t.\u0275cmp=En({type:t,selectors:[["noc-activity-form"]],inputs:{panelDrawer:"panelDrawer",closeDialog:"closeDialog"},decls:45,vars:18,consts:[[1,"h-100-p"],["name","activityFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p",3,"formGroup"],["mwlResizeHandle","",1,"resize-handle-right",3,"resizeEdges"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],[3,"ngSwitch"],[4,"ngSwitchCase"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-activity-form"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["class","alert alert-warning w-100-p mb-0",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["mat-icon-button","",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-0"],[3,"formArrayName","class",4,"ngFor","ngForOf"],["class","mat-elevation-z1 noc-term-group mb-4 px-8 mf","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch",3,"formArrayName","class",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["mat-button","","color","warn","class","noc-rounded-button noc-sm",3,"click",4,"ngIf"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","submit","mat-raised-button","","color","primary",1,"",3,"disabled","click"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],[1,"alert","alert-warning","w-100-p","mb-0"],[3,"formArrayName"],["class","",3,"formGroupName",4,"ngFor","ngForOf"],[1,"",3,"formGroupName"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p",3,"entityFormGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"mat-elevation-z1","noc-term-group","mb-4","px-8","mf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start stretch",1,"p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","value","molecular_function (GO:0003674)",3,"readonly"],["fxFlex","600px","fxLayout","row","fxLayoutAlign","start stretch",1,"p-4"],["placeholder","","formControlName","bpOnlyEdge"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxLayout","row","fxLayoutAlign","start stretch",3,"formArrayName"],["class","noc-group-side-heading","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],[1,"w-100-p"],[3,"formGroupName",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-group-side-heading"],[3,"formGroupName"],[1,"",3,"entityFormGroup"],["mat-button","","color","warn",1,"noc-rounded-button","noc-sm",3,"click"]],template:function(e,i){if(1&e&&(G(0,"div",0)(1,"form",1),$e(2,"div",2),G(3,"div",3)(4,"div",4),Qr(5,5),Ve(6,Ftt,2,0,"span",6),Ve(7,Htt,2,0,"span",6),Ve(8,Vtt,2,0,"span",6),Ve(9,Btt,2,0,"span",6),Ve(10,Gtt,2,0,"span",6),Kr(),W(),$e(11,"span",7),G(12,"button",8),it("click",function(){return i.close()}),G(13,"mat-icon"),he(14,"close"),W(),he(15," Close "),W()(),G(16,"div",9),Ve(17,Ytt,2,0,"div",10),G(18,"div",11),Ve(19,Utt,2,0,"div",12),G(20,"div",13)(21,"div",14),he(22),W(),$e(23,"span",7),G(24,"button",15),it("click",function(){return i.createExample()}),he(25," . "),W()(),G(26,"div",16),Ve(27,Wtt,2,5,"div",17),W()(),G(28,"div",11)(29,"div",13)(30,"div",14),he(31),W(),$e(32,"span",7),W(),G(33,"div",16),Ve(34,Xtt,14,2,"div",18),Ve(35,Ktt,4,6,"div",19),W()()(),G(36,"div",20),Ve(37,Ztt,2,0,"button",21),$e(38,"span",7),G(39,"button",22),it("click",function(){return i.preview()}),he(40,"Preview"),W(),G(41,"button",22),it("click",function(){return i.clear()}),he(42,"Clear"),W(),G(43,"button",23),it("click",function(){return i.save()}),he(44,"Save"),W()()()()),2&e){let r,o;K(1),oe("formGroup",i.activityFormGroup),K(1),oe("resizeEdges",ai(17,Jtt)),K(3),oe("ngSwitch",i.noctuaActivityFormService.activity.activityType),K(1),oe("ngSwitchCase",i.ActivityType.default),K(1),oe("ngSwitchCase",i.ActivityType.bpOnly),K(1),oe("ngSwitchCase",i.ActivityType.ccOnly),K(1),oe("ngSwitchCase",i.ActivityType.molecule),K(1),oe("ngSwitchCase",i.ActivityType.proteinComplex),K(7),oe("ngIf",!i.noctuaUserService.user),K(2),oe("ngIf",i.noctuaActivityFormService.activity.activityType===i.ActivityType.proteinComplex),K(3),Ft(" ",i.annotatedSectionTitle," "),K(5),oe("ngForOf",null==(r=i.activityFormGroup.get("gp"))?null:r.controls),K(4),Ft(" ",i.descriptionSectionTitle," "),K(3),oe("ngIf",i.noctuaActivityFormService.activity.activityType===i.ActivityType.bpOnly),K(1),oe("ngForOf",null==(o=i.activityFormGroup.get("fd"))?null:o.controls),K(2),oe("ngIf",i.noctuaActivityFormService.activity.submitErrors.length>0),K(6),oe("disabled",i.noctuaActivityFormService.activity.submitErrors.length>0)}},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:40px;min-width:40px;max-width:40px;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] noc-entity-form[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{padding-right:8px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px;background-color:#ddd;font-size:10px;text-align:center}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{width:250px;height:100px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;text-align:center;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:move;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:100%;border-bottom:rgba(59,89,152,.6) solid 1px;font-size:12px;color:#777}[_nghost-%COMP%] .noc-activity-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%]{padding-bottom:200px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{background-color:#fff;border-left:#fff solid 5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group.mf[_ngcontent-%COMP%]{border-left-color:#7cd488cc}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group.bp[_ngcontent-%COMP%]{border-left-color:#f4c89ccc}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group.cc[_ngcontent-%COMP%]{border-left-color:#d3b5f5cc}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;background-color:#fafafa;width:35px;height:35px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;max-height:14px;color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#222}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;border-right:rgba(0,0,0,.12) solid 1px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-tree-input.noc-level-0[_ngcontent-%COMP%]{border:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%]{margin:0;padding-top:20px;padding-bottom:8px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{top:0px;bottom:auto!important;left:5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] .md-errors-spacer[_ngcontent-%COMP%]{visibility:hidden;display:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-submit-row[_ngcontent-%COMP%]{margin:10px 0;padding:10px 0;background-color:#fff}']}),t})();class EF{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const rse=new jn("withDropdownData");function ent(t,n){if(1&t){const e=Nn();G(0,"div")(1,"div",10)(2,"mat-form-field",14),$e(3,"input",15),W(),G(4,"button",7),it("click",function(){Ut(e);const r=He().$implicit;return He().addNewProject(r.controls.projects)}),G(5,"mat-icon"),he(6,"add"),W()(),G(7,"button",7),it("click",function(){const o=Ut(e).index,a=He().$implicit;return He().deleteProject(a.controls.projects,o)}),G(8,"mat-icon"),he(9,"delete_forever"),W()()()()}if(2&t){const e=n.index;He(2);const i=Di(4);K(1),oe("formGroupName",e),K(2),oe("matAutocomplete",i)}}function tnt(t,n){if(1&t){const e=Nn();G(0,"div",16)(1,"a",17),it("click",function(){Ut(e);const r=He().$implicit;return He().addNewProject(r.controls.projects)}),he(2," Add With/From "),W()()}}function nnt(t,n){if(1&t&&(G(0,"div",9)(1,"div",10)(2,"div",11),Ve(3,ent,10,2,"div",12),Ve(4,tnt,3,0,"div",13),W()()()),2&t){const e=n.$implicit,i=n.index;K(1),oe("formGroupName",i),K(2),oe("ngForOf",e.get("projects").controls),K(1),oe("ngIf",0===e.get("projects").controls.length)}}function int(t,n){if(1&t&&(G(0,"mat-option",18),he(1),W()),2&t){const e=n.$implicit;oe("value",e),K(1),Ft(" ",e," ")}}let rnt=(()=>{class t{constructor(e,i,r,o,a,c,u){this.fb=e,this.dialogRef=i,this.data=r,this.noctuaLookupService=o,this.noctuaFormDialogService=a,this.noctuaFormConfigService=c,this.noctuaActivityFormService=u,this.weeks=[],this.connectedTo=[],this.indata={companies:[{projects:[{projectName:"WB:145787"}]}]},this.options=eQe,this._unsubscribeAll=new z,this.formControl=r.formControl,this.myForm=this.fb.group({companies:this.fb.array([])});const f=this.formControl.value;f&&f.split(",").map(B=>B.split("|")),this.weeks=[{id:"week-1",weeklist:["item 1","item 2","item 3","item 4","item 5"]},{id:"week-2",weeklist:["item 1","item 2","item 3","item 4","item 5"]}];for(let w of this.weeks)this.connectedTo.push(w.id)}_filter(e){const i=e.toLowerCase();return this.options.filter(r=>r.toLowerCase().includes(i))}ngOnInit(){this.evidenceDBForm=this._createEvidenceDBForm()}clearValues(){}addNewCompany(){this.myForm.controls.companies.push(this.fb.group({company:[""],projects:this.fb.array([])}))}deleteCompany(e){this.myForm.controls.companies.removeAt(e)}addNewProject(e,i){const r=new br(i);e.push(this.fb.group({projectName:r})),this._onValueChange(r)}deleteProject(e,i){e.removeAt(i)}setCompanies(){let e=this.myForm.controls.companies;this.indata.companies.forEach(i=>{e.push(this.fb.group({projects:this.setProjects(i)}))})}setProjects(e){let i=new Ah([]);return e.projects.forEach(r=>{this.addNewProject(i,r.projectName)}),i}drop(e){e.previousContainer===e.container?hne(e.container.data,e.previousIndex,e.currentIndex):function ABe(t,n,e,i){const r=Kv(e,t.length-1),o=Kv(i,n.length);t.length&&n.splice(o,0,t.splice(r,1)[0])}(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex)}save(){const i=[];let r=!0;const o=this.myForm.value.companies.map(a=>a.projects.map(c=>{if(!c.projectName.includes(":")){const u=new q2(dl.error,ll.general,`${c.projectName} wrong format, Did you forget ':'`);i.push(u),r=!1}return c.projectName}).join("|")).join(",");r?(this.formControl.setValue(o),this.close()):this.noctuaFormDialogService.openActivityErrorsDialog(i)}cancelEvidenceDb(){this.evidenceDBForm.controls.accession.setValue("")}_createEvidenceDBForm(){return new r2({db:new br(this.noctuaFormConfigService.evidenceDBs.selected),accession:new br("",[I6.required])})}_onValueChange(e){this.filteredOptions=e.valueChanges.pipe(Ln(this._unsubscribeAll),ns(),Ls(400),Zs(""),Qe(r=>this._filter(r)))}close(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Zd),de(EF),de(rse),de(X2),de(gl),de(lr),de(ps))},t.\u0275cmp=En({type:t,selectors:[["noc-with-dropdown"]],decls:16,vars:5,consts:[["novalidate","","fxLayout","column","fxLayoutAlign","start stretch",1,"pl-8","pr-8","w-100-p",3,"formGroup"],["formArrayName","companies","fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"noc-form-secion","w-100-p"],["class","noc-with-group",4,"ngFor","ngForOf"],["withAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-button","",3,"click"],["fxLayout","row","fxLayoutAlign","end center",1,"w-100-p"],["mat-icon-button","",3,"click"],["mat-icon-button","","color","primary",3,"click"],[1,"noc-with-group"],[3,"formGroupName"],["formArrayName","projects"],[4,"ngFor","ngForOf"],["class","p-16",4,"ngIf"],["appearance","outline","fxFlex","",1,"noc-sm","w-100-p"],["matInput","","formControlName","projectName","type","text","placeholder","Accession","autocomplete","off",3,"matAutocomplete"],[1,"p-16"],[3,"click"],[3,"value"]],template:function(e,i){if(1&e&&(G(0,"form",0)(1,"div",1),Ve(2,nnt,5,3,"div",2),G(3,"mat-autocomplete",null,3),Ve(5,int,2,2,"mat-option",4),E0(6,"async"),W(),G(7,"button",5),it("click",function(){return i.addNewCompany()}),he(8,"Add Group"),W(),$e(9,"br")(10,"br"),W(),G(11,"div",6)(12,"button",7),it("click",function(){return i.close()}),he(13," Cancel "),W(),G(14,"button",8),it("click",function(){return i.save()}),he(15," Ok "),W()()()),2&e){let r;oe("formGroup",i.myForm),K(2),oe("ngForOf",null==(r=i.myForm.get("companies"))?null:r.controls),K(3),oe("ngForOf",Ng(6,3,i.filteredOptions))}},directives:[U2,Il,Lr,kr,al,$f,Fa,vo,om,Jd,Vr,Dh,yd,Jp,E1,o2,Er,Mo,er,Kf,xd],pipes:[oM],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding-top:8px;width:100%;width:400px;min-width:400px;max-width:400px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-form-secion[_ngcontent-%COMP%]{max-height:500px}[_nghost-%COMP%] .noc-form-secion[_ngcontent-%COMP%] .noc-with-group[_ngcontent-%COMP%]{border:#74725c solid 1px;margin-bottom:16px}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%]{padding:12px 5px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:12px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{max-height:60px;overflow:hidden}']}),t})();const ont={hasBackdrop:!0,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let ant=(()=>{class t{constructor(e,i){this.injector=e,this.overlay=i}open(e,i={}){const r=Object.assign(Object.assign({},ont),i);r.positionStrategy=this._getPosition(e);const a=this.createOverlay(r),c=new EF(a);return this.attachDialogContainer(a,r,c),a.backdropClick().subscribe(f=>c.close()),c}close(e){}createInjector(e,i){const r=new WeakMap;return r.set(EF,i),r.set(rse,e.data),new bO(this.injector,r)}attachDialogContainer(e,i,r){const o=this.createInjector(i,r),a=new Kd(rnt,null,o);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Eh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{overlayX:"end",overlayY:"top",originX:"end",originY:"bottom"}])}getLink(){}}return t.\u0275fac=function(e){return new(e||t)(Rt(hs),Rt(ol))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class TF{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const ose=new jn("detailDropdownData");function snt(t,n){if(1&t){const e=Nn();G(0,"div"),he(1),G(2,"small"),he(3),W(),G(4,"a",12),it("click",function(){const o=Ut(e).$implicit;return He().useTerm(o)}),he(5," Use "),W()()}if(2&t){const e=n.$implicit;K(1),Ft(" ",e.label,""),K(2),Ft("(",e.id,")")}}let cnt=(()=>{class t{constructor(e,i,r,o){this.dialogRef=e,this.data=i,this.noctuaFormDialogService=r,this.noctuaFormConfigService=o,this._unsubscribeAll=new z,this.formControl=i.formControl,this.termDetail=i.termDetail}ngOnInit(){}clearValues(){}save(){const i=this.evidenceDBForm.value.db,r=this.evidenceDBForm.value.accession;let a=!0;""===r.trim()&&(this.noctuaFormDialogService.openActivityErrorsDialog([]),a=!1),a&&(this.formControl.setValue(i.name+":"+r.trim()),this.close())}useTerm(e){this.formControl.setValue(e)}cancelEvidenceDb(){this.evidenceDBForm.controls.accession.setValue("")}close(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(TF),de(ose),de(gl),de(lr))},t.\u0275cmp=En({type:t,selectors:[["noc-detail-dropdown"]],decls:30,vars:5,consts:[[1,"noc-item-details","noc-drawer","w-100-p",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-header-title"],[1,"text-truncate"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close Selected Item",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-body","w-100-p"],[1,"noc-section-row"],[1,"noc-title"],[1,"noc-description"],[4,"ngFor","ngForOf"],[1,"noc-footer","w-100-p"],[3,"click"]],template:function(e,i){1&e&&(G(0,"div",0),it("click",function(o){return o.stopPropagation()}),G(1,"div",1)(2,"div",2)(3,"div",3),he(4),W()(),$e(5,"span",4),G(6,"button",5),it("click",function(o){return o.stopPropagation(),i.close()}),G(7,"mat-icon"),he(8,"close"),W(),he(9," Close "),W()(),G(10,"div",6)(11,"div",7)(12,"div",8),he(13," Term "),W(),G(14,"div",9),he(15),G(16,"small"),he(17),W()()(),G(18,"div",7)(19,"div",8),he(20," Definition "),W(),G(21,"div",9),he(22),W()(),G(23,"div",7)(24,"div",8),he(25," Is A Type Of "),W(),G(26,"div",9),Ve(27,snt,6,2,"div",10),W()()(),G(28,"div",11),$e(29,"span",4),W()()),2&e&&(K(4),Ft(" ",i.termDetail.label," "),K(11),Ft(" ",i.termDetail.label," "),K(2),Ft("(",i.termDetail.id,")"),K(5),Ft(" ",i.termDetail.description," "),K(5),oe("ngForOf",i.termDetail.rootTypes))},directives:[Lr,kr,Vr,Er,Mo,Fa,vo],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;width:400px;min-width:400px;max-width:400px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%]{max-height:500px;min-height:400px;background-color:#faf9e9}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:transparent;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;z-index:10001}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-header-title[_ngcontent-%COMP%]{max-width:200px;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:10px 8px;height:400px}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:transparent;border-top:1px solid #CCC;z-index:10002;box-shadow:none}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%]{padding:10px 0}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-bottom:8px;font-weight:700;font-size:14px;text-transform:uppercase}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%]{padding:12px 5px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:12px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{max-height:60px;overflow:hidden}']}),t})();const lnt={hasBackdrop:!1,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let dnt=(()=>{class t{constructor(e,i){this.injector=e,this.overlay=i}open(e,i={}){const r=Object.assign(Object.assign({},lnt),i);this.dialogRef&&this.dialogRef.close(),r.positionStrategy=this._getPosition(e);const a=this.createOverlay(r),c=new TF(a);return this.attachDialogContainer(a,r,c),a.backdropClick().subscribe(f=>c.close()),this.dialogRef=c,c}close(e){}createInjector(e,i){const r=new WeakMap;return r.set(TF,i),r.set(ose,e.data),new bO(this.injector,r)}attachDialogContainer(e,i,r){const o=this.createInjector(i,r),a=new Kd(cnt,null,o);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Eh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{originX:"end",originY:"center",overlayX:"start",overlayY:"center"}])}}return t.\u0275fac=function(e){return new(e||t)(Rt(hs),Rt(ol))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const unt=["evidenceDBreferenceMenuTrigger"];function hnt(t,n){1&t&&$e(0,"div",19)}function pnt(t,n){if(1&t&&(G(0,"div",17),Ve(1,hnt,1,0,"div",18),W()),2&t){const e=He();K(1),oe("ngIf",2===e.entity.treeLevel)}}function fnt(t,n){1&t&&$e(0,"div",23)}function gnt(t,n){1&t&&$e(0,"div",24)}function mnt(t,n){if(1&t&&(G(0,"div",20),Ve(1,fnt,1,0,"div",21),Ve(2,gnt,1,0,"div",22),W()),2&t){const e=He();K(1),oe("ngIf",3===e.entity.treeLevel),K(1),oe("ngIf",e.entity.treeLevel<3)}}function _nt(t,n){1&t&&$e(0,"div",23)}function vnt(t,n){1&t&&$e(0,"div",24)}function Cnt(t,n){if(1&t&&(G(0,"div",25),Ve(1,_nt,1,0,"div",21),Ve(2,vnt,1,0,"div",22),W()),2&t){const e=He();K(1),oe("ngIf",4===e.entity.treeLevel),K(1),oe("ngIf",e.entity.treeLevel<4)}}function bnt(t,n){1&t&&$e(0,"div",23)}function xnt(t,n){1&t&&$e(0,"div",24)}function ynt(t,n){if(1&t&&(G(0,"div",25),Ve(1,bnt,1,0,"div",21),Ve(2,xnt,1,0,"div",22),W()),2&t){const e=He();K(1),oe("ngIf",5===e.entity.treeLevel),K(1),oe("ngIf",e.entity.treeLevel<5)}}function wnt(t,n){if(1&t&&(G(0,"a",35),it("click",function(i){return i.stopPropagation()}),he(1),W()),2&t){const e=He().$implicit;Yr("href",e.link,ir),K(1),Ft(" ",e.id," ")}}function Mnt(t,n){if(1&t&&(G(0,"span"),he(1),W()),2&t){const e=He().$implicit;K(1),Ft(" ",e.id," ")}}const Ont=function(){return["fas","chevron-right"]};function Snt(t,n){if(1&t){const e=Nn();G(0,"mat-option",26)(1,"div",27)(2,"div",28),he(3),W(),$e(4,"span",29),G(5,"div",30),Ve(6,wnt,2,2,"a",31),Ve(7,Mnt,2,1,"span",32),W(),G(8,"button",33),it("click",function(r){const a=Ut(e).$implicit;return He().openTermDetails(r,a)}),$e(9,"fa-icon",34),W()()()}if(2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(3),oe("ngIf",e.link),K(1),oe("ngIf",!e.link),K(2),oe("icon",ai(5,Ont))}}function Pnt(t,n){if(1&t&&(G(0,"a",35),it("click",function(i){return i.stopPropagation()}),he(1),W()),2&t){const e=He().$implicit;Yr("href",e.link,ir),K(1),Ft(" ",e.id," ")}}function Ent(t,n){if(1&t&&(G(0,"span"),he(1),W()),2&t){const e=He().$implicit;K(1),Ft(" ",e.id," ")}}function Tnt(t,n){if(1&t&&(G(0,"mat-option",26)(1,"div",27)(2,"div",28),he(3),W(),$e(4,"span",29),G(5,"div",60)(6,"strong"),he(7),W()(),G(8,"div",30),Ve(9,Pnt,2,2,"a",31),Ve(10,Ent,2,1,"span",32),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(4),Ft(" ",e.xref," "),K(2),oe("ngIf",e.link),K(1),oe("ngIf",!e.link)}}function Ant(t,n){if(1&t&&(G(0,"mat-option",26)(1,"div",27)(2,"div",28),he(3),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e," ")}}function Dnt(t,n){if(1&t&&(G(0,"mat-option",26)(1,"div",27)(2,"div",28),he(3),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e," ")}}function Lnt(t,n){1&t&&(G(0,"button",61)(1,"mat-icon"),he(2,"more_vert"),W()()),2&t&&(He(),oe("matMenuTriggerFor",Di(32)))}function knt(t,n){if(1&t){const e=Nn();G(0,"button",55),it("click",function(){Ut(e);const r=He(2);return r.openSearchDatabaseDialog(r.entity)}),he(1," Search Annotations "),W()}}function Int(t,n){if(1&t){const e=Nn();G(0,"button",55),it("click",function(){Ut(e);const r=He(2);return r.toggleIsComplement(r.entity)}),he(1," NOT Qualifier "),W()}}function Nnt(t,n){1&t&&(G(0,"button",54),he(1," Add an Extension "),W()),2&t&&(He(),oe("matMenuTriggerFor",Di(42)))}function Rnt(t,n){if(1&t){const e=Nn();G(0,"button",55),it("click",function(){return Ut(e),He(2).addRootTerm()}),he(1," Add Root Term "),W()}}function znt(t,n){if(1&t){const e=Nn();G(0,"button",62),it("click",function(){const o=Ut(e).$implicit;return He(2).insertEntityShex(o)}),he(1),G(2,"div",63),he(3),W()()}if(2&t){const e=n.$implicit;K(1),Ft(" ",null==e?null:e.label," "),K(2),Ft(" ",null==e?null:e.rangeLabel," ")}}function Fnt(t,n){if(1&t){const e=Nn();G(0,"div",36)(1,"div",37)(2,"div",38)(3,"mat-form-field",5)(4,"mat-label"),he(5,"Evidence"),W(),G(6,"textarea",39),it("focus",function(){Ut(e);const r=He();return r.updateEvidenceList(r.entity)}),W(),G(7,"mat-autocomplete",40,41),Ve(9,Tnt,11,5,"mat-option",10),W()()(),G(10,"div",42)(11,"mat-form-field",5)(12,"mat-label"),he(13,"Reference"),W(),G(14,"textarea",43),it("focus",function(){return Ut(e),He().updateReferenceList()}),W(),G(15,"button",44),it("click",function(r){const a=Ut(e).$implicit;return He().openAddReference(r,a,"reference")}),G(16,"mat-icon"),he(17,"playlist_add"),W()(),G(18,"mat-autocomplete",45,46),Ve(20,Ant,4,2,"mat-option",10),W()()(),G(21,"div",47)(22,"mat-form-field",5)(23,"mat-label"),he(24,"With"),W(),G(25,"textarea",48),it("focus",function(){return Ut(e),He().updateWithList()}),W(),G(26,"mat-autocomplete",45,49),Ve(28,Dnt,4,2,"mat-option",10),W()()(),$e(29,"span",29),Ve(30,Lnt,3,1,"button",13),G(31,"mat-menu",50,51),Ve(33,knt,2,0,"button",52),Ve(34,Int,2,0,"button",52),Ve(35,Nnt,2,1,"button",53),G(36,"button",54),he(37,"Evidence"),W(),Ve(38,Rnt,2,0,"button",52),G(39,"button",55),it("click",function(){return Ut(e),He().clearValues()}),he(40," Clear Values "),W()(),G(41,"mat-menu",14,56),Ve(43,znt,4,2,"button",16),W(),G(44,"mat-menu",57,58)(46,"button",55),it("click",function(){return Ut(e),He().addEvidence()}),he(47," Add Evidence "),W(),G(48,"button",59),it("click",function(){const o=Ut(e).index;return He().removeEvidence(o)}),he(49," Remove Evidence "),W(),G(50,"button",55),it("click",function(){return Ut(e),He().openSelectEvidenceDialog()}),he(51," Clone Evidence "),W()()()()}if(2&t){const e=n.index,i=Di(8),r=Di(19),o=Di(27),a=Di(45),c=He();K(1),oe("formGroupName",e),K(5),oe("matAutocomplete",i),K(1),oe("displayWith",c.evidenceDisplayFn),K(2),oe("ngForOf",null==c.entity||null==c.entity.predicate?null:c.entity.predicate.evidenceLookup.results),K(5),oe("matAutocomplete",r),K(6),oe("ngForOf",null==c.entity||null==c.entity.predicate?null:c.entity.predicate.referenceLookup.results),K(5),oe("matAutocomplete",o),K(3),oe("ngForOf",null==c.entity||null==c.entity.predicate?null:c.entity.predicate.withLookup.results),K(2),oe("ngIf",!c.displayAddButton),K(3),oe("ngIf",c.entity.aspect),K(1),oe("ngIf",!0),K(1),oe("ngIf",(null==c.entity.insertMenuNodes?null:c.entity.insertMenuNodes.length)>0),K(1),oe("matMenuTriggerFor",a),K(2),oe("ngIf",c.entity.aspect),K(5),oe("ngForOf",c.entity.insertMenuNodes)}}const Hnt=function(){return["fas","plus"]};function Vnt(t,n){1&t&&(G(0,"button",61),$e(1,"fa-icon",34),W()),2&t&&(He(),oe("matMenuTriggerFor",Di(19)),K(1),oe("icon",ai(2,Hnt)))}function Bnt(t,n){if(1&t){const e=Nn();G(0,"button",62),it("click",function(){const o=Ut(e).$implicit;return He().insertEntityShex(o)}),he(1),G(2,"div",63),he(3),W()()}if(2&t){const e=n.$implicit;K(1),Ft(" ",null==e?null:e.label," "),K(2),Ft(" ",null==e?null:e.rangeLabel," ")}}let Gnt=(()=>{class t{constructor(e,i,r,o,a,c,u){this.noctuaFormDialogService=e,this.camService=i,this.inlineReferenceService=r,this.inlineDetailService=o,this.inlineWithService=a,this.noctuaFormConfigService=c,this.noctuaActivityFormService=u,this.activityNodeType=vn,this.displayAddButton=!1,this.unsubscribeAll=new z}ngOnInit(){this.entity=this.noctuaActivityFormService.activity.getNode(this.entityFormGroup.get("id").value),this.friendNodes=this.camService.getNodesByType(this.entity.type),this.noctuaActivityFormService.activity.activityType===Wi.ccOnly&&this.entity.type===vn.GoMolecularEntity&&(this.displayAddButton=!0),this.noctuaActivityFormService.activity.activityType===Wi.proteinComplex&&this.entity.type===vn.GoProteinContainingComplex&&(this.displayAddButton=!0)}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}addEvidence(){this.entity.predicate.addEvidence(),this.noctuaActivityFormService.initializeForm()}useTerm(e,i){const r=this;switch(r.entity.term=e.term,r.entity.type){case vn.GoBiologicalProcess:case vn.GoCellularComponent:r.entity.linkedNode=!0,r.entity.uuid=e.uuid,r.noctuaActivityFormService.activity.insertSubgraph(i,r.entity,e)}r.noctuaActivityFormService.initializeForm()}removeEvidence(e){this.entity.predicate.removeEvidence(e),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(e){const r=[];let o=!0;(0,Nt.each)(e.nodeGroup.nodes,function(a){if(a.isExtension){o=!1;const u=new q2(dl.error,ll.general,`Cannot add 'NOT Qualifier', Remove Extension'${a.label}'`,{aspect:a.label});r.push(u)}}),o?(e.toggleIsComplement(),this.noctuaActivityFormService.initializeForm()):this.noctuaFormDialogService.openActivityErrorsDialog(r)}openSearchDatabaseDialog(e){const i=this,r=this.noctuaActivityFormService.activity.getGPNode();if(r&&r.hasValue()){const a=c=>{c.term&&(e.term=new _i(c.term.term.id,c.term.term.label),c.evidences&&c.evidences.length>0&&(e.predicate.setEvidence(c.evidences),c.evidences.forEach(u=>{u.evidenceExts.forEach(f=>{f.relations.forEach(w=>{const E=i.noctuaFormConfigService.insertActivityNodeByPredicate(i.noctuaActivityFormService.activity,i.entity,w.id);E.term=new _i(f.term.id,f.term.id),E.predicate.setEvidence([u])})})})),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:r.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}else{const a=new q2(dl.error,ll.general,"Please enter a gene product",{aspect:"Gene Product"});i.noctuaFormDialogService.openActivityErrorsDialog([a])}}openSearchEvidenceDialog(e){const i=this,r=this.noctuaActivityFormService.activity.getGPNode();if(r){const a=function(c){c&&c.evidences&&(e.predicate.setEvidence(c.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchEvidenceDialog({readonly:!1,gpNode:r.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}linkNode(e){const i=this,r=this.camService.getNodesByType(e.type);i.noctuaFormDialogService.openLinkToExistingDialogComponent({entity:e,nodes:r},function(c){if(c.activityNode){const u=c.activityNode;e.uuid=u.uuid,e.term=u.term,e.linkedNode=!0,i.noctuaActivityFormService.initializeForm()}})}unlinkNode(e){e.linkedNode=!1,e.uuid=null}openSearchModels(){this.noctuaActivityFormService.activity.getGPNode()}insertEntity(e){this.noctuaFormConfigService.insertActivityNode(this.noctuaActivityFormService.activity,this.entity,e),this.noctuaActivityFormService.initializeForm()}insertEntityShex(e){this.noctuaFormConfigService.insertActivityNodeShex(this.noctuaActivityFormService.activity,this.entity,e),this.noctuaActivityFormService.initializeForm()}addRootTerm(){const e=this,i=(0,Nt.find)(Ht.rootNode,r=>r.aspect===e.entity.aspect);if(i){e.entity.term=new _i(i.id,i.label),e.noctuaActivityFormService.initializeForm();const r=new Rl;r.setEvidence(new _i(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),r.reference=Ht.evidenceAutoPopulate.nd.reference,e.entity.predicate.setEvidence([r]),e.noctuaActivityFormService.initializeForm()}}clearValues(){this.entity.clearValues(),this.noctuaActivityFormService.initializeForm()}removeNode(){const e=this;e.noctuaActivityFormService.activity.removeNode(e.entity),e.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(){const e=this,i=this.camService.getUniqueEvidence(e.noctuaActivityFormService.activity);e.noctuaFormDialogService.openSelectEvidenceDialog(i,o=>{o.evidences&&o.evidences.length>0&&(e.entity.predicate.setEvidence(o.evidences),e.noctuaActivityFormService.initializeForm())})}updateMenu(e){console.log(e.rootTypes),this.noctuaActivityFormService.initializeForm(e.rootTypes)}updateTermList(){this.camService.updateTermList(this.noctuaActivityFormService.activity,this.entity)}updateEvidenceList(){this.camService.updateEvidenceList(this.noctuaActivityFormService.activity,this.entity)}updateReferenceList(){this.camService.updateReferenceList(this.noctuaActivityFormService.activity,this.entity)}updateWithList(){this.camService.updateWithList(this.noctuaActivityFormService.activity,this.entity)}openAddReference(e,i,r){e.stopPropagation(),this.inlineReferenceService.open(e.target,{data:{formControl:i.controls[r]}})}openAddWith(e,i,r){e.stopPropagation(),this.inlineWithService.open(e.target,{data:{formControl:i.controls[r]}})}unselectItemDisplay(){this.selectedItemDisplay=null}openTermDetails(e,i){e.stopPropagation(),this.inlineDetailService.open(e.target,{data:{termDetail:i,formControl:this.entityFormGroup.controls.term}})}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}referenceDisplayFn(e){return"string"==typeof e?e:e&&e.reference?e.reference:void 0}withDisplayFn(e){return"string"==typeof e?e:e&&e.with?e.with:void 0}}return t.\u0275fac=function(e){return new(e||t)(de(gl),de(Zo),de(KC),de(dnt),de(ant),de(lr),de(ps))},t.\u0275cmp=En({type:t,selectors:[["noc-entity-form"]],viewQuery:function(e,i){if(1&e&&fr(unt,7,Zl),2&e){let r;hi(r=pi())&&(i.evidenceDBreferenceMenuTrigger=r.first)}},inputs:{entityFormGroup:"entityFormGroup"},decls:21,vars:12,consts:[["fxLayout","row","fxLayoutAlign","start stretch",1,"w-100-p",3,"formGroup"],["class","noc-tree-input noc-level-1","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["class","noc-tree-input noc-level-2","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["class","noc-tree-input noc-level-3","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","flex","fxLayout","row","fxLayoutAlign","start stretch",1,"p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","term","row","2",3,"matAutocomplete","focus"],["fxLayout","row","fxLayoutAlign","start start",1,"noc-term-autocomplete",3,"displayWith","optionSelected"],["termAuto","matAutocomplete"],["fxFlex","400px",1,""],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60%","fxLayout","column","fxLayoutAlign","start stretch"],["formArrayName","evidenceFormArray",4,"ngFor","ngForOf"],["mat-icon-button","","class","noc-action-button","fxFlex","40px",3,"matMenuTriggerFor",4,"ngIf"],[1,"noc-extensions-menu-panel"],["ccOnlyAddMenu","matMenu"],["mat-menu-item","","fxLayout","column","fxLayoutAlign","start start","class","w-100-p",3,"click",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-tree-input","noc-level-1"],["class","noc-tree-line line-m","fxFlex","",4,"ngIf"],["fxFlex","",1,"noc-tree-line","line-m"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-tree-input","noc-level-2"],["class","noc-tree-line line-t","fxFlex","50%",4,"ngIf"],["class","noc-tree-line iine-b","fxFlex","50%",4,"ngIf"],["fxFlex","50%",1,"noc-tree-line","line-t"],["fxFlex","50%",1,"noc-tree-line","iine-b"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-tree-input","noc-level-3"],[3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],["fxFlex",""],[1,"noc-term-id"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"noc-term-detail-trigger","noc-rounded-button","noc-sm","ml-8",3,"click"],[3,"icon"],["target","_blank",3,"href","click"],["formArrayName","evidenceFormArray"],["fxLayout","row","fxLayoutAlign","start stretch",1,"w-100-p",3,"formGroupName"],["fxFlex","55",1,"p-4"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete","focus"],[1,"noc-term-autocomplete",3,"displayWith"],["evidenceAuto","matAutocomplete"],["fxFlex","25",1,"p-4"],["matInput","","formControlName","reference","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],[1,"noc-term-autocomplete"],["referenceAuto","matAutocomplete"],["fxFlex","","fxFlex","20",1,"p-4"],["matInput","","formControlName","with","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["withAuto","matAutocomplete"],[1,"noc-dropdown-menu","noc-menu-panel"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",1,"",3,"click"],["addMenu","matMenu"],[1,"noc-menu-panel"],["evidenceMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"noc-term-id","mr-8"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor"],["mat-menu-item","","fxLayout","column","fxLayoutAlign","start start",1,"w-100-p",3,"click"],[1,"noc-terms-description"]],template:function(e,i){if(1&e&&(G(0,"div",0),Ve(1,pnt,2,1,"div",1),Ve(2,mnt,3,2,"div",2),Ve(3,Cnt,3,2,"div",3),Ve(4,ynt,3,2,"div",3),G(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),he(8),W(),G(9,"textarea",6),it("focus",function(){return i.updateTermList()}),he(10," "),W(),G(11,"mat-autocomplete",7,8),it("optionSelected",function(o){return i.updateMenu(o.option.value)}),G(13,"div",9),Ve(14,Snt,10,6,"mat-option",10),W()()()(),G(15,"div",11),Ve(16,Fnt,52,15,"div",12),W(),Ve(17,Vnt,2,3,"button",13),G(18,"mat-menu",14,15),Ve(20,Bnt,4,2,"button",16),W()()),2&e){const r=Di(12);let o;oe("formGroup",i.entityFormGroup),K(1),oe("ngIf",i.entity.treeLevel>1),K(1),oe("ngIf",i.entity.treeLevel>2),K(1),oe("ngIf",i.entity.treeLevel>3),K(1),oe("ngIf",i.entity.treeLevel>4),K(4),Zr(i.entity.label),K(1),oe("matAutocomplete",r),K(2),oe("displayWith",i.termDisplayFn),K(3),oe("ngForOf",null==i.entity?null:i.entity.termLookup.results),K(2),oe("ngForOf",null==(o=i.entityFormGroup.get("evidenceFormArray"))?null:o.controls),K(1),oe("ngIf",i.displayAddButton),K(3),oe("ngForOf",i.entity.insertMenuNodes)}},directives:[Lr,kr,Il,al,er,Vr,Jd,Ru,Dh,yd,Jp,E1,o2,Kf,vo,xd,Er,ks,$f,om,kv,Mo,Zl,T1,sl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] .noc-tree-input.noc-level-1[_ngcontent-%COMP%]{border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line[_ngcontent-%COMP%]{width:100%;border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-t[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-left:rgba(0,0,0,.2) dotted 2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-m[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-form-chip-row[_ngcontent-%COMP%]{padding:8px 5px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%]{padding:0 0 0 8px;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-mf[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-mf[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-bp[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-bp[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-cc[_ngcontent-%COMP%]{border:rgba(211,181,245,.8) solid 1px;background-color:#d3b5f533}[_nghost-%COMP%] mat-chip.noc-form-chip.noc-node-chip.noc-cc[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d3b5f5cc}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] textarea[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover icon[_ngcontent-%COMP%]{color:#222}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{margin-bottom:3px;background-color:#fff}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-activity-form[_ngcontent-%COMP%] .noc-submit-row[_ngcontent-%COMP%]{margin:10px 0;padding:10px 0;background-color:#fff}']}),t})();function Ynt(t,n){if(1&t&&(G(0,"div",6)(1,"span",7),he(2),W()()),2&t){const e=He();K(2),Ft(" ",null==e.cam.loading?null:e.cam.loading.message," ")}}const Unt=function(){return["fas","caret-down"]};function jnt(t,n){1&t&&$e(0,"fa-icon",23),2&t&&oe("icon",ai(1,Unt))}const Wnt=function(){return["fas","sort-alpha-down"]};function qnt(t,n){1&t&&$e(0,"fa-icon",23),2&t&&oe("icon",ai(1,Wnt))}const Xnt=function(){return["fas","sort-alpha-down-alt"]};function $nt(t,n){1&t&&$e(0,"fa-icon",23),2&t&&oe("icon",ai(1,Xnt))}function Qnt(t,n){if(1&t){const e=Nn();G(0,"button",21),it("click",function(){const o=Ut(e).$implicit;return He(2).sortBy(o)}),he(1),W()}if(2&t){const e=n.$implicit;K(1),Ft(" ",e.label," ")}}function Knt(t,n){if(1&t){const e=Nn();G(0,"span",24),he(1),G(2,"button",25),it("click",function(){Ut(e);const r=He(2);return r.reload(r.cam)}),he(3," Reload "),W()()}if(2&t){const e=He(2);K(1),Ft(" ",null==e.cam.rebuildRule?null:e.cam.rebuildRule.message," ")}}const Znt=function(){return["fas","exclamation-triangle"]};function Jnt(t,n){if(1&t){const e=Nn();G(0,"div",26)(1,"mat-chip",27),it("click",function(){return Ut(e),He(2).displayCamErrors()}),G(2,"div",28),$e(3,"fa-icon",23),W(),G(4,"div",29),he(5),W()()()}if(2&t){const e=He(2);K(3),oe("icon",ai(2,Znt)),K(2),Ft(" ",null==e.cam.violations?null:e.cam.violations.length," Errors Found ")}}function eit(t,n){if(1&t){const e=Nn();G(0,"button",30),it("click",function(){return Ut(e),He(2).close()}),G(1,"mat-icon"),he(2,"close"),W(),he(3," Close "),W()}}function tit(t,n){if(1&t){const e=Nn();G(0,"div",6)(1,"span",8)(2,"strong"),he(3),W(),he(4," Activities "),W(),G(5,"span",9)(6,"strong"),he(7,"Sort By"),W(),he(8," : "),W(),G(9,"button",10),he(10),Ve(11,jnt,1,2,"fa-icon",11),W(),G(12,"button",12),it("click",function(){return Ut(e),He().toggleSortDirection()}),Ve(13,qnt,1,2,"fa-icon",11),Ve(14,$nt,1,2,"fa-icon",11),W(),G(15,"mat-menu",13,14),Ve(17,Qnt,2,1,"button",15),W(),Ve(18,Knt,4,1,"span",16),Ve(19,Jnt,6,3,"div",17),$e(20,"span",18),G(21,"button",19)(22,"mat-icon"),he(23,"more_vert"),W()(),G(24,"mat-menu",13,20)(26,"button",21),it("click",function(){return Ut(e),He().expandAll(!0)}),he(27," Expand All "),W(),G(28,"button",21),it("click",function(){return Ut(e),He().expandAll(!1)}),he(29," Collapse All "),W()(),Ve(30,eit,4,0,"button",22),W()}if(2&t){const e=Di(16),i=Di(25),r=He();K(3),Zr(r.cam.activities.length),K(6),oe("matMenuTriggerFor",e),K(1),Ft(" ",r.cam.sortBy.label," "),K(1),oe("ngIf",r.cam.expanded),K(2),oe("ngIf",r.cam.sortBy.ascending),K(1),oe("ngIf",!r.cam.sortBy.ascending),K(3),oe("ngForOf",r.noctuaFormConfigService.activitySortField.options),K(1),oe("ngIf",(null==r.cam.rebuildRule?null:r.cam.rebuildRule.signal)!==r.CamRebuildSignal.NONE),K(1),oe("ngIf",(null==r.cam.violations?null:r.cam.violations.length)>0),K(2),oe("matMenuTriggerFor",i),K(9),oe("ngIf",r.panelDrawer)}}function nit(t,n){if(1&t&&$e(0,"noc-activity-table",33),2&t){const e=He().$implicit,i=He();oe("options",i.options)("cam",i.cam)("activity",e)}}function iit(t,n){if(1&t&&$e(0,"noc-activity-tree",33),2&t){const e=He().$implicit,i=He();oe("options",i.options)("cam",i.cam)("activity",e)}}function rit(t,n){if(1&t&&$e(0,"noc-activity-tree-table",33),2&t){const e=He().$implicit,i=He();oe("options",i.options)("cam",i.cam)("activity",e)}}const oit=function(t){return{"noc-selected":t}};function ait(t,n){if(1&t&&(G(0,"div",31),Ve(1,nit,1,3,"noc-activity-table",32),Ve(2,iit,1,3,"noc-activity-tree",32),Ve(3,rit,1,3,"noc-activity-tree-table",32),W()),2&t){const e=n.$implicit,i=He();oe("ngClass",Pr(5,oit,e.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Ti("id",e.displayId),K(1),oe("ngIf",i.options.displayType===i.ActivityDisplayType.TABLE),K(1),oe("ngIf",i.options.displayType===i.ActivityDisplayType.TREE),K(1),oe("ngIf",i.options.displayType===i.ActivityDisplayType.TREE_TABLE)}}function sit(t,n){1&t&&(G(0,"div",34),he(1," no activities present. "),W())}function cit(t,n){if(1&t&&(G(0,"div",35),$e(1,"mat-progress-spinner",36),W()),2&t){const e=He();K(1),oe("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}let QC=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w){this.camService=e,this._noctuaGraphService=i,this.noctuaCommonMenuService=r,this.noctuaUserService=o,this.noctuaFormConfigService=a,this.confirmDialogService=c,this.noctuaActivityConnectorService=u,this.noctuaActivityFormService=f,this.noctuaFormDialogService=w,this.ActivityDisplayType=ru,this.ActivityType=Wi,this.CamRebuildSignal=f3,this.searchCriteria={},this.searchFormData=[],this.activityTypeOptions=Ht.activityType.options,this.options={},this.searchResults=[],this.loadingSpinner={color:"primary",mode:"indeterminate"},this.scrollbarConfig={suppressScrollX:!0},this._unsubscribeAll=new z}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}addActivity(){this.openForm(location)}openForm(e){this.noctuaActivityFormService.mfLocation=e,this.noctuaActivityFormService.initializeForm()}reload(e){this.camService.reload(e)}search(){}expandAll(e){this.cam.expandAllActivities(e)}toggleExpand(e){e.expanded=!e.expanded}openActivityConnector(e){this.camService.onCamChanged.next(this.cam),this.camService.activity=e,this.noctuaActivityConnectorService.subjectActivity=e,this.noctuaActivityConnectorService.onActivityChanged.next(e)}sortBy(e){this.cam.updateSortBy(e.id,e.label)}toggleSortDirection(){this.cam.sortBy.ascending=!this.cam.sortBy.ascending}deleteActivity(e){const i=this;i.noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this.camService.deleteActivity(e).then(()=>{i.noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}resetModel(e){this.camService.resetModel(e)}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}close(){this.panelDrawer&&this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(hl),de($c),de(uo),de(lr),de(Q2),de(uP),de(ps),de(gl))},t.\u0275cmp=En({type:t,selectors:[["noc-cam-table"]],inputs:{panelDrawer:"panelDrawer",cam:"cam",options:"options"},decls:7,vars:5,consts:[[1,"w-100-p","p-0","noc-cam-table"],["class","noc-summary-bar","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"w-100-p","noc-cam-table-body"],["class","w-100-p",3,"ngClass",4,"ngFor","ngForOf"],["class","noc-no-info",4,"ngIf"],["class","noc-loading-container","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-bar"],[1,"noc-cam-progress-message"],[1,"mr-12"],[1,"mr-4"],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-action-button","noc-half-button","noc-r","noc-xs",3,"matMenuTriggerFor"],[3,"icon",4,"ngIf"],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-action-button","noc-icon","noc-half-button","noc-l","noc-xs",3,"click"],[1,"noc-dropdown-menu"],["sortByOptionMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],["class","noc-cam-rebuild",4,"ngIf"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["mat-icon-button","","fxFlex","40px","color","primary",1,"",3,"matMenuTriggerFor"],["activityOptionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["mat-stroked-button","","class","noc-rounded-button noc-sm","color","primary","aria-label","Close dialog",3,"click",4,"ngIf"],[3,"icon"],[1,"noc-cam-rebuild"],["mat-button","","color","primary",1,"",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip","noc-chip-xs","ml-8",3,"click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"w-100-p",3,"ngClass"],["class","noc-activities-table-body","fxLayout","row","fxLayoutAlign","start center",3,"options","cam","activity",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activities-table-body",3,"options","cam","activity"],[1,"noc-no-info"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-loading-container"],["diameter","70",1,"example-margin",3,"color","mode"]],template:function(e,i){1&e&&(G(0,"div",0),Ve(1,Ynt,3,1,"div",1),Ve(2,tit,31,11,"div",1),G(3,"div",2),Ve(4,ait,4,7,"div",3),Ve(5,sit,2,0,"div",4),Ve(6,cit,2,2,"div",5),W()()),2&e&&(K(1),oe("ngIf",null==i.cam.loading?null:i.cam.loading.status),K(1),oe("ngIf",!(null!=i.cam.loading&&i.cam.loading.status)),K(2),oe("ngForOf",i.cam.activities),K(1),oe("ngIf",!(null!=i.cam.loading&&i.cam.loading.status)&&0===i.cam.activities.length),K(1),oe("ngIf",null==i.cam?null:i.cam.loading.status))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%;background-color:#fff}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#eb9797 solid 1px;background-color:#eb979733}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 10px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;border-radius:50%;color:#777;font-size:10px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#eb9797}[_nghost-%COMP%] .noc-cam-rebuild[_ngcontent-%COMP%]{color:#956339}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-left:40px;padding-right:10px;position:relative;margin-bottom:1px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:250px}[_nghost-%COMP%] .noc-gp.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-gp.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-gp.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-gp.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-cam-table-body[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .noc-cam-table-body[_ngcontent-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;overflow:hidden;position:absolute;top:0;bottom:0;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;background-color:#f2f2f2;font-size:12px;color:#555;overflow:hidden;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-summary-bar-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-action-button[_ngcontent-%COMP%]{font-size:10px;border:#768bb7 solid 1px}[_nghost-%COMP%] .noc-action-button.noc-icon[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-action-bar[_ngcontent-%COMP%]{padding:10px}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-selected[_ngcontent-%COMP%]{border:#768bb7 solid 5px;background-color:#fff}[_nghost-%COMP%] .noc-selected[_ngcontent-%COMP%] .noc-activities-table-body[_ngcontent-%COMP%]:before{left:37px;width:5px;background-color:#97dcfc;content:""}[_nghost-%COMP%] .noc-activities-table-body[_ngcontent-%COMP%]{position:relative;background-color:#fff}[_nghost-%COMP%] .noc-activities-table-body[_ngcontent-%COMP%]:before{position:absolute;top:0;left:37px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%;max-height:100%;padding-bottom:300px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .noc-cams-table-header[_ngcontent-%COMP%]{padding:0;margin-bottom:5px;height:50px;min-height:50px;max-height:50px;position:sticky;position:-webkit-sticky;top:0;z-index:1000;background-color:#f7f7f7}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .cam[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-cam-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}'],data:{animation:[sa("activityExpand",[Nr("collapsed",Wn({height:"0px",minHeight:"0",display:"none"})),Nr("expanded",Wn({height:"*"})),Cr("expanded <=> collapsed",gr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),t})();function lit(t,n){if(1&t&&(G(0,"div",31),he(1),W()),2&t){const e=He().$implicit;K(1),Ft(" ",e.description," ")}}function dit(t,n){if(1&t&&(G(0,"div",28)(1,"mat-radio-button",29),he(2),W(),Ve(3,lit,2,1,"div",30),W()),2&t){const e=n.$implicit,i=He(2);K(1),oe("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.relationship?null:i.connectorActivity.rule.relationship.id))("value",e),K(1),Ft(" ",e.label," "),K(1),oe("ngIf",e.description)}}function uit(t,n){if(1&t&&(G(0,"div",28)(1,"mat-radio-button",35),he(2),W()()),2&t){const e=n.$implicit,i=He(3);K(1),oe("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.effectDirection?null:i.connectorActivity.rule.effectDirection.id)),K(1),Ft(" ",e.label," ")}}function hit(t,n){if(1&t&&(G(0,"div",15)(1,"div",16)(2,"p"),he(3,"Effect Direction"),W()(),G(4,"mat-radio-group",32),Ve(5,uit,3,3,"div",18),W(),G(6,"div",33)(7,"div",34),he(8," The mechanism regulation should be known, so it should be possible to pick the direction of the regulation. "),W()()()),2&t){const e=He(2);K(5),oe("ngForOf",e.noctuaFormConfigService.effectDirection.options)}}function pit(t,n){if(1&t&&(G(0,"div",31),he(1),W()),2&t){const e=He().$implicit;K(1),Ft(" ",e.description," ")}}function fit(t,n){if(1&t&&(G(0,"div",28)(1,"mat-radio-button",35),he(2),W(),Ve(3,pit,2,1,"div",30),W()),2&t){const e=n.$implicit,i=He(3);K(1),oe("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.directness?null:i.connectorActivity.rule.directness.id)),K(1),Ft(" ",e.label," "),K(1),oe("ngIf",e.description)}}function git(t,n){if(1&t&&(G(0,"div",15)(1,"div",16)(2,"p"),he(3,"Directness "),W()(),G(4,"mat-radio-group",36),Ve(5,fit,4,4,"div",18),W()()),2&t){const e=He(2);K(5),oe("ngForOf",e.noctuaFormConfigService.directness.options)}}function mit(t,n){if(1&t&&(G(0,"mat-option",49)(1,"div",50)(2,"div",51),he(3),W(),$e(4,"span",3),G(5,"div",52),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(3),Ft(" ",e.id," ")}}function _it(t,n){if(1&t&&(G(0,"div",37)(1,"div",38)(2,"div",39)(3,"mat-form-field",40)(4,"mat-label"),he(5,"Evidence"),W(),$e(6,"textarea",41),G(7,"mat-autocomplete",42,43),Ve(9,mit,7,3,"mat-option",44),W()()(),G(10,"div",45)(11,"mat-form-field",40)(12,"mat-label"),he(13,"Reference"),W(),$e(14,"textarea",46),W()(),G(15,"div",47)(16,"mat-form-field",40)(17,"mat-label"),he(18,"With"),W(),$e(19,"textarea",48),W()(),$e(20,"span",3),W()()),2&t){const e=n.index,i=Di(8),r=He(2);K(1),oe("formGroupName",e),K(5),oe("matAutocomplete",i),K(1),oe("displayWith",r.evidenceDisplayFn),K(2),oe("ngForOf",null==r.connectorActivity||null==r.connectorActivity.predicate?null:r.connectorActivity.predicate.evidenceLookup.results)}}function vit(t,n){if(1&t&&(G(0,"div",10)(1,"div",11)(2,"div",12),$e(3,"noc-graph-preview",13),W(),G(4,"div",14)(5,"div",15)(6,"div",16)(7,"p"),he(8,"Relationship"),W()(),G(9,"mat-radio-group",17),Ve(10,dit,4,4,"div",18),W()(),Ve(11,hit,9,1,"div",19),Ve(12,git,6,1,"div",19),W(),G(13,"div",20)(14,"div",21),he(15," Suggested Causal Relation "),W()(),G(16,"div",22)(17,"span",23),he(18),W()(),G(19,"div",24)(20,"div",21),he(21," Evidence "),W()(),G(22,"div",25)(23,"div",26),Ve(24,_it,21,4,"div",27),W()()()()),2&t){const e=He();let i;K(3),oe("nodes",null==e.connectorActivity?null:e.connectorActivity.graphPreview.nodes)("edges",null==e.connectorActivity?null:e.connectorActivity.graphPreview.edges),K(7),oe("ngForOf",e.relationshipOptions),K(1),oe("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.effectDirection),K(1),oe("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.directness),K(6),Ft(" ",null==e.connectorActivity||null==e.connectorActivity.predicate.edge?null:e.connectorActivity.predicate.edge.label," "),K(6),oe("ngForOf",null==(i=e.connectorFormGroup.get("evidenceFormArray"))?null:i.controls)}}function Cit(t,n){if(1&t){const e=Nn();G(0,"button",53),it("click",function(){return Ut(e),He().checkErrors()}),he(1,' Why is the "Save" button disabled? '),W()}}let bit=(()=>{class t{constructor(e,i,r,o,a,c){this.confirmDialogService=e,this.noctuaActivityConnectorService=i,this.noctuaUserService=r,this.noctuaFormDialogService=o,this.noctuaFormConfigService=a,this.noctuaActivityFormService=c,this.ConnectorType=s2,this.connectorState=m3,this.searchCriteria={},this._unsubscribeAll=new z}ngOnInit(){this.connectorFormSub=this.noctuaActivityConnectorService.connectorFormGroup$.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.connectorFormGroup=e,this.connectorActivity=this.noctuaActivityConnectorService.connectorActivity,this.relationshipOptions=this.noctuaFormConfigService[this.connectorActivity.connectorType+"Relationship"].options)})}openActivityConnector(e){this.noctuaActivityConnectorService.initializeForm(this.noctuaActivityConnectorService.objectActivity.id,e.id)}save(){const e=this;this.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully created.","OK"),this.noctuaActivityConnectorService.initializeForm(e.noctuaActivityConnectorService.subjectActivity.id,e.noctuaActivityConnectorService.objectActivity.id),this.closeDialog&&this.closeDialog()})}editActivity(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully updated.","OK")})})}deleteConnectorEdge(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.deleteConnectorEdge(this.connectorActivity).then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully deleted.","OK")})})}close(){this.panelDrawer&&this.panelDrawer.close(),this.closeDialog&&this.closeDialog()}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Q2),de(uP),de(uo),de(gl),de(lr),de(ps))},t.\u0275cmp=En({type:t,selectors:[["noc-activity-connector"]],inputs:{panelDrawer:"panelDrawer",closeDialog:"closeDialog"},decls:16,vars:4,consts:[["name","connectorFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start start","noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-connector-form",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["mat-button","","color","warn","class","noc-rounded-button noc-sm",3,"click",4,"ngIf"],["type","submit","mat-raised-button","","color","primary",1,"noc-rounded-button",3,"disabled","click"],[1,"noc-connector-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","w-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-section-body","w-100-p","p-0"],[1,"noc-graph-preview",3,"nodes","edges"],[1,"noc-form-section","p-0","w-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"px-8","noc-group-row"],[1,"noc-title"],["fxFlex","","formControlName","relationship","fxLayout","column","fxLayoutAlign","start start"],["class","noc-radio-row","fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["class","px-8 noc-group-row","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","noc-bt"],[1,"noc-section-heading"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-note","mb-4"],[1,"noc-description"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-0"],["fxLayout","column",1,"px-12","noc-group-row"],["formArrayName","evidenceFormArray",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-radio-row"],[1,"noc-radio-button-rounded","noc-label",3,"checked","value"],["fxFlex","","class","noc-hint",4,"ngIf"],["fxFlex","",1,"noc-hint"],["formControlName","effectDirection","fxLayout","column","fxLayoutAlign","start start"],["fxFlex","","fxLayout","column","fxLayoutAlign","center start"],[1,"noc-hint","noc-sm"],[1,"noc-radio-button-rounded","noc-label",3,"value","checked"],["fxFlex","","formControlName","directness","fxLayout","column","fxLayoutAlign","start start"],["formArrayName","evidenceFormArray"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p",3,"formGroupName"],["fxFlex","55",1,"p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete"],[1,"noc-term-autocomplete",3,"displayWith"],["evidenceAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","25",1,"p-4"],["matInput","","formControlName","reference","rows","2"],["fxFlex","","fxFlex","20",1,"p-4"],["matInput","","formControlName","with","rows","2"],[3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"],["mat-button","","color","warn",1,"noc-rounded-button","noc-sm",3,"click"]],template:function(e,i){1&e&&(G(0,"form",0)(1,"div",1)(2,"span",2),he(3," Causal Relation Form"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),G(9,"div",5),Ve(10,vit,25,7,"div",6),W(),G(11,"div",7),Ve(12,Cit,2,0,"button",8),$e(13,"span",3),G(14,"button",9),it("click",function(){return i.save()}),he(15,"Save"),W()()()),2&e&&(oe("formGroup",i.connectorFormGroup),K(10),oe("ngIf",i.connectorFormGroup),K(2),oe("ngIf",!i.connectorFormGroup.valid),K(2),oe("disabled",!(null!=i.connectorActivity&&null!=i.connectorActivity.predicate.edge&&i.connectorActivity.predicate.edge.id)))},directives:[U2,Il,Lr,kr,al,Vr,Er,Mo,Fa,er,Jae,XO,E1,o2,vo,$O,$f,om,Jd,Ru,Dh,yd,Jp,Kf,xd],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 80px)}[_nghost-%COMP%] .noc-radio-button-rounded[_ngcontent-%COMP%]{min-width:110px}[_nghost-%COMP%] .noc-connector-form[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:10px 0;border-bottom:rgba(59,89,152,.6) solid 1px;color:#000;font-size:12px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]{width:100%;padding:5px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-border-0[_ngcontent-%COMP%]{border:none!important}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-label[_ngcontent-%COMP%]{width:170px;min-width:170px;max-width:170px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint[_ngcontent-%COMP%]{margin-left:12px;font-size:12px;max-width:300px;color:#676767;font-style:italic}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint.noc-sm[_ngcontent-%COMP%]{max-width:260px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%]{width:600px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%]{margin-bottom:12px;width:100%;padding:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;background-color:#fff;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-bottom:12px;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-graph-preview[_ngcontent-%COMP%]{height:100px;width:100%}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%]{width:100%;background-color:#dfe3ee99}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%]{padding:20px 0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{padding-left:10px;font-size:12px}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%]{color:#bbb}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ccc}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{width:200px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:move;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-header[_ngcontent-%COMP%]{padding:4px;height:30px;min-height:30px;max-height:30px;width:100%;border-bottom:rgba(59,89,152,.6) solid 1px;font-size:14px;color:#777}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding:4px;font-size:12px;width:100%;border-bottom:#bbb solid 1px;overflow:hidden}[_nghost-%COMP%] .noc-activity-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%]{height:180px;min-height:180px;max-height:180px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:8px;width:180px;min-width:180px;max-width:180px;height:110px;min-height:110px;max-height:110px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;text-align:center;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:initial;background-color:#fff}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding:4px;height:55px;min-height:55px;max-height:55px;font-size:10px;text-align:center;border-bottom:2px solid #2e6f9a}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{color:#2e6f9a;margin-top:40px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%]{height:120px;min-height:120px;max-height:120px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:4px;width:150px;min-width:150px;max-width:150px;height:100px;min-height:100px;max-height:100px;font-size:10px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{height:50px;min-height:50px;max-height:50px;border-bottom:1px solid #2e6f9a}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{margin-top:35px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-summary-row[_ngcontent-%COMP%]{height:150px;min-height:150px;max-height:150px;background-color:#f5f5f5;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}']}),t})();var pa=(()=>(function(t){t.relationship="relationship",t.term="term",t.evidence="evidence",t.reference="reference",t.with="with",t.evidenceAll="evidenceAll",t.all="all"}(pa||(pa={})),pa))();class AF{constructor(n){this.overlayRef=n}close(){this.overlayRef.dispose()}}const ase=new jn("editorDropdownData");function xit(t,n){if(1&t&&(G(0,"mat-option",15),he(1),W()),2&t){const e=n.$implicit;oe("value",e),K(1),Ft(" ",e.label," ")}}function yit(t,n){if(1&t&&(G(0,"div",10)(1,"div",11)(2,"mat-form-field",12)(3,"mat-label"),he(4,"Choose Causal Relation"),W(),G(5,"mat-select",13),Ve(6,xit,2,2,"mat-option",14),W()()()()),2&t){const e=He();K(5),oe("compareWith",e.compareEntity),K(1),oe("ngForOf",e.noctuaFormConfigService.bpOnlyEdges.options)}}function wit(t,n){if(1&t&&(G(0,"a",26),it("click",function(i){return i.stopPropagation()}),he(1),W()),2&t){const e=He().$implicit;Yr("href",e.link,ir),K(1),Ft(" ",e.id," ")}}function Mit(t,n){if(1&t&&(G(0,"span"),he(1),W()),2&t){const e=He().$implicit;K(1),Ft(" ",e.id," ")}}function Oit(t,n){if(1&t&&(G(0,"mat-option",15)(1,"div",20)(2,"div",21),he(3),W(),$e(4,"span",22),G(5,"div",23),Ve(6,wit,2,2,"a",24),Ve(7,Mit,2,1,"span",25),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(3),oe("ngIf",e.link),K(1),oe("ngIf",!e.link)}}function Sit(t,n){if(1&t){const e=Nn();G(0,"div",16)(1,"mat-form-field",12)(2,"mat-label"),he(3),W(),G(4,"textarea",17),it("focus",function(){return Ut(e),He().updateTermList()}),he(5," "),W(),G(6,"mat-autocomplete",18,19),Ve(8,Oit,8,4,"mat-option",14),W()()()}if(2&t){const e=Di(7),i=He();K(3),Zr(i.entity.label),K(1),oe("matAutocomplete",e),K(2),oe("displayWith",i.termDisplayFn),K(2),oe("ngForOf",null==i.entity?null:i.entity.termLookup.results)}}function Pit(t,n){if(1&t&&(G(0,"a",26),it("click",function(i){return i.stopPropagation()}),he(1),W()),2&t){const e=He().$implicit;Yr("href",e.link,ir),K(1),Ft(" ",e.id," ")}}function Eit(t,n){if(1&t&&(G(0,"span"),he(1),W()),2&t){const e=He().$implicit;K(1),Ft(" ",e.id," ")}}function Tit(t,n){if(1&t&&(G(0,"mat-option",15)(1,"div",20)(2,"div",21),he(3),W(),$e(4,"span",22),G(5,"div",34)(6,"strong"),he(7),W()(),G(8,"div",23),Ve(9,Pit,2,2,"a",24),Ve(10,Eit,2,1,"span",25),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(4),Ft(" ",e.xref," "),K(2),oe("ngIf",e.link),K(1),oe("ngIf",!e.link)}}function Ait(t,n){if(1&t){const e=Nn();G(0,"div",31)(1,"mat-form-field",12)(2,"mat-label"),he(3,"Evidence"),W(),G(4,"textarea",32),it("focus",function(){return Ut(e),He(2).updateEvidenceList()}),W(),G(5,"mat-autocomplete",18,33),Ve(7,Tit,11,5,"mat-option",14),W()()()}if(2&t){const e=Di(6),i=He(2);K(4),oe("matAutocomplete",e),K(1),oe("displayWith",i.evidenceDisplayFn),K(2),oe("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.evidenceLookup.results)}}function Dit(t,n){if(1&t&&(G(0,"mat-option",15)(1,"div",20)(2,"div",21),he(3),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e," ")}}function Lit(t,n){if(1&t){const e=Nn();G(0,"div",35)(1,"mat-form-field",12)(2,"mat-label"),he(3,"Reference"),W(),G(4,"textarea",36),it("focus",function(){return Ut(e),He(2).updateReferenceList()}),W(),G(5,"button",37),it("click",function(r){return Ut(e),He(2).openAddReference(r,"reference")}),G(6,"mat-icon"),he(7,"playlist_add"),W()(),G(8,"mat-autocomplete",38,39),Ve(10,Dit,4,2,"mat-option",14),W()()()}if(2&t){const e=Di(9),i=He(2);K(4),oe("matAutocomplete",e),K(6),oe("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.referenceLookup.results)}}function kit(t,n){if(1&t&&(G(0,"mat-option",15)(1,"div",20)(2,"div",21),he(3),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e," ")}}function Iit(t,n){if(1&t){const e=Nn();G(0,"div",40)(1,"mat-form-field",12)(2,"mat-label"),he(3,"With"),W(),G(4,"textarea",41),it("focus",function(){return Ut(e),He(2).updateWithList()}),W(),G(5,"mat-autocomplete",38,42),Ve(7,kit,4,2,"mat-option",14),W()()()}if(2&t){const e=Di(6),i=He(2);K(4),oe("matAutocomplete",e),K(3),oe("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.withLookup.results)}}function Nit(t,n){if(1&t&&(Qr(0,27),Ve(1,Ait,8,3,"div",28),Ve(2,Lit,11,2,"div",29),Ve(3,Iit,8,2,"div",30),Kr()),2&t){const e=He();oe("formGroup",e.evidenceFormGroup),K(1),oe("ngIf",e.displaySection.evidence),K(1),oe("ngIf",e.displaySection.reference),K(1),oe("ngIf",e.displaySection.with)}}function Rit(t,n){1&t&&(G(0,"button",43)(1,"mat-icon"),he(2,"more_vert"),W()()),2&t&&(He(),oe("matMenuTriggerFor",Di(6)))}function zit(t,n){if(1&t){const e=Nn();G(0,"button",44),it("click",function(){return Ut(e),He().addRootTerm()}),he(1," Add Root Term "),W()}}let Fit=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w){this.zone=e,this.dialogRef=i,this.data=r,this.noctuaFormDialogService=o,this.camService=a,this.noctuaActivityEntityService=c,this.inlineReferenceService=u,this.noctuaFormConfigService=f,this.noctuaActivityFormService=w,this.EditorCategory=pa,this.insertEntity=!1,this.displaySection={relationship:!1,term:!1,evidence:!1,reference:!1,with:!1},this._unsubscribeAll=new z,this.cam=r.cam,this.activity=r.activity,this.entity=r.entity,this.category=r.category,this.evidenceIndex=r.evidenceIndex,this.insertEntity=r.insertEntity}ngOnInit(){this._displaySection(this.category),this.entityFormSub=this.noctuaActivityEntityService.entityFormGroup$.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{if(!e)return;const i=e.get("evidenceFormArray");this.entityFormGroup=e,this.evidenceFormGroup=i.at(this.evidenceIndex)})}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.evidenceFormGroup.controls[i]}})}save(){const e=this;switch(e.category){case pa.term:case pa.evidence:case pa.reference:case pa.with:case pa.relationship:this.close(),e.noctuaActivityEntityService.saveActivityReplace(e.cam).pipe(Po(1),Rf(i=>ls),Eu(()=>{e.zone.run(()=>{e.cam.loading.status=!1,e.cam.reviewCamChanges()})})).subscribe(()=>{e.zone.run(()=>{})});break;case pa.evidenceAll:e.noctuaActivityEntityService.addEvidence().then(()=>{this.close(),e.noctuaFormDialogService.openInfoToast("Evidence successfully updated.","OK")});break;case pa.all:e.noctuaActivityEntityService.addIndividual().then(()=>{this.close(),e.noctuaFormDialogService.openInfoToast("Activity successfully updated.","OK")})}}openSearchDatabaseDialog(e){const i=this,r=this.activity.getGPNode();if(r&&r.hasValue()){const a=c=>{if(c.term){const u=new _i(c.term.term.id,c.term.term.label);c.evidences&&c.evidences.length>0&&i.noctuaActivityEntityService.reinitializeForm(u,c.evidences)}};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:r.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}else{const a=new q2(dl.error,ll.general,"Please enter a gene product",{aspect:"Gene Product"});i.noctuaFormDialogService.openActivityErrorsDialog([a])}}addRootTerm(){const e=this,i=(0,Nt.find)(Ht.rootNode,r=>r.aspect===e.entity.aspect);if(i){const r=new Rl;r.setEvidence(new _i(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),r.reference=Ht.evidenceAutoPopulate.nd.reference,e.noctuaActivityEntityService.reinitializeForm(new _i(i.id,i.label),[r])}}clearValues(){this.entity.clearValues(),this.noctuaActivityFormService.initializeForm()}updateTermList(){this.camService.updateTermList(this.noctuaActivityFormService.activity,this.entity)}updateEvidenceList(){this.camService.updateEvidenceList(this.noctuaActivityFormService.activity,this.entity)}updateReferenceList(){this.camService.updateReferenceList(this.noctuaActivityFormService.activity,this.entity)}updateWithList(){this.camService.updateWithList(this.noctuaActivityFormService.activity,this.entity)}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}compareEntity(e,i){return e.id===i.id}_displaySection(e){switch(e){case pa.relationship:this.displaySection.relationship=!0;break;case pa.term:this.displaySection.term=!0;break;case pa.evidence:this.displaySection.evidence=!0;break;case pa.reference:this.displaySection.reference=!0;break;case pa.with:this.displaySection.with=!0;break;case pa.evidenceAll:this.displaySection.evidence=!0,this.displaySection.reference=!0,this.displaySection.with=!0;break;case pa.all:this.displaySection.term=!0,this.displaySection.evidence=!0,this.displaySection.reference=!0,this.displaySection.with=!0}}close(){this.dialogRef.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(ji),de(AF),de(ase),de(gl),de(Zo),de(Td),de(KC),de(lr),de(ps))},t.\u0275cmp=En({type:t,selectors:[["noc-editor-dropdown"]],decls:16,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p",3,"formGroup"],["class","noc-edit-field p-4","fxFlex","300px","fxLayout","row","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-edit-field p-4","fxFlex","250px","fxLayout","row","fxLayoutAlign","start stretch",4,"ngIf"],[3,"formGroup",4,"ngIf"],["mat-icon-button","","class","noc-action-button","fxFlex","40px",3,"matMenuTriggerFor",4,"ngIf"],[1,"noc-dropdown-menu"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["evidenceMenu","matMenu"],["mat-icon-button","",3,"click"],["fxFlex","300px","fxLayout","row","fxLayoutAlign","start stretch",1,"noc-edit-field","p-4"],[1,"p-4","w-100-p"],["appearance","outline",1,"noc-sm","w-100-p"],["placeholder","","formControlName","relationship",3,"compareWith"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxFlex","250px","fxLayout","row","fxLayoutAlign","start stretch",1,"noc-edit-field","p-4"],["type","text","matInput","","formControlName","term","row","2",3,"matAutocomplete","focus"],[1,"noc-term-autocomplete",3,"displayWith"],["termAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],["fxFlex",""],[1,"noc-term-id"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href","click"],[3,"formGroup"],["class","noc-edit-field p-4","fxFlex","250px",4,"ngIf"],["class","noc-edit-field p-4","fxFlex","150px",4,"ngIf"],["class","noc-edit-field p-4","fxFlex","","fxFlex","150px",4,"ngIf"],["fxFlex","250px",1,"noc-edit-field","p-4"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete","focus"],["evidenceAuto","matAutocomplete"],[1,"noc-term-id","mr-8"],["fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","reference","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],[1,"noc-term-autocomplete"],["referenceAuto","matAutocomplete"],["fxFlex","","fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","with","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["withAuto","matAutocomplete"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor"],["mat-menu-item","",1,"",3,"click"]],template:function(e,i){1&e&&(G(0,"div",0),Ve(1,yit,7,2,"div",1),Ve(2,Sit,9,4,"div",2),Ve(3,Nit,4,4,"ng-container",3),Ve(4,Rit,3,1,"button",4),G(5,"mat-menu",5,6),Ve(7,zit,2,0,"button",7),W(),$e(8,"mat-menu",null,8),G(10,"button",9),it("click",function(){return i.close()}),G(11,"mat-icon"),he(12,"cancel"),W()(),G(13,"button",9),it("click",function(){return i.save()}),G(14,"mat-icon"),he(15,"check_circle"),W()()()),2&e&&(oe("formGroup",i.entityFormGroup),K(1),oe("ngIf",i.displaySection.relationship),K(1),oe("ngIf",i.displaySection.term),K(1),oe("ngIf",i.evidenceFormGroup),K(1),oe("ngIf",!0),K(3),oe("ngIf",i.entity.aspect))},directives:[Lr,kr,Il,al,er,Vr,Jd,Ru,V6,E1,o2,vo,xd,Dh,yd,Jp,Kf,Er,kv,Mo,Zl,T1,sl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding-top:8px;width:100%;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}']}),t})();const Hit={hasBackdrop:!0,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let Em=(()=>{class t{constructor(e,i,r,o,a){this.injector=e,this.overlay=i,this.camService=r,this.noctuaActivityFormService=o,this.noctuaActivityEntityService=a}open(e,i={}){const r=Object.assign(Object.assign({},Hit),i);r.positionStrategy=this._getPosition(e);const o=this.createOverlay(r),a=new AF(o);return this.attachDialogContainer(o,r,a),o.backdropClick().subscribe(u=>a.close()),a}close(e){}createInjector(e,i){const r=new WeakMap;return r.set(AF,i),r.set(ase,e.data),new bO(this.injector,r)}attachDialogContainer(e,i,r){const o=this.createInjector(i,r),a=new Kd(Fit,null,o);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Eh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{overlayX:"end",overlayY:"top",originX:"end",originY:"bottom"}])}}return t.\u0275fac=function(e){return new(e||t)(Rt(hs),Rt(ol),Rt(Zo),Rt(ps),Rt(Td))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Vit=function(){return["fas","caret-right"]};function Bit(t,n){1&t&&$e(0,"fa-icon",14),2&t&&oe("icon",ai(1,Vit))}const Git=function(){return["fas","caret-down"]};function Yit(t,n){1&t&&$e(0,"fa-icon",14),2&t&&oe("icon",ai(1,Git))}function Uit(t,n){if(1&t&&(G(0,"span",20),he(1),G(2,"a",21),it("click",function(i){return i.stopPropagation()}),he(3),W()()),2&t){const e=He(2);K(1),Ft(" ",null==e.gpNode.term||null==e.gpNode.term.termHistory[0]?null:e.gpNode.term.termHistory[0].label," "),K(1),Yr("href",null==e.gpNode.term||null==e.gpNode.term.termHistory[0]?null:e.gpNode.term.termHistory[0].url,ir),K(1),Ft(" ",null==e.gpNode.term||null==e.gpNode.term.termHistory[0]?null:e.gpNode.term.termHistory[0].id," ")}}function jit(t,n){if(1&t&&$e(0,"noctua-inline-editor",22),2&t){const e=He(2);oe("cam",e.cam)("activity",e.activity)("entity",e.gpNode)("category",e.EditorCategory.term)}}const Wit=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};function qit(t,n){if(1&t&&(G(0,"div",15),Ve(1,Uit,4,3,"span",16),G(2,"span",17),he(3),W(),G(4,"a",18),it("click",function(i){return i.stopPropagation()}),he(5),W(),Ve(6,jit,1,4,"noctua-inline-editor",19),W()),2&t){const e=He();oe("ngClass",bh(7,Wit,null==e.gpNode.term?null:e.gpNode.term.highlight,null==e.gpNode.term?null:e.gpNode.term.modified,(null==e.camService.currentMatch?null:e.camService.currentMatch.uuid)&&(null==e.gpNode.term?null:e.gpNode.term.uuid)===(null==e.camService.currentMatch?null:e.camService.currentMatch.uuid))),Ti("id",null==e.gpNode.term?null:e.gpNode.term.displayId),K(1),oe("ngIf",(null==e.gpNode.term?null:e.gpNode.term.modified)&&(null==e.gpNode.term||null==e.gpNode.term.termHistory?null:e.gpNode.term.termHistory.length)>0),K(2),Ft(" ",null==e.gpNode.term?null:e.gpNode.term.label," "),K(1),Yr("href",null==e.gpNode.term?null:e.gpNode.term.url,ir),K(1),Ft(" ",null==e.gpNode.term?null:e.gpNode.term.id," "),K(1),oe("ngIf",e.noctuaUserService.user&&e.gpNode.term&&e.options.editableTerms)}}const Xit=function(){return["fas","exclamation-triangle"]};function $it(t,n){if(1&t){const e=Nn();G(0,"div",23)(1,"mat-chip",24),it("click",function(){Ut(e);const r=He();return r.displayActivityErrors(r.activity)}),G(2,"div",25),$e(3,"fa-icon",14),W(),G(4,"div",26),he(5),W()()()}if(2&t){const e=He();K(3),oe("icon",ai(2,Xit)),K(2),Ft(" ",null==e.activity.violations?null:e.activity.violations.length," Errors Found ")}}function Qit(t,n){1&t&&(G(0,"div",42),he(1," Relationship "),W())}function Kit(t,n){1&t&&(G(0,"div",43),he(1," Asp "),W())}function Zit(t,n){if(1&t&&$e(0,"noc-activity-tree-node",44),2&t){const e=n.$implicit,i=He(2);oe("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e)}}function Jit(t,n){1&t&&(G(0,"div",45),he(1," no results yet. "),W())}const sse=function(t){return{"noc-selected":t}};function ert(t,n){if(1&t&&(G(0,"div",27)(1,"div",28),Ve(2,Qit,2,0,"div",29),G(3,"div",30),he(4," Term "),W(),Ve(5,Kit,2,0,"div",31),G(6,"div",32),he(7," Ext "),W(),G(8,"div",33)(9,"div",34),he(10," Evidence "),W(),G(11,"div",35),he(12," Reference "),W(),G(13,"div",36),he(14," With "),W(),G(15,"div",37),he(16," Assigned By "),W(),G(17,"div",38),he(18," Contributor "),W()(),$e(19,"div",39),W(),Ve(20,Zit,1,4,"noc-activity-tree-node",40),Ve(21,Jit,2,0,"div",41),W()),2&t){const e=He();oe("ngClass",Pr(5,sse,e.activity.displayId===(null==e.camService.currentMatch?null:e.camService.currentMatch.activityDisplayId))),K(2),oe("ngIf",!e.options.slimViewer),K(3),oe("ngIf",!e.options.slimViewer),K(15),oe("ngForOf",e.nodes),K(1),oe("ngIf",0===(null==e.activity.nodes?null:e.activity.nodes.length))}}let cse=(()=>{class t{constructor(e,i,r,o,a,c,u){this.camService=e,this.noctuaUserService=i,this.noctuaFormConfigService=r,this.noctuaFormDialogService=o,this.noctuaActivityEntityService=a,this.noctuaActivityFormService=c,this.inlineEditorService=u,this.EditorCategory=pa,this.ActivityType=Wi,this.activityTypeOptions=Ht.activityType.options,this.options={},this.optionsDisplay={},this.nodes=[],this.editableTerms=!1,this.currentMenuEvent={},this.unsubscribeAll=new z}ngOnInit(){var e;const i=this;(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.gpNode=this.activity.getGPNode(),this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.nodes=this.activity.nodes.filter(r=>{var o;return r.id!==(null===(o=i.gpNode)||void 0===o?void 0:o.id)})}toggleExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const r={cam:this.cam,activity:this.activity,entity:e,category:pa.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r}),this.noctuaActivityFormService.initializeForm()}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(){}openSearchDatabaseDialog(e){const i=this,r=this.noctuaActivityFormService.activity.getGPNode();if(r){const a=function(c){c.term&&(e.term=new _i(c.term.term.id,c.term.term.label),c.evidences&&c.evidences.length>0&&e.predicate.setEvidence(c.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:r.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}insertEntity(e,i){const r=this.noctuaFormConfigService.insertActivityNode(this.activity,e,i),o={cam:this.cam,activity:this.activity,entity:r,category:pa.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,r),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o})}addRootTerm(e){const i=this,r=(0,Nt.find)(Ht.rootNode,o=>o.aspect===e.aspect);if(r){e.term=new _i(r.id,r.label),i.noctuaActivityFormService.initializeForm();const o=new Rl;o.setEvidence(new _i(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),o.reference=Ht.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([o]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,r=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(r,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}cleanId(e){return m4.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(uo),de(lr),de(gl),de(Td),de(ps),de(Em))},t.\u0275cmp=En({type:t,selectors:[["noc-activity-table"]],inputs:{cam:"cam",activity:"activity",options:"options"},decls:20,vars:13,consts:[[1,"w-100-p"],[1,"w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activity-heading"],["fxFlex","25px",3,"click"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","noc-sm","mr-8",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title","mr-12"],[1,"noc-relation","mr-12"],["class","noc-gp","fxLayout","column","fxLayoutAlign","center start",3,"ngClass",4,"ngIf"],[1,"noc-chip-xs",3,"ngClass"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["class","noc-activity-table w-100-p","fxLayout","column","fxLayoutAlign","start start",3,"ngClass",4,"ngIf"],[3,"icon"],["fxLayout","column","fxLayoutAlign","center start",1,"noc-gp",3,"ngClass"],["class","noc-old-term text-truncate",4,"ngIf"],[1,"text-truncate"],["target","_blank",1,"text-truncate",3,"href","click"],["class","noc-edit-button",3,"cam","activity","entity","category",4,"ngIf"],[1,"noc-old-term","text-truncate"],["target","_blank",3,"href","click"],[1,"noc-edit-button",3,"cam","activity","entity","category"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip",3,"click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["fxLayout","column","fxLayoutAlign","start start",1,"noc-activity-table","w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noctua-form-table","noc-activity-header","w-100-p"],["fxFlex","","class","noc-cell noc-relation-cell",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-term-cell"],["class","noc-cell noc-aspect-cell",4,"ngIf"],[1,"noc-cell","noc-extension-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-evidence-cell"],["fxFlex","",1,"noc-cell","noc-evidence-code-cell"],[1,"noc-cell","noc-reference-cell"],[1,"noc-cell","noc-with-cell"],[1,"noc-cell","noc-group-cell"],[1,"noc-cell","noc-contributor-cell"],[1,"noc-cell","noc-action-cell"],["class","w-100-p",3,"options","cam","activity","entity",4,"ngFor","ngForOf"],["class","noc-no-info",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-relation-cell"],[1,"noc-cell","noc-aspect-cell"],[1,"w-100-p",3,"options","cam","activity","entity"],[1,"noc-no-info"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),it("click",function(o){return o.stopPropagation()}),G(4,"button",4),it("click",function(){return i.toggleExpand(i.activity)}),Ve(5,Bit,1,2,"fa-icon",5),Ve(6,Yit,1,2,"fa-icon",5),W()(),G(7,"div",6),it("click",function(o){return o.stopPropagation()}),he(8),W(),G(9,"div",7)(10,"div",8)(11,"small"),he(12),W()(),Ve(13,qit,7,11,"div",9),W(),G(14,"mat-chip",10)(15,"span"),he(16),W()(),Ve(17,$it,6,3,"div",11),$e(18,"span",12),W()(),Ve(19,ert,22,7,"div",13),W()),2&e&&(K(1),oe("ngClass",Pr(11,sse,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Ti("id",i.activity.displayId),K(4),oe("ngIf",!i.activity.expanded),K(1),oe("ngIf",i.activity.expanded),K(2),Ft(" ",i.activity.displayNumber," "),K(4),Zr(null==i.gpNode||null==i.gpNode.predicate||null==i.gpNode.predicate.edge?null:i.gpNode.predicate.edge.label),K(1),oe("ngIf",i.gpNode),K(1),oe("ngClass",i.activity.activityType),K(2),Zr(null==i.activityTypeOptions[i.activity.activityType]?null:i.activityTypeOptions[i.activity.activityType].label),K(1),oe("ngIf",i.activity.hasViolations),K(2),oe("ngIf",i.activity.expanded))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:30px;min-height:30px;max-height:30px;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:30px;width:30px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-left:40px;position:relative;margin-bottom:1px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;height:55px;min-height:55px;max-height:55px;background-color:#fff;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:27px;left:-15px;width:25px;height:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:after{position:absolute;top:0;left:37px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:"";z-index:1}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:350px;line-height:12px;height:55px;min-height:55px;max-height:55px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-gp.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-gp.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-gp.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-gp.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 3px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;padding-bottom:4px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] noc-activity-tree-node[_ngcontent-%COMP%]{padding-left:40px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;overflow:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{display:inline-flex;min-width:100%}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row.noc-row-term[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row.noc-row-term[_ngcontent-%COMP%]:before{position:absolute;left:0px;width:20px;height:2px;top:50%;transform:translateY(-50%);color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{padding-left:15px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-activity-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:dc}}),t})();var Xi=v(32960);const trt=v(61759),lse=v(33837),nrt=v(99572).jquery,irt=v(42023);let rrt=(()=>{class t{constructor(e,i,r){this.noctuaFormConfigService=e,this.noctuaUserService=i,this.curieService=r,this.minervaDefinitionName=lo.globalMinervaDefinitionName,this.separator="@@",this.cams=[],this.loading=!1,this.searchSummary={},this.onCamsChanged=new mr({}),this.onCamChanged=new mr({}),this.curieUtil=this.curieService.getCurieUtil()}registerManager(){let e=new nrt(trt);e.method("POST");let i=new irt(lo.globalBaristaLocation,this.minervaDefinitionName,null,e,"async");return i.register("prerun",()=>{}),i.register("postrun",()=>{},9),i.register("manager_error",u=>{console.log("There was a manager error ("+u.message_type()+"): "+u.message())},10),i.register("warning",u=>{alert("Warning: "+u.message()+"; your operation was likely not performed")},10),i.register("error",u=>{u.message()&&-1!==u.message().indexOf("InsufficientPermissionsException")?alert("Error: it seems like you do not have permission to perform that operation. Did you remember to login?"):u.message()&&-1!==u.message().indexOf("token")?alert("Error: it seems like you have a bad token..."):(console.log("error:",u,u.message_type(),u.message()),u.message().includes("UnknownIdentifierException"))},10),i.register("meta",function(u){console.log("---------",u)},10),i}foo(e){let i=this.registerManager();var r=new lse.request("meta","sparql");r.special("query",e);var o=new lse.request_set("MYTOKEN",null);o.add(r),i.request_with(o)}}return t.\u0275fac=function(e){return new(e||t)(Rt(lr),Rt(uo),Rt(C_))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ort=v(6268);let art=(()=>{class t{constructor(e,i,r,o,a){this.noctuaFormConfigService=e,this.noctuaUserService=i,this.httpClient=r,this.sparqlMinervaService=o,this.curieService=a,this.minervaDefinitionName=lo.globalMinervaDefinitionName,this.separator="@@",this.baseUrl=lo.spaqrlApiUrl,this.wikidataSparqlUrl=lo.wikidataSparqlUrl,this.cams=[],this.loading=!1,this.linker=new ort.linker,this.searchSummary={},this.curieUtil=this.curieService.getCurieUtil()}getPubmedInfo(e){const i=this,r=this.buildPubmedInfoQuery(e),o=`${this.wikidataSparqlUrl}?query=${encodeURIComponent(r)}&formart=json`;return this.httpClient.get(o).pipe(Qe(a=>a.results),Qe(a=>a.bindings),ts(a=>console.dir(a)),Qe(a=>this.addArticles(a,e)),ts(a=>console.dir(a)),Eu(()=>{i.loading=!1}))}addArticles(e,i){const r=this,o=[];return e.forEach(a=>{const c=new Fz;c.title=a.title.value,c.author=a.author.value,c.link=r.linker.url(`${Ht.evidenceDB.options.pmid.name}:${i}`),a.date&&(c.date=a.date.value),o.push(c)}),o}getAllContributors(){const e=this.buildAllContributorsQuery(),i=`${this.baseUrl}?query=${encodeURIComponent(e)}`;return this.sparqlMinervaService.foo(e),this.httpClient.get(i).pipe(Qe(r=>r.results),Qe(r=>r.bindings),ts(r=>console.dir(r)),Qe(r=>this.addContributor(r)),ts(r=>console.dir(r)))}getAllOrganisms(){const e=this.buildOrganismsQuery(),i=`${this.baseUrl}?query=${encodeURIComponent(e)}`;return this.sparqlMinervaService.foo(e),this.httpClient.get(i).pipe(Qe(r=>r.results),Qe(r=>r.bindings),ts(r=>console.dir(r)),Qe(r=>this.addOrganism(r)),ts(r=>console.dir(r)))}getAllGroups(){const e=this.buildAllGroupsQuery(),i=`${this.baseUrl}?query=${encodeURIComponent(e)}`;return this.sparqlMinervaService.foo(e),this.httpClient.get(i).pipe(Qe(r=>r.results),Qe(r=>r.bindings),ts(r=>console.dir(r)),Qe(r=>this.addGroup(r)),ts(r=>console.dir(r)))}getModelMeta(e){const i=this.buildModelMetaQuery(e),r=`${this.baseUrl}?query=${encodeURIComponent(i)}`;return this.httpClient.get(r).pipe(Qe(o=>o.results),Qe(o=>o.bindings),ts(o=>console.dir(o)),Qe(o=>this.addCam(o)),ts(o=>console.dir(o)))}getModelTerms(e){const i=this.buildModelTermsQuery(e),r=`${this.baseUrl}?query=${encodeURIComponent(i)}`;return this.httpClient.get(r).pipe(Qe(o=>o.results),Qe(o=>o.bindings),ts(o=>console.dir(o)),Qe(o=>this.addCamTerms(o)),ts(o=>console.dir(o)))}addCam(e){const i=this,r=[];return e.forEach(o=>{const a=i.curieUtil.getCurie(o.model.value),c=new sP;c.graph=null,c.id=a,c.state=i.noctuaFormConfigService.findModelState(o.modelState.value),c.title=o.modelTitle.value,c.model=Object.assign({},{modelInfo:this.noctuaFormConfigService.getModelUrls(a)}),o.date&&(c.date=o.date.value),o.groups&&null!==o.groups.value&&(c.groups=o.groups.value.split(i.separator).map(function(u){return(0,Nt.find)(i.noctuaUserService.groups,w=>w.url===u)||{url:u}})),o.contributors&&""!==o.contributors.value&&(c.contributors=o.contributors.value.split(i.separator).map(u=>(0,Nt.find)(i.noctuaUserService.contributors,w=>w.orcid===u)||{orcid:u})),r.push(c)}),r}addCamTerms(e){const i=this,r=[];return e.forEach(o=>{const a=new _i(i.curieUtil.getCurie(o.id.value),o.label.value);r.push(a)}),r}addContributor(e){const i=[];return e.forEach(r=>{const o=new v_;o.orcid=r.orcid.value,o.name=r.name.value,o.cams=r.cams.value,o.group={url:r.affiliations.value},i.push(o)}),i}addGroup(e){const i=[];return e.forEach(r=>{i.push({url:r.url.value,name:r.name.value,cams:r.cams.value,contributorsCount:r.contributors.value,contributors:r.orcids.value.split("@@").map(function(o){return{orcid:o}})})}),i}addOrganism(e){const i=[];return e.forEach(r=>{const o=new Z$e;o.taxonIri=r.taxonIri.value,o.taxonName=r.taxonName.value,o.cams=r.cams.value,i.push(o)}),i}addGroupContributors(e,i){(0,Nt.each)(e,r=>{(0,Nt.each)(r.contributors,o=>{const a=(0,Nt.find)(i,{orcid:o.orcid});o.name=a.name,o.cams=a.cams})})}buildAllContributorsQuery(){const e=new Xi.Query;return e.prefix((0,Xi.prefix)("rdfs",""),(0,Xi.prefix)("dc",""),(0,Xi.prefix)("metago",""),(0,Xi.prefix)("has_affiliation","")).select("?orcid ?name",'(GROUP_CONCAT(distinct ?organization;separator="@@") AS ?organizations)','(GROUP_CONCAT(distinct ?affiliation;separator="@@") AS ?affiliations)',"(COUNT(distinct ?cam) AS ?cams)").where((0,Xi.triple)("?cam","",""),(0,Xi.triple)("?cam","dc:contributor","?orcid"),"BIND( IRI(?orcid) AS ?orcidIRI)",(0,Xi.optional)((0,Xi.triple)("?orcidIRI","rdfs:label","?name"),(0,Xi.triple)("?orcidIRI","","?organization"),(0,Xi.triple)("?orcidIRI","has_affiliation:","?affiliation")),"BIND(IF(bound(?name), ?name, ?orcid) as ?name)").groupBy("?orcid ?name").orderBy("?name","ASC"),e.build()}buildOrganismsQuery(){const e=new Xi.Query,i=new Xi.Query;return i.graph("?model","?model metago:graphType metago:noctuaCam",(0,Xi.triple)("?s","enabled_by:","?entity"),(0,Xi.triple)("?entity","rdf:type","?identifier"),"FILTER(?identifier != owl:NamedIndividual)"),e.prefix((0,Xi.prefix)("rdf",""),(0,Xi.prefix)("rdfs",""),(0,Xi.prefix)("dc",""),(0,Xi.prefix)("metago",""),(0,Xi.prefix)("owl",""),(0,Xi.prefix)("enabled_by",""),(0,Xi.prefix)("in_taxon","")).select("distinct ?taxonIri ?taxonName","(COUNT(distinct ?model) AS ?cams)").where(i,(0,Xi.triple)("?identifier","rdfs:subClassOf","?v0"),(0,Xi.triple)("?v0","owl:onProperty","in_taxon:"),(0,Xi.triple)("?v0","owl:someValuesFrom","?taxonIri"),(0,Xi.triple)("?taxonIri","rdfs:label","?taxonName")).groupBy("?taxonIri ?taxonName").orderBy("?taxonName","ASC"),e.build()}buildAllGroupsQuery(){return'\n PREFIX metago: \n PREFIX dc: \n PREFIX rdfs: \n PREFIX has_affiliation: \n PREFIX hint: \n\n SELECT distinct ?name ?url (GROUP_CONCAT(distinct ?orcidIRI;separator="@@") AS ?orcids) \n (COUNT(distinct ?orcidIRI) AS ?contributors)\n (COUNT(distinct ?cam) AS ?cams)\n WHERE \n {\n ?cam metago:graphType metago:noctuaCam .\n ?cam dc:contributor ?orcid .\n BIND( IRI(?orcid) AS ?orcidIRI ). \n ?orcidIRI has_affiliation: ?url .\n ?url rdfs:label ?name . \n hint:Prior hint:runLast true .\n }\n GROUP BY ?url ?name'}buildPubmedInfoQuery(e){const i=new Xi.Query;return i.prefix((0,Xi.prefix)("wd",""),(0,Xi.prefix)("wdt","")).select("?rtcl ?title ?author ?journal ?date").where((0,Xi.triple)("?rtcl","wdt:P698",`"${e}"`),(0,Xi.optional)((0,Xi.triple)("?rtcl","wdt:P1476","?title")),(0,Xi.optional)((0,Xi.triple)("?rtcl","wdt:P2093","?author")),(0,Xi.optional)((0,Xi.triple)("?rtcl","wdt:P1433","?journal")),(0,Xi.optional)((0,Xi.triple)("?rtcl","wdt:P577","?date"))),i.build()}buildModelMetaQuery(e){const i=new Xi.Query,r=new Xi.Query;return r.graph("?model","?model dc:date ?date; dc:title ?modelTitle; modelState: ?modelState; providedBy: ?providedBy; dc:contributor ?orcid"),i.prefix((0,Xi.prefix)("rdf",""),(0,Xi.prefix)("rdfs",""),(0,Xi.prefix)("dc",""),(0,Xi.prefix)("metago",""),(0,Xi.prefix)("gomodel",""),(0,Xi.prefix)("owl",""),(0,Xi.prefix)("GO",""),(0,Xi.prefix)("BP",""),(0,Xi.prefix)("MF",""),(0,Xi.prefix)("CC",""),(0,Xi.prefix)("modelState",""),(0,Xi.prefix)("providedBy",""),(0,Xi.prefix)("vcard",""),(0,Xi.prefix)("has_affiliation",""),(0,Xi.prefix)("enabled_by",""),(0,Xi.prefix)("evidence",""),(0,Xi.prefix)("in_taxon",""),(0,Xi.prefix)("obo","")).select("distinct ?model ?modelTitle ?modelState ?date",'(GROUP_CONCAT(distinct ?entity;separator="@@") as ?entities)','(GROUP_CONCAT(distinct ?orcid;separator="@@") as ?contributors)','(GROUP_CONCAT(distinct ?providedBy;separator="@@") as ?groups)').where(`VALUES ?model { ${e} }`,r).groupBy("?model ?modelTitle ?modelState ?date"),i.build()}buildModelTermsQuery(e){const i=new Xi.Query,r=new Xi.Query;return r.graph("?model",(0,Xi.triple)("?entity","rdf:type","owl:NamedIndividual"),(0,Xi.triple)("?entity","rdf:type","?id")),i.prefix((0,Xi.prefix)("rdf",""),(0,Xi.prefix)("rdfs",""),(0,Xi.prefix)("dc",""),(0,Xi.prefix)("metago",""),(0,Xi.prefix)("gomodel",""),(0,Xi.prefix)("definition",""),(0,Xi.prefix)("owl",""),(0,Xi.prefix)("GO",""),(0,Xi.prefix)("BP",""),(0,Xi.prefix)("MF",""),(0,Xi.prefix)("CC",""),(0,Xi.prefix)("modelState",""),(0,Xi.prefix)("providedBy",""),(0,Xi.prefix)("vcard",""),(0,Xi.prefix)("has_affiliation",""),(0,Xi.prefix)("enabled_by",""),(0,Xi.prefix)("evidence",""),(0,Xi.prefix)("in_taxon",""),(0,Xi.prefix)("obo","")).select("distinct ?goclasses ?id ?label ?definition").where(`VALUES ?model { ${e} }`,r,"VALUES ?goclasses { BP: MF: CC: }",(0,Xi.triple)("?id","rdfs:subClassOf+","?goclasses"),(0,Xi.triple)("?id","rdfs:label","?label"),(0,Xi.triple)("?id","definition:"," ?definition")).groupBy("?goclasses ?id ?label ?definition"),i.build()}getXSD(e){return'"'+e+'"^^xsd:string'}}return t.\u0275fac=function(e){return new(e||t)(Rt(lr),Rt(uo),Rt(Xd),Rt(rrt),Rt(C_))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function srt(t,n){1&t&&(G(0,"div",34),he(1," Log in to Continue "),W())}function crt(t,n){if(1&t&&(G(0,"mat-option",35),he(1),W()),2&t){const e=n.$implicit;oe("value",e),K(1),Ft(" ",e.label," ")}}function lrt(t,n){if(1&t&&(G(0,"mat-option",35),he(1),W()),2&t){const e=n.$implicit;oe("value",e),K(1),Ft(" ",e.label," ")}}function drt(t,n){1&t&&(G(0,"div",36),he(1," No comments yet "),W())}const urt=function(){return["far","trash-alt"]};function hrt(t,n){if(1&t){const e=Nn();G(0,"div",37)(1,"div",38)(2,"div",39)(3,"mat-form-field",40)(4,"mat-label"),he(5,"Comment"),W(),$e(6,"textarea",41),W(),G(7,"button",42),it("click",function(){const o=Ut(e).index;return He(2).deleteComment(o)}),$e(8,"fa-icon",43),W()()()()}if(2&t){const e=n.index;K(6),oe("formControlName",e),K(2),oe("icon",ai(2,urt))}}function prt(t,n){if(1&t&&(G(0,"div",44),he(1),W()),2&t){const e=n.$implicit;Yr("matTooltip",e.name),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(1),Ft(" ",e.name?e.name:e.orcid,"; ")}}function frt(t,n){if(1&t&&(G(0,"span",45)(1,"div",46),he(2),W()()),2&t){const e=n.$implicit;Yr("matTooltip",e.name),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.name?e.name:e.url," ")}}function grt(t,n){if(1&t){const e=Nn();G(0,"div",7),Ve(1,srt,2,0,"div",8),G(2,"div",9)(3,"div",10)(4,"div",11),he(5," Model Information "),W(),$e(6,"span",3),W(),G(7,"div",12)(8,"div",13)(9,"mat-form-field",14)(10,"mat-label"),he(11,"Title"),W(),$e(12,"textarea",15),W()(),G(13,"div",13)(14,"mat-form-field",14)(15,"mat-label"),he(16,"State"),W(),G(17,"mat-select",16),Ve(18,crt,2,2,"mat-option",17),W()()(),G(19,"div",13)(20,"mat-form-field",14)(21,"mat-label"),he(22,"Group"),W(),G(23,"mat-select",18),Ve(24,lrt,2,2,"mat-option",17),W()()()()(),G(25,"div",9)(26,"div",19)(27,"div",11),he(28," Model Comments "),W(),$e(29,"span",3),G(30,"button",20),it("click",function(){return Ut(e),He().addComment()}),he(31," Add "),W()(),G(32,"div",12),Ve(33,drt,2,0,"div",21),G(34,"div",13),Ve(35,hrt,9,3,"div",22),W()()(),G(36,"div",9)(37,"div",10)(38,"div",11),he(39," Model Information "),W(),$e(40,"span",3),W(),G(41,"div",12)(42,"div",23)(43,"div",24)(44,"div",25)(45,"div",26),he(46,"Title:"),W(),he(47),W(),G(48,"div",27)(49,"div",26),he(50,"State:"),W(),he(51),W(),G(52,"div",28)(53,"div",25)(54,"div",26),he(55,"Contributors:"),W(),Ve(56,prt,2,4,"div",29),W(),G(57,"div",25)(58,"div",26),he(59,"Groups:"),W(),Ve(60,frt,3,4,"span",30),W(),G(61,"div",27)(62,"div",26),he(63,"Open In:"),W(),G(64,"a",31),he(65," Pathway Editor "),W(),G(66,"span"),he(67,"\u2022"),W(),G(68,"a",32),he(69," Form Editor "),W(),G(70,"span"),he(71,"\u2022"),W(),G(72,"a",33),he(73," Graph Editor "),W()()()()()()()()}if(2&t){const e=He();K(1),oe("ngIf",!e.noctuaUserService.user),K(17),oe("ngForOf",e.noctuaFormConfigService.modelState.options),K(6),oe("ngForOf",null==e.noctuaUserService.user?null:e.noctuaUserService.user.groups),K(9),oe("ngIf",0===(null==e.cam?null:e.cam.comments.length)),K(2),oe("ngForOf",null==e.commentFormArray?null:e.commentFormArray.controls),K(12),Ft(" ",e.cam.title," "),K(4),Ft(" ",null==e.cam.state?null:e.cam.state.label," "),K(5),oe("ngForOf",e.cam.contributors),K(4),oe("ngForOf",e.cam.groups),K(4),oe("href",null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.noctuaVPEUrl,ir),K(4),oe("href",null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.noctuaFormUrl,ir),K(4),oe("href",null==e.cam.model||null==e.cam.model.modelInfo?null:e.cam.model.modelInfo.graphEditorUrl,ir)}}function mrt(t,n){if(1&t){const e=Nn();G(0,"div",47),$e(1,"span",3),G(2,"button",48),it("click",function(){return Ut(e),He().save()}),he(3,"Save"),W()()}if(2&t){const e=He();K(2),oe("disabled",!e.camFormGroup.valid)}}let DF=(()=>{class t{constructor(e,i,r,o,a){this.noctuaUserService=e,this.sparqlService=i,this.camService=r,this.noctuaGraphService=o,this.noctuaFormConfigService=a,this._unsubscribeAll=new z}ngOnInit(){this.camFormSub=this.camService.camFormGroup$.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.camFormGroup=e,this.commentFormArray=e.get("commentFormArray"))}),this.camService.onCamChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)})}addComment(){this.commentFormArray.push(new br)}deleteComment(e){this.commentFormArray.removeAt(e),this.save()}save(){const e=this.camFormGroup.value,i={title:e.title,state:e.state.name,comments:e.commentFormArray};this.noctuaGraphService.saveModelGroup(this.cam,e.group.id),this.noctuaGraphService.saveCamAnnotations(this.cam,i)}termDisplayFn(e){return e?e.label:void 0}close(){this.panelDrawer.close()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(uo),de(art),de(Zo),de(hl),de(lr))},t.\u0275cmp=En({type:t,selectors:[["noc-cam-form"]],inputs:{panelDrawer:"panelDrawer"},decls:11,vars:3,consts:[["name","camFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["class","noc-drawer-body w-100-p","noctuaPerfectScrollbar","",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","class","noc-drawer-footer noc-submit-row",4,"ngIf"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-8"],["fxLayout","column",1,"p-4"],["appearance","outline",1,"noc-sm"],["type","text","matInput","","formControlName","title","rows","2"],["placeholder","","formControlName","state","required",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","","formControlName","group","required",""],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","pr-8"],["mat-stroked-button","","type","submit","color","primary",1,"noc-xs","noc-rounded-button",3,"click"],["class","noc-no-info",4,"ngIf"],["formArrayName","commentFormArray",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],[3,"value"],[1,"noc-no-info"],["formArrayName","commentFormArray"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["fxFlex","",1,"noc-form-field-container"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","rows","2",3,"formControlName"],["mat-icon-button","",1,"noc-delete-float-button",3,"click"],[3,"icon"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","submit","mat-raised-button","","color","primary",1,"noc-rounded-button",3,"disabled","click"]],template:function(e,i){1&e&&(G(0,"form",0)(1,"div",1)(2,"span",2),he(3," Model Details"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),Ve(9,grt,74,12,"div",5),Ve(10,mrt,4,1,"div",6),W()),2&e&&(oe("formGroup",i.camFormGroup),K(9),oe("ngIf",i.camFormGroup),K(1),oe("ngIf",i.camFormGroup))},directives:[U2,Il,Lr,kr,al,Vr,Er,Mo,er,Fa,Jd,Ru,Dh,yd,E1,o2,V6,LO,vo,xd,$f,ks,Jl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-form[_ngcontent-%COMP%]{width:350px;min-width:350px;max-width:350px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-no-info[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%] .noc-delete-float-button[_ngcontent-%COMP%]{margin-top:5px;visibility:hidden}[_nghost-%COMP%] .noc-form-field-container[_ngcontent-%COMP%]:hover .noc-delete-float-button[_ngcontent-%COMP%]{visibility:visible}']}),t})();function _rt(t,n){if(1&t&&(G(0,"mat-option",9),he(1),W()),2&t){const e=n.$implicit;oe("value",e),K(1),Ft(" ",e.label," ")}}function vrt(t,n){if(1&t&&(G(0,"div",10)(1,"div",11)(2,"a",12),it("click",function(i){return i.stopPropagation()}),he(3),W()(),G(4,"div",13)(5,"mat-icon",14),he(6,"person"),W(),G(7,"span"),he(8),W()(),G(9,"div",15)(10,"mat-icon",14),he(11,"date_range"),W(),G(12,"span"),he(13),W()()()),2&t){const e=He();K(2),Yr("href",e.article.link,ir),K(1),Ft(" ",e.article.title," "),K(5),Zr(e.article.author),K(5),Zr(e.article.date)}}let Crt=(()=>{class t{constructor(e,i,r,o,a,c){this.dialogRef=e,this.data=i,this.noctuaLookupService=r,this.noctuaFormDialogService=o,this.noctuaFormConfigService=a,this.noctuaActivityFormService=c,this._unsubscribeAll=new z,this.formControl=i.formControl}ngOnInit(){this.evidenceDBForm=this._createEvidenceDBForm(),this._onValueChange()}clearValues(){}save(){const e=this,i=this.evidenceDBForm.value.db,r=this.evidenceDBForm.value.accession,o=[];let a=!0;if(""===r.trim()){const c=new q2(dl.error,ll.general,`${i.name} accession is required`);o.push(c),e.noctuaFormDialogService.openActivityErrorsDialog(o),a=!1}a&&(this.formControl.setValue(i.name+":"+r.trim()),this.close())}cancelEvidenceDb(){this.evidenceDBForm.controls.accession.setValue("")}_createEvidenceDBForm(){return new r2({db:new br(this.noctuaFormConfigService.evidenceDBs.selected),accession:new br("",[I6.required])})}_onValueChange(){const e=this;e.evidenceDBForm.valueChanges.pipe(Ln(this._unsubscribeAll),ns(),Ls(1e3)).subscribe(i=>{e.article=null,e._updateArticle(i)})}close(){this.dialogRef.close()}_updateArticle(e){const i=this;if(e.db.name===Ht.evidenceDB.options.pmid.name&&e.accession){const r=e.accession.trim();if(""===r)return;this.noctuaLookupService.getPubmedInfo(r).pipe(Ln(this._unsubscribeAll)).subscribe(o=>{i.article=o})}}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(PF),de(ise),de(X2),de(gl),de(lr),de(ps))},t.\u0275cmp=En({type:t,selectors:[["noc-reference-dropdown"]],decls:15,vars:3,consts:[["novalidate","","fxLayout","column","fxLayoutAlign","start stretch",1,"pl-8","pr-8","w-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["appearance","outline","fxFlex","100px",1,"noc-sm","mr-12"],["placeholder","","formControlName","db"],[3,"value",4,"ngFor","ngForOf"],["appearance","outline","fxFlex","",1,"noc-sm","w-100-p"],["matInput","","formControlName","accession","type","text","placeholder","Accession","autocomplete","off"],["mat-icon-button","",3,"click"],["class","noc-article-info","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],[3,"value"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-article-info"],[1,"noc-article-title","w-100-p"],["target","_blank",3,"href","click"],[1,"noc-article-author","w-100-p"],[1,"s-16","mr-4"],[1,"noc-article-date","w-100-p"]],template:function(e,i){1&e&&(G(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-select",3),Ve(4,_rt,2,2,"mat-option",4),W()(),G(5,"mat-form-field",5),$e(6,"input",6),W(),G(7,"button",7),it("click",function(){return i.close()}),G(8,"mat-icon"),he(9,"cancel"),W()(),G(10,"button",7),it("click",function(){return i.save()}),G(11,"mat-icon"),he(12,"check_circle"),W()()(),G(13,"div",1),Ve(14,vrt,14,4,"div",8),W()()),2&e&&(oe("formGroup",i.evidenceDBForm),K(4),oe("ngForOf",i.noctuaFormConfigService.evidenceDBs.options),K(10),oe("ngIf",i.article))},directives:[U2,Il,Lr,kr,al,Jd,Vr,V6,E1,o2,vo,xd,Dh,yd,Er,Mo,er],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding-top:8px;width:100%;width:400px;min-width:400px;max-width:400px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;background-color:#fbf9de}[_nghost-%COMP%] .noc-edit-field[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%]{padding:12px 5px}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:12px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-article-info[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{max-height:60px;overflow:hidden}']}),t})();const brt={hasBackdrop:!0,backdropClass:"dark-backdrop",panelClass:"tm-file-preview-dialog-panel",data:null};let KC=(()=>{class t{constructor(e,i){this.injector=e,this.overlay=i}open(e,i={}){const r=Object.assign(Object.assign({},brt),i);r.positionStrategy=this._getPosition(e);const a=this.createOverlay(r),c=new PF(a);return this.attachDialogContainer(a,r,c),a.backdropClick().subscribe(f=>c.close()),c}close(e){}createInjector(e,i){const r=new WeakMap;return r.set(PF,i),r.set(ise,e.data),new bO(this.injector,r)}attachDialogContainer(e,i,r){const o=this.createInjector(i,r),a=new Kd(Crt,null,o);return e.attach(a).instance}createOverlay(e){const i=this.getOverlayConfig(e);return this.overlay.create(i)}getOverlayConfig(e){return new Eh({hasBackdrop:e.hasBackdrop,backdropClass:e.backdropClass,width:e.width,panelClass:e.panelClass,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:e.positionStrategy})}_getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withPush(!0).withPositions([{overlayX:"end",overlayY:"top",originX:"end",originY:"bottom"}])}getLink(){}}return t.\u0275fac=function(e){return new(e||t)(Rt(hs),Rt(ol))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function xrt(t,n){if(1&t&&(G(0,"a",31),it("click",function(i){return i.stopPropagation()}),he(1),W()),2&t){const e=He().$implicit;Yr("href",e.link,ir),K(1),Ft(" ",e.id," ")}}function yrt(t,n){if(1&t&&(G(0,"span"),he(1),W()),2&t){const e=He().$implicit;K(1),Ft(" ",e.id," ")}}function wrt(t,n){if(1&t&&(G(0,"mat-option",25)(1,"div",6)(2,"div",26),he(3),W(),$e(4,"span",3),G(5,"div",27)(6,"strong"),he(7),W()(),G(8,"div",28),Ve(9,xrt,2,2,"a",29),Ve(10,yrt,2,1,"span",30),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(4),Ft(" ",e.xref," "),K(2),oe("ngIf",e.link),K(1),oe("ngIf",!e.link)}}function Mrt(t,n){if(1&t&&(G(0,"mat-option",25)(1,"div",6)(2,"div",26),he(3),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e," ")}}function Ort(t,n){if(1&t&&(G(0,"mat-option",25)(1,"div",6)(2,"div",26),he(3),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e," ")}}let Srt=(()=>{class t{constructor(e,i,r,o,a,c){this._matDialogRef=e,this._noctuaActivityEntityService=i,this.camService=r,this.inlineReferenceService=o,this._data=a,this.noctuaFormConfigService=c,this._fb=new Zd,this.searchFormData={},this.cam={},this._unsubscribeAll=new z,this.evidenceFormGroup=this.createEvidenceForm()}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}createEvidenceForm(){return this.entity=Vu([]),this.entityForm=this._noctuaActivityEntityService.createActivityEntityForm(this.entity),this._fb.group(this.entityForm).get("evidenceFormArray").at(0)}clearValues(){this.entity.clearValues()}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.evidenceFormGroup.controls[i]}})}updateEvidenceList(){this.camService.updateEvidenceList(null,this.entity)}updateReferenceList(){this.camService.updateReferenceList(null,this.entity)}updateWithList(){this.camService.updateWithList(null,this.entity)}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}save(){this.entityForm.populateTermEvidenceOnly(),this._matDialogRef.close(this.entity.predicate.evidence)}close(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(Td),de(Zo),de(KC),de(Od),de(lr))},t.\u0275cmp=En({type:t,selectors:[["app-add-evidence"]],decls:45,vars:8,consts:[[1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","pt-20"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[3,"formGroup"],["fxFlex","250px",1,"noc-edit-field","p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","evidence","rows","2",3,"matAutocomplete","focus"],[1,"noc-term-autocomplete",3,"displayWith"],["evidenceAuto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","reference","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],[1,"noc-term-autocomplete"],["referenceAuto","matAutocomplete"],["fxFlex","","fxFlex","150px",1,"noc-edit-field","p-4"],["matInput","","formControlName","with","rows","2","autocomplete","off",3,"matAutocomplete","focus"],["withAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-8","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"noc-term-label"],[1,"noc-term-id","mr-8"],[1,"noc-term-id"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href","click"]],template:function(e,i){if(1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Add Evidence "),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),G(9,"div",5)(10,"div",6),Qr(11,7),G(12,"div",8)(13,"mat-form-field",9)(14,"mat-label"),he(15,"Evidence"),W(),G(16,"textarea",10),it("focus",function(){return i.updateEvidenceList()}),W(),G(17,"mat-autocomplete",11,12),Ve(19,wrt,11,5,"mat-option",13),W()()(),G(20,"div",14)(21,"mat-form-field",9)(22,"mat-label"),he(23,"Reference"),W(),G(24,"textarea",15),it("focus",function(){return i.updateReferenceList()}),W(),G(25,"button",16),it("click",function(o){return i.openAddReference(o,"reference")}),G(26,"mat-icon"),he(27,"playlist_add"),W()(),G(28,"mat-autocomplete",17,18),Ve(30,Mrt,4,2,"mat-option",13),W()()(),G(31,"div",19)(32,"mat-form-field",9)(33,"mat-label"),he(34,"With"),W(),G(35,"textarea",20),it("focus",function(){return i.updateWithList()}),W(),G(36,"mat-autocomplete",17,21),Ve(38,Ort,4,2,"mat-option",13),W()()(),Kr(),W()(),G(39,"div",22),$e(40,"span",3),G(41,"button",23),it("click",function(){return i.close()}),he(42,"Cancel"),W(),G(43,"button",24),it("click",function(){return i.save()}),he(44,"Save"),W()()()),2&e){const r=Di(18),o=Di(29),a=Di(37);K(11),oe("formGroup",i.evidenceFormGroup),K(5),oe("matAutocomplete",r),K(1),oe("displayWith",i.evidenceDisplayFn),K(2),oe("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.evidenceLookup.results),K(5),oe("matAutocomplete",o),K(6),oe("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.referenceLookup.results),K(5),oe("matAutocomplete",a),K(3),oe("ngForOf",null==i.entity||null==i.entity.predicate?null:i.entity.predicate.withLookup.results)}},directives:[Lr,kr,Vr,Er,Mo,Il,al,Jd,Ru,Dh,yd,Jp,E1,o2,Kf,vo,xd,er,kv],styles:[""]}),t})(),Prt=(()=>{class t{constructor(e,i,r){this._matDialogRef=e,this.noctuaFormConfigService=i,this._data=r,this._unsubscribeAll=new z,this.cam=r.cam,this.camForm=this.createCamForm(this.cam)}ngOnInit(){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}createCamForm(e){return new r2({title:new br("Copy of "+(null==e?void 0:e.title))})}save(){this._matDialogRef.close(this.camForm.value)}close(){this._matDialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(de(a2),de(lr),de(Od))},t.\u0275cmp=En({type:t,selectors:[["app-confirm-copy-model"]],decls:23,vars:1,consts:[[1,"dialog-content-wrapper","noc-dialog"],["fxLayout","row","fxLayoutAlign","start center",1,"m-0","noc-dialog-header"],[1,"noc-dialog-header-title"],["fxFlex",""],["mat-stroked-button","","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"noc-dialog-body","pt-20"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-form-section","w-100-p"],[3,"formGroup"],["fxFlex","",1,"noc-edit-field","p-4"],["appearance","outline",1,"noc-sm","w-100-p"],["type","text","matInput","","formControlName","title","rows","2"],["fxLayout","row","fxLayoutAlign","space-between center",1,"m-0","p-8","noc-dialog-footer"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Edit Title & Confirm Copy"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),G(9,"div",5)(10,"div",6),Qr(11,7),G(12,"div",8)(13,"mat-form-field",9)(14,"mat-label"),he(15,"Title"),W(),$e(16,"textarea",10),W()(),Kr(),W()(),G(17,"div",11),$e(18,"span",3),G(19,"button",12),it("click",function(){return i.close()}),he(20,"Cancel"),W(),G(21,"button",13),it("click",function(){return i.save()}),he(22,"Save"),W()()()),2&e&&(K(11),oe("formGroup",i.camForm))},directives:[Lr,kr,Vr,Er,Mo,Il,al,Jd,Ru,Dh,yd,E1,o2],styles:[""]}),t})(),gl=(()=>{class t{constructor(e,i,r){this.zone=e,this.snackBar=i,this._matDialog=r}openInfoToast(e,i){this.zone.run(()=>{this.snackBar.open(e,i,{duration:1e4,verticalPosition:"top"})})}openConfirmDialog(e,i){this.dialogRef=this._matDialog.open(Gz,{panelClass:"noc-search-database-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(r=>{r&&i(r)})}openCreateActivityDialog(e){this.dialogRef=this._matDialog.open(nse,{panelClass:"noc-activity-create-dialog",data:{formType:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openActivityErrorsDialog(e){this.dialogRef=this._matDialog.open(cet,{panelClass:"activity-errors-dialog",data:{errors:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openCamErrorsDialog(e){this.dialogRef=this._matDialog.open(Ntt,{panelClass:"cam-errors-dialog",data:{errors:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openAddEvidenceDialog(e){this.dialogRef=this._matDialog.open(Srt,{panelClass:"noc-add-evidence-dialog",data:{},width:"600px"}),this.dialogRef.afterClosed().subscribe(i=>{i&&e(i)})}openBeforeSaveDialog(e){this.dialogRef=this._matDialog.open(det,{panelClass:"before-save-dialog",data:{cam:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openConfirmCopyModelDialog(e,i){this.dialogRef=this._matDialog.open(Prt,{panelClass:"noc-confirm-copy-model-dialog",data:{cam:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(r=>{r&&i(r)})}openCreateFromExistingDialog(e){this.dialogRef=this._matDialog.open(uet,{panelClass:"create-from-existing-dialog",data:{cam:e}}),this.dialogRef.afterClosed().subscribe(i=>{})}openLinkToExistingDialogComponent(e,i){this.dialogRef=this._matDialog.open(fet,{panelClass:"noc-link-to-existing-dialog",data:e}),this.dialogRef.afterClosed().subscribe(r=>{i(r)})}openSelectEvidenceDialog(e,i){this.dialogRef=this._matDialog.open(Tet,{panelClass:"noc-select-evidence-dialog",data:{evidence:e}}),this.dialogRef.afterClosed().subscribe(r=>{r&&i(r)})}openSearchDatabaseDialog(e,i){this.dialogRef=this._matDialog.open($et,{panelClass:"noc-search-database-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(r=>{r&&i(r)})}openSearchEvidenceDialog(e,i){this.dialogRef=this._matDialog.open(Dtt,{panelClass:"noc-search-evidence-dialog",data:{searchCriteria:e},width:"600px"}),this.dialogRef.afterClosed().subscribe(r=>{r&&i(r)})}openPreviewActivityDialog(){this.dialogRef=this._matDialog.open(utt,{panelClass:"noc-preview-activity-dialog",width:"600px"})}}return t.\u0275fac=function(e){return new(e||t)(Rt(ji),Rt(lR),Rt(GO))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ert=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,Gk,Vv,Nu,Kp,uS]]}),t})(),dse=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,G2,Qf,Zp,A1]]}),t})();function Trt(t,n){if(1&t&&(G(0,"span",15),he(1),G(2,"a",13),it("click",function(i){return i.stopPropagation()}),he(3),W()()),2&t){const e=He(2).$implicit;K(1),Ft(" ",null==e.evidence||null==e.evidence.termHistory[0]?null:e.evidence.termHistory[0].label," "),K(1),Yr("href",null==e.evidence||null==e.evidence.termHistory[0]?null:e.evidence.termHistory[0].url,ir),K(1),Ft(" ",null==e.evidence||null==e.evidence.termHistory[0]?null:e.evidence.termHistory[0].id," ")}}function Art(t,n){if(1&t&&$e(0,"noctua-inline-editor",16),2&t){const e=He(2).index,i=He(2);oe("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.evidence)("evidenceIndex",e)}}const use=function(t){return{"noc-highlight-modified":t}};function Drt(t,n){if(1&t&&(G(0,"div",10),Ve(1,Trt,4,3,"span",11),G(2,"span",12),he(3),$e(4,"br"),G(5,"a",13),it("click",function(i){return i.stopPropagation()}),he(6),W()(),Ve(7,Art,1,5,"noctua-inline-editor",14),W()),2&t){const e=He().$implicit,i=He(2);oe("ngClass",Pr(6,use,null==e.evidence?null:e.evidence.modified)),K(1),oe("ngIf",(null==e.evidence?null:e.evidence.modified)&&(null==e.evidence||null==e.evidence.termHistory?null:e.evidence.termHistory.length)>0),K(2),Zr(null==e.evidence?null:e.evidence.label),K(2),Yr("href",null==e.evidence?null:e.evidence.url,ir),K(1),Ft(" ",null==e.evidence?null:e.evidence.id," "),K(1),oe("ngIf",i.noctuaUserService.user&&i.options.editableEvidence)}}function Lrt(t,n){if(1&t&&(G(0,"span",15)(1,"a",13),it("click",function(i){return i.stopPropagation()}),he(2),W()()),2&t){const e=He(2).$implicit;K(1),Yr("href",null==e.referenceEntity||null==e.referenceEntity.termHistory[0]?null:e.referenceEntity.termHistory[0].url,ir),K(1),Ft(" ",null==e.referenceEntity||null==e.referenceEntity.termHistory[0]?null:e.referenceEntity.termHistory[0].id," ")}}function krt(t,n){if(1&t&&(G(0,"span",12),he(1),W()),2&t){const e=He(2).$implicit;K(1),Zr(e.reference)}}function Irt(t,n){if(1&t&&(G(0,"span",12)(1,"a",13),it("click",function(i){return i.stopPropagation()}),he(2),W()()),2&t){const e=He(2).$implicit;K(1),Yr("href",null==e.referenceEntity?null:e.referenceEntity.url,ir),K(1),Ft(" ",e.reference," ")}}function Nrt(t,n){if(1&t&&$e(0,"noctua-inline-editor",16),2&t){const e=He(2).index,i=He(2);oe("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.reference)("evidenceIndex",e)}}const Rrt=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};function zrt(t,n){if(1&t&&(G(0,"div",17),Ve(1,Lrt,3,2,"span",11),Ve(2,krt,2,1,"span",18),Ve(3,Irt,3,2,"span",18),Ve(4,Nrt,1,5,"noctua-inline-editor",14),W()),2&t){const e=He().$implicit,i=He(2);oe("ngClass",bh(5,Rrt,null==e.referenceEntity?null:e.referenceEntity.highlight,null==e.referenceEntity?null:e.referenceEntity.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==e.referenceEntity?null:e.referenceEntity.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),K(1),oe("ngIf",(null==e.referenceEntity?null:e.referenceEntity.modified)&&(null==e.referenceEntity||null==e.referenceEntity.termHistory?null:e.referenceEntity.termHistory.length)>0),K(1),oe("ngIf",!(null!=e.referenceEntity&&e.referenceEntity.url)),K(1),oe("ngIf",null==e.referenceEntity?null:e.referenceEntity.url),K(1),oe("ngIf",i.noctuaUserService.user&&i.options.editableReference)}}function Frt(t,n){if(1&t&&(G(0,"span",15)(1,"a",13),it("click",function(i){return i.stopPropagation()}),he(2),W()()),2&t){const e=He(2).$implicit;K(1),Yr("href",null==e.withEntity||null==e.withEntity.termHistory[0]?null:e.withEntity.termHistory[0].url,ir),K(1),Ft(" ",null==e.withEntity||null==e.withEntity.termHistory[0]?null:e.withEntity.termHistory[0].id," ")}}function Hrt(t,n){if(1&t&&(G(0,"span",12),he(1),W()),2&t){const e=He(2).$implicit;K(1),Zr(e.with)}}function Vrt(t,n){if(1&t&&(G(0,"span",12)(1,"a",13),it("click",function(i){return i.stopPropagation()}),he(2),W()()),2&t){const e=He(2).$implicit;K(1),Yr("href",null==e.withEntity?null:e.withEntity.url,ir),K(1),Ft(" ",e.with," ")}}function Brt(t,n){if(1&t&&$e(0,"noctua-inline-editor",16),2&t){const e=He(2).index,i=He(2);oe("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.with)("evidenceIndex",e)}}function Grt(t,n){if(1&t&&(G(0,"div",19),Ve(1,Frt,3,2,"span",11),Ve(2,Hrt,2,1,"span",18),Ve(3,Vrt,3,2,"span",18),Ve(4,Brt,1,5,"noctua-inline-editor",14),W()),2&t){const e=He().$implicit,i=He(2);oe("ngClass",Pr(5,use,null==e.withEntity?null:e.withEntity.modified)),K(1),oe("ngIf",(null==e.withEntity?null:e.withEntity.modified)&&(null==e.withEntity||null==e.withEntity.termHistory?null:e.withEntity.termHistory.length)>0),K(1),oe("ngIf",!(null!=e.withEntity&&e.withEntity.url)),K(1),oe("ngIf",null==e.withEntity?null:e.withEntity.url),K(1),oe("ngIf",i.noctuaUserService.user&&i.options.editableWith)}}function Yrt(t,n){1&t&&(G(0,"span"),he(1,",\xa0"),W())}function Urt(t,n){if(1&t&&(G(0,"span")(1,"a",13),it("click",function(i){return i.stopPropagation()}),he(2),W(),Ve(3,Yrt,2,0,"span",22),W()),2&t){const e=n.$implicit,i=n.last;K(1),Yr("href",e.url,ir),K(1),Ft(" ",e.name," "),K(1),oe("ngIf",!i)}}function jrt(t,n){if(1&t&&(G(0,"div",20)(1,"span",12),Ve(2,Urt,4,3,"span",21),W()()),2&t){const e=He().$implicit;K(2),oe("ngForOf",e.groups)}}function Wrt(t,n){1&t&&(G(0,"span"),he(1,",\xa0"),W())}function qrt(t,n){if(1&t&&(G(0,"span")(1,"a",13),it("click",function(i){return i.stopPropagation()}),he(2),W(),Ve(3,Wrt,2,0,"span",22),W()),2&t){const e=n.$implicit,i=n.last;K(1),Yr("href",e.urcid,ir),K(1),Ft(" ",e.name," "),K(1),oe("ngIf",!i)}}function Xrt(t,n){if(1&t&&(G(0,"div",23)(1,"span",12),Ve(2,qrt,4,3,"span",21),W()()),2&t){const e=He().$implicit;K(2),oe("ngForOf",e.contributors)}}function $rt(t,n){if(1&t&&(G(0,"div",4),Ve(1,Drt,8,8,"div",5),Ve(2,zrt,5,9,"div",6),Ve(3,Grt,5,7,"div",7),Ve(4,jrt,3,1,"div",8),Ve(5,Xrt,3,1,"div",9),W()),2&t){const e=He(2);K(1),oe("ngIf",e.settings.showEvidenceCode),K(1),oe("ngIf",e.settings.showReference),K(1),oe("ngIf",e.settings.showWith),K(1),oe("ngIf",e.settings.showGroup),K(1),oe("ngIf",e.settings.showContributor)}}function Qrt(t,n){if(1&t&&(G(0,"div",2),Ve(1,$rt,6,5,"div",3),W()),2&t){const e=He();K(1),oe("ngForOf",null==e.entity.predicate?null:e.entity.predicate.evidence)}}function Krt(t,n){1&t&&(G(0,"div",24),he(1," no evidence present.\n"),W())}let hse=(()=>{class t{constructor(e,i,r,o){this.camService=e,this.noctuaUserService=i,this.noctuaFormConfigService=r,this.noctuaActivityEntityService=o,this.EditorCategory=pa,this.settings=new w_,this.options={},this.unsubscribeAll=new z}ngOnInit(){}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(uo),de(lr),de(Td))},t.\u0275cmp=En({type:t,selectors:[["noc-evidence-table"]],inputs:{settings:"settings",options:"options",cam:"cam",entity:"entity"},decls:2,vars:2,consts:[["class","noc-evidence-table noctua-form-table w-100-p","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-no-info",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-table","noctua-form-table","w-100-p"],["fxLayout","row","fxLayoutAlign","start stretch","class","noc-row",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-row"],["class","noc-evidence-code-cell noc-box-cell","fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-reference-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-with-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-group-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-contributor-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-code-cell","noc-box-cell",3,"ngClass"],["class","noc-old-term",4,"ngIf"],[1,""],["target","_blank",3,"href","click"],["class","noc-edit-button",3,"cam","activity","entity","category","evidenceIndex",4,"ngIf"],[1,"noc-old-term"],[1,"noc-edit-button",3,"cam","activity","entity","category","evidenceIndex"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-reference-cell","noc-box-cell",3,"ngClass"],["class","",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-with-cell","noc-box-cell",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-group-cell","noc-box-cell"],[4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-contributor-cell","noc-box-cell"],[1,"noc-no-info"]],template:function(e,i){1&e&&(Ve(0,Qrt,2,1,"div",0),Ve(1,Krt,2,0,"div",1)),2&e&&(oe("ngIf",(null==i.entity.predicate?null:i.entity.predicate.evidence.length)>0),K(1),oe("ngIf",0===(null==i.entity.predicate?null:i.entity.predicate.evidence.length)))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-qualifier[_ngcontent-%COMP%]{padding:5px;width:100%;font-size:12px;text-align:center;border-bottom:1px solid rgba(46,111,154,.3)}[_nghost-%COMP%] p[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px;margin:0}[_nghost-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{padding:20px 10px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%] .noc-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-row[_ngcontent-%COMP%]{border-bottom:#ddd solid 1px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{overflow:auto;background-color:transparent}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] tr.mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-header-row.noc-hide-header[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0;visibility:hidden;display:none;overflow:hidden;border:none}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-evidence-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:dc}}),t})();const Zrt=["tree"],pse=function(){return["fas","caret-right"]};function Jrt(t,n){1&t&&$e(0,"fa-icon",25),2&t&&oe("icon",ai(1,pse))}const fse=function(){return["fas","caret-down"]};function eot(t,n){1&t&&$e(0,"fa-icon",25),2&t&&oe("icon",ai(1,fse))}function tot(t,n){1&t&&(G(0,"span",26),he(1,"GP info not available"),W())}function not(t,n){if(1&t&&(G(0,"span",27),he(1),G(2,"a",28),it("click",function(i){return i.stopPropagation()}),he(3),W()()),2&t){const e=He();Np("matTooltip","GP: ",null==e.gpNode.term?null:e.gpNode.term.label," \r ( ",null==e.gpNode.term?null:e.gpNode.term.id,")"),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(1),Ft(" ",null==e.gpNode.term?null:e.gpNode.term.label," "),K(1),Yr("href",null==e.gpNode.term?null:e.gpNode.term.url,ir),K(1),Ft(" ",null==e.gpNode.term?null:e.gpNode.term.id," ")}}function iot(t,n){if(1&t&&(G(0,"mat-chip",29)(1,"div",30),he(2),W(),G(3,"div",31)(4,"span"),he(5),W()()()),2&t){const e=He();Yr("matTooltip",e.activity.summary.mf.tooltip),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.activity.summary.mf.shorthand," "),K(3),Ft(" ",null==e.activity.mfNode.term?null:e.activity.mfNode.term.label," ")}}function rot(t,n){if(1&t&&(G(0,"mat-chip",32)(1,"div",30),he(2),W(),G(3,"div",31)(4,"span"),he(5),W()()()),2&t){const e=He();Yr("matTooltip",e.activity.summary.bp.tooltip),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.activity.summary.bp.shorthand," "),K(3),Ft(" ",null==e.activity.bpNode.term?null:e.activity.bpNode.term.label," ")}}function oot(t,n){if(1&t&&(G(0,"mat-chip",33)(1,"div",30),he(2),W(),G(3,"div",31)(4,"span"),he(5),W()()()),2&t){const e=He();Yr("matTooltip",e.activity.summary.cc.tooltip),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.activity.summary.cc.shorthand," "),K(3),Ft(" ",null==e.activity.ccNode.term?null:e.activity.ccNode.term.label," ")}}const aot=function(){return["fas","exclamation-triangle"]};function sot(t,n){if(1&t){const e=Nn();G(0,"div",34)(1,"mat-chip",35),it("click",function(){Ut(e);const r=He();return r.displayActivityErrors(r.activity)}),G(2,"div",36),$e(3,"fa-icon",25),W(),G(4,"div",31),he(5),W()()()}if(2&t){const e=He();K(3),oe("icon",ai(2,aot)),K(2),Ft(" ",null==e.activity.violations?null:e.activity.violations.length," Errors Found ")}}function cot(t,n){if(1&t){const e=Nn();G(0,"div",37)(1,"button",38)(2,"mat-icon"),he(3,"more_vert"),W()(),G(4,"mat-menu",39,40)(6,"h6",41),he(7," Danger Zone"),W(),G(8,"button",42),it("click",function(){Ut(e);const r=He();return r.deleteActivity(r.activity)}),he(9," Delete Activity "),W()()()}if(2&t){const e=Di(5);K(1),oe("matMenuTriggerFor",e)}}function lot(t,n){1&t&&(G(0,"div",60),he(1," Relationship "),W())}function dot(t,n){1&t&&$e(0,"div",61)}function uot(t,n){1&t&&$e(0,"fa-icon",25),2&t&&oe("icon",ai(1,pse))}function hot(t,n){1&t&&$e(0,"fa-icon",25),2&t&&oe("icon",ai(1,fse))}function pot(t,n){if(1&t){const e=Nn();G(0,"button",69),it("click",function(){return Ut(e),He().$implicit.toggleExpanded()}),Ve(1,uot,1,2,"fa-icon",4),Ve(2,hot,1,2,"fa-icon",4),W()}if(2&t){const e=He().$implicit;K(1),oe("ngIf",null==e?null:e.isCollapsed),K(1),oe("ngIf",null==e?null:e.isExpanded)}}function fot(t,n){1&t&&$e(0,"div",70)}function got(t,n){if(1&t&&$e(0,"noctua-inline-editor",73),2&t){const e=He(2).$implicit,i=He(2);oe("cam",i.cam)("activity",i.activity)("entity",e.data.node)("category",i.EditorCategory.relationship)}}function mot(t,n){if(1&t&&(G(0,"div",71),he(1),Ve(2,got,1,4,"noctua-inline-editor",72),W()),2&t){const e=He().$implicit,i=He(2);K(1),Ft(" ",null==e.data.node||null==e.data.node.predicate||null==e.data.node.predicate.edge?null:e.data.node.predicate.edge.label," "),K(1),oe("ngIf",i.noctuaUserService.user&&e.data.node.relationEditable&&i.options.editableRelation)}}function _ot(t,n){if(1&t){const e=Nn();G(0,"div",62),Ve(1,pot,3,2,"button",63),Ve(2,fot,1,0,"div",64),G(3,"div",65),it("click",function(r){return Ut(e).$implicit.mouseAction("click",r)})("dblclick",function(r){return Ut(e).$implicit.mouseAction("dblClick",r)})("contextmenu",function(r){return Ut(e).$implicit.mouseAction("contextMenu",r)})("treeDrop",function(r){return Ut(e).$implicit.onDrop(r)}),G(4,"div",66),Ve(5,mot,3,2,"div",67),$e(6,"noc-activity-tree-node",68),W()()()}if(2&t){const e=n.$implicit,i=He(2);jo("padding-left",e.getNodePadding()),K(1),oe("ngIf",e.hasChildren),K(1),oe("ngIf",!e.hasChildren),K(1),sr("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),oe("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),K(2),oe("ngIf",i.options.slimViewer),K(1),oe("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}function vot(t,n){if(1&t){const e=Nn();G(0,"div",43)(1,"div",44),Ve(2,lot,2,0,"div",45),G(3,"div",46),he(4," Term "),W(),G(5,"div",47),he(6," Asp "),W(),G(7,"div",48),he(8," Ext "),W(),G(9,"div",49)(10,"div",50),he(11," Evidence "),W(),G(12,"div",51),he(13," Reference "),W(),G(14,"div",52),he(15," With "),W(),G(16,"div",53),he(17," Assigned By "),W(),G(18,"div",54),he(19," Contributor "),W()(),Ve(20,dot,1,0,"div",55),W(),G(21,"div",56)(22,"tree-root",57,58),it("initialized",function(){return Ut(e),He().onTreeLoad()}),Ve(24,_ot,7,16,"ng-template",null,59,zp),W()()()}if(2&t){const e=He();K(2),oe("ngIf",!e.options.slimViewer),K(18),oe("ngIf",e.noctuaUserService.user&&e.options.showMenu),K(2),oe("nodes",e.treeNodes)("options",e.treeOptions)}}const Cot=function(t){return{"noc-selected":t}},bot=function(){return["fas","calendar-day"]};let gse=(()=>{class t{constructor(e,i,r,o,a,c,u,f){this.camService=e,this.confirmDialogService=i,this.noctuaUserService=r,this.noctuaFormConfigService=o,this.noctuaFormDialogService=a,this.noctuaActivityEntityService=c,this.noctuaActivityFormService=u,this.inlineEditorService=f,this.EditorCategory=pa,this.ActivityType=Wi,this.ActivityNodeType=vn,this.activityTypeOptions=Ht.activityType.options,this.treeNodes=[],this.options={},this.optionsDisplay={},this.editableTerms=!1,this.currentMenuEvent={},this.treeOptions={allowDrag:!1,allowDrop:!1,getNodeClone:w=>Object.assign(Object.assign({},w.data),{name:`Copy of ${w.data.name}`})},this.hasChild=(w,E)=>E.expandable,this._unsubscribeAll=new z}ngOnInit(){var e;(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.gpNode=this.activity.getGPNode(),this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.treeNodes=this.activity.buildTrees()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}onTreeLoad(){this.tree.treeModel.expandAll()}toggleExpand(e){e.expanded=!e.expanded}toggleNodeExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const r={cam:this.cam,activity:this.activity,entity:e,category:pa.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r}),this.noctuaActivityFormService.initializeForm()}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(){}openSearchDatabaseDialog(e){const i=this,r=this.noctuaActivityFormService.activity.getGPNode();if(r){const a=function(c){c.term&&(e.term=new _i(c.term.term.id,c.term.term.label),c.evidences&&c.evidences.length>0&&e.predicate.setEvidence(c.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:r.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}insertEntity(e,i){const r=this.noctuaFormConfigService.insertActivityNode(this.activity,e,i),o={cam:this.cam,activity:this.activity,entity:r,category:pa.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,r),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o})}addRootTerm(e){const i=this,r=(0,Nt.find)(Ht.rootNode,o=>o.aspect===e.aspect);if(r){e.term=new _i(r.id,r.label),i.noctuaActivityFormService.initializeForm();const o=new Rl;o.setEvidence(new _i(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),o.reference=Ht.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([o]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,r=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(r,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}deleteActivity(e){const i=this;i.noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this.camService.deleteActivity(e).then(()=>{i.noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}cleanId(e){return m4.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(Q2),de(uo),de(lr),de(gl),de(Td),de(ps),de(Em))},t.\u0275cmp=En({type:t,selectors:[["noc-activity-tree"]],viewQuery:function(e,i){if(1&e&&fr(Zrt,5),2&e){let r;hi(r=pi())&&(i.tree=r.first)}},inputs:{cam:"cam",activity:"activity",options:"options"},decls:32,vars:20,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-activity-heading"],["fxFlex","25px",3,"click"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cell"],[1,"noc-display-number","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-gp","noc-cell"],["class","noc-no-info",4,"ngIf"],["class","text-truncate",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-type","noc-cell"],[1,"noc-chip-activity-type","noc-chip-xs"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-date","noc-cell"],[1,"noc-icon",3,"icon"],[1,"ml-4"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-coverage","noc-cell"],[3,"src"],["fxFlex","","fxLayout","row","fxLayoutAlign","start stretch",1,"scard-title-summary"],["fxFlex","33%","fxLayout","row","fxLayoutAlign","start center",1,"noc-cell"],["class","noc-chip-xs noc-mf noc-summary-chip noc-type-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["class","noc-chip-xs noc-bp noc-summary-chip noc-type-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["class","noc-chip-xs noc-cc noc-summary-chip noc-type-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngIf"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","","fxFlex","50px","fxLayout","row","fxLayoutAlign","end center",4,"ngIf"],["class","noc-tree-container",4,"ngIf"],[3,"icon"],[1,"noc-no-info"],[1,"text-truncate",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],["target","_blank",1,"ml-4",3,"href","click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-chip-xs","noc-mf","noc-summary-chip","noc-type-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-icon","noc-icon-initials"],["fxFlex","",1,"noc-chip-label"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-chip-xs","noc-bp","noc-summary-chip","noc-type-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-chip-xs","noc-cc","noc-summary-chip","noc-type-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip","noc-chip-xs","ml-8",3,"click"],[1,"noc-icon"],["fxFlex","50px","fxLayout","row","fxLayoutAlign","end center",1,""],["mat-icon-button","","fxFlex","40px","color","primary",1,"noc-rounded-button","noc-sm",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["connectionOptionMenu","matMenu"],[1,"noc-menu-heading"],["mat-menu-item","",1,"",3,"click"],[1,"noc-tree-container"],["fxLayout","row","fxLayoutAlign","start center",1,"noctua-form-table","noc-activity-header","w-100-p"],["class","noc-cell noc-relation-cell",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-term-cell"],[1,"noc-cell","noc-aspect-cell"],[1,"noc-cell","noc-extension-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-evidence-cell"],["fxFlex","",1,"noc-cell","noc-evidence-code-cell"],[1,"noc-cell","noc-reference-cell"],[1,"noc-cell","noc-with-cell"],[1,"noc-cell","noc-group-cell"],[1,"noc-cell","noc-contributor-cell"],["class","noc-cell noc-action-cell",4,"ngIf"],[1,"noc-tree"],[3,"nodes","options","initialized"],["tree",""],["treeNodeWrapperTemplate",""],[1,"noc-cell","noc-relation-cell"],[1,"noc-cell","noc-action-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"node-wrapper","noc-tree-node"],["mat-icon-button","","class","noc-node-expander-button","color","primary",3,"click",4,"ngIf"],["class","noc-expander-placeholder",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"node-content-wrapper",3,"treeAllowDrop","treeDrag","treeDragEnabled","click","dblclick","contextmenu","treeDrop"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-annotation-row"],["class","noc-cell-label","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"w-100-p",3,"options","cam","activity","entity"],["mat-icon-button","","color","primary",1,"noc-node-expander-button",3,"click"],[1,"noc-expander-placeholder"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-cell-label"],["class","noc-edit-button ml-12",3,"cam","activity","entity","category",4,"ngIf"],[1,"noc-edit-button","ml-12",3,"cam","activity","entity","category"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2),it("click",function(o){return o.stopPropagation()}),G(3,"button",3),it("click",function(){return i.toggleExpand(i.activity)}),Ve(4,Jrt,1,2,"fa-icon",4),Ve(5,eot,1,2,"fa-icon",4),W()(),G(6,"div",5)(7,"div",6),it("click",function(o){return o.stopPropagation()}),he(8),W()(),G(9,"div",7),Ve(10,tot,2,0,"span",8),Ve(11,not,4,7,"span",9),W(),G(12,"div",10)(13,"mat-chip",11)(14,"span"),he(15),W()()(),G(16,"div",12),$e(17,"fa-icon",13),G(18,"span",14),he(19),W()(),G(20,"div",15),$e(21,"img",16),W(),G(22,"div",17)(23,"div",18),Ve(24,iot,6,5,"mat-chip",19),W(),G(25,"div",18),Ve(26,rot,6,5,"mat-chip",20),W(),G(27,"div",18),Ve(28,oot,6,5,"mat-chip",21),W()(),Ve(29,sot,6,3,"div",22),Ve(30,cot,10,1,"div",23),W(),Ve(31,vot,26,4,"div",24),W()),2&e&&(oe("ngClass",Pr(17,Cot,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Ti("id",i.activity.displayId),K(4),oe("ngIf",!i.activity.expanded),K(1),oe("ngIf",i.activity.expanded),K(3),Ft(" ",i.activity.displayNumber," "),K(2),oe("ngIf",!i.gpNode),K(1),oe("ngIf",i.gpNode),K(4),Zr(null==i.activityTypeOptions[i.activity.activityType]?null:i.activityTypeOptions[i.activity.activityType].label),K(2),oe("icon",ai(19,bot)),K(2),Zr(i.activity.formattedDate),K(2),oe("src","assets/images/activity/coverage-"+(null==i.activity.summary?null:i.activity.summary.coverage)+".png",ir),K(3),oe("ngIf",i.activity.mfNode),K(2),oe("ngIf",i.activity.bpNode),K(2),oe("ngIf",i.activity.ccNode),K(1),oe("ngIf",i.activity.hasViolations),K(1),oe("ngIf",!i.options.reviewMode),K(1),oe("ngIf",i.activity.expanded))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .scard-title-summary[_ngcontent-%COMP%]{line-height:12px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding-left:5px;position:relative;margin-bottom:1px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 2px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell.noc-relation-cell[_ngcontent-%COMP%]{padding:0 2px 0 16px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;background-color:#fff;font-size:12px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:2px 8px;border-right:#aaa solid 1px;overflow:hidden}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%]{position:relative;width:170px;min-width:170px;max-width:170px;line-height:12px;padding:4px 8px;font-size:12px!important;color:#000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-no-info[_ngcontent-%COMP%]{padding:0;font-size:10px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-coverage[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-coverage[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:30px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-type[_ngcontent-%COMP%]{width:95px;min-width:95px;max-width:95px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%]{font-size:10px;color:#555;width:90px;min-width:90px;max-width:90px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%] noc-icon[_ngcontent-%COMP%]{color:#777}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;font-size:8px;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:14px;left:-16px;width:25px;height:1px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding-left:29px;padding-right:10px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{word-break:break-all}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;border-radius:50%;color:#777;font-size:10px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] mat-chip.noc-chip-activity-type[_ngcontent-%COMP%]{padding-right:8px;padding-left:8px;font-size:8px}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%]{padding:0;height:20px;min-height:20px;max-height:20px;max-width:220px;font-size:10px;border:#bbb solid 1px;background-color:#bbb3}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;min-width:20px;max-width:20px;border-radius:50%;color:#777;font-size:10px;font-weight:700}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%] .noc-count[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%] .noc-count[_ngcontent-%COMP%]{margin-right:5px;font-size:10px;font-weight:400}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;max-width:200px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-summary-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbb}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#555}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-mf[_ngcontent-%COMP%]{border:#81c784 solid 1px}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-mf[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#c8e6c9}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-bp[_ngcontent-%COMP%]{border:#a1887f solid 1px}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-bp[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d7ccc8}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-cc[_ngcontent-%COMP%]{border:#ba68c8 solid 1px}[_nghost-%COMP%] mat-chip.noc-summary-chip.noc-type-chip.noc-cc[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e1bee7}'],data:{animation:dc}}),t})();function xot(t,n){1&t&&(G(0,"strong"),he(1," NOT "),W())}function yot(t,n){if(1&t&&$e(0,"noctua-inline-editor",17),2&t){const e=He(2);oe("cam",e.cam)("activity",e.activity)("entity",e.entity)("category",e.EditorCategory.relationship)}}function wot(t,n){if(1&t&&(G(0,"div",15)(1,"span",5),Ve(2,xot,2,0,"strong",16),he(3),W(),Ve(4,yot,1,4,"noctua-inline-editor",7),W()),2&t){const e=He();Yr("fxFlex",e.relationWidth),K(2),oe("ngIf",null==e.entity.predicate?null:e.entity.predicate.isComplement),K(1),Ft(" ",null==e.entity.predicate||null==e.entity.predicate.edge?null:e.entity.predicate.edge.label," "),K(1),oe("ngIf",e.noctuaUserService.user&&e.entity.relationEditable)}}function Mot(t,n){if(1&t&&(G(0,"span",18),he(1),G(2,"a",6),it("click",function(i){return i.stopPropagation()}),he(3),W()()),2&t){const e=He();K(1),Ft(" ",null==e.entity.term||null==e.entity.term.termHistory[0]?null:e.entity.term.termHistory[0].label," "),K(1),Yr("href",null==e.entity.term||null==e.entity.term.termHistory[0]?null:e.entity.term.termHistory[0].url,ir),K(1),Ft(" ",null==e.entity.term||null==e.entity.term.termHistory[0]?null:e.entity.term.termHistory[0].id," ")}}function Oot(t,n){if(1&t&&$e(0,"noctua-inline-editor",17),2&t){const e=He();oe("cam",e.cam)("activity",e.activity)("entity",e.entity)("category",e.EditorCategory.term)}}function Sot(t,n){if(1&t&&(G(0,"mat-chip",19)(1,"span"),he(2),W()()),2&t){const e=He();Af("noc-chip-xs noc-aspect ",e.entity.aspect,""),K(2),Zr(e.entity.aspect)}}function Pot(t,n){1&t&&(G(0,"mat-chip",20)(1,"span"),he(2,"ext."),W()())}function Eot(t,n){if(1&t&&$e(0,"noc-evidence-table",21),2&t){const e=He();oe("options",e.optionsDisplay)("cam",e.cam)("entity",e.entity)}}function Tot(t,n){if(1&t){const e=Nn();G(0,"button",32),it("click",function(){Ut(e);const r=He(2);return r.toggleIsComplement(r.entity)}),he(1," NOT Qualifier "),W()}}function Aot(t,n){1&t&&(G(0,"button",28),he(1,"Add"),W()),2&t&&(He(),oe("matMenuTriggerFor",Di(11)))}function Dot(t,n){if(1&t){const e=Nn();G(0,"button",32),it("click",function(){const o=Ut(e).$implicit,a=He(2);return a.insertEntity(a.entity,o)}),he(1),W()}if(2&t){const e=n.$implicit;K(1),Ft(" ",e.label," ")}}function Lot(t,n){if(1&t){const e=Nn();G(0,"div",22)(1,"button",23),it("click",function(r){return Ut(e),He().updateCurrentMenuEvent(r)}),G(2,"mat-icon"),he(3,"more_vert"),W()(),G(4,"mat-menu",24,25),Ve(6,Tot,2,0,"button",26),Ve(7,Aot,2,1,"button",27),G(8,"button",28),he(9,"Evidence"),W()(),G(10,"mat-menu",null,29),Ve(12,Dot,2,1,"button",30),W(),G(13,"mat-menu",null,31)(15,"button",32),it("click",function(){Ut(e);const r=He();return r.addEvidence(r.entity)}),he(16," Add Evidence "),W()()()}if(2&t){const e=Di(5),i=Di(14),r=He();K(1),oe("matMenuTriggerFor",e),K(5),oe("ngIf",0===r.entity.treeLevel),K(1),oe("ngIf",r.entity.insertMenuNodes),K(1),oe("matMenuTriggerFor",i),K(4),oe("ngForOf",r.entity.insertMenuNodes)}}const kot=function(t){return{"noc-selected":t}},Iot=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};let ZC=(()=>{class t{constructor(e,i,r,o,a,c,u,f){this.camService=e,this.confirmDialogService=i,this.noctuaUserService=r,this.noctuaFormConfigService=o,this.noctuaFormDialogService=a,this.noctuaActivityEntityService=c,this.noctuaActivityFormService=u,this.inlineEditorService=f,this.EditorCategory=pa,this.ActivityType=Wi,this.activityTypeOptions=Ht.activityType.options,this.options={},this.relationWidth="0px",this.optionsDisplay={},this.editableTerms=!1,this.currentMenuEvent={},this.unsubscribeAll=new z}ngOnInit(){var e;(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.relationWidth=150-16*this.entity.treeLevel+"px"}editEntity(e){const i={cam:this.cam,activity:this.activity,entity:e,category:pa.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:i})}toggleExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const r={cam:this.cam,activity:this.activity,entity:e,category:pa.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r}),this.noctuaActivityFormService.initializeForm()}deleteEntity(e){const i=this,o=this.activity.descendants(e.id).map(c=>c.term.label).join(", ");let a=`You are about to delete an ${e.term.label}`;o&&(a+=` and its descendants ${o}`),this.confirmDialogService.openConfirmDialog("Confirm Delete?",`${a}`,()=>{this.noctuaActivityEntityService.deleteActivityNode(i.activity,e).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.term.label} successfully deleted.`,"OK")})})}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}toggleIsComplement(){}openSearchDatabaseDialog(e){const i=this,r=this.noctuaActivityFormService.activity.getGPNode();if(r){const a=function(c){c.term&&(e.term=new _i(c.term.term.id,c.term.term.label),c.evidences&&c.evidences.length>0&&e.predicate.setEvidence(c.evidences),i.noctuaActivityFormService.initializeForm())};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:r.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}}insertEntity(e,i){const r=this.noctuaFormConfigService.insertActivityNode(this.activity,e,i),o={cam:this.cam,activity:this.activity,entity:r,category:pa.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,r),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o})}addRootTerm(e){const i=this,r=(0,Nt.find)(Ht.rootNode,o=>o.aspect===e.aspect);if(r){e.term=new _i(r.id,r.label),i.noctuaActivityFormService.initializeForm();const o=new Rl;o.setEvidence(new _i(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),o.reference=Ht.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([o]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,r=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(r,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}cleanId(e){return m4.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(Q2),de(uo),de(lr),de(gl),de(Td),de(ps),de(Em))},t.\u0275cmp=En({type:t,selectors:[["noc-activity-tree-node"]],inputs:{cam:"cam",activity:"activity",entity:"entity",options:"options"},decls:18,vars:19,consts:[[1,"w-100-p"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-activity-node","noctua-form-table","w-100-p",3,"ngClass"],["class","noc-relation-cell noc-entity-cell",3,"fxFlex",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","",1,"noc-term-cell","noc-entity-cell",3,"ngClass"],["class","noc-old-term",4,"ngIf"],[1,""],["target","_blank",3,"href","click"],["class","noc-edit-button",3,"cam","activity","entity","category",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-aspect-cell","noc-entity-cell"],["fxLayout","column","fxLayoutAlign","center center",3,"class",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-extension-cell","noc-entity-cell"],["class","noc-chip-xs noc-extension","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-cell","p-0"],["class","w-100-p",3,"options","cam","entity",4,"ngIf"],["class","noc-cell noc-action-cell","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],[1,"noc-relation-cell","noc-entity-cell",3,"fxFlex"],[4,"ngIf"],[1,"noc-edit-button",3,"cam","activity","entity","category"],[1,"noc-old-term"],["fxLayout","column","fxLayoutAlign","center center"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-chip-xs","noc-extension"],[1,"w-100-p",3,"options","cam","entity"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-cell","noc-action-cell"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor","click"],[1,"noc-dropdown-menu"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["addMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],["evidenceMenu","matMenu"],["mat-menu-item","",1,"",3,"click"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1),Ve(2,wot,5,4,"div",2),G(3,"div",3),Ve(4,Mot,4,3,"span",4),G(5,"span",5),he(6),$e(7,"br"),G(8,"a",6),it("click",function(o){return o.stopPropagation()}),he(9),W()(),Ve(10,Oot,1,4,"noctua-inline-editor",7),W(),G(11,"div",8),Ve(12,Sot,3,4,"mat-chip",9),W(),G(13,"div",10),Ve(14,Pot,3,0,"mat-chip",11),W(),G(15,"div",12),Ve(16,Eot,1,3,"noc-evidence-table",13),W(),Ve(17,Lot,17,5,"div",14),W()()),2&e&&(K(1),oe("ngClass",Pr(13,kot,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),K(1),oe("ngIf",!i.options.slimViewer),K(1),oe("ngClass",bh(15,Iot,null==i.entity.term?null:i.entity.term.highlight,null==i.entity.term?null:i.entity.term.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==i.entity.term?null:i.entity.term.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),Ti("id",null==i.entity.term?null:i.entity.term.displayId),K(1),oe("ngIf",(null==i.entity.term?null:i.entity.term.modified)&&(null==i.entity.term||null==i.entity.term.termHistory?null:i.entity.term.termHistory.length)>0),K(2),Ft(" ",null==i.entity.term?null:i.entity.term.label," "),K(2),Yr("href",null==i.entity.term?null:i.entity.term.url,ir),K(1),Ft(" ",null==i.entity.term?null:i.entity.term.id," "),K(1),oe("ngIf",i.noctuaUserService.user&&i.entity.term&&i.options.editableTerms),K(2),oe("ngIf",i.entity.aspect),K(2),oe("ngIf",i.entity.isExtension),K(2),oe("ngIf",!i.entity.skipEvidenceCheck),K(1),oe("ngIf",i.noctuaUserService.user&&i.options.showMenu))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#7cd488 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f4c89c solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-extension[_ngcontent-%COMP%]{border:#9bb1b6 solid 2px;height:20px;min-height:20px;max-height:20px;font-size:8px;padding:2px;text-align:center}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;height:25px;min-height:25px;max-height:25px;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%]{border-bottom:1px solid #ccc}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-align:center;height:20px;min-height:20px;max-height:20px;font-size:10px;font-weight:700;padding:2px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.F[_ngcontent-%COMP%]{border:#7cd488 solid 1px;color:#56c765}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.P[_ngcontent-%COMP%]{border:#f4c89c solid 1px;color:#efaf6e}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.C[_ngcontent-%COMP%]{border:#d3b5f5 solid 1px;color:#b888ef}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-relation-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-extension-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover{border:#3b5998 solid 1px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-cell-floating-title[_ngcontent-%COMP%]{color:#3b5998}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-edit-button[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-delete-button[_ngcontent-%COMP%]{visibility:visible}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-node.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:dc}}),t})();const Not=["tree"],Rot=function(){return["fas","caret-right"]};function zot(t,n){1&t&&$e(0,"fa-icon",12),2&t&&oe("icon",ai(1,Rot))}const Fot=function(){return["fas","caret-down"]};function Hot(t,n){1&t&&$e(0,"fa-icon",12),2&t&&oe("icon",ai(1,Fot))}function Vot(t,n){if(1&t&&(G(0,"div",13)(1,"span",14),he(2),G(3,"a",15),it("click",function(i){return i.stopPropagation()}),he(4),W()()()),2&t){const e=He();K(2),Ft(" ",null==e.gpNode.term?null:e.gpNode.term.label," "),K(1),Yr("href",null==e.gpNode.term?null:e.gpNode.term.url,ir),K(1),Ft(" ",null==e.gpNode.term?null:e.gpNode.term.id," ")}}const Bot=function(){return["fas","exclamation-triangle"]};function Got(t,n){if(1&t){const e=Nn();G(0,"div",16)(1,"mat-chip",17),it("click",function(){Ut(e);const r=He();return r.displayActivityErrors(r.activity)}),G(2,"div",18),$e(3,"fa-icon",12),W(),G(4,"div",19),he(5),W()()()}if(2&t){const e=He();K(3),oe("icon",ai(2,Bot)),K(2),Ft(" ",null==e.activity.violations?null:e.activity.violations.length," Errors Found ")}}function Yot(t,n){1&t&&(G(0,"div",34),he(1," Relationship "),W())}function Uot(t,n){1&t&&$e(0,"div",35)}function jot(t,n){if(1&t&&(G(0,"div",46),he(1),W()),2&t){const e=He().$implicit;K(1),Ft(" ",e.label," ")}}const mse=function(t){return{"background-highlight":t}};function Wot(t,n){if(1&t&&(G(0,"mat-tree-node",40)(1,"div",41),$e(2,"button",42),G(3,"div",43),Ve(4,jot,2,1,"div",44),$e(5,"noc-activity-tree-node",45),W()()()),2&t){const e=n.$implicit,i=He(3);oe("ngClass",Pr(6,mse,i.activeAnnotation===e.uuid)),K(4),oe("ngIf",i.options.slimViewer),K(1),oe("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e)}}function qot(t,n){if(1&t&&(G(0,"div",46),he(1),W()),2&t){const e=He().$implicit;K(1),Ft(" ",e.label," ")}}function Xot(t,n){if(1&t&&(G(0,"mat-tree-node",47)(1,"div",41)(2,"div",48),Ve(3,qot,2,1,"div",44),$e(4,"noc-activity-tree-node",45),W()()()),2&t){const e=n.$implicit,i=He(3);oe("ngClass",Pr(6,mse,i.activeAnnotation===e.uuid)),K(3),oe("ngIf",i.options.slimViewer),K(1),oe("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e)}}function $ot(t,n){if(1&t&&(G(0,"mat-tree",36,37),Ve(2,Wot,6,8,"mat-tree-node",38),Ve(3,Xot,5,8,"mat-tree-node",39),W()),2&t){const e=He(2);oe("dataSource",e.dataSource)("treeControl",e.treeControl),K(3),oe("matTreeNodeDefWhen",e.hasChild)}}function Qot(t,n){if(1&t&&(G(0,"div",20)(1,"div",21),Ve(2,Yot,2,0,"div",22),G(3,"div",23),he(4," Term "),W(),G(5,"div",24),he(6," Asp "),W(),G(7,"div",25),he(8," Ext "),W(),G(9,"div",26)(10,"div",27),he(11," Evidence "),W(),G(12,"div",28),he(13," Reference "),W(),G(14,"div",29),he(15," With "),W(),G(16,"div",30),he(17," Assigned By "),W(),G(18,"div",31),he(19," Contributor "),W()(),Ve(20,Uot,1,0,"div",32),W(),Ve(21,$ot,4,3,"mat-tree",33),W()),2&t){const e=He();K(2),oe("ngIf",!e.options.slimViewer),K(18),oe("ngIf",e.noctuaUserService.user&&e.options.showMenu),K(1),oe("ngIf",null==e.dataSource?null:e.dataSource.data)}}const Kot=function(t){return{"noc-selected":t}};let _se=(()=>{class t{constructor(e,i,r,o,a,c){this.camService=e,this.noctuaUserService=i,this.noctuaFormConfigService=r,this.noctuaFormDialogService=o,this.noctuaActivityEntityService=a,this.noctuaActivityFormService=c,this.EditorCategory=pa,this.ActivityType=Wi,this.activityTypeOptions=Ht.activityType.options,this.options={},this.treeControl=new FP(u=>u.treeLevel,u=>u.expandable),this.hasChild=(u,f)=>f.expandable,this.dataSource=new lS,this.unsubscribeAll=new z}ngOnInit(){this.gpNode=this.activity.getGPNode(),this.dataSource.data=this.activity.nodes.sort(toe)}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}onTreeLoad(){this.tree.treeModel.expandAll()}toggleExpand(e){e.expanded=!e.expanded}toggleNodeExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}cleanId(e){return m4.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(uo),de(lr),de(gl),de(Td),de(ps))},t.\u0275cmp=En({type:t,selectors:[["noc-activity-tree-table"]],viewQuery:function(e,i){if(1&e&&fr(Not,5),2&e){let r;hi(r=pi())&&(i.tree=r.first)}},inputs:{cam:"cam",activity:"activity",options:"options"},decls:16,vars:12,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activity-heading"],["fxFlex","25px",3,"click"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title","mr-12"],["class","noc-gp","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"noc-chip-xs",3,"ngClass"],["class","noc-error","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["class","noc-tree-container",4,"ngIf"],[3,"icon"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-gp"],[1,"text-truncate"],["target","_blank",1,"ml-4",3,"href","click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-error-chip","noc-chip-xs","ml-8",3,"click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],[1,"noc-tree-container"],["fxLayout","row","fxLayoutAlign","start center",1,"noctua-form-table","noc-activity-header","w-100-p"],["class","noc-cell noc-relation-cell",4,"ngIf"],["fxFlex","",1,"noc-cell","noc-term-cell"],[1,"noc-cell","noc-aspect-cell"],[1,"noc-cell","noc-extension-cell"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-evidence-cell"],["fxFlex","",1,"noc-cell","noc-evidence-code-cell"],[1,"noc-cell","noc-reference-cell"],[1,"noc-cell","noc-with-cell"],[1,"noc-cell","noc-group-cell"],[1,"noc-cell","noc-contributor-cell"],["class","noc-cell noc-action-cell",4,"ngIf"],[3,"dataSource","treeControl",4,"ngIf"],[1,"noc-cell","noc-relation-cell"],[1,"noc-cell","noc-action-cell"],[3,"dataSource","treeControl"],["tree",""],["class","noc-tree-node","matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","16",3,"ngClass",4,"matTreeNodeDef"],["fxLayout","row","class","noc-tree-node","matTreeNodePadding","","matTreeNodePaddingIndent","16",3,"ngClass",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","matTreeNodePadding","","matTreeNodePaddingIndent","16",1,"noc-tree-node",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],["mat-icon-button","","disabled","",1,"noc-icon-button"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-annotation-row"],["class","noc-cell-label",4,"ngIf"],[1,"w-100-p",3,"options","cam","activity","entity"],[1,"noc-cell-label"],["fxLayout","row","matTreeNodePadding","","matTreeNodePaddingIndent","16",1,"noc-tree-node",3,"ngClass"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-annotation-row"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2),it("click",function(o){return o.stopPropagation()}),G(3,"button",3),it("click",function(){return i.toggleExpand(i.activity)}),Ve(4,zot,1,2,"fa-icon",4),Ve(5,Hot,1,2,"fa-icon",4),W()(),G(6,"div",5),it("click",function(o){return o.stopPropagation()}),he(7),W(),G(8,"div",6),Ve(9,Vot,5,3,"div",7),W(),G(10,"mat-chip",8)(11,"span"),he(12),W()(),Ve(13,Got,6,3,"div",9),$e(14,"span",10),W(),Ve(15,Qot,22,3,"div",11),W()),2&e&&(oe("ngClass",Pr(10,Kot,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),Ti("id",i.activity.displayId),K(4),oe("ngIf",!i.activity.expanded),K(1),oe("ngIf",i.activity.expanded),K(2),Ft(" ",i.activity.displayNumber," "),K(2),oe("ngIf",i.gpNode),K(1),oe("ngClass",i.activity.activityType),K(2),Zr(null==i.activityTypeOptions[i.activity.activityType]?null:i.activityTypeOptions[i.activity.activityType].label),K(1),oe("ngIf",i.activity.hasViolations),K(2),oe("ngIf",i.activity.expanded))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px}[_nghost-%COMP%] .noc-tree-input.noc-level-1[_ngcontent-%COMP%]{border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line[_ngcontent-%COMP%]{width:100%;border-left:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-t[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-left:rgba(0,0,0,.2) dotted 2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-tree-input[_ngcontent-%COMP%] .noc-tree-line.line-m[_ngcontent-%COMP%]{height:2px;min-height:2px;max-height:2px;border-bottom:rgba(0,0,0,.2) dotted 2px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:500px;line-height:12px;height:30px;min-height:30px;max-height:30px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%]{padding:0;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{word-break:break-all}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:10px;font-weight:400;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:20px;width:20px;border-radius:50%;color:#777;font-size:10px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding-left:5px;position:relative;margin-bottom:1px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 2px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell.noc-relation-cell[_ngcontent-%COMP%]{padding:0 2px 0 16px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;font-size:8px;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:14px;left:-16px;width:25px;height:1px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding-left:45px;padding-right:10px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .mat-tree[_ngcontent-%COMP%]{background:repeating-linear-gradient(to right,transparent,transparent 15px,rgba(121,143,184,.3) 16px,rgba(121,143,184,.3) 16px);background-color:transparent}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%;background-color:transparent}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:0;left:55px}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:dc}}),t})();function Zot(t,n){1&t&&(G(0,"div",12),he(1," Log in to Continue "),W())}function Jot(t,n){if(1&t&&$e(0,"mat-progress-bar",25),2&t){const e=He(2);oe("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}function eat(t,n){if(1&t){const e=Nn();G(0,"div",26)(1,"div",19),he(2,"Modified Model: "),W(),$e(3,"span",4),G(4,"button",27),it("click",function(r){Ut(e);const o=He().$implicit;return He().reviewCamChanges(o),r.stopPropagation()}),he(5),W(),G(6,"button",28),it("click",function(r){Ut(e);const o=He().$implicit;return He().resetCam(o),r.stopPropagation()}),he(7," Undo "),W(),G(8,"button",29),it("click",function(r){Ut(e);const o=He().$implicit;return He().submitChange(o),r.stopPropagation()}),he(9," Save "),W()()}if(2&t){const e=He().$implicit;K(4),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(1),Ft(" ",null==e.modifiedStats?null:e.modifiedStats.totalChanges," change(s) "),K(1),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3)}}function tat(t,n){if(1&t&&(G(0,"div",36),he(1),W()),2&t){const e=n.$implicit;Yr("matTooltip",e.name),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(1),Ft(" ",e.name?e.name:e.orcid,"; ")}}function nat(t,n){if(1&t&&(G(0,"span",37)(1,"div",38),he(2),W()()),2&t){const e=n.$implicit;Yr("matTooltip",e.name),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.name?e.name:e.url," ")}}function iat(t,n){if(1&t&&(G(0,"div",30)(1,"div",18)(2,"div",19),he(3,"Contributors:"),W(),Ve(4,tat,2,4,"div",31),W(),G(5,"div",18)(6,"div",19),he(7,"Groups:"),W(),Ve(8,nat,3,4,"span",32),W(),G(9,"div",20)(10,"div",19),he(11,"Open In:"),W(),G(12,"a",33),he(13," Pathway Editor "),W(),G(14,"span"),he(15,"\u2022"),W(),G(16,"a",34),he(17," Form Editor "),W(),G(18,"span"),he(19,"\u2022"),W(),G(20,"a",35),he(21," Graph Editor "),W()()()),2&t){const e=He().$implicit;K(4),oe("ngForOf",e.contributors),K(4),oe("ngForOf",e.groups),K(4),oe("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaVPEUrl,ir),K(4),oe("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ir),K(4),oe("href",null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ir)}}const rat=function(){return["fas","angle-double-down"]};function oat(t,n){1&t&&(G(0,"span"),he(1,"More Details "),$e(2,"fa-icon",39),W()),2&t&&(K(2),oe("icon",ai(1,rat)))}const aat=function(){return["fas","angle-double-up"]};function sat(t,n){1&t&&(G(0,"span"),he(1,"Less Details "),$e(2,"fa-icon",39),W()),2&t&&(K(2),oe("icon",ai(1,aat)))}const cat=function(t){return{"noc-selected":t}};function lat(t,n){if(1&t){const e=Nn();G(0,"div",13),it("click",function(){const o=Ut(e).$implicit;return He().selectItem(o)}),Ve(1,Jot,1,2,"mat-progress-bar",14),Ve(2,eat,10,7,"div",15),G(3,"div",16)(4,"div",17)(5,"div",18)(6,"div",19),he(7,"Title:"),W(),he(8),W(),G(9,"div",20)(10,"div",19),he(11,"State:"),W(),he(12),W(),Ve(13,iat,22,5,"div",21),G(14,"div",22)(15,"a",23),it("click",function(r){const a=Ut(e).$implicit;return r.stopPropagation(),a.moreDetail=!a.moreDetail}),Ve(16,oat,3,2,"span",11),Ve(17,sat,3,2,"span",11),W()()(),$e(18,"span",4),G(19,"button",24),it("click",function(){const o=Ut(e).$implicit;return He().remove(o)}),he(20,"X"),W()()()}if(2&t){const e=n.$implicit,i=He();Yr("id","noc-basket-"+e.displayId),oe("ngClass",Pr(9,cat,e.id===(null==i.camService.currentMatch?null:i.camService.currentMatch.modelId))),K(1),oe("ngIf",e.loading.status),K(1),oe("ngIf",e.modified),K(6),Ft(" ",e.title," "),K(4),Ft(" ",null==e.state?null:e.state.label," "),K(1),oe("ngIf",e.moreDetail),K(3),oe("ngIf",!e.moreDetail),K(1),oe("ngIf",e.moreDetail)}}function dat(t,n){if(1&t){const e=Nn();Qr(0),G(1,"button",40),it("click",function(){return Ut(e),He().clear()}),he(2,"Clear List"),W(),Kr()}}function uat(t,n){if(1&t){const e=Nn();Qr(0),G(1,"button",40),it("click",function(){return Ut(e),He().clear()}),he(2,"Clear List"),W(),$e(3,"span",4),G(4,"button",41),it("click",function(){return Ut(e),He().resetCams()}),he(5,"Undo Changes"),W(),G(6,"button",42),it("click",function(){return Ut(e),He().reviewChanges()}),he(7," Review Changes "),W(),Kr()}}function hat(t,n){if(1&t){const e=Nn();Qr(0),$e(1,"span",4),G(2,"button",41),it("click",function(){return Ut(e),He().backToReview()}),he(3,"Back"),W(),G(4,"button",42),it("click",function(){return Ut(e),He().submitChanges()}),he(5," Submit "),W(),Kr()}}let vse=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w){this.zone=e,this.camService=i,this.confirmDialogService=r,this.noctuaSearchDialogService=o,this.noctuaUserService=a,this.noctuaReviewSearchService=c,this.noctuaSearchMenuService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=w,this.MiddlePanel=Wo,this.artBasket=new P_,this.cams=[],this.loadingSpinner={color:"primary",mode:"indeterminate"},this._unsubscribeAll=new z}ngOnInit(){this.noctuaReviewSearchService.onArtBasketChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)}),this.camService.onCamsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.cams=e)}),this.camService.onCamsCheckoutChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.summary=e)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}backToReview(){this.noctuaSearchMenuService.selectMiddlePanel(Wo.camsReview)}clear(){var e;const i=this,r=o=>{o&&(this.noctuaReviewSearchService.onClearForm.next(!0),this.noctuaReviewSearchService.clear(),this.camService.clearCams(),this.noctuaReviewSearchService.clearBasket())};(null===(e=i.summary)||void 0===e?void 0:e.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(r,i.summary,{title:"Confirm Clear Basket?",message:"You are about to remove all items from the basket. Please save changes or undo changes.",cancelLabel:"Go Back",confirmLabel:"Clear Anyway"}):this.confirmDialogService.openConfirmDialog("Confirm Clear Basket?","You are about to remove all items from the basket.",r,{cancelLabel:"No",confirmLabel:"Yes"})}close(){this.noctuaSearchMenuService.closeLeftDrawer()}remove(e){const i=this,r=i.camService.reviewCamChanges(e),o=a=>{a&&this.noctuaReviewSearchService.removeCamFromReview(e)};(null==r?void 0:r.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(o,r,{title:"Removing Unsaved Model",message:`Please save changes or undo changes before removing model. Model Name:"${e.title}"`,cancelLabel:"Cancel",confirmLabel:"Remove Anyway"}):this.confirmDialogService.openConfirmDialog("Removing Unsaved Model?",`You are about to remove model from the basket. No changes were made. Model Name:"${e.title}"`,o,{cancelLabel:"No",confirmLabel:"Yes"})}resetCam(e){const i=this,r=i.camService.reviewCamChanges(e),o=a=>{a&&i._resetCamsQuery([e])};(null==r?void 0:r.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(o,r,{title:"Discard Unsaved Changes",message:`All your changes will be discarded for model. Model Name:"${e.title}"`,cancelLabel:"Cancel",confirmLabel:"OK"}):o(!0)}resetCams(){var e;const i=this,r=o=>{o&&i._resetCamsQuery(i.camService.cams)};(null===(e=i.summary)||void 0===e?void 0:e.stats.totalChanges)>0?i.noctuaSearchDialogService.openCamReviewChangesDialog(r,i.summary,{title:"Discard Unsaved Changes",message:"All your changes will be discarded.",cancelLabel:"Cancel",confirmLabel:"OK"}):r(!0)}reviewChanges(){this.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectMiddlePanel(Wo.reviewChanges)}reviewCamChanges(e){const o=this.camService.reviewCamChanges(e);this.noctuaSearchDialogService.openCamReviewChangesDialog(a=>{},o)}selectItem(e){this.camService.onSelectedCamChanged.next(e.id),this.noctuaSearchMenuService.scrollTo("#noc-review-cams-"+e.displayId)}submitChanges(){var e;const i=this,r=o=>{o&&(i.noctuaSearchMenuService.scrollToTop(),i._storeCamsQuery(i.camService.cams,!0),this.noctuaSearchMenuService.selectMiddlePanel(Wo.camsReview))};(null===(e=i.summary)||void 0===e?void 0:e.stats.totalChanges)>0&&i.noctuaSearchDialogService.openCamReviewChangesDialog(r,i.summary,{title:"Save Changes?",message:"Bulk edit all changes",cancelLabel:"Go Back",confirmLabel:"Submit"})}submitChange(e){const i=this,r=i.camService.reviewCamChanges(e);if((null==r?void 0:r.stats.totalChanges)>0){const o=c=>{c&&i._storeCamsQuery([e])};i.noctuaSearchDialogService.openCamReviewChangesDialog(o,r,{title:"Save Changes?",message:`All your changes will be saved for model. Model Name:"${e.title}"`,cancelLabel:"Go Back",confirmLabel:"Submit"})}}_storeCamsQuery(e,i=!1){this.noctuaReviewSearchService.reloadCams(e,this.camService.cams,Fh.STORE,i)}_resetCamsQuery(e,i=!1){this.noctuaReviewSearchService.reloadCams(e,this.camService.cams,Fh.RESET,i)}}return t.\u0275fac=function(e){return new(e||t)(de(ji),de(Zo),de(Q2),de(C3),de(uo),de(z1),de(Hc),de(R1),de(lr))},t.\u0275cmp=En({type:t,selectors:[["noc-art-basket"]],decls:18,vars:5,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-header"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"pt-4","px-12"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["class","noc-group-row","fxLayout","column","fxLayoutAlign","start stretch",3,"id","ngClass","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],[4,"ngIf"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-group-row",3,"id","ngClass","click"],["class","noc-cam-progress",3,"color","mode",4,"ngIf"],["class","noc-modified-header w-100-p","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],["class","w-100-p",4,"ngIf"],[1,"noc-item"],[1,"noc-more-details-button",3,"click"],["mat-icon-button","","color","warn",1,"noc-remove-button",3,"click"],[1,"noc-cam-progress",3,"color","mode"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-modified-header","w-100-p"],["mat-stroked-button","","color","primary","matTooltip","View Model Changes",1,"noc-rounded-button","noc-half-button","noc-r","noc-xs","noc-action-button","mr-4",3,"matTooltipPosition","matTooltipShowDelay","click"],["mat-stroked-button","","color","primary","matTooltip","Undo Model Changes",1,"noc-rounded-button","noc-half-button","noc-m","noc-xs","noc-action-button","mr-4",3,"matTooltipPosition","matTooltipShowDelay","click"],["mat-stroked-button","","color","primary","matTooltip","Save Model Changes",1,"noc-rounded-button","noc-half-button","noc-l","noc-xs","noc-action-button","mr-4",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],[3,"icon"],["type","button","mat-raised-button","",3,"click"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","submit","mat-raised-button","","color","primary",1,"",3,"click"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),he(4," Annotation Review"),W(),$e(5,"span",4),G(6,"button",5),it("click",function(){return i.close()}),G(7,"mat-icon"),he(8,"close"),W(),he(9," CLOSE "),W()(),$e(10,"noc-review-form",6),W(),G(11,"div",7),Ve(12,Zot,2,0,"div",8),Ve(13,lat,21,11,"div",9),W(),G(14,"div",10),Ve(15,dat,3,0,"ng-container",11),Ve(16,uat,8,0,"ng-container",11),Ve(17,hat,6,0,"ng-container",11),W()()),2&e&&(K(12),oe("ngIf",!i.noctuaUserService.user),K(1),oe("ngForOf",i.cams),K(2),oe("ngIf",i.noctuaSearchMenuService.selectedMiddlePanel===i.MiddlePanel.cams),K(1),oe("ngIf",i.noctuaSearchMenuService.selectedMiddlePanel===i.MiddlePanel.camsReview),K(1),oe("ngIf",i.noctuaSearchMenuService.selectedMiddlePanel===i.MiddlePanel.reviewChanges))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:380px;min-width:380px;max-width:380px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0;height:280px;min-height:280px;max-height:280px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;border-bottom:#BBB solid 1px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 330px)}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{position:relative;min-height:40px;max-height:500px;border-bottom:#CCC solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;font-size:12px;background-color:#fffcd8;border-bottom:#fff472 solid 1px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item-body[_ngcontent-%COMP%]{padding:12px 10px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-more-details-button[_ngcontent-%COMP%]{padding:8px 0;cursor:pointer}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-remove-button[_ngcontent-%COMP%]{height:30px;width:30px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-group-row.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();function pat(t,n){if(1&t&&(G(0,"mat-option",29),he(1),W()),2&t){const e=n.$implicit;oe("value",e),K(1),Ft(" ",e.label," ")}}function fat(t,n){if(1&t&&(G(0,"mat-form-field",30)(1,"mat-label"),he(2,"Find What "),G(3,"strong"),he(4,"(Ontology Term)"),W()(),$e(5,"textarea",31),W()),2&t){He(2);const e=Di(3);K(5),oe("matAutocomplete",e)}}function gat(t,n){if(1&t&&(G(0,"mat-form-field",30)(1,"mat-label"),he(2,"Find What "),G(3,"strong"),he(4,"(Gene Product)"),W()(),$e(5,"textarea",31),W()),2&t){He(2);const e=Di(3);K(5),oe("matAutocomplete",e)}}function mat(t,n){if(1&t){const e=Nn();G(0,"mat-form-field",30)(1,"mat-label"),he(2,"Find What "),G(3,"strong"),he(4,"(Reference)"),W()(),$e(5,"textarea",32),G(6,"button",33),it("click",function(r){return Ut(e),He(2).openAddReference(r,"findWhat")}),G(7,"mat-icon"),he(8,"playlist_add"),W()()()}}function _at(t,n){if(1&t&&(G(0,"mat-form-field",30)(1,"mat-label"),he(2,"Replace With "),G(3,"strong"),he(4,"(Ontology Term)"),W()(),$e(5,"textarea",34),W()),2&t){He(2);const e=Di(6);K(5),oe("matAutocomplete",e)}}function vat(t,n){if(1&t&&(G(0,"mat-form-field",30)(1,"mat-label"),he(2,"Replace With "),G(3,"strong"),he(4,"(Gene Product)"),W()(),$e(5,"textarea",34),W()),2&t){He(2);const e=Di(6);K(5),oe("matAutocomplete",e)}}function Cat(t,n){if(1&t){const e=Nn();G(0,"mat-form-field",30)(1,"mat-label"),he(2,"Replace With "),G(3,"strong"),he(4,"(Reference)"),W()(),$e(5,"textarea",35),G(6,"button",33),it("click",function(r){return Ut(e),He(2).openAddReference(r,"replaceWith")}),G(7,"mat-icon"),he(8,"playlist_add"),W()()()}}function bat(t,n){1&t&&(G(0,"div",36),he(1," No Results "),W())}function xat(t,n){if(1&t&&(G(0,"div",37),he(1),W()),2&t){const e=He(2);K(1),kw(" ",e.noctuaReviewSearchService.matchedCountCursor+1," of ",e.noctuaReviewSearchService.matchedCount," ")}}const Cse=function(){return["far","times-circle"]},JC=function(t){return{"noc-disabled":t}},yat=function(){return["fas","angle-double-left"]},wat=function(){return["fas","angle-left"]},Mat=function(){return["fas","angle-right"]},Oat=function(){return["fas","angle-double-right"]};function Sat(t,n){if(1&t){const e=Nn();G(0,"form",7)(1,"mat-form-field",8)(2,"mat-label"),he(3,"Category"),W(),G(4,"mat-select",9),Ve(5,pat,2,2,"mat-option",10),W()(),G(6,"div",11)(7,"button",12),it("click",function(r){Ut(e);const o=He();return r.stopPropagation(),o.clearFind()}),$e(8,"fa-icon",13),W(),Ve(9,fat,6,1,"mat-form-field",14),Ve(10,gat,6,1,"mat-form-field",15),Ve(11,mat,9,0,"mat-form-field",15),W(),G(12,"div",16)(13,"button",12),it("click",function(r){Ut(e);const o=He();return r.stopPropagation(),o.clearReplace()}),$e(14,"fa-icon",13),W(),Ve(15,_at,6,1,"mat-form-field",14),Ve(16,vat,6,1,"mat-form-field",15),Ve(17,Cat,9,0,"mat-form-field",15),W(),G(18,"div",17)(19,"div",18),$e(20,"span",19),Ve(21,bat,2,0,"div",20),Ve(22,xat,2,2,"div",21),G(23,"div",22)(24,"button",23),it("click",function(){return Ut(e),He().goto("first")}),$e(25,"fa-icon",13),W(),G(26,"button",24),it("click",function(){return Ut(e),He().findPrevious()}),$e(27,"fa-icon",13),W(),G(28,"button",25),it("click",function(){return Ut(e),He().findNext()}),$e(29,"fa-icon",13),W(),G(30,"button",23),it("click",function(){return Ut(e),He().goto("last")}),$e(31,"fa-icon",13),W()()(),G(32,"div",26)(33,"button",27),it("click",function(){return Ut(e),He().replace()}),he(34," Replace "),W(),G(35,"button",28),it("click",function(){return Ut(e),He().replaceAll()}),he(36," Replace All "),W()()()()}if(2&t){const e=He();oe("formGroup",e.searchForm),K(4),oe("compareWith",e.compareCategory),K(1),oe("ngForOf",e.categories.options),K(3),oe("icon",ai(22,Cse)),K(1),oe("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.term),K(1),oe("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.gp),K(1),oe("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.reference),K(1),oe("ngClass",Pr(23,JC,0===e.noctuaReviewSearchService.matchedCount||!e.displayReplaceForm.replaceSection)),K(2),oe("icon",ai(25,Cse)),K(1),oe("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.term),K(1),oe("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.gp),K(1),oe("ngIf",(null==e.selectedCategory?null:e.selectedCategory.name)===e.ArtReplaceCategory.reference),K(1),oe("ngClass",Pr(26,JC,0===e.noctuaReviewSearchService.matchedCount)),K(3),oe("ngIf",0===e.noctuaReviewSearchService.matchedCount),K(1),oe("ngIf",e.noctuaReviewSearchService.matchedCount>0),K(2),oe("ngClass",Pr(28,JC,0===e.noctuaReviewSearchService.matchedCountCursor)),K(1),oe("icon",ai(30,yat)),K(2),oe("icon",ai(31,wat)),K(2),oe("icon",ai(32,Mat)),K(1),oe("ngClass",Pr(33,JC,e.noctuaReviewSearchService.matchedCountCursor===e.noctuaReviewSearchService.matchedCount-1)),K(1),oe("icon",ai(35,Oat)),K(1),oe("ngClass",Pr(36,JC,!e.displayReplaceForm.replaceActions))}}function Pat(t,n){if(1&t&&(G(0,"mat-option",38)(1,"div",39)(2,"div",40),he(3),W(),$e(4,"span",19),G(5,"div",41),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(3),Ft(" ",e.id," ")}}function Eat(t,n){if(1&t&&(G(0,"mat-option",38)(1,"div",39)(2,"div",40),he(3),W(),$e(4,"span",19),G(5,"div",41),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(3),Ft(" ",e.id," ")}}let bse=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E){this.zone=e,this.noctuaGraphService=i,this.camService=r,this.confirmDialogService=o,this.noctuaReviewSearchService=a,this.noctuaUserService=c,this.noctuaLookupService=u,this.noctuaFormConfigService=f,this.noctuaActivityFormService=w,this.inlineReferenceService=E,this.ActivityType=Wi,this.ArtReplaceCategory=hP,this.cams=[],this.displayReplaceForm={replaceSection:!1,replaceActions:!1},this.noctuaFormConfig=Ht,this.textboxDetail={placeholder:""},this._unsubscribeAll=new z,this.categories=(0,Nt.cloneDeep)(this.noctuaFormConfigService.findReplaceCategories),this.camService.onCamsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(B=>{!B||(this.cams=B)}),this.gpNode=Vu([Fl]),this.termNode=Vu([ul,D1,e1,MC,p3,m_])}ngOnInit(){this.selectedCategory=this.categories.selected,this.resetForm(this.selectedCategory),this.noctuaReviewSearchService.onCamTermSearch.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.clearFind(),this.searchForm.controls.findWhat.setValue(e),this.findSelected(e))}),this.noctuaReviewSearchService.onCamReplaceTermSearch.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||this.searchForm.controls.replaceWith.setValue(e)}),this.noctuaReviewSearchService.onClearForm.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||this.clearFind()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}resetForm(e){this.searchForm=this.createSearchForm(e),this.noctuaReviewSearchService.clear(),this.camService.clearHighlight(),this.calculateEnableReplace(this.selectedCategory),this.onValueChanges(),this.onNodeValueChange(e)}resetTermNode(){this.termNode=Vu([ul,D1,e1,MC,p3,m_])}createSearchForm(e){return this.selectedCategory=e,new r2({findWhat:new br,replaceWith:new br,category:new br(e)})}getClosure(e){return[Fl,ul,D1,e1,MC,p3,m_,zl,wC,Dz].filter(o=>e.find(a=>a.id===o.category))}search(e){let i;this.noctuaReviewSearchService.clear(),this.selectedCategory.name===Ht.findReplaceCategory.options.term.name?i=this.noctuaReviewSearchService.filterType.terms:this.selectedCategory.name===Ht.findReplaceCategory.options.gp.name?i=this.noctuaReviewSearchService.filterType.gps:this.selectedCategory.name===Ht.findReplaceCategory.options.reference.name&&(i=this.noctuaReviewSearchService.filterType.pmids),this.noctuaReviewSearchService.searchCriteria[i]=[e],this.noctuaReviewSearchService.updateSearch()}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.searchForm.controls[i]}})}replace(){const e=this,o=e.camService.getReplaceObject([this.noctuaReviewSearchService.currentMatchedEnity],this.searchForm.value.replaceWith,e.selectedCategory);e.replaceCams(o)}replaceAll(){const e=this,i=this.searchForm.value,r=(0,Nt.groupBy)(this.noctuaReviewSearchService.matchedEntities,"modelId"),o=Object.keys(r).length;let c=i.replaceWith;this.confirmDialogService.openConfirmDialog("Confirm ReplaceAll?",`Replace ${this.noctuaReviewSearchService.matchedCount} occurrences across ${o} model(s)`,f=>{if(f){const w=e.camService.getReplaceObject(this.noctuaReviewSearchService.matchedEntities,c,e.selectedCategory);e.camService.resetLoading(w,new Pd(!0,"Loading...")),e.replaceCams(w)}})}findNext(){this.noctuaReviewSearchService.findNext()}findPrevious(){this.noctuaReviewSearchService.findPrevious()}goto(e){this.noctuaReviewSearchService.goto(e)}findSelected(e){const i=this.getClosure(e.rootTypes);this.findNode.termLookup.results=[],i&&(this.replaceNode=Vu(i)),this.search(this.searchForm.value.findWhat),this.searchForm.patchValue({replaceWith:null})}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}clearFind(){const e=this;e.searchForm.patchValue({findWhat:null,replaceWith:null}),e.noctuaReviewSearchService.clear(),e.camService.clearHighlight(),e.calculateEnableReplace(e.selectedCategory)}clearReplace(){const e=this;e.searchForm.patchValue({replaceWith:null}),e.calculateEnableReplace(e.selectedCategory)}onValueChanges(){const e=this;this.searchForm.get("category").valueChanges.pipe(Ln(this._unsubscribeAll),ns()).subscribe(i=>{i&&(e.selectedCategory=i,e.searchForm.patchValue({findWhat:null,replaceWith:null}),e.calculateEnableReplace(e.selectedCategory),e.resetForm(i))})}onNodeValueChange(e){const i=this,r=i.noctuaLookupService.lookupFunc();e.name===Ht.findReplaceCategory.options.term.name?(i.findNode=i.termNode,i.textboxDetail.placeholder="Ontology Term"):e.name===Ht.findReplaceCategory.options.gp.name?(i.findNode=i.gpNode,i.textboxDetail.placeholder="Gene Product"):e.name===Ht.findReplaceCategory.options.reference.name&&(i.findNode=null,i.textboxDetail.placeholder="Reference"),i.findNode?(this.findNode.termLookup.results=[],this.searchForm.get("findWhat").valueChanges.pipe(Ln(this._unsubscribeAll),ns(),Ls(400)).subscribe(o=>{if(o){const a=i.findNode.termLookup;r.termLookup(o,a.requestParams).subscribe(c=>{a.results=c}),i.searchForm.patchValue({replaceWith:null}),i.calculateEnableReplace(e)}}),this.searchForm.get("replaceWith").valueChanges.pipe(Ln(this._unsubscribeAll),ns(),Ls(400)).subscribe(o=>{if(o&&i.replaceNode){const a=i.replaceNode.termLookup;r.termLookup(o,a.requestParams).subscribe(c=>{a.results=c}),i.calculateEnableReplace(e)}})):(this.searchForm.get("findWhat").valueChanges.pipe(Ln(this._unsubscribeAll),ns(),Ls(1e3)).subscribe(o=>{if(o&&o.includes(":")&&Rl.checkReference){const a=Rl.formatReference(o);i.search(a),i.calculateEnableReplace(e)}}),this.searchForm.get("replaceWith").valueChanges.pipe(Ln(this._unsubscribeAll),ns(),Ls(400)).subscribe(o=>{o&&o.includes(":")&&i.calculateEnableReplace(e)}))}calculateEnableReplace(e){const i=this,r=i.searchForm.value,o=r.findWhat,a=r.replaceWith;e.name===Ht.findReplaceCategory.options.reference.name?(i.displayReplaceForm.replaceSection=o&&Rl.checkReference(o),i.displayReplaceForm.replaceActions=a&&Rl.checkReference(a)):(i.displayReplaceForm.replaceSection=o&&o.id,i.displayReplaceForm.replaceActions=a&&a.id)}compareCategory(e,i){return!(!e||!i)&&e.name===i.name}replaceCams(e){const i=this;this.camService.replace(e).pipe(Po(1),Rf(r=>ls),Eu(()=>{i.zone.run(()=>{i.camService.resetLoading(e),i.noctuaReviewSearchService.onReplaceChanged.next(!0),i.camService.reviewChangesCams()})})).subscribe(()=>{})}}return t.\u0275fac=function(e){return new(e||t)(de(ji),de(hl),de(Zo),de(Q2),de(z1),de(uo),de(X2),de(lr),de(ps),de(KC))},t.\u0275cmp=En({type:t,selectors:[["noc-review-form"]],decls:8,vars:5,consts:[[1,"noc-search-form","w-100-p"],["class","noc-section-body pt-8 w-100-p","fxLayout","column","fxLayoutAlign","start stretch","name","searchForm",3,"formGroup",4,"ngIf"],[1,"noc-term-autocomplete",3,"displayWith","optionSelected"],["findAuto","matAutocomplete"],["class","noc-term-autocomplete",3,"value",4,"ngFor","ngForOf"],[1,"noc-term-autocomplete",3,"displayWith"],["replaceAuto","matAutocomplete"],["fxLayout","column","fxLayoutAlign","start stretch","name","searchForm",1,"noc-section-body","pt-8","w-100-p",3,"formGroup"],["appearance","outline",1,"noc-sm","mb-4","noc-review-input"],["placeholder","","formControlName","category",3,"compareWith"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-activity-group-row","mb-4","w-100-p"],["mat-icon-button","","aria-label","Clear",1,"noc-text-clear",3,"click"],[3,"icon"],["appearance","outline","class","noc-sm noc-review-input",4,"ngIf"],["appearance","outline","class","noc-sm noc-review-input",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-activity-group-row","w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activity-group-row","mt-8","w-100-p",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","",1,"noc-review-actions"],["fxFlex",""],["class","noc-matched-count",4,"ngIf"],["class","noc-matched-count mr-8",4,"ngIf"],[1,"mr-8"],["mat-icon-button","","color","primary",1,"noc-icon-button",3,"ngClass","click"],["mat-icon-button","","color","primary",1,"noc-icon-button",3,"click"],["mat-icon-button","","color","primary",1,"noc-icon-button","noc-rotate-90",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-review-actions",3,"ngClass"],["mat-raised-button","","color","warn",1,"noc-sm","mr-4","noc-review-btn",3,"click"],["mat-raised-button","","color","warn",1,"noc-sm","noc-review-btn",3,"click"],[3,"value"],["appearance","outline",1,"noc-sm","noc-review-input"],["type","text","matInput","","formControlName","findWhat",3,"matAutocomplete"],["type","text","matInput","","formControlName","findWhat"],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],["type","text","matInput","","formControlName","replaceWith",3,"matAutocomplete"],["type","text","matInput","","formControlName","replaceWith"],[1,"noc-matched-count"],[1,"noc-matched-count","mr-8"],[1,"noc-term-autocomplete",3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"]],template:function(e,i){1&e&&(G(0,"div",0),Ve(1,Sat,37,38,"form",1),W(),G(2,"mat-autocomplete",2,3),it("optionSelected",function(o){return i.findSelected(o.option.value)}),Ve(4,Pat,7,3,"mat-option",4),W(),G(5,"mat-autocomplete",5,6),Ve(7,Eat,7,3,"mat-option",4),W()),2&e&&(K(1),oe("ngIf",i.searchForm),K(1),oe("displayWith",i.termDisplayFn),K(2),oe("ngForOf",null==i.findNode?null:i.findNode.termLookup.results),K(1),oe("displayWith",i.termDisplayFn),K(2),oe("ngForOf",null==i.replaceNode?null:i.replaceNode.termLookup.results))},directives:[er,U2,Il,Lr,kr,al,Jd,Ru,V6,E1,o2,vo,xd,Er,ks,Dh,yd,Jp,kv,Mo,Qa,ec,Vr,Kf],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{border-bottom:#ddd solid 1px}[_nghost-%COMP%] .noc-cams[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding:8px 12px;height:80px;min-height:80px;max-height:80px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff}[_nghost-%COMP%] .noc-activity-group-row[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .noc-activity-group-row[_ngcontent-%COMP%] .noc-text-clear[_ngcontent-%COMP%]{background-color:#fff;position:absolute;right:10px;top:-5px;width:25px;min-width:25px;max-width:25px;height:15px;min-height:15px;max-height:15px;font-size:14px;line-height:14px;z-index:2}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%]{padding:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;margin-bottom:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#f2f2f2;font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] .noc-review-actions[_ngcontent-%COMP%] .noc-matched-count[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-items:center;align-items:center;padding:0 8px;height:100%;font-size:12px}[_nghost-%COMP%] .noc-review-actions[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px;height:30px;min-height:30px;max-height:30px;line-height:28px;font-size:18px}[_nghost-%COMP%] .noc-review-actions[_ngcontent-%COMP%] .noc-review-btn[_ngcontent-%COMP%]{padding:0 8px;height:30px;line-height:28px;font-size:12px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}'],data:{animation:dc}}),t})();function Tat(t,n){1&t&&(G(0,"div",11),he(1," Log in to Continue "),W())}function Aat(t,n){1&t&&(G(0,"th",24),he(1," Category "),W())}function Dat(t,n){if(1&t&&(G(0,"td",25),he(1),W()),2&t){const e=n.$implicit;K(1),Ft(" ",e.category," ")}}function Lat(t,n){1&t&&(G(0,"th",26),he(1,"Changes"),W())}function kat(t,n){if(1&t&&(G(0,"td",27),he(1),W()),2&t){const e=n.$implicit;K(1),Ft(" ",e.count," ")}}function Iat(t,n){1&t&&$e(0,"tr",28)}function Nat(t,n){1&t&&(G(0,"tr",29),it("click",function(i){return i.stopPropagation()}),W())}function Rat(t,n){if(1&t&&(G(0,"div",12)(1,"div",13)(2,"span",14),he(3),W(),he(4," changes on this model "),W(),G(5,"table",15),Qr(6,16),Ve(7,Aat,2,0,"th",17),Ve(8,Dat,2,1,"td",18),Kr(),Qr(9,19),Ve(10,Lat,2,0,"th",20),Ve(11,kat,2,1,"td",21),Kr(),Ve(12,Iat,1,0,"tr",22),Ve(13,Nat,1,0,"tr",23),W()()),2&t){const e=He();K(3),Ft(" ",null==e.summary?null:e.summary.stats.totalChanges," "),K(2),oe("dataSource",e.stats),K(7),oe("matHeaderRowDef",e.displayedColumns),K(1),oe("matRowDefColumns",e.displayedColumns)}}let xse=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w){this.zone=e,this.camService=i,this.confirmDialogService=r,this.noctuaSearchDialogService=o,this.noctuaUserService=a,this.noctuaReviewSearchService=c,this.noctuaSearchMenuService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=w,this.MiddlePanel=Wo,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.displayedColumns=["category","count"],this._unsubscribeAll=new z}ngOnInit(){this.camService.onCamChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.camService.onCamsCheckoutChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.summary=e,this.stats=this.generateStats(this.summary.stats))})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}backToReview(){this.noctuaSearchMenuService.selectMiddlePanel(Wo.camsReview)}close(){this.panelDrawer.close()}reviewCamChanges(e){const o=this.camService.reviewCamChanges(e);this.noctuaSearchDialogService.openCamReviewChangesDialog(a=>{},o)}generateStats(e){return e.updateTotal(),[{category:"Genes",count:e.gpsCount},{category:"Terms",count:e.termsCount},{category:"Evidence",count:e.evidenceCount},{category:"Reference",count:e.referencesCount},{category:"With",count:e.withsCount},{category:"Relations",count:e.relationsCount}]}}return t.\u0275fac=function(e){return new(e||t)(de(ji),de(Zo),de(Q2),de(C3),de(uo),de(z1),de(Hc),de(R1),de(lr))},t.\u0275cmp=En({type:t,selectors:[["noc-find-replace"]],inputs:{panelDrawer:"panelDrawer"},decls:15,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-header"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],[1,"pt-4","px-12"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["class","noc-stats-results","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-stats-results"],[1,"noc-stat-summary"],[1,"noc-number"],["fxFlex","1 1 auto","mat-table","",1,"noc-summary-table",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","200px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-header-row",""],["mat-row","",3,"click"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),he(4," Find and Replace"),W(),$e(5,"span",4),G(6,"button",5),it("click",function(){return i.close()}),G(7,"mat-icon"),he(8,"close"),W(),he(9," CLOSE "),W()(),$e(10,"noc-review-form",6),W(),G(11,"div",7),Ve(12,Tat,2,0,"div",8),Ve(13,Rat,14,4,"div",9),W(),$e(14,"div",10),W()),2&e&&(K(12),oe("ngIf",!i.noctuaUserService.user),K(1),oe("ngIf",(null==i.summary?null:i.summary.stats.totalChanges)>0))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:380px;min-width:380px;max-width:380px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0;height:280px;min-height:280px;max-height:280px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 330px)}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{position:relative;min-height:40px;max-height:500px;border-bottom:#ccc solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;font-size:12px;background-color:#fffcd8;border-bottom:#fff472 solid 1px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-modified-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item-body[_ngcontent-%COMP%]{padding:12px 10px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-more-details-button[_ngcontent-%COMP%]{padding:8px 0;cursor:pointer}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-remove-button[_ngcontent-%COMP%]{height:30px;width:30px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-group-row.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%]{padding:20px 10px 300px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:100px!important}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}']}),t})(),eb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,G2,Qf,Zp,A1,fF,dse]]}),t})();function zat(t,n){1&t&&(G(0,"div",28),he(1," Log in to Continue "),W())}function Fat(t,n){if(1&t&&(G(0,"div",29),he(1),W()),2&t){const e=n.$implicit;Yr("matTooltip",e.name),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(1),Ft(" ",e.name?e.name:e.orcid,"; ")}}function Hat(t,n){if(1&t&&(G(0,"span",30)(1,"div",31),he(2),W()()),2&t){const e=n.$implicit;Yr("matTooltip",e.name),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.name?e.name:e.url," ")}}function Vat(t,n){1&t&&(G(0,"div",32),he(1," No info yet "),W())}function Bat(t,n){1&t&&(G(0,"div",32),he(1," Working on it ... "),W())}function Gat(t,n){if(1&t&&(G(0,"div",29),he(1),W()),2&t){const e=n.$implicit;Yr("matTooltip",e.name),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(1),Ft(" ",e.name?e.name:e.orcid,"; ")}}function Yat(t,n){if(1&t&&(G(0,"span",30)(1,"div",31),he(2),W()()),2&t){const e=n.$implicit;Yr("matTooltip",e.name),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.name?e.name:e.url," ")}}function Uat(t,n){if(1&t&&(G(0,"div",12)(1,"div",13)(2,"div",14)(3,"div",15),he(4,"ID:"),W(),he(5),W(),G(6,"div",14)(7,"div",15),he(8,"Title:"),W(),he(9),W(),G(10,"div",16)(11,"div",15),he(12,"State:"),W(),he(13),W(),G(14,"div",17)(15,"div",14)(16,"div",15),he(17,"Contributors:"),W(),Ve(18,Gat,2,4,"div",18),W(),G(19,"div",14)(20,"div",15),he(21,"Groups:"),W(),Ve(22,Yat,3,4,"span",19),W(),G(23,"div",16)(24,"div",15),he(25,"Open In:"),W(),G(26,"a",20),he(27," Pathway Editor "),W(),G(28,"span"),he(29,"\u2022"),W(),G(30,"a",21),he(31," Form Editor "),W(),G(32,"span"),he(33,"\u2022"),W(),G(34,"a",22),he(35," Graph Editor "),W()()()()()),2&t){const e=He();K(5),Ft(" ",e.duplicatedCam.id," "),K(4),Ft(" ",e.duplicatedCam.title," "),K(4),Ft(" ",null==e.duplicatedCam.state?null:e.duplicatedCam.state.label," "),K(5),oe("ngForOf",e.duplicatedCam.contributors),K(4),oe("ngForOf",e.duplicatedCam.groups),K(4),oe("href",null==e.duplicatedCam.model||null==e.duplicatedCam.model.modelInfo?null:e.duplicatedCam.model.modelInfo.noctuaVPEUrl,ir),K(4),oe("href",null==e.duplicatedCam.model||null==e.duplicatedCam.model.modelInfo?null:e.duplicatedCam.model.modelInfo.noctuaFormUrl,ir),K(4),oe("href",null==e.duplicatedCam.model||null==e.duplicatedCam.model.modelInfo?null:e.duplicatedCam.model.modelInfo.graphEditorUrl,ir)}}vs(vse,[Lr,kr,Vr,Er,Mo,bse,Fa,er,vo,Qa,ec,Pv,Jl,ks],[]),vs(xse,[Lr,kr,Vr,Er,Mo,bse,Fa,er,U6,dm,lm,um,cm,hm,j6,q6,W6,X6],[]);let LF=(()=>{class t{constructor(e,i,r,o,a,c,u){this.noctuaUserService=e,this.ngZone=i,this.camService=r,this.noctuaFormDialogService=o,this.noctuaFormConfigService=a,this.noctuaSearchMenuService=c,this.noctuaCommonMenuService=u,this.loading=!1,this.includeEvidence=!1,this._unsubscribeAll=new z}ngOnInit(){this.camService.onCamChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e)}),this.camService.onCopyModelChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{this.loading=!1,this.ngZone.run(()=>{this.duplicatedCam=e})})}ngOnDestroy(){this.camService.onCopyModelChanged.next(null),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}copyModel(){this.noctuaFormDialogService.openConfirmCopyModelDialog(this.cam,r=>{r?(this.loading=!0,this.camService.copyModel(this.cam,null==r?void 0:r.title,this.includeEvidence)):this.loading=!1})}close(){"left"===this.panelSide?this.noctuaCommonMenuService.selectLeftPanel(k1.camForm):"right"===this.panelSide&&this.noctuaSearchMenuService.selectRightPanel(null),this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(uo),de(ji),de(Zo),de(gl),de(lr),de(Hc),de($c))},t.\u0275cmp=En({type:t,selectors:[["noc-copy-model"]],inputs:{panelDrawer:"panelDrawer",panelSide:"panelSide"},decls:70,vars:13,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","mb-20"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","p-8"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item-body","w-100-p"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"noc-item"],[1,"noc-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item"],[1,"w-100-p"],["class","mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["class","",3,"matTooltip","matTooltipPosition","matTooltipShowDelay",4,"ngFor","ngForOf"],["target","_blank",1,"mr-4",3,"href"],["target","_blank",1,"ml-4","mr-4",3,"href"],["target","_blank",1,"ml-4",3,"href"],[1,"example-margin",3,"ngModel","ngModelChange"],["class","noc-item noc-no-info","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-item-body w-100-p","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","submit","mat-raised-button","","color","primary",1,"noc-rounded-button",3,"click"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],[1,"mr-8",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"",3,"matTooltip","matTooltipPosition","matTooltipShowDelay"],[1,"noc-chip-label"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-item","noc-no-info"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Copy Model"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),G(9,"div",5),Ve(10,zat,2,0,"div",6),G(11,"div",7)(12,"div",8)(13,"div",9),he(14," Model Information "),W(),$e(15,"span",3),W()(),G(16,"div",10)(17,"div",11)(18,"div",12)(19,"div",13)(20,"div",14)(21,"div",15),he(22,"ID:"),W(),he(23),W(),G(24,"div",14)(25,"div",15),he(26,"Title:"),W(),he(27),W(),G(28,"div",16)(29,"div",15),he(30,"State:"),W(),he(31),W(),G(32,"div",17)(33,"div",14)(34,"div",15),he(35,"Contributors:"),W(),Ve(36,Fat,2,4,"div",18),W(),G(37,"div",14)(38,"div",15),he(39,"Groups:"),W(),Ve(40,Hat,3,4,"span",19),W(),G(41,"div",16)(42,"div",15),he(43,"Open In:"),W(),G(44,"a",20),he(45," Pathway Editor "),W(),G(46,"span"),he(47,"\u2022"),W(),G(48,"a",21),he(49," Form Editor "),W(),G(50,"span"),he(51,"\u2022"),W(),G(52,"a",22),he(53," Graph Editor "),W()()(),G(54,"div")(55,"mat-checkbox",23),it("ngModelChange",function(o){return i.includeEvidence=o}),he(56,"Include Evidence"),W()()()()()(),G(57,"div",7)(58,"div",8)(59,"div",9),he(60," Duplicated Model Information "),W(),$e(61,"span",3),W(),G(62,"div",11),Ve(63,Vat,2,0,"div",24),Ve(64,Bat,2,0,"div",24),Ve(65,Uat,36,8,"div",25),W()()(),G(66,"div",26),$e(67,"span",3),G(68,"button",27),it("click",function(){return i.copyModel()}),he(69,"Copy Model"),W()()()),2&e&&(K(10),oe("ngIf",!i.noctuaUserService.user),K(13),Ft(" ",i.cam.id," "),K(4),Ft(" ",i.cam.title," "),K(4),Ft(" ",null==i.cam.state?null:i.cam.state.label," "),K(5),oe("ngForOf",i.cam.contributors),K(4),oe("ngForOf",i.cam.groups),K(4),oe("href",null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.noctuaVPEUrl,ir),K(4),oe("href",null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.noctuaFormUrl,ir),K(4),oe("href",null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.graphEditorUrl,ir),K(3),oe("ngModel",i.includeEvidence),K(8),oe("ngIf",!i.duplicatedCam),K(1),oe("ngIf",i.loading),K(1),oe("ngIf",i.duplicatedCam))},directives:[Lr,kr,Vr,Er,Mo,Fa,er,vo,Jl,Zf,E1,DO],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-form[_ngcontent-%COMP%]{width:350px;min-width:350px;max-width:350px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;font-size:12px}[_nghost-%COMP%] .noc-item[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-weight:700;margin-right:8px;color:#999}']}),t})();const Tm="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function yse(t,n,e,i){const r=n.querySelectorAll(t);if(r.length){const o=e.querySelectorAll(t);for(let a=0;a{i[r]=(e[r]||0)-(n[r]||0)}),i}const Ese="resize-active";let Kat=(()=>{class t{constructor(e,i,r,o){this.platformId=e,this.renderer=i,this.elm=r,this.zone=o,this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=Sse,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new Bn,this.resizing=new Bn,this.resizeEnd=new Bn,this.mouseup=new z,this.mousedown=new z,this.mousemove=new z,this.destroy$=new z,this.pointerEventListeners=Y_.getInstance(i,o)}ngOnInit(){const e=So(this.pointerEventListeners.pointerDown,this.mousedown),i=So(this.pointerEventListeners.pointerMove,this.mousemove).pipe(ts(({event:f})=>{if(o)try{f.preventDefault()}catch(w){}}),Yc()),r=So(this.pointerEventListeners.pointerUp,this.mouseup);let o;const a=()=>{o&&o.clonedNode&&(this.elm.nativeElement.parentElement.removeChild(o.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","inherit"))},c=()=>Object.assign(Object.assign({},Sse),this.resizeCursors);e.pipe(ba(f=>{function w(Z){return{clientX:Z.clientX-f.clientX,clientY:Z.clientY-f.clientY}}const E=()=>{const Z={x:1,y:1};return o&&(this.resizeSnapGrid.left&&o.edges.left?Z.x=+this.resizeSnapGrid.left:this.resizeSnapGrid.right&&o.edges.right&&(Z.x=+this.resizeSnapGrid.right),this.resizeSnapGrid.top&&o.edges.top?Z.y=+this.resizeSnapGrid.top:this.resizeSnapGrid.bottom&&o.edges.bottom&&(Z.y=+this.resizeSnapGrid.bottom)),Z};function B(Z,ee){return{x:Math.ceil(Z.clientX/ee.x),y:Math.ceil(Z.clientY/ee.y)}}return So(i.pipe(Po(1)).pipe(Qe(Z=>[,Z])),i.pipe(function jat(){return Ce((t,n)=>{let e,i=!1;t.subscribe(Be(n,r=>{const o=e;e=r,i&&n.next([o,r]),i=!0}))})}())).pipe(Qe(([Z,ee])=>[Z&&w(Z),w(ee)])).pipe(zo(([Z,ee])=>{if(!Z)return!0;const be=E(),_e=B(Z,be),Pe=B(ee,be);return _e.x!==Pe.x||_e.y!==Pe.y})).pipe(Qe(([,Z])=>{const ee=E();return{clientX:Math.round(Z.clientX/ee.x)*ee.x,clientY:Math.round(Z.clientY/ee.y)*ee.y}})).pipe(Ln(So(r,e)))})).pipe(zo(()=>!!o)).pipe(Qe(({clientX:f,clientY:w})=>Ose(o.startingRect,o.edges,f,w))).pipe(zo(f=>this.allowNegativeResizes||!!(f.height&&f.width&&f.height>0&&f.width>0))).pipe(zo(f=>!this.validateResize||this.validateResize({rectangle:f,edges:GP({edges:o.edges,initialRectangle:o.startingRect,newRectangle:f})})),Ln(this.destroy$)).subscribe(f=>{o&&o.clonedNode&&(this.renderer.setStyle(o.clonedNode,"height",`${f.height}px`),this.renderer.setStyle(o.clonedNode,"width",`${f.width}px`),this.renderer.setStyle(o.clonedNode,"top",`${f.top}px`),this.renderer.setStyle(o.clonedNode,"left",`${f.left}px`)),this.resizing.observers.length>0&&this.zone.run(()=>{this.resizing.emit({edges:GP({edges:o.edges,initialRectangle:o.startingRect,newRectangle:f}),rectangle:f})}),o.currentRect=f}),e.pipe(Qe(({edges:f})=>f||{}),zo(f=>Object.keys(f).length>0),Ln(this.destroy$)).subscribe(f=>{o&&a();const w=function Xat(t,n){let e=0,i=0;const r=t.nativeElement.style,a=["transform","-ms-transform","-moz-transform","-o-transform"].map(c=>r[c]).find(c=>!!c);if(a&&a.includes("translate")&&(e=a.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),i=a.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===n)return{height:t.nativeElement.offsetHeight,width:t.nativeElement.offsetWidth,top:t.nativeElement.offsetTop-i,bottom:t.nativeElement.offsetHeight+t.nativeElement.offsetTop-i,left:t.nativeElement.offsetLeft-e,right:t.nativeElement.offsetWidth+t.nativeElement.offsetLeft-e};{const c=t.nativeElement.getBoundingClientRect();return{height:c.height,width:c.width,top:c.top-i,bottom:c.bottom-i,left:c.left-e,right:c.right-e,scrollTop:t.nativeElement.scrollTop,scrollLeft:t.nativeElement.scrollLeft}}}(this.elm,this.ghostElementPositioning);o={edges:f,startingRect:w,currentRect:w};const E=c(),B=Pse(o.edges,E);this.renderer.setStyle(document.body,"cursor",B),this.setElementClass(this.elm,Ese,!0),this.enableGhostResize&&(o.clonedNode=function Wat(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();return n.removeAttribute("id"),e.forEach(r=>{r.removeAttribute("id")}),"canvas"===i?Mse(t,n):("input"===i||"select"===i||"textarea"===i)&&wse(t,n),yse("canvas",t,n,Mse),yse("input, textarea, select",t,n,wse),n}(this.elm.nativeElement),this.elm.nativeElement.parentElement.appendChild(o.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","hidden"),this.renderer.setStyle(o.clonedNode,"position",this.ghostElementPositioning),this.renderer.setStyle(o.clonedNode,"left",`${o.startingRect.left}px`),this.renderer.setStyle(o.clonedNode,"top",`${o.startingRect.top}px`),this.renderer.setStyle(o.clonedNode,"height",`${o.startingRect.height}px`),this.renderer.setStyle(o.clonedNode,"width",`${o.startingRect.width}px`),this.renderer.setStyle(o.clonedNode,"cursor",Pse(o.edges,E)),this.renderer.addClass(o.clonedNode,"resize-ghost-element"),o.clonedNode.scrollTop=o.startingRect.scrollTop,o.clonedNode.scrollLeft=o.startingRect.scrollLeft),this.resizeStart.observers.length>0&&this.zone.run(()=>{this.resizeStart.emit({edges:GP({edges:f,initialRectangle:w,newRectangle:w}),rectangle:Ose(w,{},0,0)})})}),r.pipe(Ln(this.destroy$)).subscribe(()=>{o&&(this.renderer.removeClass(this.elm.nativeElement,Ese),this.renderer.setStyle(document.body,"cursor",""),this.renderer.setStyle(this.elm.nativeElement,"cursor",""),this.resizeEnd.observers.length>0&&this.zone.run(()=>{this.resizeEnd.emit({edges:GP({edges:o.edges,initialRectangle:o.startingRect,newRectangle:o.currentRect}),rectangle:o.currentRect})}),a(),o=null)})}ngOnDestroy(){Dl(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.destroy$.next()}setElementClass(e,i,r){r?this.renderer.addClass(e.nativeElement,i):this.renderer.removeClass(e.nativeElement,i)}}return t.\u0275fac=function(e){return new(e||t)(de(Tl),de(Uc),de(gi),de(ji))},t.\u0275dir=nn({type:t,selectors:[["","mwlResizable",""]],inputs:{validateResize:"validateResize",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"]}),t})();class Y_{constructor(n,e){this.pointerDown=new At(i=>{let r,o;return e.runOutsideAngular(()=>{r=n.listen("document","mousedown",a=>{i.next({clientX:a.clientX,clientY:a.clientY,event:a})}),Tm&&(o=n.listen("document","touchstart",a=>{i.next({clientX:a.touches[0].clientX,clientY:a.touches[0].clientY,event:a})}))}),()=>{r(),Tm&&o()}}).pipe(Yc()),this.pointerMove=new At(i=>{let r,o;return e.runOutsideAngular(()=>{r=n.listen("document","mousemove",a=>{i.next({clientX:a.clientX,clientY:a.clientY,event:a})}),Tm&&(o=n.listen("document","touchmove",a=>{i.next({clientX:a.targetTouches[0].clientX,clientY:a.targetTouches[0].clientY,event:a})}))}),()=>{r(),Tm&&o()}}).pipe(Yc()),this.pointerUp=new At(i=>{let r,o,a;return e.runOutsideAngular(()=>{r=n.listen("document","mouseup",c=>{i.next({clientX:c.clientX,clientY:c.clientY,event:c})}),Tm&&(o=n.listen("document","touchend",c=>{i.next({clientX:c.changedTouches[0].clientX,clientY:c.changedTouches[0].clientY,event:c})}),a=n.listen("document","touchcancel",c=>{i.next({clientX:c.changedTouches[0].clientX,clientY:c.changedTouches[0].clientY,event:c})}))}),()=>{r(),Tm&&(o(),a())}}).pipe(Yc())}static getInstance(n,e){return Y_.instance||(Y_.instance=new Y_(n,e)),Y_.instance}}let Tse=(()=>{class t{constructor(e,i,r,o){this.renderer=e,this.element=i,this.zone=r,this.resizableDirective=o,this.resizeEdges={},this.eventListeners={},this.destroy$=new z}ngOnInit(){this.zone.runOutsideAngular(()=>{this.listenOnTheHost("mousedown").subscribe(e=>{this.onMousedown(e,e.clientX,e.clientY)}),this.listenOnTheHost("mouseup").subscribe(e=>{this.onMouseup(e.clientX,e.clientY)}),Tm&&(this.listenOnTheHost("touchstart").subscribe(e=>{this.onMousedown(e,e.touches[0].clientX,e.touches[0].clientY)}),So(this.listenOnTheHost("touchend"),this.listenOnTheHost("touchcancel")).subscribe(e=>{this.onMouseup(e.changedTouches[0].clientX,e.changedTouches[0].clientY)}))})}ngOnDestroy(){this.destroy$.next(),this.unsubscribeEventListeners()}onMousedown(e,i,r){e.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",o=>{this.onMousemove(o,o.targetTouches[0].clientX,o.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",o=>{this.onMousemove(o,o.clientX,o.clientY)})),this.resizable.mousedown.next({clientX:i,clientY:r,edges:this.resizeEdges})}onMouseup(e,i){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:e,clientY:i,edges:this.resizeEdges})}get resizable(){return this.resizableDirective||this.resizableContainer}onMousemove(e,i,r){this.resizable.mousemove.next({clientX:i,clientY:r,edges:this.resizeEdges,event:e})}unsubscribeEventListeners(){Object.keys(this.eventListeners).forEach(e=>{this.eventListeners[e](),delete this.eventListeners[e]})}listenOnTheHost(e){return Rc(this.element.nativeElement,e).pipe(Ln(this.destroy$))}}return t.\u0275fac=function(e){return new(e||t)(de(Uc),de(gi),de(ji),de(Kat,8))},t.\u0275dir=nn({type:t,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),t})(),Zat=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({}),t})();function xs(t,n){const e=Bz.getColor(t);return e?e[n]:null}let Jat=(()=>{class t{constructor(e){this._camStatsService=e,this.aspectOptions={view:[500,200],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,xAxisLabel:"Aspect",showYAxisLabel:!0,yAxisLabel:"Annotations",animations:!0,legendPosition:"below",colorScheme:{domain:["#AAAAAA"]},customColors:[]},this.aspectPieOptions={view:[500,200],gradient:!0,legend:!1,showLabels:!0,isDoughnut:!1,maxLabelLength:20,colorScheme:{domain:[xs("green",500),xs("brown",500),xs("purple",500)]}},this.termsBarOptions={view:[500,400],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:30,yAxisLabel:"Terms",showYAxisLabel:!0,xAxisLabel:"Count"},this.stats={aspect:[],aspectPie:[],termsBar:[]},this._unsubscribeAll=new z}ngOnInit(){this.stats.aspect=this._camStatsService.buildTermsStats(this.termsSummary),this.stats.aspectPie=this._camStatsService.buildAspectPie([this.termsSummary.mf,this.termsSummary.bp,this.termsSummary.cc]),this.stats.termsBar=this._camStatsService.buildTermsDistribution([this.termsSummary.mf,this.termsSummary.bp,this.termsSummary.cc,this.termsSummary.other])}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}getCustomColors(e){return e.map(r=>{let o="#AAAAAA";return(r.type=vn.GoMolecularEntity)?o=xs("blue",500):(r.type=vn.GoMolecularFunction)?o=xs("brown",500):(r.type=vn.GoBiologicalProcess)?o=xs("purple",500):(r.type=vn.GoCellularComponent)&&(o=xs("green",500)),{name:r.term.label,value:o}})}}return t.\u0275fac=function(e){return new(e||t)(de(kC))},t.\u0275cmp=En({type:t,selectors:[["noc-general-stats"]],inputs:{termsSummary:"termsSummary"},decls:21,vars:32,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","scheme","gradient","xAxis","yAxis","legend","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","animations","customColors"],[3,"results","view","scheme","gradient","legend","maxLabelLength","labels","doughnut"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2),he(3," Number of terms "),W(),$e(4,"span",3),W(),G(5,"div",4),$e(6,"ngx-charts-bar-vertical-stacked",5),W()(),G(7,"div",0)(8,"div",1)(9,"div",2),he(10," Number of terms by aspect "),W(),$e(11,"span",3),W(),G(12,"div",4),$e(13,"ngx-charts-pie-chart",6),W()(),G(14,"div",0)(15,"div",1)(16,"div",2),he(17," Terms Distribution (first 20) "),W(),$e(18,"span",3),W(),G(19,"div",4),$e(20,"ngx-charts-bar-horizontal",7),W()()),2&e&&(K(6),oe("results",i.stats.aspect)("view",i.aspectOptions.view)("scheme",i.aspectOptions.colorScheme)("gradient",i.aspectOptions.gradient)("xAxis",i.aspectOptions.showXAxis)("yAxis",i.aspectOptions.showYAxis)("legend",i.aspectOptions.legend)("showXAxisLabel",i.aspectOptions.showXAxisLabel)("showYAxisLabel",i.aspectOptions.showYAxisLabel)("xAxisLabel",i.aspectOptions.xAxisLabel)("yAxisLabel",i.aspectOptions.yAxisLabel)("animations",i.aspectOptions.animations)("customColors",i.aspectOptions.customColors),K(7),oe("results",i.stats.aspectPie)("view",i.aspectPieOptions.view)("scheme",i.aspectPieOptions.colorScheme)("gradient",i.aspectPieOptions.gradient)("legend",i.aspectPieOptions.legend)("maxLabelLength",i.aspectPieOptions.maxLabelLength)("labels",i.aspectPieOptions.showLabels)("doughnut",i.aspectPieOptions.isDoughnut),K(7),oe("results",i.stats.termsBar)("view",i.termsBarOptions.view)("gradient",i.termsBarOptions.gradient)("xAxis",i.termsBarOptions.showXAxis)("yAxis",i.termsBarOptions.showYAxis)("legend",i.termsBarOptions.legend)("showXAxisLabel",i.termsBarOptions.showXAxisLabel)("maxYAxisTickLength",i.termsBarOptions.maxYAxisTickLength)("showYAxisLabel",i.termsBarOptions.showYAxisLabel)("xAxisLabel",i.termsBarOptions.xAxisLabel)("yAxisLabel",i.termsBarOptions.yAxisLabel))},styles:[""]}),t})(),est=(()=>{class t{constructor(e){this._camStatsService=e,this.aspectPieOptions={view:[500,200],gradient:!0,legend:!1,showLabels:!0,isDoughnut:!1,maxLabelLength:20,colorScheme:{domain:[xs("green",500),xs("brown",500),xs("purple",500)]}},this.termsBarOptions={view:[500,400],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:30,yAxisLabel:"Gene Products",showYAxisLabel:!0,xAxisLabel:"Count"},this.stats={gpPie:[],termsBar:[]},this._unsubscribeAll=new z}ngOnInit(){this.stats.gpPie=this._camStatsService.buildTermsPie(this.termsSummary.gp.nodes),this.stats.termsBar=this._camStatsService.buildTermsDistribution([this.termsSummary.gp])}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}getCustomColors(e){return e.map(r=>{let o="#AAAAAA";return(r.type=vn.GoMolecularEntity)?o=xs("blue",500):(r.type=vn.GoMolecularFunction)?o=xs("brown",500):(r.type=vn.GoBiologicalProcess)?o=xs("purple",500):(r.type=vn.GoCellularComponent)&&(o=xs("green",500)),{name:r.term.label,value:o}})}}return t.\u0275fac=function(e){return new(e||t)(de(kC))},t.\u0275cmp=En({type:t,selectors:[["noc-gp-stats"]],inputs:{termsSummary:"termsSummary"},decls:14,vars:19,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"],[3,"results","view","scheme","gradient","legend","maxLabelLength","labels","doughnut"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2),he(3," Terms Distribution (first 20) "),W(),$e(4,"span",3),W(),G(5,"div",4),$e(6,"ngx-charts-bar-horizontal",5),W()(),G(7,"div",0)(8,"div",1)(9,"div",2),he(10," Gene Product "),W(),$e(11,"span",3),W(),G(12,"div",4),$e(13,"ngx-charts-pie-chart",6),W()()),2&e&&(K(6),oe("results",i.stats.termsBar)("view",i.termsBarOptions.view)("gradient",i.termsBarOptions.gradient)("xAxis",i.termsBarOptions.showXAxis)("yAxis",i.termsBarOptions.showYAxis)("legend",i.termsBarOptions.legend)("showXAxisLabel",i.termsBarOptions.showXAxisLabel)("maxYAxisTickLength",i.termsBarOptions.maxYAxisTickLength)("showYAxisLabel",i.termsBarOptions.showYAxisLabel)("xAxisLabel",i.termsBarOptions.xAxisLabel)("yAxisLabel",i.termsBarOptions.yAxisLabel),K(7),oe("results",i.stats.gpPie)("view",i.aspectPieOptions.view)("scheme",i.aspectPieOptions.colorScheme)("gradient",i.aspectPieOptions.gradient)("legend",i.aspectPieOptions.legend)("maxLabelLength",i.aspectPieOptions.maxLabelLength)("labels",i.aspectPieOptions.showLabels)("doughnut",i.aspectPieOptions.isDoughnut))},styles:[""]}),t})();function tst(t,n){if(1&t&&(G(0,"div",1)(1,"div",2)(2,"div",3),he(3),W(),$e(4,"span",4),W(),G(5,"div",5),$e(6,"ngx-charts-pie-chart",6),W()()),2&t){const e=n.$implicit,i=He();K(3),Ft(" ",e.label," "),K(3),oe("results",e.data)("view",i.aspectPieOptions.view)("scheme",i.aspectPieOptions.colorScheme)("gradient",i.aspectPieOptions.gradient)("legend",i.aspectPieOptions.legend)("maxLabelLength",i.aspectPieOptions.maxLabelLength)("labels",i.aspectPieOptions.showLabels)("doughnut",i.aspectPieOptions.isDoughnut)}}let nst=(()=>{class t{constructor(e,i){this._camStatsService=e,this._noctuaGraphService=i,this.aspectPieOptions={view:[400,200],gradient:!0,legend:!1,showLabels:!0,isDoughnut:!1,maxLabelLength:20,colorScheme:{domain:[xs("green",500),xs("brown",500),xs("purple",500)]}},this.stats={mfPie:[],bpPie:[],ccPie:[]},this._unsubscribeAll=new z}ngOnInit(){this.stats.mfPie=this._camStatsService.buildTermsPie(this.termsSummary.mf.nodes),this.stats.bpPie=this._camStatsService.buildTermsPie(this.termsSummary.bp.nodes),this.stats.ccPie=this._camStatsService.buildTermsPie(this.termsSummary.cc.nodes),this.pies=[{label:"Molecular Function",data:this.stats.mfPie},{label:"Biological Process",data:this.stats.bpPie},{label:"Cellular Component",data:this.stats.ccPie}]}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(kC),de(hl))},t.\u0275cmp=En({type:t,selectors:[["noc-aspect-stats"]],inputs:{termsSummary:"termsSummary",aspect:"aspect"},decls:1,vars:1,consts:[["class","noc-table-form noc-form-section","fxLayout","column","fxLayoutAlign","start stretch",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","scheme","gradient","legend","maxLabelLength","labels","doughnut"]],template:function(e,i){1&e&&Ve(0,tst,7,9,"div",0),2&e&&oe("ngForOf",i.pies)},styles:[""]}),t})(),ist=(()=>{class t{constructor(e,i){this._camStatsService=e,this._noctuaGraphService=i,this.relationsBarOptions={view:[500,400],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:30,yAxisLabel:"Relation",showYAxisLabel:!0,xAxisLabel:"Count"},this.datesLineOptions={view:[500,400],legend:!1,legendPosition:"below",showLabels:!0,animations:!0,xAxis:!0,yAxis:!0,showYAxisLabel:!0,showXAxisLabel:!0,xAxisLabel:"Curated Statements",yAxisLabel:"Statements",timeline:!0},this.stats={datesLine:[],relationsBar:[]},this._unsubscribeAll=new z}ngOnInit(){this.stats.relationsBar=this._camStatsService.buildRelationsPie(this.termsSummary.relations.nodes),this.stats.datesLine=this._camStatsService.buildContributionsStats(this.termsSummary.dates.nodes)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(kC),de(hl))},t.\u0275cmp=En({type:t,selectors:[["noc-statement-stats"]],inputs:{termsSummary:"termsSummary",aspect:"aspect"},decls:14,vars:21,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"],[3,"results","view","legend","showXAxisLabel","showYAxisLabel","xAxis","yAxis","xAxisLabel","yAxisLabel","timeline"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2),he(3," Relations "),W(),$e(4,"span",3),W(),G(5,"div",4),$e(6,"ngx-charts-bar-horizontal",5),W()(),G(7,"div",0)(8,"div",1)(9,"div",2),he(10," Statements over time "),W(),$e(11,"span",3),W(),G(12,"div",4),$e(13,"ngx-charts-line-chart",6),W()()),2&e&&(K(6),oe("results",i.stats.relationsBar)("view",i.relationsBarOptions.view)("gradient",i.relationsBarOptions.gradient)("xAxis",i.relationsBarOptions.showXAxis)("yAxis",i.relationsBarOptions.showYAxis)("legend",i.relationsBarOptions.legend)("showXAxisLabel",i.relationsBarOptions.showXAxisLabel)("maxYAxisTickLength",i.relationsBarOptions.maxYAxisTickLength)("showYAxisLabel",i.relationsBarOptions.showYAxisLabel)("xAxisLabel",i.relationsBarOptions.xAxisLabel)("yAxisLabel",i.relationsBarOptions.yAxisLabel),K(7),oe("results",i.stats.datesLine)("view",i.datesLineOptions.view)("legend",i.datesLineOptions.legend)("showXAxisLabel",i.datesLineOptions.showXAxisLabel)("showYAxisLabel",i.datesLineOptions.showYAxisLabel)("xAxis",i.datesLineOptions.xAxis)("yAxis",i.datesLineOptions.yAxis)("xAxisLabel",i.datesLineOptions.xAxisLabel)("yAxisLabel",i.datesLineOptions.yAxisLabel)("timeline",i.datesLineOptions.timeline))},styles:[""]}),t})(),rst=(()=>{class t{constructor(e){this._camStatsService=e,this.contributorBarOptions={view:[500,300],showXAxis:!0,showYAxis:!0,gradient:!1,legend:!1,showXAxisLabel:!0,maxYAxisTickLength:25,yAxisLabel:"Contributor",showYAxisLabel:!0,xAxisLabel:"Number of Statements"},this.stats={contributorBar:[]},this._unsubscribeAll=new z}ngOnInit(){this.stats.contributorBar=this._camStatsService.buildContributorBar(this.termsSummary.contributors.nodes)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(kC))},t.\u0275cmp=En({type:t,selectors:[["noc-contribution-stats"]],inputs:{termsSummary:"termsSummary",aspect:"aspect"},decls:7,vars:11,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],[3,"results","view","gradient","xAxis","yAxis","legend","showXAxisLabel","maxYAxisTickLength","showYAxisLabel","xAxisLabel","yAxisLabel"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2),he(3," Contribution "),W(),$e(4,"span",3),W(),G(5,"div",4),$e(6,"ngx-charts-bar-horizontal",5),W()()),2&e&&(K(6),oe("results",i.stats.contributorBar)("view",i.contributorBarOptions.view)("gradient",i.contributorBarOptions.gradient)("xAxis",i.contributorBarOptions.showXAxis)("yAxis",i.contributorBarOptions.showYAxis)("legend",i.contributorBarOptions.legend)("showXAxisLabel",i.contributorBarOptions.showXAxisLabel)("maxYAxisTickLength",i.contributorBarOptions.maxYAxisTickLength)("showYAxisLabel",i.contributorBarOptions.showYAxisLabel)("xAxisLabel",i.contributorBarOptions.xAxisLabel)("yAxisLabel",i.contributorBarOptions.yAxisLabel))},styles:[""]}),t})();const ost=function(t){return{"noc-active":t}};function ast(t,n){if(1&t){const e=Nn();G(0,"button",8),it("click",function(){const o=Ut(e).$implicit;return He().selectStatsType(o.name)}),he(1),W()}if(2&t){const e=n.$implicit,i=He();Yr("matTooltip",e.tooltip),oe("ngClass",Pr(5,ost,i.selectedStatsType===e.name))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),Ft(" ",e.label," ")}}function sst(t,n){1&t&&$e(0,"noc-general-stats",12),2&t&&oe("termsSummary",He(2).termsSummary)}function cst(t,n){1&t&&$e(0,"noc-gp-stats",12),2&t&&oe("termsSummary",He(2).termsSummary)}function lst(t,n){1&t&&$e(0,"noc-aspect-stats",12),2&t&&oe("termsSummary",He(2).termsSummary)}function dst(t,n){1&t&&$e(0,"noc-statement-stats",12),2&t&&oe("termsSummary",He(2).termsSummary)}function ust(t,n){1&t&&$e(0,"noc-contribution-stats",12),2&t&&oe("termsSummary",He(2).termsSummary)}function hst(t,n){if(1&t&&(G(0,"div",9)(1,"div",10),Ve(2,sst,1,1,"noc-general-stats",11),Ve(3,cst,1,1,"noc-gp-stats",11),Ve(4,lst,1,1,"noc-aspect-stats",11),Ve(5,dst,1,1,"noc-statement-stats",11),Ve(6,ust,1,1,"noc-contribution-stats",11),W()()),2&t){const e=He();K(1),oe("ngSwitch",e.selectedStatsType),K(1),oe("ngSwitchCase",e.StatsType.GENERAL),K(1),oe("ngSwitchCase",e.StatsType.GP),K(1),oe("ngSwitchCase",e.StatsType.TERM),K(1),oe("ngSwitchCase",e.StatsType.STATEMENT),K(1),oe("ngSwitchCase",e.StatsType.CONTRIBUTION)}}var $0=(()=>(function(t){t.GENERAL="general",t.GP="GP",t.MF="MF",t.BP="BP",t.CC="CC",t.TERM="term",t.CONTRIBUTION="contribution",t.STATEMENT="statement"}($0||($0={})),$0))();let pst=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w){this.zone=e,this.noctuaLookupService=i,this._noctuaGraphService=r,this.noctuaCommonMenuService=o,this.camService=a,this.noctuaUserService=c,this.noctuaReviewSearchService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=w,this.EntityType=G0,this.StatsType=$0,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.selectedStatsType=$0.GENERAL,this.statsTypes=[{name:$0.GENERAL,label:"General"},{name:$0.GP,label:"GP"},{name:$0.TERM,label:"Terms"},{name:$0.STATEMENT,label:"Statements"},{name:$0.CONTRIBUTION,label:"Contribution"}],this.pies=[],this._unsubscribeAll=new z}ngOnInit(){this._noctuaGraphService.onCamGraphChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.cam=e,this.termsSummary=this._noctuaGraphService.getTerms(this.cam.graph))})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}selectStatsType(e){this.selectedStatsType=e}openSearch(e){this.noctuaLookupService.getTermDetail(e.term.id).pipe(Ln(this._unsubscribeAll)).subscribe(i=>{!i||(this.noctuaReviewSearchService.onCamTermSearch.next(i),this.noctuaCommonMenuService.selectLeftPanel(k1.findReplace),this.noctuaCommonMenuService.openLeftDrawer())})}search(e){this.noctuaReviewSearchService.searchCriteria.terms=[e.term],this.noctuaReviewSearchService.updateSearch()}searchModels(e){const i=new N1;i.terms=[e.term];const r=`${lo.noctuaLandingPageUrl}?${i.build()}`;window.open(r,"_blank")}searchModelsByContributor(e){const i=new N1;i.terms=[e.term],i.contributors=[this.noctuaUserService.user];const r=`${lo.noctuaLandingPageUrl}?${i.build()}`;window.open(r,"_blank")}openTermDetail(e){this.noctuaSearchService.onDetailTermChanged.next(e),this.noctuaCommonMenuService.selectRightPanel(y_.termDetail),this.noctuaCommonMenuService.openRightDrawer()}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(ji),de(X2),de(hl),de($c),de(Zo),de(uo),de(z1),de(R1),de(lr))},t.\u0275cmp=En({type:t,selectors:[["noc-cam-stats"]],inputs:{panelDrawer:"panelDrawer"},decls:12,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-tab-bar"],["mat-button","","color","","class","noc-tab-button",3,"ngClass","matTooltip","matTooltipPosition","matTooltipShowDelay","click",4,"ngFor","ngForOf"],["class","noc-drawer-body","noctuaPerfectScrollbar","",4,"ngIf"],["mat-button","","color","",1,"noc-tab-button",3,"ngClass","matTooltip","matTooltipPosition","matTooltipShowDelay","click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],[3,"ngSwitch"],[3,"termsSummary",4,"ngSwitchCase"],[3,"termsSummary"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Cam Details & Stats"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," CLOSE "),W()(),G(9,"div",5),Ve(10,ast,2,7,"button",6),W(),Ve(11,hst,7,6,"div",7),W()),2&e&&(K(10),oe("ngForOf",i.statsTypes),K(1),oe("ngIf",i.termsSummary))},directives:[Lr,kr,Vr,Er,Mo,vo,Qa,ec,Jl,er,Fa,V2,Ou,Jat,est,nst,ist,rst],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:520px;min-width:520px;max-width:520px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-tab-bar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding-top:10px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-tab-bar[_ngcontent-%COMP%] .noc-tab-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;min-width:20px;padding:0 16px;line-height:12px;font-size:12px;border-radius:10px 10px 0 0;border:#bbb solid 1px;border-bottom:#eee solid 3px;color:#777}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-tab-bar[_ngcontent-%COMP%] .noc-tab-button.noc-active[_ngcontent-%COMP%]{border-bottom:#3b5998 solid 3px;background-color:#ccc;color:#000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{border-top:#888 solid 1px;padding:24px 8 100px 0;min-height:calc(100% - 80px)}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();function fst(){}function kF(t){return null==t?fst:function(){return this.querySelector(t)}}function Ase(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function mst(){return[]}function Dse(t){return null==t?mst:function(){return this.querySelectorAll(t)}}function Lse(t){return function(){return this.matches(t)}}function kse(t){return function(n){return n.matches(t)}}var Cst=Array.prototype.find;function xst(){return this.firstElementChild}var wst=Array.prototype.filter;function Mst(){return this.children}function Ise(t){return new Array(t.length)}function YP(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Tst(t){return function(){return t}}function Ast(t,n,e,i,r,o){for(var c,a=0,u=n.length,f=o.length;an?1:t>=n?0:NaN}YP.prototype={constructor:YP,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var IF="http://www.w3.org/1999/xhtml";const Nse={svg:"http://www.w3.org/2000/svg",xhtml:IF,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function UP(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Nse.hasOwnProperty(n)?{space:Nse[n],local:t}:t}function Wst(t){return function(){this.removeAttribute(t)}}function qst(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Xst(t,n){return function(){this.setAttribute(t,n)}}function $st(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Qst(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Kst(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Rse(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Jst(t){return function(){this.style.removeProperty(t)}}function ect(t,n,e){return function(){this.style.setProperty(t,n,e)}}function tct(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function U_(t,n){return t.style.getPropertyValue(n)||Rse(t).getComputedStyle(t,null).getPropertyValue(n)}function ict(t){return function(){delete this[t]}}function rct(t,n){return function(){this[t]=n}}function oct(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function zse(t){return t.trim().split(/^|\s+/)}function NF(t){return t.classList||new Fse(t)}function Fse(t){this._node=t,this._names=zse(t.getAttribute("class")||"")}function Hse(t,n){for(var e=NF(t),i=-1,r=n.length;++i=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function Rct(t){return function(){var n=this.__on;if(n){for(var o,e=0,i=-1,r=n.length;e=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Yse=[null];function Id(t,n){this._groups=t,this._parents=n}function Use(){return new Id([[document.documentElement]],Yse)}Id.prototype=Use.prototype={constructor:Id,select:function gst(t){"function"!=typeof t&&(t=kF(t));for(var n=this._groups,e=n.length,i=new Array(e),r=0;r=ge&&(ge=Ie+1);!(Ye=_e[ge])&&++ge=0;)(a=i[r])&&(o&&4^a.compareDocumentPosition(o)&&o.parentNode.insertBefore(a,o),o=a);return this},sort:function Fst(t){function n(E,B){return E&&B?t(E.__data__,B.__data__):!E-!B}t||(t=Hst);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?Jst:"function"==typeof n?tct:ect)(t,n,null==e?"":e)):U_(this.node(),t)},property:function act(t,n){return arguments.length>1?this.each((null==n?ict:"function"==typeof n?oct:rct)(t,n)):this.node()[t]},classed:function dct(t,n){var e=zse(t+"");if(arguments.length<2){for(var i=NF(this.node()),r=-1,o=e.length;++r{}};function jse(){for(var i,t=0,n=arguments.length,e={};t=0&&(i=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function Wct(t,n){for(var r,e=0,i=t.length;e0)for(var r,o,e=new Array(r),i=0;i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?qP(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?qP(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Qct.exec(t))?new ou(n[1],n[2],n[3],1):(n=Kct.exec(t))?new ou(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Zct.exec(t))?qP(n[1],n[2],n[3],n[4]):(n=Jct.exec(t))?qP(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=elt.exec(t))?tce(n[1],n[2]/100,n[3]/100,1):(n=tlt.exec(t))?tce(n[1],n[2]/100,n[3]/100,n[4]):$se.hasOwnProperty(t)?Zse($se[t]):"transparent"===t?new ou(NaN,NaN,NaN,0):null}function Zse(t){return new ou(t>>16&255,t>>8&255,255&t,1)}function qP(t,n,e,i){return i<=0&&(t=n=e=NaN),new ou(t,n,e,i)}function ilt(t){return t instanceof nb||(t=Am(t)),t?new ou((t=t.rgb()).r,t.g,t.b,t.opacity):new ou}function XP(t,n,e,i){return 1===arguments.length?ilt(t):new ou(t,n,e,null==i?1:i)}function ou(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function Jse(){return"#"+FF(this.r)+FF(this.g)+FF(this.b)}function ece(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function FF(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function tce(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new K0(t,n,e,i)}function nce(t){if(t instanceof K0)return new K0(t.h,t.s,t.l,t.opacity);if(t instanceof nb||(t=Am(t)),!t)return new K0;if(t instanceof K0)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),a=NaN,c=o-r,u=(o+r)/2;return c?(a=n===o?(e-i)/c+6*(e0&&u<1?0:a,new K0(a,c,u,t.opacity)}function K0(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function HF(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function ice(t,n,e,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*i+a*r)/6}zF(nb,Am,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Qse,formatHex:Qse,formatHsl:function nlt(){return nce(this).formatHsl()},formatRgb:Kse,toString:Kse}),zF(ou,XP,Xse(nb,{brighter:function(t){return t=null==t?WP:Math.pow(WP,t),new ou(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ou(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Jse,formatHex:Jse,formatRgb:ece,toString:ece})),zF(K0,function rlt(t,n,e,i){return 1===arguments.length?nce(t):new K0(t,n,e,null==i?1:i)},Xse(nb,{brighter:function(t){return t=null==t?WP:Math.pow(WP,t),new K0(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new K0(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new ou(HF(t>=240?t-240:t+120,r,i),HF(t,r,i),HF(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const VF=t=>()=>t;function oce(t,n){var e=n-t;return e?function rce(t,n){return function(e){return t+e*n}}(t,e):VF(isNaN(t)?n:t)}const $P=function t(n){var e=function clt(t){return 1==(t=+t)?oce:function(n,e){return e-n?function slt(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):VF(isNaN(n)?e:n)}}(n);function i(r,o){var a=e((r=XP(r)).r,(o=XP(o)).r),c=e(r.g,o.g),u=e(r.b,o.b),f=oce(r.opacity,o.opacity);return function(w){return r.r=a(w),r.g=c(w),r.b=u(w),r.opacity=f(w),r+""}}return i.gamma=t,i}(1);function ace(t){return function(n){var a,c,e=n.length,i=new Array(e),r=new Array(e),o=new Array(e);for(a=0;a=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1];return ice((e-i/n)*n,i>0?t[i-1]:2*r-o,r,o,ie&&(o=n.slice(e,o),c[a]?c[a]+=o:c[++a]=o),(i=i[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,u.push({i:a,x:Qh(i,r)})),e=GF.lastIndex;return e=0&&t._call.call(null,n),t=t._next;--W_}()}finally{W_=0,function Clt(){for(var t,e,n=KP,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:KP=e);cb=t,UF(i)}(),Dm=0}}function vlt(){var t=lb.now(),n=t-ZP;n>1e3&&(JP-=n,ZP=t)}function UF(t){W_||(ab&&(ab=clearTimeout(ab)),t-Dm>24?(t<1/0&&(ab=setTimeout(pce,t-lb.now()-JP)),sb&&(sb=clearInterval(sb))):(sb||(ZP=lb.now(),sb=setInterval(vlt,1e3)),W_=1,uce(pce)))}function fce(t,n,e){var i=new eE;return i.restart(r=>{i.stop(),t(r+n)},n=null==n?0:+n,e),i}eE.prototype=hce.prototype={constructor:eE,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?YF():+e)+(null==n?0:+n),!this._next&&cb!==this&&(cb?cb._next=this:KP=this,cb=this),this._call=t,this._time=e,UF()},stop:function(){this._call&&(this._call=null,this._time=1/0,UF())}};var blt=qse("start","end","cancel","interrupt"),xlt=[];function iE(t,n,e,i,r,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function ylt(t,n,e){var r,i=t.__transition;function a(f){var w,E,B,Z;if(1!==e.state)return u();for(w in i)if((Z=i[w]).name===e.name){if(3===Z.state)return fce(a);4===Z.state?(Z.state=6,Z.timer.stop(),Z.on.call("interrupt",t,t.__data__,Z.index,Z.group),delete i[w]):+w0)throw new Error("too late; already scheduled");return e}function Z0(t,n){var e=Kh(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Kh(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var rE,vce=180/Math.PI,$F={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Cce(t,n,e,i,r,o){var a,c,u;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(u=t*e+n*i)&&(e-=t*u,i-=n*u),(c=Math.sqrt(e*e+i*i))&&(e/=c,i/=c,u/=c),t*i180?w+=360:w-f>180&&(f+=360),B.push({i:E.push(r(E)+"rotate(",null,i)-2,x:Qh(f,w)})):w&&E.push(r(E)+"rotate("+w+i)}(f.rotate,w.rotate,E,B),function c(f,w,E,B){f!==w?B.push({i:E.push(r(E)+"skewX(",null,i)-2,x:Qh(f,w)}):w&&E.push(r(E)+"skewX("+w+i)}(f.skewX,w.skewX,E,B),function u(f,w,E,B,Z,ee){if(f!==E||w!==B){var be=Z.push(r(Z)+"scale(",null,",",null,")");ee.push({i:be-4,x:Qh(f,E)},{i:be-2,x:Qh(w,B)})}else(1!==E||1!==B)&&Z.push(r(Z)+"scale("+E+","+B+")")}(f.scaleX,f.scaleY,w.scaleX,w.scaleY,E,B),f=w=null,function(Z){for(var _e,ee=-1,be=B.length;++ee=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?qF:Z0;return function(){var a=o(this,t),c=a.on;c!==i&&(r=(i=c).copy()).on(n,e),a.on=r}}var c1t=tb.prototype.constructor;function yce(t){return function(){this.style.removeProperty(t)}}function g1t(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function m1t(t,n,e){var i,r;function o(){var a=n.apply(this,arguments);return a!==r&&(i=(r=a)&&g1t(t,a,e)),i}return o._value=n,o}function x1t(t){return function(n){this.textContent=t.call(this,n)}}function y1t(t){var n,e;function i(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&x1t(r)),n}return i._value=t,i}var S1t=0;function P3(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function wce(){return++S1t}var Lm=tb.prototype;P3.prototype=function P1t(t){return tb().transition(t)}.prototype={constructor:P3,select:function a1t(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=kF(t));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[a]):o=!1;o&&delete t.__transition}}(this,t)})},tb.prototype.transition=function D1t(t){var n,e;t instanceof P3?(n=t._id,t=t._name):(n=wce(),(e=T1t).time=YF(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;on?1:t>=n?0:NaN}function iH(t){let n=t,e=t;function i(a,c,u,f){for(null==u&&(u=0),null==f&&(f=a.length);u>>1;e(a[w],c)<0?u=w+1:f=w}return u}return 1===t.length&&(n=(a,c)=>t(a)-c,e=function Y1t(t){return(n,e)=>Tce(t(n),e)}(t)),{left:i,center:function o(a,c,u,f){null==u&&(u=0),null==f&&(f=a.length);const w=i(a,c,u,f-1);return w>u&&n(a[w-1],c)>-n(a[w],c)?w-1:w},right:function r(a,c,u,f){for(null==u&&(u=0),null==f&&(f=a.length);u>>1;e(a[w],c)>0?f=w:u=w+1}return u}}}["w","e"].map(db),["n","s"].map(db),["n","w","e","s","nw","ne","sw","se"].map(db);var rH=Math.sqrt(50),oH=Math.sqrt(10),aH=Math.sqrt(2);function sH(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=rH?r*=10:o>=oH?r*=5:o>=aH&&(r*=2),n0))return u;do{u.push(f=new Date(+o)),n(o,c),t(o)}while(f=a)for(;t(a),!o(a);)a.setTime(a-1)},function(a,c){if(a>=a)if(c<0)for(;++c<=0;)for(;n(a,-1),!o(a););else for(;--c>=0;)for(;n(a,1),!o(a););})},e&&(r.count=function(o,a){return dH.setTime(+o),uH.setTime(+a),t(dH),t(uH),Math.floor(e(dH,uH))},r.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?r.filter(i?function(a){return i(a)%o==0}:function(a){return r.count(0,a)%o==0}):r:null}),r}var sE=n1(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});sE.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?n1(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):sE:null};const j1t=sE;var Lce=n1(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*T3)},function(t,n){return(n-t)/T3},function(t){return t.getUTCSeconds()});const ub=Lce;var kce=n1(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*T3)},function(t,n){t.setTime(+t+n*Yu)},function(t,n){return(n-t)/Yu},function(t){return t.getMinutes()});const Ice=kce;var Nce=n1(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*T3-t.getMinutes()*Yu)},function(t,n){t.setTime(+t+n*A3)},function(t,n){return(n-t)/A3},function(t){return t.getHours()});const Rce=Nce;var zce=n1(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Yu)/km,t=>t.getDate()-1);const cE=zce;function Im(t){return n1(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Yu)/cH})}var lE=Im(0),dE=Im(1),$_=(Im(2),Im(3),Im(4)),Fce=(Im(5),Im(6),n1(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const Hce=Fce;var hH=n1(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});hH.every=function(t){return isFinite(t=Math.floor(t))&&t>0?n1(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Nm=hH;var Vce=n1(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Yu)},function(t,n){return(n-t)/Yu},function(t){return t.getUTCMinutes()});const Q1t=Vce;var Bce=n1(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*A3)},function(t,n){return(n-t)/A3},function(t){return t.getUTCHours()});const K1t=Bce;var Gce=n1(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/km},function(t){return t.getUTCDate()-1});const pH=Gce;function Rm(t){return n1(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/cH})}var fH=Rm(0),uE=Rm(1),Q_=(Rm(2),Rm(3),Rm(4)),Yce=(Rm(5),Rm(6),n1(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const n2t=Yce;var gH=n1(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});gH.every=function(t){return isFinite(t=Math.floor(t))&&t>0?n1(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const K_=gH;function Uce(t,n,e,i,r,o){const a=[[ub,1,T3],[ub,5,5e3],[ub,15,15e3],[ub,30,3e4],[o,1,Yu],[o,5,5*Yu],[o,15,15*Yu],[o,30,30*Yu],[r,1,A3],[r,3,3*A3],[r,6,6*A3],[r,12,12*A3],[i,1,km],[i,2,2*km],[e,1,cH],[n,1,2592e6],[n,3,7776e6],[t,1,lH]];function u(f,w,E){const B=Math.abs(w-f)/E,Z=iH(([,,_e])=>_e).right(a,B);if(Z===a.length)return t.every(sH(f/lH,w/lH,E));if(0===Z)return j1t.every(Math.max(sH(f,w,E),1));const[ee,be]=a[B/a[Z-1][2][n.toLowerCase(),e]))}function l2t(t,n,e){var i=r1.exec(n.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function d2t(t,n,e){var i=r1.exec(n.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function u2t(t,n,e){var i=r1.exec(n.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function h2t(t,n,e){var i=r1.exec(n.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function p2t(t,n,e){var i=r1.exec(n.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function Wce(t,n,e){var i=r1.exec(n.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function qce(t,n,e){var i=r1.exec(n.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function f2t(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function g2t(t,n,e){var i=r1.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function m2t(t,n,e){var i=r1.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function Xce(t,n,e){var i=r1.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function _2t(t,n,e){var i=r1.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function $ce(t,n,e){var i=r1.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function v2t(t,n,e){var i=r1.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function C2t(t,n,e){var i=r1.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function b2t(t,n,e){var i=r1.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function x2t(t,n,e){var i=r1.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function y2t(t,n,e){var i=a2t.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function w2t(t,n,e){var i=r1.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function M2t(t,n,e){var i=r1.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function Qce(t,n){return is(t.getDate(),n,2)}function O2t(t,n){return is(t.getHours(),n,2)}function S2t(t,n){return is(t.getHours()%12||12,n,2)}function P2t(t,n){return is(1+cE.count(Nm(t),t),n,3)}function Kce(t,n){return is(t.getMilliseconds(),n,3)}function E2t(t,n){return Kce(t,n)+"000"}function T2t(t,n){return is(t.getMonth()+1,n,2)}function A2t(t,n){return is(t.getMinutes(),n,2)}function D2t(t,n){return is(t.getSeconds(),n,2)}function L2t(t){var n=t.getDay();return 0===n?7:n}function k2t(t,n){return is(lE.count(Nm(t)-1,t),n,2)}function Zce(t){var n=t.getDay();return n>=4||0===n?$_(t):$_.ceil(t)}function I2t(t,n){return t=Zce(t),is($_.count(Nm(t),t)+(4===Nm(t).getDay()),n,2)}function N2t(t){return t.getDay()}function R2t(t,n){return is(dE.count(Nm(t)-1,t),n,2)}function z2t(t,n){return is(t.getFullYear()%100,n,2)}function F2t(t,n){return is((t=Zce(t)).getFullYear()%100,n,2)}function H2t(t,n){return is(t.getFullYear()%1e4,n,4)}function V2t(t,n){var e=t.getDay();return is((t=e>=4||0===e?$_(t):$_.ceil(t)).getFullYear()%1e4,n,4)}function B2t(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+is(n/60|0,"0",2)+is(n%60,"0",2)}function Jce(t,n){return is(t.getUTCDate(),n,2)}function G2t(t,n){return is(t.getUTCHours(),n,2)}function Y2t(t,n){return is(t.getUTCHours()%12||12,n,2)}function U2t(t,n){return is(1+pH.count(K_(t),t),n,3)}function ele(t,n){return is(t.getUTCMilliseconds(),n,3)}function j2t(t,n){return ele(t,n)+"000"}function W2t(t,n){return is(t.getUTCMonth()+1,n,2)}function q2t(t,n){return is(t.getUTCMinutes(),n,2)}function X2t(t,n){return is(t.getUTCSeconds(),n,2)}function $2t(t){var n=t.getUTCDay();return 0===n?7:n}function Q2t(t,n){return is(fH.count(K_(t)-1,t),n,2)}function tle(t){var n=t.getUTCDay();return n>=4||0===n?Q_(t):Q_.ceil(t)}function K2t(t,n){return t=tle(t),is(Q_.count(K_(t),t)+(4===K_(t).getUTCDay()),n,2)}function Z2t(t){return t.getUTCDay()}function J2t(t,n){return is(uE.count(K_(t)-1,t),n,2)}function edt(t,n){return is(t.getUTCFullYear()%100,n,2)}function tdt(t,n){return is((t=tle(t)).getUTCFullYear()%100,n,2)}function ndt(t,n){return is(t.getUTCFullYear()%1e4,n,4)}function idt(t,n){var e=t.getUTCDay();return is((t=e>=4||0===e?Q_(t):Q_.ceil(t)).getUTCFullYear()%1e4,n,4)}function rdt(){return"+0000"}function nle(){return"%"}function ile(t){return+t}function rle(t){return Math.floor(+t/1e3)}!function cdt(t){(function o2t(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,f=pb(r),w=fb(r),E=pb(o),B=fb(o),Z=pb(a),ee=fb(a),be=pb(c),_e=fb(c),Pe=pb(u),Ie=fb(u),ge={a:function Kn(ni){return a[ni.getDay()]},A:function fi(ni){return o[ni.getDay()]},b:function oi(ni){return u[ni.getMonth()]},B:function wi(ni){return c[ni.getMonth()]},c:null,d:Qce,e:Qce,f:E2t,g:F2t,G:V2t,H:O2t,I:S2t,j:P2t,L:Kce,m:T2t,M:A2t,p:function Li(ni){return r[+(ni.getHours()>=12)]},q:function Ai(ni){return 1+~~(ni.getMonth()/3)},Q:ile,s:rle,S:D2t,u:L2t,U:k2t,V:I2t,w:N2t,W:R2t,x:null,X:null,y:z2t,Y:H2t,Z:B2t,"%":nle},Re={a:function $i(ni){return a[ni.getUTCDay()]},A:function Yn(ni){return o[ni.getUTCDay()]},b:function mo(ni){return u[ni.getUTCMonth()]},B:function dr(ni){return c[ni.getUTCMonth()]},c:null,d:Jce,e:Jce,f:j2t,g:tdt,G:idt,H:G2t,I:Y2t,j:U2t,L:ele,m:W2t,M:q2t,p:function Si(ni){return r[+(ni.getUTCHours()>=12)]},q:function bo(ni){return 1+~~(ni.getUTCMonth()/3)},Q:ile,s:rle,S:X2t,u:$2t,U:Q2t,V:K2t,w:Z2t,W:J2t,x:null,X:null,y:edt,Y:ndt,Z:rdt,"%":nle},Ye={a:function Yt(ni,vi,zi){var Dn=Z.exec(vi.slice(zi));return Dn?(ni.w=ee.get(Dn[0].toLowerCase()),zi+Dn[0].length):-1},A:function tn(ni,vi,zi){var Dn=E.exec(vi.slice(zi));return Dn?(ni.w=B.get(Dn[0].toLowerCase()),zi+Dn[0].length):-1},b:function _n(ni,vi,zi){var Dn=Pe.exec(vi.slice(zi));return Dn?(ni.m=Ie.get(Dn[0].toLowerCase()),zi+Dn[0].length):-1},B:function Wt(ni,vi,zi){var Dn=be.exec(vi.slice(zi));return Dn?(ni.m=_e.get(Dn[0].toLowerCase()),zi+Dn[0].length):-1},c:function An(ni,vi,zi){return ft(ni,n,vi,zi)},d:Xce,e:Xce,f:x2t,g:qce,G:Wce,H:$ce,I:$ce,j:_2t,L:b2t,m:m2t,M:v2t,p:function _t(ni,vi,zi){var Dn=f.exec(vi.slice(zi));return Dn?(ni.p=w.get(Dn[0].toLowerCase()),zi+Dn[0].length):-1},q:g2t,Q:w2t,s:M2t,S:C2t,u:d2t,U:u2t,V:h2t,w:l2t,W:p2t,x:function Gn(ni,vi,zi){return ft(ni,e,vi,zi)},X:function bn(ni,vi,zi){return ft(ni,i,vi,zi)},y:qce,Y:Wce,Z:f2t,"%":y2t};function Je(ni,vi){return function(zi){var _r,tr,Rr,Dn=[],bi=-1,Mi=0,Yi=ni.length;for(zi instanceof Date||(zi=new Date(+zi));++bi53)return null;"w"in Dn||(Dn.w=1),"Z"in Dn?(Yi=(Mi=_H(hb(Dn.y,0,1))).getUTCDay(),Mi=Yi>4||0===Yi?uE.ceil(Mi):uE(Mi),Mi=pH.offset(Mi,7*(Dn.V-1)),Dn.y=Mi.getUTCFullYear(),Dn.m=Mi.getUTCMonth(),Dn.d=Mi.getUTCDate()+(Dn.w+6)%7):(Yi=(Mi=mH(hb(Dn.y,0,1))).getDay(),Mi=Yi>4||0===Yi?dE.ceil(Mi):dE(Mi),Mi=cE.offset(Mi,7*(Dn.V-1)),Dn.y=Mi.getFullYear(),Dn.m=Mi.getMonth(),Dn.d=Mi.getDate()+(Dn.w+6)%7)}else("W"in Dn||"U"in Dn)&&("w"in Dn||(Dn.w="u"in Dn?Dn.u%7:"W"in Dn?1:0),Yi="Z"in Dn?_H(hb(Dn.y,0,1)).getUTCDay():mH(hb(Dn.y,0,1)).getDay(),Dn.m=0,Dn.d="W"in Dn?(Dn.w+6)%7+7*Dn.W-(Yi+5)%7:Dn.w+7*Dn.U-(Yi+6)%7);return"Z"in Dn?(Dn.H+=Dn.Z/100|0,Dn.M+=Dn.Z%100,_H(Dn)):mH(Dn)}}function ft(ni,vi,zi,Dn){for(var _r,tr,bi=0,Mi=vi.length,Yi=zi.length;bi=Yi)return-1;if(37===(_r=vi.charCodeAt(bi++))){if(_r=vi.charAt(bi++),!(tr=Ye[_r in jce?vi.charAt(bi++):_r])||(Dn=tr(ni,zi,Dn))<0)return-1}else if(_r!=zi.charCodeAt(Dn++))return-1}return Dn}return ge.x=Je(e,ge),ge.X=Je(i,ge),ge.c=Je(n,ge),Re.x=Je(e,Re),Re.X=Je(i,Re),Re.c=Je(n,Re),{format:function(ni){var vi=Je(ni+="",ge);return vi.toString=function(){return ni},vi},parse:function(ni){var vi=gt(ni+="",!1);return vi.toString=function(){return ni},vi},utcFormat:function(ni){var vi=Je(ni+="",Re);return vi.toString=function(){return ni},vi},utcParse:function(ni){var vi=gt(ni+="",!0);return vi.toString=function(){return ni},vi}}})(t)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),iH(Tce),iH(function ldt(t){return null===t?NaN:+t});var ule,wdt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pE(t){if(!(n=wdt.exec(t)))throw new Error("invalid format: "+t);var n;return new CH({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function CH(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function fE(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function hle(t,n){var e=fE(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}pE.prototype=CH.prototype,CH.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ple={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function Mdt(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>hle(100*t,n),r:hle,s:function Tdt(t,n){var e=fE(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(ule=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+fE(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function fle(t){return t}var gle=Array.prototype.map,mle=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Adt(t){var n=void 0===t.grouping||void 0===t.thousands?fle:function Sdt(t,n){return function(e,i){for(var r=e.length,o=[],a=0,c=t[0],u=0;r>0&&c>0&&(u+c+1>i&&(c=Math.max(1,i-u)),o.push(e.substring(r-=c,r+c)),!((u+=c+1)>i));)c=t[a=(a+1)%t.length];return o.reverse().join(n)}}(gle.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?fle:function Pdt(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(gle.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"\u2212":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function f(E){var B=(E=pE(E)).fill,Z=E.align,ee=E.sign,be=E.symbol,_e=E.zero,Pe=E.width,Ie=E.comma,ge=E.precision,Re=E.trim,Ye=E.type;"n"===Ye?(Ie=!0,Ye="g"):ple[Ye]||(void 0===ge&&(ge=12),Re=!0,Ye="g"),(_e||"0"===B&&"="===Z)&&(_e=!0,B="0",Z="=");var Je="$"===be?e:"#"===be&&/[boxX]/.test(Ye)?"0"+Ye.toLowerCase():"",gt="$"===be?i:/[%p]/.test(Ye)?a:"",ft=ple[Ye],_t=/[defgprs%]/.test(Ye);function Yt(tn){var An,Gn,bn,_n=Je,Wt=gt;if("c"===Ye)Wt=ft(tn)+Wt,tn="";else{var Kn=(tn=+tn)<0||1/tn<0;if(tn=isNaN(tn)?u:ft(Math.abs(tn),ge),Re&&(tn=function Edt(t){e:for(var r,n=t.length,e=1,i=-1;e0&&(i=0)}return i>0?t.slice(0,i)+t.slice(r+1):t}(tn)),Kn&&0==+tn&&"+"!==ee&&(Kn=!1),_n=(Kn?"("===ee?ee:c:"-"===ee||"("===ee?"":ee)+_n,Wt=("s"===Ye?mle[8+ule/3]:"")+Wt+(Kn&&"("===ee?")":""),_t)for(An=-1,Gn=tn.length;++An(bn=tn.charCodeAt(An))||bn>57){Wt=(46===bn?r+tn.slice(An+1):tn.slice(An))+Wt,tn=tn.slice(0,An);break}}Ie&&!_e&&(tn=n(tn,1/0));var fi=_n.length+tn.length+Wt.length,oi=fi>1)+_n+tn+Wt+oi.slice(fi);break;default:tn=oi+_n+tn+Wt}return o(tn)}return ge=void 0===ge?6:/[gprs]/.test(Ye)?Math.max(1,Math.min(21,ge)):Math.max(0,Math.min(20,ge)),Yt.toString=function(){return E+""},Yt}return{format:f,formatPrefix:function w(E,B){var Z=f(((E=pE(E)).type="f",E)),ee=3*Math.max(-8,Math.min(8,Math.floor(function e8(t){return(t=fE(Math.abs(t)))?t[1]:NaN}(B)/3))),be=Math.pow(10,-ee),_e=mle[8+ee/3];return function(Pe){return Z(be*Pe)+_e}}}}!function Ddt(t){Adt(t)}({thousands:",",grouping:[3],currency:["$",""]}),Symbol("implicit"),v(16087);const Fdt=["caretElm"];function Hdt(t,n){}const Vdt=function(t){return{model:t}};function Bdt(t,n){if(1&t&&(G(0,"span"),Ve(1,Hdt,0,0,"ng-template",5),W()),2&t){const e=He();K(1),oe("ngTemplateOutlet",e.template)("ngTemplateOutletContext",Pr(2,Vdt,e.context))}}function Gdt(t,n){1&t&&$e(0,"span",6),2&t&&oe("innerHTML",He().title,D7)}function _ht(t,n,e){e=e||{};let i,r,o,a=null,c=0;function u(){c=!1===e.leading?0:+new Date,a=null,o=t.apply(i,r)}return function(){const f=+new Date;!c&&!1===e.leading&&(c=f);const w=n-(f-c);return i=this,r=arguments,w<=0?(clearTimeout(a),a=null,c=f,o=t.apply(i,r)):!a&&!1!==e.trailing&&(a=setTimeout(u,w)),o}}function vht(t,n){return function(i,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:_ht(o.value,t,n)}),this[r]}}}}var fa=(()=>(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center"}(fa||(fa={})),fa))();function Ole(t,n,e){return e===fa.Top?t.top-7:e===fa.Bottom?t.top+t.height-n.height+7:e===fa.Center?t.top+t.height/2-n.height/2:void 0}function Sle(t,n,e){return e===fa.Left?t.left-7:e===fa.Right?t.left+t.width-n.width+7:e===fa.Center?t.left+t.width/2-n.width/2:void 0}class au{static calculateVerticalAlignment(n,e,i){let r=Ole(n,e,i);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(n,e,i,r){let o;r===fa.Top&&(o=n.height/2-i.height/2+7),r===fa.Bottom&&(o=e.height-n.height/2-i.height/2-7),r===fa.Center&&(o=e.height/2-i.height/2);const a=Ole(n,e,r);return a+e.height>window.innerHeight&&(o+=a+e.height-window.innerHeight),o}static calculateHorizontalAlignment(n,e,i){let r=Sle(n,e,i);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(n,e,i,r){let o;r===fa.Left&&(o=n.width/2-i.width/2+7),r===fa.Right&&(o=e.width-n.width/2-i.width/2-7),r===fa.Center&&(o=e.width/2-i.width/2);const a=Sle(n,e,r);return a+e.width>window.innerWidth&&(o+=a+e.width-window.innerWidth),o}static shouldFlip(n,e,i,r){let o=!1;return i===fa.Right&&n.left+n.width+e.width+r>window.innerWidth&&(o=!0),i===fa.Left&&n.left-e.width-r<0&&(o=!0),i===fa.Top&&n.top-e.height-r<0&&(o=!0),i===fa.Bottom&&n.top+n.height+e.height+r>window.innerHeight&&(o=!0),o}static positionCaret(n,e,i,r,o){let a=0,c=0;return n===fa.Right?(c=-7,a=au.calculateVerticalCaret(i,e,r,o)):n===fa.Left?(c=e.width,a=au.calculateVerticalCaret(i,e,r,o)):n===fa.Top?(a=e.height,c=au.calculateHorizontalCaret(i,e,r,o)):n===fa.Bottom&&(a=-7,c=au.calculateHorizontalCaret(i,e,r,o)),{top:a,left:c}}static positionContent(n,e,i,r,o){let a=0,c=0;return n===fa.Right?(c=i.left+i.width+r,a=au.calculateVerticalAlignment(i,e,o)):n===fa.Left?(c=i.left-e.width-r,a=au.calculateVerticalAlignment(i,e,o)):n===fa.Top?(a=i.top-e.height-r,c=au.calculateHorizontalAlignment(i,e,o)):n===fa.Bottom&&(a=i.top+i.height+r,c=au.calculateHorizontalAlignment(i,e,o)),{top:a,left:c}}static determinePlacement(n,e,i,r){if(au.shouldFlip(i,e,n,r)){if(n===fa.Right)return fa.Left;if(n===fa.Left)return fa.Right;if(n===fa.Top)return fa.Bottom;if(n===fa.Bottom)return fa.Top}return n}}let wH,Cht=(()=>{class t{constructor(e,i,r){this.element=e,this.renderer=i,this.platformId=r}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!Dl(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const r=e.getBoundingClientRect();this.checkFlip(i,r),this.positionContent(e,i,r),this.showCaret&&this.positionCaret(i,r),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,r){const{top:o,left:a}=au.positionContent(this.placement,r,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${a}px`)}positionCaret(e,i){const r=this.caretElm.nativeElement,o=r.getBoundingClientRect(),{top:a,left:c}=au.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(r,"top",`${a}px`),this.renderer.setStyle(r,"left",`${c}px`)}checkFlip(e,i){this.placement=au.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(de(gi),de(Uc),de(Tl))},t.\u0275cmp=En({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&fr(Fdt,5),2&e){let r;hi(r=pi())&&(i.caretElm=r.first)}},hostVars:2,hostBindings:function(e,i){1&e&&it("resize",function(){return i.onWindowResize()},!1,F5),2&e&&VL(i.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(G(0,"div"),$e(1,"span",0,1),G(3,"div",2),Ve(4,Bdt,2,4,"span",3),Ve(5,Gdt,1,1,"span",4),W()()),2&e&&(K(1),Af("tooltip-caret position-",i.placement,""),oe("hidden",!i.showCaret),K(3),oe("ngIf",!i.title),K(1),oe("ngIf",i.title))},directives:[er,v6],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),function mn(t,n,e,i){var a,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(o=(r<3?a(o):r>3?a(n,e,o):a(n,e))||o);r>3&&o&&Object.defineProperty(n,e,o)}([vht(100)],t.prototype,"onWindowResize",null),t})(),Ple=(()=>{class t{constructor(e,i,r){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=r}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function xht(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const r=Object.getOwnPropertyNames(i.inputs);for(const o of r)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const r=Object.getOwnPropertyNames(i.outputs);for(const o of r)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},r){r||(r=this.getRootViewContainer());const o=this.getComponentRootNode(r),a=new UZ(o,this.componentFactoryResolver,this.applicationRef,this.injector),c=new Kd(e),u=a.attach(c);return this.projectComponentBindings(u,i),u}}return t.globalRootViewContainer=null,t.\u0275fac=function(e){return new(e||t)(Rt(F9),Rt(Df),Rt(hs))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),bH=(()=>{class t extends class bht{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}{constructor(e){super(e),this.type=Cht}}return t.\u0275fac=function(e){return new(e||t)(Rt(Ple))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})(),kle=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta]]}),t})(),Nle=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[Ple,bH],imports:[[ta]]}),t})();"undefined"!=typeof window?wH=window:"undefined"!=typeof global&&(wH=global);let Uu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[ta,kle,Nle],ta,kle,Nle]}),t})(),kht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Uu]]}),t})(),Yle=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Uu]]}),t})(),Iht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Uu]]}),t})(),Nht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Uu]]}),t})(),Rht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Uu]]}),t})(),Ule=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Uu]]}),t})();Math;let OH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Uu]]}),t})(),Hht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Uu,OH,Ule]]}),t})(),Bht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Uu]]}),t})(),Ght=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Uu]]}),t})(),Yht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[Uu,OH,Yle]]}),t})(),jht=(()=>{class t{constructor(){!function Uht(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[Uu,kht,Yle,Iht,Nht,Rht,Ule,Hht,Bht,OH,Ght,Yht]}),t})();const Wht=function(){return["far","trash-alt"]};function qht(t,n){if(1&t){const e=Nn();G(0,"button",11),it("click",function(){Ut(e);const r=He();return r.deleteEntity(r.entity)}),$e(1,"fa-icon",12),W()}2&t&&(K(1),oe("icon",ai(1,Wht)))}function Xht(t,n){if(1&t&&$e(0,"noctua-inline-editor",13),2&t){const e=He();oe("cam",e.cam)("activity",e.activity)("entity",e.entity)("category",e.EditorCategory.term)}}function $ht(t,n){if(1&t&&$e(0,"noc-evidence-form-table",16),2&t){const e=He(2);oe("settings",e.settings)("options",e.optionsDisplay)("cam",e.cam)("entity",e.entity)}}function Qht(t,n){if(1&t&&(G(0,"div",14),Ve(1,$ht,1,4,"noc-evidence-form-table",15),W()),2&t){const e=He();K(1),oe("ngIf",e.entity.showEvidence)}}function Kht(t,n){if(1&t&&(G(0,"div",5),he(1),W()),2&t){const e=He(3);K(1),Ft(" ",null==e.entity.predicate?null:e.entity.predicate.evidence.length," evidence ")}}function Zht(t,n){1&t&&(G(0,"div",21),he(1," no evidence present. "),W())}function Jht(t,n){if(1&t&&(G(0,"div",0),Ve(1,Kht,2,1,"div",19),Ve(2,Zht,2,0,"div",20),W()),2&t){const e=He(2);K(1),oe("ngIf",(null==e.entity.predicate?null:e.entity.predicate.evidence.length)>0),K(1),oe("ngIf",0===(null==e.entity.predicate?null:e.entity.predicate.evidence.length))}}function e0t(t,n){if(1&t&&(G(0,"div",17),Ve(1,Jht,3,2,"div",18),W()),2&t){const e=He();K(1),oe("ngIf",!e.entity.skipEvidenceCheck)}}function t0t(t,n){if(1&t){const e=Nn();G(0,"button",33),it("click",function(){Ut(e);const r=He(2);return r.openSearchDatabaseDialog(r.entity)}),he(1," Search Annotations "),W()}}function n0t(t,n){1&t&&(G(0,"button",28),he(1,"Add"),W()),2&t&&(He(),oe("matMenuTriggerFor",Di(12)))}function i0t(t,n){if(1&t){const e=Nn();G(0,"button",34),it("click",function(){Ut(e);const r=He(2);return r.deleteEntity(r.entity)}),he(1," Delete "),W()}}function r0t(t,n){if(1&t){const e=Nn();G(0,"button",33),it("click",function(){const o=Ut(e).$implicit,a=He(2);return a.insertEntity(a.entity,o)}),he(1),W()}if(2&t){const e=n.$implicit;K(1),Ft(" ",e.label," ")}}function o0t(t,n){if(1&t){const e=Nn();G(0,"div",22)(1,"button",23),it("click",function(r){return Ut(e),He().updateCurrentMenuEvent(r)}),G(2,"mat-icon"),he(3,"more_vert"),W()(),G(4,"mat-menu",24,25),Ve(6,t0t,2,0,"button",26),Ve(7,n0t,2,1,"button",27),G(8,"button",28),he(9,"Evidence"),W(),Ve(10,i0t,2,0,"button",29),W(),G(11,"mat-menu",null,30),Ve(13,r0t,2,1,"button",31),W(),G(14,"mat-menu",null,32)(16,"button",33),it("click",function(){Ut(e);const r=He();return r.addEvidence(r.entity)}),he(17," Add Evidence "),W()()()}if(2&t){const e=Di(5),i=Di(15),r=He();K(1),oe("matMenuTriggerFor",e),K(5),oe("ngIf",r.entity.aspect),K(1),oe("ngIf",r.entity.insertMenuNodes),K(1),oe("matMenuTriggerFor",i),K(2),oe("ngIf",r.entity.canDelete),K(3),oe("ngForOf",r.entity.insertMenuNodes)}}const a0t=function(t){return{"noc-selected":t}},s0t=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};let jle=(()=>{class t{constructor(e,i,r,o,a,c,u,f){this.camService=e,this.confirmDialogService=i,this.noctuaUserService=r,this.noctuaFormConfigService=o,this.noctuaFormDialogService=a,this.noctuaActivityEntityService=c,this.noctuaActivityFormService=u,this.inlineEditorService=f,this.EditorCategory=pa,this.ActivityType=Wi,this.activityTypeOptions=Ht.activityType.options,this.options={},this.relationWidth="0px",this.optionsDisplay={},this.editableTerms=!1,this.currentMenuEvent={},this.unsubscribeAll=new z}ngOnInit(){var e;(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.relationWidth=250-16*this.entity.treeLevel+"px"}toggleExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const r={cam:this.cam,activity:this.activity,entity:e,category:pa.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r}),this.noctuaActivityFormService.initializeForm()}removeEvidence(e,i){e.predicate.removeEvidence(i),this.noctuaActivityFormService.initializeForm()}deleteEntity(e){const i=this,o=this.activity.descendants(e.id).map(c=>c.term.label).join(", ");let a=`You are about to delete an ${e.term.label}`;o&&(a+=` and its descendants ${o}`),this.confirmDialogService.openConfirmDialog("Confirm Delete?",`${a}`,()=>{this.noctuaActivityEntityService.deleteActivityNode(i.activity,e).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.term.label} successfully deleted.`,"OK")})})}openSearchDatabaseDialog(e){const i=this,r=this.activity.getGPNode();if(r&&r.hasValue()){const a=c=>{if(c.term){const u=new _i(c.term.term.id,c.term.term.label);c.evidences&&c.evidences.length>0&&(i.noctuaActivityEntityService.initializeForm(this.activity,e),e.term=u,e.predicate.setEvidence(c.evidences),i.noctuaActivityEntityService.saveSearchDatabase())}};i.noctuaFormDialogService.openSearchDatabaseDialog({readonly:!1,gpNode:r.term,aspect:e.aspect,entity:e,params:{term:"",evidence:""}},a)}else{const a=new q2(dl.error,ll.general,"Please enter a gene product",{aspect:"Gene Product"});i.noctuaFormDialogService.openActivityErrorsDialog([a])}}insertEntity(e,i){const r=this.noctuaFormConfigService.insertActivityNode(this.activity,e,i),o={cam:this.cam,activity:this.activity,entity:r,category:pa.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,r),this.inlineEditorService.open(this.currentMenuEvent.target,{data:o})}editEntity(e){const i={cam:this.cam,activity:this.activity,entity:e,category:pa.all,evidenceIndex:0,insertEntity:!0};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:i})}addRootTerm(e){const i=this,r=(0,Nt.find)(Ht.rootNode,o=>o.aspect===e.aspect);if(r){e.term=new _i(r.id,r.label),i.noctuaActivityFormService.initializeForm();const o=new Rl;o.setEvidence(new _i(Ht.evidenceAutoPopulate.nd.evidence.id,Ht.evidenceAutoPopulate.nd.evidence.label)),o.reference=Ht.evidenceAutoPopulate.nd.reference,e.predicate.setEvidence([o]),i.noctuaActivityFormService.initializeForm()}}clearValues(e){e.clearValues(),this.noctuaActivityFormService.initializeForm()}openSelectEvidenceDialog(e){const i=this,r=this.camService.getUniqueEvidence(i.noctuaActivityFormService.activity);i.noctuaFormDialogService.openSelectEvidenceDialog(r,a=>{a.evidences&&a.evidences.length>0&&(e.predicate.setEvidence(a.evidences),i.noctuaActivityFormService.initializeForm())})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}cleanId(e){return m4.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(Q2),de(uo),de(lr),de(gl),de(Td),de(ps),de(Em))},t.\u0275cmp=En({type:t,selectors:[["noc-activity-form-table-node"]],inputs:{settings:"settings",cam:"cam",activity:"activity",entity:"entity",options:"options"},decls:15,vars:19,consts:[[1,"w-100-p"],["fxLayout","row","fxLayoutAlign","start stretch",1,"noc-activity-node","noctua-form-table","w-100-p",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-term-cell","noc-entity-cell",3,"fxFlex","ngClass"],[1,"noc-cell-floating-title"],["mat-icon-button","","class","noc-delete-button",3,"click",4,"ngIf"],[1,""],["target","_blank",3,"href","click"],["class","noc-edit-button",3,"cam","activity","entity","category",4,"ngIf"],["fxFlex","","class","noc-evidence-cell p-0","fxLayout","row","fxLayoutAlign","start stretch",4,"ngIf"],["class","evidence-summary-cell p-0","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["class","noc-cell noc-action-cell","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["mat-icon-button","",1,"noc-delete-button",3,"click"],[3,"icon"],[1,"noc-edit-button",3,"cam","activity","entity","category"],["fxFlex","","fxLayout","row","fxLayoutAlign","start stretch",1,"noc-evidence-cell","p-0"],["class","w-100-p",3,"settings","options","cam","entity",4,"ngIf"],[1,"w-100-p",3,"settings","options","cam","entity"],["fxLayout","column","fxLayoutAlign","center center",1,"evidence-summary-cell","p-0"],["class","w-100-p ",4,"ngIf"],["class","",4,"ngIf"],["class","noc-no-info",4,"ngIf"],[1,"noc-no-info"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-cell","noc-action-cell"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor","click"],[1,"noc-dropdown-menu"],["entityMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","class","","color","warn",3,"click",4,"ngIf"],["addMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],["evidenceMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["mat-menu-item","","color","warn",1,"",3,"click"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),he(4),W(),Ve(5,qht,2,2,"button",4),G(6,"span",5),he(7),$e(8,"br"),G(9,"a",6),it("click",function(o){return o.stopPropagation()}),he(10),W()(),Ve(11,Xht,1,4,"noctua-inline-editor",7),W(),Ve(12,Qht,2,1,"div",8),Ve(13,e0t,2,1,"div",9),Ve(14,o0t,18,6,"div",10),W()()),2&e&&(K(1),oe("ngClass",Pr(13,a0t,i.activity.displayId===(null==i.camService.currentMatch?null:i.camService.currentMatch.activityDisplayId))),K(1),Yr("fxFlex",i.relationWidth),oe("ngClass",bh(15,s0t,null==i.entity.term?null:i.entity.term.highlight,null==i.entity.term?null:i.entity.term.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==i.entity.term?null:i.entity.term.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),Ti("id",null==i.entity.term?null:i.entity.term.displayId),K(2),Ft(" ",i.entity.label," "),K(1),oe("ngIf",i.entity.canDelete),K(2),Ft(" ",null==i.entity.term?null:i.entity.term.label," "),K(2),Yr("href",null==i.entity.term?null:i.entity.term.url,ir),K(1),Ft(" ",null==i.entity.term?null:i.entity.term.id," "),K(1),oe("ngIf",i.noctuaUserService.user&&i.entity.term&&i.options.editableTerms),K(1),oe("ngIf",i.settings.showEvidence),K(1),oe("ngIf",!i.settings.showEvidence&&i.settings.showEvidenceSummary),K(1),oe("ngIf",i.noctuaUserService.user&&i.options.showMenu))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:initial;min-width:initial;max-width:initial}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{position:relative;width:initial;min-width:initial;max-width:initial;width:250px;margin-bottom:8px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .evidence-summary-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px;text-align:center;font-size:10px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .evidence-summary-cell[_ngcontent-%COMP%] .noc-no-info[_ngcontent-%COMP%]{padding:3px 8px;font-size:10px;font-style:italic;color:#aaa}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}@media screen and (max-width: 1367px){[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:initial;min-width:initial;max-width:initial}}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{background-color:#5872a7;color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px;color:#000;border-radius:5px;border:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover{border:#3b5998 solid 1px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-cell-floating-title[_ngcontent-%COMP%]{color:#3b5998}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-edit-button[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%]:hover .noc-delete-button[_ngcontent-%COMP%]{visibility:visible}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-align:center;height:20px;min-height:20px;max-height:20px;font-size:10px;font-weight:700;padding:2px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.F[_ngcontent-%COMP%]{border:#7cd488 solid 1px;color:#56c765}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.P[_ngcontent-%COMP%]{border:#f4c89c solid 1px;color:#efaf6e}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-aspect-cell[_ngcontent-%COMP%] mat-chip.C[_ngcontent-%COMP%]{border:#d3b5f5 solid 1px;color:#b888ef}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-relation-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-extension-cell[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{visibility:hidden;position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-node[_ngcontent-%COMP%] .noc-entity-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-node.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:dc}}),t})();const c0t=["tree"],l0t=["gpTree"],Wle=function(){return["fas","caret-right"]};function d0t(t,n){1&t&&$e(0,"fa-icon",19),2&t&&oe("icon",ai(1,Wle))}const qle=function(){return["fas","caret-down"]};function u0t(t,n){1&t&&$e(0,"fa-icon",19),2&t&&oe("icon",ai(1,qle))}function h0t(t,n){if(1&t){const e=Nn();G(0,"button",17),it("click",function(){return Ut(e),He().$implicit.toggleExpanded()}),Ve(1,d0t,1,2,"fa-icon",18),Ve(2,u0t,1,2,"fa-icon",18),W()}if(2&t){const e=He().$implicit;K(1),oe("ngIf",null==e?null:e.isCollapsed),K(1),oe("ngIf",null==e?null:e.isExpanded)}}function p0t(t,n){1&t&&$e(0,"div",20)}function f0t(t,n){if(1&t&&$e(0,"noc-activity-form-table-node",21),2&t){const e=He().$implicit,i=He(2);oe("settings",i.gpSettings)("options",i.gpOptions)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}function g0t(t,n){if(1&t&&$e(0,"noc-activity-form-table-node",21),2&t){const e=He().$implicit,i=He(2);oe("settings",i.settings)("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}function m0t(t,n){if(1&t){const e=Nn();G(0,"div",11),Ve(1,h0t,3,2,"button",12),Ve(2,p0t,1,0,"div",13),G(3,"div",14),it("click",function(r){return Ut(e).$implicit.mouseAction("click",r)})("dblclick",function(r){return Ut(e).$implicit.mouseAction("dblClick",r)})("contextmenu",function(r){return Ut(e).$implicit.mouseAction("contextMenu",r)})("treeDrop",function(r){return Ut(e).$implicit.onDrop(r)}),G(4,"div",15),Ve(5,f0t,1,5,"noc-activity-form-table-node",16),Ve(6,g0t,1,5,"noc-activity-form-table-node",16),W()()()}if(2&t){const e=n.$implicit,i=He(2);jo("padding-left",e.getNodePadding()),K(1),oe("ngIf",e.hasChildren),K(1),oe("ngIf",!e.hasChildren),K(1),sr("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),oe("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),K(2),oe("ngIf",(null==e.data.node?null:e.data.node.id)===(null==i.activity.gpNode?null:i.activity.gpNode.id)),K(1),oe("ngIf",(null==e.data.node?null:e.data.node.id)!==(null==i.activity.gpNode?null:i.activity.gpNode.id))}}function _0t(t,n){1&t&&$e(0,"fa-icon",19),2&t&&oe("icon",ai(1,Wle))}function v0t(t,n){1&t&&$e(0,"fa-icon",19),2&t&&oe("icon",ai(1,qle))}function C0t(t,n){if(1&t){const e=Nn();G(0,"button",17),it("click",function(){return Ut(e),He().$implicit.toggleExpanded()}),Ve(1,_0t,1,2,"fa-icon",18),Ve(2,v0t,1,2,"fa-icon",18),W()}if(2&t){const e=He().$implicit;K(1),oe("ngIf",null==e?null:e.isCollapsed),K(1),oe("ngIf",null==e?null:e.isExpanded)}}function b0t(t,n){1&t&&$e(0,"div",20)}function x0t(t,n){if(1&t){const e=Nn();G(0,"div",11),Ve(1,C0t,3,2,"button",12),Ve(2,b0t,1,0,"div",13),G(3,"div",14),it("click",function(r){return Ut(e).$implicit.mouseAction("click",r)})("dblclick",function(r){return Ut(e).$implicit.mouseAction("dblClick",r)})("contextmenu",function(r){return Ut(e).$implicit.mouseAction("contextMenu",r)})("treeDrop",function(r){return Ut(e).$implicit.onDrop(r)}),G(4,"div",15),$e(5,"noc-activity-form-table-node",21),W()()()}if(2&t){const e=n.$implicit,i=He(2);jo("padding-left",e.getNodePadding()),K(1),oe("ngIf",e.hasChildren),K(1),oe("ngIf",!e.hasChildren),K(1),sr("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),oe("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),K(2),oe("settings",i.settings)("options",i.options)("cam",i.cam)("activity",i.activity)("entity",e.data.node)}}const y0t=function(t){return{"noc-selected":t}};function w0t(t,n){if(1&t){const e=Nn();G(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),he(4),W(),$e(5,"span",5),W(),G(6,"div",6)(7,"tree-root",7,8),it("initialized",function(){return Ut(e),He().onGPTreeLoad()}),Ve(9,m0t,7,13,"ng-template",null,9,zp),W()()(),G(11,"div",2)(12,"div",3)(13,"div",4),he(14),W(),$e(15,"span",5),W(),G(16,"div",6)(17,"tree-root",7,10),it("initialized",function(){return Ut(e),He().onTreeLoad()}),Ve(19,x0t,6,16,"ng-template",null,9,zp),W()()()()}if(2&t){const e=He();oe("ngClass",Pr(8,y0t,e.activity.displayId===(null==e.camService.currentMatch?null:e.camService.currentMatch.activityDisplayId))),Ti("id",e.activity.displayId),K(4),Ft(" ",e.annotatedSectionTitle," "),K(3),oe("nodes",e.gpTreeNodes)("options",e.treeOptions),K(7),Ft(" ",e.descriptionSectionTitle," "),K(3),oe("nodes",e.treeNodes)("options",e.treeOptions)}}let Xle=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w){this.camService=e,this._noctuaGraphService=i,this.noctuaCommonMenuService=r,this.noctuaUserService=o,this.noctuaFormConfigService=a,this.noctuaFormDialogService=c,this.noctuaActivityEntityService=u,this.noctuaActivityFormService=f,this.inlineEditorService=w,this.ActivityDisplayType=ru,this.EditorCategory=pa,this.ActivityType=Wi,this.activityTypeOptions=Ht.activityType.options,this.settings=new w_,this.gpSettings=new w_,this.options={},this.gpOptions={},this.optionsDisplay={},this.editableTerms=!1,this.currentMenuEvent={},this.descriptionSectionTitle="Function Description",this.annotatedSectionTitle="Gene Product",this.treeNodes=[],this.treeControl=new FP(E=>E.treeLevel,E=>E.expandable),this.gpTreeNodes=[],this.gpTreeControl=new FP(E=>E.treeLevel,E=>E.expandable),this.treeOptions={allowDrag:!1,allowDrop:!1,getNodeClone:E=>Object.assign(Object.assign({},E.data),{name:`Copy of ${E.data.name}`})},this.dataSource=new lS,this._unsubscribeAll=new z}ngOnChanges(e){}ngOnInit(){var e;this.loadTree(),this.gpOptions=(0,Nt.cloneDeep)(this.options),this.gpOptions.showMenu=this.activity.activityType===Wi.molecule||this.activity.activityType===Wi.proteinComplex,this.activity.activityType===Wi.ccOnly?this.descriptionSectionTitle="Localization Description":this.activity.activityType===Wi.molecule?(this.annotatedSectionTitle="Small Molecule",this.descriptionSectionTitle="Location (optional)"):this.descriptionSectionTitle="Function Description",this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(i=>{!i||(this.settings=i,this.gpSettings=(0,Nt.cloneDeep)(i),this.gpSettings.showEvidence=!1,this.gpSettings.showEvidenceSummary=!1)}),(null===(e=this.options)||void 0===e?void 0:e.editableTerms)&&(this.editableTerms=this.options.editableTerms),this._noctuaGraphService.onCamGraphChanged.pipe(Ln(this._unsubscribeAll)).subscribe(i=>{!i||i.id!==this.cam.id||(this.cam=i,this.activity=i.findActivityById(this.activity.id),this.loadTree())})}ngAfterViewInit(){var e,i;null===(e=this.gpTree)||void 0===e||e.treeModel.filterNodes(r=>{const o=r.data.node;return(null==o?void 0:o.displaySection.id)===Ht.displaySection.gp.id}),null===(i=this.tree)||void 0===i||i.treeModel.filterNodes(r=>{const o=r.data.node;return(null==o?void 0:o.displaySection.id)===Ht.displaySection.fd.id})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadTree(){!this.activity||(this.gpNode=this.activity.getGPNode(),this.optionsDisplay=Object.assign(Object.assign({},this.options),{hideHeader:!0}),this.treeNodes=this.activity.buildTrees(),this.gpTreeNodes=this.activity.buildGPTrees())}onTreeLoad(){var e;null===(e=this.tree)||void 0===e||e.treeModel.expandAll()}onGPTreeLoad(){var e;null===(e=this.gpTree)||void 0===e||e.treeModel.expandAll()}setActivityDisplayType(e){this.activity.activityDisplayType=e}toggleExpand(e){e.expanded=!e.expanded}toggleNodeExpand(e){e.expanded=!e.expanded}displayCamErrors(){const e=this.cam.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(e)}displayActivityErrors(e){const i=e.getViolationDisplayErrors();this.noctuaFormDialogService.openCamErrorsDialog(i)}addEvidence(e){e.predicate.addEvidence();const r={cam:this.cam,activity:this.activity,entity:e,category:pa.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r}),this.noctuaActivityFormService.initializeForm()}cleanId(e){return m4.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(hl),de($c),de(uo),de(lr),de(gl),de(Td),de(ps),de(Em))},t.\u0275cmp=En({type:t,selectors:[["noc-activity-form-table"]],viewQuery:function(e,i){if(1&e&&(fr(c0t,5),fr(l0t,5)),2&e){let r;hi(r=pi())&&(i.tree=r.first),hi(r=pi())&&(i.gpTree=r.first)}},inputs:{cam:"cam",activity:"activity",options:"options"},features:[$r],decls:1,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch","class","w-100-p",3,"ngClass",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["fxFlex",""],[1,"noc-form-section","noc-tree-container"],[3,"nodes","options","initialized"],["gpTree",""],["treeNodeWrapperTemplate",""],["tree",""],["fxLayout","row","fxLayoutAlign","start center",1,"node-wrapper","noc-tree-node"],["mat-icon-button","","class","noc-node-expander-button","color","primary",3,"click",4,"ngIf"],["class","noc-expander-placeholder",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"node-content-wrapper",3,"treeAllowDrop","treeDrag","treeDragEnabled","click","dblclick","contextmenu","treeDrop"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-annotation-row"],["class","w-100-p",3,"settings","options","cam","activity","entity",4,"ngIf"],["mat-icon-button","","color","primary",1,"noc-node-expander-button",3,"click"],[3,"icon",4,"ngIf"],[3,"icon"],[1,"noc-expander-placeholder"],[1,"w-100-p",3,"settings","options","cam","activity","entity"]],template:function(e,i){1&e&&Ve(0,w0t,21,10,"div",0),2&e&&oe("ngIf",i.activity)},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-display-number-cell[_ngcontent-%COMP%]{width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:200px;line-height:12px;height:30px;min-height:30px;max-height:30px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-annotation-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{word-break:break-all}[_nghost-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;padding-left:5px;position:relative;margin-bottom:1px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 2px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%] .noc-cell.noc-relation-cell[_ngcontent-%COMP%]{padding:0 2px 0 16px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;background-color:#fff;font-size:12px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:2px 0;overflow:hidden}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%]{position:relative;width:170px;min-width:170px;max-width:170px;line-height:12px;padding:4px 8px;font-size:12px!important;color:#000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-no-info[_ngcontent-%COMP%]{padding:0;font-size:10px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#777;font-size:10px!important}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-type[_ngcontent-%COMP%]{width:50px;min-width:50px;max-width:50px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-type[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:30px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%]{font-size:10px;color:#555;width:90px;min-width:90px;max-width:90px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-cam-date[_ngcontent-%COMP%] noc-icon[_ngcontent-%COMP%]{color:#777}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;font-size:8px;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:14px;left:-16px;width:25px;height:1px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding:12px 8px 8px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}'],data:{animation:dc}}),t})();function M0t(t,n){if(1&t&&$e(0,"noctua-inline-editor",16),2&t){const e=He(2).index,i=He(2);oe("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.evidence)("evidenceIndex",e)}}const $le=function(t){return{"noc-highlight-modified":t}},SH=function(){return["far","trash-alt"]};function O0t(t,n){if(1&t){const e=Nn();G(0,"div",9)(1,"div",10),he(2," Evidence "),W(),G(3,"span",11),he(4),$e(5,"br"),G(6,"a",12),it("click",function(r){return r.stopPropagation()}),he(7),W()(),G(8,"button",13),it("click",function(){Ut(e);const r=He().$implicit;return He(2).removeEvidence(r)}),$e(9,"fa-icon",14),W(),Ve(10,M0t,1,5,"noctua-inline-editor",15),W()}if(2&t){const e=He().$implicit,i=He(2);oe("ngClass",Pr(6,$le,null==e.evidence?null:e.evidence.modified)),K(4),Zr(null==e.evidence?null:e.evidence.label),K(2),Yr("href",null==e.evidence?null:e.evidence.url,ir),K(1),Ft(" ",null==e.evidence?null:e.evidence.id," "),K(2),oe("icon",ai(8,SH)),K(1),oe("ngIf",i.noctuaUserService.user&&i.options.editableEvidence)}}function S0t(t,n){if(1&t&&(G(0,"span",11),he(1),W()),2&t){const e=He(2).$implicit;K(1),Zr(e.reference)}}function P0t(t,n){if(1&t&&(G(0,"span",11)(1,"a",12),it("click",function(i){return i.stopPropagation()}),he(2),W()()),2&t){const e=He(2).$implicit;K(1),Yr("href",null==e.referenceEntity?null:e.referenceEntity.url,ir),K(1),Ft(" ",e.reference," ")}}function E0t(t,n){if(1&t&&$e(0,"noctua-inline-editor",16),2&t){const e=He(2).index,i=He(2);oe("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.reference)("evidenceIndex",e)}}const T0t=function(t,n,e){return{"noc-highlight-match":t,"noc-highlight-modified":n,"noc-highlight-match-current":e}};function A0t(t,n){if(1&t){const e=Nn();G(0,"div",17)(1,"div",10),he(2," Reference "),W(),G(3,"button",13),it("click",function(){Ut(e);const r=He().$implicit;return He(2).removeReference(r)}),$e(4,"fa-icon",14),W(),Ve(5,S0t,2,1,"span",18),Ve(6,P0t,3,2,"span",18),Ve(7,E0t,1,5,"noctua-inline-editor",15),W()}if(2&t){const e=He().$implicit,i=He(2);oe("ngClass",bh(5,T0t,null==e.referenceEntity?null:e.referenceEntity.highlight,null==e.referenceEntity?null:e.referenceEntity.modified,(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid)&&(null==e.referenceEntity?null:e.referenceEntity.uuid)===(null==i.camService.currentMatch?null:i.camService.currentMatch.uuid))),K(4),oe("icon",ai(9,SH)),K(1),oe("ngIf",!(null!=e.referenceEntity&&e.referenceEntity.url)),K(1),oe("ngIf",null==e.referenceEntity?null:e.referenceEntity.url),K(1),oe("ngIf",i.noctuaUserService.user&&i.options.editableReference)}}function D0t(t,n){if(1&t&&(G(0,"span",11),he(1),W()),2&t){const e=He(2).$implicit;K(1),Zr(e.with)}}function L0t(t,n){if(1&t&&(G(0,"span",11)(1,"a",12),it("click",function(i){return i.stopPropagation()}),he(2),W()()),2&t){const e=He(2).$implicit;K(1),Yr("href",null==e.withEntity?null:e.withEntity.url,ir),K(1),Ft(" ",e.with," ")}}function k0t(t,n){if(1&t&&$e(0,"noctua-inline-editor",16),2&t){const e=He(2).index,i=He(2);oe("cam",i.cam)("activity",i.activity)("entity",i.entity)("category",i.EditorCategory.with)("evidenceIndex",e)}}function I0t(t,n){if(1&t){const e=Nn();G(0,"div",19)(1,"div",10),he(2," With "),W(),G(3,"button",13),it("click",function(){Ut(e);const r=He().$implicit;return He(2).removeWith(r)}),$e(4,"fa-icon",14),W(),Ve(5,D0t,2,1,"span",18),Ve(6,L0t,3,2,"span",18),Ve(7,k0t,1,5,"noctua-inline-editor",15),W()}if(2&t){const e=He().$implicit,i=He(2);oe("ngClass",Pr(5,$le,null==e.withEntity?null:e.withEntity.modified)),K(4),oe("icon",ai(7,SH)),K(1),oe("ngIf",!(null!=e.withEntity&&e.withEntity.url)),K(1),oe("ngIf",null==e.withEntity?null:e.withEntity.url),K(1),oe("ngIf",i.noctuaUserService.user&&i.options.editableWith)}}function N0t(t,n){if(1&t){const e=Nn();G(0,"div",20)(1,"button",21),it("click",function(r){return Ut(e),He(3).updateCurrentMenuEvent(r)}),G(2,"mat-icon"),he(3,"more_vert"),W()(),G(4,"mat-menu",null,22)(6,"button",23),it("click",function(){Ut(e);const r=He(3);return r.addEvidence(r.entity)}),he(7," Add Evidence "),W(),G(8,"button",24),it("click",function(){Ut(e);const r=He().index,o=He(2);return o.removeEvidence(o.entity,r)}),he(9," Remove Evidence "),W()()()}if(2&t){const e=Di(5);K(1),oe("matMenuTriggerFor",e)}}function R0t(t,n){if(1&t&&(G(0,"div",4),Ve(1,O0t,11,9,"div",5),Ve(2,A0t,8,10,"div",6),Ve(3,I0t,8,8,"div",7),Ve(4,N0t,10,1,"div",8),W()),2&t){const e=He(2);K(1),oe("ngIf",e.settings.showEvidenceCode),K(1),oe("ngIf",e.settings.showReference),K(1),oe("ngIf",e.settings.showWith),K(1),oe("ngIf",e.noctuaUserService.user&&e.options.showEvidenceMenu)}}function z0t(t,n){if(1&t&&(G(0,"div",2),Ve(1,R0t,5,4,"div",3),W()),2&t){const e=He();K(1),oe("ngForOf",null==e.entity.predicate?null:e.entity.predicate.evidence)}}function F0t(t,n){if(1&t){const e=Nn();G(0,"button",27),it("click",function(){return Ut(e),He(2).createEvidence()}),he(1," + "),W()}}function H0t(t,n){if(1&t&&(G(0,"div",25),he(1," no evidence present. "),Ve(2,F0t,2,0,"button",26),W()),2&t){const e=He();K(2),oe("ngIf",e.options.showAddEvidenceButton)}}let PH=(()=>{class t{constructor(e,i,r,o,a,c,u,f){this.camService=e,this.noctuaUserService=i,this.confirmDialogService=r,this.noctuaFormDialogService=o,this.noctuaFormConfigService=a,this.noctuaActivityFormService=c,this.inlineEditorService=u,this.noctuaActivityEntityService=f,this.EditorCategory=pa,this.settings=new w_,this.options={},this.currentMenuEvent={},this.unsubscribeAll=new z}ngOnInit(){}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}addEvidence(e){e.predicate.addEvidence();const r={cam:this.cam,activity:this.activity,entity:e,category:pa.evidenceAll,evidenceIndex:e.predicate.evidence.length-1};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,e),this.inlineEditorService.open(this.currentMenuEvent.target,{data:r}),this.noctuaActivityFormService.initializeForm()}createEvidence(){const e=this;this.noctuaFormDialogService.openAddEvidenceDialog(r=>{r&&(this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,this.entity),e.noctuaActivityEntityService.createEvidence(r).then(()=>{e.noctuaFormDialogService.openInfoToast("Evidence successfully added.","OK"),e.noctuaActivityFormService.initializeForm()}))})}removeEvidence(e){const i=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?",`You are about to delete ${e.evidence.label} \n \n ${e.reference} \n \n ${e.with}`,()=>{i.noctuaActivityEntityService.deleteEvidence(e.uuid).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.evidence.label} successfully deleted.`,"OK")})})}removeReference(e){const i=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?",`You are about to delete Reference: ${e.reference}`,()=>{i.noctuaActivityEntityService.deleteEvidenceReference(e.uuid,e.reference).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.reference} successfully deleted.`,"OK")})})}removeWith(e){const i=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?",`You are about to delete With/From: ${e.with}`,()=>{i.noctuaActivityEntityService.deleteEvidenceWith(e.uuid,e.with).then(()=>{i.noctuaFormDialogService.openInfoToast(`${e.with} successfully deleted.`,"OK")})})}updateCurrentMenuEvent(e){this.currentMenuEvent=e}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(uo),de(Q2),de(gl),de(lr),de(ps),de(Em),de(Td))},t.\u0275cmp=En({type:t,selectors:[["noc-evidence-form-table"]],inputs:{settings:"settings",options:"options",cam:"cam",activity:"activity",entity:"entity"},decls:2,vars:2,consts:[["class","noc-evidence-table noctua-form-table w-100-p","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["class","noc-no-info","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-table","noctua-form-table","w-100-p"],["class","h-100-p mb-8","fxLayout","row","fxLayoutAlign","start stretch",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start stretch",1,"h-100-p","mb-8"],["class","noc-evidence-code-cell noc-box-cell","fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-reference-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-with-cell noc-box-cell","fxLayout","column","fxLayoutAlign","start stretch",3,"ngClass",4,"ngIf"],["class","noc-cell noc-action-cell","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-evidence-code-cell","noc-box-cell",3,"ngClass"],[1,"noc-cell-floating-title"],[1,""],["target","_blank",3,"href","click"],["mat-icon-button","","aria-label","Delete Evidence",1,"noc-delete-button",3,"click"],[3,"icon"],["class","noc-edit-button",3,"cam","activity","entity","category","evidenceIndex",4,"ngIf"],[1,"noc-edit-button",3,"cam","activity","entity","category","evidenceIndex"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-reference-cell","noc-box-cell",3,"ngClass"],["class","",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-with-cell","noc-box-cell",3,"ngClass"],["fxLayout","column","fxLayoutAlign","center center",1,"noc-cell","noc-action-cell"],["mat-icon-button","","fxFlex","40px",1,"noc-action-button",3,"matMenuTriggerFor","click"],["evidenceMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["mat-menu-item","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-no-info"],["mat-button","","class","",3,"click",4,"ngIf"],["mat-button","",1,"",3,"click"]],template:function(e,i){1&e&&(Ve(0,z0t,2,1,"div",0),Ve(1,H0t,3,1,"div",1)),2&e&&(oe("ngIf",(null==i.entity.predicate?null:i.entity.predicate.evidence.length)>0),K(1),oe("ngIf",0===i.entity.predicate.evidence.length))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-qualifier[_ngcontent-%COMP%]{padding:5px;width:100%;font-size:12px;text-align:center;border-bottom:1px solid rgba(46,111,154,.3)}[_nghost-%COMP%] p[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px;margin:0}[_nghost-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{padding:20px 10px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-evidence-table-header[_ngcontent-%COMP%] .noc-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;font-size:12px!important;color:#000;border:#aaa solid 1px;margin-left:4px;border-radius:8px;position:relative;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{visibility:hidden;position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-delete-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover{border:#3b5998 solid 1px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover .noc-cell-floating-title[_ngcontent-%COMP%]{color:#3b5998}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover .noc-edit-button[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%]:hover .noc-delete-button[_ngcontent-%COMP%]{visibility:visible}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-box-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-box-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-box-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-evidence-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-evidence-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}[_nghost-%COMP%] .noc-no-info[_ngcontent-%COMP%]{height:100%;width:400px;position:relative;padding:3px 8px;font-size:10px;font-style:italic;color:#aaa}[_nghost-%COMP%] .noc-no-info[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]{position:relative}'],data:{animation:dc}}),t})();function V0t(t,n){if(1&t){const e=Nn();G(0,"div",19)(1,"button",20),it("click",function(){Ut(e);const r=He(2);return r.openActivityForm(r.ActivityType.default)}),G(2,"mat-icon",21),he(3," add "),W(),he(4," Create Activity "),W(),G(5,"button",22)(6,"mat-icon",21),he(7,"arrow_drop_down "),W()(),G(8,"mat-menu",23,24)(10,"a",25),it("click",function(){Ut(e);const r=He(2);return r.openActivityForm(r.ActivityType.bpOnly)}),he(11," Create New BP Annotation "),W(),G(12,"a",25),it("click",function(){Ut(e);const r=He(2);return r.openActivityForm(r.ActivityType.ccOnly)}),he(13," Create New CC Annotation "),W()()()}if(2&t){const e=Di(9);K(5),oe("matMenuTriggerFor",e)}}const Qle=function(){return["fas","pen"]};function B0t(t,n){if(1&t){const e=Nn();G(0,"div",26)(1,"div",27)(2,"strong"),he(3,"Title: "),W(),he(4),W(),G(5,"div",28),it("click",function(){return Ut(e),He(2).openCamForm()}),$e(6,"fa-icon",6),W()()}if(2&t){const e=He(2);K(4),Ft("",e.cam.title," "),K(2),oe("icon",ai(2,Qle))}}const G0t=function(t,n,e){return{"noc-development":t,"noc-production":n,"noc-review":e}},Y0t=function(){return["fas","tasks"]};function U0t(t,n){if(1&t){const e=Nn();G(0,"div",29)(1,"mat-chip",30)(2,"div",31),$e(3,"fa-icon",6),W(),G(4,"div",32),he(5),W(),G(6,"div",28),it("click",function(){return Ut(e),He(2).openCamForm()}),$e(7,"fa-icon",6),W()()()}if(2&t){const e=He(2);K(1),oe("ngClass",bh(4,G0t,"development"===e.cam.state.name,"production"===e.cam.state.name,"review"===e.cam.state.name)),K(2),oe("icon",ai(8,Y0t)),K(2),Ft(" ",e.cam.state.label," "),K(2),oe("icon",ai(9,Qle))}}const j0t=function(){return["fas","calendar-day"]};function W0t(t,n){if(1&t){const e=Nn();G(0,"div",33)(1,"mat-chip",34),it("click",function(){return Ut(e),He(2).openCamForm()}),G(2,"div",31),$e(3,"fa-icon",6),W(),G(4,"div",32),he(5),W()()()}if(2&t){const e=He(2);K(3),oe("icon",ai(2,j0t)),K(2),Ft(" ",e.cam.date," ")}}const q0t=function(){return["fas","user"]};function X0t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",35),it("click",function(){return Ut(e),He(2).openCamForm()}),G(1,"div",31),$e(2,"fa-icon",6),W(),G(3,"div",32),he(4),W()()}if(2&t){const e=n.$implicit;K(2),oe("icon",ai(2,q0t)),K(2),Ft(" ",e.name," ")}}const $0t=function(){return["fas","comment"]},Q0t=function(){return["fas","clone"]},K0t=function(){return["fas","cog"]};function Z0t(t,n){if(1&t){const e=Nn();G(0,"div",1),Ve(1,V0t,14,1,"div",2),Ve(2,B0t,7,3,"div",3),G(3,"div",4)(4,"button",5),it("click",function(){return Ut(e),He().openCamForm()}),$e(5,"fa-icon",6),G(6,"div",7),he(7),W()()(),G(8,"div",8)(9,"button",9),it("click",function(){return Ut(e),He().openCopyModel()}),$e(10,"fa-icon",6),W()(),Ve(11,U0t,8,10,"div",10),Ve(12,W0t,6,3,"div",11),G(13,"div",12)(14,"mat-chip-list"),Ve(15,X0t,5,3,"mat-chip",13),W()(),G(16,"div",14)(17,"button",15),he(18," EXPORT AS "),W(),G(19,"mat-menu",null,16)(21,"a",17),he(22," GPAD "),W(),G(23,"a",17),he(24," OWL "),W()()(),G(25,"button",18),it("click",function(){return Ut(e),He().openSettings()}),$e(26,"fa-icon",6),W()()}if(2&t){const e=Di(20),i=He();K(1),oe("ngIf",i.noctuaCommonMenuService.selectedMiddlePanel===i.RightPanel.camTable),K(1),oe("ngIf",i.cam.title),K(2),Yr("matTooltip",null==i.cam?null:i.cam.comment),oe("matTooltipPosition","after")("matTooltipShowDelay",1e3),K(1),oe("icon",ai(17,$0t)),K(2),Ft(" ",null==i.cam?null:i.cam.comments.length," "),K(2),oe("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(18,Q0t)),K(1),oe("ngIf",i.cam.state),K(1),oe("ngIf",i.cam.date),K(3),oe("ngForOf",i.cam.contributors),K(2),oe("matMenuTriggerFor",e),K(4),oe("href",null==i.cam||null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.gpadUrl,ir),K(2),oe("href",null==i.cam||null==i.cam.model||null==i.cam.model.modelInfo?null:i.cam.model.modelInfo.owlUrl,ir),K(3),oe("icon",ai(19,K0t))}}let Kle=(()=>{class t{constructor(e,i,r,o){this.camService=e,this.noctuaActivityFormService=i,this.noctuaFormConfigService=r,this.noctuaCommonMenuService=o,this.ActivityType=Wi,this.LeftPanel=$2,this.MiddlePanel=Bu,this.RightPanel=_3,this._unsubscribeAll=new z}ngOnInit(){}openGraph(){this.noctuaCommonMenuService.closeLeftDrawer(),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Bu.camGraph)}openTable(){this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Bu.camTable)}openPreview(){this.noctuaCommonMenuService.selectMiddlePanel(Bu.camPreview)}openLeftDrawer(e){this.noctuaCommonMenuService.selectLeftPanel(e)}selectMiddlePanel(e){this.noctuaCommonMenuService.selectMiddlePanel(e)}openRightDrawer(e){this.noctuaCommonMenuService.selectRightPanel(e),this.noctuaCommonMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaCommonMenuService.toggleLeftDrawer(e)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openSettings(){this.openRightDrawer(_3.graphSettings)}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel($2.camForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel($2.activityForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCopyModel(){this.noctuaCommonMenuService.selectLeftPanel($2.copyModel),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(ps),de(lr),de($c))},t.\u0275cmp=En({type:t,selectors:[["noc-cam-toolbar"]],inputs:{cam:"cam",camToolbarOptions:["options","camToolbarOptions"]},decls:1,vars:1,consts:[["class","noc-cam-heading","fxFlex","1 1 auto","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","1 1 auto","fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-heading"],["class","","fxFlex","180px",4,"ngIf"],["class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],[1,"noc-br","noc-bl","px-4"],["mat-icon-button","",1,"noc-toolbar-button","noc-rounded-button",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click"],[3,"icon"],[1,"noc-comments-badge"],[1,"noc-br","px-4"],["mat-icon-button","","color","","matTooltip","Make a copy of this model",1,"noc-toolbar-button","noc-rounded-button",3,"matTooltipPosition","matTooltipShowDelay","click"],["class","noc-model-state","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-date noc-br mr-8","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["class","noc-table-chip noc-user-chip","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxFlex","115px","fxLayout","row","fxLayoutAlign","start center"],["mat-stroked-button","","color","primary",1,"noc-edit-button","noc-rounded-button","noc-sm",3,"matMenuTriggerFor"],["exportMenu","matMenu"],["target","_blank","mat-menu-item","",3,"href"],["mat-icon-button","","color","primary",1,"noc-icon-button",3,"click"],["fxFlex","180px",1,""],["mat-flat-button","","color","primary",1,"noc-rounded-button","noc-half-button","noc-r","noc-sm",3,"click"],[1,""],["mat-flat-button","","fxFlex","35px","color","primary",1,"noc-rounded-button","noc-half-button","noc-l","noc-sm","mr-8","p-0",3,"matMenuTriggerFor"],["xPosition","before"],["createOptions","matMenu"],["mat-menu-item","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],[1,"text-truncate","pr-8"],[1,"noc-icon-action",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-model-state"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-state-chip",3,"ngClass"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",1,"noc-date","noc-br","mr-8"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-date-chip",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-user-chip",3,"click"]],template:function(e,i){1&e&&Ve(0,Z0t,27,20,"div",0),2&e&&oe("ngIf",i.cam)},directives:[er,Vr,Lr,kr,Er,Mo,Zl,T1,sl,ks,Jl,wd,Qa,ec,z6,vo],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] noc-cam-table[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] noc-activity-connector[_ngcontent-%COMP%]{display:block;width:600px;min-width:600px;max-width:600px}[_nghost-%COMP%] noc-graph-settings[_ngcontent-%COMP%]{display:block;width:500px;min-width:500px;max-width:500px}[_nghost-%COMP%] noc-graph-activity-table[_ngcontent-%COMP%]{display:block;min-width:400px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-not-loggedin[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#e5c2c2;font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#fff;font-size:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]{font-size:18px;color:#5872a7}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]:hover{font-size:20px;color:#3b5998}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;margin-right:5px;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;min-width:28px;max-width:28px;height:28px;min-height:28px;max-height:28px;color:#798fb84d}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#555}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}']}),t})();const J0t=["tree"],ept=function(){return["fas","caret-right"]};function tpt(t,n){1&t&&$e(0,"fa-icon",19),2&t&&oe("icon",ai(1,ept))}const npt=function(){return["fas","caret-down"]};function ipt(t,n){1&t&&$e(0,"fa-icon",19),2&t&&oe("icon",ai(1,npt))}function rpt(t,n){if(1&t){const e=Nn();G(0,"button",17),it("click",function(){return Ut(e),He().$implicit.toggleExpanded()}),Ve(1,tpt,1,2,"fa-icon",18),Ve(2,ipt,1,2,"fa-icon",18),W()}if(2&t){const e=He().$implicit;K(1),oe("ngIf",null==e?null:e.isCollapsed),K(1),oe("ngIf",null==e?null:e.isExpanded)}}function opt(t,n){1&t&&$e(0,"div",20)}function apt(t,n){if(1&t){const e=Nn();G(0,"div",21)(1,"div"),he(2),W(),$e(3,"span",3),G(4,"div",22),it("click",function(){Ut(e);const r=He().$implicit;return He().openSearch(r.data)}),he(5),W()()}if(2&t){const e=He().$implicit;K(2),Ft(" ",e.data.label," "),K(3),Ft(" ",e.data.frequency," ")}}const vE=function(){return["fas","info-circle"]},spt=function(){return["fas","bars"]};function cpt(t,n){if(1&t){const e=Nn();Qr(0),G(1,"div",26),it("click",function(){Ut(e);const r=He(2).$implicit;return He().search(r.data)}),he(2),W(),$e(3,"span",3),G(4,"div",27),it("click",function(){Ut(e);const r=He(2).$implicit;return He().openSearch(r.data)}),he(5),W(),G(6,"div",28),it("click",function(){Ut(e);const r=He(2).$implicit;return He().openTermDetail(r.data)}),$e(7,"fa-icon",19),W(),G(8,"button",29),$e(9,"fa-icon",19),W(),G(10,"mat-menu",30,31)(12,"button",32),it("click",function(){Ut(e);const r=He(2).$implicit;return He().openSearch(r.data)}),he(13," Find in Model "),W(),G(14,"button",32),it("click",function(){Ut(e);const r=He(2).$implicit;return He().searchModels(r.data)}),he(15," Search Models "),W(),G(16,"button",32),it("click",function(){Ut(e);const r=He(2).$implicit;return He().searchModelsByContributor(r.data)}),he(17," Search My Models "),W()(),Kr()}if(2&t){const e=Di(11),i=He(2).$implicit;K(2),Ft(" ",null==i.data.term?null:i.data.term.label," "),K(3),Ft(" ",i.data.frequency," "),K(2),oe("icon",ai(5,vE)),K(1),oe("matMenuTriggerFor",e),K(1),oe("icon",ai(6,spt))}}function lpt(t,n){if(1&t){const e=Nn();Qr(0),G(1,"div",33)(2,"div",34),he(3),W(),G(4,"div",35)(5,"a",36),it("click",function(r){return r.stopPropagation()}),he(6),W()(),G(7,"div",35),he(8),W()(),G(9,"div",27),it("click",function(){Ut(e);const r=He(2).$implicit;return He().openSearch(r.data)}),he(10),W(),G(11,"div",28),it("click",function(){Ut(e);const r=He(2).$implicit;return He().openTermDetail(r.data)}),$e(12,"fa-icon",19),W(),Kr()}if(2&t){const e=He(2).$implicit;K(3),Ft(" ",null==e.data.evidence?null:e.data.evidence.label," "),K(2),Yr("href",null==e.data.referenceEntity?null:e.data.referenceEntity.url,ir),K(1),Ft(" ",null==e.data.referenceEntity?null:e.data.referenceEntity.label," "),K(2),Ft(" ",null==e.data.withEntity?null:e.data.withEntity.label," "),K(2),Ft(" ",e.data.frequency," "),K(2),oe("icon",ai(6,vE))}}function dpt(t,n){if(1&t){const e=Nn();Qr(0),G(1,"div",26),it("click",function(){Ut(e);const r=He(2).$implicit;return He().search(r.data)}),he(2),W(),$e(3,"span",3),G(4,"div",27),it("click",function(){Ut(e);const r=He(2).$implicit;return He().openSearch(r.data)}),he(5),W(),G(6,"div",28),it("click",function(){Ut(e);const r=He(2).$implicit;return He().openTermDetail(r.data)}),$e(7,"fa-icon",19),W(),Kr()}if(2&t){const e=He(2).$implicit;K(2),Ft(" ",e.data.label," "),K(3),Ft(" ",e.data.frequency," "),K(2),oe("icon",ai(3,vE))}}function upt(t,n){if(1&t){const e=Nn();Qr(0),G(1,"div",26),it("click",function(){Ut(e);const r=He(2).$implicit;return He().search(r.data)}),he(2),W(),$e(3,"span",3),G(4,"div",27),it("click",function(){Ut(e);const r=He(2).$implicit;return He().openSearch(r.data)}),he(5),W(),G(6,"div",28),it("click",function(){Ut(e);const r=He(2).$implicit;return He().openTermDetail(r.data)}),$e(7,"fa-icon",19),W(),Kr()}if(2&t){const e=He(2).$implicit;K(2),Ft(" ",e.data.name," "),K(3),Ft(" ",e.data.frequency," "),K(2),oe("icon",ai(3,vE))}}function hpt(t,n){if(1&t){const e=Nn();Qr(0),G(1,"div",33)(2,"div",37),he(3),W(),G(4,"div",35)(5,"a",36),it("click",function(r){return r.stopPropagation()}),he(6),W()(),G(7,"div",38)(8,"mat-icon",39),he(9,"person"),W(),G(10,"span",3),he(11),W()(),G(12,"div",40)(13,"mat-icon",39),he(14,"date_range"),W(),G(15,"span"),he(16),W()()(),G(17,"div",27),it("click",function(){Ut(e);const r=He(2).$implicit;return He().openSearch(r.data)}),he(18),W(),Kr()}if(2&t){const e=He(2).$implicit;K(3),Ft(" ",e.data.title," "),K(2),Yr("href",e.data.link,ir),K(1),Ft(" ",e.data.id," "),K(5),Zr(e.data.author),K(5),Zr(e.data.date),K(2),Ft(" ",e.data.frequency," ")}}function ppt(t,n){if(1&t&&(G(0,"div",23),Qr(1,24),Ve(2,cpt,18,7,"ng-container",25),Ve(3,lpt,13,7,"ng-container",25),Ve(4,dpt,8,4,"ng-container",25),Ve(5,upt,8,4,"ng-container",25),Ve(6,hpt,19,6,"ng-container",25),Kr(),W()),2&t){const e=He().$implicit,i=He();K(1),oe("ngSwitch",e.data.entityType),K(1),oe("ngSwitchCase",i.EntityType.ACTIVITY_NODE),K(1),oe("ngSwitchCase",i.EntityType.EVIDENCE),K(1),oe("ngSwitchCase",i.EntityType.ENTITY),K(1),oe("ngSwitchCase",i.EntityType.CONTRIBUTOR),K(1),oe("ngSwitchCase",i.EntityType.ARTICLE)}}function fpt(t,n){if(1&t){const e=Nn();G(0,"div",11),Ve(1,rpt,3,2,"button",12),Ve(2,opt,1,0,"div",13),G(3,"div",14),it("click",function(r){return Ut(e).$implicit.mouseAction("click",r)})("dblclick",function(r){return Ut(e).$implicit.mouseAction("dblClick",r)})("contextmenu",function(r){return Ut(e).$implicit.mouseAction("contextMenu",r)})("treeDrop",function(r){return Ut(e).$implicit.onDrop(r)}),Ve(4,apt,6,2,"div",15),Ve(5,ppt,7,6,"div",16),W()()}if(2&t){const e=n.$implicit;jo("padding-left",e.getNodePadding()),K(1),oe("ngIf",e.hasChildren),K(1),oe("ngIf",!e.hasChildren),K(1),sr("node-content-wrapper-active",e.isActive)("node-content-wrapper-focused",e.isFocused),oe("treeAllowDrop",e.allowDrop)("treeDrag",e)("treeDragEnabled",e.allowDrag()),K(1),oe("ngIf",e.data.isCategory),K(1),oe("ngIf",!e.data.isCategory)}}let gpt=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E){this.noctuaLookupService=e,this._noctuaGraphService=i,this.noctuaCommonMenuService=r,this.camService=o,this.noctuaSearchDialogService=a,this.noctuaUserService=c,this.noctuaReviewSearchService=u,this.noctuaSearchMenuService=f,this.noctuaSearchService=w,this.noctuaFormConfigService=E,this.MiddlePanel=Wo,this.EntityType=G0,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.treeOptions={allowDrag:!1,allowDrop:!1},this._unsubscribeAll=new z}ngOnInit(){this._noctuaGraphService.onCamGraphChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{if(!e)return;this.cam=e,this.termsSummary=this._noctuaGraphService.getTerms(this.cam.graph),this.treeNodes=this.camService.buildTermsTree(this.termsSummary);const i=this.termsSummary.papers.nodes.map(r=>Rl.getReferenceNumber(r.id));this.noctuaLookupService.addPubmedInfos(i)}),this.noctuaLookupService.onArticleCacheReady.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||this.termsSummary.papers.nodes.forEach(i=>{const r=this.noctuaLookupService.articleCache[i.id];r&&(i.title=r.title,i.link=r.link,i.author=r.author,i.date=r.date)})})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openSearch(e){this.noctuaLookupService.getTermDetail(e.term.id).pipe(Ln(this._unsubscribeAll)).subscribe(i=>{!i||(this.noctuaReviewSearchService.onCamTermSearch.next(i),this.noctuaCommonMenuService.selectLeftPanel(k1.findReplace),this.noctuaCommonMenuService.openLeftDrawer())})}search(e){this.noctuaReviewSearchService.searchCriteria.terms=[e.term],this.noctuaReviewSearchService.updateSearch()}searchModels(e){const i=new N1;i.terms=[e.term];const r=`${lo.noctuaLandingPageUrl}?${i.build()}`;window.open(r,"_blank")}searchModelsByContributor(e){const i=new N1;i.terms=[e.term],i.contributors=[this.noctuaUserService.user];const r=`${lo.noctuaLandingPageUrl}?${i.build()}`;window.open(r,"_blank")}openTermDetail(e){this.noctuaSearchService.onDetailTermChanged.next(e),this.noctuaCommonMenuService.selectRightPanel(y_.termDetail),this.noctuaCommonMenuService.openRightDrawer()}onTreeLoad(){}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(X2),de(hl),de($c),de(Zo),de(C3),de(uo),de(z1),de(Hc),de(R1),de(lr))},t.\u0275cmp=En({type:t,selectors:[["noc-cam-terms"]],viewQuery:function(e,i){if(1&e&&fr(J0t,5),2&e){let r;hi(r=pi())&&(i.tree=r.first)}},inputs:{panelDrawer:"panelDrawer"},decls:16,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],[1,"noc-tree-container"],[1,"noc-tree"],[3,"nodes","options","initialized"],["tree",""],["treeNodeWrapperTemplate",""],["fxLayout","row","fxLayoutAlign","start center",1,"node-wrapper","noc-tree-node"],["mat-icon-button","","class","noc-node-expander-button","color","primary",3,"click",4,"ngIf"],["class","noc-expander-placeholder",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"node-content-wrapper",3,"treeAllowDrop","treeDrag","treeDragEnabled","click","dblclick","contextmenu","treeDrop"],["class","noc-term-row noc-category-row","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-term-row","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["mat-icon-button","","color","primary",1,"noc-node-expander-button",3,"click"],[3,"icon",4,"ngIf"],[3,"icon"],[1,"noc-expander-placeholder"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-term-row","noc-category-row"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-aspect-badge",3,"click"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-term-row"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"noc-title",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-badge",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-icon",3,"click"],["mat-icon-button","",1,"noc-icon-button",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["optionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["fxFlex","","fxLayout","column","fxLayoutAlign","start stretch"],[1,"noc-title"],[1,"noc-subtitle"],["target","_blank",3,"href","click"],[1,"noc-article-title"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-article-author"],[1,"s-16","mr-4"],[1,"noc-article-date"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Terms"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," CLOSE "),W()(),G(9,"div",5)(10,"div",6)(11,"div",7)(12,"tree-root",8,9),it("initialized",function(){return i.onTreeLoad()}),Ve(14,fpt,6,13,"ng-template",null,10,zp),W()()()()()),2&e&&(K(12),oe("nodes",i.treeNodes)("options",i.treeOptions))},directives:[Lr,kr,Vr,Er,Mo,Fa,pF,er,ks,IP,XC,V2,Ou,Zl,T1,sl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:380px;min-width:380px;max-width:380px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 30px)}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%]{position:relative;padding:12px 8px;width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-cell-label[_ngcontent-%COMP%]{position:relative;width:100%;min-width:100%;max-width:100%;height:20px;min-height:20px;max-height:20px;padding:4px 10px 4px 5px;font-size:10px;color:#3b5998;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree[_ngcontent-%COMP%] .node-content-wrapper[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%]{font-size:12px;color:#000}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-node-expander-button[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;line-height:14px;background-color:#fff}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-expander-placeholder[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-icon-button[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;line-height:25px;color:#aaa}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-tree-icon[_ngcontent-%COMP%]{color:#000;font-size:14px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-subtitle[_ngcontent-%COMP%]{font-size:10px;color:#777}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-article-title[_ngcontent-%COMP%]{font-size:10px;max-height:60px;overflow:hidden}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-article-author[_ngcontent-%COMP%]{font-size:10px;max-height:60px;color:#777;overflow:hidden}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-aspect-badge[_ngcontent-%COMP%]{margin:2px 5px;width:20px;min-width:20px;max-width:20px;color:#777;border-radius:6px;font-size:8px;font-weight:700;border:#000 solid 1px;border-top:none;border-bottom:none}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-aspect-badge[_ngcontent-%COMP%]{margin:2px 5px;width:30px;min-width:30px;max-width:30px;color:#777;border-radius:6px;font-size:10px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-term-row[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;color:#777}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%] .noc-category-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px}[_nghost-%COMP%] .noc-tree-container[_ngcontent-%COMP%] .noc-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000001a}[_nghost-%COMP%] .noc-tree-container.noc-selected[_ngcontent-%COMP%]{background-color:#e1f5fe4d}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();const mpt=function(){return["fas","info-circle"]},_pt=function(){return["fas","bars"]};function vpt(t,n){if(1&t){const e=Nn();G(0,"div",16)(1,"div",17)(2,"div",18),he(3),W(),$e(4,"span",4),G(5,"div",19),it("click",function(){const o=Ut(e).$implicit;return He(3).loadTerm(o)}),$e(6,"fa-icon",20),W(),G(7,"button",21),$e(8,"fa-icon",20),W(),G(9,"mat-menu",22,23)(11,"button",24),it("click",function(){const o=Ut(e).$implicit;return He(3).openSearchReplace(o)}),he(12," Find/Replace in Model "),W(),G(13,"button",24),it("click",function(){const o=Ut(e).$implicit;return He(3).searchModels(o)}),he(14," Search Models "),W(),G(15,"button",24),it("click",function(){const o=Ut(e).$implicit;return He(3).searchModelsByContributor(o)}),he(16," Search My Models "),W()()()()}if(2&t){const e=n.$implicit,i=Di(10);K(3),Ft(" Replaced By ",e," "),K(3),oe("icon",ai(4,mpt)),K(1),oe("matMenuTriggerFor",i),K(1),oe("icon",ai(5,_pt))}}function Cpt(t,n){if(1&t&&(G(0,"div",10),Ve(1,vpt,17,6,"div",15),W()),2&t){const e=He(2);K(1),oe("ngForOf",e.termDetail.replacedBy)}}function bpt(t,n){if(1&t&&(G(0,"div",13)(1,"div",9),he(2," Term Is Obsolete "),W(),Ve(3,Cpt,2,1,"div",14),W()),2&t){const e=He();K(3),oe("ngIf",e.termDetail.replacedBy)}}function xpt(t,n){if(1&t){const e=Nn();G(0,"div"),he(1),G(2,"small"),he(3),W(),G(4,"a",25),it("click",function(){const o=Ut(e).$implicit;return He().loadTerm(o.id)}),he(5," View "),W()()}if(2&t){const e=n.$implicit;K(1),Ft(" ",e.label,""),K(2),Ft("(",e.id,")")}}let ypt=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w){this.noctuaLookupService=e,this.noctuaCommonMenuService=i,this.camService=r,this.noctuaSearchDialogService=o,this.noctuaUserService=a,this.noctuaReviewSearchService=c,this.noctuaSearchMenuService=u,this.noctuaSearchService=f,this.noctuaFormConfigService=w,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.termDetail={},this._unsubscribeAll=new z}ngOnInit(){this.noctuaSearchService.onDetailTermChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||this.loadTerm(e.term.id)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadTerm(e){this.noctuaLookupService.getTermDetail(e).pipe(Ln(this._unsubscribeAll)).subscribe(i=>{this.termDetail=i})}search(e){this.noctuaReviewSearchService.searchCriteria.terms=[{id:e}],this.noctuaReviewSearchService.updateSearch()}openSearchReplace(e){this.noctuaLookupService.getTermDetail(this.termDetail.id).pipe(Ln(this._unsubscribeAll)).subscribe(i=>{!i||(this.noctuaReviewSearchService.onCamTermSearch.next(i),this.noctuaCommonMenuService.selectLeftPanel(k1.findReplace),this.noctuaCommonMenuService.openLeftDrawer())}),this.noctuaLookupService.getTermDetail(e).pipe(Ln(this._unsubscribeAll)).subscribe(i=>{!i||this.noctuaReviewSearchService.onCamReplaceTermSearch.next(i)})}searchModels(e){const i=new N1;i.terms=[e.term];const r=`${lo.noctuaLandingPageUrl}?${i.build()}`;window.open(r,"_blank")}searchModelsByContributor(e){const i=new N1;i.terms=[e.term],i.contributors=[this.noctuaUserService.user];const r=`${lo.noctuaLandingPageUrl}?${i.build()}`;window.open(r,"_blank")}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(X2),de($c),de(Zo),de(C3),de(uo),de(z1),de(Hc),de(R1),de(lr))},t.\u0275cmp=En({type:t,selectors:[["noc-term-detail"]],inputs:{panelDrawer:"panelDrawer"},decls:30,vars:5,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-header"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-header","w-100-p"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-item-details"],["class","noc-section-row alert alert-danger",4,"ngIf"],[1,"noc-section-row"],[1,"noc-title"],[1,"noc-description"],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],[1,"noc-section-row","alert","alert-danger"],["class","noc-description",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start start",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start start"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-term-row"],[1,""],["fxLayout","row","fxLayoutAlign","center center",1,"noc-icon",3,"click"],[3,"icon"],["mat-icon-button","",1,"noc-icon-button",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["optionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],[3,"click"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),he(4," Term Details"),W(),$e(5,"span",4),G(6,"button",5),it("click",function(){return i.close()}),G(7,"mat-icon"),he(8,"close"),W(),he(9," CLOSE "),W()()(),G(10,"div",6),Ve(11,bpt,4,1,"div",7),G(12,"div",8)(13,"div",9),he(14," Term "),W(),G(15,"div",10),he(16),G(17,"small"),he(18),W()()(),G(19,"div",8)(20,"div",9),he(21," Definition "),W(),G(22,"div",10),he(23),W()(),G(24,"div",8)(25,"div",9),he(26," Is A Type Of "),W(),G(27,"div",10),Ve(28,xpt,6,2,"div",11),W()()(),$e(29,"div",12),W()),2&e&&(K(11),oe("ngIf",i.termDetail.isObsolete),K(5),Ft(" ",i.termDetail.label," "),K(2),Ft("(",i.termDetail.id,")"),K(5),Ft(" ",i.termDetail.description," "),K(5),oe("ngForOf",i.termDetail.rootTypes))},directives:[Lr,kr,Vr,Er,Mo,Fa,er,vo,ks,Zl,T1,sl],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fbf9de;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding:24px 8 100px 0;min-height:calc(100% - 330px)}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%]{padding:12px 8px;background-color:#faf9e9}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:transparent;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;z-index:10001}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-header-title[_ngcontent-%COMP%]{max-width:200px;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:10px 8px}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:transparent;border-top:1px solid #ccc;z-index:10002;box-shadow:none}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%]{padding:10px 0}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-bottom:8px;font-weight:700;font-size:14px;text-transform:uppercase}[_nghost-%COMP%] .noc-item-details[_ngcontent-%COMP%] .noc-section-row[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();const wpt=["editorDropdownTrigger"];let o8=(()=>{class t{constructor(e,i,r){this.inlineEditorService=e,this.camService=i,this.noctuaActivityEntityService=r,this.evidenceIndex=0,this._unsubscribeAll=new z}ngOnInit(){}openEditorDropdown(e){const i=(0,Nt.cloneDeep)(this.entity),r={cam:this.cam,activity:this.activity,entity:i,category:this.category,evidenceIndex:this.evidenceIndex};this.camService.onCamChanged.next(this.cam),this.camService.activity=this.activity,this.noctuaActivityEntityService.initializeForm(this.activity,i),this.inlineEditorService.open(e.target,{data:r})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Em),de(Zo),de(Td))},t.\u0275cmp=En({type:t,selectors:[["noctua-inline-editor"]],viewQuery:function(e,i){if(1&e&&fr(wpt,5,gi),2&e){let r;hi(r=pi())&&(i.editorDropdownTrigger=r.first)}},inputs:{cam:"cam",activity:"activity",entity:"entity",category:"category",evidenceIndex:"evidenceIndex"},decls:4,vars:0,consts:[["mat-icon-button","",1,"noc-trigger-button",3,"click"],["editorDropdownTrigger",""],[1,"s-12","secondary-text"]],template:function(e,i){1&e&&(G(0,"button",0,1),it("click",function(o){return i.openEditorDropdown(o)}),G(2,"mat-icon",2),he(3,"edit"),W()())},directives:[Er,Mo],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}[_nghost-%COMP%] .noc-trigger-button[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;line-height:15px;background-color:#039be51a;border-radius:0}[_nghost-%COMP%] .noc-trigger-button[_ngcontent-%COMP%]:hover{background-color:#039be5}[_nghost-%COMP%] .noc-trigger-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#fff}']}),t})();const Mpt=[{path:"f",component:zae}];let Fm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({providers:[gl],imports:[[A1,fF,ta,G2.forChild(Mpt),Ert,dse,eb,jht,IO,Nu,RO,zO,BO,Vv,R6,Kp,FO,Gv,WO,qO,QO,bd,em,Wv,cS,Uv,btt,Zat]]}),t})();vs(zae,[Lr,kr,Er,Jl,Qa,ec,Zl,ks,T1,sl,er,Vr,Kle,Jg,Zg,Tse,V2,Ou,DF,LF,BP,xse,gpt,pst,Xp,Fa,QC,ypt],[]),vs(BP,[U2,Il,Lr,kr,al,Tse,V2,Ou,Vr,Er,Mo,Fa,er,vo,$f,om,Gnt,Jd,Ru,Dh,V6,E1,o2,xd],[]),vs(QC,[er,Lr,kr,Er,Zl,ks,T1,vo,sl,wd,Vr,Mo,Qa,ec,cse,gse,_se,e3],[]),vs(nse,[er,BP,bit],[]),vs(cse,[Qa,ec,Lr,kr,Vr,Er,er,ks,o8,wd,vo,ZC],[]),vs(_se,[Lr,kr,Qa,ec,Vr,Er,er,ks,wd,OF,yF,xF,SF,wF,ZC],[]),vs(hse,[er,Lr,kr,vo,Vr,Qa,ec,o8],[]),vs(gse,[Lr,kr,Qa,ec,Vr,Er,er,ks,Jl,wd,Zl,Mo,T1,sl,pF,IP,XC,o8,ZC],[]),vs(ZC,[Lr,kr,Qa,ec,er,Vr,o8,wd,hse,Er,Zl,Mo,T1,sl,vo],[]),vs(Xle,[er,Lr,kr,Qa,ec,Vr,pF,Er,ks,IP,XC,jle],[]),vs(jle,[Lr,kr,Qa,ec,Vr,er,Er,ks,o8,PH,Zl,Mo,T1,sl,vo],[]),vs(PH,[er,Lr,kr,vo,Vr,Qa,ec,Er,ks,o8,Zl,Mo,T1,sl],[]),v(23652);var p2=v(71066),rs=v(58259);const{round:Opt,floor:Spt,PI:Zle}=Math,Ppt={linear:function(t,n,e){return(e-t[0])/(t[1]-t[0])*(n[1]-n[0])+n[0]||0}},ep=function(t){return t%360+(t<0?360:0)},Hm=function(t,n){return n*Opt(t/n)},CE=function(t){return 180*t/Zle%360},Nd=function(t,n){return(t=(n=n||!1)?t:t%360)*Zle/180},EH=function(t,n){if(void 0===n)n=void 0===t?1:t,t=0;else if(ni||new pr(t,e).length()>i)},divideAt:function(t){var n=this.pointAt(t);return[new pr(this.start,n),new pr(n,this.end)]},divideAtLength:function(t){var n=this.pointAtLength(t);return[new pr(this.start,n),new pr(n,this.end)]},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.end.x===t.end.x&&this.end.y===t.end.y},intersect:function(t,n){if(t&&t.intersectionWithLine){var e=t.intersectionWithLine(this,n);return e&&t instanceof pr&&(e=e[0]),e}return null},intersectionWithLine:function(t){var n=new an(this.end.x-this.start.x,this.end.y-this.start.y),e=new an(t.end.x-t.start.x,t.end.y-t.start.y),i=n.x*e.y-n.y*e.x,r=new an(t.start.x-this.start.x,t.start.y-this.start.y),o=r.x*e.y-r.y*e.x,a=r.x*n.y-r.y*n.x;if(0===i||o*i<0||a*i<0)return null;if(i>0){if(o>i||a>i)return null}else if(o=1?e.clone():n.lerp(e,t)},pointAtLength:function(t){var n=this.start,e=this.end,i=!0;t<0&&(i=!1,t=-t);var r=this.length();return t>=r?i?e.clone():n.clone():this.pointAt((i?t:r-t)/r)},pointOffset:function(t){t=new an(t);var n=this.start,e=this.end;return((e.x-n.x)*(t.y-n.y)-(e.y-n.y)*(t.x-n.x))/this.length()},rotate:function(t,n){return this.start.rotate(t,n),this.end.rotate(t,n),this},round:function(t){return this.start.round(t),this.end.round(t),this},scale:function(t,n,e){return this.start.scale(t,n,e),this.end.scale(t,n,e),this},setLength:function(t){var n=this.length();if(!n)return this;var e=t/n;return this.scale(e,e,this.start)},squaredLength:function(){return AH(this.start,this.end)},tangentAt:function(t){if(!this.isDifferentiable())return null;var n=this.start,e=this.end,i=this.pointAt(t),r=new pr(n,e);return r.translate(i.x-n.x,i.y-n.y),r},tangentAtLength:function(t){if(!this.isDifferentiable())return null;var n=this.start,e=this.end,i=this.pointAtLength(t),r=new pr(n,e);return r.translate(i.x-n.x,i.y-n.y),r},toString:function(){return this.start.toString()+" "+this.end.toString()},serialize:function(){return this.start.serialize()+" "+this.end.serialize()},translate:function(t,n){return this.start.translate(t,n),this.end.translate(t,n),this},vector:function(){return new an(this.end.x-this.start.x,this.end.y-this.start.y)}},pr.prototype.intersection=pr.prototype.intersect;const Vm=pr,{sqrt:a1e,round:yE,pow:Dpt}=Math,J2=function(t,n,e){return this instanceof J2?t instanceof J2?new J2(new an(t.x,t.y),t.a,t.b):(t=new an(t),this.x=t.x,this.y=t.y,this.a=n,void(this.b=e)):new J2(t,n,e)};J2.fromRect=function(t){return t=new rr(t),new J2(t.center(),t.width/2,t.height/2)},J2.prototype={type:la.Ellipse,bbox:function(){return new rr(this.x-this.a,this.y-this.b,2*this.a,2*this.b)},center:function(){return new an(this.x,this.y)},clone:function(){return new J2(this)},containsPoint:function(t){return this.normalizedDistance(t)<=1},equals:function(t){return!!t&&t.x===this.x&&t.y===this.y&&t.a===this.a&&t.b===this.b},inflate:function(t,n){return void 0===t&&(t=0),void 0===n&&(n=t),this.a+=2*t,this.b+=2*n,this},intersectionWithLine:function(t){var n=[],e=t.start,i=t.end,r=this.a,o=this.b,a=t.vector(),c=e.difference(new an(this)),u=new an(a.x/(r*r),a.y/(o*o)),f=new an(c.x/(r*r),c.y/(o*o)),w=a.dot(u),E=a.dot(f),Z=E*E-w*(c.dot(f)-1);if(Z<0)return null;if(Z>0){var ee=a1e(Z),be=(-E-ee)/w,_e=(-E+ee)/w;if((be<0||1a.x+r/2||ea.x?i-30:i+30)-u)/(o*o*(e-c))+c:E=o*o/(i-u)-o*o*(e-c)*((B=i>a.y?e+30:e-30)-c)/(r*r*(i-u))+u,new an(B,E).theta(t)},toString:function(){return new an(this.x,this.y).toString()+" "+this.a+" "+this.b}};const Lpt=J2,{abs:s1e,cos:kpt,sin:Ipt,min:mb,max:c1e,round:wE,pow:Npt}=Math,rr=function(t,n,e,i){if(!(this instanceof rr))return new rr(t,n,e,i);Object(t)===t&&(n=t.y,e=t.width,i=t.height,t=t.x),this.x=void 0===t?0:t,this.y=void 0===n?0:n,this.width=void 0===e?0:e,this.height=void 0===i?0:i};rr.fromEllipse=function(t){return t=new J2(t),new rr(t.x-t.a,t.y-t.b,2*t.a,2*t.b)},rr.fromPointUnion=function(...t){if(0===t.length)return null;const n=new an;let e,i,r,o;e=i=1/0,r=o=-1/0;for(let a=0;ar&&(r=c),uo&&(o=u)}return new rr(e,i,r-e,o-i)},rr.fromRectUnion=function(...t){if(0===t.length)return null;const n=new rr;let e,i,r,o;e=i=1/0,r=o=-1/0;for(let a=0;ar&&(r=f),uo&&(o=w)}return new rr(e,i,r-e,o-i)},rr.prototype={type:la.Rect,bbox:function(t){return this.clone().rotateAroundCenter(t)},rotateAroundCenter:function(t){if(!t)return this;const{width:n,height:e}=this,i=Nd(t),r=s1e(Ipt(i)),o=s1e(kpt(i)),a=n*o+e*r,c=n*r+e*o;return this.x+=(n-a)/2,this.y+=(e-c)/2,this.width=a,this.height=c,this},bottomLeft:function(){return new an(this.x,this.y+this.height)},bottomLine:function(){return new pr(this.bottomLeft(),this.bottomRight())},bottomMiddle:function(){return new an(this.x+this.width/2,this.y+this.height)},center:function(){return new an(this.x+this.width/2,this.y+this.height/2)},clone:function(){return new rr(this)},containsPoint:function(t){return(t=new an(t)).x>=this.x&&t.x<=this.x+this.width&&t.y>=this.y&&t.y<=this.y+this.height},containsRect:function(t){var n=new rr(this).normalize(),e=new rr(t).normalize(),i=n.width,r=n.height,o=e.width,a=e.height;if(!(i&&r&&o&&a))return!1;var c=n.x,u=n.y,f=e.x,w=e.y;return o+=f,i+=c,a+=w,r+=u,c<=f&&o<=i&&u<=w&&a<=r},corner:function(){return new an(this.x+this.width,this.y+this.height)},equals:function(t){var n=new rr(this).normalize(),e=new rr(t).normalize();return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height},inflate:function(t,n){return void 0===t&&(t=0),void 0===n&&(n=t),this.x-=t,this.y-=n,this.width+=2*t,this.height+=2*n,this},intersect:function(t){var n=this.origin(),e=this.corner(),i=t.origin(),r=t.corner();if(r.x<=n.x||r.y<=n.y||i.x>=e.x||i.y>=e.y)return null;var o=c1e(n.x,i.x),a=c1e(n.y,i.y);return new rr(o,a,mb(e.x,r.x)-o,mb(e.y,r.y)-a)},intersectionWithLine:function(t){var o,a,n=this,e=[n.topLine(),n.rightLine(),n.bottomLine(),n.leftLine()],i=[],r=[],c=e.length;for(a=0;a0?i:null},intersectionWithLineFromCenterToPoint:function(t,n){t=new an(t);var i,e=new an(this.x+this.width/2,this.y+this.height/2);n&&t.rotate(e,n);for(var r=[this.topLine(),this.rightLine(),this.bottomLine(),this.leftLine()],o=new pr(e,t),a=r.length-1;a>=0;--a){var c=r[a].intersection(o);if(null!==c){i=c;break}}return i&&n&&i.rotate(e,-n),i},leftLine:function(){return new pr(this.topLeft(),this.bottomLeft())},leftMiddle:function(){return new an(this.x,this.y+this.height/2)},maxRectScaleToFit:function(t,n){t=new rr(t),n||(n=t.center());var e,i,r,o,a,c,u,f,w=n.x,E=n.y;e=i=r=o=a=c=u=f=1/0;var B=t.topLeft();B.xw&&(i=(this.x+this.width-w)/(Z.x-w)),Z.y>E&&(c=(this.y+this.height-E)/(Z.y-E));var ee=t.topRight();ee.x>w&&(r=(this.x+this.width-w)/(ee.x-w)),ee.yE&&(f=(this.y+this.height-E)/(be.y-E)),{sx:mb(e,i,r,o),sy:mb(a,c,u,f)}},maxRectUniformScaleToFit:function(t,n){var e=this.maxRectScaleToFit(t,n);return mb(e.sx,e.sy)},moveAndExpand:function(t){return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this},normalize:function(){var t=this.x,n=this.y,e=this.width,i=this.height;return this.width<0&&(t=this.x+this.width,e=-this.width),this.height<0&&(n=this.y+this.height,i=-this.height),this.x=t,this.y=n,this.width=e,this.height=i,this},offset:function(t,n){return an.prototype.offset.call(this,t,n)},origin:function(){return new an(this.x,this.y)},pointNearestToPoint:function(t){if(t=new an(t),this.containsPoint(t))switch(this.sideNearestToPoint(t)){case"right":return new an(this.x+this.width,t.y);case"left":return new an(this.x,t.y);case"bottom":return new an(t.x,this.y+this.height);case"top":return new an(t.x,this.y)}return t.adhereToRect(this)},rightLine:function(){return new pr(this.topRight(),this.bottomRight())},rightMiddle:function(){return new an(this.x+this.width,this.y+this.height/2)},round:function(t){let n=1;if(t)switch(t){case 1:n=10;break;case 2:n=100;break;case 3:n=1e3;break;default:n=Npt(10,t)}return this.x=wE(this.x*n)/n,this.y=wE(this.y*n)/n,this.width=wE(this.width*n)/n,this.height=wE(this.height*n)/n,this},scale:function(t,n,e){return e=this.origin().scale(t,n,e),this.x=e.x,this.y=e.y,this.width*=t,this.height*=n,this},sideNearestToPoint:function(t){t=new an(t);var e=this.x+this.width-t.x,i=t.y-this.y,o=t.x-this.x,a="left";return eo.x)&&(o=t[e]);var a=[];for(e=0;e2&&a.unshift(a[a.length-1]);for(var B,Z,ee,be,_e,Pe,w={},E=[];0!==a.length;)if(Z=(B=a.pop())[0],!w.hasOwnProperty(B[0]+"@@"+B[1]))for(var Ie=!1;!Ie;)if(E.length<2)E.push(B),Ie=!0;else{be=(ee=E.pop())[0];var ge=(Pe=(_e=E.pop())[0]).cross(be,Z);if(ge<0)E.push(_e),E.push(ee),E.push(B),Ie=!0;else if(0===ge){var Ye=be.angleBetween(Pe,Z);n(Ye-180)<1e-10||be.equals(Z)||Pe.equals(be)?(w[ee[0]+"@@"+ee[1]]=be,E.push(_e)):n((Ye+1)%360-1)<1e-10&&(E.push(_e),a.push(ee))}else w[ee[0]+"@@"+ee[1]]=be,E.push(_e)}E.length>2&&E.pop();var Je,gt=-1;for(i=E.length,e=0;e0){var Yt=E.slice(gt),tn=E.slice(0,gt);_t=Yt.concat(tn)}else _t=E;var _n=[];for(i=_t.length,e=0;en&&(n=u),fi&&(i=f)}return new rr(t,e,n-t,i-e)},clone:function(){return new Is(d1e(this.points))},closestPoint:function(t){var n=this.closestPointLength(t);return this.pointAtLength(n)},closestPointLength:function(t){var n=this.lengthPoints(),e=n.length;if(0===e||1===e)return 0;for(var i,r=1/0,o=0,a=e-1,c=0;cB.y||r>E.y&&r<=B.y){var Z=E.x-i>B.x-i?E.x-i:B.x-i;Z>=0&&(w.x=i+Z,w.y=r,f.start=t,f.end=w,u.intersect(f)&&c++)}o=a}return c%2==1},close:function(){const{start:t,end:n,points:e}=this;return t&&n&&!t.equals(n)&&e.push(t.clone()),this},lengthPoints:function(){return this.points},convexHull:function(){return new Is(u1e(this.points))},equals:function(t){if(!t)return!1;var n=this.points,i=n.length;if(t.points.length!==i)return!1;for(var r=0;r0?e:null},isDifferentiable:function(){var t=this.points,n=t.length;if(0===n)return!1;for(var e=new pr,i=n-1,r=0;r=1)return n[e-1].clone();var i=this.length();return this.pointAtLength(i*t)},pointAtLength:function(t){var n=this.lengthPoints(),e=n.length;if(0===e)return null;if(1===e)return n[0].clone();var i=!0;t<0&&(i=!1,t=-t);for(var r=0,o=e-1,a=0;a1&&(t=1);var i=this.length();return this.tangentAtLength(i*t)},tangentAtLength:function(t){var n=this.lengthPoints(),e=n.length;if(0===e||1===e)return null;var i=!0;t<0&&(i=!1,t=-t);for(var r,o=0,a=e-1,c=0;c=1)return this.divideAtT(1);var e=this.tAt(t,n);return this.divideAtT(e)},divideAtLength:function(t,n){var e=this.tAtLength(t,n);return this.divideAtT(e)},divideAtT:function(t){var n=this.start,e=this.controlPoint1,i=this.controlPoint2,r=this.end;if(t<=0)return[new os(n,n,n,n),new os(n,e,i,r)];if(t>=1)return[new os(n,e,i,r),new os(r,r,r,r)];var o=this.getSkeletonPoints(t),u=o.divider,f=o.dividerControlPoint1,w=o.dividerControlPoint2;return[new os(n,o.startControlPoint1,o.startControlPoint2,u),new os(u,f,w,r)]},endpointDistance:function(){return this.start.distance(this.end)},equals:function(t){return!!t&&this.start.x===t.start.x&&this.start.y===t.start.y&&this.controlPoint1.x===t.controlPoint1.x&&this.controlPoint1.y===t.controlPoint1.y&&this.controlPoint2.x===t.controlPoint2.x&&this.controlPoint2.y===t.controlPoint2.y&&this.end.x===t.end.x&&this.end.y===t.end.y},getSkeletonPoints:function(t){var n=this.start,e=this.controlPoint1,i=this.controlPoint2,r=this.end;if(t<=0)return{startControlPoint1:n.clone(),startControlPoint2:n.clone(),divider:n.clone(),dividerControlPoint1:e.clone(),dividerControlPoint2:i.clone()};if(t>=1)return{startControlPoint1:e.clone(),startControlPoint2:i.clone(),divider:r.clone(),dividerControlPoint1:r.clone(),dividerControlPoint2:r.clone()};var o=new pr(n,e).pointAt(t),a=new pr(e,i).pointAt(t),c=new pr(i,r).pointAt(t),u=new pr(o,a).pointAt(t),f=new pr(a,c).pointAt(t);return{startControlPoint1:o,startControlPoint2:u,divider:new pr(u,f).pointAt(t),dividerControlPoint1:f,dividerControlPoint2:c}},getSubdivisions:function(t){var n=void 0===(t=t||{}).precision?this.PRECISION:t.precision,e=[new os(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(0===n)return e;for(var i=this.endpointDistance(),r=NH(10,-n),o=0;;){o+=1;for(var a=[],c=e.length,u=0;u1&&(0!==E?(E-i)/E:0)=1)return this.end.clone();var e=this.tAt(t,n);return this.pointAtT(e)},pointAtLength:function(t,n){var e=this.tAtLength(t,n);return this.pointAtT(e)},pointAtT:function(t){return t<=0?this.start.clone():t>=1?this.end.clone():this.getSkeletonPoints(t).divider},PRECISION:3,round:function(t){return this.start.round(t),this.controlPoint1.round(t),this.controlPoint2.round(t),this.end.round(t),this},scale:function(t,n,e){return this.start.scale(t,n,e),this.controlPoint1.scale(t,n,e),this.controlPoint2.scale(t,n,e),this.end.scale(t,n,e),this},tangentAt:function(t,n){if(!this.isDifferentiable())return null;t<0?t=0:t>1&&(t=1);var e=this.tAt(t,n);return this.tangentAtT(e)},tangentAtLength:function(t,n){if(!this.isDifferentiable())return null;var e=this.tAtLength(t,n);return this.tangentAtT(e)},tangentAtT:function(t){if(!this.isDifferentiable())return null;t<0?t=0:t>1&&(t=1);var n=this.getSkeletonPoints(t),e=n.startControlPoint2,r=n.divider,o=new pr(e,n.dividerControlPoint1);return o.translate(r.x-e.x,r.y-e.y),o},tAt:function(t,n){if(t<=0)return 0;if(t>=1)return 1;var e=void 0===(n=n||{}).precision?this.PRECISION:n.precision,r={precision:e,subdivisions:void 0===n.subdivisions?this.getSubdivisions({precision:e}):n.subdivisions},o=this.length(r);return this.tAtLength(o*t,r)},tAtLength:function(t,n){var e=!0;t<0&&(e=!1,t=-t);for(var a,c,u,f,w,i=void 0===(n=n||{}).precision?this.PRECISION:n.precision,r=void 0===n.subdivisions?this.getSubdivisions({precision:i}):n.subdivisions,o={precision:i,subdivisions:r},E=0,B=r.length,Z=1/B,ee=0;ee1&&(t=1);var r=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:r,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:r}):n.segmentSubdivisions},c=this.length(a);return this.divideAtLength(c*t,a)},divideAtLength:function(t,n){var e=this.segments.length;if(0===e)return null;var i=!0;t<0&&(i=!1,t=-t);var a,c,f,w,E,B,r=void 0===(n=n||{}).precision?this.PRECISION:n.precision,o=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:r}):n.segmentSubdivisions,u=0;for(a=0;a=e||t<0)throw new Error("Index out of range.");return n[t]},getSegmentSubdivisions:function(t){for(var n=this.segments,e=n.length,i=void 0===(t=t||{}).precision?this.PRECISION:t.precision,r=[],o=0;oi||t<0)throw new Error("Index out of range.");var r,o=null,a=null;if(0!==i&&(a=t>=1?(o=e[t-1]).nextSegment:e[0]),Array.isArray(n)){if(!(n=n.reduce(function(w,E){return w.concat(E)},[]))[0].isSegment)throw new Error("Segments required.");for(var c=n.length,u=0;u=i?(r=i-1,o=1):o<0?o=0:o>1&&(o=1);for(var a=void 0===(n=n||{}).precision?this.PRECISION:n.precision,c=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:a}):n.segmentSubdivisions,f=0,w=0;w=1)return this.end.clone();var r=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:r,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:r}):n.segmentSubdivisions},c=this.length(a);return this.pointAtLength(c*t,a)},pointAtLength:function(t,n){var e=this.segments,i=e.length;if(0===i)return null;if(0===t)return this.start.clone();var r=!0;t<0&&(r=!1,t=-t);for(var c,o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions,u=0,f=0;f=e)return n[e-1].pointAtT(1);var r=t.value;return r<0?r=0:r>1&&(r=1),n[i].pointAtT(r)},PRECISION:3,prepareSegment:function(t,n,e){t.previousSegment=n,t.nextSegment=e,n&&(n.nextSegment=t),e&&(e.previousSegment=t);var i=t;return t.isSubpathStart&&(t.subpathStartSegment=t,i=e),i&&this.updateSubpathStartSegment(i),t},removeSegment:function(t){var n=this.segments,e=n.length;if(0===e)throw new Error("Path has no segments.");if(t<0&&(t=e+t),t>=e||t<0)throw new Error("Index out of range.");var i=n.splice(t,1)[0],r=i.previousSegment,o=i.nextSegment;r&&(r.nextSegment=o),o&&(o.previousSegment=r),i.isSubpathStart&&o&&this.updateSubpathStartSegment(o)},replaceSegment:function(t,n){var e=this.segments,i=e.length;if(0===i)throw new Error("Path has no segments.");if(t<0&&(t=i+t),t>=i||t<0)throw new Error("Index out of range.");var r,o=e[t],a=o.previousSegment,c=o.nextSegment,u=o.isSubpathStart;if(Array.isArray(n)){if(!(n=n.reduce(function(B,Z){return B.concat(Z)},[]))[0].isSegment)throw new Error("Segments required.");e.splice(t,1);for(var f=n.length,w=0;w1&&(t=1);var r=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:r,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:r}):n.segmentSubdivisions},c=this.length(a);return this.segmentIndexAtLength(c*t,a)},segmentIndexAtLength:function(t,n){var e=this.segments,i=e.length;if(0===i)return null;var r=!0;t<0&&(r=!1,t=-t);for(var o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions,c=null,u=0,f=0;f1&&(t=1);var r=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a={precision:r,segmentSubdivisions:void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:r}):n.segmentSubdivisions},c=this.length(a);return this.tangentAtLength(c*t,a)},tangentAtLength:function(t,n){var e=this.segments,i=e.length;if(0===i)return null;var r=!0;t<0&&(r=!1,t=-t);for(var c,o=void 0===(n=n||{}).precision?this.PRECISION:n.precision,a=void 0===n.segmentSubdivisions?this.getSegmentSubdivisions({precision:o}):n.segmentSubdivisions,u=0,f=0;f=e)return n[e-1].tangentAtT(1);var r=t.value;return r<0?r=0:r>1&&(r=1),n[i].tangentAtT(r)},toPoints:function(t){var n=this.segments,e=n.length;if(0===e)return null;for(var r=void 0===(t=t||{}).segmentSubdivisions?this.getSegmentSubdivisions({precision:void 0===t.precision?this.PRECISION:t.precision}):t.segmentSubdivisions,o=[],a=[],c=0;c0){var w=f.map(function(E){return E.start});Array.prototype.push.apply(a,w)}else a.push(u.start)}else a.length>0&&(a.push(n[c-1].end),o.push(a),a=[])}return a.length>0&&(a.push(this.end),o.push(a)),o},toPolylines:function(t){var n=[],e=this.toPoints(t);if(!e)return null;for(var i=0,r=e.length;i=0;e--){var i=t[e];if(i.isVisible)return i.end}return t[n-1].end}});var Bm={bbox:function(){throw new Error("Declaration missing for virtual function.")},clone:function(){throw new Error("Declaration missing for virtual function.")},closestPoint:function(){throw new Error("Declaration missing for virtual function.")},closestPointLength:function(){throw new Error("Declaration missing for virtual function.")},closestPointNormalizedLength:function(){throw new Error("Declaration missing for virtual function.")},closestPointT:function(t){if(this.closestPointNormalizedLength)return this.closestPointNormalizedLength(t);throw new Error("Neither closestPointT() nor closestPointNormalizedLength() function is implemented.")},closestPointTangent:function(){throw new Error("Declaration missing for virtual function.")},divideAt:function(){throw new Error("Declaration missing for virtual function.")},divideAtLength:function(){throw new Error("Declaration missing for virtual function.")},divideAtT:function(t){if(this.divideAt)return this.divideAt(t);throw new Error("Neither divideAtT() nor divideAt() function is implemented.")},equals:function(){throw new Error("Declaration missing for virtual function.")},getSubdivisions:function(){throw new Error("Declaration missing for virtual function.")},isDifferentiable:function(){throw new Error("Declaration missing for virtual function.")},isSegment:!0,isSubpathStart:!1,isVisible:!0,length:function(){throw new Error("Declaration missing for virtual function.")},lengthAtT:function(t){if(t<=0)return 0;var n=this.length();return t>=1?n:n*t},nextSegment:null,pointAt:function(){throw new Error("Declaration missing for virtual function.")},pointAtLength:function(){throw new Error("Declaration missing for virtual function.")},pointAtT:function(t){if(this.pointAt)return this.pointAt(t);throw new Error("Neither pointAtT() nor pointAt() function is implemented.")},previousSegment:null,round:function(){throw new Error("Declaration missing for virtual function.")},subpathStartSegment:null,scale:function(){throw new Error("Declaration missing for virtual function.")},serialize:function(){throw new Error("Declaration missing for virtual function.")},tangentAt:function(){throw new Error("Declaration missing for virtual function.")},tangentAtLength:function(){throw new Error("Declaration missing for virtual function.")},tangentAtT:function(t){if(this.tangentAt)return this.tangentAt(t);throw new Error("Neither tangentAtT() nor tangentAt() function is implemented.")},toString:function(){throw new Error("Declaration missing for virtual function.")},translate:function(){throw new Error("Declaration missing for virtual function.")}};Object.defineProperty(Bm,"end",{configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(Bm,"start",{configurable:!0,enumerable:!0,get:function(){if(!this.previousSegment)throw new Error("Missing previous segment. (This segment cannot be the first segment of a path; OR segment has not yet been added to a path.)");return this.previousSegment.end}}),Object.defineProperty(Bm,"type",{configurable:!0,enumerable:!0,get:function(){throw new Error("Bad segment declaration. No type specified.")}});var H1=function(){for(var t=[],n=arguments.length,e=0;e0)throw new Error("Closepath constructor expects no arguments.");return this},zH={clone:function(){return new a8},divideAt:function(t){var e=new pr(this.start,this.end).divideAt(t);return[e[1].isDifferentiable()?new H1(e[0]):this.clone(),new H1(e[1])]},divideAtLength:function(t){var e=new pr(this.start,this.end).divideAtLength(t);return[e[1].isDifferentiable()?new H1(e[0]):this.clone(),new H1(e[1])]},getSubdivisions:function(){return[]},isDifferentiable:function(){return!(!this.previousSegment||!this.subpathStartSegment||this.start.equals(this.end))},round:function(){return this},scale:function(){return this},serialize:function(){return this.type},toString:function(){return this.type+" "+this.start+" "+this.end},translate:function(){return this}};Object.defineProperty(zH,"end",{configurable:!0,enumerable:!0,get:function(){if(!this.subpathStartSegment)throw new Error("Missing subpath start segment. (This segment needs a subpath start segment (e.g. Moveto); OR segment has not yet been added to a path.)");return this.subpathStartSegment.end}}),Object.defineProperty(zH,"type",{configurable:!0,enumerable:!0,value:"Z"}),a8.prototype=_b(Bm,pr.prototype,zH);var Fpt=Ur.segmentTypes={L:H1,C:cu,M:Gm,Z:a8,z:a8};Ur.regexSupportedData=new RegExp("^[\\s\\d"+Object.keys(Fpt).join("")+",.]*$"),Ur.isDataSupported=function(t){return"string"==typeof t&&this.regexSupportedData.test(t)};const Hpt={curveThroughPoints:function(t){return console.warn("deprecated"),new Ur(os.throughPoints(t)).serialize()},getCurveControlPoints:function(t){console.warn("deprecated");var r,n=[],e=[],i=t.length-1;if(1==i)return n[0]=new an((2*t[0].x+t[1].x)/3,(2*t[0].y+t[1].y)/3),e[0]=new an(2*n[0].x-t[0].x,2*n[0].y-t[0].y),[n,e];var o=[];for(r=1;r=0&&Pe<=1&&Ie>=0&&Ie<=1}function FH(t,n){const e=t.a,i=t.b,r=t.x,o=t.y,a=n.start.x-r,u=n.start.y-o,w=e*e,E=i*i,B=n.end.x-r-a,Z=n.end.y-o-u,ee=B*B/w+Z*Z/E,be=2*a*B/w+2*u*Z/E,Pe=be*be-4*ee*(a*a/w+u*u/E-1);if(0===Pe){const Ie=-be/2/ee;return Ie>=0&&Ie<=1}if(Pe>0){const Ie=Math.sqrt(Pe),ge=(-be+Ie)/2/ee,Re=(-be-Ie)/2/ee;return ge>=0&&ge<=1||Re>=0&&Re<=1}return!1}function _1e(t,n){return function Vpt(t,n,e,i){const{cos:r,sin:o}=Math,a=o(n),c=r(n),u=o(i),f=r(i),w=a*a,E=c*c,Z=u*u,ee=f*f,_e=t.a*t.a,Pe=t.b*t.b,Ie=e.a*e.a,ge=e.b*e.b,Re=_e*w+Pe*E,Ye=Ie*Z+ge*ee,Je=_e*E+Pe*w,gt=Ie*ee+ge*Z;let ft=2*(Pe-_e)*(a*c),_t=2*(ge-Ie)*(u*f),Yt=-2*Re*t.x-ft*t.y,tn=-2*Ye*e.x-_t*e.y,_n=-ft*t.x-2*Je*t.y,Wt=-_t*e.x-2*gt*e.y;const An=Re*t.x*t.x+Je*t.y*t.y+ft*t.x*t.y-_e*Pe,Gn=Ye*e.x*e.x+gt*e.y*e.y+_t*e.x*e.y-Ie*ge;ft/=2,_t/=2,Yt/=2,tn/=2,_n/=2,Wt/=2;const bn=S4([[Re,ft,Yt],[ft,Je,_n],[Yt,_n,An]]),Kn=S4([[Ye,_t,tn],[_t,gt,Wt],[tn,Wt,Gn]]),fi=.33333333*(S4([[Ye,ft,Yt],[_t,Je,_n],[tn,_n,An]])+S4([[Re,_t,Yt],[ft,gt,_n],[Yt,Wt,An]])+S4([[Re,ft,tn],[ft,Je,Wt],[Yt,_n,Gn]])),oi=.33333333*(S4([[Re,_t,tn],[ft,gt,Wt],[Yt,Wt,Gn]])+S4([[Ye,ft,tn],[_t,Je,Wt],[tn,_n,Gn]])+S4([[Ye,_t,Yt],[_t,gt,_n],[tn,Wt,An]])),wi=TE([[bn,fi],[fi,oi]]),Li=TE([[bn,oi],[fi,Kn]]),Ai=TE([[fi,oi],[oi,Kn]]);return!(TE([[2*wi,Li],[Li,2*Ai]])>0&&(oi>0||fi>0))}(t,0,n,0)}function v1e(t,n){const{start:e,end:i}=n,{x:r,y:o,width:a,height:c}=t;return!(e.x>r+a&&i.x>r+a||e.xo+c&&i.y>o+c||e.yn.x&&t.yn.y}function OE(t,n){return T1e(t,n,{interior:!1})}function VH(t,n){return A1e(t,n,{interior:!1})}function b1e(t,n){return D1e(t,n,{interior:!1})}function x1e(t,n){return EE(t,n,{interior:!1})}function BH(t,n){return T1e(t,n,{interior:!0})}function SE(t,n){return A1e(t,n,{interior:!0})}function y1e(t,n){return D1e(t,n,{interior:!0})}function w1e(t,n){return EE(t,n,{interior:!0})}function M1e(t,n){return YH(t,n,{interior:!0})}function O1e(t,n,e){return t.getSubpaths().some(i=>{const[r]=i.toPolylines(e),{type:o}=i.getSegment(-1);return"Z"===o?BH(r,n):OE(r,n)})}function S1e(t,n,e){return t.getSubpaths().some(i=>{const[r]=i.toPolylines(e),{type:o}=i.getSegment(-1);return"Z"===o?SE(r,n):VH(r,n)})}function P1e(t,n,e){return PE(t,Rd.fromRect(n),e)}function GH(t,n,e){return L1e(t,n,e,{interior:!1})}function PE(t,n,e){return L1e(t,n,e,{interior:!0})}function E1e(t,n,e,i){return t.getSubpaths().some(r=>{const[o]=r.toPolylines(e),{type:a}=r.getSegment(-1);return"Z"===a?PE(n,o,i):GH(n,o,i)})}function T1e(t,n,e={}){const{interior:i=!1}=e;let r;if(i){if(t.containsPoint(n.start))return!0;const{start:c,end:u,points:f}=t;r=u.equals(c)?f:[...f,c]}else r=t.points;const{length:o}=r,a=new pr;for(let c=0;c{const[o]=r.toPolylines(e),{type:a}=r.getSegment(-1);return"Z"===a?YH(n,o,i):EE(n,o,i)})}function EE(t,n,e={}){const{interior:i=!1}=e;let r;if(i){const{start:u}=n;if(t.containsPoint(u))return!0;r=t.clone().close()}else r=t;const o=n.points,{length:a}=o,c=new pr;for(let u=0;u1){var ft,_t,gt=[];for(ft=0,_t=Je.childNodes.length;ft<_t;ft++){var Yt=Je.childNodes[ft];gt.push(new E(document.importNode(Yt,!0)))}return gt}ge=document.importNode(Je.firstChild,!0)}else ge=document.createElementNS(n.svg,ge);E.ensureId(ge)}return this.node=ge,this.setAttributes(Re),Ye&&this.append(Ye),this}},B=E.prototype;function ee(ge,Re,Ye){Ye||(Ye={});for(var Je=Ye.includeAnnotationIndices,gt=Ye.eol,ft=Ye.lineHeight,_t=Ye.baseSize,Yt=0,tn={},_n=Re.length-1,Wt=0;Wt<=_n;Wt++){var An=Re[Wt],Gn=null;if(E.isObject(An)){var bn=An.attrs,Kn=E("tspan",bn),fi=Kn.node,oi=An.t;gt&&Wt===_n&&(oi+=gt),fi.textContent=oi;var wi=bn.class;wi&&Kn.addClass(wi),Je&&Kn.attr("annotations",An.annotations),Gn=parseFloat(bn["font-size"]),isFinite(Gn)||(Gn=_t),Gn&&Gn>Yt&&(Yt=Gn)}else gt&&Wt===_n&&(An+=gt),fi=document.createTextNode(An||" "),_t&&_t>Yt&&(Yt=_t);ge.appendChild(fi)}return Yt&&(tn.maxFontSize=Yt),ft?tn.lineHeight=ft:Yt&&(tn.lineHeight=1.2*Yt),tn}Object.defineProperty(B,"id",{enumerable:!0,get:function(){return this.node.id},set:function(ge){this.node.id=ge}}),B.getTransformToElement=function(ge){var Re=this.node;if(E.isSVGGraphicsElement(ge)&&E.isSVGGraphicsElement(Re)){var Ye=E.toNode(ge).getScreenCTM(),Je=Re.getScreenCTM();if(Ye&&Je)return Ye.inverse().multiply(Je)}return E.createSVGMatrix()},B.transform=function(ge,Re){var Ye=this.node;if(E.isUndefined(ge))return E.transformStringToMatrix(this.attr("transform"));if(Re&&Re.absolute)return this.attr("transform",E.matrixToTransformString(ge));var Je=E.createSVGTransform(ge);return Ye.transform.baseVal.appendItem(Je),this},B.translate=function(ge,Re,Ye){Ye=Ye||{},Re=Re||0;var Je=this.attr("transform")||"",gt=E.parseTransformString(Je);return Je=gt.value,E.isUndefined(ge)?gt.translate:(Je=Je.replace(/translate\([^)]*\)/g,"").trim(),this.attr("transform",("translate("+(Ye.absolute?ge:gt.translate.tx+ge)+","+(Ye.absolute?Re:gt.translate.ty+Re)+") "+Je).trim()),this)},B.rotate=function(ge,Re,Ye,Je){Je=Je||{};var gt=this.attr("transform")||"",ft=E.parseTransformString(gt);return gt=ft.value,E.isUndefined(ge)?ft.rotate:(gt=gt.replace(/rotate\([^)]*\)/g,"").trim(),ge%=360,this.attr("transform",(gt+" rotate("+(Je.absolute?ge:ft.rotate.angle+ge)+(void 0!==Re&&void 0!==Ye?","+Re+","+Ye:"")+")").trim()),this)},B.scale=function(ge,Re){Re=E.isUndefined(Re)?ge:Re;var Ye=this.attr("transform")||"",Je=E.parseTransformString(Ye);return Ye=Je.value,E.isUndefined(ge)?Je.scale:(Ye=Ye.replace(/scale\([^)]*\)/g,"").trim(),this.attr("transform",(Ye+" scale("+ge+","+Re+")").trim()),this)},B.bbox=function(ge,Re){var Ye,Je=this.node,gt=Je.ownerSVGElement;if(!gt)return new rr(0,0,0,0);try{Ye=Je.getBBox()}catch(_t){Ye={x:Je.clientLeft,y:Je.clientTop,width:Je.clientWidth,height:Je.clientHeight}}if(ge)return new rr(Ye);var ft=this.getTransformToElement(Re||gt);return E.transformRect(Ye,ft)},B.getBBox=function(ge){var Ye,Re={},Je=this.node;if(!Je.ownerSVGElement||!E.isSVGGraphicsElement(Je))return new rr(0,0,0,0);if(ge&&(ge.target&&(Re.target=E.toNode(ge.target)),ge.recursive&&(Re.recursive=ge.recursive)),Re.recursive){var _t=this.children(),Yt=_t.length;if(0===Yt)return this.getBBox({target:Re.target,recursive:!1});Re.target||(Re.target=this);for(var tn=0;tn0&&Si.setAttribute("dy",mo),($i>0||gt)&&Si.setAttribute("x",Yt),Si.className.baseVal=dr,fi.appendChild(Si),oi+=bo.length+1}if(_t)if(_n)mo=function Pe(ge,Re,Ye,Je){if(!Array.isArray(Re))return 0;var gt=Re.length;if(!gt)return 0;for(var ft=Re[0],_t=_e(ft.maxFontSize,Ye)||Ye,Yt=0,tn=_e(Je,Ye),_n=1;_n0?(bi=parseFloat(Gn)||1,bi*=Yn,be.test(Gn)||(bi/=bn)):bi=0,ft){case"middle":mo=.3-bi/2+"em";break;case"bottom":mo=-bi-.3+"em"}}else 0===ft?mo="0em":ft?mo=ft:(mo=0,null===this.attr("y")&&this.attr("y",Ai||"0.8em"));return fi.firstChild.setAttribute("dy",mo),this.append(fi),this},B.removeAttr=function(ge){var Re=E.qualifyAttr(ge),Ye=this.node;return Re.ns?Ye.hasAttributeNS(Re.ns,Re.local)&&Ye.removeAttributeNS(Re.ns,Re.local):Ye.hasAttribute(ge)&&Ye.removeAttribute(ge),this},B.attr=function(ge,Re){if(E.isUndefined(ge)){for(var Ye=this.node.attributes,Je={},gt=0;gt1&&_n.push(_n[0]),new Is(_n);case"PATH":return Wt=this.attr("d"),Ur.isDataSupported(Wt)||(Wt=E.normalizePathData(Wt)),new Ur(Wt);case"LINE":return An=parseFloat(this.attr("x1"))||0,bn=parseFloat(this.attr("y1"))||0,Gn=parseFloat(this.attr("x2"))||0,Kn=parseFloat(this.attr("y2"))||0,new pr({x:An,y:bn},{x:Gn,y:Kn})}return this.getBBox()},B.findIntersection=function(ge,Re){var Ye=this.svg().node,Je=this.getBBox({target:Re=Re||Ye}),gt=Je.center();if(Je.intersectionWithLineFromCenterToPoint(ge)){var ft,_t=this.tagName();if("RECT"===_t){var Yt=new rr(parseFloat(this.attr("x")||0),parseFloat(this.attr("y")||0),parseFloat(this.attr("width")),parseFloat(this.attr("height"))),tn=this.getTransformToElement(Re),_n=E.decomposeMatrix(tn),Wt=Ye.createSVGTransform();Wt.setRotate(-_n.rotation,gt.x,gt.y);var An=E.transformRect(Yt,Wt.matrix.multiply(tn));ft=new rr(An).intersectionWithLineFromCenterToPoint(ge,_n.rotation)}else if("PATH"===_t||"POLYGON"===_t||"POLYLINE"===_t||"CIRCLE"===_t||"ELLIPSE"===_t){var oi,wi,Li,$i,Yn,bn=("PATH"===_t?this:this.convertToPath()).sample(),Kn=1/0,fi=[];for(oi=0;oi${ge}`,{documentElement:Je}=E.parseXML(Ye,{async:!1});return Je}const Re=document.createElementNS(n.svg,"svg");return Re.setAttributeNS(n.xmlns,"xmlns:xlink",n.xlink),Re.setAttribute("version","1.1"),Re},E.createSVGStyle=function(ge){const{node:Re}=E("style",{type:"text/css"},[E.createCDATASection(ge)]);return Re},E.createCDATASection=function(ge=""){return document.implementation.createDocument(null,"xml",null).createCDATASection(ge)},E.idCounter=0,E.uniqueId=function(){return"v-"+ ++E.idCounter},E.toNode=function(ge){return E.isV(ge)?ge.node:ge.nodeName&&ge||ge[0]},E.ensureId=function(ge){return(ge=E.toNode(ge)).id||(ge.id=E.uniqueId())},E.sanitizeText=function(ge){return(ge||"").replace(/ /g,"\xa0")},E.isUndefined=function(ge){return void 0===ge},E.isString=function(ge){return"string"==typeof ge},E.isObject=function(ge){return ge&&"object"==typeof ge},E.isArray=Array.isArray,E.parseXML=function(ge,Re){var Ye;Re=Re||{};try{var Je=new DOMParser;E.isUndefined(Re.async)||(Je.async=Re.async),Ye=Je.parseFromString(ge,"text/xml")}catch(gt){Ye=void 0}if(!Ye||Ye.getElementsByTagName("parsererror").length)throw new Error("Invalid XML: "+ge);return Ye},E.qualifyAttr=function(ge){if(-1!==ge.indexOf(":")){var Re=ge.split(":");return{ns:n[Re[0]],local:Re[1]}}return{ns:null,local:ge}},E.transformRegex=/(\w+)\(([^,)]+),?([^)]+)?\)/gi,E.transformSeparatorRegex=/[ ,]+/,E.transformationListRegex=/^(\w+)\((.*)\)/,E.transformStringToMatrix=function(ge){var Re=E.createSVGMatrix(),Ye=ge&&ge.match(E.transformRegex);if(!Ye)return Re;for(var Je=0,gt=Ye.length;Je=0){var ft=E.transformStringToMatrix(ge),_t=E.decomposeMatrix(ft);Je=[_t.scaleX,_t.scaleY],Ye=[_t.rotation];var Yt=[];(0!==(Re=[_t.translateX,_t.translateY])[0]||0!==Re[1])&&Yt.push("translate("+Re+")"),(1!==Je[0]||1!==Je[1])&&Yt.push("scale("+Je+")"),0!==Ye[0]&&Yt.push("rotate("+Ye+")"),ge=Yt.join(" ")}else{var tn=ge.match(/translate\((.*?)\)/);tn&&(Re=tn[1].split(gt));var _n=ge.match(/rotate\((.*?)\)/);_n&&(Ye=_n[1].split(gt));var Wt=ge.match(/scale\((.*?)\)/);Wt&&(Je=Wt[1].split(gt))}}var An=Je&&Je[0]?parseFloat(Je[0]):1;return{value:ge,translate:{tx:Re&&Re[0]?parseInt(Re[0],10):0,ty:Re&&Re[1]?parseInt(Re[1],10):0},rotate:{angle:Ye&&Ye[0]?parseInt(Ye[0],10):0,cx:Ye&&Ye[1]?parseInt(Ye[1],10):void 0,cy:Ye&&Ye[2]?parseInt(Ye[2],10):void 0},scale:{sx:An,sy:Je&&Je[1]?parseFloat(Je[1]):An}}},E.deltaTransformPoint=function(ge,Re){return{x:Re.x*ge.a+Re.y*ge.c+0,y:Re.x*ge.b+Re.y*ge.d+0}},E.decomposeMatrix=function(ge){var Re=E.deltaTransformPoint(ge,{x:0,y:1}),Ye=E.deltaTransformPoint(ge,{x:1,y:0}),Je=180/r*o(Re.y,Re.x)-90,gt=180/r*o(Ye.y,Ye.x);return{translateX:ge.e,translateY:ge.f,scaleX:a(ge.a*ge.a+ge.b*ge.b),scaleY:a(ge.c*ge.c+ge.d*ge.d),skewX:Je,skewY:gt,rotation:Je}},E.matrixToScale=function(ge){var Re,Ye,Je,gt;return ge?(Re=E.isUndefined(ge.a)?1:ge.a,gt=E.isUndefined(ge.d)?1:ge.d,Ye=ge.b,Je=ge.c):Re=gt=1,{sx:Ye?a(Re*Re+Ye*Ye):Re,sy:Je?a(Je*Je+gt*gt):gt}},E.matrixToRotate=function(ge){var Re={x:0,y:1};return ge&&(Re=E.deltaTransformPoint(ge,Re)),{angle:ep(CE(o(Re.y,Re.x))-90)}},E.matrixToTranslate=function(ge){return{tx:ge&&ge.e||0,ty:ge&&ge.f||0}},E.isV=function(ge){return ge instanceof E},E.isVElement=E.isV,E.isSVGGraphicsElement=function(ge){return!!ge&&(ge=E.toNode(ge))instanceof SVGElement&&"function"==typeof ge.getScreenCTM};var Ie=E("svg").node;return E.createSVGMatrix=function(ge){var Re=Ie.createSVGMatrix();for(var Ye in ge)Re[Ye]=ge[Ye];return Re},E.createSVGTransform=function(ge){return E.isUndefined(ge)?Ie.createSVGTransform():(ge instanceof SVGMatrix||(ge=E.createSVGMatrix(ge)),Ie.createSVGTransformFromMatrix(ge))},E.createSVGPoint=function(ge,Re){var Ye=Ie.createSVGPoint();return Ye.x=ge,Ye.y=Re,Ye},E.transformRect=function(ge,Re){var Ye=Ie.createSVGPoint();Ye.x=ge.x,Ye.y=ge.y;var Je=Ye.matrixTransform(Re);Ye.x=ge.x+ge.width,Ye.y=ge.y;var gt=Ye.matrixTransform(Re);Ye.x=ge.x+ge.width,Ye.y=ge.y+ge.height;var ft=Ye.matrixTransform(Re);Ye.x=ge.x,Ye.y=ge.y+ge.height;var _t=Ye.matrixTransform(Re),Yt=c(Je.x,gt.x,ft.x,_t.x),tn=u(Je.x,gt.x,ft.x,_t.x),_n=c(Je.y,gt.y,ft.y,_t.y),Wt=u(Je.y,gt.y,ft.y,_t.y);return new rr(Yt,_n,tn-Yt,Wt-_n)},E.transformPoint=function(ge,Re){return new an(E.createSVGPoint(ge.x,ge.y).matrixTransform(Re))},E.transformLine=function(ge,Re){return new pr(E.transformPoint(ge.start,Re),E.transformPoint(ge.end,Re))},E.transformPolyline=function(ge,Re){var Ye=ge instanceof Is?ge.points:ge;E.isArray(Ye)||(Ye=[]);for(var Je=[],gt=0,ft=Ye.length;gt=gt?ft?"M0,"+_t+"A"+_t+","+_t+" 0 1,1 0,"+-_t+"A"+_t+","+_t+" 0 1,1 0,"+_t+"M0,"+ft+"A"+ft+","+ft+" 0 1,0 0,"+-ft+"A"+ft+","+ft+" 0 1,0 0,"+ft+"Z":"M0,"+_t+"A"+_t+","+_t+" 0 1,1 0,"+-_t+"A"+_t+","+_t+" 0 1,1 0,"+_t+"Z":ft?"M"+_t*An+","+_t*Gn+"A"+_t+","+_t+" 0 "+Wt+",1 "+_t*bn+","+_t*Kn+"L"+ft*bn+","+ft*Kn+"A"+ft+","+ft+" 0 "+Wt+",0 "+ft*An+","+ft*Gn+"Z":"M"+_t*An+","+_t*Gn+"A"+_t+","+_t+" 0 "+Wt+",1 "+_t*bn+","+_t*Kn+"L0,0Z"},E.mergeAttrs=function(ge,Re){for(var Ye in Re)ge[Ye]="class"===Ye?ge[Ye]?ge[Ye]+" "+Re[Ye]:Re[Ye]:"style"===Ye?E.isObject(ge[Ye])&&E.isObject(Re[Ye])?E.mergeAttrs(ge[Ye],Re[Ye]):E.isObject(ge[Ye])?E.mergeAttrs(ge[Ye],E.styleToObject(Re[Ye])):E.isObject(Re[Ye])?E.mergeAttrs(E.styleToObject(ge[Ye]),Re[Ye]):E.mergeAttrs(E.styleToObject(ge[Ye]),E.styleToObject(Re[Ye])):Re[Ye];return ge},E.annotateString=function(ge,Re,Ye){Re=Re||[];for(var ft,Yt,tn,Je=(Ye=Ye||{}).offset||0,gt=[],_t=[],_n=0;_n=An.start+Je&&_n=gt.start&&Regt.start&&Ye<=gt.end||gt.start>=Re&>.end=Re?Je.end+=Ye:Je.start>=Re&&(Je.start+=Ye,Je.end+=Ye)}),ge},E.convertLineToPathData=function(ge){return["M",(ge=E(ge)).attr("x1"),ge.attr("y1"),"L",ge.attr("x2"),ge.attr("y2")].join(" ")},E.convertPolygonToPathData=function(ge){var Re=E.getPointsFromSvgNode(ge);return 0===Re.length?null:E.svgPointsToPath(Re)+" Z"},E.convertPolylineToPathData=function(ge){var Re=E.getPointsFromSvgNode(ge);return 0===Re.length?null:E.svgPointsToPath(Re)},E.svgPointsToPath=function(ge){for(var Re=0,Ye=ge.length;Re1&&(Ai*=_r=_n(_r),$i*=_r);var tr=Ai*Ai,Rr=$i*$i,Os=(mo==dr?-1:1)*_n(Wt((tr*Rr-tr*Yi*Yi-Rr*Mi*Mi)/(tr*Yi*Yi+Rr*Mi*Mi))),Ss=Os*Ai*Yi/$i+(wi+Si)/2,u1=Os*-$i*Mi/Ai+(Li+bo)/2,pc=tn(((Li-u1)/$i).toFixed(9)),zs=tn(((bo-u1)/$i).toFixed(9));(pc=wizs&&(pc-=2*gt),!dr&&zs>pc&&(zs-=2*gt)}var pp=zs-pc;if(Wt(pp)>vi){var sd=zs,Y4=Si,AA=bo;Dn=bn(Si=Ss+Ai*_t(zs=pc+vi*(dr&&zs>pc?1:-1)),bo=u1+$i*ft(zs),Ai,$i,Yn,0,dr,Y4,AA,[zs,sd,Ss,u1])}pp=zs-pc;var DA=_t(pc),LA=ft(pc),kA=_t(zs),u5=ft(zs),kx=Yt(pp/4),Ix=4/3*(Ai*kx),Q8=4/3*($i*kx),Nx=[wi,Li],th=[wi+Ix*LA,Li-Q8*DA],Rx=[Si+Ix*u5,bo-Q8*kA],U4=[Si,bo];if(th[0]=2*Nx[0]-th[0],th[1]=2*Nx[1]-th[1],ni)return[th,Rx,U4].concat(Dn);for(var IA=[],cj=(Dn=[th,Rx,U4].concat(Dn).join().split(",")).length,Bl=0;Bl2&&(Ai.push([Yn].concat(dr.splice(0,2))),Si="l",Yn="m"===Yn?"l":"L");dr.length>=Li[Si]&&(Ai.push([Yn].concat(dr.splice(0,Li[Si]))),Li[Si]););}),Ai}(wi)),!wi||!wi.length)return[["M",0,0]];for(var Si,Li=[],Ai=0,$i=0,Yn=0,mo=0,bo=wi.length,ni=0;ni7){Dn[bi].shift();for(var Mi=Dn[bi];Mi.length;)mo[bi]="A",Dn.splice(bi++,0,["C"].concat(Mi.splice(0,6)));Dn.splice(bi,1),bo=Li.length}}for(var mo=[],dr="",Si="",bo=Li.length,ni=0;ni0&&(Si=mo[ni-1])),Li[ni]=$i(Li[ni],Ai,Si),"A"!==mo[ni]&&"C"===dr&&(mo[ni]="C"),Yn(Li,ni);var vi=Li[ni],zi=vi.length;Ai.x=vi[zi-2],Ai.y=vi[zi-1],Ai.bx=parseFloat(vi[zi-4])||Ai.x,Ai.by=parseFloat(vi[zi-3])||Ai.y}return(!Li[0][0]||"M"!==Li[0][0])&&Li.unshift(["M",0,0]),Li}return function(wi){return oi(wi).join(",").split(",").join(" ")}}(),E.namespace=n,E.g=_,E}(),ju={useCSSSelectors:!0,classNamePrefix:"joint-",defaultTheme:"default",doubleTapInterval:300},Zh=function(t){return t&&t.toString().split(" ").map(function(n){return n.substr(0,ju.classNamePrefix.length)!==ju.classNamePrefix&&(n=ju.classNamePrefix+n),n}).join(" ")},Gpt=function(t){return t&&t.toString().split(" ").map(function(n){return n.substr(0,ju.classNamePrefix.length)===ju.classNamePrefix&&(n=n.substr(ju.classNamePrefix.length)),n}).join(" ")},AE=function(t,n){for(var e={},i={},r=ti.namespace.svg,o=n||r,a=document.createDocumentFragment(),c=[t,a,o];c.length>0;){o=c.pop();for(var u=c.pop(),f=c.pop(),w=0,E=f.length;w=0){if(gt.length>1){for(var _t=gt.split(E),Yt=0,tn=_t.length-1;Yt""!==Ai)),Re--,Je=ee.length;continue}_e[++Ye]="",ft=!0}if(!ft)if(f.data=_e[Ye]?_e[Ye]+" "+gt:gt,c.getComputedTextLength()<=r)_e[Ye]=f.data,(Pe||Ie)&&(be[Ye++]=!0,Pe=0,Ie=0);else{if(!_e[Ye]||Pe){var _n=!!Pe;if(Pe=gt.length-1,_n||!Pe){if(!Pe){if(!_e[Ye]){_e=[];break}ee.splice(Re,2,gt+ee[Re+1]),Je--,be[Ye++]=!0,Re--;continue}ee[Re]=gt.substring(0,Pe),ee[Re+1]=gt.substring(Pe)+(void 0===ee[Re+1]?"":ee[Re+1])}else{if(Ie)ee.splice(Re,2,ee[Re]+ee[Re+1]),Ie=0;else{var Wt=gt.search(B);Wt>-1&&Wt!==gt.length-1&&0!==Wt&&(Ie=Wt+1,Pe=0),ee.splice(Re,1,gt.substring(0,Ie||Pe),gt.substring(Ie||Pe)),Je++}Ye&&!be[Ye-1]&&Ye--}Re--;continue}Ye++,Re--}var An=null;if(_e.length>Z)An=Z-1;else if(void 0!==o){var Gn;void 0===ge&&(ge=(Gn="auto"===e.lineHeight?{value:1.5,unit:"em"}:Wpt(e.lineHeight,["em"])||{value:1,unit:"em"}).value,"em"===Gn.unit&&(ge*=u.getBBox().height)),ge*_e.length>o&&(An=Math.floor(o/ge)-1)}if(null!==An){_e.splice(An+1);var bn=i.ellipsis;if(!bn||An<0)break;"string"!=typeof bn&&(bn="\u2026");var Kn=_e[An];if(!Kn&&!ft)break;var oi,wi,fi=Kn.length;do{if(wi=Kn[fi],oi=Kn.substring(0,fi),wi?wi.match(w)&&(oi+=wi):oi+="string"==typeof w?w:" ",f.data=oi+=bn,c.getComputedTextLength()<=r){_e[An]=oi;break}fi--}while(fi>=0);break}}}return i.svgDocument?a.removeChild(u):document.body.removeChild(a),_e.join(E)},qpt=function(t){var n=rs(rs.parseHTML("
"+t+"
",null,!1));return n.find("*").each(function(){var e=this;rs.each(e.attributes,function(){var r=this.name,o=this.value;(r.startsWith("on")||o.startsWith("javascript:")||o.startsWith("data:")||o.startsWith("vbscript:"))&&rs(e).removeAttr(r)})}),n.html()},s8=function(t){if(Object(t)!==t){var n=0;return isFinite(t)&&(n=+t),{top:n,right:n,bottom:n,left:n}}var e,i,r,o;return e=i=r=o=0,isFinite(t.vertical)&&(e=r=+t.vertical),isFinite(t.horizontal)&&(i=o=+t.horizontal),isFinite(t.top)&&(e=+t.top),isFinite(t.right)&&(i=+t.right),isFinite(t.bottom)&&(r=+t.bottom),isFinite(t.left)&&(o=+t.left),{top:e,right:i,bottom:r,left:o}},Kpt={linear:function(t){return t},quad:function(t){return t*t},cubic:function(t){return t*t*t},inout:function(t){if(t<=0)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(t<.5?e:3*(t-n)+e-.75)},exponential:function(t){return Math.pow(2,10*(t-1))},bounce:function(t){for(var n=0,e=1;;n+=e,e/=2)if(t>=(7-4*n)/11){var i=(11-6*n-11*t)/4;return-i*i+e*e}},reverse:function(t){return function(n){return 1-t(1-n)}},reflect:function(t){return function(n){return.5*(n<.5?t(2*n):2-t(2-2*n))}},clamp:function(t,n,e){return n=n||0,e=e||1,function(i){var r=t(i);return re?e:r}},back:function(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}},elastic:function(t){return t||(t=1.5),function(n){return Math.pow(2,10*(n-1))*Math.cos(20*Math.PI*t/3*n)}}},R1e={number:function(t,n){var e=n-t;return function(i){return t+e*i}},object:function(t,n){var e=Object.keys(t);return function(i){var r,o,a={};for(r=e.length-1;-1!=r;r--)a[o=e[r]]=t[o]+(n[o]-t[o])*i;return a}},hexColor:function(t,n){var e=parseInt(t.slice(1),16),i=parseInt(n.slice(1),16),r=255&e,o=(255&i)-r,a=65280&e,c=(65280&i)-a,u=16711680&e,f=(16711680&i)-u;return function(w){return"#"+(1<<24|r+o*w&255|a+c*w&65280|u+f*w&16711680).toString(16).slice(1)}},unit:function(t,n){var e=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,i=e.exec(t),r=e.exec(n),o=r[1].indexOf("."),a=o>0?r[1].length-o-1:0,c=+r[1]-(t=+i[1]),u=i[2];return function(f){return(t+c*f).toFixed(a)+u}}},Zpt={outline:function(t){var e=Number.isFinite(t.margin)?t.margin:2,i=Number.isFinite(t.width)?t.width:1;return td('')({color:t.color||"blue",opacity:Number.isFinite(t.opacity)?t.opacity:1,outerRadius:e+i,innerRadius:e})},highlight:function(t){return td('')({color:t.color||"red",width:Number.isFinite(t.width)?t.width:1,blur:Number.isFinite(t.blur)?t.blur:0,opacity:Number.isFinite(t.opacity)?t.opacity:1})},blur:function(t){var n=Number.isFinite(t.x)?t.x:2;return td('')({stdDeviation:Number.isFinite(t.y)?[n,t.y]:n})},dropShadow:function(t){var n="SVGFEDropShadowElement"in window?'':'';return td(n)({dx:t.dx||0,dy:t.dy||0,opacity:Number.isFinite(t.opacity)?t.opacity:1,color:t.color||"black",blur:Number.isFinite(t.blur)?t.blur:4})},grayscale:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return td('')({a:.2126+.7874*(1-n),b:.7152-.7152*(1-n),c:.0722-.0722*(1-n),d:.2126-.2126*(1-n),e:.7152+.2848*(1-n),f:.0722-.0722*(1-n),g:.2126-.2126*(1-n),h:.0722+.9278*(1-n)})},sepia:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return td('')({a:.393+.607*(1-n),b:.769-.769*(1-n),c:.189-.189*(1-n),d:.349-.349*(1-n),e:.686+.314*(1-n),f:.168-.168*(1-n),g:.272-.272*(1-n),h:.534-.534*(1-n),i:.131+.869*(1-n)})},saturate:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return td('')({amount:1-n})},hueRotate:function(t){return td('')({angle:t.angle||0})},invert:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return td('')({amount:n,amount2:1-n})},brightness:function(t){return td('')({amount:Number.isFinite(t.amount)?t.amount:1})},contrast:function(t){var n=Number.isFinite(t.amount)?t.amount:1;return td('')({amount:n,amount2:.5-n/2})}},td=function(t){var n=/<%= ([^ ]+) %>|\$\{ ?([^{} ]+) ?\}|\{\{([^{} ]+)\}\}/g;return function(e){return e=e||{},t.replace(n,function(i){for(var r=Array.from(arguments),o=r.slice(1,4).find(function(u){return!!u}),a=o.split("."),c=e[a.shift()];void 0!==c&&a.length;)c=c[a.shift()];return void 0!==c?c:""})}},ro=Nt.assign,qu=Nt.defaults,qH=Nt.defaultsDeep,Jh=Nt.invokeMap||Nt.invoke,z1e=Nt.sortedIndexBy||Nt.sortedIndex,c8=Nt.uniqBy||Nt.uniq,np=Nt.clone,Xu=Nt.cloneDeep,P4=Nt.isEmpty,bb=Nt.isEqual,gs=Nt.isFunction,o1=Nt.isPlainObject,Ma=Nt.toArray,Jpt=Nt.groupBy,e3t=Nt.flattenDeep,XH=Nt.without,F1e=Nt.difference,$H=Nt.union,ip=Nt.has,Vl=Nt.result,E4=Nt.omit,H1e=Nt.pick,$u=Nt.forIn,t3t=Nt.camelCase,n3t=Nt.uniqueId,a1=function(){if(Nt.mergeWith){var t=Array.from(arguments),n=t[t.length-1],e=gs(n)?n:l8;return t.push(function(i,r){var o=e(i,r);return void 0!==o?o:Array.isArray(i)&&!Array.isArray(r)?r:void 0}),Nt.mergeWith.apply(this,t)}return Nt.merge.apply(this,arguments)},uc=function(t){return!!t&&("object"==typeof t||"function"==typeof t)},zd=function(t){return"number"==typeof t||!!t&&"object"==typeof t&&"[object Number]"===Object.prototype.toString.call(t)},V1=function(t){return"string"==typeof t||!!t&&"object"==typeof t&&"[object String]"===Object.prototype.toString.call(t)},l8=function(){};function V1e(t){t=c8(t);const n=Ma(t).reduce(function(e,i){return e[i.id]=i.clone(),e},{});return Ma(t).forEach(function(e){const i=n[e.id];if(i.isLink()){const a=i.source(),c=i.target();a.id&&n[a.id]&&i.prop("source/id",n[a.id].id),c.id&&n[c.id]&&i.prop("target/id",n[c.id].id)}const r=e.get("parent");r&&n[r]&&i.set("parent",n[r].id);const o=Ma(e.get("embeds")).reduce(function(a,c){return n[c]&&a.push(n[c].id),a},[]);P4(o)||i.set("embeds",o)}),n}const D3={x:"x",y:"y",width:"w",height:"h",minimum:"s",maximum:"l",diagonal:"d"},r3t=Object.keys(D3).map(t=>D3[t]).join(""),B1e="[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?",o3t=/\s/g,G1e=new RegExp(`^(${B1e}\\*)?([${r3t}])([-+]{1,2}${B1e})?$`,"g");function Y1e(t){throw new Error(`Invalid calc() expression: ${t}`)}function a3t(t,n){const e=G1e.exec(t.replace(o3t,""));e||Y1e(t),G1e.lastIndex=0;const[,i=1,r,o=0]=e,{x:a,y:c,width:u,height:f}=n;let w=0;switch(r){case D3.width:w=u;break;case D3.height:w=f;break;case D3.x:w=a;break;case D3.y:w=c;break;case D3.minimum:w=Math.min(f,u);break;case D3.maximum:w=Math.max(f,u);break;case D3.diagonal:w=Math.sqrt(f*f+u*u)}return parseFloat(i)*w+function s3t(t){if(!t)return 0;const[n]=t;switch(n){case"+":return parseFloat(t.substr(1));case"-":return-parseFloat(t.substr(1))}return parseFloat(t)}(o)}function QH(t){return"string"==typeof t&&t.includes("calc")}const j1e="calc(".length;function KH(t,n){let e=t,i=0;for(;;){let r=e.indexOf("calc(",i);if(-1===r)return e;let o=r+j1e,a=1;e:for(;;){switch(e[o]){case"(":a++;break;case")":if(a--,0===a)break e;break;case void 0:Y1e(e)}o++}let c=e.slice(r+j1e,o);QH(c)&&(c=KH(c,n));const u=String(a3t(c,n));e=e.slice(0,r)+u+e.slice(o+1),i=r+u.length}}function T4(t,n){return function(e,i){var r=Wu(e);e=parseFloat(e),r&&(e/=100);var o={};if(isFinite(e)){var a=r||e>=0&&e<=1?e*i[n]:Math.max(e+i[n],0);o[t]=a}return o}}function LE(t,n,e){return function(i,r){var a,o=Wu(i);if(i=parseFloat(i),o&&(i/=100),isFinite(i)){var c=r[e]();a=o||i>0&&i<1?c[t]+r[n]*i:c[t]+i}var u=an();return u[t]=a||0,u}}function W1e(t,n,e){return function(i,r){var o;o="middle"===i?r[n]/2:i===e?r[n]:isFinite(i)?i>-1&&i<1?-r[n]*i:-i:Wu(i)?r[n]*parseFloat(i)/100:0;var a=an();return a[t]=-(r[t]+o),a}}function q1e(t,n){var e="joint-shape",i=n&&n.resetOffset;return function(r,o,a){var c=rs(a),u=c.data(e);if(!u||u.value!==r){var f=t(r);u={value:r,shape:f,shapeBBox:f.bbox()},c.data(e,u)}var w=u.shape.clone(),E=u.shapeBBox.clone(),B=E.origin(),Z=o.origin();E.x=Z.x,E.y=Z.y;var ee=o.maxRectScaleToFit(E,Z);return w.scale(0===E.width||0===o.width?1:ee.sx,0===E.height||0===o.height?1:ee.sy,B),i&&w.translate(-B.x,-B.y),w}}function X1e(t){var e=q1e(function n(i){return new Ur(ti.normalizePathData(i))},t);return function(i,r,o){return{d:e(i,r,o).serialize()}}}function $1e(t){var n=q1e(Is,t);return function(e,i,r){return{points:n(e,i,r).serialize()}}}function kE(t,n){var e=new an(1,0);return function(i){var r,o,a=this[t](i);return a?(o=n.rotate?a.vector().vectorAngle(e):0,r=a.start):(r=this.path.start,o=0),0===o?{transform:"translate("+r.x+","+r.y+")"}:{transform:"translate("+r.x+","+r.y+") rotate("+o+")"}}}function Q1e(t){return function(e,i,r){const o=ti(r);o.attr(t)!==e&&o.attr(t,e)}}function d8(t,n,e){return void 0!==e.text}function xb(){return this.model.isLink()}function ZH(t){var n={},e=t.stroke;"string"==typeof e&&(n.stroke=e,n.fill=e);var i=t.strokeOpacity;return void 0===i&&(i=t["stroke-opacity"]),void 0===i&&(i=t.opacity),void 0!==i&&(n["stroke-opacity"]=i,n["fill-opacity"]=i),n}function K1e(t){const{paper:n}=this;return`url(#${"pattern"===t.type?n.definePattern(t):n.defineGradient(t)})`}const ga={xlinkShow:{set:"xlink:show"},xlinkRole:{set:"xlink:role"},xlinkType:{set:"xlink:type"},xlinkArcrole:{set:"xlink:arcrole"},xlinkTitle:{set:"xlink:title"},xlinkActuate:{set:"xlink:actuate"},xmlSpace:{set:"xml:space"},xmlBase:{set:"xml:base"},xmlLang:{set:"xml:lang"},preserveAspectRatio:{set:"preserveAspectRatio"},requiredExtension:{set:"requiredExtension"},requiredFeatures:{set:"requiredFeatures"},systemLanguage:{set:"systemLanguage"},externalResourcesRequired:{set:"externalResourceRequired"},href:{set:Q1e("href")},xlinkHref:{set:Q1e("xlink:href")},filter:{qualify:o1,set:function(t){return"url(#"+this.paper.defineFilter(t)+")"}},fill:{qualify:o1,set:K1e},stroke:{qualify:o1,set:K1e},sourceMarker:{qualify:o1,set:function(t,n,e,i){return t=ro(ZH(i),t),{"marker-start":"url(#"+this.paper.defineMarker(t)+")"}}},targetMarker:{qualify:o1,set:function(t,n,e,i){return t=ro(ZH(i),{transform:"rotate(180)"},t),{"marker-end":"url(#"+this.paper.defineMarker(t)+")"}}},vertexMarker:{qualify:o1,set:function(t,n,e,i){return t=ro(ZH(i),t),{"marker-mid":"url(#"+this.paper.defineMarker(t)+")"}}},text:{qualify:function(t,n,e){return!e.textWrap||!o1(e.textWrap)},set:function(t,n,e,i){var r=rs(e),o="joint-text",a=r.data(o),c=H1e(i,"lineHeight","annotations","textPath","x","textVerticalAnchor","eol","displayEmpty");const{x:u}=c;QH(u)&&(c.x=KH(u,n));var f=c.fontSize=i["font-size"]||i.fontSize,w=JSON.stringify([t,c]);if(void 0===a||a!==w){f&&e.setAttribute("font-size",f);var E=c.textPath;if(uc(E)){var B=E.selector;if("string"==typeof B){var Z=this.findBySelector(B)[0];Z instanceof SVGPathElement&&(c.textPath=ro({"xlink:href":"#"+Z.id},E))}}ti(e).text(""+t,c),r.data(o,w)}}},textWrap:{qualify:o1,set:function(t,n,e,i){var r=t.width||0,o={};o.width=Wu(r)?n.width*parseFloat(r)/100:r<=0?n.width+r:r;var a=t.height||0;o.height=Wu(a)?n.height*parseFloat(a)/100:a<=0?n.height+a:a;var c,u=t.text;void 0===u&&(u=i.text),c=void 0!==u?N1e(""+u,o,{"font-weight":i["font-weight"]||i.fontWeight,"font-size":i["font-size"]||i.fontSize,"font-family":i["font-family"]||i.fontFamily,lineHeight:i.lineHeight,"letter-spacing":"letter-spacing"in i?i["letter-spacing"]:i.letterSpacing},{svgDocument:this.paper.svg,ellipsis:t.ellipsis,hyphen:t.hyphen,maxLineCount:t.maxLineCount}):"",ga.text.set.call(this,c,n,e,i)}},title:{qualify:function(t,n){return n instanceof SVGElement},set:function(t,n,e){var i=rs(e),r="joint-title",o=i.data(r);if(void 0===o||o!==t){i.data(r,t);var a=e.firstChild;if(a&&"TITLE"===a.tagName.toUpperCase())a.textContent=t;else{var c=document.createElementNS(e.namespaceURI,"title");c.textContent=t,e.insertBefore(c,a)}}}},lineHeight:{qualify:d8},textVerticalAnchor:{qualify:d8},textPath:{qualify:d8},annotations:{qualify:d8},eol:{qualify:d8},displayEmpty:{qualify:d8},port:{set:function(t){return null===t||void 0===t.id?t:t.id}},style:{qualify:o1,set:function(t,n,e){rs(e).css(t)}},html:{set:function(t,n,e){rs(e).html(t+"")}},ref:{},refX:{position:LE("x","width","origin")},refY:{position:LE("y","height","origin")},refDx:{position:LE("x","width","corner")},refDy:{position:LE("y","height","corner")},refWidth:{set:T4("width","width")},refHeight:{set:T4("height","height")},refRx:{set:T4("rx","width")},refRy:{set:T4("ry","height")},refRInscribed:{set:(n=T4("r","width"),e=T4("r","height"),function(i,r){return(r.height>r.width?n:e)(i,r)})},refRCircumscribed:{set:function(t,n){var e=Wu(t);t=parseFloat(t),e&&(t/=100);var r,i=Math.sqrt(n.height*n.height+n.width*n.width);return isFinite(t)&&(r=e||t>=0&&t<=1?t*i:Math.max(t+i,0)),{r}}},refCx:{set:T4("cx","width")},refCy:{set:T4("cy","height")},xAlignment:{offset:W1e("x","width","right")},yAlignment:{offset:W1e("y","height","bottom")},resetOffset:{offset:function(t,n){return t?{x:-n.x,y:-n.y}:{x:0,y:0}}},refDResetOffset:{set:X1e({resetOffset:!0})},refDKeepOffset:{set:X1e({resetOffset:!1})},refPointsResetOffset:{set:$1e({resetOffset:!0})},refPointsKeepOffset:{set:$1e({resetOffset:!1})},connection:{qualify:xb,set:function({stubs:t=0}){let n;if(isFinite(t)&&0!==t){let e;e=t<0?(this.getConnectionLength()+t)/2:t;const i=this.getConnection(),r=i.divideAtLength(e),o=i.divideAtLength(-e);r&&o&&(n=`${r[0].serialize()} ${o[1].serialize()}`)}return{d:n||this.getSerializedConnection()}}},atConnectionLengthKeepGradient:{qualify:xb,set:kE("getTangentAtLength",{rotate:!0})},atConnectionLengthIgnoreGradient:{qualify:xb,set:kE("getTangentAtLength",{rotate:!1})},atConnectionRatioKeepGradient:{qualify:xb,set:kE("getTangentAtRatio",{rotate:!0})},atConnectionRatioIgnoreGradient:{qualify:xb,set:kE("getTangentAtRatio",{rotate:!1})}};var n,e;ga["xlink:href"]=ga.xlinkHref,["transform","d","points","width","height","cx","cy","r","rx","ry","x1","x2","y1","y2","x","y","dx","dy"].forEach(t=>{ga[t]={qualify:QH,set:function(e,i){return{[t]:KH(e,i)}}}}),ga.refR=ga.refRInscribed,ga.refD=ga.refDResetOffset,ga.refPoints=ga.refPointsResetOffset,ga.atConnectionLength=ga.atConnectionLengthKeepGradient,ga.atConnectionRatio=ga.atConnectionRatioKeepGradient,ga.refX2=ga.refX,ga.refY2=ga.refY,ga.refWidth2=ga.refWidth,ga.refHeight2=ga.refHeight,ga["ref-x"]=ga.refX,ga["ref-y"]=ga.refY,ga["ref-dy"]=ga.refDy,ga["ref-dx"]=ga.refDx,ga["ref-width"]=ga.refWidth,ga["ref-height"]=ga.refHeight,ga["x-alignment"]=ga.xAlignment,ga["y-alignment"]=ga.yAlignment;const Z1e=ga,rp=p2.Model.extend({constructor:function(t,n){var e,i=t||{};"function"==typeof this.preinitialize&&this.preinitialize.apply(this,arguments),this.cid=n3t("c"),this.attributes={},n&&n.collection&&(this.collection=n.collection),n&&n.parse&&(i=this.parse(i,n)||{}),(e=Vl(this,"defaults"))&&(i=a1({},e,i)),this.set(i,n),this.changed={},this.initialize.apply(this,arguments)},translate:function(t,n,e){throw new Error("Must define a translate() method.")},toJSON:function(){const n=Vl(this.constructor.prototype,"defaults").attrs||{},i={};$u(this.attributes.attrs,function(o,a){const c=n[a];$u(o,function(u,f){uc(u)&&!Array.isArray(u)?$u(u,function(w,E){(!c||!c[f]||!bb(c[f][E],w))&&(i[a]=i[a]||{},(i[a][f]||(i[a][f]={}))[E]=w)}):(!c||!bb(c[f],u))&&(i[a]=i[a]||{},i[a][f]=u)})});const r=Xu(E4(this.attributes,"attrs"));return r.attrs=i,r},initialize:function(t){const n=this.getIdAttribute();(!t||!(n in t))&&this.set(n,this.generateId(),{silent:!0}),this._transitionIds={},this._scheduledTransitionIds={},this.processPorts(),this.on("change:attrs",this.processPorts,this)},getIdAttribute:function(){return this.idAttribute||"id"},generateId:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})},processPorts:function(){var t=this.ports,n={};$u(this.get("attrs"),function(o,a){o&&o.port&&(void 0!==o.port.id?n[o.port.id]=o.port:n[o.port]={id:o.port})});var e={};$u(t,function(o,a){n[a]||(e[a]=!0)}),this.graph&&!P4(e)&&(this.graph.getConnectedLinks(this,{inbound:!0}).forEach(function(o){e[o.get("target").port]&&o.remove()}),this.graph.getConnectedLinks(this,{outbound:!0}).forEach(function(o){e[o.get("source").port]&&o.remove()})),this.ports=n},remove:function(t={}){const{graph:n,collection:e}=this;if(!n)return e&&e.remove(this,t),this;n.startBatch("remove");const i=this.getParentCell();i&&i.unembed(this,t);const r=this.getEmbeddedCells();for(let o=0,a=r.length;othis!==e&&!this.isEmbeddedIn(e))},_embedCells:function(t,n){const e="embed";this.startBatch(e);const i=ro([],this.get("embeds"));t.forEach(r=>{i[r.isLink()?"unshift":"push"](r.id),r.parent(this.id,n)}),this.set("embeds",c8(i),n),this.stopBatch(e)},_unembedCells:function(t,n){const e="unembed";this.startBatch(e),t.forEach(i=>i.unset("parent",n)),this.set("embeds",XH(this.get("embeds"),...t.map(i=>i.id)),n),this.stopBatch(e)},getParentCell:function(){var t=this.parent(),n=this.graph;return t&&n&&n.getCell(t)||null},getAncestors:function(){var t=[];if(!this.graph)return t;for(var n=this.getParentCell();n;)t.push(n),n=n.getParentCell();return t},getEmbeddedCells:function(t){if(t=t||{},this.graph){var n;if(t.deep)if(t.breadthFirst){n=[];for(var e=this.getEmbeddedCells();e.length>0;){var i=e.shift();n.push(i),e.push.apply(e,i.getEmbeddedCells())}}else(n=this.getEmbeddedCells()).forEach(function(r){n.push.apply(n,r.getEmbeddedCells(t))});else n=Ma(this.get("embeds")).map(this.graph.getCell,this.graph);return n}return[]},isEmbeddedIn:function(t,n){var e=V1(t)?t:t.id,i=this.parent();if(n=qu({deep:!0},n),this.graph&&n.deep){for(;i;){if(i===e)return!0;i=this.graph.getCell(i).parent()}return!1}return i===e},isEmbedded:function(){return!!this.parent()},clone:function(t){if((t=t||{}).deep)return Ma(V1e([this].concat(this.getEmbeddedCells({deep:!0}))));var n=p2.Model.prototype.clone.apply(this,arguments);return n.set(this.getIdAttribute(),this.generateId()),n.unset("embeds"),n.unset("parent"),n},prop:function(t,n,e){var i="/",r=V1(t);if(r||Array.isArray(t)){if(arguments.length>1){var o,a;r?a=(o=t).split("/"):(o=t.join(i),a=t.slice());var c=a[0],u=a.length;if((e=e||{}).propertyPath=o,e.propertyValue=n,e.propertyPathArray=a,1===u)return this.set(c,n,e);for(var f={},w=f,E=c,B=1;B{u[t]&&(u[t]=XH(u[t],f),0===u[t].length&&delete u[t]),this.stopPendingTransitions(t,i),a=e.valueFunction(vb(this.attributes,t,i),n),this._transitionIds[t]=jH(E),this.trigger("transition:start",this,t)},e.delay,c),u[t]||(u[t]=[]),u[t].push(f),f},getTransitions:function(){return $H(Object.keys(this._transitionIds),Object.keys(this._scheduledTransitionIds))},stopScheduledTransitions:function(t,n="/"){const{_scheduledTransitionIds:e={}}=this;let i=Object.keys(e);if(t){const r=t.split(n);i=i.filter(o=>bb(r,o.split(n).slice(0,r.length)))}return i.forEach(r=>{e[r].forEach(a=>clearTimeout(a)),delete e[r]}),this},stopPendingTransitions(t,n="/"){const{_transitionIds:e={}}=this;let i=Object.keys(e);if(t){const r=t.split(n);i=i.filter(o=>bb(r,o.split(n).slice(0,r.length)))}i.forEach(r=>{WH(e[r]),delete e[r],this.trigger("transition:end",this,r)})},stopTransitions:function(t,n="/"){return this.stopScheduledTransitions(t,n),this.stopPendingTransitions(t,n),this},addTo:function(t,n){return t.addCell(this,n),this},findView:function(t){return t.findViewByModel(this)},isElement:function(){return!1},isLink:function(){return!1},startBatch:function(t,n){return this.graph&&this.graph.startBatch(t,ro({},n,{cell:this})),this},stopBatch:function(t,n){return this.graph&&this.graph.stopBatch(t,ro({},n,{cell:this})),this},getChangeFlag:function(t){var n=0;if(!t)return n;for(var e in t)!t.hasOwnProperty(e)||!this.hasChanged(e)||(n|=t[e]);return n},angle:function(){return 0},position:function(){return new an(0,0)},getPointFromConnectedLink:function(){return new an},getBBox:function(){return new rr(0,0,0,0)},getPointRotatedAroundCenter(t,n,e){const i=new an(n,e);return t&&i.rotate(this.getBBox().center(),t),i},getAbsolutePointFromRelative(t,n){return this.getPointRotatedAroundCenter(-this.angle(),this.position().offset(t,n))},getRelativePointFromAbsolute(t,n){return this.getPointRotatedAroundCenter(this.angle(),t,n).difference(this.position())}},{getAttributeDefinition:function(t){var n=this.attributes;return n&&n[t]||Z1e[t]},define:function(t,n,e,i){e=ro({defaults:qH({type:t},n,this.prototype.defaults)},e);var r=this.extend(e,i);return"undefined"!=typeof joint&&ip(joint,"shapes")&&UH(joint.shapes,t,r,"."),r}});function J1e(t,n,e){var i=t.toJSON();return i.angle=n||0,qu({},e,i)}function yb(t,n,e){return t.map(function(i,r,o){var a=this.pointAt((r+.5)/o.length);return(i.dx||i.dy)&&a.offset(i.dx||0,i.dy||0),J1e(a.round(),0,i)},Vm(n,e))}function e2e(t,n,e,i){var r=n.center(),o=n.width/n.height,a=n.topMiddle(),c=J2.fromRect(n);return t.map(function(u,f,w){var E=e+i(f,w.length),B=a.clone().rotate(r,-E).scale(o,1,r),Z=u.compensateRotation?-c.tangentTheta(B):0;return(u.dx||u.dy)&&B.offset(u.dx||0,u.dy||0),u.dr&&B.move(r,u.dr),J1e(B.round(),Z,u)})}function JH(t,n){var e=n.x;V1(e)&&(e=parseFloat(e)/100*t.width);var i=n.y;return V1(i)&&(i=parseFloat(i)/100*t.height),gb(e||0,i||0)}const c3t=function(t,n,e){return t.map(JH.bind(null,n))},l3t=function(t,n,e){return e.fn(t,n,e)},d3t=function(t,n,e){return yb(t,JH(n,e.start||n.origin()),JH(n,e.end||n.corner()))},u3t=function(t,n,e){return yb(t,n.origin(),n.bottomLeft())},h3t=function(t,n,e){return yb(t,n.topRight(),n.corner())},p3t=function(t,n,e){return yb(t,n.origin(),n.topRight())},f3t=function(t,n,e){return yb(t,n.bottomLeft(),n.corner())},g3t=function(t,n,e){var r=e.step||360/t.length;return e2e(t,n,e.startAngle||0,function(o){return o*r})},m3t=function(t,n,e){var r=e.step||20;return e2e(t,n,e.startAngle||0,function(o,a){return(o+.5-a/2)*r})};function A4(t,n){return qH({},t,n,{x:0,y:0,angle:0,attrs:{".":{y:"0","text-anchor":"start"}}})}function t2e(t,n,e,i){i=qu({},i,{offset:15});var a,c,u,f,r=n.center().theta(t),o=n2e(n),w=i.offset,E=0;ro[2]?(u=".3em",a=w,c=0,f="start"):rE[2]?(c=".3em",o=-f,a=0,u="end"):r-270&&r<-90?(u="start",o=r-180):u="end";var f=Math.round;return A4({x:f(a.x),y:f(a.y),angle:n?o:0,attrs:{".":{y:c,"text-anchor":u}}})}const _3t=function(t,n,e){return A4(e,n)},v3t=function(t,n,e){return A4(e,{x:-15,attrs:{".":{y:".3em","text-anchor":"end"}}})},C3t=function(t,n,e){return A4(e,{x:15,attrs:{".":{y:".3em","text-anchor":"start"}}})},b3t=function(t,n,e){return A4(e,{y:-15,attrs:{".":{"text-anchor":"middle"}}})},x3t=function(t,n,e){return A4(e,{y:15,attrs:{".":{y:".6em","text-anchor":"middle"}}})},y3t=function(t,n,e){return t2e(t,n,!0,e)},w3t=function(t,n,e){return t2e(t,n,!1,e)},M3t=function(t,n,e){return i2e(t,n,!0,e)},O3t=function(t,n,e){return i2e(t,n,!1,e)},S3t=function(t,n,e){return r2e(t.difference(n.center()),!1,e)},P3t=function(t,n,e){return r2e(t.difference(n.center()),!0,e)};var o2e=function(t){var n=Xu(t)||{};this.ports=[],this.groups={},this.portLayoutNamespace=x,this.portLabelLayoutNamespace=S,this._init(n)};o2e.prototype={getPorts:function(){return this.ports},getGroup:function(t){return this.groups[t]||{}},getPortsByGroup:function(t){return this.ports.filter(function(n){return n.group===t})},getGroupPortsMetrics:function(t,n){var e=this.getGroup(t),i=this.getPortsByGroup(t),r=e.position||{},o=r.name,a=this.portLayoutNamespace;a[o]||(o="left");var c=r.args||{},u=i.map(function(E){return E&&E.position&&E.position.args}),f=a[o](u,n,c),w={ports:i,result:[]};return Ma(f).reduce(function(E,B,Z){var ee=E.ports[Z];return E.result.push({portId:ee.id,portTransformation:B,labelTransformation:this._getPortLabelLayout(ee,an(B),n),portAttrs:ee.attrs,portSize:ee.size,labelSize:ee.label.size}),E}.bind(this),w),w.result},_getPortLabelLayout:function(t,n,e){var i=this.portLabelLayoutNamespace,r=t.label.position.name||"left";return i[r]?i[r](n,e,t.label.position.args):null},_init:function(t){if(uc(t.groups))for(var n=Object.keys(t.groups),e=0,i=n.length;e0},hasPort:function(t){return-1!==this.getPortIndex(t)},getPorts:function(){return Xu(this.prop("ports/items"))||[]},getGroupPorts:function(t){const n=Ma(this.prop(["ports","items"])).filter(e=>e.group===t);return Xu(n)},getPort:function(t){return Xu(Ma(this.prop("ports/items")).find(function(n){return n.id&&n.id===t}))},getPortsPositions:function(t){return this._portSettingsData.getGroupPortsMetrics(t,rr(this.size())).reduce(function(e,i){var r=i.portTransformation;return e[i.portId]={x:r.x,y:r.y,angle:r.angle},e},{})},getPortIndex:function(t){var n=uc(t)?t.id:t;return this._isValidPortId(n)?Ma(this.prop("ports/items")).findIndex(function(e){return e.id===n}):-1},addPort:function(t,n){if(!uc(t)||Array.isArray(t))throw new Error("Element: addPort requires an object.");var e=ro([],this.prop("ports/items"));return e.push(t),this.prop("ports/items",e,n),this},insertPort:function(t,n,e){const i="number"==typeof t?t:this.getPortIndex(t);if(!uc(n)||Array.isArray(n))throw new Error("dia.Element: insertPort requires an object.");const r=ro([],this.prop("ports/items"));return r.splice(i,0,n),this.prop("ports/items",r,e),this},portProp:function(t,n,e,i){var r=this.getPortIndex(t);if(-1===r)throw new Error("Element: unable to find port with id "+t);var o=Array.prototype.slice.call(arguments,1);return Array.isArray(n)?o[0]=["ports","items",r].concat(n):V1(n)?o[0]=["ports/items/",r,"/",n].join(""):(o=["ports/items/"+r],o1(n)&&(o.push(n),o.push(e))),this.prop.apply(this,o)},_validatePorts:function(){var t=this.get("ports")||{},n=[],e=Ma((t=t||{}).items);return e.forEach(function(i){"object"!=typeof i&&n.push("Element: invalid port ",i),this._isValidPortId(i.id)||(i.id=this.generatePortId())},this),c8(e,"id").length!==e.length&&n.push("Element: found id duplicities in ports."),n},generatePortId:function(){return this.generateId()},_isValidPortId:function(t){return null!=t&&!uc(t)},addPorts:function(t,n){return t.length&&this.prop("ports/items",ro([],this.prop("ports/items")).concat(t),n),this},removePort:function(t,n){const e=n||{},i=this.getPortIndex(t);if(-1!==i){const r=ro([],this.prop(["ports","items"]));r.splice(i,1),e.rewrite=!0,this.startBatch("port-remove"),this.prop(["ports","items"],r,e),this.stopBatch("port-remove")}return this},removePorts:function(t,n){let e,i;if(Array.isArray(t)){if(e=n||{},0===t.length)return this.this;i=ro([],this.prop(["ports","items"])).filter(function(o){return!t.some(function(a){const c=uc(a)?a.id:a;return o.id===c})})}else e=t||{},i=[];return this.startBatch("port-remove"),e.rewrite=!0,this.prop(["ports","items"],i,e),this.stopBatch("port-remove"),this},_createPortData:function(){var n,t=this._validatePorts();if(t.length>0)throw this.set("ports",this.previous("ports")),new Error(t.join(" "));this._portSettingsData&&(n=this._portSettingsData.getPorts()),this._portSettingsData=new o2e(this.get("ports"));var e=this._portSettingsData.getPorts();if(n){var i=e.filter(function(o){if(!n.find(function(a){return a.id===o.id}))return o}),r=n.filter(function(o){if(!e.find(function(a){return a.id===o.id}))return o});r.length>0&&this.trigger("ports:remove",this,r),i.length>0&&this.trigger("ports:add",this,i)}}},T3t={portContainerMarkup:"g",portMarkup:[{tagName:"circle",selector:"circle",attributes:{r:10,fill:"#FFFFFF",stroke:"#000000"}}],portLabelMarkup:[{tagName:"text",selector:"text",attributes:{fill:"#000000"}}],_portElementsCache:null,_initializePorts:function(){this._cleanPortsCache()},_refreshPorts:function(){this._removePorts(),this._cleanPortsCache(),this._renderPorts()},_cleanPortsCache:function(){this._portElementsCache={}},_renderPorts:function(){for(var t=[],n=this._getContainerElement(),e=0,i=n.node.childNodes.length;e1?ti("g").append(u):ti(u.firstChild),r=c.selectors}else n=ti(a),Array.isArray(n)&&(n=ti("g").append(n));if(!n)throw new Error("ElementView: Invalid port markup.");n.attr({port:t.id,"port-group":t.group});const f=this._getPortLabelMarkup(t.label);if(Array.isArray(f)){const{fragment:B,selectors:Z}=this.parseDOMJSON(f,o.node),ee=B.childNodes.length;ee>0&&(i=Z,e=1===ee?ti(B.firstChild):ti("g").append(B))}else e=ti(f),Array.isArray(e)&&(e=ti("g").append(e));var w;if(r&&i){for(var E in i)if(r[E]&&E!==this.selector)throw new Error("ElementView: selectors within port must be unique.");w=ro({},r,i)}else w=r||i;return o.append(n.addClass("joint-port-body")),e&&o.append(e.addClass("joint-port-label")),this._portElementsCache[t.id]={portElement:o,portLabelElement:e,portSelectors:w,portLabelSelectors:i,portContentElement:n,portContentSelectors:r},o},_updatePortGroup:function(t){for(var n=rr(this.model.size()),e=this.model._portSettingsData.getGroupPortsMetrics(t,n),i=0,r=e.length;iE.isElement());if(0===e.length)return this;this.startBatch("fit-embeds",t),t.deep&&Jh(e,"fitEmbeds",t);const{left:i,right:r,top:o,bottom:a}=s8(t.padding);let{x:c,y:u,width:f,height:w}=n.getCellsBBox(e);return c-=i,u-=o,f+=i+r,w+=a+o,this.set({position:{x:c,y:u},size:{width:f,height:w}},t),this.stopBatch("fit-embeds"),this},rotate:function(t,n,e,i){if(e){var r=this.getBBox().center(),o=this.get("size"),a=this.get("position");r.rotate(e,this.get("angle")-t);var c=r.x-o.width/2-a.x,u=r.y-o.height/2-a.y;this.startBatch("rotate",{angle:t,absolute:n,origin:e}),this.position(a.x+c,a.y+u,i),this.rotate(t,n,null,i),this.stopBatch("rotate")}else this.set("angle",n?t:(this.get("angle")+t)%360,i);return this},angle:function(){return ep(this.get("angle")||0)},getBBox:function(t={}){const{graph:n,attributes:e}=this,{deep:i,rotate:r}=t;if(i&&n){const E=this.getEmbeddedCells({deep:!0,breadthFirst:!0});return E.push(this),n.getCellsBBox(E,t)}const{angle:o=0,position:{x:a,y:c},size:{width:u,height:f}}=e,w=new rr(a,c,u,f);return r&&w.rotateAroundCenter(o),w},getPointFromConnectedLink:function(t,n){var e=this.getBBox(),i=e.center(),r=t.get(n);if(!r)return i;var o=r.port;if(!o||!this.hasPort(o))return i;var a=this.portProp(o,["group"]),c=this.getPortsPositions(a),u=new an(c[o]).offset(e.origin()),f=this.angle();return f&&u.rotate(i,-f),u}});ro(ms.prototype,E3t);const Um={},u8=p2.View.extend({options:{},theme:null,themeClassNamePrefix:Zh("theme-"),requireSetThemeOverride:!1,defaultTheme:ju.defaultTheme,children:null,childNodes:null,DETACHABLE:!0,UPDATE_PRIORITY:2,FLAG_INSERT:1<<30,FLAG_REMOVE:1<<29,constructor:function(t){this.requireSetThemeOverride=t&&!!t.theme,this.options=ro({},this.options,t),p2.View.call(this,t)},initialize:function(){Um[this.cid]=this,this.setTheme(this.options.theme||this.defaultTheme),this.init()},unmount:function(){this.svgElement?this.vel.remove():this.$el.remove()},renderChildren:function(t){if(t||(t=Vl(this,"children")),t){var n=this.svgElement,i=AE(t,ti.namespace[n?"svg":"xhtml"]);(n?this.vel:this.$el).empty().append(i.fragment),this.childNodes=i.selectors}return this},findAttribute:function(t,n){for(var e=n;e&&1===e.nodeType;){var i=e.getAttribute(t);if(i)return i;if(e===this.el)return null;e=e.parentNode}return null},_ensureElement:function(){if(this.el)this.setElement(Vl(this,"el"));else{var t=Vl(this,"tagName"),n=ro({},Vl(this,"attributes")),e=ro({},Vl(this,"style"));this.id&&(n.id=Vl(this,"id")),this.setElement(this._createElement(t)),this._setAttributes(n),this._setStyle(e)}this._ensureElClassName()},_setAttributes:function(t){this.svgElement?this.vel.attr(t):this.$el.attr(t)},_setStyle:function(t){this.$el.css(t)},_createElement:function(t){return this.svgElement?document.createElementNS(ti.namespace.svg,t):document.createElement(t)},_setElement:function(t){this.$el=t instanceof p2.$?t:p2.$(t),this.el=this.$el[0],this.svgElement&&(this.vel=ti(this.el))},_ensureElClassName:function(){var t=Vl(this,"className");if(t){var n=Zh(t);this.svgElement?this.vel.removeClass(t).addClass(n):this.$el.removeClass(t).addClass(n)}},init:function(){},onRender:function(){},confirmUpdate:function(){return 0},setTheme:function(t,n){return n=n||{},this.theme&&this.requireSetThemeOverride&&!n.override||(this.removeThemeClassName(),this.addThemeClassName(t),this.onSetTheme(this.theme,t),this.theme=t),this},addThemeClassName:function(t){if(!(t=t||this.theme))return this;var n=this.themeClassNamePrefix+t;return this.svgElement?this.vel.addClass(n):this.$el.addClass(n),this},removeThemeClassName:function(t){var n=this.themeClassNamePrefix+(t=t||this.theme);return this.svgElement?this.vel.removeClass(n):this.$el.removeClass(n),this},onSetTheme:function(t,n){},remove:function(){return this.onRemove(),this.undelegateDocumentEvents(),Um[this.cid]=null,p2.View.prototype.remove.apply(this,arguments),this},onRemove:function(){},getEventNamespace:function(){return".joint-event-ns-"+this.cid},delegateElementEvents:function(t,n,e){if(!n)return this;e||(e={});var i=this.getEventNamespace();for(var r in n){var o=n[r];"function"!=typeof o&&(o=this[o]),o&&rs(t).on(r+i,e,o.bind(this))}return this},undelegateElementEvents:function(t){return rs(t).off(this.getEventNamespace()),this},delegateDocumentEvents:function(t,n){return t||(t=Vl(this,"documentEvents")),this.delegateElementEvents(document,t,n)},undelegateDocumentEvents:function(){return this.undelegateElementEvents(document)},eventData:function(t,n){if(!t)throw new Error("eventData(): event object required.");var e=t.data,i="__"+this.cid+"__";return void 0===n?e&&e[i]||{}:(e||(e=t.data={}),e[i]||(e[i]={}),ro(e[i],n),this)},stopPropagation:function(t){return this.eventData(t,{propagationStopped:!0}),this},isPropagationStopped:function(t){return!!this.eventData(t).propagationStopped}},{extend:function(){var t=Array.from(arguments),n=t[0]&&ro({},t[0])||{},e=t[1]&&ro({},t[1])||{},i=n.render||this.prototype&&this.prototype.render||null;return n.render=function(){return"function"==typeof i&&i.apply(this,arguments),this.render.__render__===i&&this.onRender(),this},n.render.__render__=i,p2.View.extend.call(this,n,e)}});if(rs.event&&!("dbltap"in rs.event.special)){const t=ju.doubleTapInterval,n=30;rs.event.special.dbltap={bindType:"touchend",delegateType:"touchend",handle:function(e,...i){const{handleObj:r,target:o}=e,a=rs.data(o),c=(new Date).getTime(),u="lastTouch"in a?c-a.lastTouch:0;un?(a.lastTouch=null,e.type=r.origType,r.handler.call(this,e,...i)):a.lastTouch=c}}}function eV(t){return t?Array.isArray(t)?t:[t]:[]}const D4=u8.extend({tagName:"g",svgElement:!0,className:"highlight",HIGHLIGHT_FLAG:1,UPDATE_PRIORITY:3,DETACHABLE:!1,UPDATABLE:!0,MOUNTABLE:!0,cellView:null,nodeSelector:null,node:null,updateRequested:!1,transformGroup:null,requestUpdate(t,n){const{paper:e}=t;this.cellView=t,this.nodeSelector=n,e&&(this.updateRequested=!0,e.requestViewUpdate(this,this.HIGHLIGHT_FLAG,this.UPDATE_PRIORITY))},confirmUpdate(){this.updateRequested=!1;const{cellView:t,nodeSelector:n}=this;return this.update(t,n),this.mount(),this.transform(),0},findNode(t,n=null){let e;if("string"==typeof n)[e]=t.findBySelector(n);else if(o1(n)){const i=t.model.isLink(),{label:r=null,port:o,selector:a}=n;i&&null!==r?e=t.findLabelNode(r,a):!i&&o?e=t.findPortNode(o,a):[e]=t.findBySelector(a)}else n&&(e=ti.toNode(n),e instanceof SVGElement||(e=null));return e||null},mount(){const{MOUNTABLE:t,cellView:n,el:e,options:i,transformGroup:r}=this;if(!t||r)return;const{vel:o,paper:a}=n,{layer:c}=i;if(c){const u=this.transformGroup=ti("g").addClass("highlight-transform").append(e);a.getLayerView(c).insertSortedNode(u.node,i.z)}else(!e.parentNode||e.nextSibling)&&o.append(e)},unmount(){const{MOUNTABLE:t,transformGroup:n,vel:e}=this;!t||(n?(this.transformGroup=null,n.remove()):e.remove())},transform(){const{transformGroup:t,cellView:n,updateRequested:e}=this;if(!t||n.model.isLink()||e)return;const i=n.getRootTranslateMatrix(),r=n.getRootRotateMatrix(),o=i.multiply(r);t.attr("transform",ti.matrixToTransformString(o))},update(){const{node:t,cellView:n,nodeSelector:e,updateRequested:i,id:r}=this;if(i)return;const o=this.node=this.findNode(n,e);t&&this.unhighlight(n,t),o?(this.highlight(n,o),this.mount()):(this.unmount(),n.notify("cell:highlight:invalid",r,this))},onRemove(){const{node:t,cellView:n,id:e,constructor:i}=this;t&&this.unhighlight(n,t),this.unmount(),i._removeRef(n,e)},highlight(t,n){},unhighlight(t,n){}},{_views:{},highlight:function(t,n,e){const i=this.uniqueId(n,e);this.add(t,n,i,e)},unhighlight:function(t,n,e){const i=this.uniqueId(n,e);this.remove(t,i)},get(t,n=null){const{cid:e}=t,{_views:i}=this,r=i[e];if(null===n){const o=[];if(!r)return o;for(let a in r){const c=r[a];c instanceof this&&o.push(c)}return o}if(!r)return null;if(n in r){const o=r[n];if(o instanceof this)return o}return null},add(t,n,e,i={}){if(!e)throw new Error("dia.HighlighterView: An ID required.");const r=D4.get(t,e);r&&r.remove();const o=new this(i);return o.id=e,this._addRef(t,e,o),o.requestUpdate(t,n),o},_addRef(t,n,e){const{cid:i}=t,{_views:r}=this;let o=r[i];o||(o=r[i]={}),o[n]=e},_removeRef(t,n){const{cid:e}=t,{_views:i}=this,r=i[e];if(r){n&&delete r[n];for(let o in r)return;delete i[e]}},remove(t,n=null){eV(this.get(t,n)).forEach(e=>{e.remove()})},update(t,n=null,e=!1){eV(this.get(t,n)).forEach(i=>{(e||i.UPDATABLE)&&i.update()})},transform(t,n=null){eV(this.get(t,n)).forEach(e=>{e.UPDATABLE&&e.transform()})},uniqueId:(t,n="")=>ti.ensureId(t)+JSON.stringify(n)}),h8={DEFAULT:"default",EMBEDDING:"embedding",CONNECTING:"connecting",MAGNET_AVAILABILITY:"magnetAvailability",ELEMENT_AVAILABILITY:"elementAvailability"},Ha=u8.extend({tagName:"g",svgElement:!0,selector:"root",metrics:null,className:function(){var t=["cell"],n=this.model.get("type");return n&&n.toLowerCase().split(".").forEach(function(e,i,r){t.push("type-"+r.slice(0,i+1).join("-"))}),t.join(" ")},_presentationAttributes:null,_flags:null,setFlags:function(){var i,r,o,t={},n={},e=0,a=Vl(this,"presentationAttributes");for(var c in a)if(a.hasOwnProperty(c)){var u=a[c];for(Array.isArray(u)||(u=[u]),i=0,r=u.length;i25)throw new Error("dia.CellView: Maximum number of flags exceeded.");this._flags=t,this._presentationAttributes=n},hasFlag:function(t,n){return t&this.getFlag(n)},removeFlag:function(t,n){return t^t&this.getFlag(n)},getFlag:function(t){var n=this._flags;if(!n)return 0;var e=0;if(Array.isArray(t))for(var i=0,r=t.length;i0&&e.requestViewUpdate(this,t,this.UPDATE_PRIORITY,n)},parseDOMJSON:function(t,n){var e=AE(t),i=e.selectors,r=e.groupSelectors;for(var o in r){if(i[o])throw new Error("dia.CellView: ambiguous group selector");i[o]=r[o]}if(n){var a=this.selector;if(i[a])throw new Error("dia.CellView: ambiguous root selector.");i[a]=n}return{fragment:e.fragment,selectors:i}},can:function(t){var n=gs(this.options.interactive)?this.options.interactive(this):this.options.interactive;return uc(n)&&!1!==n[t]||function(t){return!0===t||!1===t||!!t&&"object"==typeof t&&"[object Boolean]"===Object.prototype.toString.call(t)}(n)&&!1!==n},findBySelector:function(t,n,e){if(n||(n=this.el),e||(e=this.selectors),!t||"."===t)return[n];if(e){var i=e[t];if(i)return Array.isArray(i)?i:[i]}return ju.useCSSSelectors?rs(n).find(t).toArray():[]},notify:function(t){if(this.paper){var n=Array.prototype.slice.call(arguments,1);this.trigger.apply(this,[t].concat(n)),this.paper.trigger.apply(this.paper,[t,this].concat(n))}},getBBox:function(t){var n;if(t&&t.useModelGeometry){var e=this.model;n=e.getBBox().bbox(e.angle())}else n=this.getNodeBBox(this.el);return this.paper.localToPaperRect(n)},getNodeBBox:function(t){var n=this.getNodeBoundingRect(t),e=this.getNodeMatrix(t),i=this.getRootTranslateMatrix(),r=this.getRootRotateMatrix();return ti.transformRect(n,i.multiply(r).multiply(e))},getNodeUnrotatedBBox:function(t){var n=this.getNodeBoundingRect(t),e=this.getNodeMatrix(t),i=this.getRootTranslateMatrix();return ti.transformRect(n,i.multiply(e))},getRootTranslateMatrix:function(){var n=this.model.position();return ti.createSVGMatrix().translate(n.x,n.y)},getRootRotateMatrix:function(){var t=ti.createSVGMatrix(),n=this.model,e=n.angle();if(e){var i=n.getBBox(),r=i.width/2,o=i.height/2;t=t.translate(r,o).rotate(e).translate(-r,-o)}return t},_notifyHighlight:function(t,n,e={}){const{el:i}=this;let r;if([r=i]="string"==typeof n?this.findBySelector(n):this.$(n),e.partial=r!==i,void 0===e.type){let o;switch(!0){case e.embedding:o=h8.EMBEDDING;break;case e.connecting:o=h8.CONNECTING;break;case e.magnetAvailability:o=h8.MAGNET_AVAILABILITY;break;case e.elementAvailability:o=h8.ELEMENT_AVAILABILITY;break;default:o=h8.DEFAULT}e.type=o}return this.notify(t,r,e),this},highlight:function(t,n){return this._notifyHighlight("cell:highlight",t,n)},unhighlight:function(t,n={}){return this._notifyHighlight("cell:unhighlight",t,n)},findMagnet:function(t){const n=this.el;let e=this.$(t)[0];e||(e=n);do{const i=e.getAttribute("magnet"),r=e===n;if((i||r)&&"false"!==i)return e;if(r)return;e=e.parentNode}while(e)},findProxyNode:function(t,n){t||(t=this.el);const e=t.getAttribute(`${n}-selector`);if(e){const[i]=this.findBySelector(e);if(i)return i}return t},getSelector:function(t,n){var e;if(t===this.el)return"string"==typeof n&&(e="> "+n),e;if(t){var i=ti(t).index()+1;e=t.tagName+":nth-child("+i+")",n&&(e+=" > "+n),e=this.getSelector(t.parentNode,e)}return e},addLinkFromMagnet:function(t,n,e){var i=this.paper,r=i.model,o=i.getDefaultLink(this,t);return o.set({source:this.getLinkEnd(t,n,e,o,"source"),target:{x:n,y:e}}).addTo(r,{async:!1,ui:!0}),o.findView(i)},getLinkEnd:function(t,...n){var e=this.model,i=e.id,r=this.findAttribute("port",t),o=t.getAttribute("joint-selector"),a={id:i};return null!=o&&(a.magnet=o),null!=r?(a.port=r,!e.hasPort(r)&&!o&&(a.selector=this.getSelector(t))):null==o&&this.el!==t&&(a.selector=this.getSelector(t)),this.customizeLinkEnd(a,t,...n)},customizeLinkEnd:function(t,n,e,i,r,o){const{paper:a}=this,{connectionStrategy:c}=a.options;if("function"==typeof c){var u=c.call(a,t,this,n,new an(e,i),r,o,a);if(u)return u}return t},getMagnetFromLinkEnd:function(t){var o,n=this.el,e=t.port,i=t.magnet,r=this.model;return null!=e&&r.isElement()&&r.hasPort(e)?o=this.findPortNode(e,i)||n:(i||(i=t.selector),!i&&null!=e&&(i='[port="'+e+'"]'),o=this.findBySelector(i,n,this.selectors)[0]),this.findProxyNode(o,"magnet")},dragLinkStart:function(t,n,e,i){this.model.startBatch("add-link");const r=this.addLinkFromMagnet(n,e,i);r.notifyPointerdown(t,e,i),r.eventData(t,r.startArrowheadMove("target",{whenNotAllowed:"remove"})),this.eventData(t,{linkView:r})},dragLink:function(t,n,e){var i=this.eventData(t),r=i.linkView;if(r)r.pointermove(t,n,e);else{var o=this.paper,a=o.options.magnetThreshold,c=this.getEventTarget(t),u=i.targetMagnet;if("onleave"===a){if(u===c||ti(u).contains(c))return}else if(o.eventData(t).mousemoved<=a)return;this.dragLinkStart(t,u,n,e)}},dragLinkEnd:function(t,n,e){var r=this.eventData(t).linkView;!r||(r.pointerup(t,n,e),this.model.stopBatch("add-link"))},getAttributeDefinition:function(t){return this.model.constructor.getAttributeDefinition(t)},setNodeAttributes:function(t,n){P4(n)||(t instanceof SVGElement?ti(t).attr(n):rs(t).attr(n))},processNodeAttributes:function(t,n){var e,i,r,o,a,c,u,f,w,E=[];for(e in n)!n.hasOwnProperty(e)||(i=n[e],!(r=this.getAttributeDefinition(e))||gs(r.qualify)&&!r.qualify.call(this,i,t,n)?(c||(c={}),c[jpt(e)]=i):(V1(r.set)&&(c||(c={}),c[r.set]=i),null!==i&&E.push(e,r)));for(o=0,a=E.length;o0&&Je.height>0){var gt=ti.transformRect(Je,ee).scale(1/_e,1/Pe);for(r in E)o=E[r],(Ie=this.getAttributeDefinition(r).offset.call(this,o,gt,t,c))&&(be.offset(an(Ie).scale(_e,Pe)),Ye||(Ye=!0))}}(void 0!==Z||Re||Ye)&&(be.round(1),ee.e=be.x,ee.f=be.y,t.setAttribute("transform",ti.matrixToTransformString(ee)))}},getNodeScale:function(t,n){var e,i;if(n&&n.contains(t)){var r=n.scale();e=1/r.sx,i=1/r.sy}else e=1,i=1;return{sx:e,sy:i}},cleanNodesCache:function(){this.metrics={}},nodeCache:function(t){var n=this.metrics;if(!n)return{};var e=ti.ensureId(t),i=n[e];return i||(i=n[e]={}),i},getNodeData:function(t){var n=this.nodeCache(t);return n.data||(n.data={}),n.data},getNodeBoundingRect:function(t){var n=this.nodeCache(t);return void 0===n.boundingRect&&(n.boundingRect=ti(t).getBBox()),new rr(n.boundingRect)},getNodeMatrix:function(t){var n=this.nodeCache(t);if(void 0===n.magnetMatrix){var e=this.rotatableNode||this.el;n.magnetMatrix=ti(t).getTransformToElement(e)}return ti.createSVGMatrix(n.magnetMatrix)},getNodeShape:function(t){var n=this.nodeCache(t);return void 0===n.geometryShape&&(n.geometryShape=ti(t).toGeometryShape()),n.geometryShape.clone()},isNodeConnection:function(t){return this.model.isLink()&&(!t||t===this.el)},findNodesAttributes:function(t,n,e,i){var r,o,a,c,u={},f=[];for(var w in t)if(t.hasOwnProperty(w)&&o1(a=t[w])){var E=e[w]=this.findBySelector(w,n,i);for(r=0,o=E.length;r-1?a.splice(ge,0,c):a.push(c)}else o.push(c)}else this.setNodeAttributes(u,E.normal);o.push(...a);for(var Re,Ye=0,Je=o.length;Ye0&&(o=!0);var a=r.getBBox({recursive:o});r.attr("transform","scale("+i.width/(a.width||1)+","+i.height/(a.height||1)+")");var f=this.rotatableNode,w=f&&f.attr("transform");if(w){f.attr("transform",w+" rotate("+-e+","+i.width/2+","+i.height/2+")");var E=r.getBBox({target:this.paper.cells});n.set("position",{x:E.x,y:E.y},ro({updateHandled:!0},t)),this.translate(),this.rotate()}this.update()},prepareEmbedding:function(t={}){const n=t.model||this.model,i=(t.paper||this.paper).model,r=t.initialZIndices={},o=n.getEmbeddedCells({deep:!0}),a=i.getConnectedLinks(n,{deep:!0,includeEnclosed:!0});[n,...o,...a].forEach(f=>r[f.id]=f.attributes.z),n.startBatch("to-front"),n.toFront({deep:!0,ui:!0});const c=i.getElements().reduce((f,w)=>Math.max(f,w.attributes.z||0),0);a.forEach(f=>{f.attributes.z<=c&&f.set("z",c+1,{ui:!0})}),n.stopBatch("to-front");const u=n.parent();u?(i.getCell(u).unembed(n,{ui:!0}),t.initialParentId=u):t.initialParentId=null},processEmbedding:function(t={},n,e,i){const r=t.model||this.model,o=t.paper||this.paper,a=o.model,{findParentBy:c,frontParentOnly:u,validateEmbedding:f}=o.options;let w;w=gs(c)?Ma(c.call(a,this,n,e,i)):"pointer"===c?Ma(a.findModelsFromPoint({x:e,y:i})):a.findModelsUnderElement(r,{searchBy:c}),w=w.filter(Z=>Z instanceof rp&&r.id!==Z.id&&!Z.isEmbeddedIn(r)),u&&(w=w.slice(-1));let E=null;const B=t.candidateEmbedView;for(let Z=w.length-1;Z>=0;Z--){const ee=w[Z];if(B&&B.model.id==ee.id){E=B;break}{const be=ee.findView(o);if(!gs(f)||f.call(o,this,be)){E=be;break}}}E&&E!=B&&(this.clearEmbedding(t),t.candidateEmbedView=E.highlight(E.findProxyNode(null,"container"),{embedding:!0})),!E&&B&&this.clearEmbedding(t)},clearEmbedding:function(t){t||(t={});var n=t.candidateEmbedView;n&&(n.unhighlight(n.findProxyNode(null,"container"),{embedding:!0}),t.candidateEmbedView=null)},finalizeEmbedding:function(t={}){const n=t.candidateEmbedView,e=t.model||this.model,i=t.paper||this.paper;if(n)n.model.embed(e,{ui:!0}),n.unhighlight(n.findProxyNode(null,"container"),{embedding:!0}),t.candidateEmbedView=null;else{const{validateUnembedding:r}=i.options,{initialParentId:o}=t;if(o&&"function"==typeof r&&!r.call(i,this))return void this._disallowUnembed(t)}i.model.getConnectedLinks(e,{deep:!0}).forEach(r=>{r.reparent({ui:!0})})},_disallowUnembed:function(t){const{model:n,whenNotAllowed:e="revert"}=t,i=n||this.model,o=(t.paper||this.paper).model;switch(e){case"remove":i.remove({ui:!0});break;case"revert":{const{initialParentId:a,initialPosition:c,initialZIndices:u}=t;if(c){const{x:w,y:E}=c;i.position(w,E,{deep:!0,ui:!0})}u&&Object.keys(u).forEach(w=>{const E=o.getCell(w);E&&E.set("z",u[w],{ui:!0})});const f=o.getCell(a);f&&f.embed(i,{ui:!0});break}}},getDelegatedView:function(){for(var t=this,n=t.model,e=t.paper;t&&!n.isLink();){if(!n.isEmbedded()||t.can("stopDelegation"))return t;n=n.getParentCell(),t=e.findViewByModel(n)}return null},findProxyNode:function(t,n){t||(t=this.el);const e=t.getAttribute(`${n}-selector`);if(e){const i=this.findAttribute("port",t);if(i){const r=this.findPortNode(i,e);if(r)return r}else{const[r]=this.findBySelector(e);if(r)return r}}return t},notifyPointerdown(t,n,e){Ha.prototype.pointerdown.call(this,t,n,e),this.notify("element:pointerdown",t,n,e)},notifyPointermove(t,n,e){Ha.prototype.pointermove.call(this,t,n,e),this.notify("element:pointermove",t,n,e)},notifyPointerup(t,n,e){this.notify("element:pointerup",t,n,e),Ha.prototype.pointerup.call(this,t,n,e)},pointerdblclick:function(t,n,e){Ha.prototype.pointerdblclick.apply(this,arguments),this.notify("element:pointerdblclick",t,n,e)},pointerclick:function(t,n,e){Ha.prototype.pointerclick.apply(this,arguments),this.notify("element:pointerclick",t,n,e)},contextmenu:function(t,n,e){Ha.prototype.contextmenu.apply(this,arguments),this.notify("element:contextmenu",t,n,e)},pointerdown:function(t,n,e){this.isPropagationStopped(t)||(this.notifyPointerdown(t,n,e),this.dragStart(t,n,e))},pointermove:function(t,n,e){var i=this.eventData(t);switch(i.action){case"magnet":this.dragMagnet(t,n,e);break;case"move":(i.delegatedView||this).drag(t,n,e);default:this.notifyPointermove(t,n,e)}this.eventData(t,i)},pointerup:function(t,n,e){var i=this.eventData(t);switch(i.action){case"magnet":this.dragMagnetEnd(t,n,e);break;case"move":(i.delegatedView||this).dragEnd(t,n,e);default:this.notifyPointerup(t,n,e)}var r=i.targetMagnet;r&&this.magnetpointerclick(t,r,n,e),this.checkMouseleave(t)},mouseover:function(t){Ha.prototype.mouseover.apply(this,arguments),this.notify("element:mouseover",t)},mouseout:function(t){Ha.prototype.mouseout.apply(this,arguments),this.notify("element:mouseout",t)},mouseenter:function(t){Ha.prototype.mouseenter.apply(this,arguments),this.notify("element:mouseenter",t)},mouseleave:function(t){Ha.prototype.mouseleave.apply(this,arguments),this.notify("element:mouseleave",t)},mousewheel:function(t,n,e,i){Ha.prototype.mousewheel.apply(this,arguments),this.notify("element:mousewheel",t,n,e,i)},onmagnet:function(t,n,e){this.dragMagnetStart(t,n,e)},magnetpointerdblclick:function(t,n,e,i){this.notify("element:magnet:pointerdblclick",t,n,e,i)},magnetcontextmenu:function(t,n,e,i){this.notify("element:magnet:contextmenu",t,n,e,i)},dragStart:function(t,n,e){var i=this.getDelegatedView();if(!i||!i.can("elementMove"))return;this.eventData(t,{action:"move",delegatedView:i});const r=i.model.position();i.eventData(t,{initialPosition:r,pointerOffset:r.difference(n,e),restrictedArea:this.paper.getRestrictedArea(i,n,e)})},dragMagnetStart:function(t,n,e){if(this.can("addLinkFromMagnet")){var i=t.currentTarget,r=this.paper;this.eventData(t,{targetMagnet:i}),t.stopPropagation(),r.options.validateMagnet(this,i,t)?(r.options.magnetThreshold<=0&&this.dragLinkStart(t,i,n,e),this.eventData(t,{action:"magnet"}),this.stopPropagation(t)):this.pointerdown(t,n,e),r.delegateDragEvents(this,t.data)}},drag:function(t,n,e){var i=this.paper,r=i.options.gridSize,o=this.model,a=this.eventData(t),{pointerOffset:c,restrictedArea:u,embedding:f}=a,w=Hm(n+c.x,r),E=Hm(e+c.y,r);o.position(w,E,{restrictedArea:u,deep:!0,ui:!0}),i.options.embeddingMode&&(f||(this.prepareEmbedding(a),f=!0),this.processEmbedding(a,t,n,e)),this.eventData(t,{embedding:f})},dragMagnet:function(t,n,e){this.dragLink(t,n,e)},dragEnd:function(t,n,e){var i=this.eventData(t);i.embedding&&this.finalizeEmbedding(i)},dragMagnetEnd:function(t,n,e){this.dragLinkEnd(t,n,e)},magnetpointerclick:function(t,n,e,i){var r=this.paper;r.eventData(t).mousemoved>r.options.clickThreshold||this.notify("element:magnet:pointerclick",t,n,e,i)}},{Flags:Va});ro(Vc.prototype,T3t);const s2e={_results:{},_tests:{svgforeignobject:function(){return!!document.createElementNS&&/SVGForeignObject/.test({}.toString.call(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")))}},addTest:function(t,n){return this._tests[t]=n},test:function(t){var n=this._tests[t];if(!n)throw new Error('Test not defined ("'+t+'"). Use `joint.env.addTest(name, fn) to add a new test.`');var e=this._results[t];if(void 0!==e)return e;try{e=n()}catch(i){e=!1}return this._results[t]=e,e}},es=ms.define("basic.Generic",{attrs:{".":{fill:"#ffffff",stroke:"none"}}}),A3t=es.define("basic.Rect",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:100,height:60},text:{fill:"#000000",text:"","font-size":14,"ref-x":.5,"ref-y":.5,"text-anchor":"middle","y-alignment":"middle","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),D3t=Vc.extend({presentationAttributes:Vc.addPresentationAttributes({attrs:["SCALE"]}),confirmUpdate:function(){var t=Vc.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"SCALE")&&(this.resize(),t=this.removeFlag(t,"SCALE")),t}}),L3t=es.define("basic.Text",{attrs:{text:{"font-size":18,fill:"#000000"}}},{markup:''}),tV=es.define("basic.Circle",{size:{width:60,height:60},attrs:{circle:{fill:"#ffffff",stroke:"#000000",r:30,cx:30,cy:30},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),k3t=es.define("basic.Ellipse",{size:{width:60,height:40},attrs:{ellipse:{fill:"#ffffff",stroke:"#000000",rx:30,ry:20,cx:30,cy:20},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-y":.5,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),I3t=es.define("basic.Polygon",{size:{width:60,height:40},attrs:{polygon:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),N3t=es.define("basic.Polyline",{size:{width:60,height:40},attrs:{polyline:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),R3t=es.define("basic.Image",{attrs:{text:{"font-size":14,text:"","text-anchor":"middle","ref-x":.5,"ref-dy":20,"y-alignment":"middle",fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),c2e=es.define("basic.Path",{size:{width:60,height:60},attrs:{path:{fill:"#ffffff",stroke:"#000000"},text:{"font-size":14,text:"","text-anchor":"middle",ref:"path","ref-x":.5,"ref-dy":10,fill:"#000000","font-family":"Arial, helvetica, sans-serif"}}},{markup:''}),z3t=c2e.define("basic.Rhombus",{attrs:{path:{d:"M 30 0 L 60 30 30 60 0 30 z"},text:{"ref-y":.5,"ref-dy":null,"y-alignment":"middle"}}}),IE=s2e.test("svgforeignobject"),F3t=es.define("basic.TextBlock",{attrs:{rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000","font-size":14,"font-family":"Arial, helvetica, sans-serif"},".content":{text:"","ref-x":.5,"ref-y":.5,"y-alignment":"middle","x-alignment":"middle"}},content:""},{markup:['','',IE?'
':'',""].join(""),initialize:function(){this.listenTo(this,"change:size",this.updateSize),this.listenTo(this,"change:content",this.updateContent),this.updateSize(this,this.get("size")),this.updateContent(this,this.get("content")),es.prototype.initialize.apply(this,arguments)},updateSize:function(t,n){this.attr({".fobj":ro({},n),div:{style:ro({},n)}})},updateContent:function(t,n){this.attr(IE?{".content":{html:qpt(n)}}:{".content":{text:n}})},setForeignObjectSize:function(){this.updateSize.apply(this,arguments)},setDivContent:function(){this.updateContent.apply(this,arguments)}}),H3t=Vc.extend({presentationAttributes:IE?Vc.prototype.presentationAttributes:Vc.addPresentationAttributes({content:["CONTENT"],size:["CONTENT"]}),initFlag:["RENDER","CONTENT"],confirmUpdate:function(){var t=Vc.prototype.confirmUpdate.apply(this,arguments);return this.hasFlag(t,"CONTENT")&&(this.updateContent(this.model),t=this.removeFlag(t,"CONTENT")),t},update:function(t,n){var e=this.model;if(IE)Vc.prototype.update.call(this,e,n);else{var i=E4(n||e.get("attrs"),".content");Vc.prototype.update.call(this,e,i),(!n||ip(n,".content"))&&this.updateContent(e,n)}},updateContent:function(t,n){var e=a1({},(n||t.get("attrs"))[".content"]);e=E4(e,"text");var i=N1e(t.get("content"),t.get("size"),e,{svgDocument:this.paper.svg}),r=UH({},".content",e,"/");r[".content"].text=i,Vc.prototype.update.call(this,t,r)}}),s1=rp.extend({markup:['','','','','','','',''].join(""),toolMarkup:['','','','',"Remove link.","",'','','',"Link options.","",""].join(""),doubleToolMarkup:void 0,vertexMarkup:['','','','',"Remove vertex.","",""].join(""),arrowheadMarkup:['','',""].join(""),defaultLabel:void 0,labelMarkup:void 0,_builtins:{defaultLabel:{markup:[{tagName:"rect",selector:"rect"},{tagName:"text",selector:"text"}],attrs:{text:{fill:"#000000",fontSize:14,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},rect:{ref:"text",fill:"#ffffff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}}},defaults:{type:"link",source:{},target:{}},isLink:function(){return!0},disconnect:function(t){return this.set({source:{x:0,y:0},target:{x:0,y:0}},t)},source:function(t,n,e){return void 0===t?np(this.get("source")):t instanceof rp?((i=np(n)||{}).id=t.id,this.set("source",i,e)):o1(t)?this.set("source",i=t,n):((i=np(n)||{}).x=t.x,i.y=t.y,this.set("source",i,e));var i},target:function(t,n,e){return void 0===t?np(this.get("target")):t instanceof rp?((i=np(n)||{}).id=t.id,this.set("target",i,e)):o1(t)?this.set("target",i=t,n):((i=np(n)||{}).x=t.x,i.y=t.y,this.set("target",i,e));var i},router:function(t,n,e){if(void 0===t){var i=this.get("router");return i?"object"==typeof i?np(i):i:this.get("manhattan")?{name:"orthogonal"}:null}var r="object"==typeof t||"function"==typeof t;return this.set("router",r?t:{name:t,args:n},r?n:e)},connector:function(t,n,e){if(void 0===t){var i=this.get("connector");return i?"object"==typeof i?np(i):i:this.get("smooth")?{name:"smooth"}:null}var r="object"==typeof t||"function"==typeof t;return this.set("connector",r?t:{name:t,args:n},r?n:e)},label:function(t,n,e){var i=this.labels();return(t=isFinite(t)&&null!==t?0|t:0)<0&&(t=i.length+t),arguments.length<=1?this.prop(["labels",t]):this.prop(["labels",t],n,e)},labels:function(t,n){return 0===arguments.length?(t=this.get("labels"),Array.isArray(t)?t.slice():[]):(Array.isArray(t)||(t=[]),this.set("labels",t,n))},hasLabels:function(){const{labels:t}=this.attributes;return Array.isArray(t)&&t.length>0},insertLabel:function(t,n,e){if(!n)throw new Error("dia.Link: no label provided");var i=this.labels(),r=i.length;return(t=isFinite(t)&&null!==t?0|t:r)<0&&(t=r+t+1),i.splice(t,0,n),this.labels(i,e)},appendLabel:function(t,n){return this.insertLabel(-1,t,n)},removeLabel:function(t,n){var e=this.labels();return t=isFinite(t)&&null!==t?0|t:-1,e.splice(t,1),this.labels(e,n)},vertex:function(t,n,e){var i=this.vertices();if((t=isFinite(t)&&null!==t?0|t:0)<0&&(t=i.length+t),arguments.length<=1)return this.prop(["vertices",t]);var r=this._normalizeVertex(n);return this.prop(["vertices",t],r,e)},vertices:function(t,n){if(0===arguments.length)return t=this.get("vertices"),Array.isArray(t)?t.slice():[];Array.isArray(t)||(t=[]);for(var e=[],i=0;i0&&(e.vertices=o.map(t)),this.set(e,n)},getSourcePoint:function(){var t=this.getSourceCell();return t?t.getPointFromConnectedLink(this,"source"):new an(this.source())},getTargetPoint:function(){var t=this.getTargetCell();return t?t.getPointFromConnectedLink(this,"target"):new an(this.target())},getPointFromConnectedLink:function(){return this.getPolyline().pointAt(.5)},getPolyline:function(){const t=[this.getSourcePoint(),...this.vertices().map(an),this.getTargetPoint()];return new Is(t)},getBBox:function(){return this.getPolyline().bbox()},reparent:function(t){var n;if(this.graph){var e=this.getSourceElement(),i=this.getTargetElement(),r=this.getParentCell();e&&i&&(n=e===i||e.isEmbeddedIn(i)?i:i.isEmbeddedIn(e)?e:this.graph.getCommonAncestor(e,i)),r&&(!n||n.id!==r.id)&&r.unembed(this,t),n&&n.embed(this,t)}return n},hasLoop:function(t){t=t||{};var{source:n,target:e}=this.attributes,i=n.id,r=e.id;if(!i||!r)return!1;var o=i===r;if(!o&&t.deep&&this.graph){var a=this.getSourceCell(),c=this.getTargetCell();o=a.isEmbeddedIn(c)||c.isEmbeddedIn(a)}return o},getSourceCell:function(){const{graph:t,attributes:n}=this;var e=n.source;return e&&e.id&&t&&t.getCell(e.id)||null},getSourceElement:function(){var t=this,n={};do{if(n[t.id])return null;n[t.id]=!0,t=t.getSourceCell()}while(t&&t.isLink());return t},getTargetCell:function(){const{graph:t,attributes:n}=this;var e=n.target;return e&&e.id&&t&&t.getCell(e.id)||null},getTargetElement:function(){var t=this,n={};do{if(n[t.id])return null;n[t.id]=!0,t=t.getTargetCell()}while(t&&t.isLink());return t},getRelationshipAncestor:function(){var t;if(this.graph){var n=[this,this.getSourceElement(),this.getTargetElement()].filter(function(e){return!!e});t=this.graph.getCommonAncestor.apply(this.graph,n)}return t||null},isRelationshipEmbeddedIn:function(t){var n=V1(t)||zd(t)?t:t.id,e=this.getRelationshipAncestor();return!!e&&(e.id===n||e.isEmbeddedIn(n))},_getDefaultLabel:function(){var t=this.get("defaultLabel")||this.defaultLabel||{},n={};return n.markup=t.markup||this.get("labelMarkup")||this.labelMarkup,n.position=t.position,n.attrs=t.attrs,n.size=t.size,n}},{endsEqual:function(t,n){return t.id===n.id&&(t.port===n.port||!t.port&&!n.port)}}),V3t=ms.define("standard.Rectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}]}),B3t=ms.define("standard.Circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"circle",selector:"body"},{tagName:"text",selector:"label"}]}),G3t=ms.define("standard.Ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"body"},{tagName:"text",selector:"label"}]}),Y3t=ms.define("standard.Path",{attrs:{body:{refD:"M 0 0 L 10 0 10 10 0 10 Z",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"text",selector:"label"}]}),U3t=ms.define("standard.Polygon",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polygon",selector:"body"},{tagName:"text",selector:"label"}]}),j3t=ms.define("standard.Polyline",{attrs:{body:{refPoints:"0 0 10 0 10 10 0 10 0 0",strokeWidth:2,stroke:"#333333",fill:"#FFFFFF"},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:14,fill:"#333333"}}},{markup:[{tagName:"polyline",selector:"body"},{tagName:"text",selector:"label"}]}),W3t=ms.define("standard.Image",{attrs:{image:{refWidth:"100%",refHeight:"100%"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),q3t=ms.define("standard.BorderedImage",{attrs:{border:{refWidth:"100%",refHeight:"100%",stroke:"#333333",strokeWidth:2},background:{refWidth:-1,refHeight:-1,x:.5,y:.5,fill:"#FFFFFF"},image:{refWidth:-1,refHeight:-1,x:.5,y:.5},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"background",attributes:{stroke:"none"}},{tagName:"image",selector:"image"},{tagName:"rect",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),X3t=ms.define("standard.EmbeddedImage",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#FFFFFF",strokeWidth:2},image:{refWidth:"30%",refHeight:-20,x:10,y:10,preserveAspectRatio:"xMidYMin"},label:{textVerticalAnchor:"top",textAnchor:"left",refX:"30%",refX2:20,refY:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}]}),$3t=ms.define("standard.InscribedImage",{attrs:{border:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",stroke:"#333333",strokeWidth:2},background:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",fill:"#FFFFFF"},image:{refWidth:"68%",refHeight:"68%",refX:"16%",refY:"16%",preserveAspectRatio:"xMidYMid"},label:{textVerticalAnchor:"top",textAnchor:"middle",refX:"50%",refY:"100%",refY2:10,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"ellipse",selector:"background"},{tagName:"image",selector:"image"},{tagName:"ellipse",selector:"border",attributes:{fill:"none"}},{tagName:"text",selector:"label"}]}),Q3t=ms.define("standard.HeaderedRectangle",{attrs:{body:{refWidth:"100%",refHeight:"100%",strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},header:{refWidth:"100%",height:30,strokeWidth:2,stroke:"#000000",fill:"#FFFFFF"},headerText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:15,fontSize:16,fill:"#333333"},bodyText:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"header"},{tagName:"text",selector:"headerText"},{tagName:"text",selector:"bodyText"}]}),K3t=ms.define("standard.Cylinder",{attrs:{body:{lateralArea:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},top:{refCx:"50%",cy:10,refRx:"50%",ry:10,fill:"#FFFFFF",stroke:"#333333",strokeWidth:2},label:{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"100%",refY2:15,fontSize:14,fill:"#333333"}}},{markup:[{tagName:"path",selector:"body"},{tagName:"ellipse",selector:"top"},{tagName:"text",selector:"label"}],topRy:function(t,n){if(void 0===t)return this.attr("body/lateralArea");var e=Wu(t);return this.attr({body:{lateralArea:t},top:e?{refCy:t,refRy:t,cy:null,ry:null}:{refCy:null,refRy:null,cy:t,ry:t}},n)}},{attributes:{lateralArea:{set:function(t,n){var e=Wu(t);e&&(t=parseFloat(t)/100);var i=n.x,r=n.y,o=n.width,a=n.height,u=e?a*t:t,f=ti.KAPPA,w=f*(o/2),E=f*(e?a*t:t),Z=i+o/2,ee=i+o,be=r+u,_e=be-u,Pe=r+a-u,Ie=r+a;return{d:["M",i,be,"L",i,Pe,"C",i,Pe+E,Z-w,Ie,Z,Ie,"C",Z+w,Ie,ee,Pe+E,ee,Pe,"L",ee,be,"C",ee,be-E,Z+w,_e,Z,_e,"C",Z-w,_e,i,be-E,i,be,"Z"].join(" ")}}}}});var eft=s2e.test("svgforeignobject")?{tagName:"foreignObject",selector:"foreignObject",attributes:{overflow:"hidden"},children:[{tagName:"div",namespaceURI:"http://www.w3.org/1999/xhtml",selector:"label",style:{width:"100%",height:"100%",position:"static",backgroundColor:"transparent",textAlign:"center",margin:0,padding:"0px 5px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center"}}]}:{tagName:"text",selector:"label",attributes:{"text-anchor":"middle"}};const tft=ms.define("standard.TextBlock",{attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#ffffff",strokeWidth:2},foreignObject:{refWidth:"100%",refHeight:"100%"},label:{style:{fontSize:14}}}},{markup:[{tagName:"rect",selector:"body"},eft]},{attributes:{text:{set:function(t,n,e,i){if(!(e instanceof HTMLElement)){var r=i.style||{},o={text:t,width:-5,height:"100%"},a=ro({textVerticalAnchor:"middle"},r);return Z1e.textWrap.set.call(this,o,n,e,a),{fill:r.color||null}}e.textContent=t},position:function(t,n,e){if(e instanceof SVGElement)return n.center()}}}}),nft=s1.define("standard.Link",{attrs:{line:{connection:!0,stroke:"#333333",strokeWidth:2,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 10 -5 0 0 10 5 z"}},wrapper:{connection:!0,strokeWidth:10,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"wrapper",attributes:{fill:"none",cursor:"pointer",stroke:"transparent","stroke-linecap":"round"}},{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]}),ift=s1.define("standard.DoubleLink",{attrs:{line:{connection:!0,stroke:"#DDDDDD",strokeWidth:4,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"#000000",d:"M 10 -3 10 -10 -2 0 10 10 10 3"}},outline:{connection:!0,stroke:"#000000",strokeWidth:6,strokeLinejoin:"round"}}},{markup:[{tagName:"path",selector:"outline",attributes:{fill:"none"}},{tagName:"path",selector:"line",attributes:{fill:"none"}}]}),rft=s1.define("standard.ShadowLink",{attrs:{line:{connection:!0,stroke:"#FF0000",strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"none",d:"M 0 -10 -10 0 0 10 z"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}},shadow:{connection:!0,refX:3,refY:6,stroke:"#000000",strokeOpacity:.2,strokeWidth:20,strokeLinejoin:"round",targetMarker:{type:"path",d:"M 0 -10 -10 0 0 10 z",stroke:"none"},sourceMarker:{type:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z"}}}},{markup:[{tagName:"path",selector:"shadow",attributes:{fill:"none"}},{tagName:"path",selector:"line",attributes:{fill:"none"}}]}),iV=es.define("devs.Model",{inPorts:[],outPorts:[],size:{width:80,height:80},attrs:{".":{magnet:!1},".label":{text:"Model","ref-x":.5,"ref-y":10,"font-size":18,"text-anchor":"middle",fill:"#000"},".body":{"ref-width":"100%","ref-height":"100%",stroke:"#000"}},ports:{groups:{in:{position:{name:"left"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"left",args:{y:10}}}},out:{position:{name:"right"},attrs:{".port-label":{fill:"#000"},".port-body":{fill:"#fff",stroke:"#000",r:10,magnet:!0}},label:{position:{name:"right",args:{y:10}}}}}}},{markup:'',portMarkup:'',portLabelMarkup:'',initialize:function(){es.prototype.initialize.apply(this,arguments),this.on("change:inPorts change:outPorts",this.updatePortItems,this),this.updatePortItems()},updatePortItems:function(t,n,e){var i=c8(this.get("inPorts")),r=F1e(c8(this.get("outPorts")),i),o=this.createPortItems("in",i),a=this.createPortItems("out",r);this.prop("ports/items",o.concat(a),ro({rewrite:!0},e))},createPortItem:function(t,n){return{id:n,group:t,attrs:{".port-label":{text:n}}}},createPortItems:function(t,n){return Ma(n).map(this.createPortItem.bind(this,t))},_addGroupPort:function(t,n,e){var i=this.get(n);return this.set(n,Array.isArray(i)?i.concat(t):[t],e)},addOutPort:function(t,n){return this._addGroupPort(t,"outPorts",n)},addInPort:function(t,n){return this._addGroupPort(t,"inPorts",n)},_removeGroupPort:function(t,n,e){return this.set(n,XH(this.get(n),t),e)},removeOutPort:function(t,n){return this._removeGroupPort(t,"outPorts",n)},removeInPort:function(t,n){return this._removeGroupPort(t,"inPorts",n)},_changeGroup:function(t,n,e){return this.prop("ports/groups/"+t,uc(n)?n:{},e)},changeInGroup:function(t,n){return this._changeGroup("in",t,n)},changeOutGroup:function(t,n){return this._changeGroup("out",t,n)}}),oft=iV.define("devs.Atomic",{size:{width:80,height:80},attrs:{".label":{text:"Atomic"}}}),aft=iV.define("devs.Coupled",{size:{width:200,height:300},attrs:{".label":{text:"Coupled"}}}),l2e=s1.define("devs.Link",{attrs:{".connection":{"stroke-width":2}}}),NE=es.define("logic.Gate",{size:{width:80,height:40},attrs:{".":{magnet:!1},".body":{width:100,height:50},circle:{r:7,stroke:"black",fill:"transparent","stroke-width":2}}},{operation:function(){return!0}}),rV=NE.define("logic.IO",{size:{width:60,height:30},attrs:{".body":{fill:"white",stroke:"black","stroke-width":2},".wire":{ref:".body","ref-y":.5,stroke:"black"},text:{fill:"black",ref:".body","ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle","font-weight":"bold","font-variant":"small-caps","text-transform":"capitalize","font-size":"14px"}}},{markup:''}),sft=rV.define("logic.Input",{attrs:{".wire":{"ref-dx":0,d:"M 0 0 L 23 0"},circle:{ref:".body","ref-dx":30,"ref-y":.5,magnet:!0,class:"output",port:"out"},text:{text:"input"}}}),cft=rV.define("logic.Output",{attrs:{".wire":{"ref-x":0,d:"M 0 0 L -23 0"},circle:{ref:".body","ref-x":-30,"ref-y":.5,magnet:"passive",class:"input",port:"in"},text:{text:"output"}}}),oV=NE.define("logic.Gate11",{attrs:{".input":{ref:".body","ref-x":-2,"ref-y":.5,magnet:"passive",port:"in"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),jm=NE.define("logic.Gate21",{attrs:{".input1":{ref:".body","ref-x":-2,"ref-y":.3,magnet:"passive",port:"in1"},".input2":{ref:".body","ref-x":-2,"ref-y":.7,magnet:"passive",port:"in2"},".output":{ref:".body","ref-dx":2,"ref-y":.5,magnet:!0,port:"out"}}},{markup:''}),lft=oV.define("logic.Repeater",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5PVCBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjgiCiAgICAgaW5rc2NhcGU6Y3g9Ijg0LjY4NTM1MiIKICAgICBpbmtzY2FwZTpjeT0iMTUuMjg4NjI4IgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjMzIgogICAgIGlua3NjYXBlOndpbmRvdy15PSIwIgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gNzIuMTU2OTEsMjUgTCA5NSwyNSIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAyOS4wNDM0NzgsMjUgTCA1LjA0MzQ3ODEsMjUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46bWl0ZXI7bWFya2VyOm5vbmU7c3Ryb2tlLW9wYWNpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgZD0iTSAyOC45Njg3NSwyLjU5Mzc1IEwgMjguOTY4NzUsNSBMIDI4Ljk2ODc1LDQ1IEwgMjguOTY4NzUsNDcuNDA2MjUgTCAzMS4xMjUsNDYuMzQzNzUgTCA3Mi4xNTYyNSwyNi4zNDM3NSBMIDcyLjE1NjI1LDIzLjY1NjI1IEwgMzEuMTI1LDMuNjU2MjUgTCAyOC45Njg3NSwyLjU5Mzc1IHogTSAzMS45Njg3NSw3LjQwNjI1IEwgNjguMDkzNzUsMjUgTCAzMS45Njg3NSw0Mi41OTM3NSBMIDMxLjk2ODc1LDcuNDA2MjUgeiIKICAgICAgIGlkPSJwYXRoMjYzOCIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2NjY2NjY2NjYyIgLz4KICA8L2c+Cjwvc3ZnPgo="}}},{operation:function(t){return t}}),dft=oV.define("logic.Not",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5PVCBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjgiCiAgICAgaW5rc2NhcGU6Y3g9Ijg0LjY4NTM1MiIKICAgICBpbmtzY2FwZTpjeT0iMTUuMjg4NjI4IgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjMzIgogICAgIGlua3NjYXBlOndpbmRvdy15PSIwIgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gNzkuMTU2OTEsMjUgTCA5NSwyNSIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAyOS4wNDM0NzgsMjUgTCA1LjA0MzQ3ODEsMjUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46bWl0ZXI7bWFya2VyOm5vbmU7c3Ryb2tlLW9wYWNpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgZD0iTSAyOC45Njg3NSwyLjU5Mzc1IEwgMjguOTY4NzUsNSBMIDI4Ljk2ODc1LDQ1IEwgMjguOTY4NzUsNDcuNDA2MjUgTCAzMS4xMjUsNDYuMzQzNzUgTCA3Mi4xNTYyNSwyNi4zNDM3NSBMIDcyLjE1NjI1LDIzLjY1NjI1IEwgMzEuMTI1LDMuNjU2MjUgTCAyOC45Njg3NSwyLjU5Mzc1IHogTSAzMS45Njg3NSw3LjQwNjI1IEwgNjguMDkzNzUsMjUgTCAzMS45Njg3NSw0Mi41OTM3NSBMIDMxLjk2ODc1LDcuNDA2MjUgeiIKICAgICAgIGlkPSJwYXRoMjYzOCIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2NjY2NjY2NjYyIgLz4KICAgIDxwYXRoCiAgICAgICBzb2RpcG9kaTp0eXBlPSJhcmMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDI2NzEiCiAgICAgICBzb2RpcG9kaTpjeD0iNzYiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA4MCwyNSBBIDQsNCAwIDEgMSA3MiwyNSBBIDQsNCAwIDEgMSA4MCwyNSB6IgogICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEsMCkiIC8+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t){return!t}}),uft=jm.define("logic.Or",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik9SIEFOU0kuc3ZnIgogICBpbmtzY2FwZTpvdXRwdXRfZXh0ZW5zaW9uPSJvcmcuaW5rc2NhcGUub3V0cHV0LnN2Zy5pbmtzY2FwZSI+CiAgPGRlZnMKICAgICBpZD0iZGVmczQiPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjUwIDogMTUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjI1IDogMTAgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjcxNCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfej0iMSA6IDAuNSA6IDEiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMC41IDogMC4zMzMzMzMzMyA6IDEiCiAgICAgICBpZD0icGVyc3BlY3RpdmUyODA2IiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUyODE5IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjM3Mi4wNDcyNCA6IDM1MC43ODczOSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI3NDQuMDk0NDggOiA1MjYuMTgxMDkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDUyNi4xODEwOSA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNzc3IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49Ijc1IDogNDAgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iMTUwIDogNjAgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDYwIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTMyNzUiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iNTAgOiAzMy4zMzMzMzMgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iMTAwIDogNTAgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDUwIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTU1MzMiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzIgOiAyMS4zMzMzMzMgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNjQgOiAzMiA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMzIgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjU1NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDE2LjY2NjY2NyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDI1IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAyNSA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogIDwvZGVmcz4KICA8c29kaXBvZGk6bmFtZWR2aWV3CiAgICAgaWQ9ImJhc2UiCiAgICAgcGFnZWNvbG9yPSIjZmZmZmZmIgogICAgIGJvcmRlcmNvbG9yPSIjNjY2NjY2IgogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VzaGFkb3c9IjIiCiAgICAgaW5rc2NhcGU6em9vbT0iNCIKICAgICBpbmtzY2FwZTpjeD0iMTEzLjAwMDM5IgogICAgIGlua3NjYXBlOmN5PSIxMi44OTM3MzEiCiAgICAgaW5rc2NhcGU6ZG9jdW1lbnQtdW5pdHM9InB4IgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9ImcyNTYwIgogICAgIHNob3dncmlkPSJmYWxzZSIKICAgICBpbmtzY2FwZTpncmlkLWJib3g9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1wb2ludHM9InRydWUiCiAgICAgZ3JpZHRvbGVyYW5jZT0iMTAwMDAiCiAgICAgaW5rc2NhcGU6d2luZG93LXdpZHRoPSIxMzk5IgogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9Ijg3NCIKICAgICBpbmtzY2FwZTp3aW5kb3cteD0iMzciCiAgICAgaW5rc2NhcGU6d2luZG93LXk9Ii00IgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Im0gNzAsMjUgYyAyMCwwIDI1LDAgMjUsMCIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMSwxNSA1LDE1IgogICAgICAgaWQ9InBhdGgzMDYxIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzIsMzUgNSwzNSIKICAgICAgIGlkPSJwYXRoMzk0NCIgLz4KICAgIDxnCiAgICAgICBpZD0iZzI1NjAiCiAgICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI2LjUsLTM5LjUpIj4KICAgICAgPHBhdGgKICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICBkPSJNIC0yLjQwNjI1LDQ0LjUgTCAtMC40MDYyNSw0Ni45Mzc1IEMgLTAuNDA2MjUsNDYuOTM3NSA1LjI1LDUzLjkzNzU0OSA1LjI1LDY0LjUgQyA1LjI1LDc1LjA2MjQ1MSAtMC40MDYyNSw4Mi4wNjI1IC0wLjQwNjI1LDgyLjA2MjUgTCAtMi40MDYyNSw4NC41IEwgMC43NSw4NC41IEwgMTQuNzUsODQuNSBDIDE3LjE1ODA3Niw4NC41MDAwMDEgMjIuNDM5Njk5LDg0LjUyNDUxNCAyOC4zNzUsODIuMDkzNzUgQyAzNC4zMTAzMDEsNzkuNjYyOTg2IDQwLjkxMTUzNiw3NC43NTA0ODQgNDYuMDYyNSw2NS4yMTg3NSBMIDQ0Ljc1LDY0LjUgTCA0Ni4wNjI1LDYzLjc4MTI1IEMgMzUuNzU5Mzg3LDQ0LjcxNTU5IDE5LjUwNjU3NCw0NC41IDE0Ljc1LDQ0LjUgTCAwLjc1LDQ0LjUgTCAtMi40MDYyNSw0NC41IHogTSAzLjQ2ODc1LDQ3LjUgTCAxNC43NSw0Ny41IEMgMTkuNDM0MTczLDQ3LjUgMzMuMDM2ODUsNDcuMzY5NzkzIDQyLjcxODc1LDY0LjUgQyAzNy45NTE5NjQsNzIuOTI5MDc1IDMyLjE5NzQ2OSw3Ny4xODM5MSAyNyw3OS4zMTI1IEMgMjEuNjM5MzM5LDgxLjUwNzkyNCAxNy4xNTgwNzUsODEuNTAwMDAxIDE0Ljc1LDgxLjUgTCAzLjUsODEuNSBDIDUuMzczNTg4NCw3OC4zOTE1NjYgOC4yNSw3Mi40NTA2NSA4LjI1LDY0LjUgQyA4LjI1LDU2LjUyNjY0NiA1LjM0MTQ2ODYsNTAuNTk5ODE1IDMuNDY4NzUsNDcuNSB6IgogICAgICAgICBpZD0icGF0aDQ5NzMiCiAgICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NzY2NjY3NjY2NjY2NjY2NzY2NzYyIgLz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo="}}},{operation:function(t,n){return t||n}}),hft=jm.define("logic.And",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9IkFORCBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgPC9kZWZzPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0iYmFzZSIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMS4wIgogICAgIGlua3NjYXBlOnBhZ2VvcGFjaXR5PSIwLjAiCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTp6b29tPSI4IgogICAgIGlua3NjYXBlOmN4PSI1Ni42OTgzNDgiCiAgICAgaW5rc2NhcGU6Y3k9IjI1LjMyNjg5OSIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtYmJveD0idHJ1ZSIKICAgICBpbmtzY2FwZTpncmlkLXBvaW50cz0idHJ1ZSIKICAgICBncmlkdG9sZXJhbmNlPSIxMDAwMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjEzOTkiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODc0IgogICAgIGlua3NjYXBlOndpbmRvdy14PSIzMyIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJtIDcwLDI1IGMgMjAsMCAyNSwwIDI1LDAiCiAgICAgICBpZD0icGF0aDMwNTkiCiAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzEsMTUgNSwxNSIKICAgICAgIGlkPSJwYXRoMzA2MSIgLz4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoxLjk5OTk5OTg4O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDMyLDM1IDUsMzUiCiAgICAgICBpZD0icGF0aDM5NDQiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZvbnQtc2l6ZTptZWRpdW07Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDt0ZXh0LWluZGVudDowO3RleHQtYWxpZ246c3RhcnQ7dGV4dC1kZWNvcmF0aW9uOm5vbmU7bGluZS1oZWlnaHQ6bm9ybWFsO2xldHRlci1zcGFjaW5nOm5vcm1hbDt3b3JkLXNwYWNpbmc6bm9ybWFsO3RleHQtdHJhbnNmb3JtOm5vbmU7ZGlyZWN0aW9uOmx0cjtibG9jay1wcm9ncmVzc2lvbjp0Yjt3cml0aW5nLW1vZGU6bHItdGI7dGV4dC1hbmNob3I6c3RhcnQ7ZmlsbDojMDAwMDAwO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDozO21hcmtlcjpub25lO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGU7Zm9udC1mYW1pbHk6Qml0c3RyZWFtIFZlcmEgU2FuczstaW5rc2NhcGUtZm9udC1zcGVjaWZpY2F0aW9uOkJpdHN0cmVhbSBWZXJhIFNhbnMiCiAgICAgICBkPSJNIDMwLDUgTCAzMCw2LjQyODU3MTQgTCAzMCw0My41NzE0MjkgTCAzMCw0NSBMIDMxLjQyODU3MSw0NSBMIDUwLjQ3NjE5LDQ1IEMgNjEuNzQ0MDk4LDQ1IDcwLjQ3NjE5LDM1Ljk5OTk1NSA3MC40NzYxOSwyNSBDIDcwLjQ3NjE5LDE0LjAwMDA0NSA2MS43NDQwOTksNS4wMDAwMDAyIDUwLjQ3NjE5LDUgQyA1MC40NzYxOSw1IDUwLjQ3NjE5LDUgMzEuNDI4NTcxLDUgTCAzMCw1IHogTSAzMi44NTcxNDMsNy44NTcxNDI5IEMgNDAuODM0MjY0LDcuODU3MTQyOSA0NS45MTgzNjgsNy44NTcxNDI5IDQ4LjA5NTIzOCw3Ljg1NzE0MjkgQyA0OS4yODU3MTQsNy44NTcxNDI5IDQ5Ljg4MDk1Miw3Ljg1NzE0MjkgNTAuMTc4NTcxLDcuODU3MTQyOSBDIDUwLjMyNzM4MSw3Ljg1NzE0MjkgNTAuNDA5MjI3LDcuODU3MTQyOSA1MC40NDY0MjksNy44NTcxNDI5IEMgNTAuNDY1MDI5LDcuODU3MTQyOSA1MC40NzE1NDMsNy44NTcxNDI5IDUwLjQ3NjE5LDcuODU3MTQyOSBDIDYwLjIzNjg1Myw3Ljg1NzE0MyA2Ny4xNDI4NTcsMTUuNDk3MDk4IDY3LjE0Mjg1NywyNSBDIDY3LjE0Mjg1NywzNC41MDI5MDIgNTkuNzYwNjYyLDQyLjE0Mjg1NyA1MCw0Mi4xNDI4NTcgTCAzMi44NTcxNDMsNDIuMTQyODU3IEwgMzIuODU3MTQzLDcuODU3MTQyOSB6IgogICAgICAgaWQ9InBhdGgyODg0IgogICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjY2NzY2NjY3Nzc3NzY2NjIiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,n){return t&&n}}),pft=jm.define("logic.Nor",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5PUiBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjEiCiAgICAgaW5rc2NhcGU6Y3g9Ijc4LjY3NzY0NCIKICAgICBpbmtzY2FwZTpjeT0iMjIuMTAyMzQ0IgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjM3IgogICAgIGlua3NjYXBlOndpbmRvdy15PSItNCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDc5LDI1IEMgOTksMjUgOTUsMjUgOTUsMjUiCiAgICAgICBpZD0icGF0aDMwNTkiCiAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzEsMTUgNSwxNSIKICAgICAgIGlkPSJwYXRoMzA2MSIgLz4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoxLjk5OTk5OTg4O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDMyLDM1IDUsMzUiCiAgICAgICBpZD0icGF0aDM5NDQiIC8+CiAgICA8ZwogICAgICAgaWQ9ImcyNTYwIgogICAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi41LC0zOS41KSI+CiAgICAgIDxwYXRoCiAgICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgZD0iTSAtMi40MDYyNSw0NC41IEwgLTAuNDA2MjUsNDYuOTM3NSBDIC0wLjQwNjI1LDQ2LjkzNzUgNS4yNSw1My45Mzc1NDkgNS4yNSw2NC41IEMgNS4yNSw3NS4wNjI0NTEgLTAuNDA2MjUsODIuMDYyNSAtMC40MDYyNSw4Mi4wNjI1IEwgLTIuNDA2MjUsODQuNSBMIDAuNzUsODQuNSBMIDE0Ljc1LDg0LjUgQyAxNy4xNTgwNzYsODQuNTAwMDAxIDIyLjQzOTY5OSw4NC41MjQ1MTQgMjguMzc1LDgyLjA5Mzc1IEMgMzQuMzEwMzAxLDc5LjY2Mjk4NiA0MC45MTE1MzYsNzQuNzUwNDg0IDQ2LjA2MjUsNjUuMjE4NzUgTCA0NC43NSw2NC41IEwgNDYuMDYyNSw2My43ODEyNSBDIDM1Ljc1OTM4Nyw0NC43MTU1OSAxOS41MDY1NzQsNDQuNSAxNC43NSw0NC41IEwgMC43NSw0NC41IEwgLTIuNDA2MjUsNDQuNSB6IE0gMy40Njg3NSw0Ny41IEwgMTQuNzUsNDcuNSBDIDE5LjQzNDE3Myw0Ny41IDMzLjAzNjg1LDQ3LjM2OTc5MyA0Mi43MTg3NSw2NC41IEMgMzcuOTUxOTY0LDcyLjkyOTA3NSAzMi4xOTc0NjksNzcuMTgzOTEgMjcsNzkuMzEyNSBDIDIxLjYzOTMzOSw4MS41MDc5MjQgMTcuMTU4MDc1LDgxLjUwMDAwMSAxNC43NSw4MS41IEwgMy41LDgxLjUgQyA1LjM3MzU4ODQsNzguMzkxNTY2IDguMjUsNzIuNDUwNjUgOC4yNSw2NC41IEMgOC4yNSw1Ni41MjY2NDYgNS4zNDE0Njg2LDUwLjU5OTgxNSAzLjQ2ODc1LDQ3LjUgeiIKICAgICAgICAgaWQ9InBhdGg0OTczIgogICAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NjY2NzY2NjY2NjY2Njc2Njc2MiIC8+CiAgICAgIDxwYXRoCiAgICAgICAgIHNvZGlwb2RpOnR5cGU9ImFyYyIKICAgICAgICAgc3R5bGU9ImZpbGw6bm9uZTtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWpvaW46bWl0ZXI7bWFya2VyOm5vbmU7c3Ryb2tlLW9wYWNpdHk6MTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgICBpZD0icGF0aDI2MDQiCiAgICAgICAgIHNvZGlwb2RpOmN4PSI3NSIKICAgICAgICAgc29kaXBvZGk6Y3k9IjI1IgogICAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgICAgc29kaXBvZGk6cnk9IjQiCiAgICAgICAgIGQ9Ik0gNzksMjUgQSA0LDQgMCAxIDEgNzEsMjUgQSA0LDQgMCAxIDEgNzksMjUgeiIKICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI2LjUsMzkuNSkiIC8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t,n){return!(t||n)}}),fft=jm.define("logic.Nand",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Ik5BTkQgQU5TSS5zdmciCiAgIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3NjYXBlIj4KICA8ZGVmcwogICAgIGlkPSJkZWZzNCI+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMTUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxMCA6IDEiCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNzE0IiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDAuNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIwLjUgOiAwLjMzMzMzMzMzIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MDYiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MTkiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzcyLjA0NzI0IDogMzUwLjc4NzM5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9Ijc0NC4wOTQ0OCA6IDUyNi4xODEwOSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTI2LjE4MTA5IDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3NzciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iNzUgOiA0MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxNTAgOiA2MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNjAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMzI3NSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI1MCA6IDMzLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxMDAgOiA1MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlNTUzMyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzMiA6IDIxLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI2NCA6IDMyIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAzMiA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogIDwvZGVmcz4KICA8c29kaXBvZGk6bmFtZWR2aWV3CiAgICAgaWQ9ImJhc2UiCiAgICAgcGFnZWNvbG9yPSIjZmZmZmZmIgogICAgIGJvcmRlcmNvbG9yPSIjNjY2NjY2IgogICAgIGJvcmRlcm9wYWNpdHk9IjEuMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VzaGFkb3c9IjIiCiAgICAgaW5rc2NhcGU6em9vbT0iMTYiCiAgICAgaW5rc2NhcGU6Y3g9Ijc4LjI4MzMwNyIKICAgICBpbmtzY2FwZTpjeT0iMTYuNDQyODQzIgogICAgIGlua3NjYXBlOmRvY3VtZW50LXVuaXRzPSJweCIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJsYXllcjEiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6Z3JpZC1iYm94PSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtcG9pbnRzPSJ0cnVlIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwMDAwIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTM5OSIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSI4NzQiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjMzIgogICAgIGlua3NjYXBlOndpbmRvdy15PSIwIgogICAgIGlua3NjYXBlOnNuYXAtYmJveD0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgaWQ9IkdyaWRGcm9tUHJlMDQ2U2V0dGluZ3MiCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBvcmlnaW54PSIwcHgiCiAgICAgICBvcmlnaW55PSIwcHgiCiAgICAgICBzcGFjaW5neD0iMXB4IgogICAgICAgc3BhY2luZ3k9IjFweCIKICAgICAgIGNvbG9yPSIjMDAwMGZmIgogICAgICAgZW1wY29sb3I9IiMwMDAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjIiCiAgICAgICBlbXBvcGFjaXR5PSIwLjQiCiAgICAgICBlbXBzcGFjaW5nPSI1IgogICAgICAgdmlzaWJsZT0idHJ1ZSIKICAgICAgIGVuYWJsZWQ9InRydWUiIC8+CiAgPC9zb2RpcG9kaTpuYW1lZHZpZXc+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhNyI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gNzksMjUgQyA5MS44LDI1IDk1LDI1IDk1LDI1IgogICAgICAgaWQ9InBhdGgzMDU5IgogICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjYyIgLz4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDMxLDE1IDUsMTUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MS45OTk5OTk4ODtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMiwzNSA1LDM1IgogICAgICAgaWQ9InBhdGgzOTQ0IiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmb250LXNpemU6bWVkaXVtO2ZvbnQtc3R5bGU6bm9ybWFsO2ZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7dGV4dC1pbmRlbnQ6MDt0ZXh0LWFsaWduOnN0YXJ0O3RleHQtZGVjb3JhdGlvbjpub25lO2xpbmUtaGVpZ2h0Om5vcm1hbDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO3RleHQtYW5jaG9yOnN0YXJ0O2ZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MzttYXJrZXI6bm9uZTt2aXNpYmlsaXR5OnZpc2libGU7ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTtlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlO2ZvbnQtZmFtaWx5OkJpdHN0cmVhbSBWZXJhIFNhbnM7LWlua3NjYXBlLWZvbnQtc3BlY2lmaWNhdGlvbjpCaXRzdHJlYW0gVmVyYSBTYW5zIgogICAgICAgZD0iTSAzMCw1IEwgMzAsNi40Mjg1NzE0IEwgMzAsNDMuNTcxNDI5IEwgMzAsNDUgTCAzMS40Mjg1NzEsNDUgTCA1MC40NzYxOSw0NSBDIDYxLjc0NDA5OCw0NSA3MC40NzYxOSwzNS45OTk5NTUgNzAuNDc2MTksMjUgQyA3MC40NzYxOSwxNC4wMDAwNDUgNjEuNzQ0MDk5LDUuMDAwMDAwMiA1MC40NzYxOSw1IEMgNTAuNDc2MTksNSA1MC40NzYxOSw1IDMxLjQyODU3MSw1IEwgMzAsNSB6IE0gMzIuODU3MTQzLDcuODU3MTQyOSBDIDQwLjgzNDI2NCw3Ljg1NzE0MjkgNDUuOTE4MzY4LDcuODU3MTQyOSA0OC4wOTUyMzgsNy44NTcxNDI5IEMgNDkuMjg1NzE0LDcuODU3MTQyOSA0OS44ODA5NTIsNy44NTcxNDI5IDUwLjE3ODU3MSw3Ljg1NzE0MjkgQyA1MC4zMjczODEsNy44NTcxNDI5IDUwLjQwOTIyNyw3Ljg1NzE0MjkgNTAuNDQ2NDI5LDcuODU3MTQyOSBDIDUwLjQ2NTAyOSw3Ljg1NzE0MjkgNTAuNDcxNTQzLDcuODU3MTQyOSA1MC40NzYxOSw3Ljg1NzE0MjkgQyA2MC4yMzY4NTMsNy44NTcxNDMgNjcuMTQyODU3LDE1LjQ5NzA5OCA2Ny4xNDI4NTcsMjUgQyA2Ny4xNDI4NTcsMzQuNTAyOTAyIDU5Ljc2MDY2Miw0Mi4xNDI4NTcgNTAsNDIuMTQyODU3IEwgMzIuODU3MTQzLDQyLjE0Mjg1NyBMIDMyLjg1NzE0Myw3Ljg1NzE0MjkgeiIKICAgICAgIGlkPSJwYXRoMjg4NCIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2Njc2NjY2Nzc3Nzc2NjYyIgLz4KICAgIDxwYXRoCiAgICAgICBzb2RpcG9kaTp0eXBlPSJhcmMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDQwMDgiCiAgICAgICBzb2RpcG9kaTpjeD0iNzUiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA3OSwyNSBBIDQsNCAwIDEgMSA3MSwyNSBBIDQsNCAwIDEgMSA3OSwyNSB6IiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,n){return!(t&&n)}}),gft=jm.define("logic.Xor",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9IlhPUiBBTlNJLnN2ZyIKICAgaW5rc2NhcGU6b3V0cHV0X2V4dGVuc2lvbj0ib3JnLmlua3NjYXBlLm91dHB1dC5zdmcuaW5rc2NhcGUiPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM0Ij4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSI1MCA6IDE1IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIyNSA6IDEwIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3MTQiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEgOiAwLjUgOiAxIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjAuNSA6IDAuMzMzMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgwNiIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjgxOSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzNzIuMDQ3MjQgOiAzNTAuNzg3MzkgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNzQ0LjA5NDQ4IDogNTI2LjE4MTA5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MjYuMTgxMDkgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMjc3NyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI3NSA6IDQwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjE1MCA6IDYwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA2MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUzMjc1IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjUwIDogMzMuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjEwMCA6IDUwIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MCA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmU1NTMzIgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjMyIDogMjEuMzMzMzMzIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjY0IDogMzIgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDMyIDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI1NTciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxNi42NjY2NjcgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAyNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMjUgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjUuNjU2ODU0MiIKICAgICBpbmtzY2FwZTpjeD0iMjUuOTM4MTE2IgogICAgIGlua3NjYXBlOmN5PSIxNy4yMzAwNSIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtYmJveD0idHJ1ZSIKICAgICBpbmtzY2FwZTpncmlkLXBvaW50cz0idHJ1ZSIKICAgICBncmlkdG9sZXJhbmNlPSIxMDAwMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjEzOTkiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODc0IgogICAgIGlua3NjYXBlOndpbmRvdy14PSIzMyIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJtIDcwLDI1IGMgMjAsMCAyNSwwIDI1LDAiCiAgICAgICBpZD0icGF0aDMwNTkiCiAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5ODg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzAuMzg1NzE3LDE1IEwgNC45OTk5OTk4LDE1IgogICAgICAgaWQ9InBhdGgzMDYxIiAvPgogICAgPHBhdGgKICAgICAgIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuOTk5OTk5NzY7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Ik0gMzEuMzYyMDkxLDM1IEwgNC45OTk5OTk4LDM1IgogICAgICAgaWQ9InBhdGgzOTQ0IiAvPgogICAgPGcKICAgICAgIGlkPSJnMjU2MCIKICAgICAgIGlua3NjYXBlOmxhYmVsPSJMYXllciAxIgogICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjYuNSwtMzkuNSkiPgogICAgICA8cGF0aAogICAgICAgICBpZD0icGF0aDM1MTYiCiAgICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgZD0iTSAtMi4yNSw4MS41MDAwMDUgQyAtMy44NDczNzQsODQuMTQ0NDA1IC00LjUsODQuNTAwMDA1IC00LjUsODQuNTAwMDA1IEwgLTguMTU2MjUsODQuNTAwMDA1IEwgLTYuMTU2MjUsODIuMDYyNTA1IEMgLTYuMTU2MjUsODIuMDYyNTA1IC0wLjUsNzUuMDYyNDUxIC0wLjUsNjQuNSBDIC0wLjUsNTMuOTM3NTQ5IC02LjE1NjI1LDQ2LjkzNzUgLTYuMTU2MjUsNDYuOTM3NSBMIC04LjE1NjI1LDQ0LjUgTCAtNC41LDQ0LjUgQyAtMy43MTg3NSw0NS40Mzc1IC0zLjA3ODEyNSw0Ni4xNTYyNSAtMi4yODEyNSw0Ny41IEMgLTAuNDA4NTMxLDUwLjU5OTgxNSAyLjUsNTYuNTI2NjQ2IDIuNSw2NC41IEMgMi41LDcyLjQ1MDY1IC0wLjM5NjY5Nyw3OC4zNzk0MjUgLTIuMjUsODEuNTAwMDA1IHoiCiAgICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY3NjY2Njc2MiIC8+CiAgICAgIDxwYXRoCiAgICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgZD0iTSAtMi40MDYyNSw0NC41IEwgLTAuNDA2MjUsNDYuOTM3NSBDIC0wLjQwNjI1LDQ2LjkzNzUgNS4yNSw1My45Mzc1NDkgNS4yNSw2NC41IEMgNS4yNSw3NS4wNjI0NTEgLTAuNDA2MjUsODIuMDYyNSAtMC40MDYyNSw4Mi4wNjI1IEwgLTIuNDA2MjUsODQuNSBMIDAuNzUsODQuNSBMIDE0Ljc1LDg0LjUgQyAxNy4xNTgwNzYsODQuNTAwMDAxIDIyLjQzOTY5OSw4NC41MjQ1MTQgMjguMzc1LDgyLjA5Mzc1IEMgMzQuMzEwMzAxLDc5LjY2Mjk4NiA0MC45MTE1MzYsNzQuNzUwNDg0IDQ2LjA2MjUsNjUuMjE4NzUgTCA0NC43NSw2NC41IEwgNDYuMDYyNSw2My43ODEyNSBDIDM1Ljc1OTM4Nyw0NC43MTU1OSAxOS41MDY1NzQsNDQuNSAxNC43NSw0NC41IEwgMC43NSw0NC41IEwgLTIuNDA2MjUsNDQuNSB6IE0gMy40Njg3NSw0Ny41IEwgMTQuNzUsNDcuNSBDIDE5LjQzNDE3Myw0Ny41IDMzLjAzNjg1LDQ3LjM2OTc5MyA0Mi43MTg3NSw2NC41IEMgMzcuOTUxOTY0LDcyLjkyOTA3NSAzMi4xOTc0NjksNzcuMTgzOTEgMjcsNzkuMzEyNSBDIDIxLjYzOTMzOSw4MS41MDc5MjQgMTcuMTU4MDc1LDgxLjUwMDAwMSAxNC43NSw4MS41IEwgMy41LDgxLjUgQyA1LjM3MzU4ODQsNzguMzkxNTY2IDguMjUsNzIuNDUwNjUgOC4yNSw2NC41IEMgOC4yNSw1Ni41MjY2NDYgNS4zNDE0Njg2LDUwLjU5OTgxNSAzLjQ2ODc1LDQ3LjUgeiIKICAgICAgICAgaWQ9InBhdGg0OTczIgogICAgICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NjY2NzY2NjY2NjY2Njc2Njc2MiIC8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"}}},{operation:function(t,n){return(!t||n)&&(t||!n)}}),mft=jm.define("logic.Xnor",{attrs:{image:{"xlink:href":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHdpZHRoPSIxMDAiCiAgIGhlaWdodD0iNTAiCiAgIGlkPSJzdmcyIgogICBzb2RpcG9kaTp2ZXJzaW9uPSIwLjMyIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjQ2IgogICB2ZXJzaW9uPSIxLjAiCiAgIHNvZGlwb2RpOmRvY25hbWU9IlhOT1IgQU5TSS5zdmciCiAgIGlua3NjYXBlOm91dHB1dF9leHRlbnNpb249Im9yZy5pbmtzY2FwZS5vdXRwdXQuc3ZnLmlua3NjYXBlIj4KICA8ZGVmcwogICAgIGlkPSJkZWZzNCI+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogMTUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfej0iNTAgOiAxNSA6IDEiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMjUgOiAxMCA6IDEiCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNzE0IiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDAuNSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxIDogMC41IDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIwLjUgOiAwLjMzMzMzMzMzIDogMSIKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MDYiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI4MTkiCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iMzcyLjA0NzI0IDogMzUwLjc4NzM5IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9Ijc0NC4wOTQ0OCA6IDUyNi4xODEwOSA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTI2LjE4MTA5IDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgICA8aW5rc2NhcGU6cGVyc3BlY3RpdmUKICAgICAgIGlkPSJwZXJzcGVjdGl2ZTI3NzciCiAgICAgICBpbmtzY2FwZTpwZXJzcDNkLW9yaWdpbj0iNzUgOiA0MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxNTAgOiA2MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNjAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlMzI3NSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI1MCA6IDMzLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSIxMDAgOiA1MCA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF95PSIwIDogMTAwMCA6IDAiCiAgICAgICBpbmtzY2FwZTp2cF94PSIwIDogNTAgOiAxIgogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIgLz4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgaWQ9InBlcnNwZWN0aXZlNTUzMyIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSIzMiA6IDIxLjMzMzMzMyA6IDEiCiAgICAgICBpbmtzY2FwZTp2cF96PSI2NCA6IDMyIDogMSIKICAgICAgIGlua3NjYXBlOnZwX3k9IjAgOiAxMDAwIDogMCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiAzMiA6IDEiCiAgICAgICBzb2RpcG9kaTp0eXBlPSJpbmtzY2FwZTpwZXJzcDNkIiAvPgogICAgPGlua3NjYXBlOnBlcnNwZWN0aXZlCiAgICAgICBpZD0icGVyc3BlY3RpdmUyNTU3IgogICAgICAgaW5rc2NhcGU6cGVyc3AzZC1vcmlnaW49IjI1IDogMTYuNjY2NjY3IDogMSIKICAgICAgIGlua3NjYXBlOnZwX3o9IjUwIDogMjUgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfeD0iMCA6IDI1IDogMSIKICAgICAgIHNvZGlwb2RpOnR5cGU9Imlua3NjYXBlOnBlcnNwM2QiIC8+CiAgPC9kZWZzPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0iYmFzZSIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMS4wIgogICAgIGlua3NjYXBlOnBhZ2VvcGFjaXR5PSIwLjAiCiAgICAgaW5rc2NhcGU6cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTp6b29tPSI0IgogICAgIGlua3NjYXBlOmN4PSI5NS43MjM2NiIKICAgICBpbmtzY2FwZTpjeT0iLTI2Ljc3NTAyMyIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIGlua3NjYXBlOmdyaWQtYmJveD0idHJ1ZSIKICAgICBpbmtzY2FwZTpncmlkLXBvaW50cz0idHJ1ZSIKICAgICBncmlkdG9sZXJhbmNlPSIxMDAwMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjEzOTkiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODc0IgogICAgIGlua3NjYXBlOndpbmRvdy14PSIzMyIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9InRydWUiPgogICAgPGlua3NjYXBlOmdyaWQKICAgICAgIGlkPSJHcmlkRnJvbVByZTA0NlNldHRpbmdzIgogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgb3JpZ2lueD0iMHB4IgogICAgICAgb3JpZ2lueT0iMHB4IgogICAgICAgc3BhY2luZ3g9IjFweCIKICAgICAgIHNwYWNpbmd5PSIxcHgiCiAgICAgICBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcGNvbG9yPSIjMDAwMGZmIgogICAgICAgb3BhY2l0eT0iMC4yIgogICAgICAgZW1wb3BhY2l0eT0iMC40IgogICAgICAgZW1wc3BhY2luZz0iNSIKICAgICAgIHZpc2libGU9InRydWUiCiAgICAgICBlbmFibGVkPSJ0cnVlIiAvPgogIDwvc29kaXBvZGk6bmFtZWR2aWV3PgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTciPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyLjAwMDAwMDI0O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJNIDc4LjMzMzMzMiwyNSBDIDkxLjY2NjY2NiwyNSA5NSwyNSA5NSwyNSIKICAgICAgIGlkPSJwYXRoMzA1OSIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MS45OTk5OTk4ODtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMC4zODU3MTcsMTUgTCA0Ljk5OTk5OTgsMTUiCiAgICAgICBpZD0icGF0aDMwNjEiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MS45OTk5OTk3NjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgZD0iTSAzMS4zNjIwOTEsMzUgTCA0Ljk5OTk5OTgsMzUiCiAgICAgICBpZD0icGF0aDM5NDQiIC8+CiAgICA8ZwogICAgICAgaWQ9ImcyNTYwIgogICAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi41LC0zOS41KSI+CiAgICAgIDxwYXRoCiAgICAgICAgIGlkPSJwYXRoMzUxNiIKICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICBkPSJNIC0yLjI1LDgxLjUwMDAwNSBDIC0zLjg0NzM3NCw4NC4xNDQ0MDUgLTQuNSw4NC41MDAwMDUgLTQuNSw4NC41MDAwMDUgTCAtOC4xNTYyNSw4NC41MDAwMDUgTCAtNi4xNTYyNSw4Mi4wNjI1MDUgQyAtNi4xNTYyNSw4Mi4wNjI1MDUgLTAuNSw3NS4wNjI0NTEgLTAuNSw2NC41IEMgLTAuNSw1My45Mzc1NDkgLTYuMTU2MjUsNDYuOTM3NSAtNi4xNTYyNSw0Ni45Mzc1IEwgLTguMTU2MjUsNDQuNSBMIC00LjUsNDQuNSBDIC0zLjcxODc1LDQ1LjQzNzUgLTMuMDc4MTI1LDQ2LjE1NjI1IC0yLjI4MTI1LDQ3LjUgQyAtMC40MDg1MzEsNTAuNTk5ODE1IDIuNSw1Ni41MjY2NDYgMi41LDY0LjUgQyAyLjUsNzIuNDUwNjUgLTAuMzk2Njk3LDc4LjM3OTQyNSAtMi4yNSw4MS41MDAwMDUgeiIKICAgICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2Njc2NjY2NzYyIgLz4KICAgICAgPHBhdGgKICAgICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgICBkPSJNIC0yLjQwNjI1LDQ0LjUgTCAtMC40MDYyNSw0Ni45Mzc1IEMgLTAuNDA2MjUsNDYuOTM3NSA1LjI1LDUzLjkzNzU0OSA1LjI1LDY0LjUgQyA1LjI1LDc1LjA2MjQ1MSAtMC40MDYyNSw4Mi4wNjI1IC0wLjQwNjI1LDgyLjA2MjUgTCAtMi40MDYyNSw4NC41IEwgMC43NSw4NC41IEwgMTQuNzUsODQuNSBDIDE3LjE1ODA3Niw4NC41MDAwMDEgMjIuNDM5Njk5LDg0LjUyNDUxNCAyOC4zNzUsODIuMDkzNzUgQyAzNC4zMTAzMDEsNzkuNjYyOTg2IDQwLjkxMTUzNiw3NC43NTA0ODQgNDYuMDYyNSw2NS4yMTg3NSBMIDQ0Ljc1LDY0LjUgTCA0Ni4wNjI1LDYzLjc4MTI1IEMgMzUuNzU5Mzg3LDQ0LjcxNTU5IDE5LjUwNjU3NCw0NC41IDE0Ljc1LDQ0LjUgTCAwLjc1LDQ0LjUgTCAtMi40MDYyNSw0NC41IHogTSAzLjQ2ODc1LDQ3LjUgTCAxNC43NSw0Ny41IEMgMTkuNDM0MTczLDQ3LjUgMzMuMDM2ODUsNDcuMzY5NzkzIDQyLjcxODc1LDY0LjUgQyAzNy45NTE5NjQsNzIuOTI5MDc1IDMyLjE5NzQ2OSw3Ny4xODM5MSAyNyw3OS4zMTI1IEMgMjEuNjM5MzM5LDgxLjUwNzkyNCAxNy4xNTgwNzUsODEuNTAwMDAxIDE0Ljc1LDgxLjUgTCAzLjUsODEuNSBDIDUuMzczNTg4NCw3OC4zOTE1NjYgOC4yNSw3Mi40NTA2NSA4LjI1LDY0LjUgQyA4LjI1LDU2LjUyNjY0NiA1LjM0MTQ2ODYsNTAuNTk5ODE1IDMuNDY4NzUsNDcuNSB6IgogICAgICAgICBpZD0icGF0aDQ5NzMiCiAgICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NzY2NjY3NjY2NjY2NjY2NzY2NzYyIgLz4KICAgIDwvZz4KICAgIDxwYXRoCiAgICAgICBzb2RpcG9kaTp0eXBlPSJhcmMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDozO3N0cm9rZS1saW5lam9pbjptaXRlcjttYXJrZXI6bm9uZTtzdHJva2Utb3BhY2l0eToxO3Zpc2liaWxpdHk6dmlzaWJsZTtkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icGF0aDM1NTEiCiAgICAgICBzb2RpcG9kaTpjeD0iNzUiCiAgICAgICBzb2RpcG9kaTpjeT0iMjUiCiAgICAgICBzb2RpcG9kaTpyeD0iNCIKICAgICAgIHNvZGlwb2RpOnJ5PSI0IgogICAgICAgZD0iTSA3OSwyNSBBIDQsNCAwIDEgMSA3MSwyNSBBIDQsNCAwIDEgMSA3OSwyNSB6IiAvPgogIDwvZz4KPC9zdmc+Cg=="}}},{operation:function(t,n){return(!t||!n)&&(t||n)}}),_ft=s1.define("logic.Wire",{attrs:{".connection":{"stroke-width":2},".marker-vertex":{r:7}},router:{name:"orthogonal"},connector:{name:"rounded",args:{radius:10}}},{arrowheadMarkup:['','',""].join(""),vertexMarkup:['','','','','',"Remove vertex.","","",""].join("")}),vft=es.define("chess.KingWhite",{size:{width:42,height:38}},{markup:' '}),Cft=es.define("chess.KingBlack",{size:{width:42,height:38}},{markup:' '}),bft=es.define("chess.QueenWhite",{size:{width:42,height:38}},{markup:' '}),xft=es.define("chess.QueenBlack",{size:{width:42,height:38}},{markup:' '}),yft=es.define("chess.RookWhite",{size:{width:32,height:34}},{markup:' '}),wft=es.define("chess.RookBlack",{size:{width:32,height:34}},{markup:' '}),Mft=es.define("chess.BishopWhite",{size:{width:38,height:38}},{markup:' '}),Oft=es.define("chess.BishopBlack",{size:{width:38,height:38}},{markup:' '}),Sft=es.define("chess.KnightWhite",{size:{width:38,height:37}},{markup:' '}),Pft=es.define("chess.KnightBlack",{size:{width:38,height:37}},{markup:' '}),Eft=es.define("chess.PawnWhite",{size:{width:28,height:33}},{markup:''}),Tft=es.define("chess.PawnBlack",{size:{width:28,height:33}},{markup:''}),d2e=ms.define("erd.Entity",{size:{width:150,height:60},attrs:{".outer":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"100,0 100,60 0,60 0,0"},".inner":{fill:"#2ECC71",stroke:"#27AE60","stroke-width":2,points:"95,5 95,55 5,55 5,5",display:"none"},text:{text:"Entity","font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Aft=d2e.define("erd.WeakEntity",{attrs:{".inner":{display:"auto"},text:{text:"Weak Entity"}}}),u2e=ms.define("erd.Relationship",{size:{width:80,height:80},attrs:{".outer":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,0 80,40 40,80 0,40"},".inner":{fill:"#3498DB",stroke:"#2980B9","stroke-width":2,points:"40,5 75,40 40,75 5,40",display:"none"},text:{text:"Relationship","font-family":"Arial","font-size":12,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Dft=u2e.define("erd.IdentifyingRelationship",{attrs:{".inner":{display:"auto"},text:{text:"Identifying"}}}),wb=ms.define("erd.Attribute",{size:{width:100,height:50},attrs:{ellipse:{transform:"translate(50, 25)"},".outer":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:50,ry:25,fill:"#E67E22"},".inner":{stroke:"#D35400","stroke-width":2,cx:0,cy:0,rx:45,ry:20,fill:"#E67E22",display:"none"},text:{"font-family":"Arial","font-size":14,"ref-x":.5,"ref-y":.5,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),Lft=wb.define("erd.Multivalued",{attrs:{".inner":{display:"block"},text:{text:"multivalued"}}}),kft=wb.define("erd.Derived",{attrs:{".outer":{"stroke-dasharray":"3,5"},text:{text:"derived"}}}),Ift=wb.define("erd.Key",{attrs:{ellipse:{"stroke-width":4},text:{text:"key","font-weight":"800","text-decoration":"underline"}}}),Nft=wb.define("erd.Normal",{attrs:{text:{text:"Normal"}}}),Rft=ms.define("erd.ISA",{type:"erd.ISA",size:{width:100,height:50},attrs:{polygon:{points:"0,0 50,50 100,0",fill:"#F1C40F",stroke:"#F39C12","stroke-width":2},text:{text:"ISA","font-size":18,"ref-x":.5,"ref-y":.3,"y-alignment":"middle","text-anchor":"middle"}}},{markup:''}),zft=s1.define("erd.Line",{},{cardinality:function(t){this.set("labels",[{position:-20,attrs:{text:{dy:-8,text:t}}}])}}),Fft=tV.define("fsa.State",{attrs:{circle:{"stroke-width":3},text:{"font-weight":"800"}}}),Hft=ms.define("fsa.StartState",{size:{width:20,height:20},attrs:{circle:{transform:"translate(10, 10)",r:10,fill:"#000000"}}},{markup:''}),Vft=ms.define("fsa.EndState",{size:{width:20,height:20},attrs:{".outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#000000"},".inner":{transform:"translate(10, 10)",r:6,fill:"#000000"}}},{markup:''}),Bft=s1.define("fsa.Arrow",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}},smooth:!0}),Gft=ms.define("org.Member",{size:{width:180,height:70},attrs:{rect:{width:170,height:60},".card":{fill:"#FFFFFF",stroke:"#000000","stroke-width":2,"pointer-events":"visiblePainted",rx:10,ry:10},image:{width:48,height:48,ref:".card","ref-x":10,"ref-y":5},".rank":{"text-decoration":"underline",ref:".card","ref-x":.9,"ref-y":.2,"font-family":"Courier New","font-size":14,"text-anchor":"end"},".name":{"font-weight":"800",ref:".card","ref-x":.9,"ref-y":.6,"font-family":"Courier New","font-size":14,"text-anchor":"end"}}},{markup:''}),Yft=s1.define("org.Arrow",{source:{selector:".card"},target:{selector:".card"},attrs:{".connection":{stroke:"#585858","stroke-width":3}},z:-1}),Uft=es.define("pn.Place",{size:{width:50,height:50},attrs:{".root":{r:25,fill:"#ffffff",stroke:"#000000",transform:"translate(25, 25)"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:".root",fill:"#000000","font-size":12},".tokens > circle":{fill:"#000000",r:5},".tokens.one > circle":{transform:"translate(25, 25)"},".tokens.two > circle:nth-child(1)":{transform:"translate(19, 25)"},".tokens.two > circle:nth-child(2)":{transform:"translate(31, 25)"},".tokens.three > circle:nth-child(1)":{transform:"translate(18, 29)"},".tokens.three > circle:nth-child(2)":{transform:"translate(25, 19)"},".tokens.three > circle:nth-child(3)":{transform:"translate(32, 29)"},".tokens.alot > text":{transform:"translate(25, 18)","text-anchor":"middle",fill:"#000000"}}},{markup:''}),jft=Vc.extend({presentationAttributes:Vc.addPresentationAttributes({tokens:["TOKENS"]}),initFlag:Vc.prototype.initFlag.concat(["TOKENS"]),confirmUpdate:function(...t){let n=Vc.prototype.confirmUpdate.call(this,...t);return this.hasFlag(n,"TOKENS")&&(this.renderTokens(),this.update(),n=this.removeFlag(n,"TOKENS")),n},renderTokens:function(){const t=this.vel.findOne(".tokens").empty();["one","two","three","alot"].forEach(function(e){t.removeClass(e)});var n=this.model.get("tokens");if(n)switch(n){case 1:t.addClass("one"),t.append(ti("circle"));break;case 2:t.addClass("two"),t.append([ti("circle"),ti("circle")]);break;case 3:t.addClass("three"),t.append([ti("circle"),ti("circle"),ti("circle")]);break;default:t.addClass("alot"),t.append(ti("text").text(n+""))}}}),Wft=es.define("pn.Transition",{size:{width:12,height:50},attrs:{rect:{width:12,height:50,fill:"#000000",stroke:"#000000"},".label":{"text-anchor":"middle","ref-x":.5,"ref-y":-20,ref:"rect",fill:"#000000","font-size":12}}},{markup:''}),qft=s1.define("pn.Link",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z"}}}),aV=es.define("uml.Class",{attrs:{rect:{width:200},".uml-class-name-rect":{stroke:"black","stroke-width":2,fill:"#3498db"},".uml-class-attrs-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-methods-rect":{stroke:"black","stroke-width":2,fill:"#2980b9"},".uml-class-name-text":{ref:".uml-class-name-rect","ref-y":.5,"ref-x":.5,"text-anchor":"middle","y-alignment":"middle","font-weight":"bold",fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-attrs-text":{ref:".uml-class-attrs-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"},".uml-class-methods-text":{ref:".uml-class-methods-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman"}},name:[],attributes:[],methods:[]},{markup:['','','',"",'',""].join(""),initialize:function(){this.on("change:name change:attributes change:methods",function(){this.updateRectangles(),this.trigger("uml-update")},this),this.updateRectangles(),es.prototype.initialize.apply(this,arguments)},getClassName:function(){return this.get("name")},updateRectangles:function(){var t=this.get("attrs"),n=[{type:"name",text:this.getClassName()},{type:"attrs",text:this.get("attributes")},{type:"methods",text:this.get("methods")}],e=0;n.forEach(function(i){var r=Array.isArray(i.text)?i.text:[i.text],o=20*r.length+20;t[".uml-class-"+i.type+"-text"].text=r.join("\n"),t[".uml-class-"+i.type+"-rect"].height=o,t[".uml-class-"+i.type+"-rect"].transform="translate(0,"+e+")",e+=o})}}),sV=Vc.extend({initialize:function(){Vc.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"uml-update",function(){this.update(),this.resize()})}}),Xft=aV.define("uml.Abstract",{attrs:{".uml-class-name-rect":{fill:"#e74c3c"},".uml-class-attrs-rect":{fill:"#c0392b"},".uml-class-methods-rect":{fill:"#c0392b"}}},{getClassName:function(){return["<>",this.get("name")]}}),$ft=sV,Qft=aV.define("uml.Interface",{attrs:{".uml-class-name-rect":{fill:"#f1c40f"},".uml-class-attrs-rect":{fill:"#f39c12"},".uml-class-methods-rect":{fill:"#f39c12"}}},{getClassName:function(){return["<>",this.get("name")]}}),Kft=sV,Zft=s1.define("uml.Generalization",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"}}}),Jft=s1.define("uml.Implementation",{attrs:{".marker-target":{d:"M 20 0 L 0 10 L 20 20 z",fill:"white"},".connection":{"stroke-dasharray":"3,3"}}}),e4t=s1.define("uml.Aggregation",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"white"}}}),t4t=s1.define("uml.Composition",{attrs:{".marker-target":{d:"M 40 10 L 20 20 L 0 10 L 20 0 z",fill:"black"}}}),n4t=s1.define("uml.Association"),i4t=es.define("uml.State",{attrs:{".uml-state-body":{width:200,height:200,rx:10,ry:10,fill:"#ecf0f1",stroke:"#bdc3c7","stroke-width":3},".uml-state-separator":{stroke:"#bdc3c7","stroke-width":2},".uml-state-name":{ref:".uml-state-body","ref-x":.5,"ref-y":5,"text-anchor":"middle",fill:"#000000","font-family":"Courier New","font-size":14},".uml-state-events":{ref:".uml-state-separator","ref-x":5,"ref-y":5,fill:"#000000","font-family":"Courier New","font-size":14}},name:"State",events:[]},{markup:['','','',"",'','','',""].join(""),initialize:function(){this.on({"change:name":this.updateName,"change:events":this.updateEvents,"change:size":this.updatePath},this),this.updateName(),this.updateEvents(),this.updatePath(),es.prototype.initialize.apply(this,arguments)},updateName:function(){this.attr(".uml-state-name/text",this.get("name"))},updateEvents:function(){this.attr(".uml-state-events/text",this.get("events").join("\n"))},updatePath:function(){var t="M 0 20 L "+this.get("size").width+" 20";this.attr(".uml-state-separator/d",t,{silent:!0})}}),r4t=tV.define("uml.StartState",{type:"uml.StartState",attrs:{circle:{fill:"#34495e",stroke:"#2c3e50","stroke-width":2,rx:1}}}),o4t=es.define("uml.EndState",{size:{width:20,height:20},attrs:{"circle.outer":{transform:"translate(10, 10)",r:10,fill:"#ffffff",stroke:"#2c3e50"},"circle.inner":{transform:"translate(10, 10)",r:6,fill:"#34495e"}}},{markup:''}),a4t=s1.define("uml.Transition",{attrs:{".marker-target":{d:"M 10 0 L 0 5 L 10 10 z",fill:"#34495e",stroke:"#2c3e50"},".connection":{stroke:"#2c3e50"}}}),s4t=ms.define("noctua.StencilNode",{size:{width:80,height:80},attrs:{body:{refWidth:"100%",refHeight:"100%",fill:"#FFFFFF",stroke:"#AAAAAA"},iconBackground:{ref:"icon",refWidth:"100%",refHeight:"100%",fill:"transparent"},icon:{x:0,y:10,refWidth:"100%",height:50},label:{y:70,height:"30px",refX:"50%",fill:"#000",textAnchor:"middle",textVerticalAnchor:"middle",fontFamily:"sans-serif",fontSize:8,textWrap:{ellipsis:!1,width:"95%"}}}},{markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"statusLine"},{tagName:"rect",selector:"iconBackground"},{tagName:"image",selector:"icon"},{tagName:"text",selector:"label"}]},{}),c4t=ms.define("noctua.NodeCell",{attrs:{root:{magnet:!0},wrapper:{magnet:!0,refWidth:"100%",refHeight:"100%",stroke:"rgba(0,0,255,0.3)"},body:{refWidth:"100%",refHeight:"100%",fill:"#FFFFFF",stroke:"rgba(0,0,255,0.3)"},noctuaTitle:{x:0,refX:"10px",refY:"10px",fill:"#000000",textAnchor:"left",textVerticalAnchor:"top",fontSize:12,text:"",textWrap:{ellipsis:!0}}}},{markup:[{tagName:"rect",selector:"wrapper"},{tagName:"rect",selector:"body"},{tagName:"text",selector:"noctuaTitle"}]},{create:function(t){return new this({attrs:{label:{text:t}}})}}),d4t=(ms.define("noctua.NodeCellList",{attrs:{root:{magnet:!0},".wrapper":{magnet:!0,refWidth:"100%",refHeight:"100%",fill:"transparent",stroke:"rgba(0,0,255,0.3)"},".highlighter":{refWidth:"100%",refHeight:"100%",fill:"none",stroke:"transparent","stroke-width":10},rect:{width:300},".activity-gp-rect":{fill:"#d5d2d5",stroke:"#fff",height:50,"stroke-width":.5},".edit":{event:"element:.edit:pointerdown","xlink:href":"./assets/icons/edit.svg",ref:".wrapper",refX:"100%",refX2:5,y:0,height:20,cursor:"pointer",visibility:"hidden"},".delete":{event:"element:.delete:pointerdown","xlink:href":"./assets/icons/delete.svg",ref:".wrapper",refX:"100%",refX2:5,y:30,height:20,cursor:"pointer",visibility:"hidden"},".activity-mf-rect":{fill:"#d5fdd5",stroke:"#fff","stroke-width":.5},".activity-cc-rect":{fill:"#d5fdd5",stroke:"#fff","stroke-width":.5},".activity-bp-rect":{fill:"#d5fdd5",stroke:"#fff","stroke-width":.5},".activity-gp-text":{ref:".activity-gp-rect","ref-y":.5,"ref-x":5,"text-anchor":"left","y-alignment":"middle","font-weight":"bold",fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{width:"90%",ellipsis:!1}},".activity-mf-text":{ref:".activity-mf-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{width:"90%",ellipsis:!1}},".activity-cc-text":{ref:".activity-cc-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{ellipsis:!1}},".activity-bp-text":{ref:".activity-bp-rect","ref-y":5,"ref-x":5,fill:"black","font-size":12,"font-family":"Times New Roman",textWrap:{width:"90%",ellipsis:!1}}},name:[],attributes:[],gp:[]},{markup:['','','','','','','','',"",'','','','','','',""].join(""),initialize:function(){this.on("change:name change:attributes change:gp",function(){this.updateRectangles(),this.trigger("activity-update")},this),this.updateRectangles(),ms.prototype.initialize.apply(this,arguments)},getClassName:function(){return this.get("name")},updateRectangles:function(){const t=this.get("attrs"),n=[{type:"gp",text:this.get("gp")},{type:"mf",text:this.get("mf")}],e=this.get("cc"),i=this.get("bp");e&&n.push({type:"cc",text:e}),i&&n.push({type:"bp",text:i});let r=0;n.forEach(function(o){const a=Array.isArray(o.text)?o.text:[o.text],c=30*a.length+200;t[".activity-"+o.type+"-text"].text=a.join("\n"),t[".activity-"+o.type+"-rect"].height=c,t[".activity-"+o.type+"-rect"].transform="translate(0,"+r+")",r+=c})}}),ms.define("noctua.NodeCellMolecule",{attrs:{".wrapper":{refCx:"50%",refCy:"50%",refR:"50%",magnet:!0,refWidth:"100%",refHeight:"100%",fill:"transparent",stroke:"rgba(0,0,255,0.3)"},".circle":{refCx:"50%",refCy:"50%",refR:"50%",strokeWidth:2},".label":{textVerticalAnchor:"middle",textAnchor:"middle",refX:"50%",refY:"50%",fontSize:12,fill:"#333333",textWrap:{ellipsis:!1,width:"95%"}},".edit":{event:"element:.edit:pointerdown","xlink:href":"./assets/icons/edit.svg",ref:".wrapper",refX:"100%",refX2:-10,y:0,height:20,cursor:"pointer",visibility:"hidden"},".delete":{event:"element:.delete:pointerdown","xlink:href":"./assets/icons/delete.svg",ref:".wrapper",refX:"100%",refX2:5,y:30,height:20,cursor:"pointer",visibility:"hidden"}}},{markup:['','','','',"",'','','',""].join("")},{create:function(t){return new this({attrs:{label:{text:t}}})}})),u4t=l2e.define("noctua.NodeLink",{attrs:{line:{connection:!0,stroke:"#005580",strokeWidth:1,strokeLinejoin:"round",targetMarker:{type:"path",stroke:"black",fill:"black",d:"M 10 -5 0 0 10 5 Z"}},defaultLabel:{markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}],attrs:{label:{text:{text:"150"},fill:"blue",fontSize:10,textAnchor:"middle",yAlignment:"middle",pointerEvents:"none"},body:{ref:"label",fill:"pink",stroke:"#005580",strokeWidth:1,refWidth:"120%",refHeight:"120%",refX:"-10%",refY:"-10%"}}}}},{markup:[{tagName:"path",selector:"line",attributes:{fill:"none","pointer-events":"none"}}]},{}),cV=(Vc.extend({initialize:function(){Vc.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"activity-update",function(){this.update(),this.resize()})}}),"sans-serif"),m4t=(t,n)=>t.map((e,i,{length:r})=>new an(0,n.height-27.5-8-35*(r-1-i))),_4t={attrs:{body:{width:"calc(w)",height:"calc(h)",x:"0",y:"calc(-0.5*h)",fill:"transparent",stroke:"white",strokeWidth:1},relationship:{width:60,pointerEvents:"none",fontFamily:cV,fontWeight:400,fontSize:9,fill:"black",textAnchor:"start",textVerticalAnchor:"middle",textWrap:{width:60,maxLineCount:2,ellipsis:!0},x:8},portLabel:{width:100,pointerEvents:"none",fontFamily:cV,fontSize:12,fill:"black",textAnchor:"start",textVerticalAnchor:"middle",textWrap:{width:140,maxLineCount:2,ellipsis:!0},x:60},noEvidence:{"xlink:href":"./assets/icons/no-evidence.png",ref:"body",x:60,y:-8,height:15,cursor:"pointer",visibility:"hidden"}},size:{width:200,height:35},markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"relationship"},{tagName:"text",selector:"portLabel"},{tagName:"image",selector:"noEvidence"}]},v4t={attrs:{root:{magnet:!0},".wrapper":{magnet:!0,refWidth:"100%",refHeight:"100%",fill:"transparent",stroke:"rgba(0,0,255,0.3)"},".highlighter":{refWidth:"100%",refHeight:"100%",fill:"none",stroke:"transparent","stroke-width":10},body:{width:"calc(w)",height:"calc(h)"},icon:{width:30,height:30,x:5,y:5},label:{x:40,y:15,fontFamily:cV,fontWeight:600,fontSize:12,fill:"black",text:"Label",textWrap:{width:"90%",maxLineCount:1,ellipsis:!0},textVerticalAnchor:"top"},".edit":{event:"element:.edit:pointerdown","xlink:href":"./assets/icons/edit.svg",ref:".wrapper",refX:"100%",refX2:5,y:0,height:20,cursor:"pointer",visibility:"hidden"},".delete":{event:"element:.delete:pointerdown","xlink:href":"./assets/icons/delete.svg",ref:".wrapper",refX:"100%",refX2:5,y:30,height:20,cursor:"pointer",visibility:"hidden"}},markup:[{tagName:"rect",selector:".wrapper"},{tagName:"rect",selector:".highlighter"},{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"},{tagName:"image",selector:"icon"},{tagName:"image",selector:".edit"},{tagName:"image",selector:".delete"}]};class C4t extends ms{defaults(){return Object.assign(Object.assign(Object.assign({},super.defaults),v4t),{type:"ListElement",size:{width:200,height:0},ports:{groups:{list:Object.assign({position:m4t},_4t)},items:[]}})}initialize(...n){this.on("change:ports",()=>this.resizeToFitPorts()),this.resizeToFitPorts(),super.initialize.call(this,...n)}resizeToFitPorts(){const{length:n}=this.getPorts();this.prop(["size","height"],40+35*n+16)}}class dV extends s4t{setColor(n){const e=this,i=xs(n,800),r=xs(n,100);return e.attr("body/stroke",r),e.attr("statusLine/fill",i),e.attr("statusType/fill",i),e.attr("iconBackground/fill",r),this}setIcon(n){return n&&this.attr("icon/xlink:href",`${n}`),this}}class b4t extends c4t{addNodePorts(){return this}addColor(n){const e=this,i=xs(n,800),r=xs(n,100);return e.attr("body/stroke",r),e.attr("statusLine/fill",i),e.attr("statusType/fill",i),this}hover(n){return this.attr("wrapper/strokeWidth",n?20:0),this}}class uV extends C4t{constructor(){super()}addHeader(n){this.attr("label/text",n)}addEntity(n,e,i){const r={};n?(r.relationship={text:n},r.portLabel={text:e},i||(r.portLabel.x=75)):(r.relationship={visibility:"hidden"},r.portLabel={text:e,x:i?8:25,width:200,textWrap:{width:184}}),i||(r.noEvidence={visibility:"visible"},r.textWrap={width:150},n||(r.noEvidence.x=8)),this.addPort({group:"list",attrs:r})}setColor(n,e,i){xs(n,e||200);const a=xs(n,i||100);return this.attr("body/fill",a),this}setBorder(n,e){const r=xs(n,e||500);return this.attr(".highlighter/stroke",r),this}unsetBorder(){return this.attr(".highlighter/stroke","transparent"),this}addIcon(n){this.attr("icon/xlinkHref",n)}hover(n){const e=this;return e.attr(".wrapper/strokeWidth",n?40:0),e.attr(".edit/visibility",n?"visible":"hidden"),e.attr(".delete/visibility",n?"visible":"hidden"),this}}class m2e extends d4t{constructor(){super()}addNodePorts(){return this}setColor(n,e,i){const o=xs(n,e||200),a=xs(n,i||100);return this.attr(".circle/stroke",o),this.attr(".circle/fill",a),this}setText(n){return this.attr(".label/text",n),this}setBorder(n,e){const r=xs(n,e||500);return this.attr(".highlighter/stroke",r),this}unsetBorder(){return this.attr(".highlighter/stroke","transparent"),this}hover(n){const e=this;return e.attr(".wrapper/strokeWidth",n?40:0),e.attr(".edit/visibility",n?"visible":"hidden"),e.attr(".delete/visibility",n?"visible":"hidden"),this}}class p8 extends u4t{constructor(){super(...arguments),this.colorKey="grey"}static create(){const n=new p8;return n.prop({z:-1,labels:[{markup:[{tagName:"rect",selector:"labelBody"},{tagName:"text",selector:"labelText"}],attrs:{labelText:{fill:"#7c68fc",fontSize:8,fontFamily:"sans-serif",textAnchor:"middle",textVerticalAnchor:"middle"},labelBody:{ref:"labelText",refX:-5,refY:-5,refWidth:"100%",refHeight:"100%",refWidth2:10,refHeight2:10,stroke:"#7c68fc",fill:"white",strokeWidth:1,rx:5,ry:5}},position:{distance:.5,args:{ensureLegibility:!0,absoluteOffset:!0}}}]}),n.router("normal",{}).connector("smooth"),n}setText(n){return this.label(0,{attrs:{labelText:{text:n}}}),this}setColor(n,e=!1){const i=this;e&&(this.colorKey=n);const r=xs(n,800),a=xs(n,600)||n,c=r||n;return i.attr("line/stroke",a),i.attr("line/targetMarker/stroke",a),i.attr("line/targetMarker/fill",a),i.label(0,{attrs:{labelText:{fill:c},labelBody:{stroke:a}}}),this}hover(n){return this.attr("line/strokeWidth",n?4:1),this.label(0,{attrs:{labelBody:{strokeWidth:n?2:1}}}),this}}let _2e=(()=>{class t{constructor(){this._initialize()}_initialize(){Object.assign(ne,{noctua:{StencilNode:dV,NodeCell:b4t,NodeCellMolecule:m2e,NodeCellList:uV,NodeLink:p8}}),ms.define("noctua.NodeCellBase",{z:3,attrs:{root:{pointerEvents:"bounding-box",magnet:!1},body:{strokeWidth:2,fillOpacity:.2},label:{textWrap:{height:-20,width:-20,ellipsis:!0},refX:"50%",refY:"50%",fontSize:16,fontFamily:"sans-serif",fill:"#333333",textAnchor:"middle",textVerticalAnchor:"middle"}}},{},{})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const x4t=[{id:"activity_unit",label:"Activity Type",nodes:[{type:Wi.default,id:Ht.activityType.options.default.name,label:Ht.activityType.options.default.label.toUpperCase(),iconUrl:"./assets/images/activity/default.png",description:"Click and drag onto canvas to create new activity for a single object, either a gene product or a protein complex identifier"},{type:Wi.proteinComplex,id:Ht.activityType.options.proteinComplex.name,label:Ht.activityType.options.proteinComplex.label.toUpperCase(),iconUrl:"./assets/images/activity/proteinComplex.png",description:"Click and drag onto canvas to create new activity for a protein complex that you define using a GO complex term and specifying the gene product subunits"},{type:Wi.molecule,id:Ht.activityType.options.molecule.name,label:Ht.activityType.options.molecule.label.toUpperCase(),iconUrl:"./assets/images/activity/molecule.png",description:"Click and drag onto canvas to create a new small molecule that is either a substrate, a product, or a regulator of an activity"}]}],v2e={camStencil:(0,Nt.cloneDeep)(x4t)},y4t=ti,hV={cells:function(t){return function(){var n=Array.from(arguments),e=n.length,i=e>0&&n[0]||[],r=e>1&&n[e-1]||{};return Array.isArray(i)||(r instanceof rp?i=n:i instanceof rp&&(n.length>1&&n.pop(),i=n)),r instanceof rp&&(r={}),t.call(this,i,r)}}},M4t=p2.Collection.extend({initialize:function(t,n){this.cellNamespace=n.cellNamespace?n.cellNamespace:"undefined"!=typeof joint&&ip(joint,"shapes")?joint.shapes:null,this.graph=n.graph},model:function(t,n){var e=n.collection,o=new("link"===t.type?s1:vb(e.cellNamespace,t.type,".")||ms)(t,n);return n.dry||(o.graph=e.graph),o},comparator:function(t){return t.get("z")||0}}),e0=p2.Model.extend({initialize:function(t,n){var e=new M4t([],{model:(n=n||{}).cellModel,cellNamespace:n.cellNamespace,graph:this});p2.Model.prototype.set.call(this,"cells",e),e.on("all",this.trigger,this),this.on("change:z",this._sortOnChangeZ,this),this._out={},this._in={},this._nodes={},this._edges={},this._batches={},e.on("add",this._restructureOnAdd,this),e.on("remove",this._restructureOnRemove,this),e.on("reset",this._restructureOnReset,this),e.on("change:source",this._restructureOnChangeSource,this),e.on("change:target",this._restructureOnChangeTarget,this),e.on("remove",this._removeCell,this)},_sortOnChangeZ:function(){this.get("cells").sort()},_restructureOnAdd:function(t){if(t.isLink()){this._edges[t.id]=!0;var{source:n,target:e}=t.attributes;n.id&&((this._out[n.id]||(this._out[n.id]={}))[t.id]=!0),e.id&&((this._in[e.id]||(this._in[e.id]={}))[t.id]=!0)}else this._nodes[t.id]=!0},_restructureOnRemove:function(t){if(t.isLink()){delete this._edges[t.id];var{source:n,target:e}=t.attributes;n.id&&this._out[n.id]&&this._out[n.id][t.id]&&delete this._out[n.id][t.id],e.id&&this._in[e.id]&&this._in[e.id][t.id]&&delete this._in[e.id][t.id]}else delete this._nodes[t.id]},_restructureOnReset:function(t){t=t.models,this._out={},this._in={},this._nodes={},this._edges={},t.forEach(this._restructureOnAdd,this)},_restructureOnChangeSource:function(t){var n=t.previous("source");n.id&&this._out[n.id]&&delete this._out[n.id][t.id];var e=t.attributes.source;e.id&&((this._out[e.id]||(this._out[e.id]={}))[t.id]=!0)},_restructureOnChangeTarget:function(t){var n=t.previous("target");n.id&&this._in[n.id]&&delete this._in[n.id][t.id];var e=t.get("target");e.id&&((this._in[e.id]||(this._in[e.id]={}))[t.id]=!0)},getOutboundEdges:function(t){return this._out&&this._out[t]||{}},getInboundEdges:function(t){return this._in&&this._in[t]||{}},toJSON:function(){var t=p2.Model.prototype.toJSON.apply(this,arguments);return t.cells=this.get("cells").toJSON(),t},fromJSON:function(t,n){if(!t.cells)throw new Error("Graph JSON must contain cells array.");return this.set(t,n)},set:function(t,n,e){var i;return"object"==typeof t?(i=t,e=n):(i={})[t]=n,i.hasOwnProperty("cells")&&(this.resetCells(i.cells,e),i=E4(i,"cells")),p2.Model.prototype.set.call(this,i,e)},clear:function(t){t=ro({},t,{clear:!0});var n=this.get("cells");if(0===n.length)return this;this.startBatch("clear",t);var e=n.sortBy(function(i){return i.isLink()?1:2});do{e.shift().remove(t)}while(e.length>0);return this.stopBatch("clear"),this},_prepareCell:function(t,n){var e;if(t instanceof p2.Model?(e=t.attributes,!t.graph&&(!n||!n.dry)&&(t.graph=this)):e=t,!V1(e.type))throw new TypeError("dia.Graph: cell type must be a string.");return t},minZIndex:function(){var t=this.get("cells").first();return t&&t.get("z")||0},maxZIndex:function(){var t=this.get("cells").last();return t&&t.get("z")||0},addCell:function(t,n){return Array.isArray(t)?this.addCells(t,n):(t instanceof p2.Model?t.has("z")||t.set("z",this.maxZIndex()+1):void 0===t.z&&(t.z=this.maxZIndex()+1),this.get("cells").add(this._prepareCell(t,n),n||{}),this)},addCells:function(t,n){return 0===t.length||(t=e3t(t),n.maxPosition=n.position=t.length-1,this.startBatch("add",n),t.forEach(function(e){this.addCell(e,n),n.position--},this),this.stopBatch("add",n)),this},resetCells:function(t,n){var e=Ma(t).map(function(i){return this._prepareCell(i,n)},this);return this.get("cells").reset(e,n),this},removeCells:function(t,n){return t.length&&(this.startBatch("remove"),Jh(t,"remove",n),this.stopBatch("remove")),this},_removeCell:function(t,n,e){(e=e||{}).clear||(e.disconnectLinks?this.disconnectLinks(t,e):this.removeLinks(t,e)),this.get("cells").remove(t,{silent:!0}),t.graph===this&&(t.graph=null)},getCell:function(t){return this.get("cells").get(t)},getCells:function(){return this.get("cells").toArray()},getElements:function(){return this.get("cells").filter(t=>t.isElement())},getLinks:function(){return this.get("cells").filter(t=>t.isLink())},getFirstCell:function(){return this.get("cells").first()},getLastCell:function(){return this.get("cells").last()},getConnectedLinks:function(t,n){var e=(n=n||{}).indirect,i=n.inbound,r=n.outbound;void 0===i&&void 0===r&&(i=r=!0);var o=[],a={};function c(E,B){if($u(E.getOutboundEdges(B.id),function(ee,be){if(!a[be]){var _e=E.getCell(be);o.push(_e),a[be]=!0,e&&(i&&u(E,_e),r&&c(E,_e))}}.bind(E)),e&&B.isLink()){var Z=B.getTargetCell();Z&&Z.isLink()&&(a[Z.id]||(o.push(Z),c(E,Z)))}}function u(E,B){if($u(E.getInboundEdges(B.id),function(ee,be){if(!a[be]){var _e=E.getCell(be);o.push(_e),a[be]=!0,e&&(i&&u(E,_e),r&&c(E,_e))}}.bind(E)),e&&B.isLink()){var Z=B.getSourceCell();Z&&Z.isLink()&&(a[Z.id]||(o.push(Z),u(E,Z)))}}if(r&&c(this,t),i&&u(this,t),n.deep){var f=t.getEmbeddedCells({deep:!0}),w={};f.forEach(function(E){E.isElement()&&(w[E.id]=!0)}),f.forEach(function(E){E.isLink()||(r&&$u(this.getOutboundEdges(E.id),function(B,Z){if(!a[Z]){var ee=this.getCell(Z),{source:be,target:_e}=ee.attributes,Pe=be.id,Ie=_e.id;if(!n.includeEnclosed&&Pe&&w[Pe]&&Ie&&w[Ie])return;o.push(this.getCell(Z)),a[Z]=!0}}.bind(this)),i&&$u(this.getInboundEdges(E.id),function(B,Z){if(!a[Z]){var ee=this.getCell(Z),{source:be,target:_e}=ee.attributes,Pe=be.id,Ie=_e.id;if(!n.includeEnclosed&&Pe&&w[Pe]&&Ie&&w[Ie])return;o.push(this.getCell(Z)),a[Z]=!0}}.bind(this)))},this)}return o},getNeighbors:function(t,n){n||(n={});var e=n.inbound,i=n.outbound;void 0===e&&void 0===i&&(e=i=!0);var r=this.getConnectedLinks(t,n).reduce(function(c,u){var{source:f,target:w}=u.attributes,E=u.hasLoop(n);if(e&&ip(f,"id")&&!c[f.id]){var B=this.getCell(f.id);B.isElement()&&(E||B&&B!==t&&(!n.deep||!B.isEmbeddedIn(t)))&&(c[f.id]=B)}if(i&&ip(w,"id")&&!c[w.id]){var Z=this.getCell(w.id);Z.isElement()&&(E||Z&&Z!==t&&(!n.deep||!Z.isEmbeddedIn(t)))&&(c[w.id]=Z)}return c}.bind(this),{});if(t.isLink()){if(e){var o=t.getSourceCell();o&&o.isElement()&&!r[o.id]&&(r[o.id]=o)}if(i){var a=t.getTargetCell();a&&a.isElement()&&!r[a.id]&&(r[a.id]=a)}}return Ma(r)},getCommonAncestor:function(){var t=Array.from(arguments).map(function(e){for(var i=[],r=e.get("parent");r;)i.push(r),r=this.getCell(r).get("parent");return i},this);t=t.sort(function(e,i){return e.length-i.length});var n=Ma(t.shift()).find(function(e){return t.every(function(i){return i.includes(e)})});return this.getCell(n)},getSuccessors:function(t,n){var e=[];return this.search(t,function(i){i!==t&&e.push(i)},ro({},n=n||{},{outbound:!0})),e},cloneCells:V1e,cloneSubgraph:function(t,n){var e=this.getSubgraph(t,n);return this.cloneCells(e)},getSubgraph:function(t,n){n=n||{};var e=[],i={},r=[],o=[];return Ma(t).forEach(function(a){i[a.id]||(e.push(a),i[a.id]=a,a.isLink()?o.push(a):r.push(a)),n.deep&&a.getEmbeddedCells({deep:!0}).forEach(function(u){i[u.id]||(e.push(u),i[u.id]=u,u.isLink()?o.push(u):r.push(u))})}),o.forEach(function(a){var{source:c,target:u}=a.attributes;if(c.id&&!i[c.id]){var f=this.getCell(c.id);e.push(f),i[f.id]=f,r.push(f)}if(u.id&&!i[u.id]){var w=this.getCell(u.id);e.push(this.getCell(u.id)),i[w.id]=w,r.push(w)}},this),r.forEach(function(a){this.getConnectedLinks(a,n).forEach(function(u){var{source:f,target:w}=u.attributes;!i[u.id]&&f.id&&i[f.id]&&w.id&&i[w.id]&&(e.push(u),i[u.id]=u)})},this),e},getPredecessors:function(t,n){var e=[];return this.search(t,function(i){i!==t&&e.push(i)},ro({},n=n||{},{inbound:!0})),e},search:function(t,n,e){(e=e||{}).breadthFirst?this.bfs(t,n,e):this.dfs(t,n,e)},bfs:function(t,n,e={}){const i={},r={},o=[];for(o.push(t),r[t.id]=0;o.length>0;){var a=o.shift();if(i[a.id]||(i[a.id]=!0,!1===n.call(this,a,r[a.id])))continue;const c=this.getNeighbors(a,e);for(let u=0,f=c.length;u0;){const a=o.pop();if(i[a.id]||(i[a.id]=!0,!1===n.call(this,a,r[a.id])))continue;const c=this.getNeighbors(a,e),u=o.length;for(let f=0,w=c.length;fn.getBBox({rotate:!0}).containsPoint(t))},findModelsInArea:function(t,n={}){const e=new rr(t),{strict:i=!1}=n,r=i?"containsRect":"intersect";return this.getElements().filter(o=>e[r](o.getBBox({rotate:!0})))},findModelsUnderElement:function(t,n={}){const{searchBy:e="bbox"}=n,i=t.getBBox().rotateAroundCenter(t.angle());return("bbox"===e?this.findModelsInArea(i):this.findModelsFromPoint(i[e]())).filter(o=>t.id!==o.id&&!o.isEmbeddedIn(t))},getBBox:function(){return this.getCellsBBox(this.getCells())},getCellsBBox:function(t,n={}){const{rotate:e=!0}=n;return Ma(t).reduce(function(i,r){const o=r.getBBox({rotate:e});return o?i?i.union(o):o:i},null)},translate:function(t,n,e){var i=this.getCells().filter(function(r){return!r.isEmbedded()});return Jh(i,"translate",t,n,e),this},resize:function(t,n,e){return this.resizeCells(t,n,this.getCells(),e)},resizeCells:function(t,n,e,i){var r=this.getCellsBBox(e);if(r){var o=Math.max(t/r.width,0),a=Math.max(n/r.height,0);Jh(e,"scale",o,a,r.origin(),i)}return this},startBatch:function(t,n){return n=n||{},this._batches[t]=(this._batches[t]||0)+1,this.trigger("batch:start",ro({},n,{batchName:t}))},stopBatch:function(t,n){return n=n||{},this._batches[t]=(this._batches[t]||0)-1,this.trigger("batch:stop",ro({},n,{batchName:t}))},hasActiveBatch:function(t){const n=this._batches;let e;return e=0===arguments.length?Object.keys(n):Array.isArray(t)?t:[t],e.some(i=>n[i]>0)}},{validations:{multiLinks:function(t,n){var{source:e,target:i}=n.attributes;if(e.id&&i.id){var r=n.getSourceCell();if(r&&t.getConnectedLinks(r,{outbound:!0}).filter(function(c){var{source:u,target:f}=c.attributes;return u&&u.id===e.id&&(!u.port||u.port===e.port)&&f&&f.id===i.id&&(!f.port||f.port===i.port)}).length>1)return!1}return!0},linkPinning:function(t,n){var{source:e,target:i}=n.attributes;return e.id&&i.id}}});!function(t,n,e){if(V1(e)){if(!hV[e])throw new Error('Unknown wrapper: "'+e+'"');e=hV[e]}if(!gs(e))throw new Error("Wrapper must be a function.");Ma(["resetCells","addCells","removeCells"]).forEach(function(i){t[i]=e(t[i])})}(e0.prototype,0,hV.cells);const f8={exportElement:function(t){return t.size()},exportLink:function(t){var n=t.get("labelSize")||{};return{minLen:t.get("minLen")||1,weight:t.get("weight")||1,labelpos:t.get("labelPosition")||"c",labeloffset:t.get("labelOffset")||0,width:n.width||0,height:n.height||0}},importElement:function(t,n,e){var i=this.getCell(n),r=e.node(n);t.setPosition?t.setPosition(i,r):i.set("position",{x:r.x-r.width/2,y:r.y-r.height/2})},importLink:function(t,n,e){const r=this.getCell(n.name),o=e.edge(n),a=o.points||[],c=new Is(a);if(t.setVertices||t.setLinkVertices)if(gs(t.setVertices))t.setVertices(r,a);else{c.simplify({threshold:.001});const u=c.points.map(w=>w.toJSON());r.set("vertices",u.slice(1,u.length-1))}if(t.setLabels&&"x"in o&&"y"in o){const u={x:o.x,y:o.y};if(gs(t.setLabels))t.setLabels(r,u,a);else{const f=c.closestPointLength(u),w=c.pointAtLength(f),E=f/c.length(),B=new an(u).difference(w).toJSON();r.label(0,{position:{distance:E,offset:B}})}}},layout:function(t,n){var e;e=t instanceof e0?t:(new e0).resetCells(t,{dry:!0,sort:!1}),t=null;const i=(n=qu(n||{},{resizeClusters:!0,clusterPadding:10,exportElement:this.exportElement,exportLink:this.exportLink})).dagre||("undefined"!=typeof dagre?dagre:void 0);if(void 0===i)throw new Error('The the "dagre" utility is a mandatory dependency.');var r=f8.toGraphLib(e,{graphlib:n.graphlib,directed:!0,multigraph:!0,compound:!0,setNodeLabel:n.exportElement,setEdgeLabel:n.exportLink,setEdgeName:function(w){return w.id}}),o={},a=n.marginX||0,c=n.marginY||0;if(n.rankDir&&(o.rankdir=n.rankDir),n.align&&(o.align=n.align),n.nodeSep&&(o.nodesep=n.nodeSep),n.edgeSep&&(o.edgesep=n.edgeSep),n.rankSep&&(o.ranksep=n.rankSep),n.ranker&&(o.ranker=n.ranker),a&&(o.marginx=a),c&&(o.marginy=c),r.setGraph(o),i.layout(r,{debugTiming:!!n.debugTiming}),e.startBatch("layout"),f8.fromGraphLib(r,{importNode:this.importElement.bind(e,n),importEdge:this.importLink.bind(e,n)}),n.resizeClusters){var u=r.nodes().filter(function(w){return r.children(w).length>0}).map(e.getCell.bind(e)).sort(function(w,E){return E.getAncestors().length-w.getAncestors().length});Jh(u,"fitEmbeds",{padding:n.clusterPadding})}e.stopBatch("layout");var f=r.graph();return new rr(a,c,Math.abs(f.width-2*a),Math.abs(f.height-2*c))},fromGraphLib:function(t,n){var e=(n=n||{}).importNode||l8,i=n.importEdge||l8,r=this instanceof e0?this:new e0;return t.nodes().forEach(function(o){e.call(r,o,t,r,n)}),t.edges().forEach(function(o){i.call(r,o,t,r,n)}),r},toGraphLib:function(t,n){const e=(n=n||{}).graphlib||("undefined"!=typeof graphlib?graphlib:void 0);if(void 0===e)throw new Error('The the "graphlib" utility is a mandatory dependency.');for(var i=H1e(n,"directed","compound","multigraph"),r=new e.Graph(i),o=n.setNodeLabel||l8,a=n.setEdgeLabel||l8,c=n.setEdgeName||l8,u=t.get("cells"),f=0,w=u.length;f0?u[f]=c[f]:c[f]=u[f],[c].concat(t,u)};var P4t={N:"S",S:"N",E:"W",W:"E"},E4t={N:-Math.PI/2*3,S:-Math.PI/2,E:0,W:Math.PI};function zE(t,n,e){var i=new an(t.x,n.y);return e.containsPoint(i)&&(i=new an(n.x,t.y)),i}function pV(t,n){return t["W"===n||"E"===n?"width":"height"]}function nd(t,n){return t.x===n.x?t.y>n.y?"N":"S":t.y===n.y?t.x>n.x?"W":"E":null}function FE(t){return new rr(t.x,t.y,0,0)}function HE(t){var n=s8(t.padding||t.elementPadding||20);return{x:-n.left,y:-n.top,width:n.left+n.right,height:n.top+n.bottom}}function C2e(t,n){return t.sourceBBox.clone().moveAndExpand(HE(n))}function b2e(t,n){return t.targetBBox.clone().moveAndExpand(HE(n))}function x2e(t,n,e){var i=new an(t.x,n.y),r=new an(n.x,t.y),o=nd(t,i),a=nd(t,r),c=P4t[e],u=o===e||o!==c&&(a===c||a!==e)?i:r;return{points:[u],direction:nd(u,n)}}function VE(t,n,e){var i=zE(t,n,e);return{points:[i],direction:nd(i,n)}}function D4t(t,n,e,i){var u,r={},o=[new an(t.x,n.y),new an(n.x,t.y)],a=o.filter(function(E){return!e.containsPoint(E)}),c=a.filter(function(E){return nd(E,t)!==i});if(c.length>0)u=c.filter(function(E){return nd(t,E)===i}).pop(),r.points=[u=u||c[0]],r.direction=nd(u,n);else{u=F1e(o,a)[0];var f=new an(n).move(u,-pV(e,i)/2),w=zE(f,t,e);r.points=[w,f],r.direction=nd(f,n)}return r}function L4t(t,n,e,i){var r=VE(n,t,i),o=r.points[0];if(e.containsPoint(o)){var a=(r=VE(t,n,e)).points[0];if(i.containsPoint(a)){var c=new an(t).move(a,-pV(e,nd(t,a))/2),u=new an(n).move(o,-pV(i,nd(n,o))/2),f=new pr(c,u).midpoint(),w=VE(t,f,e),E=x2e(f,n,w.direction);r.points=[w.points[0],E.points[0]],r.direction=E.direction}}return r}function fV(t,n,e,i,r){var w,E,B,o={},a=e.union(i).inflate(1),c=a.center().distance(n)>a.center().distance(t),u=c?n:t,f=c?t:n;return r?(w=an.fromPolar(a.width+a.height,E4t[r],u),w=a.pointNearestToPoint(w).move(w,-1)):w=a.pointNearestToPoint(u).move(u,1),E=zE(w,f,a),w.round().equals(E.round())?(E=an.fromPolar(a.width+a.height,Nd(w.theta(u))+Math.PI/2,f),B=zE(w,E=a.pointNearestToPoint(E).move(f,1).round(),a),o.points=c?[E,B,w]:[w,B,E]):o.points=c?[E,w]:[w,E],o.direction=nd(c?w:E,n),o}function gV(t,n,e){var i=C2e(e,n),r=b2e(e,n),o=function T4t(t,n){return t.sourceAnchor?t.sourceAnchor:C2e(t,n).center()}(e,n),a=function A4t(t,n){return t.targetAnchor?t.targetAnchor:b2e(t,n).center()}(e,n);i=i.union(FE(o)),r=r.union(FE(a)),(t=Ma(t).map(an)).unshift(o),t.push(a);for(var c,u=[],f=0,w=t.length-1;f180?360-e:e}function P2e(t,n){if(!t)return n;var e=Math.abs(t),i=Math.round(e/n);return i?n+(e-i*n)/i:e}function Ob(t,n){return t.round(n)}function BE(t,n,e){return Ob(function z4t(t,n){var e=n.source,i=Hm(t.x-e.x,n.x)+e.x,r=Hm(t.y-e.y,n.y)+e.y;return new an(i,r)}(t.clone(),n),e)}function Sb(t){return t.clone().toString()}function vV(t){return new an(0===t.x?0:Math.abs(t.x)/t.x,0===t.y?0:Math.abs(t.y)/t.y)}function F4t(t,n,e,i,r,o,a){for(var E,c=[],u=vV(r.difference(e)),f=Sb(e),w=t[f];w;){var B=vV((E=n[f]).difference(w));B.equals(u)||(c.unshift(E),u=B),w=t[f=Sb(w)]}var Z=n[f];return vV(Z.difference(i)).equals(u)||c.unshift(Z),c}function E2e(t,n){for(var e=1/0,i=0,r=n.length;iIe)&&(Ie=Je,ge=Ye)}if(ge){var gt=BE(ge,i,o);n.containsPoint(gt)&&(gt=BE(gt.offset(Z.x*i.x,Z.y*i.y),i,o)),E.push(gt)}}return E},[]);return n.containsPoint(t)||w.push(BE(t,i,o)),w}function H4t(t,n,e,i){var o,a,r=i.precision;o=Ob(t instanceof rr?O2e(this,i).clone():t.clone(),r),a=Ob(n instanceof rr?function k4t(t,n){return t.targetAnchor?t.targetAnchor:M2e(t,n).center()}(this,i).clone():n.clone(),r);var u,f,w,E,c=function R4t(t,n,e){return{source:n.clone(),x:P2e(e.x-n.x,t),y:P2e(e.y-n.y,t)}}(i.step,o,a);if(w=t instanceof rr?T2e(u=o,t,i.startDirections,c,i):[u=o],n instanceof rr?(f=a,E=T2e(a,n,i.endDirections,c,i)):E=[f=a],w=w.filter(zi=>!e(zi)),E=E.filter(zi=>!e(zi)),w.length>0&&E.length>0){for(var B=new Wm,Z={},ee={},be={},_e=0,Pe=w.length;_e0;){var fi,_n=B.pop(),Wt=Z[_n],An=ee[_n],Gn=be[_n],bn=void 0===An,Kn=Wt.equals(u);fi=bn?Ye?Kn?null:_V(u,Wt,_t,c,i):Re:_V(An,Wt,_t,c,i);var oi=w.length===E.length;if(oi)for(var wi=0;wi=0)return i.previousDirectionAngle=fi,F4t(ee,Z,Wt,u,f);for(_e=0;_e<_t;_e++){var Ai=(Je=ft[_e]).angle;if(gt=S2e(fi,Ai),Ye&&Kn||!(gt>i.maxAllowedDirectionChange)){var $i=BE(Wt.clone().offset(Je.gridOffsetX,Je.gridOffsetY),c,r),Yn=Sb($i);if(!B.isClose(Yn)&&!e($i)){if(Yt.indexOf(Yn)>=0&&!$i.equals(f)&&S2e(Ai,_V($i,f,_t,c,i))>i.maxAllowedDirectionChange)continue;var vi=Gn+Je.cost+(Kn?0:i.penalties[gt]);(!B.isOpen(Yn)||vi!ge.isPointAccessible(Re)}for(var w,E,c=Ma(t).map(an),u=[],f=o,B=0,Z=c.length;B<=Z;B++){var ee=null;if(E=w||i,!(w=c[B])&&(w=r,(!e.model.get("source").id||!e.model.get("target").id)&&gs(n.draggingRoute))){var _e=E===i?o:E,Pe=w.origin();ee=n.draggingRoute.call(e,_e,Pe,n)}if(null===(ee=ee||H4t.call(e,E,w,a,n)))return n.fallbackRouter(t,n,e);var Ie=ee[0];Ie&&Ie.equals(f)&&ee.shift(),f=ee[ee.length-1]||f,Array.prototype.push.apply(u,ee)}return u}(t,ro({},y2e,n),e)};var G4t={maxAllowedDirectionChange:45,diagonalCost:function(){var t=this.step;return Math.ceil(Math.sqrt(t*t<<1))},directions:function(){var t=this.step,n=this.cost(),e=this.diagonalCost();return[{offsetX:t,offsetY:0,cost:n},{offsetX:t,offsetY:t,cost:e},{offsetX:0,offsetY:t,cost:n},{offsetX:-t,offsetY:t,cost:e},{offsetX:-t,offsetY:0,cost:n},{offsetX:-t,offsetY:-t,cost:e},{offsetX:0,offsetY:-t,cost:n},{offsetX:t,offsetY:-t,cost:e}]},fallbackRoute:function(t,n,e){var i=t.theta(n),r=[],o={x:n.x,y:t.y},a={x:t.x,y:n.y};if(i%180>90){var c=o;o=a,a=c}var u=i%90<45?o:a,f=new pr(t,u),w=90*Math.ceil(i/90),E=an.fromPolar(f.squaredLength(),Nd(w+135),u),B=new pr(n,E),Z=f.intersection(B),ee=Z||n,_e=360/e.directions.length,Pe=(Z?ee:t).theta(n),Ie=ep(Pe+_e/2),ge=_e*Math.floor(Ie/_e);return e.previousDirectionAngle=ge,ee&&r.push(ee.round()),r.push(n),r}};const Y4t=function(t,n,e){if(!gs(CV))throw new Error("Metro requires the manhattan router.");return CV(t,ro({},G4t,n),e)};var A2e=["arc","gap","cubic"],W4t=["smooth"],GE=1/3,YE=2/3;function bV(t,n,e){var i=[].concat(t,e,n);return i.reduce(function(r,o,a){var c=i[a+1];return null!=c&&(r[a]=Vm(o,c)),r},[])}function L2e(t,n){return Vm(t,n).squaredLength()}function k2e(t,n,e,i){var o,r=new Ur;return o=Ur.createSegment("M",t[0].start),r.appendSegment(o),Ma(t).forEach(function(a,c){if(a.isJump){var u,f,w,E;if("arc"===e){u=-90,f=a.start.difference(a.end);var B=Number(f.x<0||0===f.x&&f.y<0);B&&(u+=180);var be,Z=a.midpoint(),ee=new pr(Z,a.end).rotate(Z,u);w=(be=new pr(a.start,Z)).pointAt(2/3).rotate(a.start,u),E=ee.pointAt(1/3).rotate(ee.end,-u),o=Ur.createSegment("C",w,E,ee.end),r.appendSegment(o),be=new pr(Z,a.end),w=ee.pointAt(1/3).rotate(ee.end,u),E=be.pointAt(1/3).rotate(a.end,-u),o=Ur.createSegment("C",w,E,a.end),r.appendSegment(o)}else if("gap"===e)o=Ur.createSegment("M",a.end),r.appendSegment(o);else if("cubic"===e){u=a.start.theta(a.end);var _e=.6*n,Pe=1.35*n;f=a.start.difference(a.end),(B=Number(f.x<0||0===f.x&&f.y<0))&&(Pe*=-1),w=an(a.start.x+_e,a.start.y+Pe).rotate(a.start,u),E=an(a.end.x-_e,a.end.y+Pe).rotate(a.end,u),o=Ur.createSegment("C",w,E,a.end),r.appendSegment(o)}}else{var Ie=t[c+1];0==i||!Ie||Ie.isJump?(o=Ur.createSegment("L",a.end),r.appendSegment(o)):function K4t(t,n,e,i,r){var Z,o=e.distance(i)/2,a=e.distance(r)/2,c=-Math.min(t,o),u=-Math.min(t,a),f=e.clone().move(i,c).round(),w=e.clone().move(r,u).round(),E=new an(GE*f.x+YE*e.x,YE*e.y+GE*f.y),B=new an(GE*w.x+YE*e.x,YE*e.y+GE*w.y);Z=Ur.createSegment("L",f),n.appendSegment(Z),Z=Ur.createSegment("C",E,B,w),n.appendSegment(Z)}(i,r,a.end,a.start,Ie.end)}}),r}const Z4t=function(t,n,e,i){!function q4t(t){var n=t.paper,e=n._jumpOverUpdateList;if(null==e){e=n._jumpOverUpdateList=[];var i=n.model;i.on("batch:stop",function(){this.hasActiveBatch()||function X4t(t){for(var n=t._jumpOverUpdateList,e=0;eZ&&"jumpover"===gt.name)}),_e=be.map(function(Ye){return f.findViewByModel(Ye)}),Pe=bV(t,n,e),Ie=_e.map(function(Ye){return null==Ye?[]:Ye===this?Pe:bV(Ye.sourcePoint,Ye.targetPoint,Ye.route)},this),ge=Pe.reduce(function(Ye,Je){var gt=be.reduce(function(ft,_t,Yt){if(_t!==B){var tn=function $4t(t,n){return Ma(n).reduce(function(e,i){var r=t.intersection(i);return r&&e.push(r),e},[])}(Je,Ie[Yt]);ft.push.apply(ft,tn)}return ft},[]).sort(function(ft,_t){return L2e(Je.start,ft)-L2e(Je.start,_t)});return gt.length>0?Ye.push.apply(Ye,function Q4t(t,n,e){return n.reduce(function(i,r,o){if(!0===r.skip)return i;var a=i.pop()||t,c=gb(r).move(a.start,-e),u=gb(r).move(a.start,+e),f=n[o+1];if(null!=f){var w=u.distance(f);w<=e&&(u=f.move(a.start,w),f.skip=!0)}else if(c.distance(a.end)<2*e+1)return i.push(a),i;if(u.distance(a.start)<2*e+1)return i.push(a),i;var Z=Vm(c,u);return Z.isJump=!0,i.push(Vm(a.start,c),Z,Vm(u,a.end)),i},[])}(Je,gt,o)):Ye.push(Je),Ye},[]),Re=k2e(ge,o,a,c);return r?Re:Re.serialize()},J4t=function(t,n,e,i){var r=i&&i.raw,o=[t].concat(e).concat([n]),a=new Is(o),c=new Ur(a);return r?c:c.serialize()},egt=function(t,n,e,i){i||(i={});var c,r=i.radius||10,o=i.raw,a=new Ur;c=Ur.createSegment("M",t),a.appendSegment(c);for(var w,E,B,Z,ee,be,_e,Pe,Ie,ge,Re,u=1/3,f=2/3,Ye=0,Je=e.length;Ye=Math.abs(t.y-n.y)){var f=(t.x+n.x)/2;u=Ur.createSegment("C",f,t.y,f,n.y,n.x,n.y),o.appendSegment(u)}else{var w=(t.y+n.y)/2;u=Ur.createSegment("C",t.x,w,n.x,w,n.x,n.y),o.appendSegment(u)}}return r?o:o.serialize()},Qu={AUTO:"auto",HORIZONTAL:"horizontal",VERTICAL:"vertical",CLOSEST_POINT:"closest-point",OUTWARDS:"outwards"},id={UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",AUTO:"auto",CLOSEST_POINT:"closest-point",OUTWARDS:"outwards"},xV=function(t,n,e=[],i={},r){const o=Boolean(i.raw),{direction:a=Qu.AUTO,precision:c=3}=i,u={coeff:i.distanceCoefficient||.6,angleTangentCoefficient:i.angleTangentCoefficient||80,tau:i.tension||.5,sourceTangent:i.sourceTangent?new an(i.sourceTangent):null,targetTangent:i.targetTangent?new an(i.targetTangent):null};u.sourceDirection="string"==typeof i.sourceDirection?i.sourceDirection:"number"==typeof i.sourceDirection?new an(1,0).rotate(null,i.sourceDirection):i.sourceDirection?new an(i.sourceDirection).normalize():null,u.targetDirection="string"==typeof i.targetDirection?i.targetDirection:"number"==typeof i.targetDirection?new an(1,0).rotate(null,i.targetDirection):i.targetDirection?new an(i.targetDirection).normalize():null;const f=[t,...e.map(be=>new an(be)),n];let w,E;if(u.sourceTangent)w=u.sourceTangent;else{const be=function agt(t,n,e,i){if(i.sourceDirection)switch(i.sourceDirection){case id.UP:return new an(0,-1);case id.DOWN:return new an(0,1);case id.LEFT:return new an(-1,0);case id.RIGHT:return new an(1,0);case id.AUTO:return I2e(t,n);case id.CLOSEST_POINT:return R2e(0,n);case id.OUTWARDS:return F2e(t,n);default:return i.sourceDirection}switch(e){case Qu.HORIZONTAL:return function ngt(t,n,e){const{sourceBBox:i}=t;let r;return"left"===(r=i.width&&i.height?i.sideNearestToPoint(n[0]):i.x>n[1].x?"right":"left",r)?new an(-1,0):new an(1,0)}(t,n);case Qu.VERTICAL:return function rgt(t,n,e){const{sourceBBox:i}=t;let r;return"top"===(r=i.width&&i.height?i.sideNearestToPoint(n[0]):i.y>n[1].y?"bottom":"top",r)?new an(0,-1):new an(0,1)}(t,n);case Qu.CLOSEST_POINT:return R2e(0,n);case Qu.OUTWARDS:return F2e(t,n);default:return I2e(t,n)}}(r,f,a,u),_e=f[0].distance(f[1])*u.coeff,Ie=yV(be,f[1].difference(f[0]).normalize());if(Ie>Math.PI/4){const ge=_e+(Ie-Math.PI/4)*u.angleTangentCoefficient;w=be.clone().scale(ge,ge)}else w=be.clone().scale(_e,_e)}if(u.targetTangent)E=u.targetTangent;else{const be=function sgt(t,n,e,i){if(i.targetDirection)switch(i.targetDirection){case id.UP:return new an(0,-1);case id.DOWN:return new an(0,1);case id.LEFT:return new an(-1,0);case id.RIGHT:return new an(0,1);case id.AUTO:return N2e(t,n);case id.CLOSEST_POINT:return z2e(0,n);case id.OUTWARDS:return H2e(t,n);default:return i.targetDirection}switch(e){case Qu.HORIZONTAL:return function igt(t,n,e){const{targetBBox:i}=t;let r;return"left"===(r=i.width&&i.height?i.sideNearestToPoint(n[n.length-1]):i.x>n[n.length-2].x?"left":"right",r)?new an(-1,0):new an(1,0)}(t,n);case Qu.VERTICAL:return function ogt(t,n,e){const{targetBBox:i}=t;let r;return"top"===(r=i.width&&i.height?i.sideNearestToPoint(n[n.length-1]):i.y>n[n.length-2].y?"top":"bottom",r)?new an(0,-1):new an(0,1)}(t,n);case Qu.CLOSEST_POINT:return z2e(0,n);case Qu.OUTWARDS:return H2e(t,n);default:return N2e(t,n)}}(r,f,a,u),_e=f.length-1,Pe=f[_e-1].distance(f[_e])*u.coeff,ge=yV(be,f[_e-1].difference(f[_e]).normalize());if(ge>Math.PI/4){const Re=Pe+(ge-Math.PI/4)*u.angleTangentCoefficient;E=be.clone().scale(Re,Re)}else E=be.clone().scale(Pe,Pe)}const Z=function lgt(t,n,e,i){const{tau:r,coeff:o}=i,a=[],c=[],u=[],f=t.length-1;for(let w=0;w0&&ge>0)&&(_e-=Math.PI),Pe=ee.clone(),cgt(Pe,_e);const Re=Pe.clone(),Ye=Pe.clone(),Je=a[w-1]*o,gt=a[w]*o;Re.scale(Je,Je),Ye.scale(gt,gt),c[w]=[Re,Ye]}for(let w=0;wfunction dgt(t,n){const{tau:e}=n,i=new an;i.x=t[1].x+(t[2].x-t[0].x)/(6*e),i.y=t[1].y+(t[2].y-t[0].y)/(6*e);const r=new an;return r.x=t[2].x+(t[3].x-t[1].x)/(6*e),r.y=t[2].y+(t[3].y-t[1].y)/(6*e),new os(t[1],i,r,t[2])}(be,u)),ee=new Ur(Z).round(c);return o?ee:ee.serialize()};function I2e(t,n,e){const{sourceBBox:i}=t;let r;switch(r=i.sideNearestToPoint(i.width&&i.height?n[0]:n[1]),r){case"top":return new an(0,-1);case"bottom":return new an(0,1);case"right":return new an(1,0);case"left":return new an(-1,0)}}function N2e(t,n,e){const{targetBBox:i}=t;let r;switch(r=i.sideNearestToPoint(i.width&&i.height?n[n.length-1]:n[n.length-2]),r){case"top":return new an(0,-1);case"bottom":return new an(0,1);case"right":return new an(1,0);case"left":return new an(-1,0)}}function R2e(t,n,e){return n[1].difference(n[0]).normalize()}function z2e(t,n,e){const i=n.length-1;return n[i-1].difference(n[i]).normalize()}function F2e(t,n,e){const{sourceBBox:i}=t,r=i.center();return n[0].difference(r).normalize()}function H2e(t,n,e){const{targetBBox:i}=t,r=i.center();return n[n.length-1].difference(r).normalize()}function cgt(t,n){const e=Math.cos(n),i=Math.sin(n),o=i*t.x+e*t.y;t.x=e*t.x-i*t.y,t.y=o}function yV(t,n){let e=t.dot(n)/(t.magnitude()*n.magnitude());return e<-1&&(e=-1),e>1&&(e=1),Math.acos(e)}function V2e(t,n){return t.x*n.y-t.y*n.x}xV.Directions=Qu,xV.TangentDirections=id;const Io={RENDER:"RENDER",UPDATE:"UPDATE",TOOLS:"TOOLS",LEGACY_TOOLS:"LEGACY_TOOLS",LABELS:"LABELS",VERTICES:"VERTICES",SOURCE:"SOURCE",TARGET:"TARGET",CONNECTOR:"CONNECTOR"},Pb=Ha.extend({className:function(){var t=Ha.prototype.className.apply(this).split(" ");return t.push("link"),t.join(" ")},options:{shortLinkLength:105,doubleLinkTools:!1,longLinkLength:155,linkToolsOffset:40,doubleLinkToolsOffset:65,sampleInterval:50},_labelCache:null,_labelSelectors:null,_markerCache:null,_V:null,_dragData:null,metrics:null,decimalsRounding:2,initialize:function(){Ha.prototype.initialize.apply(this,arguments),this._labelCache={},this._labelSelectors={},this._markerCache={},this._V={},this.cleanNodesCache()},presentationAttributes:{markup:[Io.RENDER],attrs:[Io.UPDATE],router:[Io.UPDATE],connector:[Io.CONNECTOR],smooth:[Io.UPDATE],manhattan:[Io.UPDATE],toolMarkup:[Io.LEGACY_TOOLS],labels:[Io.LABELS],labelMarkup:[Io.LABELS],vertices:[Io.VERTICES,Io.UPDATE],vertexMarkup:[Io.VERTICES],source:[Io.SOURCE,Io.UPDATE],target:[Io.TARGET,Io.UPDATE]},initFlag:[Io.RENDER,Io.SOURCE,Io.TARGET,Io.TOOLS],UPDATE_PRIORITY:1,confirmUpdate:function(t,n){if(n||(n={}),this.hasFlag(t,Io.SOURCE)){if(!this.updateEndProperties("source"))return t;t=this.removeFlag(t,Io.SOURCE)}if(this.hasFlag(t,Io.TARGET)){if(!this.updateEndProperties("target"))return t;t=this.removeFlag(t,Io.TARGET)}const{paper:e,sourceView:i,targetView:r}=this;if(e&&(i&&!e.isViewMounted(i)||r&&!e.isViewMounted(r)))return t;if(this.hasFlag(t,Io.RENDER))return this.render(),this.updateHighlighters(!0),this.updateTools(n),this.removeFlag(t,[Io.RENDER,Io.UPDATE,Io.VERTICES,Io.LABELS,Io.TOOLS,Io.LEGACY_TOOLS,Io.CONNECTOR]);let o=!1;this.hasFlag(t,Io.VERTICES)&&(this.renderVertexMarkers(),t=this.removeFlag(t,Io.VERTICES));const{model:a}=this,{attributes:c}=a;let u=this.hasFlag(t,Io.LABELS),f=this.hasFlag(t,Io.LEGACY_TOOLS);u&&(this.onLabelsChange(a,c.labels,n),t=this.removeFlag(t,Io.LABELS),o=!0),f&&(this.renderTools(),t=this.removeFlag(t,Io.LEGACY_TOOLS));const w=this.hasFlag(t,Io.UPDATE),E=this.hasFlag(t,Io.CONNECTOR);return(w||E)&&(w?n.translateBy&&a.isRelationshipEmbeddedIn(n.translateBy)?this.translate(n.tx,n.ty):this.update():(this.updatePath(),this.updateDOM()),this.updateTools(n),t=this.removeFlag(t,[Io.UPDATE,Io.TOOLS,Io.CONNECTOR]),u=!1,f=!1,o=!0),u&&this.updateLabelPositions(),f&&this.updateToolsPosition(),o&&this.updateHighlighters(),this.hasFlag(t,Io.TOOLS)&&(this.updateTools(n),t=this.removeFlag(t,Io.TOOLS)),t},requestConnectionUpdate:function(t){this.requestUpdate(this.getFlag(Io.UPDATE),t)},isLabelsRenderRequired:function(t={}){const n=this.model.previous("labels");if(!n)return!0;if("propertyPathArray"in t&&"propertyValue"in t){var e=t.propertyPathArray||[],i=e.length;if(i>1&&n[e[1]]){if(2===i)return"markup"in Object(t.propertyValue);if("markup"!==e[2])return!1}}return!0},onLabelsChange:function(t,n,e){this.isLabelsRenderRequired(e)?this.renderLabels():this.updateLabels()},render:function(){return this.vel.empty(),this.unmountLabels(),this._V={},this.renderMarkup(),this.renderLabels(),this.update(),this},renderMarkup:function(){var t=this.model,n=t.get("markup")||t.markup;if(!n)throw new Error("dia.LinkView: markup required");if(Array.isArray(n))return this.renderJSONMarkup(n);if("string"==typeof n)return this.renderStringMarkup(n);throw new Error("dia.LinkView: invalid markup")},renderJSONMarkup:function(t){var n=this.parseDOMJSON(t,this.el);this.selectors=n.selectors,this.vel.append(n.fragment)},renderStringMarkup:function(t){var n=ti(t);Array.isArray(n)||(n=[n]);for(var e=this._V,i=0,r=n.length;i1||"G"!==i[0].nodeName.toUpperCase()?ti("g").append(n):ti(i[0])).addClass("label"),{node:e.node,selectors:t.selectors}}},renderLabels:function(){var t=this._V,n=t.labels,e=this._labelCache={},i=this._labelSelectors={},r=this.model,o=r.attributes.labels||[],a=o.length;if(0===a)return n&&n.remove(),this;n?n.empty():(n=t.labels=ti("g").addClass("labels"),this.options.labelsLayer&&(n.addClass(Zh(Vl(this,"className"))),n.attr("model-id",r.id)));for(var c=0;cf.toJSON()),u=c.length;return o===u?0:(e.vertices(c.slice(1,u-1),t),o-u)},updateDefaultConnectionPath:function(){var t=this._V;t.connection&&t.connection.attr("d",this.getSerializedConnection()),t.connectionWrap&&t.connectionWrap.attr("d",this.getSerializedConnection()),t.markerSource&&t.markerTarget&&this._translateAndAutoOrientArrows(t.markerSource,t.markerTarget)},getEndView:function(t){switch(t){case"source":return this.sourceView||null;case"target":return this.targetView||null;default:throw new Error("dia.LinkView: type parameter required.")}},getEndAnchor:function(t){switch(t){case"source":return new an(this.sourceAnchor);case"target":return new an(this.targetAnchor);default:throw new Error("dia.LinkView: type parameter required.")}},getEndConnectionPoint:function(t){switch(t){case"source":return new an(this.sourcePoint);case"target":return new an(this.targetPoint);default:throw new Error("dia.LinkView: type parameter required.")}},getEndMagnet:function(t){switch(t){case"source":var n=this.sourceView;if(!n)break;return this.sourceMagnet||n.el;case"target":var e=this.targetView;if(!e)break;return this.targetMagnet||e.el;default:throw new Error("dia.LinkView: type parameter required.")}return null},update:function(){return this.updateRoute(),this.updatePath(),this.updateDOM(),this},translate:function(t=0,n=0){const{route:e,path:i}=this;if(!e||!i)return;const r=new Is(e);r.translate(t,n),this.route=r.points,this._translateConnectionPoints(t,n),i.translate(t,n),this.updateDOM()},updateDOM(){const{el:t,model:n,selectors:e}=this;this.cleanNodesCache(),this.updateDOMSubtreeAttributes(t,n.attr(),{selectors:e}),this.updateDefaultConnectionPath(),this.updateLabelPositions(),this.updateToolsPosition(),this.updateArrowheadMarkers(),this.options.perpendicular=null},updateRoute:function(){const{model:t}=this,n=t.vertices(),e=this.findAnchors(n),i=this.sourceAnchor=e.source,r=this.targetAnchor=e.target,o=this.findRoute(n);this.route=o;var a=this.findConnectionPoints(o,i,r);this.sourcePoint=a.source,this.targetPoint=a.target},updatePath:function(){const{route:t,sourcePoint:n,targetPoint:e}=this,i=this.findMarkerPoints(t,n,e),r=this.findPath(t,i.source||n,i.target||e);this.path=r},findMarkerPoints:function(t,n,e){var a,c,i=t[0],r=t[t.length-1],o=this._markerCache;return this._V.markerSource&&(o.sourceBBox=o.sourceBBox||this._V.markerSource.getBBox(),a=an(n).move(i||e,o.sourceBBox.width*this._V.markerSource.scale().sx*-1).round()),this._V.markerTarget&&(o.targetBBox=o.targetBBox||this._V.markerTarget.getBBox(),c=an(e).move(r||n,o.targetBBox.width*this._V.markerTarget.scale().sx*-1).round()),o.sourcePoint=a||n.clone(),o.targetPoint=c||e.clone(),{source:a,target:c}},findAnchorsOrdered:function(t,n,e,i){var r,o,a,c,u=this.model,f=u.get(t),w=u.get(e),E=this.getEndView(t),B=this.getEndView(e),Z=this.getEndMagnet(t),ee=this.getEndMagnet(e);E?(a=n?new an(n):B?ee:new an(w),r=this.getAnchor(f.anchor,E,Z,a,t)):r=new an(f),B?(c=new an(i||r),o=this.getAnchor(w.anchor,B,ee,c,e)):o=new an(w);var be={};return be[t]=r,be[e]=o,be},findAnchors:function(t){var n=this.model,e=t[0],i=t[t.length-1];return n.target().priority&&!n.source().priority?this.findAnchorsOrdered("target",i,"source",e):this.findAnchorsOrdered("source",e,"target",i)},findConnectionPoints:function(t,n,e){var E,B,Z,Pe,i=t[0],r=t[t.length-1],o=this.model,a=o.get("source"),c=o.get("target"),u=this.sourceView,f=this.targetView,w=this.paper.options;if(u&&!u.isNodeConnection(this.sourceMagnet)){E=this.sourceMagnet||u.el;var ee=a.connectionPoint||w.defaultConnectionPoint,_e=new pr(i||e,n);Z=this.getConnectionPoint(ee,u,E,_e,"source")}else Z=n;if(f&&!f.isNodeConnection(this.targetMagnet)){B=this.targetMagnet||f.el;var Ie=c.connectionPoint||w.defaultConnectionPoint,Re=new pr(r||n,e);Pe=this.getConnectionPoint(Ie,f,B,Re,"target")}else Pe=e;return{source:Z,target:Pe}},getAnchor:function(t,n,e,i,r){var c,o=n.isNodeConnection(e),a=this.paper.options;if(t||(t=o?a.defaultLinkAnchor:a.perpendicularLinks||this.options.perpendicular?{name:"perpendicular"}:a.defaultAnchor),!t)throw new Error("Anchor required.");if("function"==typeof t)c=t;else{var u=t.name;if("function"!=typeof(c=a[o?"linkAnchorNamespace":"anchorNamespace"][u]))throw new Error("Unknown anchor: "+u)}var w=c.call(this,n,e,i,t.args||{},r,this);return w?w.round(this.decimalsRounding):new an},getConnectionPoint:function(t,n,e,i,r){var o,f,a=i.end,c=this.paper.options;if("function"==typeof c.linkConnectionPoint&&(o=c.linkConnectionPoint(this,n,e===n.el?void 0:e,i.start,r)))return o;if(!t)return a;if("function"==typeof t)f=t;else{var w=t.name;if("function"!=typeof(f=c.connectionPointNamespace[w]))throw new Error("Unknown connection point: "+w)}return(o=f.call(this,i,n,e,t.args||{},r,this))?o.round(this.decimalsRounding):a},_translateConnectionPoints:function(t,n){var e=this._markerCache;e.sourcePoint.offset(t,n),e.targetPoint.offset(t,n),this.sourcePoint.offset(t,n),this.targetPoint.offset(t,n),this.sourceAnchor.offset(t,n),this.targetAnchor.offset(t,n)},_normalizeLabelPosition:function(t){return"number"==typeof t?{distance:t,offset:null,angle:0,args:null}:t},updateLabelPositions:function(){if(!this._V.labels)return this;if(!this.path)return this;var n=this.model,e=n.get("labels")||[];if(!e.length)return this;for(var r=n._builtins.defaultLabel.position,o=n._getDefaultLabel(),a=this._normalizeLabelPosition(o.position),c=a1({},r,a),u=0,f=e.length;u=this.options.longLinkLength?(i=this.getPointAtLength(e-(this.options.doubleLinkToolsOffset||n)),this._tool2Cache.attr("transform","translate("+i.x+", "+i.y+") "+t),this._tool2Cache.attr("visibility","visible")):this.options.doubleLinkTools&&this._tool2Cache.attr("visibility","hidden")}return this},updateArrowheadMarkers:function(){if(!this._V.markerArrowheads)return this;if("none"===rs.css(this._V.markerArrowheads.node,"display"))return this;var t=this.getConnectionLength()0&&n<=1,o=0,a={x:0,y:0};if(t.offset){var c=t.offset;"number"==typeof c&&(o=c),c.x&&(a.x=c.x),c.y&&(a.y=c.y)}var be,u=0!==a.x||0!==a.y||0===o,f=i.keepGradient,w=i.ensureLegibility,E=this.path,B={segmentSubdivisions:this.getConnectionSubdivisions()},Z=r?n*this.getConnectionLength():n,ee=E.tangentAtLength(Z,B),_e=e;if(ee){if(u)(be=ee.start).offset(a);else{var Pe=ee.clone();Pe.rotate(ee.start,-90),Pe.setLength(o),be=Pe.end}f&&(_e=ee.angle()+e,w&&(_e=ep((_e+90)%180-90)))}else be=E.start,u&&be.offset(a);return ti.createSVGMatrix().translate(be.x,be.y).rotate(_e)},getLabelCoordinates:function(t){var n=this._getLabelTransformationMatrix(t);return new an(n.e,n.f)},getVertexIndex:function(t,n){for(var i=this.model.vertices(),r=this.getClosestPointLength(new an(t,n)),o=0,a=i.length;o{Ye.push({bbox:Re.getNodeBBox(Je),magnet:Je})}),Ye.forEach(Je=>{const{magnet:gt,bbox:ft}=Je,_t=ft.center().squaredDistance(Z);_t0){for(var f=0,w=u.length;fr&&(r=o);return n.insertBefore(i,r!==-1/0?e[r].nextSibling:n.firstChild),i},removePivots:function(){const{el:t,pivotNodes:n}=this;for(let e in n)t.removeChild(n[e]);this.pivotNodes={}}}),hgt=D4.extend({tagName:"path",className:"highlight-stroke",attributes:{"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},options:{padding:3,rx:0,ry:0,useFirstSubpath:!1,attrs:{"stroke-width":3,stroke:"#FEB663"}},getPathData(t,n){const{options:e}=this,{useFirstSubpath:i}=e;let r;try{const o=ti(n);if(r=o.convertToPathData().trim(),"PATH"===o.tagName()&&i){const a=r.search(/.M/i)+1;a>0&&(r=r.substr(0,a))}}catch(o){const a=t.getNodeBoundingRect(n);r=ti.rectToPath(ro({},e,a.toJSON()))}return r},highlightConnection(t){this.vel.attr("d",t.getSerializedConnection())},highlightNode(t,n){const{vel:e,options:i}=this,{padding:r,layer:o}=i;let a=t.getNodeMatrix(n);if(r){!o&&n===t.el&&e.remove();let c=t.getNodeBoundingRect(n);const u=c.x+c.width/2,f=c.y+c.height/2;c=ti.transformRect(c,a);const w=Math.max(c.width,1),E=Math.max(c.height,1),B=(w+r)/w,Z=(E+r)/E,ee=ti.createSVGMatrix({a:B,b:0,c:0,d:Z,e:u-B*u,f:f-Z*f});a=a.multiply(ee)}e.attr({d:this.getPathData(t,n),transform:ti.matrixToTransformString(a)})},highlight(t,n){const{vel:e,options:i}=this;e.attr(i.attrs),t.isNodeConnection(n)?this.highlightConnection(t):this.highlightNode(t,n)}}),B2e=20,fgt=D4.extend({tagName:"rect",className:"highlight-mask",attributes:{"pointer-events":"none"},options:{padding:3,maskClip:B2e,deep:!1,attrs:{stroke:"#FEB663","stroke-width":3,"stroke-linecap":"butt","stroke-linejoin":"miter"}},VISIBLE:"white",INVISIBLE:"black",MASK_ROOT_ATTRIBUTE_BLACKLIST:["marker-start","marker-end","marker-mid","transform","stroke-dasharray"],MASK_CHILD_ATTRIBUTE_BLACKLIST:["stroke","fill","stroke-width","stroke-opacity","stroke-dasharray","fill-opacity","marker-start","marker-end","marker-mid"],MASK_REPLACE_TAGS:["FOREIGNOBJECT","IMAGE","USE","TEXT","TSPAN","TEXTPATH"],MASK_REMOVE_TAGS:["TEXT","TSPAN","TEXTPATH"],transformMaskChild(t,n){const{MASK_CHILD_ATTRIBUTE_BLACKLIST:e,MASK_REPLACE_TAGS:i,MASK_REMOVE_TAGS:r}=this,o=n.tagName();if(!ti.isSVGGraphicsElement(n)||r.includes(o))return n.remove(),!1;if(i.includes(o)){const a=t.vel.findOne(`#${n.id}`);if(a){const{node:c}=a;let u=t.getNodeBoundingRect(c);t.model.isElement()&&(u=ti.transformRect(u,t.getNodeMatrix(c)));const f=ti("rect",u.toJSON()),{x:w,y:E}=u.center(),{angle:B,cx:Z=w,cy:ee=E}=a.rotate();B&&f.rotate(B,Z,ee),n.parent().append(f)}return n.remove(),!1}return e.forEach(a=>{"fill"===a&&"none"===n.attr("fill")||n.removeAttr(a)}),!0},transformMaskRoot(t,n){const{MASK_ROOT_ATTRIBUTE_BLACKLIST:e}=this;e.forEach(i=>{n.removeAttr(i)})},getMaskShape(t,n){const{options:e,MASK_REPLACE_TAGS:i}=this,{deep:r}=e,o=n.tagName();let a;if("G"===o){if(!r)return null;a=n.clone(),function pgt(t,n){const e=t.children();for(;e.length>0;){const i=e.shift();n(i)&&e.push(...i.children())}}(a,c=>this.transformMaskChild(t,c))}else{if(i.includes(o))return null;a=n.clone()}return this.transformMaskRoot(t,a),a},getMaskId(){return`highlight-mask-${this.cid}`},getMask(t,n){const{VISIBLE:e,INVISIBLE:i,options:r}=this,{padding:o,attrs:a}=r,c="stroke-width"in a?a["stroke-width"]:1,u="none"!==n.attr("fill");let f=parseFloat(n.attr("stroke-width"));isNaN(f)&&(f=1);const w=f+2*o,E=w+2*c;let B=this.getMaskShape(t,n);if(!B){const Z=t.getNodeBoundingRect(n.node);Z.inflate(Z.width?0:.5,Z.height?0:.5),B=ti("rect",Z.toJSON())}return B.attr(a),ti("mask",{id:this.getMaskId()}).append([B.clone().attr({fill:u?e:"none",stroke:e,"stroke-width":E}),B.clone().attr({fill:u?i:"none",stroke:i,"stroke-width":w})])},removeMask(t){const n=t.svg.getElementById(this.getMaskId());n&&t.defs.removeChild(n)},addMask(t,n){t.defs.appendChild(n.node)},highlight(t,n){const{options:e,vel:i}=this,{padding:r,attrs:o,maskClip:a=B2e,layer:c}=e,u="stroke"in o?o.stroke:"#000000";!c&&n===t.el&&i.remove();const f=t.getNodeBoundingRect(n).inflate(r+a),w=this.getMask(t,ti(n));this.addMask(t.paper,w),i.attr(f.toJSON()),i.attr({transform:ti.matrixToTransformString(t.getNodeMatrix(n)),mask:`url(#${w.id})`,fill:u})},unhighlight(t){this.removeMask(t.paper)}}),ggt=D4.extend({UPDATABLE:!1,MOUNTABLE:!1,opacityClassName:Zh("highlight-opacity"),highlight:function(t,n){ti(n).addClass(this.opacityClassName)},unhighlight:function(t,n){ti(n).removeClass(this.opacityClassName)}}),G2e=Zh("highlighted"),mgt=D4.extend({UPDATABLE:!1,MOUNTABLE:!1,options:{className:G2e},highlight:function(t,n){ti(n).addClass(this.options.className)},unhighlight:function(t,n){ti(n).removeClass(this.options.className)}},{className:G2e});function _gt(t,n,e,i){return t.getPointAtRatio("ratio"in i?i.ratio:.5)}function vgt(t,n,e,i){return t.getPointAtLength("length"in i?i.length:20)}function Eb(t){return function(n,e,i,r){if(i instanceof Element){var a,o=this.paper.findView(i);if(o)if(o.isNodeConnection(i)){var c="fixedAt"in r?r.fixedAt:"50%";a=Y2e(o,c)}else a=o.getNodeBBox(i).center();else a=new an;return t.call(this,n,e,a,r)}return t.apply(this,arguments)}}function Y2e(t,n){var e=parseFloat(n);return Wu(n)?t.getPointAtRatio(e/100):t.getPointAtLength(e)}const xgt=Eb(function Cgt(t,n,e,i){var r=1e6,o=t.getConnection(),a=t.getConnectionSubdivisions(),c=new pr(e.clone().offset(0,r),e.clone().offset(0,-r)),u=new pr(e.clone().offset(r,0),e.clone().offset(-r,0)),f=c.intersect(o,{segmentSubdivisions:a}),w=u.intersect(o,{segmentSubdivisions:a}),E=[];return f&&Array.prototype.push.apply(E,f),w&&Array.prototype.push.apply(E,w),E.length>0?e.chooseClosest(E):"fallbackAt"in i?Y2e(t,i.fallbackAt):U2e(t,n,e,i)}),U2e=Eb(function bgt(t,n,e,i){return t.getClosestPoint(e)||new an});function UE(t,n,e){if(o1(e)){const{x:r,y:o}=e;if(isFinite(o)){const a=new pr(n,t),{start:c,end:u}=a.parallel(o);n=c,t=u}e=r}if(!isFinite(e))return t;var i=t.distance(n);return 0===e&&i>0?t:t.move(n,-Math.min(e,i-1))}function wV(t){var n=t.getAttribute("stroke-width");return null===n?0:parseFloat(n)||0}function j2e(t,n,e,i){var r=n.getNodeBBox(e);i.stroke&&r.inflate(wV(e)/2);var o=t.intersect(r);return UE(o?t.start.chooseClosest(o):t.end,t.start,i.offset)}var MV="segmentSubdivisons",OV="shapeBBox";const Pgt=function wgt(t,n,e,i){let{offset:r,alignOffset:o,align:a}=i;return a&&function ygt(t,n,e=0){let i,r,o,a;const{start:c,end:u}=t;switch(n){case"left":i="x",r=u,o=c,a=-1;break;case"right":i="x",r=c,o=u,a=1;break;case"top":i="y",r=u,o=c,a=-1;break;case"bottom":i="y",r=c,o=u,a=1;break;default:return}c[i]{const a=new ugt({name:r});this.layers.appendChild(a.el),this._layers[r]=a});const n=this.getLayerView(t0.CELLS),e=this.getLayerView(t0.TOOLS),i=this.getLayerView(t0.LABELS);this.tools=e.el,this.cells=this.viewport=n.el,n.vel.addClass(Zh("viewport")),i.vel.addClass(Zh("viewport"))},removeLayers:function(){const{_layers:t}=this;Object.keys(t,n=>{t[n].remove(),delete t[n]})},resetLayers:function(){const{_layers:t}=this;Object.keys(t,n=>{t[n].removePivots()})},update:function(){return this.options.drawGrid&&this.drawGrid(),this._background&&this.updateBackgroundImage(this._background),this},matrix:function(t){var n=this.layers;if(void 0===t){var e=n.getAttribute("transform");return(this._viewportTransformString||null)===e?t=this._viewportMatrix:(t=n.getCTM(),this._viewportMatrix=t,this._viewportTransformString=e),ti.createSVGMatrix(t)}t=ti.createSVGMatrix(t);var i=ti.matrixToTransformString(t);return n.setAttribute("transform",i),this._viewportMatrix=t,this._viewportTransformString=n.getAttribute("transform"),this},clientMatrix:function(){return ti.createSVGMatrix(this.cells.getScreenCTM())},requestConnectedLinksUpdate:function(t,n,e){if(t instanceof Ha)for(var i=t.model,r=this.model.getConnectedLinks(i),o=0,a=r.length;ou)for(let Z=e-1;Z>=u;Z--){const ee=r.priorities[Z];!ee||!(f in ee)||(w[f]|=ee[f],delete ee[f])}let E=w[f]||0;if((E&n)===n)return;E||r.count++,n&a&&E&c?w[f]^=c:n&c&&E&a&&(w[f]^=a),w[f]|=n;const B=o.onViewUpdate;"function"==typeof B&&B.call(this,t,n,e,i||{},this)},dumpViewUpdate:function(t){if(!t)return 0;var e=t.cid,i=this._updates.priorities[t.UPDATE_PRIORITY],r=this.registerMountedView(t)|i[e];return delete i[e],r},dumpView:function(t,n){var e=this.dumpViewUpdate(t);return e?this.updateView(t,e,n):0},updateView:function(t,n,e){if(!t)return 0;const{FLAG_REMOVE:i,FLAG_INSERT:r,model:o}=t;if(t instanceof Ha){if(n&i)return this.removeView(o),0;n&r&&(this.insertView(t),n^=r)}return n?t.confirmUpdate(n,e||{}):0},requireView:function(t,n){var e=this.findViewByModel(t);return e?(this.dumpView(e,n),e):null},registerUnmountedView:function(t){var n=t.cid,e=this._updates;if(n in e.unmounted)return 0;var i=e.unmounted[n]|=t.FLAG_INSERT;return e.unmountedCids.push(n),delete e.mounted[n],i},registerMountedView:function(t){var n=t.cid,e=this._updates;if(n in e.mounted)return 0;e.mounted[n]=!0,e.mountedCids.push(n);var i=e.unmounted[n]||0;return delete e.unmounted[n],i},isViewMounted:function(t){return!!t&&t.cid in this._updates.mounted},dumpViews:function(t){var n=qu({},t,{viewport:null});this.checkViewport(n),this.updateViews(n)},updateViews:function(t){this.notifyBeforeRender(t);let n,e=0,i=0,r=jE;do{i++,n=this.updateViewsBatch(t),e+=n.updated,r=Math.min(n.priority,r)}while(!n.empty);const o={updated:e,batches:i,priority:r};return this.notifyAfterRender(o,t),o},hasScheduledUpdates:function(){const t=this._updates.priorities,n=Object.keys(t);let e=n.length;for(;e>0&&e--;)for(let i in t[n[e]])return!0;return!1},updateViewsAsync:function(t,n){t||(t={}),n||(n={processed:0,priority:jE});var e=this._updates,i=e.id;if(i){WH(i),0===n.processed&&this.hasScheduledUpdates()&&this.notifyBeforeRender(t);var r=this.updateViewsBatch(t),o=qu({},t,{mountBatchSize:1e3-r.mounted,unmountBatchSize:1e3-r.unmounted}),a=this.checkViewport(o),c=a.unmounted,u=a.mounted,f=n.processed,w=e.count;r.updated>0&&(r.processed=f+=r.updated+r.unmounted,n.priority=Math.min(r.priority,n.priority),r.empty&&0===u?(r.unmounted+=c,r.mounted+=u,r.priority=n.priority,this.notifyAfterRender(r,t),n.processed=0,n.priority=jE,e.count=0):n.processed=f);var E=t.progress;if(w&&"function"==typeof E&&E.call(this,r.empty,f,w,r,this),e.id!==i)return}e.id=jH(this.updateViewsAsync,this,t,n)},notifyBeforeRender:function(t={}){let n=t.beforeRender;"function"!=typeof n&&(n=this.options.beforeRender,"function"!=typeof n)||n.call(this,t,this)},notifyAfterRender:function(t,n={}){let e=n.afterRender;"function"!=typeof e&&(e=this.options.afterRender),"function"==typeof e&&e.call(this,t,n,this),this.trigger("render:done",t,n)},updateViewsBatch:function(t){t||(t={});var n=t.batchSize||1/0,e=this._updates,i=0,r=0,o=0,a=0,c=jE,u=!0,f=this.options,w=e.priorities,E="viewport"in t?t.viewport:f.viewport;"function"!=typeof E&&(E=null);var B=f.onViewPostponed;"function"!=typeof B&&(B=null);var Z=Object.keys(w);e:for(var ee=0,be=Z.length;ee=n){u=!1;break e}var ge=Um[Ie];if(ge){var Re=Pe[Ie];if(0==(Re&ge.FLAG_REMOVE)){var Ye=Ie in e.unmounted;if(ge.DETACHABLE&&E&&!E.call(this,ge,!Ye,this)){Ye||(this.registerUnmountedView(ge),ge.unmount()),e.unmounted[Ie]|=Re,delete Pe[Ie],o++;continue}Ye&&(Re|=ge.FLAG_INSERT,a++),Re|=this.registerMountedView(ge)}var Je=this.updateView(ge,Re,t);Je>0&&(Pe[Ie]=Je,!B||!B.call(this,ge,Je,this)||Pe[Ie])?(r++,u=!1):(c>_e&&(c=_e),i++,delete Pe[Ie])}else delete Pe[Ie]}}return{priority:c,updated:i,postponed:r,unmounted:o,mounted:a,empty:u}},getUnmountedViews:function(){const n=Object.keys(this._updates.unmounted),e=n.length,i=new Array(e);for(var r=0;r0&&(n.mountBatchSize=Math.min(this._updates.unmountedCids.length-i,n.mountBatchSize)),{mounted:this.checkUnmountedViews(e,n),unmounted:i}},freeze:function(t){t||(t={});var n=this._updates,e=t.key,i=this.options.frozen,r=n.freezeKey;if(e&&e!==r){if(i&&r)return;n.freezeKey=e,n.keyFrozen=i}this.options.frozen=!0;var o=n.id;n.id=null,this.isAsync()&&o&&WH(o)},unfreeze:function(t){t||(t={});var n=this._updates,e=t.key,i=n.freezeKey;e&&i&&e!==i||(n.freezeKey=null,(!e||e!==i||!n.keyFrozen)&&(this.isAsync()?(this.freeze(),this.updateViewsAsync(t)):this.updateViews(t),this.options.frozen=n.keyFrozen=!1,n.sort&&(this.sortViews(),n.sort=!1)))},isAsync:function(){return!!this.options.async},isFrozen:function(){return!!this.options.frozen},isExactSorting:function(){return this.options.sorting===g8.EXACT},onRemove:function(){this.freeze(),this.removeLayers(),this.removeViews()},getComputedSize:function(){var t=this.options,n=t.width,e=t.height;return zd(n)||(n=this.el.clientWidth),zd(e)||(e=this.el.clientHeight),{width:n,height:e}},setDimensions:function(t,n){const{options:e}=this,{width:i,height:r}=e;let o=void 0===t?i:t,a=void 0===n?r:n;if(i===o&&r===a)return;e.width=o,e.height=a,this._setDimensions();const c=this.getComputedSize();this.trigger("resize",c.width,c.height)},_setDimensions:function(){const{options:t}=this;let n=t.width,e=t.height;zd(n)&&(n=Math.round(n)),zd(e)&&(e=Math.round(e)),this.$el.css({width:null===n?"":n,height:null===e?"":e})},setOrigin:function(t,n){return this.translate(t||0,n||0)},fitToContent:function(t,n,e,i){i=uc(t)?t:ro({gridWidth:t,gridHeight:n,padding:e},i);const{x:r,y:o,width:a,height:c}=this.getFitToContentArea(i),{sx:u,sy:f}=this.scale();return this.setOrigin(-r*u,-o*f),this.setDimensions(a*u,c*f),new rr(r,o,a,c)},getFitToContentArea:function(t={}){const n=t.gridWidth||1,e=t.gridHeight||1,i=s8(t.padding||0),r=Math.max(t.minWidth||0,n),o=Math.max(t.minHeight||0,e),a=t.maxWidth||Number.MAX_VALUE,c=t.maxHeight||Number.MAX_VALUE,u=t.allowNewOrigin,f="contentArea"in t?new rr(t.contentArea):this.getContentArea(t),{sx:w,sy:E}=this.scale();f.x*=w,f.y*=E,f.width*=w,f.height*=E;let B=Math.ceil((f.width+f.x)/n),Z=Math.ceil((f.height+f.y)/e);t.allowNegativeBottomRight||(B=Math.max(B,1),Z=Math.max(Z,1)),B*=n,Z*=e;let ee=0;("negative"===u&&f.x<0||"positive"===u&&f.x>=0||"any"===u)&&(ee=Math.ceil(-f.x/n)*n,ee+=i.left,B+=ee);let be=0;return("negative"===u&&f.y<0||"positive"===u&&f.y>=0||"any"===u)&&(be=Math.ceil(-f.y/e)*e,be+=i.top,Z+=be),B+=i.right,Z+=i.bottom,B=Math.max(B,r),Z=Math.max(Z,o),B=Math.min(B,a),Z=Math.min(Z,c),new rr(-ee/w,-be/E,B/w,Z/E)},scaleContentToFit:function(t){var n,e;if(t||(t={}),"contentArea"in t){var i=t.contentArea;n=this.localToPaperRect(i),e=new an(i)}else n=this.getContentBBox(t),e=this.paperToLocalPoint(n);if(n.width&&n.height){qu(t,{padding:0,preserveAspectRatio:!0,scaleGrid:null,minScale:0,maxScale:Number.MAX_VALUE});var f,r=s8(t.padding),o=t.minScaleX||t.minScale,a=t.maxScaleX||t.maxScale,c=t.minScaleY||t.minScale,u=t.maxScaleY||t.maxScale;if(t.fittingBBox)f=t.fittingBBox;else{var w=this.translate(),E=this.getComputedSize();f={x:w.tx,y:w.ty,width:E.width,height:E.height}}f=new rr(f).moveAndExpand({x:r.left,y:r.top,width:-r.left-r.right,height:-r.top-r.bottom});var B=this.scale(),Z=f.width/n.width*B.sx,ee=f.height/n.height*B.sy;if(t.preserveAspectRatio&&(Z=ee=Math.min(Z,ee)),t.scaleGrid){var be=t.scaleGrid;Z=be*Math.floor(Z/be),ee=be*Math.floor(ee/be)}Z=Math.min(a,Math.max(o,Z)),ee=Math.min(u,Math.max(c,ee));var _e=this.options.origin,Pe=f.x-e.x*Z-_e.x,Ie=f.y-e.y*ee-_e.y;this.scale(Z,ee),this.translate(Pe,Ie)}},getContentArea:function(t){return t&&t.useModelGeometry?this.model.getBBox()||new rr:ti(this.cells).getBBox()},getContentBBox:function(t){return this.localToPaperRect(this.getContentArea(t))},getArea:function(){return this.paperToLocalRect(this.getComputedSize())},getRestrictedArea:function(...t){const{restrictTranslate:n}=this.options;let e;return e=gs(n)?n.apply(this,t):!0===n?this.getArea():n?new rr(n):null,e},createViewForModel:function(t){const{options:n}=this;var e,i,r=n.cellViewNamespace,o=t.get("type")+"View",a=vb(r,o,".");return t.isLink()?(e=n.linkView,i=Pb):(e=n.elementView,i=Vc),new(e.prototype instanceof p2.View?a||e:e.call(this,t)||a||i)({model:t,interactive:n.interactive,labelsLayer:!0===n.labelsLayer?t0.LABELS:n.labelsLayer})},removeView:function(t){const{id:n}=t,{_views:e,_updates:i}=this,r=e[n];if(r){var{cid:o}=r;const{mounted:a,unmounted:c}=i;r.remove(),delete e[n],delete a[o],delete c[o]}return r},renderView:function(t,n){const{id:e}=t,i=this._views;let r,o,a=!0;return e in i&&(r=i[e],r.model===t?(o=r.FLAG_INSERT,a=!1):this.removeView(t)),a&&(r=i[e]=this.createViewForModel(t),r.paper=this,o=this.registerUnmountedView(r)|r.getFlag(Vl(r,"initFlag"))),this.requestViewUpdate(r,o,r.UPDATE_PRIORITY,n),r},onImageDragStart:function(){return!1},resetViews:function(t,n){n||(n={}),t||(t=[]),this._resetUpdates(),this.removeViews(),this.freeze({key:"reset"});for(var e=0,i=t.length;eti("stop").attr({offset:f,"stop-color":w,"stop-opacity":Number.isFinite(E)?E:1})),u=ti(i,a,c);return u.id=r,u.appendTo(e),r},definePattern:function(t){if(!uc(t))throw new TypeError("dia.Paper: definePattern() requires 1. argument to be an object.");const{svg:n,defs:e}=this,{id:i=n.id+DE(JSON.stringify(t)),markup:r,attrs:o={}}=t;if(!r)throw new TypeError("dia.Paper: definePattern() requires markup.");if(this.isDefined(i))return i;const a=ti("pattern",{patternUnits:"userSpaceOnUse"});if(a.id=i,a.attr(o),"string"==typeof r)a.append(ti(r));else{const{fragment:c}=AE(r);a.append(c)}return a.appendTo(e),i},defineMarker:function(t){if(!uc(t))throw new TypeError("dia.Paper: defineMarker() requires 1. argument to be an object.");const{svg:n,defs:e}=this,{id:i=n.id+DE(JSON.stringify(t)),markup:r,attrs:o={},markerUnits:a="userSpaceOnUse"}=t;if(this.isDefined(i))return i;const c=ti("marker",{orient:"auto",overflow:"visible",markerUnits:a});if(c.id=i,c.attr(o),r)if("string"==typeof r)c.append(ti(r));else{const{fragment:u}=AE(r);c.append(u)}else{const{type:u="path"}=t,f=ti(u,E4(t,"type","id","markup","attrs","markerUnits"));c.append(f)}return c.appendTo(e),i}},{sorting:g8,Layers:t0,backgroundPatterns:{flipXy:function(t){var n=document.createElement("canvas"),e=t.width,i=t.height;n.width=2*e,n.height=2*i;var r=n.getContext("2d");return r.drawImage(t,0,0,e,i),r.setTransform(-1,0,0,-1,n.width,n.height),r.drawImage(t,0,0,e,i),r.setTransform(-1,0,0,1,n.width,0),r.drawImage(t,0,0,e,i),r.setTransform(1,0,0,-1,0,n.height),r.drawImage(t,0,0,e,i),n},flipX:function(t){var n=document.createElement("canvas"),e=t.width,i=t.height;n.width=2*e,n.height=i;var r=n.getContext("2d");return r.drawImage(t,0,0,e,i),r.translate(2*e,0),r.scale(-1,1),r.drawImage(t,0,0,e,i),n},flipY:function(t){var n=document.createElement("canvas"),e=t.width,i=t.height;n.width=e,n.height=2*i;var r=n.getContext("2d");return r.drawImage(t,0,0,e,i),r.translate(0,2*i),r.scale(1,-1),r.drawImage(t,0,0,e,i),n},watermark:function(t,n){n=n||{};var e=t.width,i=t.height,r=document.createElement("canvas");r.width=3*e,r.height=3*i;for(var o=r.getContext("2d"),a=zd(n.watermarkAngle)?-n.watermarkAngle:-20,c=Nd(a),u=r.width/4,f=r.height/4,w=0;w<4;w++)for(var E=0;E<4;E++)(w+E)%2>0&&(o.setTransform(1,0,0,1,(2*w-1)*u,(2*E-1)*f),o.rotate(c),o.drawImage(t,-e/2,-i/2,e,i));return r}},gridPatterns:{dot:[{color:"#AAAAAA",thickness:1,markup:"rect",update:function(t,n){ti(t).attr({width:n.thickness*n.sx,height:n.thickness*n.sy,fill:n.color})}}],fixedDot:[{color:"#AAAAAA",thickness:1,markup:"rect",update:function(t,n){var e=n.sx<=1?n.thickness*n.sx:n.thickness;ti(t).attr({width:e,height:e,fill:n.color})}}],mesh:[{color:"#AAAAAA",thickness:1,markup:"path",update:function(t,n){var e,i=n.width,r=n.height,o=n.thickness;e=i-o>=0&&r-o>=0?["M",i,0,"H0 M0 0 V0",r].join(" "):"M 0 0 0 0",ti(t).attr({d:e,stroke:n.color,"stroke-width":n.thickness})}}],doubleMesh:[{color:"#AAAAAA",thickness:1,markup:"path",update:function(t,n){var e,i=n.width,r=n.height,o=n.thickness;e=i-o>=0&&r-o>=0?["M",i,0,"H0 M0 0 V0",r].join(" "):"M 0 0 0 0",ti(t).attr({d:e,stroke:n.color,"stroke-width":n.thickness})}},{color:"#000000",thickness:3,scaleFactor:4,markup:"path",update:function(t,n){var e,i=n.width,r=n.height,o=n.thickness;e=i-o>=0&&r-o>=0?["M",i,0,"H0 M0 0 V0",r].join(" "):"M 0 0 0 0",ti(t).attr({d:e,stroke:n.color,"stroke-width":n.thickness})}}]}});class $gt{constructor(){this._initializeCanvas()}_initializeCanvas(){const n=this;n.canvasGraph=new e0({},{cellNamespace:ne}),n.canvasPaper=new WE({cellViewNamespace:ne,el:document.getElementById("noc-paper"),height:"100%",width:"100%",model:this.canvasGraph,restrictTranslate:!0,multiLinks:!1,markAvailable:!0,validateConnection:function(e,i,r,o,a,c){return e!==r},validateMagnet:function(e,i){return!0},defaultConnectionPoint:{name:"boundary",args:{sticky:!0}},defaultConnector:{name:"smooth"},async:!0,interactive:{labelMove:!1},linkPinning:!1,gridSize:10,drawGrid:{name:"doubleMesh",args:[{color:"#DDDDDD",thickness:1},{color:"#DDDDDD",scaleFactor:5,thickness:4}]},sorting:WE.sorting.APPROX,defaultLink:function(){return p8.create()},perpendicularLinks:!1}),n.canvasPaper.on("blank:pointerdblclick",function(){n.unselectAll()}),this.canvasPaper.on("element:pointerup",function(e){n.cam.layoutChanged&&(n.cam.layoutChanged=!1,n.updateLocation())}),this.canvasPaper.on("element:pointerdblclick",function(e){const i=e.model;n.elementOnClick(i),"noctua.NodeLink"!==i.get("type")&&n.selectNode(i)}),this.canvasPaper.on("element:mouseover",function(e){const i=e.model;if("noctua.NodeLink"!==i.get("type")){const r=i;r.hover(!0),n.highlightSuccessorNodes(r)}}),this.canvasPaper.on("element:mouseleave",function(e){e.removeTools();const i=e.model;"noctua.NodeLink"!==i.get("type")&&(i.hover(!1),n.unhighlightAllNodes())}),this.canvasPaper.on("link:mouseenter",function(e){e.removeTools();const i=e.model;"noctua.NodeLink"===i.get("type")&&i.hover(!0)}),this.canvasPaper.on("link:mouseleave",function(e){e.removeTools();const i=e.model;"noctua.NodeLink"===i.get("type")&&i.hover(!1)}),this.canvasPaper.on("link:pointerdblclick",function(e){n.linkOnClick(e.model),n.unselectAll()}),this.canvasPaper.on("element:.edit:pointerdown",function(e,i){i.stopPropagation(),n.editOnClick(e.model)}),this.canvasPaper.on("element:.delete:pointerdown",function(e,i){i.stopPropagation(),n.deleteOnClick(e.model)}),this.canvasPaper.on("element:expand:pointerdown",function(e,i){i.stopPropagation();const r=e.model,o=r.prop("activity");n.toggleActivityVisibility(r,o)}),this.canvasGraph.on("change:position",function(e,i){n.cam.layoutChanged=!0}),this.canvasGraph.on("change:source change:target",function(e){e.get("source");const r=e.get("source").id,a=(e.get("target"),e.get("target").id);a&&r&&n.onLinkCreated(r,a,e)})}addLink(n,e){n.set({activity:e,id:e.uuid}),n.setText(e.edge.label)}highlightSuccessorNodes(n){const e=this;e.unhighlightAllNodes();const i=e.canvasGraph.getPredecessors(n),r=e.canvasGraph.getSuccessors(n);(0,Nt.each)(e.canvasGraph.getCells(),o=>{"noctua.NodeLink"!==o.get("type")&&o.setColor("grey",200,300)}),(0,Nt.each)(r,o=>{"noctua.NodeLink"!==o.get("type")&&o.setColor("amber",200,300)}),(0,Nt.each)(i,o=>{"noctua.NodeLink"!==o.get("type")&&o.setColor("yellow",50,100)}),n.setColor("yellow",100,200)}selectNode(n){this.unselectAll(),n.setBorder("orange",500)}updateLocation(){const n=this;(0,Nt.each)(n.canvasGraph.getElements(),e=>{if("noctua.NodeLink"!==e.get("type")){const i=e.prop("activity");if(i){const r=e.position();i.position.x=r.x,i.position.y=r.y}}}),n.onUpdateCamLocations(n.cam)}unhighlightAllNodes(){(0,Nt.each)(this.canvasGraph.getCells(),e=>{if("noctua.NodeLink"!==e.get("type")){const i=e.prop("activity");e.setColor(i.backgroundColor)}})}unselectAll(){(0,Nt.each)(this.canvasGraph.getCells(),e=>{"noctua.NodeLink"!==e.get("type")&&e.unsetBorder()})}createLinkFromElements(n,e){const r=n.get("activity"),o=e.get("activity");this.createLink(r,new xm(_i.createEntity(Ht.edge.causallyUpstreamOf)),o)}createLink(n,e,i){const o=new zh(n,i,e);this.createLinkFromTriple(o,!0)}createLinkFromTriple(n,e){const i=this,r=p8.create();r.setText(n.predicate.edge.label),r.set({activity:n.predicate,id:n.predicate.edge.id,source:{id:n.subject.id,port:"right"},target:{id:n.object.id,port:"left"}}),r.addTo(i.canvasGraph),e&&i.autoLayoutGraph(i.canvasGraph)}paperScale(n,e){const i=this.canvasPaper.$el,r=this.canvasPaper.scale().sx+n;if(r>.1&&n<10){const o=e.offsetX||e.clientX-i.offset().left,a=e.offsetY||e.clientY-i.offset().top,c=this._offsetToLocalPoint(o,a);this.canvasPaper.translate(0,0),this.canvasPaper.scale(r,r,c.x,c.y)}}zoom(n,e){e?this.paperScale(n,e):(this.canvasPaper.translate(0,0),this.canvasPaper.scale(this.canvasPaper.scale().sx+n,this.canvasPaper.scale().sx+n))}resetZoom(){this.canvasPaper.scale(1,1)}toggleActivityVisibility(n,e){const i=this,r=i.canvasGraph.getSuccessors(n).concat(n);i.canvasGraph.getSubgraph(r).forEach(e.expanded?a=>{a.attr("./visibility","hidden")}:a=>{a.attr("./visibility","visible")}),n.attr("./visibility","visible"),e.expanded=!e.expanded,i.autoLayoutGraph(i.canvasGraph),i.canvasPaper.translate(0,0)}_addGPEntity(n,e){var i,r,o,a;const c=this;(null===(i=n.node)||void 0===i?void 0:i.displaySection.id)===Ht.displaySection.gp.id&&((null===(r=n.node)||void 0===r?void 0:r.term)&&(null===(o=n.node.predicate.edge)||void 0===o?void 0:o.id)!==Ht.edge.enabledBy.id&&e.addEntity(Rh.pad("\u2014",n.node.treeLevel-2)+(null===(a=n.node.predicate.edge)||void 0===a?void 0:a.label),n.node.term.label,n.node.predicate.hasEvidence()),n.children.forEach(u=>{c._addGPEntity(u,e)}))}_addFDEntity(n,e){var i,r,o;const a=this;(null===(i=n.node)||void 0===i?void 0:i.displaySection.id)===Ht.displaySection.fd.id&&((null===(r=n.node)||void 0===r?void 0:r.term)&&e.addEntity(Rh.pad("\u2014",n.node.treeLevel-2)+(null===(o=n.node.predicate.edge)||void 0===o?void 0:o.label),n.node.term.label,n.node.predicate.hasEvidence()),n.children.forEach(c=>{a._addFDEntity(c,e)}))}createNode(n,e){var i,r;const o=new uV;if(o.addIcon(`./assets/images/activity/coverage-${n.summary.coverage}.png`),e===Ht.graphLayoutDetail.options.detailed.id)n.activityType===Wi.proteinComplex&&n.buildGPTrees().forEach(u=>this._addGPEntity(u,o)),n.buildTrees().forEach(c=>this._addFDEntity(c,o));else if(e===Ht.graphLayoutDetail.options.activity.id&&n.mfNode){const a=n.getEdges(n.mfNode.id);o.addEntity("",null===(i=n.mfNode)||void 0===i?void 0:i.term.label,n.mfNode.predicate.hasEvidence()),a.forEach(c=>{var u,f;const w=(0,Nt.find)(Ht.defaultGraphDisplayEdges,E=>{var B;return E.id===(null===(B=c.predicate.edge)||void 0===B?void 0:B.id)});(null===(u=c.object)||void 0===u?void 0:u.term.hasValue())&&w&&o.addEntity(c.object.predicate.edge.label,null===(f=c.object)||void 0===f?void 0:f.term.label,c.object.predicate.hasEvidence())})}return n.gpNode?o.addHeader(null===(r=n.gpNode)||void 0===r?void 0:r.term.label):o.prop("GP info unavailable"),o.setColor(n.backgroundColor),o.attr({expand:{event:"element:expand:pointerdown",stroke:"black",strokeWidth:2}}),o.set({activity:n,id:n.id,position:n.position}),o}createMolecule(n){const e=new m2e;n.size.width=120,n.size.height=120,e.setColor(n.backgroundColor);const i=n.getActivityTypeDetail(),r=n.rootNode;if(e.prop({name:[i?i.label:"Activity Unity"]}),r){let o=r.term.label;n.ccNode&&(o+=`\nlocated in: ${n.ccNode.term.label}`),e.setText(o)}return e.attr({expand:{event:"element:expand:pointerdown",stroke:"black",strokeWidth:2}}),e.set({activity:n,id:n.id,position:n.position,size:n.size}),e}addCanvasGraph(n,e){const i=this,r=[];i.cam=n,i.canvasGraph.resetCells(r),(0,Nt.each)(n.activities,o=>{if(o.visible){let a;a=o.activityType===Wi.molecule?i.createMolecule(o):i.createNode(o,e),r.push(a)}}),(0,Nt.each)(n.causalRelations,o=>{if(o.predicate.visible&&o.isTripleComplete()){const a=function Xgt(t){switch(t){case Ht.edge.directlyRegulates.id:case Ht.edge.causallyUpstreamOfOrWithin.id:case Ht.edge.causallyUpstreamOf.id:return"grey";case Ht.edge.positivelyRegulates.id:case Ht.edge.directlyPositivelyRegulates.id:case Ht.edge.causallyUpstreamOfPositiveEffect.id:case Ht.edge.isSmallMoleculeActivator.id:return"green";case Ht.edge.negativelyRegulates.id:case Ht.edge.directlyNegativelyRegulates.id:case Ht.edge.causallyUpstreamOfNegativeEffect.id:case Ht.edge.isSmallMoleculeInhibitor.id:return"red";default:return"black"}}(o.predicate.edge.id),c=p8.create();o.predicate.isReverseLink?this.reverseLink(o,c):(c.setText(o.predicate.edge.label),c.set({activity:o.predicate,source:{id:o.subject.id},target:{id:o.object.id}})),c.setColor(a),r.push(c)}}),i.canvasPaper.setDimensions("30000px","30000px"),i.canvasPaper.scaleContentToFit({minScaleX:.3,minScaleY:.3,maxScaleX:1,maxScaleY:1}),i.canvasGraph.resetCells(r),n.manualLayout||i.autoLayoutGraph(i.canvasGraph),i.canvasPaper.unfreeze(),i.canvasPaper.render()}reverseLink(n,e){e.setText(n.predicate.reverseLinkTitle),e.set({activity:n.predicate,source:{id:n.object.id},target:{id:n.subject.id}})}addStencilGraph(n,e){const r=[];(0,Nt.each)(e,o=>{const a=new dV;a.attr("label/text",o.title),a.set({activity:(0,Nt.cloneDeep)(o)}),r.push(a)}),n.resetCells(r),this._layout(n)}_layout(n){let e=10;n.getElements().forEach(i=>{i.position(10,e),e+=i.size().height+10})}autoLayoutGraph(n){const e=[];n.getElements().forEach(r=>{"hidden"!==r.attr("./visibility")&&e.push(r)}),f8.layout(n.getSubgraph(e),{align:"UL",setLabels:!0,marginX:50,marginY:50,rankSep:200,rankDir:"TB"}),[].forEach(function(r){const o=n.getNeighbors(r,{inbound:!0})[0];if(!o)return;const a=o.getBBox().bottomRight();r.position(a.x+20,a.y-r.size().height/2-20)})}_offsetToLocalPoint(n,e){return y4t.createSVGPoint(n,e).matrixTransform(this.canvasPaper.viewport.getCTM().inverse())}}class Qgt{constructor(n,e){this.stencils=[];const i=this;i.camCanvas=n,i.stencils=e,i._initializeStencils(e)}_initializeStencils(n){const e=this;e.stencils=[],(0,Nt.each)(n,i=>{const r=new e0,o=e.generateStencilPaper(i,r);e.addStencilGraph(r,i.nodes),o.on("cell:pointerdown",e.onMouseDown(i.id,e.camCanvas.canvasPaper)),e.stencils.push({id:i.id,paper:o,graph:r})})}addStencilGraph(n,e){const r=[];(0,Nt.each)(e,o=>{const a=new dV;a.setIcon(o.iconUrl),a.attr("label/text",o.label),a.set({node:(0,Nt.cloneDeep)(o)}),r.push(a)}),n.resetCells(r),this._layout(n)}generateStencilPaper(n,e){return new WE({el:document.getElementById(n.id),height:120*n.nodes.length,width:"100%",model:e,interactive:!1})}onMouseDown(n,e){const i=this;return function(r,o,a,c){$("#noc-canvas").append('
');const u=new e0,w=(new WE({el:document.getElementById("noc-flypaper"),model:u,interactive:!1}),r.model.clone()),E=r.model.position(),B_x=a-E.x,B_y=c-E.y;i.selectedStencilElement=r.model,w.position(0,0),u.addCell(w),$("#noc-flypaper").offset({left:o.pageX-B_x,top:o.pageY-B_y}),$("#noc-canvas").on("mousemove.fly",function(Z){$("#noc-flypaper").offset({left:Z.pageX-B_x,top:Z.pageY-B_y})}),$("#noc-canvas").on("mouseup.fly",function(Z){const ee=Z.pageX,be=Z.pageY,_e=e.$el.offset();ee>_e.left&&ee<_e.left+e.$el.width()&&be>_e.top&&be<_e.top+e.$el.height()&&i.onAddElement(i.selectedStencilElement,ee-_e.left-B_x,be-_e.top-B_y),$("#noc-canvas").off("mousemove.fly").off("mouseup.fly"),w.remove(),$("#noc-flypaper").remove()})}}_layout(n){let e=10;n.getElements().forEach(i=>{i.position(10,e),e+=i.size().height+10})}_layoutGraph(n){const e=[];n.getElements().forEach(r=>{"hidden"!==r.attr("./visibility")&&e.push(r)}),f8.layout(n.getSubgraph(e),{align:"UR",setVertices:!0,setLabels:!0,marginX:0,marginY:0,rankSep:0,rankDir:"LR"})}}let X2e=(()=>{class t{constructor(e){this.noctuaFormConfigService=e,this.selectedGraphLayoutDetail=this.noctuaFormConfigService.graphLayoutDetail.selected,this.onGraphLayoutDetailChanged=new mr(null)}}return t.\u0275fac=function(e){return new(e||t)(Rt(lr))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Kgt=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E){this._camService=e,this.noctuaGraphEditorService=i,this._noctuaGraphService=r,this._noctuaFormDialogService=o,this._noctuaUserService=a,this.confirmDialogService=c,this._activityFormService=u,this._activityConnectorService=f,this.noctuaCommonMenuService=w,this.noctuaShapesService=E,this.stencils=[],this.placeholderElement=new uV}initializeGraph(){const e=this;e.camCanvas=new $gt,e.camCanvas.elementOnClick=e.openTable.bind(e),e.camCanvas.editOnClick=e.openTable.bind(e),e.camCanvas.deleteOnClick=e.deleteActivity.bind(e),e.camCanvas.linkOnClick=e.openConnector.bind(e),e.camCanvas.onLinkCreated=e.createActivityConnector.bind(e),e.camCanvas.onUpdateCamLocations=e.updateCamLocations.bind(e)}initializeStencils(){const e=this;e.camStencil=new Qgt(e.camCanvas,v2e.camStencil),e.camStencil.onAddElement=e.createActivity.bind(e)}addToCanvas(e,i){this.cam=e,this.camCanvas.addCanvasGraph(e,i)}zoom(e,i){this.camCanvas.zoom(e,i)}reset(){this.camCanvas.resetZoom()}updateCamLocations(e){this._noctuaGraphService.setActivityLocations(e)}createActivity(e,i,r){const o=this,a=e.get("node");o.placeholderElement.position(i,r),o._activityFormService.setActivityType(a.type),o._activityFormService.activity.validateEvidence=!1,o._noctuaFormDialogService.openCreateActivityDialog(b_.ACTIVITY)}createActivityConnector(e,i,r){this._activityConnectorService.initializeForm(e,i),this._noctuaFormDialogService.openCreateActivityDialog(b_.ACTIVITY_CONNECTOR)}addActivity(e,i){const r=this,o=r.placeholderElement.prop("position");e.position.x=o.x,e.position.y=o.y;const a=r.camCanvas.createNode(e,i);r.camCanvas.canvasGraph.addCell(a),this._noctuaGraphService.addActivityLocation(r.cam,e)}deleteActivity(e){const i=this,r=e.get("activity");i._noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this._camService.deleteActivity(r).then(()=>{this._camService.onSelectedActivityChanged.next(null),this.noctuaCommonMenuService.closeRightDrawer(),this._camService.getCam(this.cam.id),i._noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}openTable(e){const i=e.prop("activity");this.selectedElement=e,this._camService.onSelectedActivityChanged.next(i),this.noctuaCommonMenuService.selectRightPanel(_3.activityTable),this.noctuaCommonMenuService.closeLeftDrawer(),this.noctuaCommonMenuService.openRightDrawer(),i.expanded=!0,this._camService.currentMatch.activityDisplayId=i.displayId,this.noctuaCommonMenuService.scrollTo(`#${i.displayId}`)}openConnector(e){const i=this;i.selectedElement=e;const r=e.get("source"),o=e.get("target");!r||!o||(i._activityConnectorService.initializeForm(r.id,o.id),i.noctuaCommonMenuService.selectRightPanel(_3.activityConnectorTable),i.noctuaCommonMenuService.closeLeftDrawer(),i.noctuaCommonMenuService.openRightDrawer())}autoLayoutGraph(){this.camCanvas.autoLayoutGraph(this.camCanvas.canvasGraph)}save(){const i=this.camCanvas.canvasGraph.getCells(),r=[],o=[];(0,Nt.each)(i,c=>{if("noctua.NodeLink"===c.get("type")){const f=c.get("source"),w=c.get("target");o.push({subject:{uuid:f.id},predicate:{id:c.get("id")},object:{uuid:w.id}})}else r.push({uuid:c.get("id"),id:c.get("id"),position:c.get("position"),size:c.get("size")})})}}return t.\u0275fac=function(e){return new(e||t)(Rt(Zo),Rt(X2e),Rt(hl),Rt(gl),Rt(uo),Rt(Q2),Rt(ps),Rt(uP),Rt($c),Rt(_2e))},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Zgt=["stencils"];function Jgt(t,n){if(1&t&&(G(0,"div",null,24),$e(2,"div",25),W()),2&t){const e=n.$implicit;K(2),Ti("id",e.id)}}const emt=function(){return["fas","caret-down"]};function tmt(t,n){1&t&&$e(0,"fa-icon",26),2&t&&oe("icon",ai(1,emt))}function nmt(t,n){if(1&t){const e=Nn();G(0,"button",27),it("click",function(){const o=Ut(e).$implicit;return He().selectLayoutDetail(o)}),he(1),W()}if(2&t){const e=n.$implicit;K(1),Ft(" ",e.label," ")}}const imt=function(){return["fas","search-minus"]},rmt=function(){return["fas","search-plus"]};let omt=(()=>{class t{constructor(e,i,r,o,a,c,u){this.noctuaDataService=e,this.noctuaFormConfigService=i,this.noctuaGraphEditorService=r,this._noctuaGraphService=o,this.noctuaCommonMenuService=a,this.noctuaCamGraphService=c,this.noctuaCamShapesService=u,this.stencils=[],this._unsubscribeAll=new z,this.stencils=v2e.camStencil,this.noctuaGraphEditorService.onGraphLayoutDetailChanged.pipe(Ln(this._unsubscribeAll)).subscribe(f=>{!f||this.noctuaCamGraphService.addToCanvas(this.cam,this.noctuaGraphEditorService.selectedGraphLayoutDetail.id)})}ngAfterViewInit(){const e=this;e.noctuaCamGraphService.initializeGraph(),e.noctuaCamGraphService.initializeStencils(),e._noctuaGraphService.onCamGraphChanged.pipe(Ln(e._unsubscribeAll)).subscribe(i=>{!i||i.id!==e.cam.id||(e.cam=i,e.noctuaCamGraphService.cam=e.cam,i.operation!==g3.ADD_ACTIVITY&&e.noctuaCamGraphService.addToCanvas(e.cam,this.noctuaGraphEditorService.selectedGraphLayoutDetail.id))})}ngOnInit(){const e=this;e._noctuaGraphService.onActivityAdded.pipe(Ln(e._unsubscribeAll)).subscribe(i=>{!i||e.noctuaCamGraphService.addActivity(i,this.noctuaGraphEditorService.selectedGraphLayoutDetail.id)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}selectLayoutDetail(e){this.noctuaGraphEditorService.selectedGraphLayoutDetail=e,this.noctuaGraphEditorService.onGraphLayoutDetailChanged.next(e)}canMove(e){return-1===e.indexOf("Disabled")}automaticLayout(){this.noctuaCamGraphService.autoLayoutGraph()}zoomIn(){this.noctuaCamGraphService.zoom(.1)}zoomOut(){this.noctuaCamGraphService.zoom(-.1)}onCtrlScroll(e){const r=Math.max(-1,Math.min(1,e.wheelDelta||e.detail))/10;e.ctrlKey&&(this.noctuaCamGraphService.zoom(r,e),e.returnValue=!1,e.preventDefault&&e.preventDefault())}}return t.\u0275fac=function(e){return new(e||t)(de(E_),de(lr),de(X2e),de(hl),de($c),de(Kgt),de(_2e))},t.\u0275cmp=En({type:t,selectors:[["noc-cam-graph"]],viewQuery:function(e,i){if(1&e&&fr(Zgt,5),2&e){let r;hi(r=pi())&&(i.stencilContainers=r)}},inputs:{cam:"cam"},decls:33,vars:11,consts:[["id","noc-canvas",1,""],["id","noc-palette",1,""],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-form","noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","w-100-p"],[4,"ngFor","ngForOf"],["fxFlex","","fxLayout","column","fxLayoutAlign","start ",1,"noc-middle-panel"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-workflow-toolbar","w-100-p"],["mat-stroked-button","","color","primary","matTooltip","Automatic Tree Layout",1,"noc-rounded-button","noc-xs","mr-8",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-title","mr-4"],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-action-button","noc-half-button","noc-xs",3,"matMenuTriggerFor"],[3,"icon",4,"ngIf"],[1,"noc-dropdown-menu"],["graphLayoutDetailMenu","matMenu"],["mat-menu-item","","class","",3,"click",4,"ngFor","ngForOf"],[1,"noc-button-row","ml-12"],["mat-stroked-button","","color","",1,"noc-rounded-button","noc-half-button","noc-xs","noc-r",3,"click"],[1,"",3,"icon"],["mat-stroked-button","","color","",1,"noc-rounded-button","noc-half-button","noc-xs","noc-m",3,"click"],["mat-stroked-button","","color","",1,"noc-rounded-button","noc-half-button","noc-xs","noc-l",3,"click"],[1,"noc-paper-container",3,"wheel"],["id","noc-paper",1,""],["paper",""],["stencils",""],[1,""],[3,"icon"],["mat-menu-item","",1,"",3,"click"]],template:function(e,i){if(1&e&&(G(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),he(5," TOOLBOX "),W()(),G(6,"div",5),Ve(7,Jgt,3,1,"div",6),W()()(),G(8,"div",7)(9,"div",8)(10,"button",9),it("click",function(){return i.automaticLayout()}),he(11," Automatic Layout "),W(),G(12,"span",10),he(13," Layout Detail : "),W(),G(14,"button",11),he(15),Ve(16,tmt,1,2,"fa-icon",12),W(),G(17,"mat-menu",13,14),Ve(19,nmt,2,1,"button",15),W(),G(20,"div",16)(21,"span",10),he(22," Zoom : "),W(),G(23,"button",17),it("click",function(){return i.zoomOut()}),$e(24,"fa-icon",18),W(),G(25,"button",19),it("click",function(){return i.zoomIn()}),$e(26,"fa-icon",18),W(),G(27,"button",20),it("click",function(){return i.noctuaCamGraphService.reset()}),G(28,"mat-icon"),he(29,"youtube_searched_for"),W()()()(),G(30,"div",21),it("wheel",function(o){return i.onCtrlScroll(o)}),$e(31,"div",22,23),W()()()),2&e){const r=Di(18);K(7),oe("ngForOf",i.stencils),K(3),oe("matTooltipPosition","after")("matTooltipShowDelay",1500),K(4),oe("matMenuTriggerFor",r),K(1),Ft(" ",i.noctuaGraphEditorService.selectedGraphLayoutDetail.label," "),K(1),oe("ngIf",i.cam.expanded),K(3),oe("ngForOf",i.noctuaFormConfigService.graphLayoutDetail.options),K(5),oe("icon",ai(9,imt)),K(2),oe("icon",ai(10,rmt))}},directives:[Lr,kr,Fa,vo,Vr,Er,Jl,Zl,er,ks,T1,sl,Mo],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] #noc-canvas[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0}[_nghost-%COMP%] .noc-middle-panel[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%]{background-color:#fff;padding:2px 12px;height:35px;min-height:35px;max-height:35px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:12px;font-weight:700}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0;color:#5872a7;font-size:14px;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{font-size:16px;color:#3b5998}[_nghost-%COMP%] .noc-workflow-toolbar[_ngcontent-%COMP%] .noc-button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px}[_nghost-%COMP%] .noc-paper-container[_ngcontent-%COMP%]{height:calc(100% - 35px);overflow:auto;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%]{background-color:#fff;border-right:solid 1px #002255;width:100px;min-width:100px;max-width:100px;height:100%;min-height:100%;max-height:100%;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{height:35px;min-height:35px;max-height:35px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{padding-bottom:200px}[_nghost-%COMP%] #noc-palette[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{padding-left:8px;display:flex;align-items:center;height:35px;color:#025;border-bottom:solid 1px #324c74;font-size:12px;font-weight:700;text-transform:uppercase}[_nghost-%COMP%] #noc-flypaper[_ngcontent-%COMP%]{height:400px;width:400px}']}),t})();function amt(t,n){if(1&t&&$e(0,"noc-activity-form-table",11),2&t){const e=He();oe("options",e.options)("cam",e.cam)("activity",e.activity)}}let smt=(()=>{class t{constructor(e,i,r,o,a,c,u,f,w,E){this.ngZone=e,this.changeDetectorRef=i,this.camService=r,this.noctuaCommonMenuService=o,this.noctuaUserService=a,this.noctuaFormConfigService=c,this.noctuaActivityEntityService=u,this.noctuaActivityFormService=f,this.confirmDialogService=w,this.noctuaFormDialogService=E,this.EditorCategory=pa,this.ActivityType=Wi,this.activityTypeOptions=Ht.activityType.options,this.options={},this.nodes=[],this.editableTerms=!1,this.currentMenuEvent={},this._unsubscribeAll=new z}ngOnInit(){this.camService.onSelectedActivityChanged.pipe(Ln(this._unsubscribeAll)).subscribe(i=>{!i||(this.activity=null,setTimeout(()=>{this.activity=i},100))})}deleteActivity(e){const i=this;i.noctuaUserService.user?this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to delete an activity.",()=>{this.camService.deleteActivity(e).then(()=>{this.camService.onSelectedActivityChanged.next(null),this.noctuaCommonMenuService.closeRightDrawer(),this.camService.getCam(this.cam.id),i.noctuaFormDialogService.openInfoToast("Activity successfully deleted.","OK")})}):this.confirmDialogService.openConfirmDialog("Not Logged In","Please log in to continue.",null)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(ji),de(Do),de(Zo),de($c),de(uo),de(lr),de(Td),de(ps),de(Q2),de(gl))},t.\u0275cmp=En({type:t,selectors:[["noc-graph-activity-table"]],inputs:{options:"options",panelDrawer:"panelDrawer",cam:"cam"},decls:17,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-icon-button","","fxFlex","40px","color","primary",1,"",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["activityOptionMenu","matMenu"],["mat-menu-item","","color","warn",1,"",3,"click"],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start start","noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-activities-table-body","fxLayout","row","fxLayoutAlign","start center",3,"options","cam","activity",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-activities-table-body",3,"options","cam","activity"]],template:function(e,i){if(1&e&&(G(0,"div",0)(1,"div",1),$e(2,"span",2)(3,"span",3),G(4,"button",4)(5,"mat-icon"),he(6,"more_vert"),W()(),G(7,"mat-menu",5,6)(9,"button",7),it("click",function(){return i.deleteActivity(i.activity)}),he(10," Delete "),W()(),G(11,"button",8),it("click",function(){return i.close()}),G(12,"mat-icon"),he(13,"close"),W(),he(14," Close "),W()(),G(15,"div",9),Ve(16,amt,1,3,"noc-activity-form-table",10),W()()),2&e){const r=Di(8);K(4),oe("matMenuTriggerFor",r),K(12),oe("ngIf",i.activity)}},directives:[Lr,kr,Vr,Er,Zl,Mo,T1,sl,Fa,er,Xle],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}.noc-cell-floating-title[_ngcontent-%COMP%]{position:absolute;left:4px;top:-6px;height:12px;padding:0 4px;font-size:8px;overflow:hidden;white-space:nowrap;max-width:80%;text-overflow:ellipsis;background-color:#fff;color:#656565}.noctua-form-table.noc-tree-header-row[_ngcontent-%COMP%]{padding-left:40px}.noctua-form-table[_ngcontent-%COMP%] .noc-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}.noctua-form-table[_ngcontent-%COMP%] .noc-relation-cell[_ngcontent-%COMP%]{width:150px;min-width:150px;max-width:150px}.noctua-form-table[_ngcontent-%COMP%] .noc-term-cell[_ngcontent-%COMP%]{min-width:100px}.noctua-form-table[_ngcontent-%COMP%] .noc-aspect-cell[_ngcontent-%COMP%], .noctua-form-table[_ngcontent-%COMP%] .noc-extension-cell[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px}.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-evidence-cell[_ngcontent-%COMP%]{width:450px;min-width:450px;max-width:450px}}.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-reference-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-with-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-group-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}@media screen and (max-width: 1367px){.noctua-form-table[_ngcontent-%COMP%] .noc-contributor-cell[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px}}.noctua-form-table[_ngcontent-%COMP%] .noc-action-cell[_ngcontent-%COMP%]{padding:0;width:40px;min-width:40px;max-width:40px}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] mat-chip.default[_ngcontent-%COMP%]{border:#cdf1d2 solid 2px}[_nghost-%COMP%] mat-chip.bpOnly[_ngcontent-%COMP%]{border:#f8c6e5 solid 2px}[_nghost-%COMP%] mat-chip.ccOnly[_ngcontent-%COMP%]{border:#d3b5f5 solid 2px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:30px;min-height:30px;max-height:30px;text-overflow:ellipsis;white-space:nowrap;padding:0;border:#e28989 solid 1px;background-color:#e2898933}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:30px;width:30px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-error-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#e28989}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-left:40px;position:relative;margin-bottom:1px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-group-side-heading[_ngcontent-%COMP%]{width:25px;min-width:25px;max-width:25px;height:100%;min-height:100%;max-height:100%;background-color:#ddd;font-size:8px;font-weight:700;text-align:center;word-break:normal;overflow-wrap:anywhere}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:1px;height:55px;min-height:55px;max-height:55px;background-color:#fff;font-size:14px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;font-style:italic}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-title-truncate[_ngcontent-%COMP%]{max-width:200px}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff;z-index:2}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:before{position:absolute;top:27px;left:-15px;width:25px;height:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-heading[_ngcontent-%COMP%]:after{position:absolute;top:0;left:37px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:"";z-index:1}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%]{width:350px;line-height:12px;height:55px;min-height:55px;max-height:55px;padding:4px 8px;font-size:12px!important;color:#000;border-right:rgba(121,143,184,.3) solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:10px!important}[_nghost-%COMP%] .noc-gp.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-gp.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-gp.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-gp.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 3px}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;padding-bottom:4px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-gp[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] noc-activity-tree-node[_ngcontent-%COMP%]{padding-left:40px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;overflow:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{display:inline-flex;min-width:100%}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-footer-row.noc-row-term[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row.noc-row-term[_ngcontent-%COMP%]:before{position:absolute;left:0px;width:20px;height:2px;top:50%;transform:translateY(-50%);color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-header-row[_ngcontent-%COMP%], [_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{padding-left:15px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .noc-paginator[_ngcontent-%COMP%]{height:0;min-height:0;max-height:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .activity[_ngcontent-%COMP%]{position:relative;cursor:pointer;min-height:40px;font-size:12px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match[_ngcontent-%COMP%]{background-color:#fffcd8}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified[_ngcontent-%COMP%]{background-color:#fdd661}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-modified-user[_ngcontent-%COMP%]{background-color:#f3ccbb}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell.noc-highlight-match-current[_ngcontent-%COMP%]{border:#ac6219 solid 5px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-old-term[_ngcontent-%COMP%]{color:#777;font-size:10px;-webkit-text-decoration:line-through rgba(236,104,104,.5);text-decoration:line-through rgba(236,104,104,.5)}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-activity-table[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-activity-table.noc-selected[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{background-color:#e1f5fe4d}']}),t})();function cmt(t,n){if(1&t&&(G(0,"div",24),he(1," This relation is not supported, please choose a new relation below "),$e(2,"br"),he(3," ("),G(4,"strong"),he(5),W(),he(6,") "),W()),2&t){const e=He(2);K(5),Zr(null==e.currentConnectorActivity||null==e.currentConnectorActivity.predicate?null:e.currentConnectorActivity.predicate.edge.label)}}function lmt(t,n){if(1&t&&(G(0,"div",28),he(1),W()),2&t){const e=He().$implicit;K(1),Ft(" ",e.description," ")}}function dmt(t,n){if(1&t&&(G(0,"div",25)(1,"mat-radio-button",26),he(2),W(),Ve(3,lmt,2,1,"div",27),W()),2&t){const e=n.$implicit,i=He(2);K(1),oe("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.relationship?null:i.connectorActivity.rule.relationship.id))("value",e),K(1),Ft(" ",e.label," "),K(1),oe("ngIf",e.description)}}function umt(t,n){if(1&t&&(G(0,"div",25)(1,"mat-radio-button",32),he(2),W()()),2&t){const e=n.$implicit,i=He(3);K(1),oe("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.effectDirection?null:i.connectorActivity.rule.effectDirection.id)),K(1),Ft(" ",e.label," ")}}function hmt(t,n){if(1&t&&(G(0,"div",13)(1,"div",14)(2,"p"),he(3,"Effect Direction"),W()(),G(4,"mat-radio-group",29),Ve(5,umt,3,3,"div",16),W(),G(6,"div",30)(7,"div",31),he(8," The mechanism regulation should be known, so it should be possible to pick the direction of the regulation. "),W()()()),2&t){const e=He(2);K(5),oe("ngForOf",e.noctuaFormConfigService.effectDirection.options)}}function pmt(t,n){if(1&t&&(G(0,"div",28),he(1),W()),2&t){const e=He().$implicit;K(1),Ft(" ",e.description," ")}}function fmt(t,n){if(1&t&&(G(0,"div",25)(1,"mat-radio-button",32),he(2),W(),Ve(3,pmt,2,1,"div",27),W()),2&t){const e=n.$implicit,i=He(3);K(1),oe("value",e)("checked",e.id===(null==i.connectorActivity||null==i.connectorActivity.rule.directness?null:i.connectorActivity.rule.directness.id)),K(1),Ft(" ",e.label," "),K(1),oe("ngIf",e.description)}}function gmt(t,n){if(1&t&&(G(0,"div",13)(1,"div",14)(2,"p"),he(3,"Directness "),W()(),G(4,"mat-radio-group",33),Ve(5,fmt,4,4,"div",16),W()()),2&t){const e=He(2);K(5),oe("ngForOf",e.noctuaFormConfigService.directness.options)}}function mmt(t,n){if(1&t&&(G(0,"div",9)(1,"div",10),Ve(2,cmt,7,1,"div",11),G(3,"div",12)(4,"div",13)(5,"div",14)(6,"p"),he(7,"Relationship"),W()(),G(8,"mat-radio-group",15),Ve(9,dmt,4,4,"div",16),W()(),Ve(10,hmt,9,1,"div",17),Ve(11,gmt,6,1,"div",17),W(),G(12,"div",18)(13,"div",19),he(14," Suggested Causal Relation "),W()(),G(15,"div",20)(16,"span",21),he(17),W()(),G(18,"div",22)(19,"div",19),he(20," Evidence "),W()(),$e(21,"noc-evidence-form-table",23),W()()),2&t){const e=He();K(2),oe("ngIf",!(null!=e.connectorActivity&&null!=e.connectorActivity.rule.relationship&&e.connectorActivity.rule.relationship.id)),K(7),oe("ngForOf",e.relationshipOptions),K(1),oe("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.effectDirection),K(1),oe("ngIf",null==e.connectorActivity?null:e.connectorActivity.rule.displaySection.directness),K(6),Ft(" ",null==e.connectorActivity||null==e.connectorActivity.predicate.edge?null:e.connectorActivity.predicate.edge.label," "),K(4),oe("settings",e.settings)("options",e.evidenceOptions)("cam",e.cam)("activity",e.connectorActivity)("entity",e.connectorActivity.subjectNode)}}let _mt=(()=>{class t{constructor(e,i,r,o,a,c,u,f){this.confirmDialogService=e,this.noctuaActivityConnectorService=i,this.noctuaUserService=r,this.noctuaFormDialogService=o,this.noctuaFormConfigService=a,this.noctuaActivityFormService=c,this.noctuaCommonMenuService=u,this.noctuaActivityEntityService=f,this.ConnectorType=s2,this.evidenceOptions={editableEvidence:!0,editableReference:!0,editableWith:!0,showEvidenceMenu:!0,showAddEvidenceButton:!0},this.settings=new w_,this.connectorState=m3,this.searchCriteria={},this._unsubscribeAll=new z}ngOnInit(){this.connectorFormSub=this.noctuaActivityConnectorService.connectorFormGroup$.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.connectorFormGroup=e,this.currentConnectorActivity=this.noctuaActivityConnectorService.currentConnectorActivity,this.connectorActivity=this.noctuaActivityConnectorService.connectorActivity,this.relationshipOptions=this.noctuaFormConfigService[this.connectorActivity.connectorType+"Relationship"].options)}),this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.settings=e)})}openActivityConnector(e){this.noctuaActivityConnectorService.initializeForm(this.noctuaActivityConnectorService.objectActivity.id,e.id)}save(){const e=this;this.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully created.","OK"),this.noctuaActivityConnectorService.initializeForm(e.noctuaActivityConnectorService.subjectActivity.id,e.noctuaActivityConnectorService.objectActivity.id),this.closeDialog&&this.closeDialog()})}editActivity(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.saveActivity().then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully updated.","OK")})})}deleteConnectorEdge(){const e=this;this.confirmDialogService.openConfirmDialog("Confirm Delete?","You are about to remove the causal relation",()=>{e.noctuaActivityConnectorService.deleteConnectorEdge(this.currentConnectorActivity).then(()=>{e.noctuaFormDialogService.openInfoToast("Causal relation successfully deleted.","OK")})})}close(){this.panelDrawer&&this.panelDrawer.close(),this.closeDialog&&this.closeDialog()}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Q2),de(uP),de(uo),de(gl),de(lr),de(ps),de($c),de(Td))},t.\u0275cmp=En({type:t,selectors:[["noc-activity-connector-table"]],inputs:{panelDrawer:"panelDrawer",cam:"cam",activity:"activity",closeDialog:"closeDialog"},decls:15,vars:2,consts:[["name","connectorFormGroup","fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","w-100-p","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start start","noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-connector-form",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","button","mat-raised-button","","color","warn",1,"mr-8",3,"click"],[1,"noc-connector-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-form-section","w-100-p"],["class","alert alert-warning w-100-p",4,"ngIf"],[1,"noc-form-section","p-0","w-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"px-8","noc-group-row"],[1,"noc-title"],["fxFlex","","formControlName","relationship","fxLayout","column","fxLayoutAlign","start start"],["class","noc-radio-row","fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["class","px-8 noc-group-row","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header","noc-bt"],[1,"noc-section-heading"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-note","mb-4"],[1,"noc-description"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"w-100-p",3,"settings","options","cam","activity","entity"],[1,"alert","alert-warning","w-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-radio-row"],[1,"noc-radio-button-rounded","noc-label",3,"checked","value"],["fxFlex","","class","noc-hint",4,"ngIf"],["fxFlex","",1,"noc-hint"],["formControlName","effectDirection","fxLayout","column","fxLayoutAlign","start start"],["fxFlex","","fxLayout","column","fxLayoutAlign","center start"],[1,"noc-hint","noc-sm"],[1,"noc-radio-button-rounded","noc-label",3,"value","checked"],["fxFlex","","formControlName","directness","fxLayout","column","fxLayoutAlign","start start"]],template:function(e,i){1&e&&(G(0,"form",0)(1,"div",1)(2,"span",2),he(3," Causal Relation Form"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," Close "),W()(),G(9,"div",5),Ve(10,mmt,22,10,"div",6),W(),G(11,"div",7),$e(12,"span",3),G(13,"button",8),it("click",function(){return i.deleteConnectorEdge()}),he(14,"Delete"),W()()()),2&e&&(oe("formGroup",i.connectorFormGroup),K(10),oe("ngIf",i.connectorFormGroup))},directives:[U2,Il,Lr,kr,al,Vr,Er,Mo,Fa,er,XO,E1,o2,vo,$O,PH],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 80px);padding-bottom:150px}[_nghost-%COMP%] .noc-radio-button-rounded[_ngcontent-%COMP%]{min-width:110px}[_nghost-%COMP%] .noc-connector-form[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:10px 0;border-bottom:rgba(59,89,152,.6) solid 1px;color:#000;font-size:12px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]{width:100%;padding:5px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-radio-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:rgba(59,89,152,.6) solid 1px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-border-0[_ngcontent-%COMP%]{border:none!important}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{width:100px;min-width:100px;max-width:100px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-label[_ngcontent-%COMP%]{width:170px;min-width:170px;max-width:170px}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint[_ngcontent-%COMP%]{margin-left:12px;font-size:12px;max-width:300px;color:#676767;font-style:italic}[_nghost-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-hint.noc-sm[_ngcontent-%COMP%]{max-width:260px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%]{width:600px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%]{margin-bottom:12px;width:100%;padding:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;background-color:#fff;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-activity-header[_ngcontent-%COMP%]{padding-bottom:12px;font-size:14px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-activity-list[_ngcontent-%COMP%] .noc-activity-connector-box[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-graph-preview[_ngcontent-%COMP%]{height:100px;width:100%}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%]{width:100%;background-color:#dfe3ee99}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{padding-left:0;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-left:0;height:40px;background-color:transparent}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:0;font-size:12px;text-transform:uppercase;color:#3b5998}[_nghost-%COMP%] .noc-connector-form-notes[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%]{padding:20px 0}[_nghost-%COMP%] .noc-note[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{padding-left:10px;font-size:12px}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%]{color:#bbb}[_nghost-%COMP%] .noc-note.noc-note-disabled[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ccc}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{width:200px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:move;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-header[_ngcontent-%COMP%]{padding:4px;height:30px;min-height:30px;max-height:30px;width:100%;border-bottom:rgba(59,89,152,.6) solid 1px;font-size:14px;color:#777}[_nghost-%COMP%] .noc-activity-box[_ngcontent-%COMP%] .noc-activity-box-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;padding:4px;font-size:12px;width:100%;border-bottom:#bbb solid 1px;overflow:hidden}[_nghost-%COMP%] .noc-activity-box.noc-sm[_ngcontent-%COMP%]{width:200px;height:100px;font-size:12px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%]{height:180px;min-height:180px;max-height:180px}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:8px;width:180px;min-width:180px;max-width:180px;height:110px;min-height:110px;max-height:110px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;text-align:center;z-index:4;border:1px solid #2e6f9a;opacity:1;cursor:initial;background-color:#fff}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{padding:4px;height:55px;min-height:55px;max-height:55px;font-size:10px;text-align:center;border-bottom:2px solid #2e6f9a}[_nghost-%COMP%] .noc-triple[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{color:#2e6f9a;margin-top:40px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%]{height:120px;min-height:120px;max-height:120px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-activity-box[_ngcontent-%COMP%]{padding:4px;width:150px;min-width:150px;max-width:150px;height:100px;min-height:100px;max-height:100px;font-size:10px}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{height:50px;min-height:50px;max-height:50px;border-bottom:1px solid #2e6f9a}[_nghost-%COMP%] .noc-triple.noc-sm[_ngcontent-%COMP%] .noc-arrow[_ngcontent-%COMP%]{margin-top:35px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;background-color:#eee;border-bottom:#ccc solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px;width:40px;min-width:40px;max-width:40px;line-height:40px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-summary-row[_ngcontent-%COMP%]{height:150px;min-height:150px;max-height:150px;background-color:#f5f5f5;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}']}),t})();function vmt(t,n){1&t&&(G(0,"form",7)(1,"h2"),he(2,"Columns"),W(),G(3,"mat-checkbox",8),he(4,"Show Aspect "),W(),G(5,"mat-checkbox",9),he(6,"Show Is Extension "),W(),G(7,"mat-checkbox",10),he(8,"Show Evidence "),W(),G(9,"mat-checkbox",11),he(10,"Show Evidence Code "),W(),G(11,"mat-checkbox",12),he(12,"Show Reference "),W(),G(13,"mat-checkbox",13),he(14,"Show With/From "),W(),G(15,"mat-checkbox",14),he(16,"Show Group "),W(),G(17,"mat-checkbox",15),he(18,"Show Contributor "),W()()),2&t&&oe("formGroup",He().settingsForm)}let Cmt=(()=>{class t{constructor(e,i,r,o,a){this.camService=e,this.noctuaCommonMenuService=i,this.noctuaUserService=r,this.noctuaFormConfigService=o,this.noctuaActivityFormService=a,this.displayedColumns=["category","count"],this._unsubscribeAll=new z}ngOnInit(){this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.settings=e,this.settingsForm=this.settings.createSettingsForm(),this._onValueChanges())})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}createSettingsForm(e){}populateSettings(e){this.settings.populateSettings(e),this.noctuaCommonMenuService.onCamSettingsChanged.next(this.settings)}_onValueChanges(){const e=this;this.settingsForm.valueChanges.pipe(ns(),Ls(400),Ln(this._unsubscribeAll)).subscribe(i=>{e.populateSettings(i)})}close(){this.panelDrawer.close()}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de($c),de(uo),de(lr),de(ps))},t.\u0275cmp=En({type:t,selectors:[["noc-graph-settings"]],inputs:{panelDrawer:"panelDrawer"},decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["fxLayout","column","fxLayoutAlign","start stretch","name","settingsForm",3,"formGroup",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","name","settingsForm",3,"formGroup"],["formControlName","showAspect","color","primary",1,"noc-checkbox"],["formControlName","showIsExtension","color","primary",1,"noc-checkbox"],["formControlName","showEvidence","color","primary",1,"noc-checkbox"],["formControlName","showEvidenceCode","color","primary",1,"noc-checkbox"],["formControlName","showReference","color","primary",1,"noc-checkbox"],["formControlName","showWith","color","primary",1,"noc-checkbox"],["formControlName","showGroup","color","primary",1,"noc-checkbox"],["formControlName","showContributor","color","primary",1,"noc-checkbox"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Graph Settings"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," CLOSE "),W()(),G(9,"div",5),Ve(10,vmt,19,1,"form",6),W()()),2&e&&(K(10),oe("ngIf",i.settingsForm))},directives:[Lr,kr,Vr,Er,Mo,Fa,er,U2,Il,al,Zf,E1,o2],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:520px;min-width:520px;max-width:520px}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:30px;min-height:30px;max-height:30px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{border-top:#888 solid 1px;padding:24px 12px 100px;min-height:calc(100% - 80px)}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}'],data:{animation:dc}}),t})();const bmt=["leftDrawer"],xmt=["rightDrawer"],PV=function(t){return{"noc-active":t}},ymt=function(){return["fas","sitemap"]},wmt=function(){return["fas","table"]},Mmt=function(){return["fas","list"]};function Omt(t,n){if(1&t){const e=Nn();G(0,"div",21)(1,"button",22),it("click",function(){return Ut(e),He().openGraph()}),$e(2,"fa-icon",23),W(),G(3,"button",22),it("click",function(){return Ut(e),He().openTable()}),$e(4,"fa-icon",23),W(),G(5,"button",22),it("click",function(){return Ut(e),He().openTable()}),$e(6,"fa-icon",23),W()()}if(2&t){const e=He();K(1),oe("ngClass",Pr(12,PV,e.noctuaCommonMenuService.selectedMiddlePanel===e.MiddlePanel.camGraph))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(14,ymt)),K(1),oe("ngClass",Pr(15,PV,e.noctuaCommonMenuService.selectedMiddlePanel===e.MiddlePanel.camTable))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(17,wmt)),K(1),oe("ngClass",Pr(18,PV,e.noctuaCommonMenuService.selectedMiddlePanel===e.MiddlePanel.camTable))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(20,Mmt))}}function Smt(t,n){1&t&&(G(0,"div",24),he(1," Not Logged In: You can only view existing annotations "),W())}function Pmt(t,n){1&t&&$e(0,"noc-cam-form",25),2&t&&(He(),oe("panelDrawer",Di(7)))}function Emt(t,n){1&t&&$e(0,"noc-activity-form",25),2&t&&(He(),oe("panelDrawer",Di(7)))}function Tmt(t,n){1&t&&$e(0,"noc-copy-model",26),2&t&&(He(),oe("panelDrawer",Di(7))("panelSide","left"))}function Amt(t,n){if(1&t&&$e(0,"noc-cam-table",4),2&t){const e=He();oe("cam",e.cam)("options",e.noctuaFormOptions)}}function Dmt(t,n){1&t&&$e(0,"noc-cam-graph",27),2&t&&oe("cam",He().cam)}const Lmt=function(t){return{width:t}};function kmt(t,n){if(1&t&&$e(0,"noc-cam-table",28),2&t){const e=He(),i=Di(17);oe("ngStyle",Pr(4,Lmt,e.tableWidth))("panelDrawer",i)("cam",e.cam)("options",e.tableOptions)}}function Imt(t,n){if(1&t&&$e(0,"noc-graph-activity-table",29),2&t){const e=He();oe("panelDrawer",Di(17))("options",e.tableOptions)("cam",e.cam)}}function Nmt(t,n){if(1&t&&$e(0,"noc-activity-connector-table",30),2&t){const e=He();oe("panelDrawer",Di(17))("cam",e.cam)}}function Rmt(t,n){1&t&&$e(0,"noc-graph-settings",25),2&t&&(He(),oe("panelDrawer",Di(17)))}const zmt=[{path:"",component:(()=>{class t{constructor(e,i,r,o,a,c,u,f){this.route=e,this.camService=i,this.noctuaActivityFormService=r,this.noctuaReviewSearchService=o,this.noctuaFormConfigService=a,this.noctuaCommonMenuService=c,this.noctuaUserService=u,this.noctuaSearchService=f,this.tableWidth="550px",this.loadingSpinner={color:"primary",mode:"indeterminate"},this.ActivityType=Wi,this.ReviewMode=Fc,this.LeftPanel=$2,this.MiddlePanel=Bu,this.RightPanel=_3,this.artBasket=new P_,this.searchResults=[],this.modelId="",this.searchCriteria={},this.searchFormData=[],this.cams=[],this.camToolbarOptions={showCreateButton:!1},this.tableOptions={displayType:ru.SLIM_TREE,slimViewer:!0,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0,showMenu:!0},this.noctuaFormOptions={displayType:ru.TREE,slimViewer:!1,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0,showMenu:!0},this.scrollbarConfig={suppressScrollX:!0},this._unsubscribeAll=new z,this.route.queryParams.pipe(Ln(this._unsubscribeAll)).subscribe(w=>{this.modelId=w.model_id||null,this.noctuaUserService.getUser(w.barista_token||null)}),this.noctuaUserService.onUserChanged.pipe(ns(this.noctuaUserService.distinctUser),Ln(this._unsubscribeAll)).subscribe(w=>{this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.loadCam(this.modelId)})}ngOnInit(){this.noctuaCommonMenuService.selectedMiddlePanel=Bu.camGraph,this.noctuaCommonMenuService.setLeftDrawer(this.leftDrawer),this.noctuaCommonMenuService.setRightDrawer(this.rightDrawer),this.noctuaCommonMenuService.onCamSettingsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.settings=e,this.tableWidth=this.getTableWidth(e))})}ngAfterViewInit(){this.noctuaCommonMenuService.resultsViewScrollbar=this.scrollbarRef}loadCam(e){this.cam=this.camService.getCam(e)}openGraph(){this.noctuaCommonMenuService.closeLeftDrawer(),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Bu.camGraph)}openTable(){this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.selectMiddlePanel(Bu.camTable)}openPreview(){this.noctuaCommonMenuService.selectMiddlePanel(Bu.camPreview)}openLeftDrawer(e){this.noctuaCommonMenuService.selectLeftPanel(e)}selectMiddlePanel(e){this.noctuaCommonMenuService.selectMiddlePanel(e)}openRightDrawer(e){this.noctuaCommonMenuService.selectRightPanel(e),this.noctuaCommonMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaCommonMenuService.toggleLeftDrawer(e)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openSettings(){this.openRightDrawer(_3.graphSettings)}getTableWidth(e){let i=500;return e.showEvidence&&(i+=e.showEvidenceCode?150:0,i+=e.showReference?100:0,i+=e.showWith?100:0,i+=e.showGroup?100:0,i+=e.showContributor?100:0),i+"px"}search(){this.noctuaSearchService.search(this.searchForm.value)}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}openCamForm(){this.camService.initializeForm(this.cam),this.noctuaCommonMenuService.selectLeftPanel($2.camForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openActivityForm(e){this.noctuaActivityFormService.setActivityType(e),this.noctuaCommonMenuService.selectLeftPanel($2.activityForm),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}openCopyModel(){this.noctuaCommonMenuService.selectLeftPanel($2.copyModel),this.noctuaCommonMenuService.closeRightDrawer(),this.noctuaCommonMenuService.openLeftDrawer()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Tu),de(Zo),de(ps),de(z1),de(lr),de($c),de(uo),de(R1))},t.\u0275cmp=En({type:t,selectors:[["noc-noctua-graph"]],viewQuery:function(e,i){if(1&e&&(fr(bmt,7),fr(xmt,7),fr(d4,5)),2&e){let r;hi(r=pi())&&(i.leftDrawer=r.first),hi(r=pi())&&(i.rightDrawer=r.first),hi(r=pi())&&(i.scrollbarRef=r.first)}},decls:24,vars:18,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["class","noc-sidemenu","fxLayout","column","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"w-100-p","h-100-p"],["class","noc-not-loggedin","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[3,"cam","options"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start","autosize","",1,"h-100-p",3,"hasBackdrop"],["mode","side","position","start","opened","",1,"noc-left-drawer"],["leftDrawer",""],[1,"h-100-p",3,"ngSwitch"],[3,"panelDrawer",4,"ngSwitchCase"],[3,"panelDrawer","panelSide",4,"ngSwitchCase"],["noctuaPerfectScrollbar","",1,"w-100-p","h-100-p",3,"ngSwitch"],[3,"cam","options",4,"ngSwitchCase"],[3,"cam",4,"ngSwitchCase"],["mode","over","position","end",1,"noc-right-drawer"],["rightDrawer",""],[1,"h-100-p",3,"ngSwitch","perfectScrollbar"],["scrollbarRef",""],[3,"ngStyle","panelDrawer","cam","options",4,"ngSwitchCase"],[3,"panelDrawer","options","cam",4,"ngSwitchCase"],[3,"panelDrawer","cam",4,"ngSwitchCase"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-icon-button","","color","","matTooltip","Filter",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],[3,"icon"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-not-loggedin"],[3,"panelDrawer"],[3,"panelDrawer","panelSide"],[3,"cam"],[3,"ngStyle","panelDrawer","cam","options"],[3,"panelDrawer","options","cam"],[3,"panelDrawer","cam"]],template:function(e,i){1&e&&(G(0,"div",0),Ve(1,Omt,7,21,"div",1),G(2,"div",2),Ve(3,Smt,2,0,"div",3),$e(4,"noc-cam-toolbar",4),G(5,"mat-drawer-container",5)(6,"mat-drawer",6,7)(8,"div",8),Ve(9,Pmt,1,1,"noc-cam-form",9),Ve(10,Emt,1,1,"noc-activity-form",9),Ve(11,Tmt,1,2,"noc-copy-model",10),W()(),G(12,"mat-drawer-content",2)(13,"div",11),Ve(14,Amt,1,2,"noc-cam-table",12),Ve(15,Dmt,1,1,"noc-cam-graph",13),W()(),G(16,"mat-drawer",14,15)(18,"div",16,17),Ve(20,kmt,1,6,"noc-cam-table",18),Ve(21,Imt,1,3,"noc-graph-activity-table",19),Ve(22,Nmt,1,2,"noc-activity-connector-table",20),Ve(23,Rmt,1,1,"noc-graph-settings",9),W()()()()()),2&e&&(K(1),oe("ngIf",!1),K(2),oe("ngIf",!i.noctuaUserService.user),K(1),oe("cam",i.cam)("options",i.camToolbarOptions),K(1),oe("hasBackdrop",!1),K(3),oe("ngSwitch",i.noctuaCommonMenuService.selectedLeftPanel),K(1),oe("ngSwitchCase",i.LeftPanel.camForm),K(1),oe("ngSwitchCase",i.LeftPanel.activityForm),K(1),oe("ngSwitchCase",i.LeftPanel.copyModel),K(2),oe("ngSwitch",i.noctuaCommonMenuService.selectedMiddlePanel),K(1),oe("ngSwitchCase",i.MiddlePanel.camTable),K(1),oe("ngSwitchCase",i.MiddlePanel.camGraph),K(3),oe("ngSwitch",i.noctuaCommonMenuService.selectedRightPanel)("perfectScrollbar",i.scrollbarConfig),K(2),oe("ngSwitchCase",i.RightPanel.camTable),K(1),oe("ngSwitchCase",i.RightPanel.activityTable),K(1),oe("ngSwitchCase",i.RightPanel.activityConnectorTable),K(1),oe("ngSwitchCase",i.RightPanel.graphSettings))},directives:[Lr,kr,er,Er,Jl,Qa,ec,ks,Kle,Jg,Vr,Zg,V2,Ou,DF,BP,LF,Xp,Fa,QC,omt,d4,_6,zte,smt,_mt,Cmt],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] noc-cam-table[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] noc-activity-connector[_ngcontent-%COMP%]{display:block;width:600px;min-width:600px;max-width:600px}[_nghost-%COMP%] noc-graph-settings[_ngcontent-%COMP%]{display:block;width:500px;min-width:500px;max-width:500px}[_nghost-%COMP%] noc-graph-activity-table[_ngcontent-%COMP%]{display:block;min-width:400px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-not-loggedin[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#e5c2c2;font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{margin-bottom:4px;padding:0 10px;height:40px;min-height:40px;max-height:40px;width:100%;background-color:#fff;font-size:12px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:250px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]{font-size:18px;color:#5872a7}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toolbar-button[_ngcontent-%COMP%]:hover{font-size:20px;color:#3b5998}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ddd solid 1px;background-color:#ddd3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]{font-size:10px;background-color:transparent}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon-action[_ngcontent-%COMP%]:hover{font-size:14px;color:#222;background-color:#0003}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#aee9f5 solid 1px;background-color:#aee9f533}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#aee9f5}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;margin-right:5px;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;min-width:28px;max-width:28px;height:28px;min-height:28px;max-height:28px;color:#798fb84d}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#555}[_nghost-%COMP%] .noc-form-container[_ngcontent-%COMP%]{background-color:#eee;padding:20px 10px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}'],data:{animation:dc}}),t})()}];let $2e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[A1,Cv,ta,G2.forChild(zmt),Qf,Zp,eb,RC,Fm]]}),t})();const qm=PC||d$e,Q2e=new jn("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function Fmt(){return{useUtc:!1}}});function Hmt(t,n){const e=Array(t);for(let i=0;i{class t extends Ll{constructor(e,i){super(),this._options=i,this.setLocale(e||qm.locale())}setLocale(e){super.setLocale(e);let i=qm.localeData(e);this._localeData={firstDayOfWeek:i.firstDayOfWeek(),longMonths:i.months(),shortMonths:i.monthsShort(),dates:Hmt(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:i.weekdays(),shortDaysOfWeek:i.weekdaysShort(),narrowDaysOfWeek:i.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,i,r){const o=this._createMoment({year:e,month:i,date:r}).locale(this.locale);return o.isValid(),o}today(){return this._createMoment().locale(this.locale)}parse(e,i){return e&&"string"==typeof e?this._createMoment(e,i,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,i){return e=this.clone(e),this.isValid(e),e.format(i)}addCalendarYears(e,i){return this.clone(e).add({years:i})}addCalendarMonths(e,i){return this.clone(e).add({months:i})}addCalendarDays(e,i){return this.clone(e).add({days:i})}toIso8601(e){return this.clone(e).format()}deserialize(e){let i;if(e instanceof Date)i=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;i=this._createMoment(e,qm.ISO_8601).locale(this.locale)}return i&&this.isValid(i)?this._createMoment(i).locale(this.locale):super.deserialize(e)}isDateInstance(e){return qm.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return qm.invalid()}_createMoment(e,i,r){const{strict:o,useUtc:a}=this._options||{};return a?qm.utc(e,i,r,o):qm(e,i,r,o)}}return t.\u0275fac=function(e){return new(e||t)(Rt(hN,8),Rt(Q2e,8))},t.\u0275prov=yt({token:t,factory:t.\u0275fac}),t})();const Bmt=["searchInput"];function Gmt(t,n){if(1&t){const e=Nn();G(0,"mat-chip",65),it("removed",function(){const o=Ut(e).$implicit,a=He();return a.remove(o,a.SearchFilterType.terms)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;Np("matTooltip","Term: ",e.label," (",e.id,")"),oe("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.label," ")}}function Ymt(t,n){if(1&t&&(G(0,"mat-option",68)(1,"div",69)(2,"div",70),he(3),W(),$e(4,"span",3),G(5,"div",71),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(3),Ft(" ",e.id," ")}}function Umt(t,n){if(1&t){const e=Nn();G(0,"mat-chip",65),it("removed",function(){const o=Ut(e).$implicit,a=He();return a.remove(o,a.SearchFilterType.obsoleteTerms)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;Np("matTooltip","Term: ",e.label," (",e.id,")"),oe("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.label," ")}}function jmt(t,n){if(1&t&&(G(0,"mat-option",68)(1,"div",69)(2,"div",70),he(3),W(),$e(4,"span",3),G(5,"div",71),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(3),Ft(" ",e.id," ")}}function Wmt(t,n){if(1&t){const e=Nn();G(0,"mat-chip",65),it("removed",function(){const o=Ut(e).$implicit,a=He();return a.remove(o,a.SearchFilterType.gps)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;Np("matTooltip","Term: ",e.label," (",e.id,")"),oe("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.label," ")}}function qmt(t,n){if(1&t&&(G(0,"mat-option",68)(1,"div",69)(2,"div",70),he(3),W(),$e(4,"span",3),G(5,"div",71),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(3),Ft(" ",e.id," ")}}function Xmt(t,n){if(1&t){const e=Nn();G(0,"mat-chip",65),it("removed",function(){const o=Ut(e).$implicit,a=He();return a.remove(o,a.SearchFilterType.pmids)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;Tf("matTooltip","Reference: ",e,""),oe("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e," ")}}function $mt(t,n){if(1&t){const e=Nn();G(0,"mat-chip",65),it("removed",function(){const o=Ut(e).$implicit,a=He();return a.remove(o,a.SearchFilterType.organisms)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;Np("matTooltip","Species: ",e.taxonName," (",e.taxonIri,")"),oe("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.taxonName," ")}}function Qmt(t,n){if(1&t&&(G(0,"mat-option",68)(1,"div",69)(2,"div",70),he(3),W(),$e(4,"span",3),G(5,"div",71),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.taxonName," "),K(3),Ft(" ",e.taxonId," ")}}function Kmt(t,n){if(1&t){const e=Nn();G(0,"mat-chip",65),it("removed",function(){const o=Ut(e).$implicit,a=He();return a.remove(o,a.SearchFilterType.contributors)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;Np("matTooltip","Contributor: ",e.name," (",e.orcid,")"),oe("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.name," ")}}function Zmt(t,n){if(1&t&&(G(0,"mat-option",68)(1,"div",69)(2,"div",70),he(3),W(),$e(4,"span",3),G(5,"div",71),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.name," "),K(3),Ft(" ",e.orcid," ")}}function Jmt(t,n){if(1&t){const e=Nn();G(0,"mat-chip",65),it("removed",function(){const o=Ut(e).$implicit,a=He();return a.remove(o,a.SearchFilterType.groups)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;Np("matTooltip","Term: ",e.name," (",e.url,")"),oe("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e.name," ")}}function e5t(t,n){if(1&t&&(G(0,"mat-option",68)(1,"div",69)(2,"div",70),he(3),W(),$e(4,"span",3),G(5,"div",71),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.name," "),K(3),Ft(" ",e.url," ")}}function t5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",77),it("removed",function(){const o=Ut(e).$implicit,a=He(2);return a.remove(o,a.SearchFilterType.exactdates)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;oe("selectable",!0)("removable",!0),K(2),Ft(" ",e," ")}}function n5t(t,n){if(1&t){const e=Nn();G(0,"mat-form-field",12)(1,"mat-label"),he(2,"Filter by Exact Date"),W(),G(3,"mat-chip-list",null,72),Ve(5,t5t,5,3,"mat-chip",54),G(6,"input",73,74),it("matChipInputTokenEnd",function(r){Ut(e);const o=He();return o.add(r,o.SearchFilterType.exactdates)}),W()(),$e(9,"mat-datepicker-toggle",75)(10,"mat-datepicker",null,76),W()}if(2&t){const e=Di(4),i=Di(11),r=He();K(5),oe("ngForOf",r.noctuaSearchService.searchCriteria.exactdates),K(1),oe("matDatepicker",i)("matChipInputFor",e)("matChipInputSeparatorKeyCodes",r.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(3),oe("for",i)}}function i5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",77),it("removed",function(){const o=Ut(e).$implicit,a=He(2);return a.remove(o,a.SearchFilterType.startdates)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;oe("selectable",!0)("removable",!0),K(2),Ft(" ",e," ")}}function r5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",77),it("removed",function(){const o=Ut(e).$implicit,a=He(2);return a.remove(o,a.SearchFilterType.enddates)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;oe("selectable",!0)("removable",!0),K(2),Ft(" ",e," ")}}function o5t(t,n){if(1&t){const e=Nn();G(0,"div",78)(1,"mat-form-field",79)(2,"mat-label"),he(3,"Start Date"),W(),G(4,"mat-chip-list",null,80),Ve(6,i5t,5,3,"mat-chip",54),G(7,"input",81,74),it("matChipInputTokenEnd",function(r){Ut(e);const o=He();return o.add(r,o.SearchFilterType.startdates)}),W()(),$e(10,"mat-datepicker-toggle",75)(11,"mat-datepicker",null,82),W(),G(13,"mat-form-field",79)(14,"mat-label"),he(15,"End Date"),W(),G(16,"mat-chip-list",null,72),Ve(18,r5t,5,3,"mat-chip",54),G(19,"input",83,74),it("matChipInputTokenEnd",function(r){Ut(e);const o=He();return o.add(r,o.SearchFilterType.enddates)}),W()(),$e(22,"mat-datepicker-toggle",75)(23,"mat-datepicker",null,84),W()()}if(2&t){const e=Di(5),i=Di(12),r=Di(17),o=Di(24),a=He();K(6),oe("ngForOf",a.noctuaSearchService.searchCriteria.startdates),K(1),oe("matDatepicker",i)("matChipInputFor",e)("matChipInputSeparatorKeyCodes",a.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(3),oe("for",i),K(8),oe("ngForOf",a.noctuaSearchService.searchCriteria.enddates),K(1),oe("matDatepicker",o)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",a.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(3),oe("for",o)}}function a5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",65),it("removed",function(){const o=Ut(e).$implicit,a=He();return a.remove(o,a.SearchFilterType.ids)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;Tf("matTooltip","Keyword: ",e,""),oe("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e," ")}}function s5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",65),it("removed",function(){const o=Ut(e).$implicit,a=He();return a.remove(o,a.SearchFilterType.titles)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;Tf("matTooltip","Keyword: ",e,""),oe("selectable",!0)("removable",!0)("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),Ft(" ",e," ")}}function c5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",77),it("removed",function(){const o=Ut(e).$implicit,a=He();return a.remove(o,a.SearchFilterType.states)}),G(1,"div",66),he(2),W(),G(3,"mat-icon",67),he(4,"cancel"),W()()}if(2&t){const e=n.$implicit;oe("selectable",!0)("removable",!0),K(2),Ft(" ",e.name," ")}}function l5t(t,n){if(1&t&&(G(0,"mat-option",68)(1,"div",69)(2,"div",70),he(3),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," ")}}oP();const d5t={parse:{dateInput:"YYYY-MM-DD"},display:{dateInput:"YYYY-MM-DD",monthYearLabel:"MMMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let u5t=(()=>{class t{constructor(e,i,r,o,a,c,u,f){this.noctuaDataService=e,this.noctuaUserService=i,this.confirmDialogService=r,this.inlineReferenceService=o,this.noctuaSearchMenuService=a,this.noctuaFormConfigService=c,this.noctuaLookupService=u,this.noctuaSearchService=f,this.SearchFilterType=I1,this.searchCriteria={},this.isDateRange=!1,this.selectedOrganism={},this.searchFormData=[],this.cams=[],this.separatorKeysCodes=[13,188],this.selectedContributors=[],this.gpNode=Vu([Fl]),this.termNode=Vu([ul,D1,UXe,MC,p3,m_,iP]),this.obsoleteTermNode=Vu([YXe]),this._unsubscribeAll=new z,this.filterForm=this.createAnswerForm(),this._onValueChanges()}ngOnInit(){this.noctuaDataService.onOrganismsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&(this.noctuaSearchService.organisms=e,this._onValueOrganismChanges())})}createAnswerForm(){return new r2({ids:new br,gps:new br,obsoleteTerms:new br,terms:new br,pmids:new br,contributors:new br,groups:new br,organisms:new br,titles:new br,states:new br,exactdates:new br,startdates:new br,enddates:new br,isDateRange:new br,exactTerm:new br})}termDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}evidenceDisplayFn(e){return e&&e.id?`${e.label} (${e.id})`:void 0}contributorDisplayFn(e){return e?e.name:void 0}groupDisplayFn(e){return e?e.name:void 0}organismDisplayFn(e){return e?e.taxonName:void 0}stateDisplayFn(e){return e?e.name:void 0}close(){this.noctuaSearchMenuService.closeLeftDrawer()}clear(){this.noctuaSearchService.clearSearchCriteria(),this.searchInput.forEach(e=>{e.nativeElement.value=null})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}add(e,i,r=10){const o=e.input,a=e.value;this.noctuaSearchService.searchCriteria[i].length>=r?this.confirmDialogService.openInfoToast(`Reached maximum number of ${i} filters allowed`,"OK"):(a||"").trim()&&(this.noctuaSearchService.searchCriteria[i].push(i===this.SearchFilterType.ids?Rh.cleanModelId(a.trim()):a.trim()),this.noctuaSearchService.updateSearch(!0),this.searchInput.forEach(c=>{c.nativeElement.value=null}),this.filterForm.controls[i].setValue("")),o&&(o.value="")}remove(e,i){const r=this.noctuaSearchService.searchCriteria[i].indexOf(e);r>=0&&(this.noctuaSearchService.searchCriteria[i].splice(r,1),this.noctuaSearchService.updateSearch())}selected(e,i){this.noctuaSearchService.searchCriteria[i].push(e.option.value),this.noctuaSearchService.updateSearch(),this.searchInput.forEach(r=>{r.nativeElement.value=null}),this.filterForm.controls[i].setValue("")}openAddReference(e,i){this.inlineReferenceService.open(e.target,{data:{formControl:this.filterForm.controls[i]}})}downloadFilter(){this.noctuaSearchService.downloadSearchConfig()}_onValueChanges(){const e=this,i=e.noctuaLookupService.lookupFunc();this.filterForm.get("terms").valueChanges.pipe(ns(),Ls(400)).subscribe(r=>{const o=e.termNode.termLookup;i.termLookup(r,o.requestParams).subscribe(a=>{o.results=a})}),this.filterForm.get("obsoleteTerms").valueChanges.pipe(ns(),Ls(400)).subscribe(r=>{const o=e.obsoleteTermNode.termLookup;i.termLookup(r,o.requestParams).subscribe(a=>{o.results=a})}),this.filterForm.get("gps").valueChanges.pipe(ns(),Ls(400)).subscribe(r=>{const o=e.gpNode.termLookup;i.termLookup(r,o.requestParams).subscribe(a=>{o.results=a})}),this.filterForm.get("isDateRange").valueChanges.pipe(ns(),Ls(400)).subscribe(r=>{this.isDateRange=r}),this.filterForm.get("exactTerm").valueChanges.pipe(ns(),Ls(400)).subscribe(r=>{this.noctuaSearchService.searchCriteria.expand=!r,this.noctuaSearchService.updateSearch()}),this.filteredContributors=this.filterForm.controls.contributors.valueChanges.pipe(Zs(""),Qe(r=>"string"==typeof r?r:r.name),Qe(r=>r?this.noctuaUserService.filterContributors(r):this.noctuaUserService.contributors.slice())),this.filteredGroups=this.filterForm.controls.groups.valueChanges.pipe(Zs(""),Qe(r=>"string"==typeof r?r:r.name),Qe(r=>r?this.noctuaUserService.filterGroups(r):this.noctuaUserService.groups.slice())),this.filteredStates=this.filterForm.controls.states.valueChanges.pipe(Zs(""),Qe(r=>"string"==typeof r?r:r.name),Qe(r=>r?this.noctuaSearchService.filterStates(r):this.noctuaSearchService.states.slice()))}_onValueOrganismChanges(){this.filteredOrganisms=this.filterForm.controls.organisms.valueChanges.pipe(Zs(""),Qe(i=>"string"==typeof i?i:i.short_name),Qe(i=>i?this.noctuaSearchService.filterOrganisms(i):this.noctuaSearchService.organisms.slice()))}onFileChange(e){const i=this;let r=new FileReader;if(e.target.files&&e.target.files.length){const[o]=e.target.files;r.readAsText(o),r.onload=()=>{try{let a=JSON.parse(r.result);i.noctuaSearchService.uploadSearchConfig(a)}catch(a){alert("invalid file")}}}}}return t.\u0275fac=function(e){return new(e||t)(de(E_),de(uo),de(Q2),de(KC),de(Hc),de(lr),de(X2),de(R1))},t.\u0275cmp=En({type:t,selectors:[["noc-search-filter"]],viewQuery:function(e,i){if(1&e&&fr(Bmt,5),2&e){let r;hi(r=pi())&&(i.searchInput=r)}},features:[Ki([{provide:Ll,useClass:Vmt,deps:[hN,Q2e]},{provide:Uf,useValue:d5t}])],decls:177,vars:72,consts:[["fxLayout","column","fxLayoutAlign","start stretch","name","filterForm",1,"noc-drawer","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-filter-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-section-header"],[1,"noc-section-heading"],["formControlName","exactTerm","color","primary",1,"noc-checkbox"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body"],["fxLayout","column",1,"noc-activity-group-row"],["appearance","outline",1,"noc-sm","w-100-p"],["termChipList",""],["class","noc-form-chip","fxLayout","row","fxLayoutAlign","start center",3,"selectable","removable","matTooltip","matTooltipPosition","matTooltipShowDelay","removed",4,"ngFor","ngForOf"],["formControlName","terms","placeholder","Add Term Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput",""],[1,"noc-term-autocomplete",3,"displayWith","optionSelected"],["termAuto","matAutocomplete"],["class","noc-term-autocomplete",3,"value",4,"ngFor","ngForOf"],["obsoleteTermChipList",""],["formControlName","obsoleteTerms","placeholder","Add Obsolete Term Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["obsoleteTermAuto","matAutocomplete"],["gpChipList",""],["formControlName","gps","placeholder","Add GP Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","gpInput",""],["gpAuto","matAutocomplete"],["pmidChipList",""],["formControlName","pmids","placeholder","Add PMID Filter",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","pmidInput",""],["mat-icon-button","","matSuffix","",1,"noc-evidence-db-trigger",3,"click"],["organismChipList",""],["formControlName","organisms","placeholder","Add Organism Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","organismInput",""],["organismAuto","matAutocomplete"],["contributorChipList",""],["formControlName","contributors","placeholder","Add Contributor Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","contributorInput",""],["contributorAuto","matAutocomplete"],["groupChipList",""],["formControlName","groups","placeholder","Add Group Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","groupInput",""],["groupAuto","matAutocomplete"],["formControlName","isDateRange","color","primary",1,"noc-checkbox"],["appearance","outline","class","noc-sm w-100-p",4,"ngIf"],["class","noc-sm w-100-p","fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["idChipList",""],["formControlName","ids","placeholder","Add Model Id Filter",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","idInput",""],["titleChipList",""],["formControlName","titles","placeholder","Add Title Filter (only one allowed)",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","titleInput",""],["fxLayout","column",1,"noc-activity-state-row"],["stateChipList",""],["class","noc-form-chip","fxLayout","row","fxLayoutAlign","start center",3,"selectable","removable","removed",4,"ngFor","ngForOf"],["formControlName","states","placeholder","Add State Filter",3,"matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],["searchInput","","stateInput",""],["stateAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["for","noc-upload-filter","fxLayout","row","fxLayoutAlign","start center",1,"noc-file-upload"],["mat-icon-button","",1,"noc-file-button"],[1,"s-16","mr-4"],["type","file","id","noc-upload-filter",1,"noc-file-upload",3,"change"],["type","button","mat-icon-button","",3,"click"],["type","button","mat-raised-button","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-form-chip",3,"selectable","removable","matTooltip","matTooltipPosition","matTooltipShowDelay","removed"],["fxFlex","",1,"noc-chip-label"],["matChipRemove",""],[1,"noc-term-autocomplete",3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"],["dateChipList",""],["formControlName","exactdates","placeholder","Add Exact Date Filter",3,"matDatepicker","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["searchInput","","dateInput",""],["matSuffix","",3,"for"],["exactDatePicker",""],["fxLayout","row","fxLayoutAlign","start center",1,"noc-form-chip",3,"selectable","removable","removed"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-sm","w-100-p"],["appearance","outline",1,"noc-sm"],["startDateChipList",""],["formControlName","startdates","placeholder","Start Date",3,"matDatepicker","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["startDatePicker",""],["formControlName","enddates","placeholder","End Date",3,"matDatepicker","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["endDatePicker",""]],template:function(e,i){if(1&e&&(G(0,"form",0)(1,"div",1)(2,"span",2),he(3," Filter By"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," CLOSE "),W()(),G(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),he(13," Annotations "),W(),$e(14,"span",3),G(15,"mat-checkbox",9),he(16,"Exact Term "),W()(),G(17,"div",10)(18,"div",11)(19,"mat-form-field",12)(20,"mat-label"),he(21,"Filter by Term"),W(),G(22,"mat-chip-list",null,13),Ve(24,Gmt,5,7,"mat-chip",14),$e(25,"input",15,16),W(),G(27,"mat-autocomplete",17,18),it("optionSelected",function(o){return i.selected(o,i.SearchFilterType.terms)}),Ve(29,Ymt,7,3,"mat-option",19),W()()(),G(30,"div",11)(31,"mat-form-field",12)(32,"mat-label"),he(33,"Filter by Obsolete Term"),W(),G(34,"mat-chip-list",null,20),Ve(36,Umt,5,7,"mat-chip",14),$e(37,"input",21,16),W(),G(39,"mat-autocomplete",17,22),it("optionSelected",function(o){return i.selected(o,i.SearchFilterType.obsoleteTerms)}),Ve(41,jmt,7,3,"mat-option",19),W()()(),G(42,"div",11)(43,"mat-form-field",12)(44,"mat-label"),he(45,"Filter by Gene Product"),W(),G(46,"mat-chip-list",null,23),Ve(48,Wmt,5,7,"mat-chip",14),$e(49,"input",24,25),W(),G(52,"mat-autocomplete",17,26),it("optionSelected",function(o){return i.selected(o,i.SearchFilterType.gps)}),Ve(54,qmt,7,3,"mat-option",19),W()()(),G(55,"div",11)(56,"mat-form-field",12)(57,"mat-label"),he(58,"Filter by Reference"),W(),G(59,"mat-chip-list",null,27),Ve(61,Xmt,5,6,"mat-chip",14),G(62,"input",28,29),it("matChipInputTokenEnd",function(o){return i.add(o,i.SearchFilterType.pmids)}),W(),G(65,"button",30),it("click",function(o){return i.openAddReference(o,"pmids")}),G(66,"mat-icon"),he(67,"playlist_add"),W()()()()(),G(68,"div",11)(69,"mat-form-field",12)(70,"mat-chip-list",null,31),Ve(72,$mt,5,7,"mat-chip",14),$e(73,"input",32,33),W(),G(76,"mat-autocomplete",17,34),it("optionSelected",function(o){return i.selected(o,i.SearchFilterType.organisms)}),Ve(78,Qmt,7,3,"mat-option",19),E0(79,"async"),W()()()()(),G(80,"div",6)(81,"div",7)(82,"div",8),he(83," Contributor "),W(),$e(84,"span",3),W(),G(85,"div",10)(86,"div",11)(87,"mat-form-field",12)(88,"mat-label"),he(89,"Filter by Contributor"),W(),G(90,"mat-chip-list",null,35),Ve(92,Kmt,5,7,"mat-chip",14),$e(93,"input",36,37),W(),G(96,"mat-autocomplete",17,38),it("optionSelected",function(o){return i.selected(o,i.SearchFilterType.contributors)}),Ve(98,Zmt,7,3,"mat-option",19),E0(99,"async"),W()()(),G(100,"div",11)(101,"mat-form-field",12)(102,"mat-label"),he(103,"Filter by Group"),W(),G(104,"mat-chip-list",null,39),Ve(106,Jmt,5,7,"mat-chip",14),$e(107,"input",40,41),W(),G(110,"mat-autocomplete",17,42),it("optionSelected",function(o){return i.selected(o,i.SearchFilterType.groups)}),Ve(112,e5t,7,3,"mat-option",19),E0(113,"async"),W()()()()(),G(114,"div",6)(115,"div",7)(116,"div",8),he(117," Model Date "),W(),$e(118,"span",3),G(119,"mat-checkbox",43),he(120,"Date Range "),W()(),G(121,"div",10)(122,"div",11),Ve(123,n5t,12,6,"mat-form-field",44),Ve(124,o5t,25,12,"div",45),W()()(),G(125,"div",6)(126,"div",7)(127,"div",8),he(128," Model "),W(),$e(129,"span",3),W(),G(130,"div",10)(131,"div",11)(132,"mat-form-field",12)(133,"mat-label"),he(134,"Filter by Model Ids"),W(),G(135,"mat-chip-list",null,46),Ve(137,a5t,5,6,"mat-chip",14),G(138,"input",47,48),it("matChipInputTokenEnd",function(o){return i.add(o,i.SearchFilterType.ids)}),W()()()(),G(141,"div",11)(142,"mat-form-field",12)(143,"mat-label"),he(144,"Filter by Title"),W(),G(145,"mat-chip-list",null,49),Ve(147,s5t,5,6,"mat-chip",14),G(148,"input",50,51),it("matChipInputTokenEnd",function(o){return i.add(o,i.SearchFilterType.titles,1)}),W()()()(),G(151,"div",52)(152,"mat-form-field",12)(153,"mat-label"),he(154,"Filter by State"),W(),G(155,"mat-chip-list",null,53),Ve(157,c5t,5,3,"mat-chip",54),$e(158,"input",55,56),W(),G(161,"mat-autocomplete",17,57),it("optionSelected",function(o){return i.selected(o,i.SearchFilterType.states)}),Ve(163,l5t,4,2,"mat-option",19),E0(164,"async"),W()()()()()(),G(165,"div",58)(166,"label",59)(167,"button",60)(168,"mat-icon",61),he(169,"cloud_upload"),W()()(),G(170,"input",62),it("change",function(o){return i.onFileChange(o)}),W(),$e(171,"span",3),G(172,"button",63),it("click",function(){return i.downloadFilter()}),G(173,"mat-icon",61),he(174,"cloud_download"),W()(),G(175,"button",64),it("click",function(){return i.clear()}),he(176,"Clear"),W()()()),2&e){const r=Di(23),o=Di(28),a=Di(35),c=Di(40),u=Di(47),f=Di(53),w=Di(60),E=Di(71),B=Di(77),Z=Di(91),ee=Di(97),be=Di(105),_e=Di(111),Pe=Di(136),Ie=Di(146),ge=Di(156),Re=Di(162);oe("formGroup",i.filterForm),K(24),oe("ngForOf",i.noctuaSearchService.searchCriteria.terms),K(1),oe("matAutocomplete",o)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(2),oe("displayWith",i.termDisplayFn),K(2),oe("ngForOf",i.termNode.termLookup.results),K(7),oe("ngForOf",i.noctuaSearchService.searchCriteria.obsoleteTerms),K(1),oe("matAutocomplete",c)("matChipInputFor",a)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(2),oe("displayWith",i.termDisplayFn),K(2),oe("ngForOf",i.obsoleteTermNode.termLookup.results),K(7),oe("ngForOf",i.noctuaSearchService.searchCriteria.gps),K(1),oe("matAutocomplete",f)("matChipInputFor",u)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(3),oe("displayWith",i.termDisplayFn),K(2),oe("ngForOf",i.gpNode.termLookup.results),K(7),oe("ngForOf",i.noctuaSearchService.searchCriteria.pmids),K(1),oe("matChipInputFor",w)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(10),oe("ngForOf",i.noctuaSearchService.searchCriteria.organisms),K(1),oe("matAutocomplete",B)("matChipInputFor",E)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(3),oe("displayWith",i.organismDisplayFn),K(2),oe("ngForOf",Ng(79,64,i.filteredOrganisms)),K(14),oe("ngForOf",i.noctuaSearchService.searchCriteria.contributors),K(1),oe("matAutocomplete",ee)("matChipInputFor",Z)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(3),oe("displayWith",i.contributorDisplayFn),K(2),oe("ngForOf",Ng(99,66,i.filteredContributors)),K(8),oe("ngForOf",i.noctuaSearchService.searchCriteria.groups),K(1),oe("matAutocomplete",_e)("matChipInputFor",be)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(3),oe("displayWith",i.groupDisplayFn),K(2),oe("ngForOf",Ng(113,68,i.filteredGroups)),K(11),oe("ngIf",!i.isDateRange),K(1),oe("ngIf",i.isDateRange),K(13),oe("ngForOf",i.noctuaSearchService.searchCriteria.ids),K(1),oe("matChipInputFor",Pe)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(9),oe("ngForOf",i.noctuaSearchService.searchCriteria.titles),K(1),oe("matChipInputFor",Ie)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(9),oe("ngForOf",i.noctuaSearchService.searchCriteria.states),K(1),oe("matAutocomplete",Re)("matChipInputFor",ge)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes)("matChipInputAddOnBlur",!1),K(3),oe("displayWith",i.stateDisplayFn),K(2),oe("ngForOf",Ng(164,70,i.filteredStates))}},directives:[U2,Il,Lr,kr,al,Vr,Er,Mo,Fa,Zf,E1,o2,Jd,Ru,z6,vo,wd,Jl,WN,yd,Jp,Pee,Kf,xd,kv,er,eR,wNe,_Ne],pipes:[oM],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%;background-color:#fff}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-checkbox[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;line-height:20px}[_nghost-%COMP%] .noc-evidence-db-trigger[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%]{padding-bottom:200px}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding-right:12px;height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:16px 8px 0}[_nghost-%COMP%] .noc-filter-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%] .noc-activity-group-row[_ngcontent-%COMP%]{margin-bottom:8px}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%]{padding:0;height:20px;min-height:20px;max-height:20px;font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#777;font-size:14px}[_nghost-%COMP%] mat-chip.noc-form-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] input[type=file][_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] button[_ngcontent-%COMP%]{height:35px;min-height:35px;max-height:35px}[_nghost-%COMP%] button.noc-file-button[_ngcontent-%COMP%]{pointer-events:none}[_nghost-%COMP%] label[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .noc-file-upload-title[_ngcontent-%COMP%]{margin-left:4px;color:#888;font-weight:700}']}),t})();function h5t(t,n){if(1&t&&(G(0,"mat-option",22)(1,"div",23)(2,"div",24),he(3),W(),$e(4,"span",3),G(5,"div",25),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(3),Ft(" ",e.id," ")}}function p5t(t,n){if(1&t&&(G(0,"mat-option",22)(1,"div",23)(2,"div",24),he(3),W(),$e(4,"span",3),G(5,"div",25),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(3),Ft(" ",e.id," ")}}function f5t(t,n){if(1&t&&(G(0,"mat-option",22)(1,"div",23)(2,"div",24),he(3),W(),$e(4,"span",3),G(5,"div",25),he(6),W()()()),2&t){const e=n.$implicit;oe("value",e),K(3),Ft(" ",e.label," "),K(3),Ft(" ",e.id," ")}}function g5t(t,n){if(1&t){const e=Nn();G(0,"button",20),it("click",function(){return Ut(e),He().cancel()}),he(1,' Why is the "Search" button disabled? '),W()}}let m5t=(()=>{class t{constructor(e,i,r,o){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaFormConfigService=r,this.noctuaSearchService=o,this.searchCriteria={},this.selectedOrganism={},this.searchFormData=[],this.cams=[],this.searchForm=this.createAnswerForm(),this.unsubscribeAll=new z,this.onValueChanges()}ngOnInit(){}createAnswerForm(){return new r2({subject:new br,predicate:new br,object:new br})}onValueChanges(){this.searchForm.get("subject").valueChanges.pipe(ns(),Ls(400)).subscribe(i=>{}),this.searchForm.get("object").valueChanges.pipe(ns(),Ls(400)).subscribe(i=>{}),this.searchForm.get("predicate").valueChanges.pipe(ns(),Ls(400)).subscribe(i=>{})}termDisplayFn(e){return e?e.label:void 0}contributorDisplayFn(e){return e?e.name:void 0}search(){this.noctuaSearchService.search(this.searchForm.value)}clear(){this.searchForm.controls.subject.setValue(""),this.searchForm.controls.predicate.setValue(""),this.searchForm.controls.object.setValue("")}close(){this.noctuaSearchMenuService.closeLeftDrawer()}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(uo),de(Hc),de(lr),de(R1))},t.\u0275cmp=En({type:t,selectors:[["noc-search-relation"]],decls:43,vars:11,consts:[["fxLayout","column","fxLayoutAlign","start stretch","name","searchForm",1,"noc-drawer","h-100-p",3,"formGroup"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body","noc-filter-form"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-table-form","noc-form-section"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-section-body","pt-8"],["fxLayout","column",1,"noc-activity-group-row"],["appearance","outline",1,"noc-sm"],["type","text","matInput","","formControlName","subject","rows","2","placeholder","e.g. an upstream activity",3,"matAutocomplete"],[1,"noc-term-autocomplete",3,"displayWith"],["subjectAuto","matAutocomplete"],["class","noc-term-autocomplete",3,"value",4,"ngFor","ngForOf"],["type","text","matInput","","formControlName","predicate","placeholder","e.g. a causal relation","rows","2",3,"matAutocomplete"],["predicateAuto","matAutocomplete"],["type","text","matInput","","formControlName","object","placeholder","e.g. a downstream activity","rows","2",3,"matAutocomplete"],["objectAuto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","button","mat-raised-button","","color","","class","mr-8",3,"click",4,"ngIf"],["type","button","mat-raised-button","","color","",1,"mr-8",3,"click"],["type","button","mat-raised-button","","color","primary",3,"click"],[1,"noc-term-autocomplete",3,"value"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100-p"],[1,"noc-term-label"],[1,"noc-term-id"]],template:function(e,i){if(1&e&&(G(0,"form",0)(1,"div",1)(2,"span",2),he(3," Search Relations"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," CLOSE "),W()(),G(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8)(13,"mat-form-field",9)(14,"mat-label"),he(15,"Subject"),W(),$e(16,"textarea",10),G(17,"mat-autocomplete",11,12),Ve(19,h5t,7,3,"mat-option",13),W()()(),G(20,"div",8)(21,"mat-form-field",9)(22,"mat-label"),he(23,"Relation"),W(),$e(24,"textarea",14),G(25,"mat-autocomplete",11,15),Ve(27,p5t,7,3,"mat-option",13),W()()(),G(28,"div",8)(29,"mat-form-field",9)(30,"mat-label"),he(31,"Object"),W(),$e(32,"textarea",16),G(33,"mat-autocomplete",11,17),Ve(35,f5t,7,3,"mat-option",13),W()()()()()(),G(36,"div",18),Ve(37,g5t,2,0,"button",19),$e(38,"span",3),G(39,"button",20),it("click",function(){return i.clear()}),he(40,"Clear"),W(),G(41,"button",21),it("click",function(){return i.search()}),he(42,"Search"),W()()()),2&e){const r=Di(18),o=Di(26),a=Di(34);oe("formGroup",i.searchForm),K(16),oe("matAutocomplete",r),K(1),oe("displayWith",i.termDisplayFn),K(2),oe("ngForOf",null==i.searchFormData.subject?null:i.searchFormData.subject.searchResults),K(5),oe("matAutocomplete",o),K(1),oe("displayWith",i.termDisplayFn),K(2),oe("ngForOf",null==i.searchFormData.predicate?null:i.searchFormData.predicate.searchResults),K(5),oe("matAutocomplete",a),K(1),oe("displayWith",i.termDisplayFn),K(2),oe("ngForOf",null==i.searchFormData.object?null:i.searchFormData.object.searchResults),K(2),oe("ngIf",!1)}},directives:[U2,Il,Lr,kr,al,Vr,Er,Mo,Fa,Jd,Ru,Dh,yd,Jp,E1,o2,Kf,vo,xd,er],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{margin-bottom:3px;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;background-color:#fafafa;width:35px;height:35px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;max-height:14px;color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#222}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-tree-input[_ngcontent-%COMP%]{width:20px;min-width:20px;max-width:20px;border-right:rgba(0,0,0,.12) solid 1px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-tree-input.noc-level-0[_ngcontent-%COMP%]{border:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%]{margin:0;padding-top:20px;padding-bottom:8px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{top:0px;bottom:auto!important;left:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] .md-errors-spacer[_ngcontent-%COMP%]{visibility:hidden;display:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] md-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-submit-row[_ngcontent-%COMP%]{margin:10px 0;padding:10px 0;background-color:#fff}']}),t})();function _5t(t,n){if(1&t){const e=Nn();G(0,"div",7),it("click",function(){const o=Ut(e).$implicit;return He().selectGroup(o)}),G(1,"div",8),he(2),W(),G(3,"mat-icon",9),he(4," chevron_right "),W()()}if(2&t){const e=n.$implicit;K(2),Ft(" ",e.name," ")}}let v5t=(()=>{class t{constructor(e,i,r,o,a){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaSearchService=r,this.formBuilder=o,this.noctuaFormConfigService=a,this.searchCriteria={},this.searchFormData=[],this.unsubscribeAll=new z,this.groupsForm=this.formBuilder.group({groups:[]})}ngOnInit(){}selectGroup(e){this.searchCriteria.group=e,this.noctuaSearchService.search(this.searchCriteria)}search(){this.noctuaSearchService.search(this.searchForm.value)}close(){this.noctuaSearchMenuService.closeLeftDrawer()}createSearchForm(){return new r2({term:new br,groups:this.groupsForm})}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(uo),de(Hc),de(R1),de(Zd),de(lr))},t.\u0275cmp=En({type:t,selectors:[["noc-search-groups"]],decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"mt-8","noc-search-form"],["class","noc-group-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-group-row",3,"click"],["fxFlex","",1,"noc-name"],[1,"s-24"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Browse By Groups"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," CLOSE "),W()(),G(9,"form",5),Ve(10,_5t,5,1,"div",6),W()()),2&e&&(K(10),oe("ngForOf",i.noctuaUserService.groups))},directives:[Lr,kr,Vr,Er,Mo,U2,Il,z0,Fa,vo],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:0 10px;height:50px;min-height:50px;max-height:50px;border-top:#CCC solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}']}),t})();function C5t(t,n){if(1&t){const e=Nn();G(0,"div",7),it("click",function(){const o=Ut(e).$implicit;return He().selectContributor(o)}),G(1,"div",8),he(2),W(),$e(3,"span",3),G(4,"mat-icon",9),he(5," chevron_right "),W()()}if(2&t){const e=n.$implicit;K(2),Ft(" ",e.name," ")}}let b5t=(()=>{class t{constructor(e,i,r,o,a){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaSearchService=r,this.formBuilder=o,this.noctuaFormConfigService=a,this.searchCriteria={},this.unsubscribeAll=new z,this.groupsForm=this.formBuilder.group({groups:[]})}ngOnInit(){}selectContributor(e){this.searchCriteria.contributor=e,this.noctuaSearchService.search(this.searchCriteria)}search(){this.noctuaSearchService.search(this.searchForm.value)}close(){this.noctuaSearchMenuService.closeLeftDrawer()}createSearchForm(){return new r2({term:new br,groups:this.groupsForm})}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(uo),de(Hc),de(R1),de(Zd),de(lr))},t.\u0275cmp=En({type:t,selectors:[["noc-search-contributors"]],decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"mt-8","noc-search-form"],["class","noc-contributor-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-contributor-row",3,"click"],["fxFlex","",1,"noc-name"],[1,"s-24"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Browse By Contributors"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," CLOSE "),W()(),G(9,"form",5),Ve(10,C5t,6,1,"div",6),W()()),2&e&&(K(10),oe("ngForOf",i.noctuaUserService.contributors))},directives:[Lr,kr,Vr,Er,Mo,U2,Il,z0,Fa,vo],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0 20px 0 10px;height:50px;min-height:50px;max-height:50px;border-bottom:#999 solid 1px;margin-bottom:5px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] mat-expansion-panel-header[_ngcontent-%COMP%] .noc-comparison-toggle[_ngcontent-%COMP%]{width:30px;min-width:30px;max-width:30px;height:50px;min-height:50px;max-height:50px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px;margin-bottom:5px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-group-expansion[_ngcontent-%COMP%] .noc-expansion-panel-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%]{padding:0 10px;height:50px;min-height:50px;max-height:50px;border-top:#CCC solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;font-size:12px}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-contributor-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:8px;font-size:12px;line-height:40px;color:#555}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:40px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:5px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%]{margin-bottom:3px;background-color:#fff}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-group-heading[_ngcontent-%COMP%]{margin-bottom:20px;height:40px;font-weight:500;font-size:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-row-disabled[_ngcontent-%COMP%]{opacity:.2;pointer-events:none}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-activity-group-row.noc-input-heading[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:8px 0 0;background-color:#fafafa;width:35px;height:35px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;max-height:14px;color:#aaa;line-height:18px}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover{background-color:#999}[_nghost-%COMP%] .noc-search-form[_ngcontent-%COMP%] .noc-term-group[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]:hover mat-icon[_ngcontent-%COMP%]{color:#222}']}),t})();function x5t(t,n){if(1&t){const e=Nn();G(0,"div",7),it("click",function(){const o=Ut(e).$implicit;return He().selectOrganism(o)}),G(1,"div",8),he(2),W(),$e(3,"div",9)(4,"span",3),G(5,"mat-icon",10),he(6," chevron_right "),W()()}if(2&t){const e=n.$implicit;K(2),Ft(" ",e.taxonName," ")}}let y5t=(()=>{class t{constructor(e,i,r,o,a){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.formBuilder=r,this.noctuaFormConfigService=o,this.noctuaSearchService=a,this.searchCriteria={},this.searchFormData=[],this.unsubscribeAll=new z,this.groupsForm=this.formBuilder.group({groups:[]})}ngOnInit(){}selectOrganism(e){this.searchCriteria.organism=e,this.noctuaSearchService.search(this.searchCriteria)}search(){this.noctuaSearchService.search(this.searchForm.value)}close(){this.noctuaSearchMenuService.closeLeftDrawer()}createSearchForm(){return new r2({term:new br,groups:this.groupsForm})}ngOnDestroy(){this.unsubscribeAll.next(null),this.unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(uo),de(Hc),de(Zd),de(lr),de(R1))},t.\u0275cmp=En({type:t,selectors:[["noc-search-organisms"]],decls:11,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch","noctuaPerfectScrollbar","",1,"mt-8","noc-search-form"],["fxFlex","","class","noc-organism-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center",1,"noc-organism-row",3,"click"],[1,"noc-name"],["fxLayout","column","fxLayoutAlign","center center",1,"w-100-p"],[1,"s-24"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Browse By Species"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," CLOSE "),W()(),G(9,"form",5),Ve(10,x5t,7,1,"div",6),W()()),2&e&&(K(10),oe("ngForOf",i.noctuaSearchService.organisms))},directives:[Lr,kr,Vr,Er,Mo,U2,Il,z0,Fa,vo],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%]{padding:8px 10px;min-height:50px;border-top:#CCC solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;font-size:12px}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-organism-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}']}),t})();const w5t=function(t){return["fas",t]};function M5t(t,n){if(1&t&&$e(0,"fa-icon",15),2&t){const e=He().$implicit;oe("icon",Pr(1,w5t,e.icon))}}function O5t(t,n){if(1&t&&(G(0,"div",13),Ve(1,M5t,1,3,"fa-icon",14),he(2),W()),2&t){const e=n.$implicit;K(1),oe("ngIf",e.icon),K(1),Ft(" ",e.value," ")}}function S5t(t,n){if(1&t){const e=Nn();G(0,"div",9),it("click",function(){const o=Ut(e).$implicit;return He().selectSearch(o)}),G(1,"div",10),Ve(2,O5t,3,2,"div",11),W(),$e(3,"span",3),G(4,"mat-icon",12),he(5," chevron_right "),W()()}if(2&t){const e=n.$implicit;K(2),oe("ngForOf",e.displaySections)}}let P5t=(()=>{class t{constructor(e,i,r,o){this.noctuaUserService=e,this.noctuaSearchMenuService=i,this.noctuaSearchService=r,this.noctuaFormConfigService=o,this.searchCriteria={},this.searchHistory=[],this._unsubscribeAll=new z}ngOnInit(){this.noctuaSearchService.onSearchHistoryChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{this.searchHistory=e})}selectSearch(e){this.noctuaSearchService.searchCriteria=e.getSearchCriteria(),this.noctuaSearchService.updateSearch(!0,!1)}clear(){this.noctuaSearchService.clearHistory()}close(){this.noctuaSearchMenuService.closeLeftDrawer()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(uo),de(Hc),de(R1),de(lr))},t.\u0275cmp=En({type:t,selectors:[["noc-search-history"]],decls:15,vars:1,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer","h-100-p"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-header"],[1,"noc-drawer-header-title"],["fxFlex",""],["mat-stroked-button","","color","primary","aria-label","Close dialog",1,"noc-rounded-button","noc-sm",3,"click"],["noctuaPerfectScrollbar","",1,"noc-drawer-body"],["class","noc-group-row","fxLayout","row","fxLayoutAlign","start center",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-drawer-footer","noc-submit-row"],["type","button","mat-raised-button","",3,"click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-group-row",3,"click"],["fxLayout","column","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["class","noc-history-item",4,"ngFor","ngForOf"],[1,"s-24"],[1,"noc-history-item"],[3,"icon",4,"ngIf"],[3,"icon"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"span",2),he(3," Search History"),W(),$e(4,"span",3),G(5,"button",4),it("click",function(){return i.close()}),G(6,"mat-icon"),he(7,"close"),W(),he(8," CLOSE "),W()(),G(9,"div",5),Ve(10,S5t,6,1,"div",6),W(),G(11,"div",7),$e(12,"span",3),G(13,"button",8),it("click",function(){return i.clear()}),he(14,"Clear Search"),W()()()),2&e&&(K(10),oe("ngForOf",i.searchHistory))},directives:[Lr,kr,Vr,Er,Mo,Fa,vo,er,ks],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{width:100%;background-color:#fff;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-drawer[_ngcontent-%COMP%]{width:300px;min-width:300px;max-width:300px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;background-color:#eee;border-bottom:#CCC solid 1px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;line-height:30px}[_nghost-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:10px;padding:0 14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]{padding:12px 10px;min-height:40px;max-height:300px;border-bottom:#BBB solid 1px;font-size:12px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-name[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-history-item[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;width:100%;min-width:100%;max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%] .noc-cams-number[_ngcontent-%COMP%]{padding:2px 5px;height:20px;min-height:20px;max-height:20px;background-color:#ddd;font-size:10px;border-radius:25%}[_nghost-%COMP%] .noc-group-row[_ngcontent-%COMP%]:hover{background-color:#f2f2f2}[_nghost-%COMP%] .noc-body[_ngcontent-%COMP%]{padding:0 14px 14px}']}),t})();function E5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",44),it("click",function(){return Ut(e),He().reset()}),he(1," Clear All "),W()}}function T5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",45),it("click",function(){Ut(e);const r=He();return r.openLeftDrawer(r.LeftPanel.filter)})("removed",function(){Ut(e);const r=He();return r.noctuaSearchService.removeFilterType(r.SearchFilterType.ids)}),he(1," Model IDs: "),G(2,"span"),he(3),W(),G(4,"mat-icon",46),he(5,"cancel"),W()()}if(2&t){const e=He();oe("removable",!0),K(3),Ft(" (",e.noctuaSearchService.searchCriteria.ids.length,")")}}function A5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",45),it("click",function(){Ut(e);const r=He();return r.openLeftDrawer(r.LeftPanel.filter)})("removed",function(){Ut(e);const r=He();return r.noctuaSearchService.removeFilterType(r.SearchFilterType.gps)}),he(1," GPs: "),G(2,"span"),he(3),W(),G(4,"mat-icon",46),he(5,"cancel"),W()()}if(2&t){const e=He();oe("removable",!0),K(3),Ft(" (",e.noctuaSearchService.searchCriteria.gps.length,")")}}function D5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",45),it("click",function(){Ut(e);const r=He();return r.openLeftDrawer(r.LeftPanel.filter)})("removed",function(){Ut(e);const r=He();return r.noctuaSearchService.removeFilterType(r.SearchFilterType.terms)}),he(1," GO Terms: "),G(2,"span",47),he(3),W(),G(4,"mat-icon",46),he(5,"cancel"),W()()}if(2&t){const e=He();oe("removable",!0),K(3),Ft(" (",e.noctuaSearchService.searchCriteria.terms.length,")")}}function L5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",45),it("click",function(){Ut(e);const r=He();return r.openLeftDrawer(r.LeftPanel.filter)})("removed",function(){Ut(e);const r=He();return r.noctuaSearchService.removeFilterType(r.SearchFilterType.contributors)}),he(1," Contributors: "),G(2,"span",47),he(3),W(),G(4,"mat-icon",46),he(5,"cancel"),W()()}if(2&t){const e=He();oe("removable",!0),K(3),Ft(" (",e.noctuaSearchService.searchCriteria.contributors.length,")")}}function k5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",45),it("click",function(){Ut(e);const r=He();return r.openLeftDrawer(r.LeftPanel.filter)})("removed",function(){Ut(e);const r=He();return r.noctuaSearchService.removeFilterType(r.SearchFilterType.groups)}),he(1," Groups: "),G(2,"span",47),he(3),W(),G(4,"mat-icon",46),he(5,"cancel"),W()()}if(2&t){const e=He();oe("removable",!0),K(3),Ft(" (",e.noctuaSearchService.searchCriteria.groups.length,")")}}function I5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",45),it("click",function(){Ut(e);const r=He();return r.openLeftDrawer(r.LeftPanel.filter)})("removed",function(){Ut(e);const r=He();return r.noctuaSearchService.removeFilterType(r.SearchFilterType.organisms)}),he(1," Species: "),G(2,"span",47),he(3),W(),G(4,"mat-icon",46),he(5,"cancel"),W()()}if(2&t){const e=He();oe("removable",!0),K(3),Ft(" (",e.noctuaSearchService.searchCriteria.organisms.length,")")}}function N5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",45),it("click",function(){Ut(e);const r=He();return r.openLeftDrawer(r.LeftPanel.filter)})("removed",function(){Ut(e);const r=He();return r.noctuaSearchService.removeFilterType(r.SearchFilterType.pmids)}),he(1," References: "),G(2,"span",47),he(3),W(),G(4,"mat-icon",46),he(5,"cancel"),W()()}if(2&t){const e=He();oe("removable",!0),K(3),Ft(" (",e.noctuaSearchService.searchCriteria.pmids.length,")")}}function R5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",45),it("click",function(){Ut(e);const r=He();return r.openLeftDrawer(r.LeftPanel.filter)})("removed",function(){Ut(e);const r=He();return r.noctuaSearchService.removeFilterType(r.SearchFilterType.states)}),he(1," Model States: "),G(2,"span",47),he(3),W(),G(4,"mat-icon",46),he(5,"cancel"),W()()}if(2&t){const e=He();oe("removable",!0),K(3),Ft(" (",e.noctuaSearchService.searchCriteria.states.length,")")}}function z5t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",45),it("click",function(){Ut(e);const r=He();return r.openLeftDrawer(r.LeftPanel.filter)})("removed",function(){Ut(e);const r=He();return r.noctuaSearchService.removeFilterType(r.SearchFilterType.exactdates)}),he(1," Date Modified: "),G(2,"span",47),he(3),W(),G(4,"mat-icon",46),he(5,"cancel"),W()()}if(2&t){const e=He();oe("removable",!0),K(3),Ft(" (",e.noctuaSearchService.searchCriteria.exactdates.length,")")}}function F5t(t,n){if(1&t&&$e(0,"mat-progress-bar",48),2&t){const e=He();oe("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}function H5t(t,n){if(1&t){const e=Nn();G(0,"mat-paginator",49,50),it("page",function(r){Ut(e);const o=He();return o.pageEvent=r,o.setPage(r)}),W()}if(2&t){const e=He();oe("length",e.camPage.total)("pageIndex",e.camPage.pageNumber)("pageSize",e.camPage.size)("pageSizeOptions",e.camPage.pageSizeOptions)("showFirstLastButtons",!0)}}function V5t(t,n){1&t&&$e(0,"th",51)}function B5t(t,n){if(1&t){const e=Nn();G(0,"td",52)(1,"mat-checkbox",53),it("click",function(r){return r.stopPropagation()})("change",function(r){const a=Ut(e).$implicit,c=He();return r?c.toggleSelection(a):null}),W()()}if(2&t){const e=n.$implicit,i=He();K(1),oe("checked",i.selection.isSelected(e))("aria-label",i.checkboxLabel(e))}}function G5t(t,n){1&t&&$e(0,"th",54)}const Y5t=function(){return["fas","caret-right"]};function U5t(t,n){1&t&&$e(0,"fa-icon",59),2&t&&oe("icon",ai(1,Y5t))}const j5t=function(){return["fas","caret-down"]};function W5t(t,n){1&t&&$e(0,"fa-icon",59),2&t&&oe("icon",ai(1,j5t))}function q5t(t,n){if(1&t){const e=Nn();G(0,"td",55)(1,"button",56),it("click",function(){const o=Ut(e).$implicit;return He().toggleCamExpand(o)}),Ve(2,U5t,1,2,"fa-icon",57),Ve(3,W5t,1,2,"fa-icon",57),W(),G(4,"div",58),he(5),W()()}if(2&t){const e=n.$implicit;K(2),oe("ngIf",!e.expanded),K(1),oe("ngIf",e.expanded),K(2),Ft(" ",e.displayNumber," ")}}function X5t(t,n){1&t&&(G(0,"th",60),he(1," Title "),W())}function $5t(t,n){if(1&t&&(G(0,"td",61),he(1),W()),2&t){const e=n.$implicit;K(1),Ft(" ",e.title," ")}}function Q5t(t,n){1&t&&(G(0,"th",62),he(1,"Saved"),W())}const K5t=function(){return["far","times-circle"]};function Z5t(t,n){1&t&&$e(0,"fa-icon",66),2&t&&oe("icon",ai(1,K5t))}const J5t=function(){return["far","check-circle"]};function e6t(t,n){1&t&&$e(0,"fa-icon",67),2&t&&oe("icon",ai(1,J5t))}function t6t(t,n){if(1&t&&(G(0,"td",63),Ve(1,Z5t,1,2,"fa-icon",64),Ve(2,e6t,1,2,"fa-icon",65),W()),2&t){const e=n.$implicit;K(1),oe("ngIf",e.modified),K(1),oe("ngIf",!e.modified)}}function n6t(t,n){1&t&&(G(0,"th",68),he(1,"State"),W())}const i6t=function(t,n,e){return{"noc-development":t,"noc-production":n,"noc-review":e}},r6t=function(){return["fas","tasks"]};function o6t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",71),it("click",function(){Ut(e);const r=He().$implicit,o=He();return o.noctuaSearchService.filter(o.SearchFilterType.states,r.state)}),G(1,"div",72),$e(2,"fa-icon",59),W(),G(3,"div",73),he(4),W()()}if(2&t){const e=He().$implicit;oe("ngClass",bh(5,i6t,"development"===e.state.name,"production"===e.state.name,"review"===e.state.name))("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),oe("icon",ai(9,r6t)),K(2),Ft(" ",e.state.label," ")}}function a6t(t,n){if(1&t&&(G(0,"td",69),Ve(1,o6t,5,10,"mat-chip",70),W()),2&t){const e=n.$implicit;K(1),oe("ngIf",e.state)}}function s6t(t,n){1&t&&(G(0,"th",74),he(1," Date Modified "),W())}const c6t=function(){return["fas","calendar-day"]};function l6t(t,n){if(1&t){const e=Nn();G(0,"td",75)(1,"mat-chip",76),it("click",function(){const o=Ut(e).$implicit,a=He();return a.noctuaSearchService.filter(a.SearchFilterType.exactdates,o.date)}),G(2,"div",72),$e(3,"fa-icon",59),W(),G(4,"div",73),he(5),W()()()}if(2&t){const e=n.$implicit;K(1),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),oe("icon",ai(4,c6t)),K(2),Ft(" ",e.date," ")}}function d6t(t,n){1&t&&(G(0,"th",77),he(1,"Contributors"),W())}function u6t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",80),it("click",function(){const o=Ut(e).$implicit,a=He(2);return a.noctuaSearchService.filter(a.SearchFilterType.contributors,o)}),G(1,"div",81),he(2),W(),G(3,"div",73),he(4),W()()}if(2&t){const e=n.$implicit;jo("border-color",e.color),Tf("matTooltip","Add ",e.name," to Filters"),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(1),jo("background-color",e.color),K(1),Ft(" ",e.initials," "),K(2),Ft(" ",e.name?e.name:e.orcid," ")}}function h6t(t,n){if(1&t&&(G(0,"td",78)(1,"mat-chip-list"),Ve(2,u6t,5,9,"mat-chip",79),W()()),2&t){const e=n.$implicit;K(2),oe("ngForOf",e.contributors)}}function p6t(t,n){1&t&&(G(0,"th",82),he(1,"Open In"),W())}const f6t=function(){return["fas","list-alt"]},g6t=function(){return["fas","sitemap"]};function m6t(t,n){if(1&t){const e=Nn();G(0,"td",83)(1,"a",84),$e(2,"img",85),W(),G(3,"a",86),$e(4,"fa-icon",59),W(),G(5,"a",87),$e(6,"fa-icon",59),W(),G(7,"a",88)(8,"mat-icon"),he(9,"more_horiz"),W()(),G(10,"mat-menu",null,89)(12,"a",90),he(13," Alliance Pathway Preview "),W(),G(14,"button",91),it("click",function(){const o=Ut(e).$implicit;return He().openCamForm(o)}),he(15," Model Info "),W(),G(16,"button",91),it("click",function(){const o=Ut(e).$implicit;return He().openCopyModel(o)}),he(17," Copy Model "),W(),G(18,"button",92),he(19," Export As "),W()(),G(20,"mat-menu",null,93)(22,"a",94),he(23," GPAD "),W(),G(24,"a",94),he(25," OWL "),W()()()}if(2&t){const e=n.$implicit,i=Di(11),r=Di(21);K(1),oe("href",null==e||null==e.model||null==e.model.modelInfo||null==e.model.modelInfo.workbenches["noctua-visual-pathway-editor"]?null:e.model.modelInfo.workbenches["noctua-visual-pathway-editor"].url,ir)("matTooltipPosition","above")("matTooltipShowDelay",1500),K(2),oe("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ir)("matTooltipPosition","above")("matTooltipShowDelay",1500),K(1),oe("icon",ai(16,f6t)),K(1),oe("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ir)("matTooltipPosition","above")("matTooltipShowDelay",1500),K(1),oe("icon",ai(17,g6t)),K(1),oe("matMenuTriggerFor",i),K(5),oe("href",null==e||null==e.model||null==e.model.modelInfo||null==e.model.modelInfo.workbenches["noctua-alliance-pathway-preview"]?null:e.model.modelInfo.workbenches["noctua-alliance-pathway-preview"].url,ir),K(6),oe("matMenuTriggerFor",r),K(4),oe("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.gpadUrl,ir),K(2),oe("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.owlUrl,ir)}}function _6t(t,n){if(1&t&&$e(0,"mat-progress-bar",48),2&t){const e=He(2);oe("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}function v6t(t,n){if(1&t&&$e(0,"noc-cam-table",98),2&t){const e=He().$implicit,i=He();oe("cam",e)("options",i.tableOptions)}}function C6t(t,n){if(1&t&&(G(0,"td",95)(1,"div",96),Ve(2,_6t,1,2,"mat-progress-bar",6),Ve(3,v6t,1,2,"noc-cam-table",97),W()()),2&t){const e=n.$implicit;Ti("colspan",He().displayedColumns.length),K(2),oe("ngIf",e.loading.status),K(1),oe("ngIf",e.expanded)}}function b6t(t,n){1&t&&$e(0,"tr",99)}function x6t(t,n){if(1&t&&(G(0,"tr",100),it("click",function(i){return i.stopPropagation()}),W()),2&t){const e=n.$implicit;Yr("id",He().cleanId(e.id))}}function y6t(t,n){1&t&&$e(0,"tr",101),2&t&&oe("@detailExpand",n.$implicit.expanded?"expanded":"collapsed")}function w6t(t,n){1&t&&(G(0,"div",102),he(1," no results yet. "),W())}const M6t=function(t){return{"noc-review-mode":t}},O6t=function(){return{value:"50"}},S6t=function(){return["expandedDetail"]};function P6t(){const t=new G6;return t.itemsPerPageLabel="GO CAMs per page:",t}let E6t=(()=>{class t{constructor(e,i,r,o,a,c,u){this.camService=e,this.noctuaReviewSearchService=i,this.noctuaFormConfigService=r,this.noctuaCommonMenuService=o,this.noctuaSearchMenuService=a,this.noctuaUserService=c,this.noctuaSearchService=u,this.SearchFilterType=I1,this.ReviewMode=Fc,this.LeftPanel=ss,this.MiddlePanel=Wo,this.RightPanel=Hh,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.displayedColumns=[],this.searchCriteria={},this.searchFormData=[],this.cams=[],this.tableOptions={displayType:ru.TREE,slimViewer:!1},this.selection=new zu(!0,[]),this._unsubscribeAll=new z,this.selection.sort()}set isReviewMode(e){this._isReviewMode=e,this.initTable(this._isReviewMode)}get isReviewMode(){return this._isReviewMode}initTable(e){this.displayedColumns=["expand","title","saved","state","date","contributor","edit"],e&&this.displayedColumns.unshift("select")}ngOnInit(){this.noctuaSearchService.onCamsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.cams=e,this.preCheck())}),this.camService.onCamsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||this.preCheck()}),this.noctuaSearchService.onCamsPageChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{!e||(this.camPage=e)}),this.noctuaReviewSearchService.onResetReview.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&(this.camService.clearCams(),this.selection.clear())}),this.noctuaReviewSearchService.onReplaceChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&this.refresh()})}isAllSelected(){return this.selection.selected.length===this.cams.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.cams.forEach(e=>this.selection.select(e))}toggleSelection(e){this.selection.toggle(e),this.selection.isSelected(e)?this.addToReview(e):this.noctuaReviewSearchService.removeCamFromReview(e)}preCheck(){const e=this;this.selection.clear(),(0,Nt.each)(e.cams,i=>{(0,Nt.find)(e.camService.cams,{id:i.id})&&e.selection.select(i)})}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.position+1}`:(this.isAllSelected()?"select":"deselect")+" all"}toggleLeftDrawer(e){this.noctuaSearchMenuService.toggleLeftDrawer(e)}search(){this.noctuaSearchService.search(this.searchForm.value)}getStateClass(e){return{"noc-development":"development"===e,"noc-production":"production"===e,"noc-review":"review"===e}}setPage(e){if(this.camPage){let i=e.pageIndex;this.noctuaSearchService.searchCriteria.camPage.size>e.pageSize&&(i=0),this.noctuaSearchService.getPage(i,e.pageSize)}}isExpansionDetailRow(e,i){return i.expanded}toggleCamExpand(e){e.expanded?e.expanded=!1:this.openCam(e)}addToReview(e){this.noctuaReviewSearchService.addCamsToReview([e],this.camService.cams),this.noctuaReviewSearchService.addToArtBasket(e.id,e.title)}openCam(e){this.camService.loadCam(e),e.expanded=!0,this.camService.cam=e,this.camService.onCamChanged.next(e)}openCamForm(e){this.camService.cam=e,this.camService.initializeForm(e),this.camService.onCamChanged.next(e),this.openRightDrawer(Hh.camForm)}openCopyModel(e){this.camService.loadCamMeta(e),this.camService.cam=e,this.camService.onCamChanged.next(e),this.openRightDrawer(Hh.copyModel)}openLeftDrawer(e){this.noctuaSearchMenuService.selectLeftPanel(e),this.noctuaSearchMenuService.openLeftDrawer()}openRightDrawer(e){this.noctuaSearchMenuService.selectRightPanel(e),this.noctuaSearchMenuService.openRightDrawer()}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}cleanId(e){return m4.cleanID(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(z1),de(lr),de($c),de(Hc),de(uo),de(R1))},t.\u0275cmp=En({type:t,selectors:[["noc-cams-table"]],inputs:{isReviewMode:"isReviewMode"},features:[Ki([{provide:G6,useValue:P6t()}])],decls:57,vars:26,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cams-result","noc-drawer-body",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-filter-bar"],[1,"mr-12"],["class","noc-clearall-chip",3,"click",4,"ngIf"],["class","noc-filter-chip",3,"removable","click","removed",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-results-bar"],["class","noc-cam-progress",3,"color","mode",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"ml-8","mr-16"],["mat-stroked-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-sm","noc-r"],["mat-stroked-button","","color","primary","matTooltip","Refresh Search",1,"noc-rounded-button","noc-half-button","noc-sm","noc-l",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,""],["fxFlex",""],["class","noc-paginator",3,"length","pageIndex","pageSize","pageSizeOptions","showFirstLastButtons","page",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"noc-cams-table",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","fxFlex","30px",4,"matHeaderCellDef"],["class","noc-checkbox-cell","mat-cell","","fxFlex","30px",4,"matCellDef"],["matColumnDef","expand"],["mat-header-cell","","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","class","noc-expand-cell","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","200px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","saved"],["mat-header-cell","","fxFlex","50px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","50px","class","noc-model-saved pr-12","fxLayout","row","fxLayoutAlign","center center",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","fxFlex","110px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","110px","class","noc-model-state pr-12","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","date"],["mat-header-cell","","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","class","noc-date","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","contributor"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","edit"],["mat-header-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","expandedDetail"],["class","p-0","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"id","click",4,"matRowDef","matRowDefColumns"],["mat-row","","style","overflow: hidden",4,"matRowDef","matRowDefColumns"],["class","noc-no-info",4,"ngIf"],[1,"noc-clearall-chip",3,"click"],[1,"noc-filter-chip",3,"removable","click","removed"],["matChipRemove",""],[1,"noc-filter-number"],[1,"noc-cam-progress",3,"color","mode"],[1,"noc-paginator",3,"length","pageIndex","pageSize","pageSizeOptions","showFirstLastButtons","page"],["paginatorBottom",""],["mat-header-cell","","fxFlex","30px"],["mat-cell","","fxFlex","30px",1,"noc-checkbox-cell"],[3,"checked","aria-label","click","change"],["mat-header-cell","","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","80px","fxLayout","row","fxLayoutAlign","start center",1,"noc-expand-cell"],["mat-icon-button","","color","primary",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","mr-8"],[3,"icon"],["mat-header-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","200px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","50px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","50px","fxLayout","row","fxLayoutAlign","center center",1,"noc-model-saved","pr-12"],["class","red-500-fg",3,"icon",4,"ngIf"],["class","green-500-fg",3,"icon",4,"ngIf"],[1,"red-500-fg",3,"icon"],[1,"green-500-fg",3,"icon"],["mat-header-cell","","fxFlex","110px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","110px","fxLayout","row","fxLayoutAlign","start center",1,"noc-model-state","pr-12"],["class","noc-table-chip noc-state-chip","fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",1,"noc-table-chip","noc-state-chip",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["mat-header-cell","","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",1,"noc-date"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add date to exact date filter",1,"noc-table-chip","noc-date-chip",3,"matTooltipPosition","matTooltipShowDelay","click"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["class","noc-table-chip noc-user-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","borderColor","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-user-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon","noc-icon-initials"],["mat-header-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","180px","fxLayout","row","fxLayoutAlign","start center"],["mat-icon-button","","target","_blank","matTooltip","Pathway Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-r",3,"href","matTooltipPosition","matTooltipShowDelay"],["width","15","src","assets/icons/pathway.png"],["mat-icon-button","","target","_blank","matTooltip","Form Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","mr-4","noc-half-button","noc-m",3,"href","matTooltipPosition","matTooltipShowDelay"],["mat-icon-button","","target","_blank","matTooltip","Graph Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-m",3,"href","matTooltipPosition","matTooltipShowDelay"],["mat-icon-button","","color","primary",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-l",3,"matMenuTriggerFor"],["optionsMenu","matMenu"],["mat-menu-item","","target","_blank",1,"",3,"href"],["mat-menu-item","",1,"",3,"click"],["mat-menu-item","",1,"",3,"matMenuTriggerFor"],["exportMenu","matMenu"],["target","_blank","mat-menu-item","",3,"href"],["mat-cell","",1,"p-0"],[1,"noc-cam-table-container"],[3,"cam","options",4,"ngIf"],[3,"cam","options"],["mat-header-row",""],["mat-row","",3,"id","click"],["mat-row","",2,"overflow","hidden"],[1,"noc-no-info"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"small",2),he(3,"Filtered By: "),W(),Ve(4,E5t,2,0,"mat-chip",3),Ve(5,T5t,6,2,"mat-chip",4),Ve(6,A5t,6,2,"mat-chip",4),Ve(7,D5t,6,2,"mat-chip",4),Ve(8,L5t,6,2,"mat-chip",4),Ve(9,k5t,6,2,"mat-chip",4),Ve(10,I5t,6,2,"mat-chip",4),Ve(11,N5t,6,2,"mat-chip",4),Ve(12,R5t,6,2,"mat-chip",4),Ve(13,z5t,6,2,"mat-chip",4),W(),G(14,"div",5),Ve(15,F5t,1,2,"mat-progress-bar",6),G(16,"small"),he(17,"Results:"),W(),G(18,"div",7)(19,"button",8),he(20),W(),G(21,"button",9),it("click",function(){return i.refresh()}),G(22,"mat-icon",10),he(23," youtube_searched_for "),W()()(),$e(24,"span",11),Ve(25,H5t,2,5,"mat-paginator",12),W(),G(26,"table",13),Qr(27,14),Ve(28,V5t,1,0,"th",15),Ve(29,B5t,2,2,"td",16),Kr(),Qr(30,17),Ve(31,G5t,1,0,"th",18),Ve(32,q5t,6,3,"td",19),Kr(),Qr(33,20),Ve(34,X5t,2,0,"th",21),Ve(35,$5t,2,1,"td",22),Kr(),Qr(36,23),Ve(37,Q5t,2,0,"th",24),Ve(38,t6t,3,2,"td",25),Kr(),Qr(39,26),Ve(40,n6t,2,0,"th",27),Ve(41,a6t,2,1,"td",28),Kr(),Qr(42,29),Ve(43,s6t,2,0,"th",30),Ve(44,l6t,6,5,"td",31),Kr(),Qr(45,32),Ve(46,d6t,2,0,"th",33),Ve(47,h6t,3,1,"td",34),Kr(),Qr(48,35),Ve(49,p6t,2,0,"th",36),Ve(50,m6t,26,18,"td",37),Kr(),Qr(51,38),Ve(52,C6t,4,3,"td",39),Kr(),Ve(53,b6t,1,0,"tr",40),Ve(54,x6t,1,1,"tr",41),Ve(55,y6t,1,1,"tr",42),W(),Ve(56,w6t,2,0,"div",43),W()),2&e&&(oe("ngClass",Pr(22,M6t,i.isReviewMode)),K(4),oe("ngIf",(null==i.noctuaSearchService||null==i.noctuaSearchService.searchCriteria?null:i.noctuaSearchService.searchCriteria.filtersCount)>0),K(1),oe("ngIf",i.noctuaSearchService.searchCriteria.ids.length>0),K(1),oe("ngIf",i.noctuaSearchService.searchCriteria.gps.length>0),K(1),oe("ngIf",i.noctuaSearchService.searchCriteria.terms.length>0),K(1),oe("ngIf",i.noctuaSearchService.searchCriteria.contributors.length>0),K(1),oe("ngIf",i.noctuaSearchService.searchCriteria.groups.length>0),K(1),oe("ngIf",i.noctuaSearchService.searchCriteria.organisms.length>0),K(1),oe("ngIf",i.noctuaSearchService.searchCriteria.pmids.length>0),K(1),oe("ngIf",i.noctuaSearchService.searchCriteria.states.length>0),K(1),oe("ngIf",i.noctuaSearchService.searchCriteria.exactdates.length>0),K(2),oe("ngIf",i.noctuaSearchService.loading),K(5),Ft(" ",null==i.camPage?null:i.camPage.total," "),K(1),oe("matTooltipPosition","above")("matTooltipShowDelay",1e3),K(4),oe("ngIf",i.camPage),K(1),oe("dataSource",i.cams)("@animateStagger",ai(24,O6t)),K(27),oe("matHeaderRowDef",i.displayedColumns),K(1),oe("matRowDefColumns",i.displayedColumns),K(1),oe("matRowDefColumns",ai(25,S6t)),K(1),oe("ngIf",0===(null==i.cams?null:i.cams.length)))},directives:[Lr,kr,Qa,ec,er,wd,Mo,WN,Pv,Er,Jl,Vr,KRe,U6,dm,lm,um,cm,hm,Zf,ks,z6,vo,Ov,Zl,T1,sl,QC,j6,q6,W6,X6],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%;background-color:#f7f7f7}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-hide-column[_ngcontent-%COMP%]{visibility:hidden;overflow:hidden;display:none;width:0!important;min-width:0!important;max-width:0!important}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{position:sticky;top:0;margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;width:100%;min-width:100%;max-width:100%;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin-right:8px;font-weight:400;font-size:10px;height:25px;min-height:25px;max-height:25px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%]{font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-filter-number[_ngcontent-%COMP%]{font-weight:700;color:#3b5998}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%]{border:#da7f7f solid 1px;background-color:#da7f7f33;font-size:10px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#da7f7f}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%]{position:sticky;top:31px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-search-table-header[_ngcontent-%COMP%]{position:absolute;top:0;right:0;left:0;z-index:1000;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}[_nghost-%COMP%] .noc-search-table-header[_ngcontent-%COMP%] .noc-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#ddd}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;top:0;bottom:0;right:0;left:0;z-index:1000}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:12px;font-weight:400;height:25px;min-height:25px;max-height:25px;max-width:200px;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip[_ngcontent-%COMP%] .noc-chip-label[_ngcontent-%COMP%]{padding:0 8px 0 4px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%]{padding:0;height:25px;min-height:25px;max-height:25px;font-size:10px;border:#ccc solid 1px;background-color:#ccc3}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25px;width:25px;border-radius:50%;color:#888;font-size:14px}[_nghost-%COMP%] mat-chip.noc-table-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#ccc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{color:#59939e}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-user-chip[_ngcontent-%COMP%] .noc-icon.noc-icon-initials[_ngcontent-%COMP%]{font-size:10px;color:#000}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%]{border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-date-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%]{border:#f4c89c solid 1px;background-color:#f4c89c33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-development[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#f4c89c}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%]{border:#b6f1cc solid 1px;background-color:#b6f1cc33}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-production[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#b6f1cc}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%]{border:#d8f6a3 solid 1px;background-color:#d8f6a333}[_nghost-%COMP%] mat-chip.noc-table-chip.noc-state-chip.noc-review[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#d8f6a3}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%]{background-color:#f7f7f7;font-size:12px;width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;max-height:100%;padding-bottom:300px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{background-color:#fff;color:#3b5998;border:rgba(59,89,152,.5) solid 1px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cams-table[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cams-table[_ngcontent-%COMP%] .noc-display-number[_ngcontent-%COMP%]{background-color:#fff}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;font-weight:700}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{position:sticky;top:72px;background-color:#fff;height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px;z-index:10}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:6px;padding-bottom:6px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell.noc-checkbox-cell[_ngcontent-%COMP%]{padding-left:16px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell.noc-expand-cell[_ngcontent-%COMP%]{position:relative;padding-left:8px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-cell.noc-expand-cell[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]{width:100%;position:relative;padding-left:70px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]:before{position:absolute;top:0;left:52px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:""}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-column-id[_ngcontent-%COMP%]{flex:0 1 84px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .mat-column-buttons[_ngcontent-%COMP%]{flex:0 1 80px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:12px;padding-left:12px;padding-right:10px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}[_nghost-%COMP%] .noc-cams-result[_ngcontent-%COMP%] .noc-model-saved[_ngcontent-%COMP%]{font-size:18px;padding-left:12px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{top:101px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-summary-results-bar[_ngcontent-%COMP%]{top:131px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{top:172px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]{padding-left:100px}[_nghost-%COMP%] .noc-cams-result.noc-review-mode[_ngcontent-%COMP%] .noc-cam-table-container[_ngcontent-%COMP%]:before{left:82px}'],data:{animation:[dc,sa("detailExpand",[Nr("collapsed",Wn({height:"0px",minHeight:"0",visibility:"hidden"})),Nr("expanded",Wn({height:"*",visibility:"visible"})),Cr("expanded <=> collapsed",gr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),t})();function T6t(t,n){1&t&&(G(0,"div",8),he(1," Log in to Continue "),W())}function A6t(t,n){if(1&t&&$e(0,"mat-progress-bar",23),2&t){const e=He(2);oe("color",e.loadingSpinner.color)("mode",e.loadingSpinner.mode)}}const D6t=function(){return["fas","caret-right"]};function L6t(t,n){1&t&&$e(0,"fa-icon",24),2&t&&oe("icon",ai(1,D6t))}const k6t=function(){return["fas","caret-down"]};function I6t(t,n){1&t&&$e(0,"fa-icon",24),2&t&&oe("icon",ai(1,k6t))}function N6t(t,n){if(1&t&&(G(0,"div",25)(1,"div",26)(2,"strong"),he(3,"Title: "),W(),he(4),W()()),2&t){const e=He().$implicit;K(4),Ft("",null==e?null:e.title," ")}}const R6t=function(t,n,e){return{"noc-development":t,"noc-production":n,"noc-review":e}},z6t=function(){return["fas","tasks"]};function F6t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",39),it("click",function(){Ut(e);const r=He(2).$implicit,o=He();return o.noctuaSearchService.filter(o.SearchFilterType.states,r.state)}),G(1,"div",32),$e(2,"fa-icon",24),W(),G(3,"div",33),he(4),W()()}if(2&t){const e=He(2).$implicit;oe("ngClass",bh(5,R6t,"development"===e.state.name,"production"===e.state.name,"review"===e.state.name))("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),oe("icon",ai(9,z6t)),K(2),Ft(" ",e.state.label," ")}}function H6t(t,n){if(1&t){const e=Nn();G(0,"mat-chip",40),it("click",function(){const o=Ut(e).$implicit,a=He(3);return a.noctuaSearchService.filter(a.SearchFilterType.contributors,o)}),G(1,"div",41),he(2),W(),G(3,"div",33),he(4),W()()}if(2&t){const e=n.$implicit;jo("border-color",e.color),Tf("matTooltip","Add ",e.name," to Filters"),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(1),jo("background-color",e.color),K(1),Ft(" ",e.initials," "),K(2),Ft(" ",e.name?e.name:e.orcid," ")}}const V6t=function(){return["fas","calendar-day"]},B6t=function(){return["fas","list-alt"]},G6t=function(){return["fas","sitemap"]};function Y6t(t,n){if(1&t){const e=Nn();G(0,"div",27)(1,"div",28),Ve(2,F6t,5,10,"mat-chip",29),W(),G(3,"div",30)(4,"mat-chip",31),it("click",function(){Ut(e);const r=He().$implicit,o=He();return o.noctuaSearchService.filter(o.SearchFilterType.exactdates,r.date)}),G(5,"div",32),$e(6,"fa-icon",24),W(),G(7,"div",33),he(8),W()()(),G(9,"div",34)(10,"mat-chip-list"),Ve(11,H6t,5,9,"mat-chip",35),W()(),G(12,"div",36)(13,"a",37),$e(14,"fa-icon",24),W(),G(15,"a",38),$e(16,"fa-icon",24),W()()()}if(2&t){const e=He().$implicit;K(2),oe("ngIf",e.state),K(2),oe("matTooltipPosition","below")("matTooltipShowDelay",1e3),K(2),oe("icon",ai(14,V6t)),K(2),Ft(" ",e.date," "),K(3),oe("ngForOf",e.contributors),K(2),oe("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.noctuaFormUrl,ir)("matTooltipPosition","after")("matTooltipShowDelay",1e3),K(1),oe("icon",ai(15,B6t)),K(1),oe("href",null==e||null==e.model||null==e.model.modelInfo?null:e.model.modelInfo.graphEditorUrl,ir)("matTooltipPosition","after")("matTooltipShowDelay",1e3),K(1),oe("icon",ai(16,G6t))}}function U6t(t,n){if(1&t&&$e(0,"noc-cam-table",42),2&t){const e=He().$implicit,i=He();oe("cam",e)("options",i.tableOptions)}}const j6t=function(t){return{"noc-selected":t}},W6t=function(){return{value:"50"}};function q6t(t,n){if(1&t){const e=Nn();G(0,"div",9)(1,"div",10),Ve(2,A6t,1,2,"mat-progress-bar",11),G(3,"button",12),it("click",function(){return Ut(e).$implicit.toggleExpand()}),Ve(4,L6t,1,2,"fa-icon",13),Ve(5,I6t,1,2,"fa-icon",13),W(),G(6,"div",14),he(7),W(),Ve(8,N6t,5,1,"div",15),$e(9,"div",16),G(10,"button",17),he(11," Options "),W(),G(12,"mat-menu",18,19)(14,"button",20),it("click",function(){return Ut(e).$implicit.expandAllActivities(!0)}),he(15," Expand All "),W(),G(16,"button",20),it("click",function(){return Ut(e).$implicit.expandAllActivities(!1)}),he(17," Collapse All "),W()()(),Ve(18,Y6t,17,17,"div",21),Ve(19,U6t,1,2,"noc-cam-table",22),W()}if(2&t){const e=n.$implicit,i=Di(13),r=He();Yr("id","noc-review-cams-"+e.displayId),oe("ngClass",Pr(11,j6t,e.id===(null==r.camService.currentMatch?null:r.camService.currentMatch.modelId))),K(1),oe("@animateStagger",ai(13,W6t)),K(1),oe("ngIf",e.loading.status),K(2),oe("ngIf",!e.expanded),K(1),oe("ngIf",e.expanded),K(2),Ft(" ",e.displayNumber," "),K(1),oe("ngIf",null==e?null:e.title),K(2),oe("matMenuTriggerFor",i),K(8),oe("ngIf",!1),K(1),oe("ngIf",e.expanded)}}function X6t(t,n){if(1&t){const e=Nn();G(0,"div",43),he(1," No models to review "),G(2,"a",44),it("click",function(){Ut(e);const r=He();return r.selectMiddlePanel(r.MiddlePanel.cams)}),he(3," Add Models "),W()()}}let $6t=(()=>{class t{constructor(e,i,r,o,a){this.camService=e,this.noctuaSearchMenuService=i,this.noctuaReviewSearchService=r,this.noctuaUserService=o,this.noctuaFormConfigService=a,this.SearchFilterType=I1,this.ReviewMode=Fc,this.LeftPanel=ss,this.MiddlePanel=Wo,this.RightPanel=Hh,this.cams=[],this.searchResults=[],this.displayReplaceForm={replaceSection:!1,replaceActions:!1},this.tableOptions={displayType:ru.TREE_TABLE,slimViewer:!1,editableTerms:!0,editableEvidence:!0,editableReference:!0,editableWith:!0},this.loadingSpinner={color:"primary",mode:"indeterminate"},this.noctuaFormConfig=Ht,this.searchCriteria={},this._unsubscribeAll=new z,this.camService.onCamsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(c=>{!c||(this.cams=c)})}ngOnInit(){this.noctuaReviewSearchService.onArtBasketChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}selectMiddlePanel(e){switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case Wo.cams:this.noctuaSearchMenuService.selectLeftPanel(ss.filter);break;case Wo.camsReview:case Wo.reviewChanges:this.noctuaSearchMenuService.selectLeftPanel(ss.artBasket)}}compareCategory(e,i){return!(!e||!i)&&e.name===i.name}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(Hc),de(z1),de(uo),de(lr))},t.\u0275cmp=En({type:t,selectors:[["noc-cams-review"]],decls:12,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-bar"],[1,"noc-header-title","mr-8"],[1,"noc-review-number"],[1,"noc-cams-results"],["class","noc-cam-container","fxLayout","column","fxLayoutAlign","start stretch",3,"id","ngClass",4,"ngFor","ngForOf"],["class","noc-no-info",4,"ngIf"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-cam-container",3,"id","ngClass"],["fxFlex","1 1 auto","fxLayout","row","fxLayoutAlign","start center",1,"noc-cam-heading"],["class","noc-cam-progress",3,"color","mode",4,"ngIf"],["mat-icon-button","",1,"noc-toggle-expand-button",3,"click"],[3,"icon",4,"ngIf"],[1,"noc-display-number","mr-8"],["class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxFlex",""],["mat-stroked-button","","color","primary",1,"noc-rounded-button","noc-sm",3,"matMenuTriggerFor"],[1,"noc-dropdown-menu"],["activityOptionMenu","matMenu"],["mat-menu-item","",1,"",3,"click"],["class","noc-cam-heading",4,"ngIf"],["class","noc-cam-table",3,"cam","options",4,"ngIf"],[1,"noc-cam-progress",3,"color","mode"],[3,"icon"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],[1,"text-truncate","pr-8"],[1,"noc-cam-heading"],["fxFlex","110px","fxLayout","row","fxLayoutAlign","start center",1,"noc-model-state","pr-12"],["class","noc-table-chip noc-state-chip","fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click",4,"ngIf"],["fxFlex","100px","fxLayout","row","fxLayoutAlign","start center",1,"noc-date"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add date to exact date filter",1,"noc-table-chip","noc-date-chip",3,"matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon"],["fxFlex","",1,"noc-chip-label"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["class","noc-table-chip noc-user-chip","fxLayout","row","fxLayoutAlign","start center",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","borderColor","click",4,"ngFor","ngForOf"],["fxFlex","100px","fxLayout","row","fxLayoutAlign","start center"],["mat-icon-button","","target","_blank","matTooltip","Form Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","mr-4","noc-half-button","noc-r",3,"href","matTooltipPosition","matTooltipShowDelay"],["mat-icon-button","","target","_blank","matTooltip","Graph Editor",1,"noc-edit-button","noc-rounded-button","noc-sm","noc-half-button","noc-l",3,"href","matTooltipPosition","matTooltipShowDelay"],["fxLayout","row","fxLayoutAlign","start center","matTooltip","Add state to Filters",1,"noc-table-chip","noc-state-chip",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-table-chip","noc-user-chip",3,"matTooltip","matTooltipPosition","matTooltipShowDelay","click"],[1,"noc-icon","noc-icon-initials"],[1,"noc-cam-table",3,"cam","options"],[1,"noc-no-info"],[3,"click"]],template:function(e,i){1&e&&(G(0,"div",0),Ve(1,T6t,2,0,"div",1),G(2,"div",2)(3,"span",3),he(4," Review Models"),W(),he(5," ("),G(6,"span",4),he(7),W(),he(8,") "),W(),G(9,"div",5),Ve(10,q6t,20,14,"div",6),W(),Ve(11,X6t,4,0,"div",7),W()),2&e&&(K(1),oe("ngIf",!i.noctuaUserService.user),K(6),Ft("",null==i.artBasket?null:i.artBasket.cams.length," models "),K(3),oe("ngForOf",i.cams),K(1),oe("ngIf",0===(null==i.artBasket?null:i.artBasket.cams.length)))},directives:[Lr,kr,er,vo,Qa,ec,Vr,Pv,Er,ks,Zl,T1,sl,wd,Jl,z6,Ov,QC],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;top:0;bottom:0;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-cam-progress[_ngcontent-%COMP%]{position:absolute;top:0;height:5px;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{border-bottom:#DDD solid 1px}[_nghost-%COMP%] .noc-cams[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}[_nghost-%COMP%] .noc-section-header[_ngcontent-%COMP%]{padding:8px 12px;height:80px;min-height:80px;max-height:80px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-review-number[_ngcontent-%COMP%]{color:#555;font-size:12px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%]{position:relative;padding:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container.noc-selected[_ngcontent-%COMP%]{border-left:#97dcfc solid 1px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-container.noc-selected[_ngcontent-%COMP%] .noc-cam-table[_ngcontent-%COMP%]:before{left:43px;width:5px;background-color:#97dcfc}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%]{position:relative;margin-bottom:0;padding:0 10px 0 0;height:35px;min-height:35px;max-height:35px;width:100%;background-color:#fff;font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-toggle-expand-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-title[_ngcontent-%COMP%]{max-width:400px!important}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-cam-heading-section[_ngcontent-%COMP%] .noc-section-label[_ngcontent-%COMP%]{font-size:12px;color:#555}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{padding-left:0;padding-right:8px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] .noc-model-state[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;max-width:150px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-heading[_ngcontent-%COMP%] mat-icon-button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-table[_ngcontent-%COMP%]{position:relative;padding-left:60px}[_nghost-%COMP%] .noc-cams-results[_ngcontent-%COMP%] .noc-cam-table[_ngcontent-%COMP%]:before{position:absolute;top:0;left:45px;bottom:0;width:2px;color:#fff;background-color:#798fb84d;content:""}'],data:{animation:dc}}),t})();function Q6t(t,n){1&t&&(G(0,"div",17),he(1," Log in to Continue "),W())}function K6t(t,n){1&t&&(G(0,"th",18),he(1," Category "),W())}function Z6t(t,n){if(1&t&&(G(0,"td",19),he(1),W()),2&t){const e=n.$implicit;K(1),Ft(" ",e.category," ")}}function J6t(t,n){1&t&&(G(0,"th",20),he(1,"Changes"),W())}function e_t(t,n){if(1&t&&(G(0,"td",21),he(1),W()),2&t){const e=n.$implicit;K(1),Ft(" ",e.count," ")}}function t_t(t,n){1&t&&$e(0,"tr",22)}function n_t(t,n){1&t&&(G(0,"tr",23),it("click",function(i){return i.stopPropagation()}),W())}function i_t(t,n){if(1&t){const e=Nn();G(0,"div",24),he(1," No models to review "),G(2,"a",25),it("click",function(){Ut(e);const r=He();return r.selectMiddlePanel(r.MiddlePanel.camsReview)}),he(3," Add Models "),W()()}}const r_t=function(){return{value:"50"}};let o_t=(()=>{class t{constructor(e,i,r,o,a,c){this.camService=e,this.noctuaReviewSearchService=i,this.noctuaSearchMenuService=r,this.noctuaUserService=o,this.noctuaFormConfigService=a,this.noctuaActivityFormService=c,this.ReviewMode=Fc,this.LeftPanel=ss,this.MiddlePanel=Wo,this.RightPanel=Hh,this.stats=[],this.displayedColumns=["category","count"],this._unsubscribeAll=new z,this.camService.onCamsCheckoutChanged.pipe(Ln(this._unsubscribeAll)).subscribe(u=>{!u||(this.summary=u,this.stats=this.generateStats(u.stats))})}ngOnInit(){this.noctuaReviewSearchService.onArtBasketChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}generateStats(e){return e.updateTotal(),[{category:"Genes",count:e.gpsCount},{category:"Terms",count:e.termsCount},{category:"Evidence",count:e.evidenceCount},{category:"Reference",count:e.referencesCount},{category:"With",count:e.withsCount},{category:"Relations",count:e.relationsCount}]}selectMiddlePanel(e){switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case Wo.cams:this.noctuaSearchMenuService.selectLeftPanel(ss.filter);break;case Wo.camsReview:case Wo.reviewChanges:this.noctuaSearchMenuService.selectLeftPanel(ss.artBasket)}}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Zo),de(z1),de(Hc),de(uo),de(lr),de(ps))},t.\u0275cmp=En({type:t,selectors:[["noc-cams-review-changes"]],decls:22,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"noc-drawer-body"],["class","noc-draw-body-disabled","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-summary-bar"],[1,"noc-header-title"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-stats-results"],[1,"noc-stat-summary"],[1,"noc-number"],["fxFlex","1 1 auto","mat-table","",1,"noc-summary-table",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","250px","class","noc-title","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["matColumnDef","count"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matHeaderCellDef"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["class","noc-no-info",4,"ngIf"],["fxLayoutAlign","center center",1,"noc-draw-body-disabled"],["mat-header-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","250px","fxLayout","row","fxLayoutAlign","start center",1,"noc-title"],["mat-header-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-cell","","fxFlex","","fxLayout","row","fxLayoutAlign","start center"],["mat-header-row",""],["mat-row","",3,"click"],[1,"noc-no-info"],[3,"click"]],template:function(e,i){1&e&&(G(0,"div",0),Ve(1,Q6t,2,0,"div",1),G(2,"div",2)(3,"span",3),he(4," Review and submit changes"),W()(),G(5,"div",4)(6,"div",5)(7,"span",6),he(8),W(),he(9," changes across "),G(10,"span",6),he(11),W()(),G(12,"table",7),Qr(13,8),Ve(14,K6t,2,0,"th",9),Ve(15,Z6t,2,1,"td",10),Kr(),Qr(16,11),Ve(17,J6t,2,0,"th",12),Ve(18,e_t,2,1,"td",13),Kr(),Ve(19,t_t,1,0,"tr",14),Ve(20,n_t,1,0,"tr",15),W()(),Ve(21,i_t,4,0,"div",16),W()),2&e&&(K(1),oe("ngIf",!i.noctuaUserService.user),K(7),Ft(" ",null==i.summary?null:i.summary.stats.totalChanges," "),K(3),Ft(" ",null==i.summary?null:i.summary.stats.camsCount," models "),K(1),oe("dataSource",i.stats)("@animateStagger",ai(8,r_t)),K(7),oe("matHeaderRowDef",i.displayedColumns),K(1),oe("matRowDefColumns",i.displayedColumns),K(1),oe("ngIf",0===(null==i.artBasket?null:i.artBasket.cams.length)))},styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%]{position:sticky;top:101px;margin-bottom:4px;padding:0 10px 0 20px;height:40px;min-height:40px;max-height:40px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-art-tools[_ngcontent-%COMP%]{margin-right:16px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] .noc-pagesize-select[_ngcontent-%COMP%]{width:50px}[_nghost-%COMP%] .noc-summary-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:400;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%]{padding:0 20px;height:40px;width:100%;background-color:#f2f2f2;border-bottom:#bbb solid 1px}[_nghost-%COMP%] .noc-toolbar[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{line-height:38px;color:#555;font-size:14px;font-weight:700}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%]{padding:20px 10px 300px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%]{padding:12px 0;font-size:16px}[_nghost-%COMP%] .noc-stats-results[_ngcontent-%COMP%] .noc-stat-summary[_ngcontent-%COMP%] .noc-number[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%]{width:400px;min-width:400px;max-width:400px}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .noc-column-flex[_ngcontent-%COMP%]{min-width:150px!important}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]{padding:0 5px;font-size:12px!important;color:#000;border-right:#aaa solid 1px;position:relative;overflow-wrap:break-word}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .noc-edit-button[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding:0 10px;font-size:10px!important;color:#3b5998;text-transform:uppercase;font-weight:700}[_nghost-%COMP%] .noc-summary-table[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;border-bottom:rgba(121,143,184,.3) solid 1px}'],data:{animation:dc}}),t})();const a_t=["leftDrawer"],s_t=["rightDrawer"];function c_t(t,n){if(1&t&&(G(0,"div",29),he(1),W()),2&t){const e=He();K(1),Ft(" ",null==e.artBasket?null:e.artBasket.cams.length," ")}}function l_t(t,n){1&t&&$e(0,"noc-search-filter")}function d_t(t,n){1&t&&$e(0,"noc-search-relation")}function u_t(t,n){1&t&&$e(0,"noc-search-groups")}function h_t(t,n){1&t&&$e(0,"noc-search-contributors")}function p_t(t,n){1&t&&$e(0,"noc-search-organisms")}function f_t(t,n){1&t&&$e(0,"noc-search-history")}function g_t(t,n){if(1&t&&(G(0,"h4",30),he(1," You must "),G(2,"a",31),he(3," Login "),W(),he(4," to create or edit models. Models may be viewed without login. "),W()),2&t){const e=He();K(2),Yr("href",e.noctuaFormConfigService.loginUrl,ir)}}const m_t=function(t){return{"noc-selected":t}};function __t(t,n){if(1&t){const e=Nn();G(0,"div",32)(1,"div",33)(2,"div",34),he(3," Create "),W(),G(4,"div",35)(5,"button",36),it("click",function(){Ut(e);const r=He();return r.createModel(r.WorkbenchId.VISUAL_PATHWAY_EDITOR)}),he(6," PATHWAY "),$e(7,"br"),he(8," EDITOR "),G(9,"div",37),he(10," new "),W()(),G(11,"button",38),it("click",function(){Ut(e);const r=He();return r.createModel(r.WorkbenchId.FORM)}),he(12," FORM "),$e(13,"br"),he(14,"EDITOR "),W(),G(15,"button",39),it("click",function(){Ut(e);const r=He();return r.createModel(r.WorkbenchId.GRAPH_EDITOR)}),he(16," GRAPH "),$e(17,"br"),he(18," EDITOR "),W()()(),G(19,"div",40)(20,"div",34)(21,"span"),he(22,"Review"),W()(),G(23,"div",35)(24,"button",41),it("click",function(){return Ut(e),He().toggleReviewMode()}),he(25," ANNOTATION REVIEW "),$e(26,"br"),he(27," TOOL "),W()()()()}if(2&t){const e=He();K(24),oe("ngClass",Pr(1,m_t,e.noctuaSearchMenuService.reviewMode!==e.ReviewMode.off))}}const EV=function(t,n){return{"noc-active":t,"noc-visited":n}},TV=function(t){return{"noc-visited":t}};function v_t(t,n){if(1&t){const e=Nn();G(0,"div",42)(1,"div",43),$e(2,"div",44),G(3,"button",45),it("click",function(){Ut(e);const r=He();return r.selectMiddlePanel(r.MiddlePanel.cams)}),G(4,"div",46),he(5,"Search"),W(),$e(6,"br"),G(7,"div",47),he(8,"Add/remove to review"),W(),G(9,"div",29),he(10),W()(),$e(11,"div",48),G(12,"button",45),it("click",function(){Ut(e);const r=He();return r.selectMiddlePanel(r.MiddlePanel.camsReview)}),G(13,"div",46),he(14,"Review"),W(),$e(15,"br"),G(16,"div",47),he(17,"Edit models"),W()(),$e(18,"div",48),G(19,"button",45),it("click",function(){Ut(e);const r=He();return r.selectMiddlePanel(r.MiddlePanel.reviewChanges)}),G(20,"div",46),he(21,"Checkout"),W(),$e(22,"br"),G(23,"div",47),he(24,"Review and submit changes"),W()(),$e(25,"div",49),W()()}if(2&t){const e=He();K(3),oe("ngClass",k9(7,EV,e.noctuaSearchMenuService.selectedMiddlePanel===e.MiddlePanel.cams,e.noctuaSearchMenuService.reviewLevel>0)),K(7),Ft(" ",null==e.artBasket?null:e.artBasket.cams.length," selected "),K(1),oe("ngClass",Pr(10,TV,e.noctuaSearchMenuService.reviewLevel>0)),K(1),oe("ngClass",k9(12,EV,e.noctuaSearchMenuService.selectedMiddlePanel===e.MiddlePanel.camsReview,e.noctuaSearchMenuService.reviewLevel>1)),K(6),oe("ngClass",Pr(15,TV,e.noctuaSearchMenuService.reviewLevel>1)),K(1),oe("ngClass",k9(17,EV,e.noctuaSearchMenuService.selectedMiddlePanel===e.MiddlePanel.reviewChanges,e.noctuaSearchMenuService.reviewLevel>2)),K(6),oe("ngClass",Pr(20,TV,e.noctuaSearchMenuService.reviewLevel>2))}}function C_t(t,n){1&t&&$e(0,"noc-cam-form",50),2&t&&(He(),oe("panelDrawer",Di(43)))}function b_t(t,n){1&t&&$e(0,"noc-copy-model",51),2&t&&(He(),oe("panelDrawer",Di(43))("panelSide","right"))}const m8=function(t){return{"noc-active":t}},x_t=function(){return["fas","search"]},y_t=function(){return["fas","user"]},w_t=function(){return["fas","users"]},M_t=function(){return["fas","paw"]},O_t=function(){return["fas","history"]},S_t=function(){return["fas","shopping-basket"]},K2e=function(){return{delay:"100ms",y:"25px"}},Z2e=function(t){return{value:"*",params:t}},P_t=[{path:"s",component:(()=>{class t{constructor(e,i,r,o,a,c,u,f){this.route=e,this.camService=i,this.noctuaReviewSearchService=r,this.noctuaFormConfigService=o,this.noctuaCommonMenuService=a,this.noctuaSearchMenuService=c,this.noctuaUserService=u,this.noctuaSearchService=f,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.scrollbarConfig={suppressScrollX:!0},this.WorkbenchId=U0,this.ReviewMode=Fc,this.LeftPanel=ss,this.MiddlePanel=Wo,this.RightPanel=Hh,this.artBasket=new P_,this.cams=[],this._unsubscribeAll=new z,this.route.queryParams.subscribe(w=>{const E=w.barista_token||null;this.noctuaSearchService.paramsToSearch(w),this.noctuaUserService.getUser(E)}),this.noctuaSearchService.onCamsPageChanged.pipe(Ln(this._unsubscribeAll)).subscribe(w=>{!w||(this.camPage=w)}),this.noctuaUserService.onUserChanged.pipe(ns(this.noctuaUserService.distinctUser),Ln(this._unsubscribeAll)).subscribe(w=>{void 0!==w&&(this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.noctuaSearchService.setup(),this.noctuaReviewSearchService.setup())})}ngOnInit(){this.noctuaSearchMenuService.setLeftDrawer(this.leftDrawer),this.noctuaSearchMenuService.setRightDrawer(this.rightDrawer),this.rightDrawer.open(),this.noctuaSearchService.onCamsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{this.cams=e}),this.noctuaReviewSearchService.onArtBasketChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}ngAfterViewInit(){this.noctuaSearchMenuService.resultsViewScrollbar=this.scrollbarRef}openLeftDrawer(e){this.noctuaSearchMenuService.selectLeftPanel(e),this.noctuaSearchMenuService.openLeftDrawer()}selectMiddlePanel(e){const i=this;switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case Wo.cams:this.noctuaSearchMenuService.selectLeftPanel(ss.filter);break;case Wo.camsReview:case Wo.reviewChanges:i.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectLeftPanel(ss.artBasket)}}openRightDrawer(e){this.noctuaSearchMenuService.selectRightPanel(e),this.noctuaSearchMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaSearchMenuService.toggleLeftDrawer(e),this.noctuaSearchMenuService.selectMiddlePanel(Wo.cams)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openBasketPanel(){this.openLeftDrawer(ss.artBasket),this.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectMiddlePanel(Wo.camsReview),this.noctuaSearchMenuService.reviewMode=Fc.on,this.noctuaSearchMenuService.isReviewMode=!0}toggleReviewMode(){this.noctuaSearchMenuService.reviewMode===Fc.off?(this.noctuaSearchMenuService.reviewMode=Fc.on,this.noctuaSearchMenuService.isReviewMode=!0):this.noctuaSearchMenuService.reviewMode===Fc.on&&(this.noctuaReviewSearchService.onClearForm.next(!0),this.noctuaSearchMenuService.reviewMode=Fc.off,this.noctuaSearchMenuService.selectMiddlePanel(Wo.cams),this.noctuaSearchMenuService.selectLeftPanel(ss.filter),this.noctuaSearchMenuService.isReviewMode=!1)}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Tu),de(Zo),de(z1),de(lr),de($c),de(Hc),de(uo),de(R1))},t.\u0275cmp=En({type:t,selectors:[["noc-noctua-search"]],viewQuery:function(e,i){if(1&e&&(fr(a_t,7),fr(s_t,7),fr(d4,5)),2&e){let r;hi(r=pi())&&(i.leftDrawer=r.first),hi(r=pi())&&(i.rightDrawer=r.first),hi(r=pi())&&(i.scrollbarRef=r.first)}},decls:47,vars:71,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-icon-button","","color","","matTooltip","Filter",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],[3,"icon"],["mat-icon-button","","color","","matTooltip","Browse by contributor",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Browse by group",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Search by organism",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","History",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["mat-icon-button","","color","","matTooltip","Art Basket",1,"noc-rounded-button",3,"ngClass","matTooltipPosition","matTooltipShowDelay","click"],["class","noc-badge",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start","autosize","",1,"h-100-p",3,"hasBackdrop"],["mode","side","position","start","opened","",1,"noc-left-drawer"],["leftDrawer",""],[1,"h-100-p",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"hidden"],[1,"noc-section-body","w-100-p",3,"perfectScrollbar"],["scrollbarRef",""],["fxLayout","column","fxLayoutAlign","center center",1,"header","accent","p-8","w-100-p"],["class","",4,"ngIf"],["class","noc-create","fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["class","noc-art-info","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[1,"noc-middle-panel","w-100-p"],[1,"w-100-p",3,"hidden","isReviewMode"],[1,"w-100-p"],["mode","over","position","end",1,"noc-right-drawer"],["rightDrawer",""],[3,"panelDrawer",4,"ngSwitchCase"],[3,"panelDrawer","panelSide",4,"ngSwitchCase"],[1,"noc-badge"],[1,""],["mat-button","",1,"noc-login-button",3,"href"],["fxLayout","row","fxLayoutAlign","start center",1,"noc-create"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","75",1,"noc-create-section"],[1,"noc-heading"],["fxLayout","row","fxLayoutAlign","start center"],["mat-raised-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-r",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-badge"],["mat-raised-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-m",3,"click"],["mat-raised-button","","color","",1,"noc-rounded-button","mr-4","noc-half-button","noc-l",3,"click"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","25",1,"noc-create-section"],["mat-raised-button","","color","",1,"noc-rounded-button","noc-half-button","noc-review-mode-button",3,"ngClass","click"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-art-info"],["fxLayout","row","fxLayoutAlign","center center",1,"noc-art-tabs"],["fxFlex","",1,"noc-line","noc-visited"],["mat-stroked-button","","color","",1,"",3,"ngClass","click"],[1,"noc-title"],[1,"noc-description"],["fxFlex","80px",1,"noc-line",3,"ngClass"],["fxFlex","",1,"noc-line",3,"ngClass"],[3,"panelDrawer"],[3,"panelDrawer","panelSide"]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"button",2),it("click",function(){return i.toggleLeftDrawer(i.LeftPanel.filter)}),$e(3,"fa-icon",3),W(),G(4,"button",4),it("click",function(){return i.toggleLeftDrawer(i.LeftPanel.contributor)}),$e(5,"fa-icon",3),W(),G(6,"button",5),it("click",function(){return i.toggleLeftDrawer(i.LeftPanel.group)}),$e(7,"fa-icon",3),W(),G(8,"button",6),it("click",function(){return i.toggleLeftDrawer(i.LeftPanel.organism)}),$e(9,"fa-icon",3),W(),G(10,"button",7),it("click",function(){return i.toggleLeftDrawer(i.LeftPanel.history)}),$e(11,"fa-icon",3),W(),G(12,"button",8),it("click",function(){return i.openBasketPanel()}),Ve(13,c_t,2,1,"div",9),$e(14,"fa-icon",3),W()(),G(15,"mat-drawer-container",10)(16,"mat-drawer",11,12)(18,"div",13),Ve(19,l_t,1,0,"noc-search-filter",14),Ve(20,d_t,1,0,"noc-search-relation",14),Ve(21,u_t,1,0,"noc-search-groups",14),Ve(22,h_t,1,0,"noc-search-contributors",14),Ve(23,p_t,1,0,"noc-search-organisms",14),Ve(24,f_t,1,0,"noc-search-history",14),$e(25,"noc-art-basket",15),W()(),G(26,"mat-drawer-content",16,17)(28,"div",18)(29,"h1"),he(30," WELCOME TO NOCTUA "),W(),G(31,"h3"),he(32," Noctua is a web-based, collaborative Gene Ontology (GO) annotation tool developed by the GO Consortium. It can be used to create standard GO annotations as well as more expressive models of biological processes, known as GO-CAMs (Gene Ontology Causal Activity Models) "),W(),Ve(33,g_t,5,1,"h4",19),Ve(34,__t,28,3,"div",20),W(),Ve(35,v_t,26,22,"div",21),G(36,"div",22),$e(37,"noc-cams-table",23)(38,"noc-cams-review",15)(39,"noc-cams-review-changes",15),W(),G(40,"div",24),$e(41,"app-footer"),W()(),G(42,"mat-drawer",25,26)(44,"div",13),Ve(45,C_t,1,1,"noc-cam-form",27),Ve(46,b_t,1,2,"noc-copy-model",28),W()()()()),2&e&&(K(2),oe("ngClass",Pr(47,m8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.filter))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(49,x_t)),K(1),oe("ngClass",Pr(50,m8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.contributor))("matTooltipPosition","after")("matTooltipShowDelay",1e3),K(1),oe("icon",ai(52,y_t)),K(1),oe("ngClass",Pr(53,m8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.group))("matTooltipPosition","after")("matTooltipShowDelay",1e3),K(1),oe("icon",ai(55,w_t)),K(1),oe("ngClass",Pr(56,m8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.organism))("matTooltipPosition","after")("matTooltipShowDelay",1e3),K(1),oe("icon",ai(58,M_t)),K(1),oe("ngClass",Pr(59,m8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.history))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(61,O_t)),K(1),oe("ngClass",Pr(62,m8,i.noctuaSearchMenuService.selectedLeftPanel===i.LeftPanel.artBasket))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("ngIf",(null==i.artBasket?null:i.artBasket.cams.length)>0),K(1),oe("icon",ai(64,S_t)),K(1),oe("hasBackdrop",!1),K(3),oe("ngSwitch",i.noctuaSearchMenuService.selectedLeftPanel),K(1),oe("ngSwitchCase",i.LeftPanel.filter),K(1),oe("ngSwitchCase",i.LeftPanel.relation),K(1),oe("ngSwitchCase",i.LeftPanel.group),K(1),oe("ngSwitchCase",i.LeftPanel.contributor),K(1),oe("ngSwitchCase",i.LeftPanel.organism),K(1),oe("ngSwitchCase",i.LeftPanel.history),K(1),oe("hidden",i.noctuaSearchMenuService.selectedLeftPanel!==i.LeftPanel.artBasket),K(1),oe("perfectScrollbar",i.scrollbarConfig),K(3),oe("@animate",Pr(66,Z2e,ai(65,K2e))),K(2),oe("@animate",Pr(69,Z2e,ai(68,K2e))),K(2),oe("ngIf",!i.noctuaUserService.user),K(1),oe("ngIf",i.noctuaUserService.user),K(1),oe("ngIf",i.noctuaSearchMenuService.reviewMode!==i.ReviewMode.off),K(2),oe("hidden",i.noctuaSearchMenuService.selectedMiddlePanel!==i.MiddlePanel.cams)("isReviewMode",i.noctuaSearchMenuService.isReviewMode),K(1),oe("hidden",i.noctuaSearchMenuService.selectedMiddlePanel!==i.MiddlePanel.camsReview),K(1),oe("hidden",i.noctuaSearchMenuService.selectedMiddlePanel!==i.MiddlePanel.reviewChanges),K(5),oe("ngSwitch",i.noctuaSearchMenuService.selectedRightPanel),K(1),oe("ngSwitchCase",i.RightPanel.camForm),K(1),oe("ngSwitchCase",i.RightPanel.copyModel))},directives:[Lr,kr,Er,Jl,Qa,ec,ks,er,Jg,Vr,Zg,V2,Ou,u5t,m5t,v5t,b5t,y5t,P5t,vse,Xp,d4,Ov,E6t,$6t,o_t,Yz,DF,LF],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%;background-color:#fff}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;top:0;bottom:0;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:0;height:100%;min-height:100%;max-height:100%;width:60px;min-width:60px;max-width:60px;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px;font-size:20px;color:#3b599880}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{font-size:28px;color:#3b5998}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:20px;height:20px;color:#fff;background-color:#ff9800;font-size:10px;text-align:center;line-height:20px}[_nghost-%COMP%] .noc-welcome[_ngcontent-%COMP%]{padding:10px}[_nghost-%COMP%] .noc-section-body[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{padding-bottom:10px;background-image:linear-gradient(to right,#00174f,rgba(0,23,79,.8),rgba(0,23,79,.5)),url(gene.373d39c394531926.jpeg);background-blend-mode:initial;background-size:cover;background-position:top;padding-top:50px!important;position:relative;flex:1 0 auto;height:320px;min-width:800px;max-height:320px;text-align:center;overflow:hidden}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%]{height:200px;min-width:600px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:40px;font-weight:300;letter-spacing:.01em;text-align:center;margin-top:0;margin-bottom:16px;color:#ffffffe6}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{max-width:80%;text-align:center;font-weight:300;letter-spacing:.03em;margin:0;color:#fff;line-height:1.5}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{padding-top:10px;max-width:80%;text-align:center;font-weight:300;font-size:12px;margin:0;color:#fffc}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .noc-login-button[_ngcontent-%COMP%]{margin-left:4px;margin-right:4px;margin-top:20px;background-color:#52a16c;color:#eee}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%]{margin-top:20px;padding:8px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-create-section[_ngcontent-%COMP%]{margin:8px;padding:8px;background-color:#039be580}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]{width:100%;color:#eee;font-size:16px;font-weight:700;text-transform:uppercase;margin-bottom:8px;overflow:hidden}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:before, [_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:after{background-color:#ddd;content:"";display:inline-block;height:1px;position:relative;vertical-align:middle;width:50%}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:before{right:.5em;margin-left:-50%}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] .noc-heading[_ngcontent-%COMP%]:after{left:.5em;margin-right:-50%}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 8px;color:#039be5;height:50px;min-height:50px;max-height:50px;line-height:20px;width:140px;font-size:12px;text-transform:capitalize!important;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:500}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:-8px;right:8px;border-radius:7px;width:40px;height:15px;color:#eee;background-color:#3c8b43;font-size:10px;text-align:center;line-height:15px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button.noc-review-mode-button.noc-selected[_ngcontent-%COMP%]{background-color:#cdf8cd;box-shadow:10px 10px 40px #e3e3e3;color:#000}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%]{margin-bottom:5px;position:sticky;position:-webkit-sticky;top:0;z-index:1001;padding:0;height:100px;min-height:100px;max-height:100px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{display:block;height:5px;border-top:#ccc solid 1px;border-bottom:#ccc solid 1px;background-color:#ccc;padding:0}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line.noc-visited[_ngcontent-%COMP%]{border-top:#768bb7 solid 1px;border-bottom:#768bb7 solid 1px;background-color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:180px;min-width:180px;max-width:180px;line-height:12px!important;border:#bbb solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:-8px;right:-12px;border-radius:7px;width:70px;height:15px;color:#eee;background-color:#ff9800;font-size:10px;text-align:center;line-height:15px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px;color:#aaa}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#bbb}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%]{border:#768bb7 solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{border:#355190 solid 1px;border-bottom:#355190 solid 5px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-icon-separator[_ngcontent-%COMP%]{margin:0 12px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{position:sticky;top:0;margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin-right:8px;font-weight:400;font-size:10px;height:25px;min-height:25px;max-height:25px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%]{font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-filter-number[_ngcontent-%COMP%]{font-weight:700;color:#3b5998}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%]{border:#da7f7f solid 1px;background-color:#da7f7f33;font-size:10px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#da7f7f}[_nghost-%COMP%] .noc-middle-panel[_ngcontent-%COMP%]{min-height:500px;border-bottom:200px}[_nghost-%COMP%] .noc-table-container[_ngcontent-%COMP%]{min-height:500px}'],data:{animation:dc}}),t})()}];let J2e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[A1,ta,G2.forChild(P_t),Qf,Zp,eb,RC,Fm,tP]]}),t})();var qE=(()=>(function(t){t.home="home",t.checklist="checklist",t.obsolete="obsolete",t.terms="terms",t.group="group",t.contributor="contributor",t.calendar="calendar",t.chat="chat",t.notes="notes",t.activities="activities"}(qE||(qE={})),qE))(),Xm=(()=>(function(t){t.home="home",t.cams="cams",t.camsReview="camReview",t.reviewChanges="reviewChanges"}(Xm||(Xm={})),Xm))();let E_t=(()=>{class t{constructor(){this.isReviewMode=!1,this.reviewLevel=0,this.selectedLeftPanel=qE.obsolete,this.selectedMiddlePanel=Xm.cams}selectLeftPanel(e){this.selectedLeftPanel=e}selectMiddlePanel(e){this.selectedMiddlePanel=e,e===Xm.cams?this.reviewLevel=0:e===Xm.camsReview?this.reviewLevel=1:e===Xm.reviewChanges&&(this.reviewLevel=2),this.scrollToTop()}selectRightPanel(e){this.selectedRightPanel=e}setLeftDrawer(e){this.leftDrawer=e}openLeftDrawer(){return this.leftDrawer.open()}closeLeftDrawer(){return this.leftDrawer.close()}toggleLeftDrawer(e){if(this.selectedLeftPanel!==e)return this.selectLeftPanel(e),this.openLeftDrawer();this.leftDrawer.toggle()}setRightDrawer(e){this.rightDrawer=e}openRightDrawer(){return this.rightDrawer.open()}closeRightDrawer(){return this.rightDrawer.close()}scrollToTop(){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToTop(0)}))})}scrollTo(e){setTimeout(()=>{this.resultsViewScrollbar&&(this.resultsViewScrollbar.update(),setTimeout(()=>{this.resultsViewScrollbar.scrollToElement(e,-140,1e3)}))})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const T_t=["leftDrawer"],A_t=["rightDrawer"],D_t=function(){return["fas","plus"]},_8=function(t){return{"noc-active":t}},v8=function(){return["fas","home"]},ede=function(){return{delay:"100ms",y:"25px"}},tde=function(t){return{value:"*",params:t}},L_t=[{path:"doctor",component:(()=>{class t{constructor(e,i,r,o,a,c,u,f,w){this.route=e,this.camService=i,this.noctuaDoctorMenuService=r,this.noctuaReviewSearchService=o,this.noctuaFormConfigService=a,this.noctuaCommonMenuService=c,this.noctuaSearchMenuService=u,this.noctuaUserService=f,this.noctuaSearchService=w,this.loadingSpinner={color:"primary",mode:"indeterminate"},this.scrollbarConfig={suppressScrollX:!0},this.ReviewMode=Fc,this.LeftPanel=ss,this.MiddlePanel=Wo,this.RightPanel=Hh,this.artBasket=new P_,this.searchResults=[],this.modelId="",this.searchCriteria={},this.searchFormData=[],this.cams=[],this._unsubscribeAll=new z,this.route.queryParams.subscribe(E=>{this.noctuaUserService.getUser(E.barista_token||null)}),this.noctuaSearchService.onCamsPageChanged.pipe(Ln(this._unsubscribeAll)).subscribe(E=>{!E||(this.camPage=E)}),this.noctuaUserService.onUserChanged.pipe(ns(this.noctuaUserService.distinctUser),Ln(this._unsubscribeAll)).subscribe(E=>{void 0!==E&&(this.noctuaFormConfigService.setupUrls(),this.noctuaFormConfigService.setUniversalUrls(),this.noctuaSearchService.setup(),this.noctuaReviewSearchService.setup())})}ngOnInit(){this.noctuaSearchMenuService.setLeftDrawer(this.leftDrawer),this.noctuaSearchMenuService.setRightDrawer(this.rightDrawer),this.rightDrawer.open(),this.noctuaSearchService.onCamsChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{this.cams=e}),this.noctuaReviewSearchService.onArtBasketChanged.pipe(Ln(this._unsubscribeAll)).subscribe(e=>{e&&(this.artBasket=e)})}ngAfterViewInit(){this.noctuaSearchMenuService.resultsViewScrollbar=this.scrollbarRef}openLeftDrawer(e){this.noctuaSearchMenuService.selectLeftPanel(e),this.noctuaSearchMenuService.openLeftDrawer()}selectMiddlePanel(e){const i=this;switch(this.noctuaSearchMenuService.selectMiddlePanel(e),e){case Wo.cams:this.noctuaSearchMenuService.selectLeftPanel(ss.filter);break;case Wo.camsReview:case Wo.reviewChanges:i.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectLeftPanel(ss.artBasket)}}openRightDrawer(e){this.noctuaSearchMenuService.selectRightPanel(e),this.noctuaSearchMenuService.openRightDrawer()}toggleLeftDrawer(e){this.noctuaSearchMenuService.toggleLeftDrawer(e),this.noctuaSearchMenuService.selectMiddlePanel(Wo.cams)}createModel(e){this.noctuaCommonMenuService.createModel(e)}openBasketPanel(){this.openLeftDrawer(ss.artBasket),this.camService.reviewChangesCams(),this.noctuaSearchMenuService.selectMiddlePanel(Wo.camsReview),this.noctuaSearchMenuService.reviewMode=Fc.on,this.noctuaSearchMenuService.isReviewMode=!0}toggleReviewMode(){this.noctuaSearchMenuService.reviewMode===Fc.off?(this.noctuaSearchMenuService.reviewMode=Fc.on,this.noctuaSearchMenuService.isReviewMode=!0):this.noctuaSearchMenuService.reviewMode===Fc.on&&(this.noctuaReviewSearchService.onClearForm.next(!0),this.noctuaSearchMenuService.reviewMode=Fc.off,this.noctuaSearchMenuService.selectMiddlePanel(Wo.cams),this.noctuaSearchMenuService.selectLeftPanel(ss.filter),this.noctuaSearchMenuService.isReviewMode=!1)}search(){this.noctuaSearchService.search(this.searchForm.value)}refresh(){this.noctuaSearchService.updateSearch()}reset(){this.noctuaSearchService.clearSearchCriteria()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(Tu),de(Zo),de(E_t),de(z1),de(lr),de($c),de(Hc),de(uo),de(R1))},t.\u0275cmp=En({type:t,selectors:[["noc-noctua-doctor"]],viewQuery:function(e,i){if(1&e&&(fr(T_t,7),fr(A_t,7),fr(d4,5)),2&e){let r;hi(r=pi())&&(i.leftDrawer=r.first),hi(r=pi())&&(i.rightDrawer=r.first),hi(r=pi())&&(i.scrollbarRef=r.first)}},decls:47,vars:58,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"w-100-p","h-100-p"],["fxLayout","column","fxLayoutAlign","start center",1,"noc-sidemenu"],["mat-button","","color","","fxLayout","row","fxLayoutAlign","start center","matTooltip","Filter",1,"noc-rounded-button","green-400-bg",3,"matTooltipPosition","matTooltipShowDelay"],[1,"noc-icon",3,"icon"],["fxFlex","",1,"noc-label"],["mat-button","","color","","fxLayout","row","fxLayoutAlign","start center","matTooltip","Board home",1,"",3,"ngClass","matTooltipPosition","matTooltipShowDelay"],["fxFlex","","fxLayout","row","fxLayoutAlign","start start","autosize","",1,"h-100-p",3,"hasBackdrop"],["mode","side","position","start","opened","",1,"noc-left-drawer"],["leftDrawer",""],[1,"h-100-p",3,"ngSwitch"],[1,"noc-section-body","w-100-p",3,"perfectScrollbar"],["scrollbarRef",""],["fxLayout","column","fxLayoutAlign","center center",1,"header","accent","p-8","w-100-p"],[1,"noc-middle-panel","w-100-p"],[1,"w-100-p"],["mode","over","position","end",1,"noc-right-drawer"],["rightDrawer",""]],template:function(e,i){1&e&&(G(0,"div",0)(1,"div",1)(2,"button",2),$e(3,"fa-icon",3),G(4,"div",4),he(5," Create "),W()(),G(6,"button",5),$e(7,"fa-icon",3),G(8,"div",4),he(9," Home "),W()(),G(10,"button",5),$e(11,"fa-icon",3),G(12,"div",4),he(13," Obsolete Manager "),W()(),G(14,"button",5),$e(15,"fa-icon",3),G(16,"div",4),he(17," My Terms "),W()(),G(18,"button",5),$e(19,"fa-icon",3),G(20,"div",4),he(21," Checklist "),W()(),G(22,"button",5),$e(23,"fa-icon",3),G(24,"div",4),he(25," Calendar "),W()(),G(26,"button",5),$e(27,"fa-icon",3),G(28,"div",4),he(29," Chat "),W()()(),G(30,"mat-drawer-container",6)(31,"mat-drawer",7,8),$e(33,"div",9),W(),G(34,"mat-drawer-content",10,11)(36,"div",12)(37,"h1"),he(38," WELCOME TO NOCTUA DOCTOR "),W(),G(39,"h3"),he(40," Notify "),W()(),$e(41,"div",13),G(42,"div",14),$e(43,"app-footer"),W()(),G(44,"mat-drawer",15,16),$e(46,"div",9),W()()()),2&e&&(K(2),oe("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(33,D_t)),K(3),oe("ngClass",Pr(34,_8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(36,v8)),K(3),oe("ngClass",Pr(37,_8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(39,v8)),K(3),oe("ngClass",Pr(40,_8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(42,v8)),K(3),oe("ngClass",Pr(43,_8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(45,v8)),K(3),oe("ngClass",Pr(46,_8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(48,v8)),K(3),oe("ngClass",Pr(49,_8,i.noctuaDoctorMenuService.selectedMiddlePanel===i.MiddlePanel.home))("matTooltipPosition","after")("matTooltipShowDelay",1500),K(1),oe("icon",ai(51,v8)),K(3),oe("hasBackdrop",!1),K(3),oe("ngSwitch",i.noctuaSearchMenuService.selectedLeftPanel),K(1),oe("perfectScrollbar",i.scrollbarConfig),K(3),oe("@animate",Pr(53,tde,ai(52,ede))),K(2),oe("@animate",Pr(56,tde,ai(55,ede))),K(7),oe("ngSwitch",i.noctuaSearchMenuService.selectedRightPanel))},directives:[Lr,kr,Er,Jl,ks,Vr,Qa,ec,Jg,Zg,V2,Xp,d4,Yz],styles:['.ps__rail-x[_ngcontent-%COMP%]{top:3px;top:initial!important;bottom:0!important}i[_ngcontent-%COMP%]{font-size:12px!important;color:#000;line-height:initial!important;height:initial!important;min-height:initial!important;max-height:initial!important;width:initial!important;min-width:initial!important;max-width:initial!important}mat-chip.noc-chip-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;font-size:10px}mat-chip.noc-chip-xs[_ngcontent-%COMP%]{height:20px;min-height:20px;max-height:20px;font-size:10px}.navbar[_ngcontent-%COMP%]{display:none!important;visibility:hidden}.noc-activity-create-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:900px;min-width:900px;max-width:900px}.noc-activity-create-dialog[_ngcontent-%COMP%] noc-activity-form[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;width:100%;min-width:100%;max-width:100%}@media screen and (max-width: 1279px){.noc-activity-create-dialog[_ngcontent-%COMP%]{width:95%;min-width:95%;max-width:95%}}.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-select-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-link-to-existing-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-search-database-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-search-database-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-add-evidence-dialog[_ngcontent-%COMP%], .noc-confirm-copy-model-dialog[_ngcontent-%COMP%]{height:200px;min-height:200px;max-height:200px;width:600px;min-width:600px;max-width:600px}.noc-search-evidence-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1000px;min-width:1000px;max-width:1000px}@media screen and (max-width: 1279px){.noc-search-evidence-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-preview-activity-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-preview-activity-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:1100px;min-width:1100px;max-width:1100px}@media screen and (max-width: 1279px){.noc-cams-replace-confirm-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{height:90%;min-height:90%;max-height:90%;width:800px;min-width:800px;max-width:800px}@media screen and (max-width: 1279px){.noc-cams-review-changes-dialog[_ngcontent-%COMP%]{width:90%;min-width:90%;max-width:90%}}.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:600px;min-width:600px;max-width:600px}@media screen and (min-width: 600px) and (max-width: 959px){.noc-cams-unsaved-dialog[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%}}.noc-display-number[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-radius:50%;height:30px;min-height:30px;max-height:30px;width:30px;min-width:30px;max-width:30px;border:#bbb solid 1px;font-size:12px;z-index:2}.noc-display-number.noc-sm[_ngcontent-%COMP%]{height:25px;min-height:25px;max-height:25px;width:25px;min-width:25px;max-width:25px;font-size:10px}textarea[_ngcontent-%COMP%]{resize:none!important;overflow:hidden}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:0}.mat-form-field.noc-sm[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{font-size:12px}.mat-form-field.noc-sm[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:26px;min-height:26px;max-height:26px}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-menu-heading[_ngcontent-%COMP%]{margin:0;padding:10px 14px;background-color:#e2e2e2}.noc-dropdown-menu[_ngcontent-%COMP%] .noc-item[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;margin:0;padding:10px 14px}.noc-paginator[_ngcontent-%COMP%]{overflow:hidden;height:50px;min-height:50px;max-height:50px;display:flex;justify-content:left;align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size[_ngcontent-%COMP%]{align-items:center}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-page-size-select[_ngcontent-%COMP%]{margin-top:-15px}.noc-paginator[_ngcontent-%COMP%] .mat-paginator-container[_ngcontent-%COMP%]{height:50px!important;min-height:50px!important;max-height:50px!important}input[type=text].noc-textbox-legacy[_ngcontent-%COMP%]{padding-left:10px;height:36px;line-height:36px;outline:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;background:#fff;border:1px solid #bbb;transition:all .3s ease-in-out}.noc-button-border[_ngcontent-%COMP%]{border:1px solid #bbb;height:36px;line-height:36px;width:36px;min-width:36px;max-width:36px;border-radius:0;background-color:#f2f2f2}.noc-truncate[_ngcontent-%COMP%]{display:block;margin:0;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.noc-page-container[_ngcontent-%COMP%]{width:100%;padding:20px}.noc-container[_ngcontent-%COMP%]{position:relative;width:1100px}.noc-container[_ngcontent-%COMP%] .noc-full-w[_ngcontent-%COMP%]{width:100%!important}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%]{font-size:20px;color:#777}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:20px;color:#999;padding-left:8px;padding-right:8px}.noc-breadcrumbs[_ngcontent-%COMP%] .noc-breadcrumb.noc-active[_ngcontent-%COMP%]{color:#000}.noc-breadcrumbs[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.angular-tree-component[_ngcontent-%COMP%]{width:100%;position:relative;display:inline-block;cursor:auto;-webkit-touch-callout:auto;-webkit-user-select:auto;user-select:auto}.noc-tree[_ngcontent-%COMP%]{padding-left:0}.noc-tree[_ngcontent-%COMP%] .node-drop-slot[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0;min-height:0;max-height:0}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]:before{content:"";position:absolute;border-left:1px solid rgba(121,143,184,.3);height:100%;top:-14px;left:10px}.noc-tree[_ngcontent-%COMP%] .tree-children[_ngcontent-%COMP%]{position:relative;padding-left:0;margin-left:16px}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]{position:relative}.noc-tree[_ngcontent-%COMP%] .tree-node-leaf[_ngcontent-%COMP%]:before{content:"";position:absolute;border-bottom:1px solid rgba(121,143,184,.3);width:12px;left:12px;top:50%;transform:translateY(-50%)}.noc-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.3}.mat-row[_ngcontent-%COMP%]:hover{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background-color:#f5f5f5}.mat-row.noc-row-selected[_ngcontent-%COMP%]{background-color:#798fb826}.mat-toolbar[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{height:40px;min-height:40px;max-height:40px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.mat-toolbar[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.mat-expansion-panel-body[_ngcontent-%COMP%]{padding:0!important}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%]{padding:0 12px;height:40px;min-height:40px;max-height:40px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-header[_ngcontent-%COMP%] .noc-drawer-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%]{min-height:calc(100% - 90px)}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-body[_ngcontent-%COMP%] .noc-draw-body-disabled[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#eeeeee80;z-index:10000;color:#8b2d2d;font-weight:700;font-size:24px}.noc-drawer[_ngcontent-%COMP%] .noc-drawer-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-dialog[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%]{padding:0 12px;background-color:#3b5998b3;color:#eee;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;z-index:1000}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] .noc-dialog-header-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#eee;border:#ccc solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{color:#ccc;border:#bbb solid 1px}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-body[_ngcontent-%COMP%]{height:calc(100% - 90px);min-height:calc(100% - 90px);max-height:calc(100% - 90px)}.noc-dialog[_ngcontent-%COMP%] .noc-dialog-footer[_ngcontent-%COMP%]{padding:0 12px;height:50px;min-height:50px;max-height:50px;background-color:#f2f2f2;border-top:1px solid #ccc;z-index:1000;box-shadow:2px -5px 2px #00000042}.noc-form-section[_ngcontent-%COMP%]{width:100%;background-color:#fff}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%]{height:30px;background-color:#798fb84d}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-section-heading[_ngcontent-%COMP%]{padding-left:12px;font-size:12px;line-height:30px;color:#555}.noc-form-section[_ngcontent-%COMP%] .noc-section-header[_ngcontent-%COMP%] .noc-action-button[_ngcontent-%COMP%]{margin:0;height:30px}.noc-form-section[_ngcontent-%COMP%] .noc-section-body[_ngcontent-%COMP%]{padding:4px 8px}.noc-column-toolbar[_ngcontent-%COMP%]{padding:5px;height:40px;min-height:40px;max-height:40px;border-bottom:#bbb solid 1px;background-color:#e7ecf4;z-index:10}.noc-column-toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:30px;min-height:30px;max-height:30px;line-height:30px}.noc-column-subtoolbar[_ngcontent-%COMP%]{padding:5px;color:#0000008a;font-size:12px;font-weight:500;height:40px;min-height:40px;max-height:40px;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;border-bottom:#bbb solid 1px;background-color:#fff;z-index:10;font-family:Roboto,Helvetica Neue,sans-serif}.noc-no-info[_ngcontent-%COMP%]{padding:30px 10px;font-size:30px;font-style:italic;text-align:center;color:#aaa}.noc-alert[_ngcontent-%COMP%]{padding:10px;font-size:12px;font-style:italic}.noc-card-simple[_ngcontent-%COMP%]{margin-bottom:20px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%]{padding:10px;height:40px;min-height:40px;max-height:40px;width:100%;min-width:100%;max-width:100%;border-bottom:#ccc solid 1px}.noc-card-simple[_ngcontent-%COMP%] .noc-header[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.noc-card-simple[_ngcontent-%COMP%] .noc-body[_ngcontent-%COMP%]{width:100%;min-width:100%;max-width:100%;padding:10px}.noc-comments-badge[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;border-radius:50%;width:15px;height:15px;color:#fff;background-color:#327a37;font-size:8px;text-align:center;line-height:15px}.noc-delete-float-button[_ngcontent-%COMP%]{visibility:hidden;height:20px;min-height:20px;max-height:20px;width:20px;min-width:20px;max-width:20px;position:absolute;top:0;right:0;line-height:15px;color:#ee7979;border-radius:0}.noc-delete-float-button[_ngcontent-%COMP%]:hover{background-color:#ee7979;color:#fff}mwlResizable[_ngcontent-%COMP%]{box-sizing:border-box}.resize-handle-top[_ngcontent-%COMP%], .resize-handle-bottom[_ngcontent-%COMP%]{position:absolute;height:5px;cursor:row-resize;width:100%}.resize-handle-top[_ngcontent-%COMP%]{top:0}.resize-handle-bottom[_ngcontent-%COMP%]{bottom:0}.resize-handle-left[_ngcontent-%COMP%], .resize-handle-right[_ngcontent-%COMP%]{position:absolute;height:100%;cursor:col-resize;width:5px}.resize-handle-left[_ngcontent-%COMP%]{left:0}.resize-handle-right[_ngcontent-%COMP%]{right:0}[_nghost-%COMP%]{padding:0;width:100%;background-color:#fff}[_nghost-%COMP%] .noc-loading-container[_ngcontent-%COMP%]{background-color:#5556;position:absolute;top:0;bottom:0;right:0;left:0;z-index:1000}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%]{padding:12px 8px;height:100%;min-height:100%;max-height:100%;width:200px;min-width:200px;max-width:200px;border-right:#999 solid 1px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:8px;width:100%;min-width:100%;max-width:100%;height:30px;min-height:30px;max-height:30px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button.btn-flat[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%] .noc-sidemenu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-label[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .noc-welcome[_ngcontent-%COMP%]{padding:10px}[_nghost-%COMP%] .noc-section-body[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{padding-bottom:10px;background-image:linear-gradient(to right,#00174f,rgba(0,23,79,.8),rgba(0,23,79,.5)),url(gene.373d39c394531926.jpeg);background-blend-mode:initial;background-size:cover;background-position:top;padding-top:50px!important;position:relative;flex:1 0 auto;height:280px;min-width:800px;max-height:280px;text-align:center;overflow:hidden}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%]{height:200px;min-width:600px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:40px;font-weight:300;letter-spacing:.01em;text-align:center;margin-top:0;margin-bottom:16px;color:#ffffffe6}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{max-width:80%;text-align:center;font-weight:300;letter-spacing:.03em;margin:0;color:#fff;line-height:1.5}@media screen and (max-width: 959px){[_nghost-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14px}}[_nghost-%COMP%] .header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{padding-top:10px;max-width:80%;text-align:center;font-weight:300;font-size:12px;margin:0;color:#fffc}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .noc-login-button[_ngcontent-%COMP%]{margin-left:4px;margin-right:4px;margin-top:20px;background-color:#52a16c;color:#eee}[_nghost-%COMP%] .noc-left-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-right:#bbb solid 1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-right-drawer[_ngcontent-%COMP%]{height:100%;min-height:100%;max-height:100%;background-color:#fff;border-left:#bbb solid 1px}[_nghost-%COMP%] .mat-drawer-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-drawer-container[_ngcontent-%COMP%]{background-color:#e2e2e2}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%]{padding:8px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 8px;color:#039be5;width:250px;font-weight:500;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button.noc-review-mode-button[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{width:200px}[_nghost-%COMP%] .noc-create[_ngcontent-%COMP%] button.noc-review-mode-button.noc-selected[_ngcontent-%COMP%]{background-color:#cdf8cd;box-shadow:10px 10px 40px #e3e3e3;color:#000}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%]{margin-bottom:5px;position:sticky;position:-webkit-sticky;top:0;z-index:1001;padding:0;height:100px;min-height:100px;max-height:100px;background-color:#fff;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line[_ngcontent-%COMP%]{display:block;height:5px;border-top:#ccc solid 1px;border-bottom:#ccc solid 1px;background-color:#ccc;padding:0}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-line.noc-visited[_ngcontent-%COMP%]{border-top:#768bb7 solid 1px;border-bottom:#768bb7 solid 1px;background-color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:60px;min-height:60px;max-height:60px;width:180px;min-width:180px;max-width:180px;line-height:12px!important;border:#bbb solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-badge[_ngcontent-%COMP%]{position:absolute;top:-8px;right:-12px;border-radius:7px;width:70px;height:15px;color:#eee;background-color:#ff9800;font-size:10px;text-align:center;line-height:15px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:18px;color:#aaa}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#bbb}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%]{border:#768bb7 solid 1px}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-visited[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{font-size:12px;color:#768bb7}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%]{border:#355190 solid 1px;border-bottom:#355190 solid 5px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] button.noc-active[_ngcontent-%COMP%] .noc-description[_ngcontent-%COMP%]{color:#355190}[_nghost-%COMP%] .noc-art-info[_ngcontent-%COMP%] .noc-art-tabs[_ngcontent-%COMP%] .noc-icon-separator[_ngcontent-%COMP%]{margin:0 12px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%]{position:sticky;top:0;margin-bottom:4px;padding:0 10px;height:30px;min-height:30px;max-height:30px;background-color:#fff;font-size:16px;overflow:hidden;z-index:10;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{margin-right:8px;font-weight:400;font-size:10px;height:25px;min-height:25px;max-height:25px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%]{font-size:10px;border:#bbc9cc solid 1px;background-color:#bbc9cc33}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#bbc9cc}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-filter-chip[_ngcontent-%COMP%] .noc-filter-number[_ngcontent-%COMP%]{font-weight:700;color:#3b5998}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%]{border:#da7f7f solid 1px;background-color:#da7f7f33;font-size:10px}[_nghost-%COMP%] .noc-summary-filter-bar[_ngcontent-%COMP%] mat-chip.noc-clearall-chip[_ngcontent-%COMP%] .noc-icon[_ngcontent-%COMP%]{background-color:#da7f7f}[_nghost-%COMP%] .noc-middle-panel[_ngcontent-%COMP%]{min-height:500px;border-bottom:200px}[_nghost-%COMP%] .noc-table-container[_ngcontent-%COMP%]{min-height:500px}'],data:{animation:dc}}),t})()}];let nde=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({imports:[[A1,ta,G2.forChild(L_t),Qf,Zp,eb,RC,Fm,tP]]}),t})();function ide(t,n,e,i,r,o,a){try{var c=t[o](a),u=c.value}catch(f){return void e(f)}c.done?n(u):Promise.resolve(u).then(i,r)}const C8=(t,n)=>{for(let e in n)t[e]=n[e];return t},Co=(t,n)=>Array.from(t.querySelectorAll(n)),AV=(t,n,e)=>{e?t.classList.add(n):t.classList.remove(n)},b8=t=>{if("string"==typeof t){if("null"===t)return null;if("true"===t)return!0;if("false"===t)return!1;if(t.match(/^-?[\d\.]+$/))return parseFloat(t)}return t},L4=(t,n)=>{t.style.transform=n},XE=(t,n)=>{let e=t.matches||t.matchesSelector||t.msMatchesSelector;return!(!e||!e.call(t,n))},f2=(t,n)=>{if("function"==typeof t.closest)return t.closest(n);for(;t;){if(XE(t,n))return t;t=t.parentNode}return null},I_t=(t,n,e,i="")=>{let r=t.querySelectorAll("."+e);for(let a=0;a{let n=document.createElement("style");return n.type="text/css",t&&t.length>0&&(n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))),document.head.appendChild(n),n},rde=()=>{let t={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,n=>{t[n.split("=").shift()]=n.split("=").pop()});for(let n in t)t[n]=b8(unescape(t[n]));return void 0!==t.dependencies&&delete t.dependencies,t},N_t=(t,n=0)=>{if(t){let e,i=t.style.height;return t.style.height="0px",t.parentNode.style.height="auto",e=n-t.parentNode.offsetHeight,t.style.height=i+"px",t.parentNode.style.removeProperty("height"),e}return n},R_t={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},Tb=navigator.userAgent,z_t=document.createElement("div"),$m=/(iphone|ipod|ipad|android)/gi.test(Tb)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,F_t=/chrome/i.test(Tb)&&!/edge/i.test(Tb),ode=/android/gi.test(Tb),H_t="zoom"in z_t.style&&!$m&&(F_t||/Version\/[\d\.]+.*Safari/.test(Tb));var ade={};Object.defineProperty(ade,"__esModule",{value:!0});var sde=Object.assign||function(t){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof Wt?tn(n(document.querySelectorAll(Wt)),An):tn([Wt],An)[0]}}("undefined"==typeof window?null:window);class B_t{constructor(n){this.Reveal=n,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}shouldPreload(n){let e=this.Reveal.getConfig().preloadIframes;return"boolean"!=typeof e&&(e=n.hasAttribute("data-preload")),e}load(n,e={}){n.style.display=this.Reveal.getConfig().display,Co(n,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(r=>{("IFRAME"!==r.tagName||this.shouldPreload(r))&&(r.setAttribute("src",r.getAttribute("data-src")),r.setAttribute("data-lazy-loaded",""),r.removeAttribute("data-src"))}),Co(n,"video, audio").forEach(r=>{let o=0;Co(r,"source[data-src]").forEach(a=>{a.setAttribute("src",a.getAttribute("data-src")),a.removeAttribute("data-src"),a.setAttribute("data-lazy-loaded",""),o+=1}),$m&&"VIDEO"===r.tagName&&r.setAttribute("playsinline",""),o>0&&r.load()});let i=n.slideBackgroundElement;if(i){i.style.display="block";let r=n.slideBackgroundContentElement,o=n.getAttribute("data-background-iframe");if(!1===i.hasAttribute("data-loaded")){i.setAttribute("data-loaded","true");let c=n.getAttribute("data-background-image"),u=n.getAttribute("data-background-video"),f=n.hasAttribute("data-background-video-loop"),w=n.hasAttribute("data-background-video-muted");if(c)r.style.backgroundImage=/^data:/.test(c.trim())?`url(${c.trim()})`:c.split(",").map(E=>`url(${encodeURI(E.trim())})`).join(",");else if(u&&!this.Reveal.isSpeakerNotes()){let E=document.createElement("video");f&&E.setAttribute("loop",""),w&&(E.muted=!0),$m&&(E.muted=!0,E.setAttribute("playsinline","")),u.split(",").forEach(B=>{let Z=((ee="")=>R_t[ee.split(".").pop()])(B);E.innerHTML+=Z?``:``}),r.appendChild(E)}else if(o&&!0!==e.excludeIframes){let E=document.createElement("iframe");E.setAttribute("allowfullscreen",""),E.setAttribute("mozallowfullscreen",""),E.setAttribute("webkitallowfullscreen",""),E.setAttribute("allow","autoplay"),E.setAttribute("data-src",o),E.style.width="100%",E.style.height="100%",E.style.maxHeight="100%",E.style.maxWidth="100%",r.appendChild(E)}}let a=r.querySelector("iframe[data-src]");a&&this.shouldPreload(i)&&!/autoplay=(1|true|yes)/gi.test(o)&&a.getAttribute("src")!==o&&a.setAttribute("src",o)}this.layout(n)}layout(n){Array.from(n.querySelectorAll(".r-fit-text")).forEach(e=>{V_t(e,{minSize:24,maxSize:.8*this.Reveal.getConfig().height,observeMutations:!1,observeWindow:!1})})}unload(n){n.style.display="none";let e=this.Reveal.getSlideBackground(n);e&&(e.style.display="none",Co(e,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),Co(n,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),Co(n,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let n=(e,i,r)=>{Co(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+i+'"]').forEach(o=>{let a=o.getAttribute(e);a&&-1===a.indexOf(r)&&o.setAttribute(e,a+(/\?/.test(a)?"&":"?")+r)})};n("src","youtube.com/embed/","enablejsapi=1"),n("data-src","youtube.com/embed/","enablejsapi=1"),n("src","player.vimeo.com/","api=1"),n("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(n){n&&!this.Reveal.isSpeakerNotes()&&(Co(n,'img[src$=".gif"]').forEach(e=>{e.setAttribute("src",e.getAttribute("src"))}),Co(n,"video, audio").forEach(e=>{if(f2(e,".fragment")&&!f2(e,".fragment.visible"))return;let i=this.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof i&&(i=e.hasAttribute("data-autoplay")||!!f2(e,".slide-background")),i&&"function"==typeof e.play)if(e.readyState>1)this.startEmbeddedMedia({target:e});else if($m){let r=e.play();r&&"function"==typeof r.catch&&!1===e.controls&&r.catch(()=>{e.controls=!0,e.addEventListener("play",()=>{e.controls=!1})})}else e.removeEventListener("loadeddata",this.startEmbeddedMedia),e.addEventListener("loadeddata",this.startEmbeddedMedia)}),Co(n,"iframe[src]").forEach(e=>{f2(e,".fragment")&&!f2(e,".fragment.visible")||this.startEmbeddedIframe({target:e})}),Co(n,"iframe[data-src]").forEach(e=>{f2(e,".fragment")&&!f2(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",this.startEmbeddedIframe),e.addEventListener("load",this.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))}))}startEmbeddedMedia(n){let e=!!f2(n.target,"html"),i=!!f2(n.target,".present");e&&i&&(n.target.currentTime=0,n.target.play()),n.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(n){let e=n.target;if(e&&e.contentWindow){let i=!!f2(n.target,"html"),r=!!f2(n.target,".present");if(i&&r){let o=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof o&&(o=e.hasAttribute("data-autoplay")||!!f2(e,".slide-background")),/youtube\.com\/embed\//.test(e.getAttribute("src"))&&o?e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(e.getAttribute("src"))&&o?e.contentWindow.postMessage('{"method":"play"}',"*"):e.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(n,e={}){e=C8({unloadIframes:!0},e),n&&n.parentNode&&(Co(n,"video, audio").forEach(i=>{i.hasAttribute("data-ignore")||"function"!=typeof i.pause||(i.setAttribute("data-paused-by-reveal",""),i.pause())}),Co(n,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.startEmbeddedIframe)}),Co(n,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&"function"==typeof i.contentWindow.postMessage&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),Co(n,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&"function"==typeof i.contentWindow.postMessage&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),!0===e.unloadIframes&&Co(n,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}}class G_t{constructor(n){this.Reveal=n}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(n,e){let i="none";n.slideNumber&&!this.Reveal.isPrintingPDF()&&("all"===n.showSlideNumber||"speaker"===n.showSlideNumber&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(n=this.Reveal.getCurrentSlide()){let e,i=this.Reveal.getConfig(),r="h.v";if("function"==typeof i.slideNumber)e=i.slideNumber(n);else{"string"==typeof i.slideNumber&&(r=i.slideNumber),/c/.test(r)||1!==this.Reveal.getHorizontalSlides().length||(r="c");let a=n&&"uncounted"===n.dataset.visibility?0:1;switch(e=[],r){case"c":e.push(this.Reveal.getSlidePastCount(n)+a);break;case"c/t":e.push(this.Reveal.getSlidePastCount(n)+a,"/",this.Reveal.getTotalSlides());break;default:let c=this.Reveal.getIndices(n);e.push(c.h+a);let u="h/v"===r?"/":".";this.Reveal.isVerticalSlide(n)&&e.push(u,c.v+1)}}let o="#"+this.Reveal.location.getHash(n);return this.formatNumber(e[0],e[1],e[2],o)}formatNumber(n,e,i,r="#"+this.Reveal.location.getHash()){return"number"!=typeof i||isNaN(i)?`\n\t\t\t\t\t${n}\n\t\t\t\t\t`:`\n\t\t\t\t\t${n}\n\t\t\t\t\t${e}\n\t\t\t\t\t${i}\n\t\t\t\t\t`}destroy(){this.element.remove()}}const LV=t=>{let n=t.match(/^#([0-9a-f]{3})$/i);if(n&&n[1])return n=n[1],{r:17*parseInt(n.charAt(0),16),g:17*parseInt(n.charAt(1),16),b:17*parseInt(n.charAt(2),16)};let e=t.match(/^#([0-9a-f]{6})$/i);if(e&&e[1])return e=e[1],{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)};let i=t.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(i)return{r:parseInt(i[1],10),g:parseInt(i[2],10),b:parseInt(i[3],10)};let r=t.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return r?{r:parseInt(r[1],10),g:parseInt(r[2],10),b:parseInt(r[3],10),a:parseFloat(r[4])}:null};class Y_t{constructor(n){this.Reveal=n}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach(n=>{let e=this.createBackground(n,this.element);Co(n,"section").forEach(i=>{this.createBackground(i,e),e.classList.add("stack")})}),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout(()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")},1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(n,e){let i=document.createElement("div");i.className="slide-background "+n.className.replace(/present|past|future/,"");let r=document.createElement("div");return r.className="slide-background-content",i.appendChild(r),e.appendChild(i),n.slideBackgroundElement=i,n.slideBackgroundContentElement=r,this.sync(n),i}sync(n){const e=n.slideBackgroundElement,i=n.slideBackgroundContentElement,r={background:n.getAttribute("data-background"),backgroundSize:n.getAttribute("data-background-size"),backgroundImage:n.getAttribute("data-background-image"),backgroundVideo:n.getAttribute("data-background-video"),backgroundIframe:n.getAttribute("data-background-iframe"),backgroundColor:n.getAttribute("data-background-color"),backgroundRepeat:n.getAttribute("data-background-repeat"),backgroundPosition:n.getAttribute("data-background-position"),backgroundTransition:n.getAttribute("data-background-transition"),backgroundOpacity:n.getAttribute("data-background-opacity")},o=n.hasAttribute("data-preload");n.classList.remove("has-dark-background"),n.classList.remove("has-light-background"),e.removeAttribute("data-loaded"),e.removeAttribute("data-background-hash"),e.removeAttribute("data-background-size"),e.removeAttribute("data-background-transition"),e.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",r.background&&(/^(http|file|\/\/)/gi.test(r.background)||/\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test(r.background)?n.setAttribute("data-background-image",r.background):e.style.background=r.background),(r.background||r.backgroundColor||r.backgroundImage||r.backgroundVideo||r.backgroundIframe)&&e.setAttribute("data-background-hash",r.background+r.backgroundSize+r.backgroundImage+r.backgroundVideo+r.backgroundIframe+r.backgroundColor+r.backgroundRepeat+r.backgroundPosition+r.backgroundTransition+r.backgroundOpacity),r.backgroundSize&&e.setAttribute("data-background-size",r.backgroundSize),r.backgroundColor&&(e.style.backgroundColor=r.backgroundColor),r.backgroundTransition&&e.setAttribute("data-background-transition",r.backgroundTransition),o&&e.setAttribute("data-preload",""),r.backgroundSize&&(i.style.backgroundSize=r.backgroundSize),r.backgroundRepeat&&(i.style.backgroundRepeat=r.backgroundRepeat),r.backgroundPosition&&(i.style.backgroundPosition=r.backgroundPosition),r.backgroundOpacity&&(i.style.opacity=r.backgroundOpacity);let a=r.backgroundColor;if(!a||!LV(a)){let u=window.getComputedStyle(e);u&&u.backgroundColor&&(a=u.backgroundColor)}if(a){const u=LV(a);u&&0!==u.a&&("string"==typeof(c=a)&&(c=LV(c)),n.classList.add((c?(299*c.r+587*c.g+114*c.b)/1e3:null)<128?"has-dark-background":"has-light-background"))}var c}update(n=!1){let e=this.Reveal.getCurrentSlide(),i=this.Reveal.getIndices(),r=null,o=this.Reveal.getConfig().rtl?"future":"past",a=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach((c,u)=>{c.classList.remove("past","present","future"),ui.h?c.classList.add(a):(c.classList.add("present"),r=c),(n||u===i.h)&&Co(c,".slide-background").forEach((f,w)=>{f.classList.remove("past","present","future"),wi.v?f.classList.add("future"):(f.classList.add("present"),u===i.h&&(r=f))})}),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),r){this.Reveal.slideContent.startEmbeddedContent(r);let c=r.querySelector(".slide-background-content");if(c){let w=c.style.backgroundImage||"";/\.gif/i.test(w)&&(c.style.backgroundImage="",window.getComputedStyle(c),c.style.backgroundImage=w)}let u=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,f=r.getAttribute("data-background-hash");f&&f===u&&r!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=r}e&&["has-light-background","has-dark-background"].forEach(c=>{e.classList.contains(c)?this.Reveal.getRevealElement().classList.add(c):this.Reveal.getRevealElement().classList.remove(c)},this),setTimeout(()=>{this.element.classList.remove("no-transition")},1)}updateParallax(){let n=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let e,i,r=this.Reveal.getHorizontalSlides(),o=this.Reveal.getVerticalSlides(),a=this.element.style.backgroundSize.split(" ");1===a.length?e=i=parseInt(a[0],10):(e=parseInt(a[0],10),i=parseInt(a[1],10));let c,u,f=this.element.offsetWidth,w=r.length;c="number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:w>1?(e-f)/(w-1):0,u=c*n.h*-1;let E,B,Z=this.element.offsetHeight,ee=o.length;E="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-Z)/(ee-1),B=ee>0?E*n.v:0,this.element.style.backgroundPosition=u+"px "+-B+"px"}}destroy(){this.element.remove()}}const U_t=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener/,cde=/fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;let lde=0;class j_t{constructor(n){this.Reveal=n}run(n,e){this.reset();let i=this.Reveal.getSlides(),r=i.indexOf(e),o=i.indexOf(n);if(n.hasAttribute("data-auto-animate")&&e.hasAttribute("data-auto-animate")&&n.getAttribute("data-auto-animate-id")===e.getAttribute("data-auto-animate-id")&&!(r>o?e:n).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||DV();let a=this.getAutoAnimateOptions(e);n.dataset.autoAnimate="pending",e.dataset.autoAnimate="pending",a.slideDirection=r>o?"forward":"backward";let c=this.getAutoAnimatableElements(n,e).map(u=>this.autoAnimateElements(u.from,u.to,u.options||{},a,lde++));if("false"!==e.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){let u=.8*a.duration,f=.2*a.duration;this.getUnmatchedAutoAnimateElements(e).forEach(w=>{let E=this.getAutoAnimateOptions(w,a),B="unmatched";E.duration===a.duration&&E.delay===a.delay||(B="unmatched-"+lde++,c.push(`[data-auto-animate="running"] [data-auto-animate-target="${B}"] { transition: opacity ${E.duration}s ease ${E.delay}s; }`)),w.dataset.autoAnimateTarget=B},this),c.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${u}s ease ${f}s; }`)}this.autoAnimateStyleSheet.innerHTML=c.join(""),requestAnimationFrame(()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet),e.dataset.autoAnimate="running")}),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:n,toSlide:e,sheet:this.autoAnimateStyleSheet}})}}reset(){Co(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach(n=>{n.dataset.autoAnimate=""}),Co(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach(n=>{delete n.dataset.autoAnimateTarget}),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(n,e,i,r,o){n.dataset.autoAnimateTarget="",e.dataset.autoAnimateTarget=o;let a=this.getAutoAnimateOptions(e,r);void 0!==i.delay&&(a.delay=i.delay),void 0!==i.duration&&(a.duration=i.duration),void 0!==i.easing&&(a.easing=i.easing);let c=this.getAutoAnimatableProperties("from",n,i),u=this.getAutoAnimatableProperties("to",e,i);if(e.classList.contains("fragment")&&(delete u.styles.opacity,n.classList.contains("fragment"))&&(n.className.match(cde)||[""])[0]===(e.className.match(cde)||[""])[0]&&"forward"===r.slideDirection&&e.classList.add("visible","disabled"),!1!==i.translate||!1!==i.scale){let E=this.Reveal.getScale(),B={x:(c.x-u.x)/E,y:(c.y-u.y)/E,scaleX:c.width/u.width,scaleY:c.height/u.height};B.x=Math.round(1e3*B.x)/1e3,B.y=Math.round(1e3*B.y)/1e3,B.scaleX=Math.round(1e3*B.scaleX)/1e3,B.scaleX=Math.round(1e3*B.scaleX)/1e3;let Z=!1!==i.translate&&(0!==B.x||0!==B.y),ee=!1!==i.scale&&(0!==B.scaleX||0!==B.scaleY);if(Z||ee){let be=[];Z&&be.push(`translate(${B.x}px, ${B.y}px)`),ee&&be.push(`scale(${B.scaleX}, ${B.scaleY})`),c.styles.transform=be.join(" "),c.styles["transform-origin"]="top left",u.styles.transform="none"}}for(let E in u.styles){const B=u.styles[E],Z=c.styles[E];B===Z?delete u.styles[E]:(!0===B.explicitValue&&(u.styles[E]=B.value),!0===Z.explicitValue&&(c.styles[E]=Z.value))}let f="",w=Object.keys(u.styles);return w.length>0&&(c.styles.transition="none",u.styles.transition=`all ${a.duration}s ${a.easing} ${a.delay}s`,u.styles["transition-property"]=w.join(", "),u.styles["will-change"]=w.join(", "),f='[data-auto-animate-target="'+o+'"] {'+Object.keys(c.styles).map(E=>E+": "+c.styles[E]+" !important;").join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+o+'"] {'+Object.keys(u.styles).map(E=>E+": "+u.styles[E]+" !important;").join("")+"}"),f}getAutoAnimateOptions(n,e){let i={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(i=C8(i,e),n.parentNode){let r=f2(n.parentNode,"[data-auto-animate-target]");r&&(i=this.getAutoAnimateOptions(r,i))}return n.dataset.autoAnimateEasing&&(i.easing=n.dataset.autoAnimateEasing),n.dataset.autoAnimateDuration&&(i.duration=parseFloat(n.dataset.autoAnimateDuration)),n.dataset.autoAnimateDelay&&(i.delay=parseFloat(n.dataset.autoAnimateDelay)),i}getAutoAnimatableProperties(n,e,i){let r=this.Reveal.getConfig(),o={styles:[]};if(!1!==i.translate||!1!==i.scale){let c;if("function"==typeof i.measure)c=i.measure(e);else if(r.center)c=e.getBoundingClientRect();else{let u=this.Reveal.getScale();c={x:e.offsetLeft*u,y:e.offsetTop*u,width:e.offsetWidth*u,height:e.offsetHeight*u}}o.x=c.x,o.y=c.y,o.width=c.width,o.height=c.height}const a=getComputedStyle(e);return(i.styles||r.autoAnimateStyles).forEach(c=>{let u;"string"==typeof c&&(c={property:c}),u=void 0!==c.from&&"from"===n?{value:c.from,explicitValue:!0}:void 0!==c.to&&"to"===n?{value:c.to,explicitValue:!0}:a[c.property],""!==u&&(o.styles[c.property]=u)}),o}getAutoAnimatableElements(n,e){let i=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,n,e),r=[];return i.filter((o,a)=>{if(-1===r.indexOf(o.to))return r.push(o.to),!0})}getAutoAnimatePairs(n,e){let i=[];const r="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,n,e,"[data-id]",o=>o.nodeName+":::"+o.getAttribute("data-id")),this.findAutoAnimateMatches(i,n,e,r,o=>o.nodeName+":::"+o.innerText),this.findAutoAnimateMatches(i,n,e,"img, video, iframe",o=>o.nodeName+":::"+(o.getAttribute("src")||o.getAttribute("data-src"))),this.findAutoAnimateMatches(i,n,e,"pre",o=>o.nodeName+":::"+o.innerText),i.forEach(o=>{XE(o.from,r)?o.options={scale:!1}:XE(o.from,"pre")&&(o.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,o.from,o.to,".hljs .hljs-ln-code",a=>a.textContent,{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,o.from,o.to,".hljs .hljs-ln-line[data-line-number]",a=>a.getAttribute("data-line-number"),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))},this),i}getLocalBoundingBox(n){const e=this.Reveal.getScale();return{x:Math.round(n.offsetLeft*e*100)/100,y:Math.round(n.offsetTop*e*100)/100,width:Math.round(n.offsetWidth*e*100)/100,height:Math.round(n.offsetHeight*e*100)/100}}findAutoAnimateMatches(n,e,i,r,o,a){let c={},u={};[].slice.call(e.querySelectorAll(r)).forEach((f,w)=>{const E=o(f);"string"==typeof E&&E.length&&(c[E]=c[E]||[],c[E].push(f))}),[].slice.call(i.querySelectorAll(r)).forEach((f,w)=>{const E=o(f);let B;if(u[E]=u[E]||[],u[E].push(f),c[E]){const Z=u[E].length-1,ee=c[E].length-1;c[E][Z]?(B=c[E][Z],c[E][Z]=null):c[E][ee]&&(B=c[E][ee],c[E][ee]=null)}B&&n.push({from:B,to:f,options:a})})}getUnmatchedAutoAnimateElements(n){return[].slice.call(n.children).reduce((e,i)=>{const r=i.querySelector("[data-auto-animate-target]");return i.hasAttribute("data-auto-animate-target")||r||e.push(i),i.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(i))),e},[])}}class W_t{constructor(n){this.Reveal=n}configure(n,e){!1===n.fragments?this.disable():!1===e.fragments&&this.enable()}disable(){Co(this.Reveal.getSlidesElement(),".fragment").forEach(n=>{n.classList.add("visible"),n.classList.remove("current-fragment")})}enable(){Co(this.Reveal.getSlidesElement(),".fragment").forEach(n=>{n.classList.remove("visible"),n.classList.remove("current-fragment")})}availableRoutes(){let n=this.Reveal.getCurrentSlide();if(n&&this.Reveal.getConfig().fragments){let e=n.querySelectorAll(".fragment:not(.disabled)"),i=n.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:e.length-i.length>0,next:!!i.length}}return{prev:!1,next:!1}}sort(n,e=!1){n=Array.from(n);let i=[],r=[],o=[];n.forEach(c=>{if(c.hasAttribute("data-fragment-index")){let u=parseInt(c.getAttribute("data-fragment-index"),10);i[u]||(i[u]=[]),i[u].push(c)}else r.push([c])}),i=i.concat(r);let a=0;return i.forEach(c=>{c.forEach(u=>{o.push(u),u.setAttribute("data-fragment-index",a)}),a++}),!0===e?i:o}sortAll(){this.Reveal.getHorizontalSlides().forEach(n=>{let e=Co(n,"section");e.forEach((i,r)=>{this.sort(i.querySelectorAll(".fragment"))},this),0===e.length&&this.sort(n.querySelectorAll(".fragment"))})}update(n,e){let i={shown:[],hidden:[]},r=this.Reveal.getCurrentSlide();if(r&&this.Reveal.getConfig().fragments&&(e=e||this.sort(r.querySelectorAll(".fragment"))).length){let o=0;if("number"!=typeof n){let a=this.sort(r.querySelectorAll(".fragment.visible")).pop();a&&(n=parseInt(a.getAttribute("data-fragment-index")||0,10))}Array.from(e).forEach((a,c)=>{if(a.hasAttribute("data-fragment-index")&&(c=parseInt(a.getAttribute("data-fragment-index"),10)),o=Math.max(o,c),c<=n){let u=a.classList.contains("visible");a.classList.add("visible"),a.classList.remove("current-fragment"),c===n&&(this.Reveal.announceStatus(this.Reveal.getStatusText(a)),a.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(a)),u||(i.shown.push(a),this.Reveal.dispatchEvent({target:a,type:"visible",bubbles:!1}))}else{let u=a.classList.contains("visible");a.classList.remove("visible"),a.classList.remove("current-fragment"),u&&(this.Reveal.slideContent.stopEmbeddedContent(a),i.hidden.push(a),this.Reveal.dispatchEvent({target:a,type:"hidden",bubbles:!1}))}}),n="number"==typeof n?n:-1,n=Math.max(Math.min(n,o),-1),r.setAttribute("data-fragment",n)}return i}sync(n=this.Reveal.getCurrentSlide()){return this.sort(n.querySelectorAll(".fragment"))}goto(n,e=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let r=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(r.length){if("number"!=typeof n){let a=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();n=a?parseInt(a.getAttribute("data-fragment-index")||0,10):-1}let o=this.update(n+=e,r);return o.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:o.hidden[0],fragments:o.hidden}}),o.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:o.shown[0],fragments:o.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!o.shown.length&&!o.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}}class q_t{constructor(n){this.Reveal=n,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),Co(this.Reveal.getRevealElement(),".slides section").forEach(r=>{r.classList.contains("stack")||r.addEventListener("click",this.onSlideClicked,!0)});const n=70,e=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=e.width+n,this.overviewSlideHeight=e.height+n,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();const i=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:i.h,indexv:i.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach((n,e)=>{n.setAttribute("data-index-h",e),L4(n,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),n.classList.contains("stack")&&Co(n,"section").forEach((i,r)=>{i.setAttribute("data-index-h",e),i.setAttribute("data-index-v",r),L4(i,"translate3d(0, "+r*this.overviewSlideHeight+"px, 0)")})}),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach((n,e)=>{L4(n,"translate3d("+e*this.overviewSlideWidth+"px, 0, 0)"),Co(n,".slide-background").forEach((i,r)=>{L4(i,"translate3d(0, "+r*this.overviewSlideHeight+"px, 0)")})})}update(){const n=Math.min(window.innerWidth,window.innerHeight),e=Math.max(n/5,150)/n,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+e+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout(()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")},1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),Co(this.Reveal.getRevealElement(),".slides section").forEach(e=>{L4(e,""),e.removeEventListener("click",this.onSlideClicked,!0)}),Co(this.Reveal.getBackgroundsElement(),".slide-background").forEach(e=>{L4(e,"")}),this.Reveal.transformSlides({overview:""});const n=this.Reveal.getIndices();this.Reveal.slide(n.h,n.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:n.h,indexv:n.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(n){"boolean"==typeof n?n?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(n){if(this.isActive()){n.preventDefault();let e=n.target;for(;e&&!e.nodeName.match(/section/gi);)e=e.parentNode;if(e&&!e.classList.contains("disabled")&&(this.deactivate(),e.nodeName.match(/section/gi))){let i=parseInt(e.getAttribute("data-index-h"),10),r=parseInt(e.getAttribute("data-index-v"),10);this.Reveal.slide(i,r)}}}}class X_t{constructor(n){this.Reveal=n,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(n,e){"linear"===n.navigationMode?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Alt + ←/↑/→/↓"]="Navigate without fragments",this.shortcuts["Shift + ←/↑/→/↓"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1),document.addEventListener("keypress",this.onDocumentKeyPress,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1),document.removeEventListener("keypress",this.onDocumentKeyPress,!1)}addKeyBinding(n,e){"object"==typeof n&&n.keyCode?this.bindings[n.keyCode]={callback:e,key:n.key,description:n.description}:this.bindings[n]={callback:e,key:null,description:null}}removeKeyBinding(n){delete this.bindings[n]}triggerKey(n){this.onDocumentKeyDown({keyCode:n})}registerKeyboardShortcut(n,e){this.shortcuts[n]=e}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyPress(n){n.shiftKey&&63===n.charCode&&this.Reveal.toggleHelp()}onDocumentKeyDown(n){let e=this.Reveal.getConfig();if("function"==typeof e.keyboardCondition&&!1===e.keyboardCondition(n)||"focused"===e.keyboardCondition&&!this.Reveal.isFocused())return!0;let i=n.keyCode,r=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(n);let o=document.activeElement&&!0===document.activeElement.isContentEditable,a=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),c=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),u=!(-1!==[32,37,38,39,40,78,80].indexOf(n.keyCode)&&n.shiftKey||n.altKey)&&(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey);if(o||a||c||u)return;let f,w=[66,86,190,191];if("object"==typeof e.keyboard)for(f in e.keyboard)"togglePause"===e.keyboard[f]&&w.push(parseInt(f,10));if(this.Reveal.isPaused()&&-1===w.indexOf(i))return!1;let E="linear"===e.navigationMode||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),B=!1;if("object"==typeof e.keyboard)for(f in e.keyboard)if(parseInt(f,10)===i){let Z=e.keyboard[f];"function"==typeof Z?Z.apply(null,[n]):"string"==typeof Z&&"function"==typeof this.Reveal[Z]&&this.Reveal[Z].call(),B=!0}if(!1===B)for(f in this.bindings)if(parseInt(f,10)===i){let Z=this.bindings[f].callback;"function"==typeof Z?Z.apply(null,[n]):"string"==typeof Z&&"function"==typeof this.Reveal[Z]&&this.Reveal[Z].call(),B=!0}!1===B&&(B=!0,80===i||33===i?this.Reveal.prev({skipFragments:n.altKey}):78===i||34===i?this.Reveal.next({skipFragments:n.altKey}):72===i||37===i?n.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&E?this.Reveal.prev({skipFragments:n.altKey}):this.Reveal.left({skipFragments:n.altKey}):76===i||39===i?n.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&E?this.Reveal.next({skipFragments:n.altKey}):this.Reveal.right({skipFragments:n.altKey}):75===i||38===i?n.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&E?this.Reveal.prev({skipFragments:n.altKey}):this.Reveal.up({skipFragments:n.altKey}):74===i||40===i?n.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&E?this.Reveal.next({skipFragments:n.altKey}):this.Reveal.down({skipFragments:n.altKey}):36===i?this.Reveal.slide(0):35===i?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):32===i?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),n.shiftKey?this.Reveal.prev({skipFragments:n.altKey}):this.Reveal.next({skipFragments:n.altKey})):58===i||59===i||66===i||86===i||190===i||191===i?this.Reveal.togglePause():70===i?(Z=>{let ee=(Z=Z||document.documentElement).requestFullscreen||Z.webkitRequestFullscreen||Z.webkitRequestFullScreen||Z.mozRequestFullScreen||Z.msRequestFullscreen;ee&&ee.apply(Z)})(e.embedded?this.Reveal.getViewportElement():document.documentElement):65===i?e.autoSlideStoppable&&this.Reveal.toggleAutoSlide(r):B=!1),B?n.preventDefault&&n.preventDefault():27!==i&&79!==i||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),n.preventDefault&&n.preventDefault()),this.Reveal.cueAutoSlide()}}class $_t{constructor(n){var i;(i="MAX_REPLACE_STATE_FREQUENCY")in this?Object.defineProperty(this,i,{value:1e3,enumerable:!0,configurable:!0,writable:!0}):this[i]=1e3,this.Reveal=n,this.writeURLTimeout=0,this.replaceStateTimestamp=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}getIndicesFromHash(n=window.location.hash){let e=n.replace(/^#\/?/,""),i=e.split("/");if(/^[0-9]*$/.test(i[0])||!e.length){const r=this.Reveal.getConfig();let o,a=r.hashOneBasedIndex?1:0,c=parseInt(i[0],10)-a||0,u=parseInt(i[1],10)-a||0;return r.fragmentInURL&&(o=parseInt(i[2],10),isNaN(o)&&(o=void 0)),{h:c,v:u,f:o}}{let r,o;/\/[-\d]+$/g.test(e)&&(o=parseInt(e.split("/").pop(),10),o=isNaN(o)?void 0:o,e=e.split("/").shift());try{r=document.getElementById(decodeURIComponent(e))}catch(a){}if(r)return mj(X3({},this.Reveal.getIndices(r)),{f:o})}return null}readURL(){const n=this.Reveal.getIndices(),e=this.getIndicesFromHash();e?e.h===n.h&&e.v===n.v&&void 0===e.f||this.Reveal.slide(e.h,e.v,e.f):this.Reveal.slide(n.h||0,n.v||0)}writeURL(n){let e=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),"number"==typeof n)this.writeURLTimeout=setTimeout(this.writeURL,n);else if(i){let r=this.getHash();e.history?window.location.hash=r:e.hash&&this.debouncedReplaceState("/"===r?window.location.pathname+window.location.search:"#"+r)}}replaceState(n){window.history.replaceState(null,null,n),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(n){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(n):this.replaceStateTimeout=setTimeout(()=>this.replaceState(n),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(n){let e="/",i=n||this.Reveal.getCurrentSlide(),r=i?i.getAttribute("id"):null;r&&(r=encodeURIComponent(r));let o=this.Reveal.getIndices(n);if(this.Reveal.getConfig().fragmentInURL||(o.f=void 0),"string"==typeof r&&r.length)e="/"+r,o.f>=0&&(e+="/"+o.f);else{let a=this.Reveal.getConfig().hashOneBasedIndex?1:0;(o.h>0||o.v>0||o.f>=0)&&(e+=o.h+a),(o.v>0||o.f>=0)&&(e+="/"+(o.v+a)),o.f>=0&&(e+="/"+o.f)}return e}onWindowHashChange(n){this.readURL()}}class Q_t{constructor(n){this.Reveal=n,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this)}render(){const n=this.Reveal.getConfig().rtl,e=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`\n\t\t\t\n\t\t\t\n\t\t\t`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=Co(e,".navigate-left"),this.controlsRight=Co(e,".navigate-right"),this.controlsUp=Co(e,".navigate-up"),this.controlsDown=Co(e,".navigate-down"),this.controlsPrev=Co(e,".navigate-prev"),this.controlsNext=Co(e,".navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(n,e){this.element.style.display=n.controls?"block":"none",this.element.setAttribute("data-controls-layout",n.controlsLayout),this.element.setAttribute("data-controls-back-arrows",n.controlsBackArrows)}bind(){let n=["touchstart","click"];ode&&(n=["touchstart"]),n.forEach(e=>{this.controlsLeft.forEach(i=>i.addEventListener(e,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(i=>i.addEventListener(e,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(i=>i.addEventListener(e,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(i=>i.addEventListener(e,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(i=>i.addEventListener(e,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(i=>i.addEventListener(e,this.onNavigateNextClicked,!1))})}unbind(){["touchstart","click"].forEach(n=>{this.controlsLeft.forEach(e=>e.removeEventListener(n,this.onNavigateLeftClicked,!1)),this.controlsRight.forEach(e=>e.removeEventListener(n,this.onNavigateRightClicked,!1)),this.controlsUp.forEach(e=>e.removeEventListener(n,this.onNavigateUpClicked,!1)),this.controlsDown.forEach(e=>e.removeEventListener(n,this.onNavigateDownClicked,!1)),this.controlsPrev.forEach(e=>e.removeEventListener(n,this.onNavigatePrevClicked,!1)),this.controlsNext.forEach(e=>e.removeEventListener(n,this.onNavigateNextClicked,!1))})}update(){let n=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach(i=>{i.classList.remove("enabled","fragmented"),i.setAttribute("disabled","disabled")}),n.left&&this.controlsLeft.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),n.right&&this.controlsRight.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),n.up&&this.controlsUp.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),n.down&&this.controlsDown.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(n.left||n.up)&&this.controlsPrev.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")}),(n.right||n.down)&&this.controlsNext.forEach(i=>{i.classList.add("enabled"),i.removeAttribute("disabled")});let e=this.Reveal.getCurrentSlide();if(e){let i=this.Reveal.fragments.availableRoutes();i.prev&&this.controlsPrev.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsNext.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),this.Reveal.isVerticalSlide(e)?(i.prev&&this.controlsUp.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsDown.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")})):(i.prev&&this.controlsLeft.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}),i.next&&this.controlsRight.forEach(r=>{r.classList.add("fragmented","enabled"),r.removeAttribute("disabled")}))}if(this.Reveal.getConfig().controlsTutorial){let i=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&n.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&n.left&&0===i.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&n.right&&0===i.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}destroy(){this.unbind(),this.element.remove()}onNavigateLeftClicked(n){n.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(n){n.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(n){n.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}}class K_t{constructor(n){this.Reveal=n,this.onProgressClicked=this.onProgressClicked.bind(this)}render(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}configure(n,e){this.element.style.display=n.progress?"block":"none"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let n=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(n=0),this.bar.style.transform="scaleX("+n+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(n){this.Reveal.onUserInput(n),n.preventDefault();let e=this.Reveal.getSlides(),i=e.length,r=Math.floor(n.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(r=i-r);let o=this.Reveal.getIndices(e[r]);this.Reveal.slide(o.h,o.v)}destroy(){this.element.remove()}}class Z_t{constructor(n){this.Reveal=n,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(n,e){n.mouseWheel?(document.addEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.addEventListener("mousewheel",this.onDocumentMouseScroll,!1)):(document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1)),n.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}destroy(){this.showCursor(),document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1)}onDocumentCursorActive(n){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(n){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let e=n.detail||-n.wheelDelta;e>0?this.Reveal.next():e<0&&this.Reveal.prev()}}}const dde=(t,n)=>{const e=document.createElement("script");e.type="text/javascript",e.async=!1,e.defer=!1,e.src=t,"function"==typeof n&&(e.onload=e.onreadystatechange=r=>{("load"===r.type||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=e.onerror=null,n())},e.onerror=r=>{e.onload=e.onreadystatechange=e.onerror=null,n(new Error("Failed loading script: "+e.src+"\n"+r))});const i=document.querySelector("head");i.insertBefore(e,i.lastChild)};class J_t{constructor(n){this.Reveal=n,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(n,e){return this.state="loading",n.forEach(this.registerPlugin.bind(this)),new Promise(i=>{let r=[],o=0;if(e.forEach(a=>{a.condition&&!a.condition()||(a.async?this.asyncDependencies.push(a):r.push(a))}),r.length){o=r.length;const a=c=>{c&&"function"==typeof c.callback&&c.callback(),0==--o&&this.initPlugins().then(i)};r.forEach(c=>{"string"==typeof c.id?(this.registerPlugin(c),a(c)):"string"==typeof c.src?dde(c.src,()=>a(c)):(console.warn("Unrecognized plugin format",c),a())})}else this.initPlugins().then(i)})}initPlugins(){return new Promise(n=>{let e=Object.values(this.registeredPlugins),i=e.length;if(0===i)this.loadAsync().then(n);else{let r,o=()=>{0==--i?this.loadAsync().then(n):r()},a=0;r=()=>{let c=e[a++];if("function"==typeof c.init){let u=c.init(this.Reveal);u&&"function"==typeof u.then?u.then(o):o()}else o()},r()}})}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach(n=>{dde(n.src,n.callback)}),Promise.resolve()}registerPlugin(n){2===arguments.length&&"string"==typeof arguments[0]?(n=arguments[1]).id=arguments[0]:"function"==typeof n&&(n=n());let e=n.id;"string"!=typeof e?console.warn("Unrecognized plugin format; can't find plugin.id",n):void 0===this.registeredPlugins[e]?(this.registeredPlugins[e]=n,"loaded"===this.state&&"function"==typeof n.init&&n.init(this.Reveal)):console.warn('reveal.js: "'+e+'" plugin has already been registered')}hasPlugin(n){return!!this.registeredPlugins[n]}getPlugin(n){return this.registeredPlugins[n]}getRegisteredPlugins(){return this.registeredPlugins}destroy(){Object.values(this.registeredPlugins).forEach(n=>{"function"==typeof n.destroy&&n.destroy()}),this.registeredPlugins={},this.asyncDependencies=[]}}class e8t{constructor(n){this.Reveal=n}setupPDF(){var n=this;return function k_t(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function a(u){ide(o,i,r,a,c,"next",u)}function c(u){ide(o,i,r,a,c,"throw",u)}a(void 0)})}}(function*(){const e=n.Reveal.getConfig(),i=Co(n.Reveal.getRevealElement(),".slides section"),r=e.slideNumber&&/all|print/i.test(e.showSlideNumber),o=n.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),a=Math.floor(o.width*(1+e.margin)),c=Math.floor(o.height*(1+e.margin)),u=o.width,f=o.height;yield new Promise(requestAnimationFrame),DV("@page{size:"+a+"px "+c+"px; margin: 0px;}"),DV(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+u+"px; max-height:"+f+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=a+"px",document.body.style.height=c+"px";const w=document.querySelector(".reveal-viewport");let E;if(w){const be=window.getComputedStyle(w);be&&be.background&&(E=be.background)}yield new Promise(requestAnimationFrame),n.Reveal.layoutSlideContents(u,f),yield new Promise(requestAnimationFrame);const B=i.map(be=>be.scrollHeight),Z=[],ee=i[0].parentNode;i.forEach(function(be,_e){if(!1===be.classList.contains("stack")){let Pe=(a-u)/2,Ie=(c-f)/2;const ge=B[_e];let Re=Math.max(Math.ceil(ge/c),1);Re=Math.min(Re,e.pdfMaxPagesPerSlide),(1===Re&&e.center||be.classList.contains("center"))&&(Ie=Math.max((c-ge)/2,0));const Ye=document.createElement("div");if(Z.push(Ye),Ye.className="pdf-page",Ye.style.height=(c+e.pdfPageHeightOffset)*Re+"px",E&&(Ye.style.background=E),Ye.appendChild(be),be.style.left=Pe+"px",be.style.top=Ie+"px",be.style.width=u+"px",this.Reveal.slideContent.layout(be),be.slideBackgroundElement&&Ye.insertBefore(be.slideBackgroundElement,be),e.showNotes){const Je=this.Reveal.getSlideNotes(be);if(Je){const ft="string"==typeof e.showNotes?e.showNotes:"inline",_t=document.createElement("div");_t.classList.add("speaker-notes"),_t.classList.add("speaker-notes-pdf"),_t.setAttribute("data-layout",ft),_t.innerHTML=Je,"separate-page"===ft?Z.push(_t):(_t.style.left="8px",_t.style.bottom="8px",_t.style.width=a-16+"px",Ye.appendChild(_t))}}if(r){const Je=_e+1,gt=document.createElement("div");gt.classList.add("slide-number"),gt.classList.add("slide-number-pdf"),gt.innerHTML=Je,Ye.appendChild(gt)}if(e.pdfSeparateFragments){const Je=this.Reveal.fragments.sort(Ye.querySelectorAll(".fragment"),!0);let gt;Je.forEach(function(ft){gt&>.forEach(function(Yt){Yt.classList.remove("current-fragment")}),ft.forEach(function(Yt){Yt.classList.add("visible","current-fragment")},this);const _t=Ye.cloneNode(!0);Z.push(_t),gt=ft},this),Je.forEach(function(ft){ft.forEach(function(_t){_t.classList.remove("visible","current-fragment")})})}else Co(Ye,".fragment:not(.fade-out)").forEach(function(Je){Je.classList.add("visible")})}},n),yield new Promise(requestAnimationFrame),Z.forEach(be=>ee.appendChild(be)),n.Reveal.dispatchEvent({type:"pdf-ready"})})()}isPrintingPDF(){return/print-pdf/gi.test(window.location.search)}}class t8t{constructor(n){this.Reveal=n,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let n=this.Reveal.getRevealElement();"onpointerdown"in window?(n.addEventListener("pointerdown",this.onPointerDown,!1),n.addEventListener("pointermove",this.onPointerMove,!1),n.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(n.addEventListener("MSPointerDown",this.onPointerDown,!1),n.addEventListener("MSPointerMove",this.onPointerMove,!1),n.addEventListener("MSPointerUp",this.onPointerUp,!1)):(n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchmove",this.onTouchMove,!1),n.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let n=this.Reveal.getRevealElement();n.removeEventListener("pointerdown",this.onPointerDown,!1),n.removeEventListener("pointermove",this.onPointerMove,!1),n.removeEventListener("pointerup",this.onPointerUp,!1),n.removeEventListener("MSPointerDown",this.onPointerDown,!1),n.removeEventListener("MSPointerMove",this.onPointerMove,!1),n.removeEventListener("MSPointerUp",this.onPointerUp,!1),n.removeEventListener("touchstart",this.onTouchStart,!1),n.removeEventListener("touchmove",this.onTouchMove,!1),n.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(n){if(XE(n,"video, audio"))return!0;for(;n&&"function"==typeof n.hasAttribute;){if(n.hasAttribute("data-prevent-swipe"))return!0;n=n.parentNode}return!1}onTouchStart(n){if(this.isSwipePrevented(n.target))return!0;this.touchStartX=n.touches[0].clientX,this.touchStartY=n.touches[0].clientY,this.touchStartCount=n.touches.length}onTouchMove(n){if(this.isSwipePrevented(n.target))return!0;let e=this.Reveal.getConfig();if(this.touchCaptured)ode&&n.preventDefault();else{this.Reveal.onUserInput(n);let i=n.touches[0].clientX,r=n.touches[0].clientY;if(1===n.touches.length&&2!==this.touchStartCount){let o=this.Reveal.availableRoutes({includeFragments:!0}),a=i-this.touchStartX,c=r-this.touchStartY;a>40&&Math.abs(a)>Math.abs(c)?(this.touchCaptured=!0,"linear"===e.navigationMode?e.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):a<-40&&Math.abs(a)>Math.abs(c)?(this.touchCaptured=!0,"linear"===e.navigationMode?e.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):c>40&&o.up?(this.touchCaptured=!0,"linear"===e.navigationMode?this.Reveal.prev():this.Reveal.up()):c<-40&&o.down&&(this.touchCaptured=!0,"linear"===e.navigationMode?this.Reveal.next():this.Reveal.down()),e.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&n.preventDefault():n.preventDefault()}}}onTouchEnd(n){this.touchCaptured=!1}onPointerDown(n){n.pointerType!==n.MSPOINTER_TYPE_TOUCH&&"touch"!==n.pointerType||(n.touches=[{clientX:n.clientX,clientY:n.clientY}],this.onTouchStart(n))}onPointerMove(n){n.pointerType!==n.MSPOINTER_TYPE_TOUCH&&"touch"!==n.pointerType||(n.touches=[{clientX:n.clientX,clientY:n.clientY}],this.onTouchMove(n))}onPointerUp(n){n.pointerType!==n.MSPOINTER_TYPE_TOUCH&&"touch"!==n.pointerType||(n.touches=[{clientX:n.clientX,clientY:n.clientY}],this.onTouchEnd(n))}}class n8t{constructor(n){this.Reveal=n,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(n,e){n.embedded?this.blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)}focus(){"focus"!==this.state&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="focus"}blur(){"blur"!==this.state&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state="blur"}isFocused(){return"focus"===this.state}destroy(){this.Reveal.getRevealElement().classList.remove("focused")}onRevealPointerDown(n){this.focus()}onDocumentPointerDown(n){let e=f2(n.target,".reveal");e&&e===this.Reveal.getRevealElement()||this.blur()}}class i8t{constructor(n){this.Reveal=n}render(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}configure(n,e){n.showNotes&&this.element.setAttribute("data-layout","string"==typeof n.showNotes?n.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'No notes on this slide.')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.print.isPrintingPDF()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search.match(/receiver/gi)}getSlideNotes(n=this.Reveal.getCurrentSlide()){if(n.hasAttribute("data-notes"))return n.getAttribute("data-notes");let e=n.querySelector("aside.notes");return e?e.innerHTML:null}destroy(){this.element.remove()}}class r8t{constructor(n,e){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=n,this.progressCheck=e,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(n){const e=this.playing;this.playing=n,!e&&this.playing?this.animate():this.render()}animate(){const n=this.progress;this.progress=this.progressCheck(),n>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let n=this.playing?this.progress:0,e=this.diameter2-this.thickness,i=this.diameter2,r=this.diameter2;this.progressOffset+=.1*(1-this.progressOffset);const a=-Math.PI/2+n*(2*Math.PI),c=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,r,e+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,r,e,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,r,e,c,a,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,r-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,28),this.context.fillRect(18,0,10,28)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,28),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(n,e){this.canvas.addEventListener(n,e,!1)}off(n,e){this.canvas.removeEventListener(n,e,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}var o8t={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,respondToHashChanges:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!1,autoPlayMedia:null,preloadIframes:null,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,mouseWheel:!1,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,dependencies:[],plugins:[]};function ude(t,n){arguments.length<2&&(n=arguments[0],t=document.querySelector(".reveal"));const e={};let i,r,o,a,c,u={},f=!1,w={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},E=[],B=1,Z={layout:"",overview:""},ee={},be="idle",_e=0,Pe=0,Ie=-1,ge=!1,Re=new B_t(e),Ye=new G_t(e),Je=new j_t(e),gt=new Y_t(e),ft=new W_t(e),_t=new q_t(e),Yt=new X_t(e),tn=new $_t(e),_n=new Q_t(e),Wt=new K_t(e),An=new Z_t(e),Gn=new J_t(e),bn=new e8t(e),Kn=new n8t(e),fi=new t8t(e),oi=new i8t(e);function wi(hn){if(!t)throw'Unable to find presentation root (
).';if(ee.wrapper=t,ee.slides=t.querySelector(".slides"),!ee.slides)throw'Unable to find slides container (
).';return u=X3(X3(X3(X3(X3({},o8t),u),n),hn),rde()),Li(),window.addEventListener("load",Y4,!1),Gn.load(u.plugins,u.dependencies).then(Ai),new Promise(qn=>e.on("ready",qn))}function Li(){!0===u.embedded?ee.viewport=f2(t,".reveal-viewport")||t:(ee.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),ee.viewport.classList.add("reveal-viewport")}function Ai(){f=!0,$i(),Yn(),vi(),bo(),ni(),tgn(),zi(),tn.readURL(),gt.update(!0),setTimeout(()=>{ee.slides.classList.remove("no-transition"),ee.wrapper.classList.add("ready"),Rr({type:"ready",data:{indexh:i,indexv:r,currentSlide:a}})},1),bn.isPrintingPDF()&&(bi(),"complete"===document.readyState?bn.setupPDF():window.addEventListener("load",()=>{bn.setupPDF()}))}function $i(){u.showHiddenSlides||Co(ee.wrapper,'section[data-visibility="hidden"]').forEach(hn=>{hn.parentNode.removeChild(hn)})}function Yn(){ee.slides.classList.add("no-transition"),$m?ee.wrapper.classList.add("no-hover"):ee.wrapper.classList.remove("no-hover"),gt.render(),Ye.render(),_n.render(),Wt.render(),oi.render(),ee.pauseOverlay=I_t(ee.wrapper,"div","pause-overlay",u.controls?'':null),ee.statusElement=mo(),ee.wrapper.setAttribute("role","application")}function mo(){let hn=ee.wrapper.querySelector(".aria-status");return hn||(hn=document.createElement("div"),hn.style.position="absolute",hn.style.height="1px",hn.style.width="1px",hn.style.overflow="hidden",hn.style.clip="rect( 1px, 1px, 1px, 1px )",hn.classList.add("aria-status"),hn.setAttribute("aria-live","polite"),hn.setAttribute("aria-atomic","true"),ee.wrapper.appendChild(hn)),hn}function dr(hn){ee.statusElement.textContent=hn}function Si(hn){let qn="";if(3===hn.nodeType)qn+=hn.textContent;else if(1===hn.nodeType){let ki=hn.getAttribute("aria-hidden"),Ui="none"===window.getComputedStyle(hn).display;"true"===ki||Ui||Array.from(hn.childNodes).forEach(xo=>{qn+=Si(xo)})}return qn=qn.trim(),""===qn?"":qn+" "}function bo(){setInterval(()=>{0===ee.wrapper.scrollTop&&0===ee.wrapper.scrollLeft||(ee.wrapper.scrollTop=0,ee.wrapper.scrollLeft=0)},1e3)}function ni(){document.addEventListener("fullscreenchange",HA),document.addEventListener("webkitfullscreenchange",HA)}function vi(){u.postMessage&&window.addEventListener("message",Ove,!1)}function zi(hn){const qn=X3({},u);if("object"==typeof hn&&C8(u,hn),!1===e.isReady())return;const ki=ee.wrapper.querySelectorAll(".slides section").length;ee.wrapper.classList.remove(qn.transition),ee.wrapper.classList.add(u.transition),ee.wrapper.setAttribute("data-transition-speed",u.transitionSpeed),ee.wrapper.setAttribute("data-background-transition",u.backgroundTransition),ee.viewport.style.setProperty("--slide-width",u.width+"px"),ee.viewport.style.setProperty("--slide-height",u.height+"px"),u.shuffle&&lj(),AV(ee.wrapper,"embedded",u.embedded),AV(ee.wrapper,"rtl",u.rtl),AV(ee.wrapper,"center",u.center),!1===u.pause&&th(),u.previewLinks?(Ss(),u1("[data-preview-link=false]")):(u1(),Ss("[data-preview-link]:not([data-preview-link=false])")),Je.reset(),c&&(c.destroy(),c=null),ki>1&&u.autoSlide&&u.autoSlideStoppable&&(c=new r8t(ee.wrapper,()=>Math.min(Math.max((Date.now()-Ie)/_e,0),1)),c.on("click",cgn),ge=!1),"default"!==u.navigationMode?ee.wrapper.setAttribute("data-navigation-mode",u.navigationMode):ee.wrapper.removeAttribute("data-navigation-mode"),oi.configure(u,qn),Kn.configure(u,qn),An.configure(u,qn),_n.configure(u,qn),Wt.configure(u,qn),Yt.configure(u,qn),ft.configure(u,qn),Ye.configure(u,qn),fve()}function Dn(){window.addEventListener("resize",Eve,!1),u.touch&&fi.bind(),u.keyboard&&Yt.bind(),u.progress&&Wt.bind(),u.respondToHashChanges&&tn.bind(),_n.bind(),Kn.bind(),ee.slides.addEventListener("click",Pve,!1),ee.slides.addEventListener("transitionend",Sve,!1),ee.pauseOverlay.addEventListener("click",th,!1),u.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",Tve,!1)}function bi(){fi.unbind(),Kn.unbind(),Yt.unbind(),_n.unbind(),Wt.unbind(),tn.unbind(),window.removeEventListener("resize",Eve,!1),ee.slides.removeEventListener("click",Pve,!1),ee.slides.removeEventListener("transitionend",Sve,!1),ee.pauseOverlay.removeEventListener("click",th,!1)}function Mi(){bi(),NA(),u1(),oi.destroy(),Kn.destroy(),Gn.destroy(),An.destroy(),_n.destroy(),Wt.destroy(),gt.destroy(),Ye.destroy(),document.removeEventListener("fullscreenchange",HA),document.removeEventListener("webkitfullscreenchange",HA),document.removeEventListener("visibilitychange",Tve,!1),window.removeEventListener("message",Ove,!1),window.removeEventListener("load",Y4,!1),ee.pauseOverlay&&ee.pauseOverlay.remove(),ee.statusElement&&ee.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),ee.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),ee.wrapper.removeAttribute("data-transition-speed"),ee.wrapper.removeAttribute("data-background-transition"),ee.viewport.classList.remove("reveal-viewport"),ee.viewport.style.removeProperty("--slide-width"),ee.viewport.style.removeProperty("--slide-height"),ee.slides.style.removeProperty("width"),ee.slides.style.removeProperty("height"),ee.slides.style.removeProperty("zoom"),ee.slides.style.removeProperty("left"),ee.slides.style.removeProperty("top"),ee.slides.style.removeProperty("bottom"),ee.slides.style.removeProperty("right"),ee.slides.style.removeProperty("transform"),Array.from(ee.wrapper.querySelectorAll(".slides section")).forEach(hn=>{hn.style.removeProperty("display"),hn.style.removeProperty("top"),hn.removeAttribute("hidden"),hn.removeAttribute("aria-hidden")})}function Yi(hn,qn,ki){t.addEventListener(hn,qn,ki)}function _r(hn,qn,ki){t.removeEventListener(hn,qn,ki)}function tr(hn){"string"==typeof hn.layout&&(Z.layout=hn.layout),"string"==typeof hn.overview&&(Z.overview=hn.overview),L4(ee.slides,Z.layout?Z.layout+" "+Z.overview:Z.overview)}function Rr({target:hn=ee.wrapper,type:qn,data:ki,bubbles:Ui=!0}){let xo=document.createEvent("HTMLEvents",1,2);return xo.initEvent(qn,Ui,!0),C8(xo,ki),hn.dispatchEvent(xo),hn===ee.wrapper&&Os(qn),xo}function Os(hn,qn){if(u.postMessageEvents&&window.parent!==window.self){let ki={namespace:"reveal",eventName:hn,state:wve()};C8(ki,qn),window.parent.postMessage(JSON.stringify(ki),"*")}}function Ss(hn="a"){Array.from(ee.wrapper.querySelectorAll(hn)).forEach(qn=>{/^(http|www)/gi.test(qn.getAttribute("href"))&&qn.addEventListener("click",Ave,!1)})}function u1(hn="a"){Array.from(ee.wrapper.querySelectorAll(hn)).forEach(qn=>{/^(http|www)/gi.test(qn.getAttribute("href"))&&qn.removeEventListener("click",Ave,!1)})}function pc(hn){sd(),ee.overlay=document.createElement("div"),ee.overlay.classList.add("overlay"),ee.overlay.classList.add("overlay-preview"),ee.wrapper.appendChild(ee.overlay),ee.overlay.innerHTML=`
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site's policy (x-frame-options).\n\t\t\t\t\n\t\t\t
`,ee.overlay.querySelector("iframe").addEventListener("load",qn=>{ee.overlay.classList.add("loaded")},!1),ee.overlay.querySelector(".close").addEventListener("click",qn=>{sd(),qn.preventDefault()},!1),ee.overlay.querySelector(".external").addEventListener("click",qn=>{sd()},!1)}function zs(hn){"boolean"==typeof hn?hn?pp():sd():ee.overlay?sd():pp()}function pp(){if(u.help){sd(),ee.overlay=document.createElement("div"),ee.overlay.classList.add("overlay"),ee.overlay.classList.add("overlay-help"),ee.wrapper.appendChild(ee.overlay);let hn='

Keyboard Shortcuts


',qn=Yt.getShortcuts(),ki=Yt.getBindings();hn+="";for(let Ui in qn)hn+=``;for(let Ui in ki)ki[Ui].key&&ki[Ui].description&&(hn+=``);hn+="
KEYACTION
${Ui}${qn[Ui]}
${ki[Ui].key}${ki[Ui].description}
",ee.overlay.innerHTML=`\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
${hn}
\n\t\t\t\t
\n\t\t\t`,ee.overlay.querySelector(".close").addEventListener("click",Ui=>{sd(),Ui.preventDefault()},!1)}}function sd(){return!!ee.overlay&&(ee.overlay.parentNode.removeChild(ee.overlay),ee.overlay=null,!0)}function Y4(){if(ee.wrapper&&!bn.isPrintingPDF()){if(!u.disableLayout){$m&&!u.embedded&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");const hn=DA(),qn=B;AA(u.width,u.height),ee.slides.style.width=hn.width+"px",ee.slides.style.height=hn.height+"px",B=Math.min(hn.presentationWidth/hn.width,hn.presentationHeight/hn.height),B=Math.max(B,u.minScale),B=Math.min(B,u.maxScale),1===B?(ee.slides.style.zoom="",ee.slides.style.left="",ee.slides.style.top="",ee.slides.style.bottom="",ee.slides.style.right="",tr({layout:""})):B>1&&H_t&&window.devicePixelRatio<2?(ee.slides.style.zoom=B,ee.slides.style.left="",ee.slides.style.top="",ee.slides.style.bottom="",ee.slides.style.right="",tr({layout:""})):(ee.slides.style.zoom="",ee.slides.style.left="50%",ee.slides.style.top="50%",ee.slides.style.bottom="auto",ee.slides.style.right="auto",tr({layout:"translate(-50%, -50%) scale("+B+")"}));const ki=Array.from(ee.wrapper.querySelectorAll(".slides section"));for(let Ui=0,xo=ki.length;Ui .stretch, section > .r-stretch").forEach(ki=>{let Ui=N_t(ki,qn);if(/(img|video)/gi.test(ki.nodeName)){const xo=ki.naturalWidth||ki.videoWidth,Ia=ki.naturalHeight||ki.videoHeight,Gl=Math.min(hn/xo,Ui/Ia);ki.style.width=xo*Gl+"px",ki.style.height=Ia*Gl+"px"}else ki.style.width=hn+"px",ki.style.height=Ui+"px"})}function DA(hn,qn){const ki={width:u.width,height:u.height,presentationWidth:hn||ee.wrapper.offsetWidth,presentationHeight:qn||ee.wrapper.offsetHeight};return ki.presentationWidth-=ki.presentationWidth*u.margin,ki.presentationHeight-=ki.presentationHeight*u.margin,"string"==typeof ki.width&&/%$/.test(ki.width)&&(ki.width=parseInt(ki.width,10)/100*ki.presentationWidth),"string"==typeof ki.height&&/%$/.test(ki.height)&&(ki.height=parseInt(ki.height,10)/100*ki.presentationHeight),ki}function LA(hn,qn){"object"==typeof hn&&"function"==typeof hn.setAttribute&&hn.setAttribute("data-previous-indexv",qn||0)}function kA(hn){if("object"==typeof hn&&"function"==typeof hn.setAttribute&&hn.classList.contains("stack")){const qn=hn.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(hn.getAttribute(qn)||0,10)}return 0}function u5(hn=a){return hn&&hn.parentNode&&!!hn.parentNode.nodeName.match(/section/i)}function kx(){return!(!a||!u5(a)||a.nextElementSibling)}function Ix(){return 0===i&&0===r}function Q8(){return!(!a||a.nextElementSibling||u5(a)&&a.parentNode.nextElementSibling)}function Nx(){if(u.pause){const hn=ee.wrapper.classList.contains("paused");NA(),ee.wrapper.classList.add("paused"),!1===hn&&Rr({type:"paused"})}}function th(){const hn=ee.wrapper.classList.contains("paused");ee.wrapper.classList.remove("paused"),K8(),hn&&Rr({type:"resumed"})}function Rx(hn){"boolean"==typeof hn?hn?Nx():th():U4()?th():Nx()}function U4(){return ee.wrapper.classList.contains("paused")}function IA(hn){"boolean"==typeof hn?hn?zA():RA():ge?zA():RA()}function cj(){return!(!_e||ge)}function Bl(hn,qn,ki,Ui){if(Rr({type:"beforeslidechange",data:{indexh:void 0===hn?i:hn,indexv:void 0===qn?r:qn,origin:Ui}}).defaultPrevented)return;o=a;const xo=ee.wrapper.querySelectorAll(".slides>section");if(0===xo.length)return;void 0!==qn||_t.isActive()||(qn=kA(xo[hn])),o&&o.parentNode&&o.parentNode.classList.contains("stack")&&LA(o.parentNode,r);const Ia=E.concat();E.length=0;let Gl=i||0,W4=r||0;i=gve(".slides>section",void 0===hn?i:hn),r=gve(".slides>section.present>section",void 0===qn?r:qn);let uu=i!==Gl||r!==W4;uu||(o=null);let h1=xo[i];a=h1.querySelectorAll("section")[r]||h1;let fp=!1;uu&&o&&a&&!_t.isActive()&&(o.hasAttribute("data-auto-animate")&&a.hasAttribute("data-auto-animate")&&o.getAttribute("data-auto-animate-id")===a.getAttribute("data-auto-animate-id")&&!(i>Gl||r>W4?a:o).hasAttribute("data-auto-animate-restart")&&(fp=!0,ee.slides.classList.add("disable-slide-transitions")),be="running"),dj(),Y4(),_t.isActive()&&_t.update(),void 0!==ki&&ft.goto(ki),o&&o!==a&&(o.classList.remove("present"),o.setAttribute("aria-hidden","true"),Ix()&&setTimeout(()=>{ign().forEach(h5=>{LA(h5,0)})},0));e:for(let h5=0,lgn=E.length;h5{dr(Si(a))}),Wt.update(),_n.update(),oi.update(),gt.update(),gt.updateParallax(),Ye.update(),ft.update(),tn.writeURL(),K8(),fp&&(setTimeout(()=>{ee.slides.classList.remove("disable-slide-transitions")},0),u.autoAnimate&&Je.run(o,a))}function fve(){bi(),Dn(),Y4(),_e=u.autoSlide,K8(),gt.create(),tn.writeURL(),ft.sortAll(),_n.update(),Wt.update(),dj(),oi.update(),oi.updateVisibility(),gt.update(!0),Ye.update(),Re.formatEmbeddedContent(),!1===u.autoPlayMedia?Re.stopEmbeddedContent(a,{unloadIframes:!1}):Re.startEmbeddedContent(a),_t.isActive()&&_t.layout()}function egn(hn=a){gt.sync(hn),ft.sync(hn),Re.load(hn),gt.update(),oi.update()}function tgn(){j4().forEach(hn=>{Co(hn,"section").forEach((qn,ki)=>{ki>0&&(qn.classList.remove("present"),qn.classList.remove("past"),qn.classList.add("future"),qn.setAttribute("aria-hidden","true"))})})}function lj(hn=j4()){hn.forEach((qn,ki)=>{let Ui=hn[Math.floor(Math.random()*hn.length)];Ui.parentNode===qn.parentNode&&qn.parentNode.insertBefore(qn,Ui);let xo=qn.querySelectorAll("section");xo.length&&lj(xo)})}function gve(hn,qn){let ki=Co(ee.wrapper,hn),Ui=ki.length,xo=bn.isPrintingPDF();if(Ui){u.loop&&(qn%=Ui)<0&&(qn=Ui+qn),qn=Math.max(Math.min(qn,Ui-1),0);for(let uu=0;uu{fp.classList.add("visible"),fp.classList.remove("current-fragment")})):uu>qn&&(h1.classList.add(q3?"past":"future"),u.fragments&&Co(h1,".fragment.visible").forEach(fp=>{fp.classList.remove("visible","current-fragment")}))}let Ia=ki[qn],Gl=Ia.classList.contains("present");Ia.classList.add("present"),Ia.removeAttribute("hidden"),Ia.removeAttribute("aria-hidden"),Gl||Rr({target:Ia,type:"visible",bubbles:!1});let W4=Ia.getAttribute("data-state");W4&&(E=E.concat(W4.split(" ")))}else qn=0;return qn}function dj(){let hn,qn,ki=j4(),Ui=ki.length;if(Ui&&void 0!==i){let xo=_t.isActive()?10:u.viewDistance;$m&&(xo=_t.isActive()?6:u.mobileViewDistance),bn.isPrintingPDF()&&(xo=Number.MAX_VALUE);for(let Ia=0;Iasection"),ki=ee.wrapper.querySelectorAll(".slides>section.present>section"),Ui={left:i>0,right:i0,down:r1&&(Ui.left=!0,Ui.right=!0),ki.length>1&&(Ui.up=!0,Ui.down=!0)),qn.length>1&&"linear"===u.navigationMode&&(Ui.right=Ui.right||Ui.down,Ui.left=Ui.left||Ui.up),!0===hn){let xo=ft.availableRoutes();Ui.left=Ui.left||xo.prev,Ui.up=Ui.up||xo.prev,Ui.down=Ui.down||xo.next,Ui.right=Ui.right||xo.next}if(u.rtl){let xo=Ui.left;Ui.left=Ui.right,Ui.right=xo}return Ui}function mve(hn=a){let qn=j4(),ki=0;e:for(let Ui=0;Ui0){let Ui=.9;qn+=a.querySelectorAll(".fragment.visible").length/ki.length*Ui}}return Math.min(qn/(hn-1),1)}function _ve(hn){let qn,ki=i,Ui=r;if(hn){let xo=u5(hn),Ia=xo?hn.parentNode:hn,Gl=j4();ki=Math.max(Gl.indexOf(Ia),0),Ui=void 0,xo&&(Ui=Math.max(Co(hn.parentNode,"section").indexOf(hn),0))}if(!hn&&a&&a.querySelectorAll(".fragment").length>0){let xo=a.querySelector(".current-fragment");qn=xo&&xo.hasAttribute("data-fragment-index")?parseInt(xo.getAttribute("data-fragment-index"),10):a.querySelectorAll(".fragment.visible").length-1}return{h:ki,v:Ui,f:qn}}function uj(){return Co(ee.wrapper,'.slides section:not(.stack):not([data-visibility="uncounted"])')}function j4(){return Co(ee.wrapper,".slides>section")}function vve(){return Co(ee.wrapper,".slides>section>section")}function ign(){return Co(ee.wrapper,".slides>section.stack")}function Cve(){return j4().length>1}function bve(){return vve().length>1}function rgn(){return uj().map(hn=>{let qn={};for(let ki=0;ki{xo.hasAttribute("data-autoplay")&&_e&&1e3*xo.duration/xo.playbackRate>_e&&(_e=1e3*xo.duration/xo.playbackRate+1e3)})),!_e||ge||U4()||_t.isActive()||Q8()&&!ft.availableRoutes().next&&!0!==u.loop||(Pe=setTimeout(()=>{"function"==typeof u.autoSlideMethod?u.autoSlideMethod():gj(),K8()},_e),Ie=Date.now()),c&&c.setPlaying(-1!==Pe)}}function NA(){clearTimeout(Pe),Pe=-1}function RA(){_e&&!ge&&(ge=!0,Rr({type:"autoslidepaused"}),clearTimeout(Pe),c&&c.setPlaying(!1))}function zA(){_e&&ge&&(ge=!1,Rr({type:"autoslideresumed"}),K8())}function FA({skipFragments:hn=!1}={}){w.hasNavigatedHorizontally=!0,u.rtl?(_t.isActive()||hn||!1===ft.next())&&W3().left&&Bl(i+1,"grid"===u.navigationMode?r:void 0):(_t.isActive()||hn||!1===ft.prev())&&W3().left&&Bl(i-1,"grid"===u.navigationMode?r:void 0)}function hj({skipFragments:hn=!1}={}){w.hasNavigatedHorizontally=!0,u.rtl?(_t.isActive()||hn||!1===ft.prev())&&W3().right&&Bl(i-1,"grid"===u.navigationMode?r:void 0):(_t.isActive()||hn||!1===ft.next())&&W3().right&&Bl(i+1,"grid"===u.navigationMode?r:void 0)}function pj({skipFragments:hn=!1}={}){(_t.isActive()||hn||!1===ft.prev())&&W3().up&&Bl(i,r-1)}function fj({skipFragments:hn=!1}={}){w.hasNavigatedVertically=!0,(_t.isActive()||hn||!1===ft.next())&&W3().down&&Bl(i,r+1)}function Mve({skipFragments:hn=!1}={}){if(hn||!1===ft.prev())if(W3().up)pj({skipFragments:hn});else{let qn;if(qn=u.rtl?Co(ee.wrapper,".slides>section.future").pop():Co(ee.wrapper,".slides>section.past").pop(),qn&&qn.classList.contains("stack")){let ki=qn.querySelectorAll("section").length-1||void 0;Bl(i-1,ki)}else FA({skipFragments:hn})}}function gj({skipFragments:hn=!1}={}){if(w.hasNavigatedHorizontally=!0,w.hasNavigatedVertically=!0,hn||!1===ft.next()){let qn=W3();qn.down&&qn.right&&u.loop&&kx()&&(qn.down=!1),qn.down?fj({skipFragments:hn}):u.rtl?FA({skipFragments:hn}):hj({skipFragments:hn})}}function sgn(hn){u.autoSlideStoppable&&RA()}function Ove(hn){let qn=hn.data;if("string"==typeof qn&&"{"===qn.charAt(0)&&"}"===qn.charAt(qn.length-1)&&(qn=JSON.parse(qn),qn.method&&"function"==typeof e[qn.method]))if(!1===U_t.test(qn.method)){const ki=e[qn.method].apply(e,qn.args);Os("callback",{method:qn.method,result:ki})}else console.warn('reveal.js: "'+qn.method+'" is is blacklisted from the postMessage API')}function Sve(hn){"running"===be&&/section/gi.test(hn.target.nodeName)&&(be="idle",Rr({type:"slidetransitionend",data:{indexh:i,indexv:r,previousSlide:o,currentSlide:a}}))}function Pve(hn){const qn=f2(hn.target,'a[href^="#"]');if(qn){const ki=qn.getAttribute("href"),Ui=tn.getIndicesFromHash(ki);Ui&&(e.slide(Ui.h,Ui.v,Ui.f),hn.preventDefault())}}function Eve(hn){Y4()}function Tve(hn){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function HA(hn){(document.fullscreenElement||document.webkitFullscreenElement)===ee.wrapper&&(hn.stopImmediatePropagation(),setTimeout(()=>{e.layout(),e.focus.focus()},1))}function Ave(hn){if(hn.currentTarget&&hn.currentTarget.hasAttribute("href")){let qn=hn.currentTarget.getAttribute("href");qn&&(pc(qn),hn.preventDefault())}}function cgn(hn){Q8()&&!1===u.loop?(Bl(0,0),zA()):ge?zA():RA()}const Dve={VERSION:"4.3.1",initialize:wi,configure:zi,destroy:Mi,sync:fve,syncSlide:egn,syncFragments:ft.sync.bind(ft),slide:Bl,left:FA,right:hj,up:pj,down:fj,prev:Mve,next:gj,navigateLeft:FA,navigateRight:hj,navigateUp:pj,navigateDown:fj,navigatePrev:Mve,navigateNext:gj,navigateFragment:ft.goto.bind(ft),prevFragment:ft.prev.bind(ft),nextFragment:ft.next.bind(ft),on:Yi,off:_r,addEventListener:Yi,removeEventListener:_r,layout:Y4,shuffle:lj,availableRoutes:W3,availableFragments:ft.availableRoutes.bind(ft),toggleHelp:zs,toggleOverview:_t.toggle.bind(_t),togglePause:Rx,toggleAutoSlide:IA,isFirstSlide:Ix,isLastSlide:Q8,isLastVerticalSlide:kx,isVerticalSlide:u5,isPaused:U4,isAutoSliding:cj,isSpeakerNotes:oi.isSpeakerNotesWindow.bind(oi),isOverview:_t.isActive.bind(_t),isFocused:Kn.isFocused.bind(Kn),isPrintingPDF:bn.isPrintingPDF.bind(bn),isReady:()=>f,loadSlide:Re.load.bind(Re),unloadSlide:Re.unload.bind(Re),showPreview:pc,hidePreview:sd,addEventListeners:Dn,removeEventListeners:bi,dispatchEvent:Rr,getState:wve,setState:agn,getProgress:ngn,getIndices:_ve,getSlidesAttributes:rgn,getSlidePastCount:mve,getTotalSlides:xve,getSlide:yve,getPreviousSlide:()=>o,getCurrentSlide:()=>a,getSlideBackground:ogn,getSlideNotes:oi.getSlideNotes.bind(oi),getSlides:uj,getHorizontalSlides:j4,getVerticalSlides:vve,hasHorizontalSlides:Cve,hasVerticalSlides:bve,hasNavigatedHorizontally:()=>w.hasNavigatedHorizontally,hasNavigatedVertically:()=>w.hasNavigatedVertically,addKeyBinding:Yt.addKeyBinding.bind(Yt),removeKeyBinding:Yt.removeKeyBinding.bind(Yt),triggerKey:Yt.triggerKey.bind(Yt),registerKeyboardShortcut:Yt.registerKeyboardShortcut.bind(Yt),getComputedSlideSize:DA,getScale:()=>B,getConfig:()=>u,getQueryHash:rde,getSlidePath:tn.getHash.bind(tn),getRevealElement:()=>t,getSlidesElement:()=>ee.slides,getViewportElement:()=>ee.viewport,getBackgroundsElement:()=>gt.element,registerPlugin:Gn.registerPlugin.bind(Gn),hasPlugin:Gn.hasPlugin.bind(Gn),getPlugin:Gn.getPlugin.bind(Gn),getPlugins:Gn.getRegisteredPlugins.bind(Gn)};return C8(e,mj(X3({},Dve),{announceStatus:dr,getStatusText:Si,print:bn,focus:Kn,progress:Wt,controls:_n,location:tn,overview:_t,fragments:ft,slideContent:Re,slideNumber:Ye,onUserInput:sgn,closeOverlay:sd,updateSlidesVisibility:dj,layoutSlideContents:AA,transformSlides:tr,cueAutoSlide:K8,cancelAutoSlide:NA})),Dve}let k4=ude,hde=[];k4.initialize=t=>(Object.assign(k4,new ude(document.querySelector(".reveal"),t)),hde.map(n=>n(k4)),k4.initialize()),["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach(t=>{k4[t]=(...n)=>{hde.push(e=>e[t].call(null,...n))}}),k4.isReady=()=>!1,k4.VERSION="4.3.1";const a8t=k4;function pde(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function x8(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function fde(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,i=new Array(n);e=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var u=e.next();return a=u.done,u},e:function(u){c=!0,o=u},f:function(){try{a||null==e.return||e.return()}finally{if(c)throw o}}}}var _de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},$E=function(t){return t&&t.Math==Math&&t},ml=$E("object"==typeof globalThis&&globalThis)||$E("object"==typeof window&&window)||$E("object"==typeof self&&self)||$E("object"==typeof _de&&_de)||function(){return this}()||Function("return this")(),QE={},c1=function(t){try{return!!t()}catch(n){return!0}},I4=!c1(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),vde={},Cde={}.propertyIsEnumerable,bde=Object.getOwnPropertyDescriptor,d8t=bde&&!Cde.call({1:2},1);vde.f=d8t?function(t){var n=bde(this,t);return!!n&&n.enumerable}:Cde;var KE=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},u8t={}.toString,w8=function(t){return u8t.call(t).slice(8,-1)},h8t=w8,p8t="".split,kV=c1(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==h8t(t)?p8t.call(t,""):Object(t)}:Object,op=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},f8t=kV,g8t=op,M8=function(t){return f8t(g8t(t))},Ku=function(t){return"object"==typeof t?null!==t:"function"==typeof t},ZE=Ku,IV=function(t,n){if(!ZE(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!ZE(i=e.call(t))||"function"==typeof(e=t.valueOf)&&!ZE(i=e.call(t))||!n&&"function"==typeof(e=t.toString)&&!ZE(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")},m8t=op,Qm=function(t){return Object(m8t(t))},_8t=Qm,v8t={}.hasOwnProperty,k3=function(t,n){return v8t.call(_8t(t),n)},xde=Ku,NV=ml.document,C8t=xde(NV)&&xde(NV.createElement),RV=function(t){return C8t?NV.createElement(t):{}},b8t=RV,yde=!I4&&!c1(function(){return 7!=Object.defineProperty(b8t("div"),"a",{get:function(){return 7}}).a}),y8t=vde,w8t=KE,M8t=M8,O8t=IV,S8t=k3,P8t=yde,wde=Object.getOwnPropertyDescriptor;QE.f=I4?wde:function(t,n){if(t=M8t(t),n=O8t(n,!0),P8t)try{return wde(t,n)}catch(e){}if(S8t(t,n))return w8t(!y8t.f.call(t,n),t[n])};var ap={},E8t=Ku,rd=function(t){if(!E8t(t))throw TypeError(String(t)+" is not an object");return t},A8t=yde,Mde=rd,D8t=IV,Ode=Object.defineProperty;ap.f=I4?Ode:function(t,n,e){if(Mde(t),n=D8t(n,!0),Mde(e),A8t)try{return Ode(t,n,e)}catch(i){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var L8t=ap,k8t=KE,I3=I4?function(t,n,e){return L8t.f(t,n,k8t(1,e))}:function(t,n,e){return t[n]=e,t},N3={exports:{}},Sde=ml,I8t=I3,zV=function(t,n){try{I8t(Sde,t,n)}catch(e){Sde[t]=n}return n},FV=ml["__core-js_shared__"]||zV("__core-js_shared__",{}),HV=FV,R8t=Function.toString;"function"!=typeof HV.inspectSource&&(HV.inspectSource=function(t){return R8t.call(t)});var VV=HV.inspectSource,Pde=ml.WeakMap,F8t="function"==typeof Pde&&/native code/.test(VV(Pde)),JE={exports:{}},Ede=FV;(JE.exports=function(t,n){return Ede[t]||(Ede[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"});var eT,Db,tT,H8t=0,V8t=Math.random(),Tde=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++H8t+V8t).toString(36)},G8t=Tde,Ade=(0,JE.exports)("keys"),BV=function(t){return Ade[t]||(Ade[t]=G8t(t))},GV={},U8t=Ku,j8t=I3,YV=k3,W8t=BV,q8t=GV;if(F8t||FV.state){var Km=FV.state||(FV.state=new(0,ml.WeakMap)),$8t=Km.get,Dde=Km.has,Q8t=Km.set;eT=function(t,n){if(Dde.call(Km,t))throw new TypeError("Object already initialized");return n.facade=t,Q8t.call(Km,t,n),n},Db=function(t){return $8t.call(Km,t)||{}},tT=function(t){return Dde.call(Km,t)}}else{var O8=W8t("state");q8t[O8]=!0,eT=function(t,n){if(YV(t,O8))throw new TypeError("Object already initialized");return n.facade=t,j8t(t,O8,n),n},Db=function(t){return YV(t,O8)?t[O8]:{}},tT=function(t){return YV(t,O8)}}var S8={set:eT,get:Db,has:tT,enforce:function(t){return tT(t)?Db(t):eT(t,{})},getterFor:function(t){return function(n){var e;if(!U8t(n)||(e=Db(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},K8t=ml,Lde=I3,Z8t=k3,J8t=zV,e7t=VV,t7t=S8.get,n7t=S8.enforce,i7t=String(String).split("String");(N3.exports=function(t,n,e,i){var r,o=!!i&&!!i.unsafe,a=!!i&&!!i.enumerable,c=!!i&&!!i.noTargetGet;"function"==typeof e&&("string"!=typeof n||Z8t(e,"name")||Lde(e,"name",n),(r=n7t(e)).source||(r.source=i7t.join("string"==typeof n?n:""))),t!==K8t?(o?!c&&t[n]&&(a=!0):delete t[n],a?t[n]=e:Lde(t,n,e)):a?t[n]=e:J8t(n,e)})(Function.prototype,"toString",function(){return"function"==typeof this&&t7t(this).source||e7t(this)});var jV=ml,WV=ml,kde=function(t){return"function"==typeof t?t:void 0},Lb=function(t,n){return arguments.length<2?kde(jV[t])||kde(WV[t]):jV[t]&&jV[t][n]||WV[t]&&WV[t][n]},qV={},r7t=Math.ceil,o7t=Math.floor,kb=function(t){return isNaN(t=+t)?0:(t>0?o7t:r7t)(t)},a7t=kb,s7t=Math.min,R3=function(t){return t>0?s7t(a7t(t),9007199254740991):0},c7t=kb,l7t=Math.max,d7t=Math.min,XV=function(t,n){var e=c7t(t);return e<0?l7t(e+n,0):d7t(e,n)},u7t=M8,h7t=R3,p7t=XV,Ide=function(t){return function(n,e,i){var r,o=u7t(n),a=h7t(o.length),c=p7t(i,a);if(t&&e!=e){for(;a>c;)if((r=o[c++])!=r)return!0}else for(;a>c;c++)if((t||c in o)&&o[c]===e)return t||c||0;return!t&&-1}},Nde={includes:Ide(!0),indexOf:Ide(!1)},$V=k3,f7t=M8,g7t=Nde.indexOf,m7t=GV,Rde=function(t,n){var e,i=f7t(t),r=0,o=[];for(e in i)!$V(m7t,e)&&$V(i,e)&&o.push(e);for(;n.length>r;)$V(i,e=n[r++])&&(~g7t(o,e)||o.push(e));return o},QV=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_7t=Rde,v7t=QV.concat("length","prototype");qV.f=Object.getOwnPropertyNames||function(t){return _7t(t,v7t)};var zde={};zde.f=Object.getOwnPropertySymbols;var C7t=qV,b7t=zde,x7t=rd,y7t=Lb("Reflect","ownKeys")||function(t){var n=C7t.f(x7t(t)),e=b7t.f;return e?n.concat(e(t)):n},w7t=k3,M7t=y7t,O7t=QE,S7t=ap,P7t=c1,E7t=/#|\.prototype\./,Ib=function(t,n){var e=A7t[T7t(t)];return e==L7t||e!=D7t&&("function"==typeof n?P7t(n):!!n)},T7t=Ib.normalize=function(t){return String(t).replace(E7t,".").toLowerCase()},A7t=Ib.data={},D7t=Ib.NATIVE="N",L7t=Ib.POLYFILL="P",KV=Ib,ZV=ml,k7t=QE.f,I7t=I3,N7t=N3.exports,R7t=zV,z7t=function(t,n){for(var e=M7t(n),i=S7t.f,r=O7t.f,o=0;o0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(u="(?: "+u+")",w=" "+w,f++),e=new RegExp("^(?:"+u+")",c)),tB&&(e=new RegExp("^"+u+"$(?!\\s)",c)),eB&&(n=o.lastIndex),i=nT.call(a?e:o,w),a?i?(i.input=i.input.slice(f),i[0]=i[0].slice(f),i.index=o.lastIndex,o.lastIndex+=i[0].length):o.lastIndex=0:eB&&i&&(o.lastIndex=o.global?i.index+i[0].length:n),tB&&i&&i.length>1&&G7t.call(i[0],e,function(){for(r=1;r=74)&&(Zm=iB.match(/Chrome\/(\d+)/))&&(iT=Zm[1]);var rT=iT&&+iT,Wde=rT,qde=!!Object.getOwnPropertySymbols&&!c1(function(){return!String(Symbol())||!Symbol.sham&&Wde&&Wde<41}),U7t=qde&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,j7t=ml,Xde=k3,q7t=Tde,$de=qde,X7t=U7t,zb=(0,JE.exports)("wks"),Fb=j7t.Symbol,$7t=X7t?Fb:Fb&&Fb.withoutSetter||q7t,Kc=function(t){return Xde(zb,t)&&($de||"string"==typeof zb[t])||(zb[t]=$de&&Xde(Fb,t)?Fb[t]:$7t("Symbol."+t)),zb[t]},Qde=N3.exports,Q7t=Rb,oT=c1,rB=Kc,K7t=I3,Z7t=rB("species"),oB=RegExp.prototype,J7t=!oT(function(){var t=/./;return t.exec=function(){var n=[];return n.groups={a:"7"},n},"7"!=="".replace(t,"$")}),Kde="$0"==="a".replace(/./,"$0"),Zde=rB("replace"),Jde=!!/./[Zde]&&""===/./[Zde]("a","$0"),e9t=!oT(function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),aT=function(t,n,e,i){var r=rB(t),o=!oT(function(){var E={};return E[r]=function(){return 7},7!=""[t](E)}),a=o&&!oT(function(){var E=!1,B=/a/;return"split"===t&&((B={}).constructor={},B.constructor[Z7t]=function(){return B},B.flags="",B[r]=/./[r]),B.exec=function(){return E=!0,null},B[r](""),!E});if(!o||!a||"replace"===t&&(!J7t||!Kde||Jde)||"split"===t&&!e9t){var c=/./[r],u=e(r,""[t],function(E,B,Z,ee,be){var _e=B.exec;return _e===Q7t||_e===oB.exec?o&&!be?{done:!0,value:c.call(B,Z,ee)}:{done:!0,value:E.call(Z,B,ee)}:{done:!1}},{REPLACE_KEEPS_$0:Kde,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Jde}),w=u[1];Qde(String.prototype,t,u[0]),Qde(oB,r,2==n?function(E,B){return w.call(E,this,B)}:function(E){return w.call(E,this)})}i&&K7t(oB[r],"sham",!0)},t9t=kb,n9t=op,eue=function(t){return function(n,e){var i,r,o=String(n9t(n)),a=t9t(e),c=o.length;return a<0||a>=c?t?"":void 0:(i=o.charCodeAt(a))<55296||i>56319||a+1===c||(r=o.charCodeAt(a+1))<56320||r>57343?t?o.charAt(a):i:t?o.slice(a,a+2):r-56320+(i-55296<<10)+65536}},tue={codeAt:eue(!1),charAt:eue(!0)},i9t=tue.charAt,aB=function(t,n,e){return n+(e?i9t(t,n).length:1)},r9t=Qm,o9t=Math.floor,a9t="".replace,s9t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c9t=/\$([$&'`]|\d{1,2})/g,l9t=w8,d9t=Rb,sT=function(t,n){var e=t.exec;if("function"==typeof e){var i=e.call(t,n);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==l9t(t))throw TypeError("RegExp#exec called on incompatible receiver");return d9t.call(t,n)},h9t=rd,p9t=R3,f9t=kb,g9t=op,m9t=aB,_9t=function(t,n,e,i,r,o){var a=e+t.length,c=i.length,u=c9t;return void 0!==r&&(r=r9t(r),u=s9t),a9t.call(o,u,function(f,w){var E;switch(w.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,e);case"'":return n.slice(a);case"<":E=r[w.slice(1,-1)];break;default:var B=+w;if(0===B)return f;if(B>c){var Z=o9t(B/10);return 0===Z?f:Z<=c?void 0===i[Z-1]?w.charAt(1):i[Z-1]+w.charAt(1):f}E=i[B-1]}return void 0===E?"":E})},v9t=sT,C9t=Math.max,b9t=Math.min;aT("replace",2,function(t,n,e,i){var r=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=i.REPLACE_KEEPS_$0,a=r?"$":"$0";return[function(c,u){var f=g9t(this),w=null==c?void 0:c[t];return void 0!==w?w.call(c,f,u):n.call(String(f),c,u)},function(c,u){if(!r&&o||"string"==typeof u&&-1===u.indexOf(a)){var f=e(n,c,this,u);if(f.done)return f.value}var w=h9t(c),E=String(this),B="function"==typeof u;B||(u=String(u));var Z=w.global;if(Z){var ee=w.unicode;w.lastIndex=0}for(var be=[];;){var _e=v9t(w,E);if(null===_e||(be.push(_e),!Z))break;""===String(_e[0])&&(w.lastIndex=m9t(E,p9t(w.lastIndex),ee))}for(var Pe,Ie="",ge=0,Re=0;Re=ge&&(Ie+=E.slice(ge,Je)+tn,ge=Je+Ye.length)}return Ie+E.slice(ge)}]});var x9t=Ku,y9t=rd,sB=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),n=e instanceof Array}catch(i){}return function(i,r){return y9t(i),function(t){if(!x9t(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),n?t.call(i,r):i.__proto__=r,i}}():void 0),M9t=Ku,nue=sB,O9t=Ku,S9t=w8,P9t=Kc("match"),cB=function(t){var n;return O9t(t)&&(void 0!==(n=t[P9t])?!!n:"RegExp"==S9t(t))},E9t=Lb,T9t=ap,A9t=I4,iue=Kc("species"),rue=function(t){var n=E9t(t);A9t&&n&&!n[iue]&&(0,T9t.f)(n,iue,{configurable:!0,get:function(){return this}})},D9t=I4,oue=ml,L9t=KV,I9t=ap.f,N9t=qV.f,R9t=cB,z9t=JV,F9t=Nb,H9t=N3.exports,V9t=c1,B9t=S8.enforce,G9t=rue,Y9t=Kc("match"),sp=oue.RegExp,lB=sp.prototype,Hb=/a/g,dB=/a/g,uB=new sp(Hb)!==Hb,hB=F9t.UNSUPPORTED_Y;if(D9t&&L9t("RegExp",!uB||hB||V9t(function(){return dB[Y9t]=!1,sp(Hb)!=Hb||sp(dB)==dB||"/a/i"!=sp(Hb,"i")}))){for(var z3=function(t,n){var e,i=this instanceof z3,r=R9t(t),o=void 0===n;if(!i&&r&&t.constructor===z3&&o)return t;uB?r&&!o&&(t=t.source):t instanceof z3&&(o&&(n=z9t.call(t)),t=t.source),hB&&(e=!!n&&n.indexOf("y")>-1)&&(n=n.replace(/y/g,""));var a=function(t,n,e){var i,r;return nue&&"function"==typeof(i=n.constructor)&&i!==e&&M9t(r=i.prototype)&&r!==e.prototype&&nue(t,r),t}(uB?new sp(t,n):sp(t,n),i?this:lB,z3);return hB&&e&&(B9t(a).sticky=!0),a},U9t=function(t){t in z3||I9t(z3,t,{configurable:!0,get:function(){return sp[t]},set:function(n){sp[t]=n}})},aue=N9t(sp),sue=0;aue.length>sue;)U9t(aue[sue++]);lB.constructor=z3,z3.prototype=lB,H9t(oue,"RegExp",z3)}G9t("RegExp");var j9t=N3.exports,W9t=rd,X9t=JV,cue=RegExp.prototype,lue=cue.toString;(c1(function(){return"/a/b"!=lue.call({source:"a",flags:"b"})})||"toString"!=lue.name)&&j9t(RegExp.prototype,"toString",function(){var t=W9t(this),n=String(t.source),e=t.flags;return"/"+n+"/"+String(void 0===e&&t instanceof RegExp&&!("flags"in cue)?X9t.call(t):e)},{unsafe:!0});var K9t=rd,Z9t=R3,J9t=op,evt=aB,due=sT;aT("match",1,function(t,n,e){return[function(i){var r=J9t(this),o=null==i?void 0:i[t];return void 0!==o?o.call(i,r):new RegExp(i)[t](String(r))},function(i){var r=e(n,i,this);if(r.done)return r.value;var o=K9t(i),a=String(this);if(!o.global)return due(o,a);var c=o.unicode;o.lastIndex=0;for(var u,f=[],w=0;null!==(u=due(o,a));){var E=String(u[0]);f[w]=E,""===E&&(o.lastIndex=evt(a,Z9t(o.lastIndex),c)),w++}return 0===w?null:f}]});var pB=Function.prototype,ivt=pB.toString,rvt=/^\s*function ([^ (]*)/;I4&&!("name"in pB)&&(0,ap.f)(pB,"name",{configurable:!0,get:function(){try{return ivt.call(this).match(rvt)[1]}catch(t){return""}}});var ovt=c1,uue=function(t,n){var e=[][t];return!!e&&ovt(function(){e.call(null,n||function(){throw 1},1)})},avt=g2,svt=M8,cvt=[].join,lvt=kV!=Object,dvt=uue("join",",");avt({target:"Array",proto:!0,forced:lvt||!dvt},{join:function(t){return cvt.call(svt(this),void 0===t?",":t)}});var cT=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},hue=rd,uvt=cT,hvt=Kc("species"),pue=function(t,n){var e,i=hue(t).constructor;return void 0===i||null==(e=hue(i)[hvt])?n:uvt(e)},fvt=cB,gvt=rd,fue=op,mvt=pue,_vt=aB,vvt=R3,gue=sT,Cvt=Rb,P8=Nb.UNSUPPORTED_Y,bvt=[].push,xvt=Math.min;aT("split",2,function(t,n,e){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(r,o){var a=String(fue(this)),c=void 0===o?4294967295:o>>>0;if(0===c)return[];if(void 0===r)return[a];if(!fvt(r))return n.call(a,r,c);for(var u,f,w,E=[],Z=0,ee=new RegExp(r.source,(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":"")+"g");(u=Cvt.call(ee,a))&&!((f=ee.lastIndex)>Z&&(E.push(a.slice(Z,u.index)),u.length>1&&u.index=c));)ee.lastIndex===u.index&&ee.lastIndex++;return Z===a.length?!w&&ee.test("")||E.push(""):E.push(a.slice(Z)),E.length>c?E.slice(0,c):E}:"0".split(void 0,0).length?function(r,o){return void 0===r&&0===o?[]:n.call(this,r,o)}:n,[function(r,o){var a=fue(this),c=null==r?void 0:r[t];return void 0!==c?c.call(r,a,o):i.call(String(a),r,o)},function(r,o){var a=e(i,r,this,o,i!==n);if(a.done)return a.value;var c=gvt(r),u=String(this),f=mvt(c,RegExp),w=c.unicode,B=new f(P8?"^(?:"+c.source+")":c,(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(P8?"g":"y")),Z=void 0===o?4294967295:o>>>0;if(0===Z)return[];if(0===u.length)return null===gue(B,u)?[u]:[];for(var ee=0,be=0,_e=[];beIe;Ie++)if((c||Ie in be)&&(Z=_e(B=be[Ie],Ie,ee),t))if(n)Re[Ie]=Z;else if(Z)switch(t){case 3:return!0;case 5:return B;case 6:return Ie;case 2:Cue.call(Re,B)}else switch(t){case 4:return!1;case 7:Cue.call(Re,B)}return o?-1:i||r?r:Re}},bB={forEach:N4(0),map:N4(1),filter:N4(2),some:N4(3),every:N4(4),find:N4(5),findIndex:N4(6),filterOut:N4(7)},Rvt=bB.forEach,zvt=ml,Fvt=_ue,xB=uue("forEach")?[].forEach:function(t){return Rvt(this,t,arguments.length>1?arguments[1]:void 0)},Hvt=I3;for(var Vvt in Fvt){var bue=zvt[Vvt],dT=bue&&bue.prototype;if(dT&&dT.forEach!==xB)try{Hvt(dT,"forEach",xB)}catch(t){dT.forEach=xB}}var xue={};xue[Kc("toStringTag")]="z";var yB="[object z]"===String(xue),Bvt=yB,uT=w8,Gvt=Kc("toStringTag"),Yvt="Arguments"==uT(function(){return arguments}()),yue=Bvt?uT:function(t){var n,e,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(r,o){try{return r[o]}catch(a){}}(n=Object(t),Gvt))?e:Yvt?uT(n):"Object"==(i=uT(n))&&"function"==typeof n.callee?"Arguments":i},Uvt=yue;yB||(0,N3.exports)(Object.prototype,"toString",yB?{}.toString:function(){return"[object "+Uvt(this)+"]"},{unsafe:!0});var $vt=ml.Promise,Qvt=N3.exports,Kvt=ap.f,Zvt=k3,wue=Kc("toStringTag"),wB=function(t,n,e){t&&!Zvt(t=e?t:t.prototype,wue)&&Kvt(t,wue,{configurable:!0,value:n})},Vb={},Jvt=Vb,eCt=Kc("iterator"),tCt=Array.prototype,nCt=yue,iCt=Vb,rCt=Kc("iterator"),oCt=rd,aCt=rd,cCt=R3,lCt=_B,Mue=function(t){var n=t.return;if(void 0!==n)return oCt(n.call(t)).value},Bb=function(t,n){this.stopped=t,this.result=n},Oue=Kc("iterator"),Sue=!1;try{var uCt=0,Pue={next:function(){return{done:!!uCt++}},return:function(){Sue=!0}};Pue[Oue]=function(){return this},Array.from(Pue,function(){throw 2})}catch(t){}var E8,Eue,MB,Tue=Lb("document","documentElement"),Aue=/(?:iphone|ipod|ipad).*applewebkit/i.test(nB),OB="process"==w8(ml.process),cp=ml,hCt=c1,pCt=_B,Due=Tue,Lue=RV,hT=cp.location,SB=cp.setImmediate,PB=cp.clearImmediate,mCt=cp.process,kue=cp.MessageChannel,EB=cp.Dispatch,TB=0,Gb={},AB=function(t){if(Gb.hasOwnProperty(t)){var n=Gb[t];delete Gb[t],n()}},DB=function(t){return function(){AB(t)}},Iue=function(t){AB(t.data)},Nue=function(t){cp.postMessage(t+"",hT.protocol+"//"+hT.host)};SB&&PB||(SB=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return Gb[++TB]=function(){("function"==typeof t?t:Function(t)).apply(void 0,n)},E8(TB),TB},PB=function(t){delete Gb[t]},OB?E8=function(t){mCt.nextTick(DB(t))}:EB&&EB.now?E8=function(t){EB.now(DB(t))}:kue&&!Aue?(MB=(Eue=new kue).port2,Eue.port1.onmessage=Iue,E8=pCt(MB.postMessage,MB,1)):cp.addEventListener&&"function"==typeof postMessage&&!cp.importScripts&&hT&&"file:"!==hT.protocol&&!hCt(Nue)?(E8=Nue,cp.addEventListener("message",Iue,!1)):E8="onreadystatechange"in Lue("script")?function(t){Due.appendChild(Lue("script")).onreadystatechange=function(){Due.removeChild(this),AB(t)}}:function(t){setTimeout(DB(t),0)});var Yb,Jm,Ub,jb,LB,kB,IB,Rue,zue={set:SB,clear:PB},_Ct=/web0s(?!.*chrome)/i.test(nB),e5=ml,CCt=zue.set,bCt=Aue,xCt=_Ct,NB=OB,Fue=e5.MutationObserver||e5.WebKitMutationObserver,Hue=e5.document,Vue=e5.process,pT=e5.Promise,Bue=(0,QE.f)(e5,"queueMicrotask"),Gue=Bue&&Bue.value;Gue||(Yb=function(){var t,n;for(NB&&(t=Vue.domain)&&t.exit();Jm;){n=Jm.fn,Jm=Jm.next;try{n()}catch(e){throw Jm?jb():Ub=void 0,e}}Ub=void 0,t&&t.enter()},bCt||NB||xCt||!Fue||!Hue?pT&&pT.resolve?((IB=pT.resolve(void 0)).constructor=pT,Rue=IB.then,jb=function(){Rue.call(IB,Yb)}):jb=NB?function(){Vue.nextTick(Yb)}:function(){CCt.call(e5,Yb)}:(LB=!0,kB=Hue.createTextNode(""),new Fue(Yb).observe(kB,{characterData:!0}),jb=function(){kB.data=LB=!LB}));var yCt=Gue||function(t){var n={fn:t,next:void 0};Ub&&(Ub.next=n),Jm||(Jm=n,jb()),Ub=n},RB={},Yue=cT,wCt=function(t){var n,e;this.promise=new t(function(i,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=i,e=r}),this.resolve=Yue(n),this.reject=Yue(e)};RB.f=function(t){return new wCt(t)};var zB,Uue,jue,Wue,MCt=rd,OCt=Ku,SCt=RB,PCt=ml,ECt="object"==typeof window,fT=g2,R4=ml,TCt=Lb,gT=$vt,que=N3.exports,Xue=sB,DCt=wB,LCt=rue,kCt=Ku,FB=cT,NCt=VV,$ue=function(t,n,e){var i,r,o,a,c,u,f,E=!(!e||!e.AS_ENTRIES),B=!(!e||!e.IS_ITERATOR),Z=!(!e||!e.INTERRUPTED),ee=lCt(n,e&&e.that,1+E+Z),be=function(Pe){return i&&Mue(i),new Bb(!0,Pe)},_e=function(Pe){return E?(aCt(Pe),Z?ee(Pe[0],Pe[1],be):ee(Pe[0],Pe[1])):Z?ee(Pe,be):ee(Pe)};if(B)i=t;else{if("function"!=typeof(r=function(t){if(null!=t)return t[rCt]||t["@@iterator"]||iCt[nCt(t)]}(t)))throw TypeError("Target is not iterable");if(function(t){return void 0!==t&&(Jvt.Array===t||tCt[eCt]===t)}(r)){for(o=0,a=cCt(t.length);a>o;o++)if((c=_e(t[o]))&&c instanceof Bb)return c;return new Bb(!1)}i=r.call(t)}for(u=i.next;!(f=u.call(i)).done;){try{c=_e(f.value)}catch(Pe){throw Mue(i),Pe}if("object"==typeof c&&c&&c instanceof Bb)return c}return new Bb(!1)},zCt=pue,Que=zue.set,Kue=yCt,Zue=RB,HB=function(t){try{return{error:!1,value:t()}}catch(n){return{error:!0,value:n}}},VB=S8,VCt=KV,BCt=ECt,mT=OB,Jue=rT,GCt=Kc("species"),lp="Promise",ehe=VB.get,YCt=VB.set,UCt=VB.getterFor(lp),t5=gT&&gT.prototype,Zu=gT,_T=t5,the=R4.TypeError,BB=R4.document,GB=R4.process,T8=Zue.f,jCt=T8,WCt=!!(BB&&BB.createEvent&&R4.dispatchEvent),nhe="function"==typeof PromiseRejectionEvent,ihe=!1,Wb=VCt(lp,function(){var t=NCt(Zu)!==String(Zu);if(!t&&66===Jue)return!0;if(Jue>=51&&/native code/.test(Zu))return!1;var n=new Zu(function(i){i(1)}),e=function(i){i(function(){},function(){})};return(n.constructor={})[GCt]=e,!(ihe=n.then(function(){})instanceof e)||!t&&BCt&&!nhe}),qCt=Wb||!function(t,n){if(!Sue)return!1;var e=!1;try{var i={};i[Oue]=function(){return{next:function(){return{done:e=!0}}}},function(t){Zu.all(t).catch(function(){})}(i)}catch(r){}return e}(),rhe=function(t){var n;return!(!kCt(t)||"function"!=typeof(n=t.then))&&n},YB=function(t,n){if(!t.notified){t.notified=!0;var e=t.reactions;Kue(function(){for(var i=t.value,r=1==t.state,o=0;e.length>o;){var a,c,u,f=e[o++],w=r?f.ok:f.fail,E=f.resolve,B=f.reject,Z=f.domain;try{w?(r||(2===t.rejection&&$Ct(t),t.rejection=1),!0===w?a=i:(Z&&Z.enter(),a=w(i),Z&&(Z.exit(),u=!0)),a===f.promise?B(the("Promise-chain cycle")):(c=rhe(a))?c.call(a,E,B):E(a)):B(i)}catch(ee){Z&&!u&&Z.exit(),B(ee)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&XCt(t)})}},ohe=function(t,n,e){var i,r;WCt?((i=BB.createEvent("Event")).promise=n,i.reason=e,i.initEvent(t,!1,!0),R4.dispatchEvent(i)):i={promise:n,reason:e},!nhe&&(r=R4["on"+t])?r(i):"unhandledrejection"===t&&function(t,n){var e=PCt.console;e&&e.error&&(1===arguments.length?e.error(t):e.error(t,n))}("Unhandled promise rejection",e)},XCt=function(t){Que.call(R4,function(){var n,e=t.facade,i=t.value;if(ahe(t)&&(n=HB(function(){mT?GB.emit("unhandledRejection",i,e):ohe("unhandledrejection",e,i)}),t.rejection=mT||ahe(t)?2:1,n.error))throw n.value})},ahe=function(t){return 1!==t.rejection&&!t.parent},$Ct=function(t){Que.call(R4,function(){var n=t.facade;mT?GB.emit("rejectionHandled",n):ohe("rejectionhandled",n,t.value)})},A8=function(t,n,e){return function(i){t(n,i,e)}},D8=function(t,n,e){t.done||(t.done=!0,e&&(t=e),t.value=n,t.state=2,YB(t,!0))},UB=function(t,n,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===n)throw the("Promise can't be resolved itself");var i=rhe(n);i?Kue(function(){var r={done:!1};try{i.call(n,A8(UB,r,t),A8(D8,r,t))}catch(o){D8(r,o,t)}}):(t.value=n,t.state=1,YB(t,!1))}catch(r){D8({done:!1},r,t)}}};if(Wb&&(_T=(Zu=function(t){(function(t,n,e){if(!(t instanceof n))throw TypeError("Incorrect "+e+" invocation")})(this,Zu,lp),FB(t),zB.call(this);var n=ehe(this);try{t(A8(UB,n),A8(D8,n))}catch(e){D8(n,e)}}).prototype,(zB=function(t){YCt(this,{type:lp,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,n,e){for(var i in n)Qvt(t,i,n[i],undefined);return t}(_T,{then:function(t,n){var e=UCt(this),i=T8(zCt(this,Zu));return i.ok="function"!=typeof t||t,i.fail="function"==typeof n&&n,i.domain=mT?GB.domain:void 0,e.parent=!0,e.reactions.push(i),0!=e.state&&YB(e,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),Uue=function(){var t=new zB,n=ehe(t);this.promise=t,this.resolve=A8(UB,n),this.reject=A8(D8,n)},Zue.f=T8=function(t){return t===Zu||t===jue?new Uue(t):jCt(t)},"function"==typeof gT&&t5!==Object.prototype)){Wue=t5.then,ihe||(que(t5,"then",function(t,n){var e=this;return new Zu(function(i,r){Wue.call(e,i,r)}).then(t,n)},{unsafe:!0}),que(t5,"catch",_T.catch,{unsafe:!0}));try{delete t5.constructor}catch(t){}Xue&&Xue(t5,_T)}fT({global:!0,wrap:!0,forced:Wb},{Promise:Zu}),DCt(Zu,lp,!1),LCt(lp),jue=TCt(lp),fT({target:lp,stat:!0,forced:Wb},{reject:function(t){var n=T8(this);return n.reject.call(void 0,t),n.promise}}),fT({target:lp,stat:!0,forced:Wb},{resolve:function(t){return function(t,n){if(MCt(t),OCt(n)&&n.constructor===t)return n;var e=SCt.f(t);return(0,e.resolve)(n),e.promise}(this,t)}}),fT({target:lp,stat:!0,forced:qCt},{all:function(t){var n=this,e=T8(n),i=e.resolve,r=e.reject,o=HB(function(){var a=FB(n.resolve),c=[],u=0,f=1;$ue(t,function(w){var E=u++,B=!1;c.push(void 0),f++,a.call(n,w).then(function(Z){B||(B=!0,c[E]=Z,--f||i(c))},r)}),--f||i(c)});return o.error&&r(o.value),e.promise},race:function(t){var n=this,e=T8(n),i=e.reject,r=HB(function(){var o=FB(n.resolve);$ue(t,function(a){o.call(n,a).then(e.resolve,i)})});return r.error&&i(r.value),e.promise}});var QCt=IV,KCt=ap,ZCt=KE,jB=function(t,n,e){var i=QCt(n);i in t?KCt.f(t,i,ZCt(0,e)):t[i]=e},JCt=c1,ebt=rT,tbt=Kc("species"),qb=function(t){return ebt>=51||!JCt(function(){var n=[];return(n.constructor={})[tbt]=function(){return{foo:1}},1!==n[t](Boolean).foo})},nbt=g2,ibt=Ku,she=vB,che=XV,rbt=R3,obt=M8,abt=jB,sbt=Kc,cbt=qb("slice"),lbt=sbt("species"),dbt=[].slice,ubt=Math.max;nbt({target:"Array",proto:!0,forced:!cbt},{slice:function(t,n){var e,i,r,o=obt(this),a=rbt(o.length),c=che(t,a),u=che(void 0===n?a:n,a);if(she(o)&&("function"!=typeof(e=o.constructor)||e!==Array&&!she(e.prototype)?ibt(e)&&null===(e=e[lbt])&&(e=void 0):e=void 0,e===Array||void 0===e))return dbt.call(o,c,u);for(i=new(void 0===e?Array:e)(ubt(u-c,0)),r=0;co;)fbt.f(t,e=i[o++],n[e]);return t},vbt=rd,Cbt=_bt,dhe=QV,bbt=GV,xbt=Tue,ybt=RV,uhe=BV("IE_PROTO"),qB=function(){},hhe=function(t){return"