meWindow;if(b.nodeName==="SCRIPT")e=b,b=e.cloneNode(),b.setAttribute("type","rif-placeholder"),c=_.Gi(window).edc.apply(d.document),b[uyc]=c,b[vyc]=e,a.gz()&&e.nonce===a.gz()&&(e.nonce=d.pangolinIframeNonce),e.src?yvc(e):e[xvc]=!1;else if(oxc(b))b.nodeName==="LINK"&&b.rel==="stylesheet"&&(b.hasAttribute("crossorigin")||b.setAttribute("crossorigin",""));else if(b.nodeName!=="LINK"?0:b.rel==="preload"&&b.as==="script")c=
_.Gi(window),e=c.BFa.call(document,"link"),c=c.gdc.apply(d.document),e[uyc]=c,e[vyc]=b,a.gz()&&b.nonce===a.gz()&&(b.nonce=d.pangolinIframeNonce),b=e;return b},zx=function(a,b){var c=b.getRootNode();if(c===document)exc(b),Byc(a,b);else if(c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&b.getRootNode({composed:!0})===document)exc(b);else if(b[xyc]&&(c=b[xyc],delete b[xyc],c.length&&(b=c[0].parentNode))){var d=b.getRootNode();if(d===document)for(b=c.length-1;b>=0;b--)exc(c[b]),Byc(a,c[b]);else if(d.nodeType===
Node.DOCUMENT_FRAGMENT_NODE&&b.getRootNode({composed:!0})===document)for(a=c.length-1;a>=0;a--)exc(c[a])}},Byc=function(a,b){var c=ux();if(b.nodeType===Node.TEXT_NODE||b.nodeType===Node.COMMENT_NODE)b[_.nCb]=b[_.nCb]||c.uid;else if(c.uid===b[_.nCb]){if(a.fa.P3b){var d=zyc(a,c.hostSelector);c=c.uid;"getAttribute"in b&&b.getAttribute("extsuid")===null&&svc(b,c,d)}for(c=b.childNodes.length-1;c>=0;c--)Byc(a,b.childNodes[c])}else{if(oxc(b)){var e=_.Gi(window),f=e.oBc;e=e.BFa.call(document,"link");svc(e,
c.uid);f.call(b.parentNode,e,b);b[wyc]=b.parentNode;b[yyc]=e;f.call(document.head,b,a.wa)}if(f=b[uyc])e=b[vyc]||b,delete b[vyc],delete b[uyc],_.Gi(window).Fjb.call(f,e),Byc(a,e);f='[sandboxuid="'+c.uid+'"]';a.fa.P3b&&(d=zyc(a,c.hostSelector),a.aa.has(c.uid)?f=a.aa.get(c.uid):(f=mxc(c.hostWrapperSelector,c.uid),a.aa.set(c.uid,f)));svc(b,c.uid,d);oxc(b)&&qyc(a.za,b,f);for(c=b.childNodes.length-1;c>=0;c--)Byc(a,b.childNodes[c])}};var uxc=!1;var Hxc="getSelection print scrollX scrollY innerWidth innerHeight open screenLeft screenTop screen matchMedia visualViewport postMessage".split(" ");var Gyc=function(){this.win=window;this.urlChangeObs=Cyc.pipe(_.Ve());Dyc||(Eyc(this),Fyc(this),Dyc=!0)},Eyc=function(a){var b=window.history.replaceState;a.win.history.replaceState=function(d,e,f){b.call(a.win.history,d,e,f);Cyc.next(a.win.location.href)};var c=a.win.history.pushState;a.win.history.pushState=function(d,e,f){c.call(a.win.history,d,e,f);Cyc.next(a.win.location.href)}},Fyc=function(a){_.$d(a.win,"popstate").subscribe(function(){Cyc.next(a.win.location.href)})},Dyc=!1,Cyc=new _.Ze;var Hyc=function(a,b,c,d,e,f,g,n){n=n===void 0?{}:n;this.hostSelector=a;this.createHostContainer=b;this.scheduleShadowTask=c;this.document=d;this.wa=e;this.sharedHostDataServiceFactory=f;this.sandboxId=g;this.extraGlobals=n;this.fa=new _.Qh(void 0);this.aa=void 0;this.ea=new _.Qh(void 0);this.onUnload=new _.Ze;this.qa=new _.Ze;this.za=new _.Ze;this.logger=null};Hyc.prototype.onHostContainerAvailable=function(){return this.ea.pipe(_.he(function(a){return!!a}),_.Qe(1))};
var Iyc=function(a){return a.fa.pipe(_.he(function(b){return!!b}),_.Qe(1))};Hyc.prototype.createHostContainerIfNonExist=function(a){this.hostContainer||(a=this.createHostContainer(a),this.ea.next(a))};
Hyc.prototype.createIframe=function(a,b){var c=this;if(this.aa)return this.qa.next("Cannot create iframe: iframe already exists."),_.Kd("Cannot create iframe: iframe already exists.");var d;a=this.wa.load(a,(d=b==null?void 0:b.nDe)!=null?d:!0);Bxc(b);return a.pipe(_.rf(function(e){c.aa=e}),_.af(),_.B(function(e){c.aa=e;var f=e.contentWindow;e.contentWindow.onunload=function(){ovc(f)&&c.za.next({message:"The RIF iframe was unloaded. Did you use window.location from RIF?",link:"http://go/rif-limitations#windowlocation-calls"})};
Jyc(c,f)}),_.Ie(function(e){c.qa.next(e);throw e;}))};
var Kyc=function(a,b){var c=new _.df(1),d=Qxc(function(){var e=a.iframeWindow.document,f=e.body;e=e.createElement("SCRIPT".toString());a.iframeWindow.pangolinIframeNonce&&(e.nonce=a.iframeWindow.pangolinIframeNonce);b instanceof _.jga?((0,_.qc.mBa)(e,b),f.appendChild(e),c.next(),c.complete()):((0,_.qc.Zw)(e,b),e.onload=function(){c.next();c.complete()},e.onerror=function(g){c.error(g)},f.appendChild(e))});return _.Zd([a.onHostContainerAvailable(),Iyc(a)]).pipe(_.Pe(),_.pf(a.onUnload),_.Ie(function(e){a.qa.next(e);
throw e;}),_.rf(d),_.bsa(c))};
Hyc.prototype.unload=function(){var a=this;if(this.aa){this.onUnload.next();this.onUnload.complete();var b=_.Exb(),c=b.mark();this.iframeWindow&&(this.iframeWindow.pangolinIframeGlobals&&(Lyc(this),this.hostContainer&&(this.hostContainer.parentElement&&this.hostContainer.parentElement.removeChild(this.hostContainer),this.ea.next(void 0)),this.ea.complete()),this.iframeWindow.sharedHostData&&this.sharedHostDataServiceFactory.unload(this.iframeWindow.sharedHostData),setTimeout(function(){qvc(a.iframeWindow,"unloaded");
a.aa&&a.aa.parentNode&&a.aa.parentNode.removeChild(a.aa);if(a.iframeWindow)try{for(var d=Object.getOwnPropertyDescriptors(a.iframeWindow),e=_.k(Object.keys(d)),f=e.next();!f.done;f=e.next()){var g=f.value;if(g!=="location"){var n=d[g];n.writable&&!n.set?a.iframeWindow[g]=void 0:n.writable&&n.set?delete a.iframeWindow[g]:n.configurable&&Object.defineProperty(a.iframeWindow,g,{})}}}catch(p){}b.mark("rif:unload",c);a.aa=void 0;a.fa.next(void 0);a.fa.complete()},1E3))}};
var Jyc=function(a,b){var c=Myc++;b.__Zone_symbol_prefix="__zone_sandbox"+c+"__";var d=Zone.current,e=Jxc(c);b.pangolinIframeGlobals=Object.assign({},a.extraGlobals,{iframeWindow:b,uid:c,hostWrapperSelector:a.hostSelector.wrapper,hostSelector:a.hostSelector.value,scheduleShadowTask:a.scheduleShadowTask,patcher:e,setup:function(){Gxc(c);qvc(b,"active")},registerKnownType:vx,getOriginalHostObject:mwc,runInBootstrapZone:function(g){return d.run(g)},canUnloadSubject:new _.Qh(!0)});var f=document.body.querySelector(a.hostSelector.value);
f&&svc(f,c);qvc(b,"loading");b.sharedHostData=a.sharedHostDataServiceFactory.create(e,a.sandboxId);Nyc(a,b);a.fa.next(b)},Lyc=function(a){a=a.iframeWindow.pangolinIframeGlobals;if(a.destroyPlatform)try{a.patcher.runInSandbox(a.destroyPlatform)}catch(b){}},Nyc=function(a,b){var c=new Gyc;b.history.replaceState(void 0,"",a.document.location.href);c.urlChangeObs.pipe(_.pf(a.onUnload)).subscribe(function(d){b.history.replaceState(void 0,"",d)})};
_.wc.Object.defineProperties(Hyc.prototype,{onSetupError:{configurable:!0,enumerable:!0,get:function(){return this.qa}},onDebugError:{configurable:!0,enumerable:!0,get:function(){return _.fe}},iframeWindow:{configurable:!0,enumerable:!0,get:function(){return this.fa.value}},hostContainer:{configurable:!0,enumerable:!0,get:function(){return this.ea.value}}});var Myc=0;var Oyc=new _.Vc("RIF_HOST_SELECTOR",{ka:function(){return".p6ntest-ngview-container"}}),Pyc=new _.Vc("RIF_USE_INLINE_SCRIPT",{ka:function(){return!1}}),Ax=function(a,b,c,d,e,f,g,n,p,t,u,w,z){fyc.call(this,b,c,w);var C=this;this.codeService=a;this.sandboxConfig=b;this.onDestroy=d;this.document=g;this.hostSelector=n;this.wa=p;this.onUnload=new _.Ze;this.aa=new Hyc({value:'pangolin-home[sandboxId="'+b.sandboxId+'"]',wrapper:'pangolin-home-wrapper[sandboxId="'+b.sandboxId+'"]'},function(H){return C.createHostContainer(H)},
twc(),g,t,u,b.sandboxId,{hostZoneHooks:uwc(z)});this.aa.onSetupError.pipe(_.pf(d)).subscribe(function(H){C.onSetupError.next(H)});this.aa.onDebugError.pipe(_.pf(d)).subscribe(function(H){C.onDebugMessage.next(H)});(a=Oxc(this.sandboxManager,b.sandboxId))&&a.pipe(_.pf(d),_.pf(this.onUnload)).subscribe(function(H){if(H)if(H=C.aa,H.iframeWindow&&H.iframeWindow.pangolinIframeGlobals)qvc(H.iframeWindow,"suspended");else throw Error("Ci");else if(H=C.aa,H.iframeWindow&&H.iframeWindow.pangolinIframeGlobals)qvc(H.iframeWindow,
"active");else throw Error("Di");})};_.Y(Ax,fyc);
Ax.prototype.createHostContainer=function(a){var b=this.sandboxConfig.sandboxId,c=document.createElement("pangolin-home-wrapper");c.setAttribute("sandboxId",b);var d={width:"100%",height:"100%",display:"flex","flex-direction":"column","min-height":0};Object.assign(c.style,Object.assign({},{position:"absolute",visibility:"hidden"},d));var e=document.createElement("pangolin-home");e.setAttribute("sandboxId",b);Object.assign(e.style,d);c.appendChild(e);a||(a=this.document.querySelector(this.hostSelector));
a.appendChild(c);return c};var Ryc=function(a){var b=gyc(a);new Promise(function(c,d){var e=function(f){a.onSetupError.next(JSON.stringify(f));d(f)};a.sandboxConfig.debugMode?a.codeService.getCodeUrl(b).then(function(f){Qyc(a,f).subscribe(function(){c()},e)}).catch(e):a.codeService.getCodeString(b).then(function(f){if(a.wa)f=Qyc(a,f);else{var g=_.Mga(f);f=Qyc(a,g).pipe(_.rf(function(){URL.revokeObjectURL(g.toString())}))}f.subscribe(function(){c()},e)}).catch(e)})};
Ax.prototype.onHostContainerAvailable=function(){return this.aa.onHostContainerAvailable()};var Qyc=function(a,b){return Kyc(a.aa,b).pipe(_.pf(a.onDestroy),_.rf(function(){a.onCodeLoaded()}))};Ax.prototype.onCodeLoaded=function(){};Ax.prototype.createIframe=function(a,b){return this.aa.createIframe(a,b)};Ax.prototype.createHostContainerIfNonExist=function(a){this.aa.createHostContainerIfNonExist(a)};Ax.prototype.unload=function(){this.onUnload.next();this.onUnload.complete();this.aa.unload()};
_.wc.Object.defineProperties(Ax.prototype,{iframeWindow:{configurable:!0,enumerable:!0,get:function(){return this.aa.iframeWindow}},hostContainer:{configurable:!0,enumerable:!0,get:function(){return this.aa.hostContainer}}});Ax.da=function(a){return new (a||Ax)(_.m(Xxc),_.m(yx),_.m(_.dq),_.m(_.Ad),_.m(Txc),_.m(_.On),_.m(_.jh),_.m(Oyc),_.m(Pyc),_.m(_.Eec),_.m(eyc),_.m(Uxc),_.m(_.pe))};Ax.ma=_.l({token:Ax,ka:Ax.da});var Tyc=function(a,b,c,d,e,f,g,n,p,t,u,w,z){Ax.call(this,a,b,c,d,e,f,g,".p6ntest-ngview-container",!0,n,p,w,z);this.navMetrics=t;this.logger=null;this.ea=new _.Ze;this.fa=_.q(_.Iv);this.qa=_.kaa()&&_.paa("Chromium")<=119;Syc(this,"rif-started")};_.Y(Tyc,Ax);Tyc.prototype.onCodeLoaded=function(){var a=this;this.ea.next();this.ea.complete();Syc(this,"rif-loaded");this.iframeWindow.pangolinIframeGlobals.initializedCallback=function(){Syc(a,"rif-initialized")}};
Tyc.prototype.unload=function(){Ax.prototype.unload.call(this);var a=window;try{a.google_tag_manager[a.google_tag_manager_container_id].dataLayer.reset()}catch(b){}};Tyc.prototype.createIframe=function(a){var b=this,c={pCd:_.Ch(dyc),P3b:this.qa};return Ax.prototype.createIframe.call(this,a,c).pipe(_.rf(function(){_.eqc(b.fa,b.iframeWindow.frameElement)}))};var Syc=function(a,b){a=a.navMetrics.getPageLoadStopwatch();a.isStopped()||a.recordStep(b)};Tyc.da=function(){_.Ce()};Tyc.ma=_.l({token:Tyc,ka:Tyc.da});_.Uyc=!1;var Vyc=new _.Vc("serviceDestroyObservable");var Xyc=function(a){this.router=a;this.fa=-1;this.aa=new Map;this.ea=!1;Wyc(this)},Wyc=function(a){if(a.ea)throw Error("Ei");a.ea=!0;a.router.events.pipe(_.he(function(b){return b instanceof _.Mub})).subscribe(function(b){var c=b.state,d=_.bq(a.router);b={navigationId:b.id,appliedUrlTree:d.extractedUrl,skipLocationChange:!!d.extras.skipLocationChange,replaceUrl:!!d.extras.replaceUrl};d=_.k(a.aa.values());for(var e=d.next();!e.done;e=d.next())e=e.value,e(c,b)})},Yyc=function(a,b){var c=++a.fa;a.aa.set(c,
b);return c};Xyc.da=function(a){return new (a||Xyc)(_.m(_.Uh))};Xyc.ma=_.l({token:Xyc,ka:Xyc.da,oa:"root"});var Zyc=function(a){this.guardAwaitingEnabled=a===void 0?!1:a;this.Da=new _.df(1);this.wa=new _.df(1);this.ea=new _.df(1);this.aa=new _.Qh(!0);this.za=new _.Ze;this.fa=new _.Ze;this.qa=new _.Ze};_.h=Zyc.prototype;_.h.shouldActivateRoute=function(){var a=$yc(this);return this.Da.pipe(_.he(function(b){return b.navId===a}),_.B(function(b){return b.shouldActivate}))};_.h.emitShouldActivateRoute=function(a){this.Da.next({navId:$yc(this),shouldActivate:a})};_.h.hostNavigationInitiated=function(){return this.wa};
_.h.emitHostNavigation=function(a){this.currentHostNavigation=a;this.wa.next(a)};_.h.navigationDelegation=function(){return this.za};_.h.emitNavigationDelegation=function(a,b,c,d){this.za.next({url:a,skipLocationChange:b,replaceUrl:c,state:d})};_.h.clientNavigationFinishEvent=function(){var a=$yc(this);return this.ea.pipe(_.he(function(b){return b.navId===a||a===""}))};_.h.emitClientNavigationFinishEvent=function(a,b){this.ea.next({navId:$yc(this),type:a,error:b})};_.h.clientNavigationStart=function(){return this.fa};
_.h.emitClientNavigationStart=function(a){this.fa.next(a)};_.h.clientRoutesRecognized=function(){return this.qa};_.h.emitClientRoutesRecognizedPath=function(a){this.qa.next(a)};_.h.clientCanActivate=function(){return this.aa};_.h.emitClientCanActivate=function(a){this.aa.next(a)};var $yc=function(a){var b;return((b=a.currentHostNavigation)==null?void 0:b.navId)||""};Zyc.da=function(){_.Ce()};Zyc.ma=_.l({token:Zyc,ka:Zyc.da});var Bx=function(a,b,c,d,e,f,g,n,p){this.router=a;this.routerHookInterceptor=b;this.sandboxConfig=c;this.sandboxManager=d;this.location=e;this.onDestroy=f;this.ngZone=g;this.routerConnectionService=n;this.traceRouting=p;this.fa=!1;this.logger=null;this.sandboxId=this.sandboxConfig.sandboxId};
Bx.prototype.initialize=function(){var a=this;this.sandboxManager.sandboxState.get(this.sandboxId)===1&&azc(this,this.location.path());this.sandboxManager.sandboxStateChangeSubject.get(this.sandboxId).pipe(_.pf(this.onDestroy)).subscribe(function(){var b=a.sandboxManager.sandboxState.get(a.sandboxId);b===1?azc(a,a.location.path()):b===2&&(a.stopSyncing(),a.log("Host sending empty page routing request"),bzc(a,"rif-empty-page",!0,!0))});this.onDestroy.subscribe(function(){a.terminate()})};
Bx.prototype.terminate=function(){this.stopSyncing()};Bx.prototype.log=function(a){var b=_.Yb.apply(1,arguments);if(this.traceRouting){console.group("[router_synchronizer] "+a);if(b){b=_.k(b);for(var c=b.next();!c.done;c=b.next())c=c.value,console.log(c instanceof Object?Object.assign({},c):c)}console.groupEnd()}};var azc=function(a,b){if(a.fa)throw Error("Fi`"+a.sandboxId);a.fa=!0;a.subscribeToClientEvents();czc(a);dzc(a);b!==void 0&&bzc(a,b,!0,!1)};
Bx.prototype.stopSyncing=function(){this.fa=!1;this.wa!==void 0&&(this.routerHookInterceptor.aa.delete(this.wa),this.wa=void 0);this.ea&&(this.ea.unsubscribe(),this.ea=void 0)};Bx.prototype.subscribeToClientEvents=function(){};
var dzc=function(a){a.wa=Yyc(a.routerHookInterceptor,function(b,c){var d=_.Rtc(a.sandboxManager,b,a.sandboxId);bzc(a,b.url,d,c.skipLocationChange)})},bzc=function(a,b,c,d){var e=String(_.gl()),f={navId:e,url:b,action:c?"FullNavigation":"DeactivationOnly",skipLocationChange:d};a.ngZone.run(function(){a.log("Emit host navigation to trigger Client navigation",f);a.routerConnectionService.emitHostNavigation(f)});ezc(a,e)},ezc=function(a,b){a.router.events.pipe(_.pf(a.onDestroy),_.he(function(c){return c instanceof
_.Rh||c instanceof _.Sh||c instanceof _.Th}),_.Qe(1)).subscribe(function(){var c=a.routerConnectionService.currentHostNavigation;c&&c.navId===b&&(a.routerConnectionService.currentHostNavigation=void 0)})},czc=function(a){var b;a.ea=(b=a.routerConnectionService)==null?void 0:b.navigationDelegation().subscribe(function(c){a.onDelegateNavigationRequest(c)})};
Bx.prototype.onDelegateNavigationRequest=function(a){this.log("Host received navigation delegation",a);var b=a.state?JSON.parse(JSON.stringify(a.state)):void 0;this.router.navigateByUrl(a.url,{skipLocationChange:a.skipLocationChange,replaceUrl:a.replaceUrl,state:b}).catch(function(){})};Bx.prototype.toString=function(){return"RifRouterSynchronizer"};Bx.da=function(a){return new (a||Bx)(_.m(_.Uh),_.m(Xyc),_.m(yx),_.m(_.dq),_.m(_.vk),_.m(Vyc),_.m(_.pe),_.m(Zyc),_.m(_.Xtc,8))};Bx.ma=_.l({token:Bx,ka:Bx.da});var fzc=function(a,b,c,d,e,f,g,n,p,t,u){Bx.call(this,a,b,c,g,n,p,t,u,_.Uyc);this.navMetrics=d;this.Ha=e;this.ng2RouterAdapter=f;this.aa=new _.Ze;this.Fa=!0;this.events=this.aa};_.Y(fzc,Bx);_.h=fzc.prototype;_.h.init=function(){};_.h.platform=function(){};_.h.terminate=function(){this.aa.complete();Bx.prototype.terminate.call(this)};_.h.stopSyncing=function(){Bx.prototype.stopSyncing.call(this);this.qa&&(this.qa.unsubscribe(),this.qa=void 0);this.za&&(this.za.unsubscribe(),this.za=void 0)};
_.h.subscribeToClientEvents=function(){var a=this;this.Fa&&(this.Fa=!1,this.navMetrics.registerAdapter(this),this.Ha.aa.next(this.events));this.qa=this.routerConnectionService.clientNavigationStart().subscribe(function(b){var c=gzc(a);c&&(a.Da=a.Da===void 0?0:c.now());_.u0a(b.url)||a.routerConnectionService.currentHostNavigation||a.navMetrics.getNavigationState()==="finished"&&hzc(a)||a.aa.next(new _.aCb(a,b.url,hzc(a)?"redirect":"default"))});this.za=this.routerConnectionService.clientRoutesRecognized().subscribe(function(b){_.R$b(a.ng2RouterAdapter);
var c=gzc(a);c&&a.Da!==void 0&&_.S$b(a.ng2RouterAdapter,a.Da,c);hzc(a)||a.aa.next(new _.dCb(a,b))})};var gzc=function(a){var b=_.zwb(a.sandboxManager);if(b&&(a=_.xBa(Number(a.sandboxManager.za.get(b)))))return _.Gi(a).globals.performance},hzc=function(a){var b,c;return!!((c=(b=_.bq(a.router))==null?void 0:b.extras.state)!=null?c:{}).ignoreNavigation};
fzc.prototype.onDelegateNavigationRequest=function(a){var b=this.router.parseUrl(a.url);b.queryParams.rif_reserved="";a.url=_.cq(this.router,b);if(_.bq(this.router)){b=this.ng2RouterAdapter;var c=_.sc(a.url).getPath();b.state&&(b.state.expectedRedirect=c)}Bx.prototype.onDelegateNavigationRequest.call(this,a)};fzc.prototype.toString=function(){return"PangolinRouterSynchronizer"};
fzc.da=function(a){return new (a||fzc)(_.m(_.Uh),_.m(Xyc),_.m(yx),_.m(_.Rv),_.m(_.Wtc),_.m(_.Qv),_.m(_.dq),_.m(_.vk),_.m(Vyc),_.m(_.pe),_.m(Zyc))};fzc.ma=_.l({token:fzc,ka:fzc.da});var izc=function(a){this.config=a;this.chunkSize=a.minChunkSize},kzc=function(a,b,c){return new _.Ad(function(d){var e=new a.config.fileReaderType;e.onloadend=function(){var f=e.result;e.readyState===FileReader.DONE&&f?(d.next(f),d.complete()):d.error(new jzc(b.name))};e.readAsArrayBuffer(a.slice(b,c))})};
izc.prototype.slice=function(a,b){if(a.size<=this.config.maxBodySize)return a;var c=Date.now();a=a.slice(b,b+this.chunkSize);c=Date.now()-c;c<this.config.minChunkReadTime?this.chunkSize=Math.min(this.chunkSize*2,this.config.maxChunkSize):c>this.config.maxChunkReadTime&&(this.chunkSize=Math.max(this.chunkSize/2,this.config.minChunkSize));return a};izc.da=function(a){return new (a||izc)(_.m(lzc))};izc.ma=_.l({token:izc,ka:izc.da,oa:"root"});
var jzc=function(a){this.fileName=a},lzc=new _.Vc("ChunkedFileReaderConfig",{oa:"root",ka:function(){return{maxBodySize:33554432,minChunkReadTime:1E3/60,maxChunkReadTime:1E3/30,minChunkSize:262144,maxChunkSize:33554432,fileReaderType:FileReader}}});var mzc=function(){this.host=_.puc();this.apiVersion=_.quc();this.http=_.q(_.Oi);this.fileReader=_.q(izc);this.aa=_.q(_.pSa);this.route=_.q(_.Ph)};mzc.prototype.upload=function(a){var b=this;return nzc(this,a).pipe(_.of(function(c){return ozc(b,a.file,c)})).pipe(pzc(this))};
var nzc=function(a,b){var c=b.file;var d=b.bucketName;var e=b.objectName;b=b.configuration;d="https://"+a.host+"/upload/storage/"+a.apiVersion+"/b/"+d+"/o";var f={name:e,projection:"full",uploadType:"resumable"},g={encodeKey:encodeURIComponent,decodeKey:decodeURIComponent,encodeValue:encodeURIComponent,decodeValue:decodeURIComponent},n=a.route.snapshot.queryParamMap.get("userProject");n&&(f.userProject=n);n={};return a.http.post(d,(b==null?0:b.retention)?{name:e,retention:{mode:b.retention.mode,retainUntilTime:b.retention.retainUntilTime}}:
void 0,{observe:"response",params:new _.th({fromObject:f,encoder:g}),headers:(n["X-Upload-Content-Length"]=c.size.toString(),n["X-Upload-Content-Type"]=c.type||"application/octet-stream",n["method-id-xhr-identifier"]="storage.objects.insert",n)}).pipe(_.B(function(p){var t=p.headers.get("location")||p.headers.get("Location");if(!t)throw new qzc(p);return t}))},szc=function(a,b){return rzc(a,b).pipe(_.of(function(c){return ozc(a,b.file,c)}))},rzc=function(a,b){var c={};return a.http.post(b.signedUrl,
void 0,{observe:"response",headers:Object.assign({},b.signedHeaders===void 0?{}:b.signedHeaders,(c["Content-Type"]=b.file.type||"application/octet-stream",c["X-Goog-Resumable"]="start",c["method-id-xhr-identifier"]="storage.objects.insert",c))}).pipe(_.B(function(d){var e=d.headers.get("location")||d.headers.get("Location");if(!e)throw new qzc(d);return e}))},ozc=function(a,b,c){return _.A({type:"progress",uploaded:0}).pipe(_.We(function(d){return d.type==="complete"?_.fe:tzc(a,b,c,d.uploaded)}))},
tzc=function(a,b,c,d){return kzc(a.fileReader,b,d).pipe(_.of(function(e){return uzc(a,e,d,c,b.size)}))},uzc=function(a,b,c,d,e){var f={};f=(f["method-id-xhr-identifier"]="storage.objects.insert",f);b.byteLength>0&&(f["Content-Range"]="bytes "+c+"-"+(c+b.byteLength-1)+"/"+e);return a.http.put(d,b,{headers:f,observe:"response"}).pipe(_.B(function(g){return{type:"complete",object:g.body,uploaded:e}}),_.Ie(function(g){if(g.status!==308)return _.Kd(g);g=g.headers.get("range");return _.A({type:"progress",
uploaded:Number(g.split("-")[1])+1})}),Kxc())},pzc=function(a){return function(b){return _.Yd(function(){_.gqc(a.aa,"Storage uploads");return b}).pipe(_.Xe(function(){return _.hqc(a.aa,"Storage uploads")}))}};mzc.da=function(a){return new (a||mzc)};mzc.ma=_.l({token:mzc,ka:mzc.da,oa:"root"});var qzc=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.response=this.response=a};_.Y(qzc,Error);var vzc=function(){this.eventNotificationFactory=_.q(_.ht);this.aa=this.eventNotificationFactory.get("UploadsWatcherServiceKeyId")};vzc.prototype.trackFileUpload=function(a){this.aa.emit(a)};vzc.da=function(a){return new (a||vzc)};vzc.ma=_.l({token:vzc,ka:vzc.da,oa:"root"});var wzc=["A customer-managed encryption key (CMEK) is required by an org policy"],xzc=["The specified key cannot be used because its project is restricted by an org policy","The bucket uses a default key from a project that is restricted by an org policy in effect"],Azc=function(a,b,c,d,e){var f=this;this.errorService=a;this.operationDrawerService=b;this.stateService=c;this.uploadService=d;this.uploadsWatcherService=e;this.uploads=new _.Ze;if(_.lh())throw Error("Gi");this.uploads.pipe(_.rf(function(g){g=
yzc.get(g);zzc.has(g)||(f.operationDrawerService.add(g.uploadGroupOperation),zzc.add(g))}),_.Ud(function(g){return g.start().pipe(_.Ie(function(){return _.fe}))},3),_.rf(function(g){f.trackFileUpload(g)}),_.Bra()).subscribe();this.aa=_.fq(this.stateService,"StorageUploadService_uploadsMessageBus");_.iq(this.aa,function(g){return f.upload(g.params,g.groupInfo)})};
Azc.prototype.upload=function(a,b){b=b===void 0?{bucketName:a.bucketName}:b;a=new Bzc(this.errorService,this.uploadService,a);var c;((c=Czc.get(b))!=null?c:new Dzc(b)).add(a);this.uploads.next(a);return a.objectMetadata};Azc.prototype.trackFileUpload=function(a){a.name&&a.bucket&&this.uploadsWatcherService.trackFileUpload("projects/_/buckets/"+a.bucket+"/objects/"+a.name)};var zzc=new WeakSet;Azc.da=function(a){return new (a||Azc)(_.m(_.dt),_.m(_.nuc),_.m(_.jq),_.m(mzc),_.m(vzc))};
Azc.ma=_.l({token:Azc,ka:Azc.da,oa:"root"});var Dzc=function(a){this.aa=new _.df;var b=new Date,c=this.aa.pipe(_.gf(function(d,e){var f=e.kind;var g=e.upload;return f==="removed"?d.filter(function(n){return n!==g}):[].concat(_.r(d),[g])},[]),_.of(function(d){return _.Td(d.map(function(e){return e.uploadOperation.operation}))}),_.B(function(d){return Object.assign({},a,{rows:d})}));this.uploadGroupOperation={created:b,jsmod:"pm_storage_operations_upload",operation:c};Czc.set(a,this)};
Dzc.prototype.add=function(a){var b=this;this.aa.next({kind:"added",upload:a});a.cancelled.subscribe(function(){b.remove(a)});yzc.set(a,this)};Dzc.prototype.remove=function(a){this.aa.next({kind:"removed",upload:a})};
var Czc=new WeakMap,yzc=new WeakMap,Bzc=function(a,b,c){var d=this;this.cancelled=new _.Ze;this.status=this.progress=0;this.startUpload=new _.df;this.objectName=c.objectName;b=this.startUpload.pipe(_.bsa(b.upload(c)),_.pf(this.cancelled),_.jf(1));var e=_.xuc.create(),f=e.link().set(e.bucketName,c.bucketName).set(e.objectPath,c.objectName).build();e=b.pipe(_.nf({type:"progress",uploaded:0}),_.B(function(g){return{status:g.type==="complete"?1:0,uploaded:g.uploaded,uC:void 0}}),_.Ie(function(g){var n;
a.handleError(g,{errorExperience:4,errorMessage:(n=g.message)!=null?n:"",presentationFormat:3});var p;return _.A({status:2,uploaded:0,uC:d.getErrorMessage((p=g.message)!=null?p:"")})}),_.B(function(g){return{name:Ezc(c.objectName),cancel:function(){d.cancel()},status:g.status,uploaded:g.uploaded,size:c.file.size,objectDetailsLink:f,uC:g.uC}}));e.subscribe(function(g){var n=g.status;var p=g.size;g=g.uploaded;d.status=n;d.progress=g/p});this.uploadOperation={jsmod:"pm_storage_operations_upload",created:new Date,
operation:e};this.objectMetadata=b.pipe(_.he(function(g){return g.type==="complete"}),_.B(function(g){return g.object}))};Bzc.prototype.getName=function(){return Ezc(this.objectName)};Bzc.prototype.getStatus=function(){return this.status};Bzc.prototype.start=function(){this.startUpload.next();this.startUpload.complete();return this.objectMetadata};Bzc.prototype.cancel=function(){this.cancelled.next()};var Ezc=function(a){a=a.split("/");return a[a.length-1]};
Bzc.prototype.getErrorMessage=function(a){return wzc.some(function(b){return a.includes(b)})?_.zuc.BIGSTORE_CMEK_REQUIRED_BY_ORGPOLICY:xzc.some(function(b){return a.includes(b)})?_.zuc.BIGSTORE_CMEK_KEY_FROM_PROJECT_NOT_ALLOWED_BY_ORGPOLICY:"Error"};var Fzc=!1;var Gzc=function(a){this.listenableMap=a;this.listeners=[]};_.h=Gzc.prototype;_.h.addEventListener=function(a,b){var c=this;this.listeners.push(b);this.cM||(this.cM=function(d){for(var e=_.k([].concat(_.r(c.listeners))),f=e.next();!f.done;f=e.next()){f=f.value;try{f(d)}catch(g){setTimeout(function(){throw g;})}}},this.listenableMap.addEventListener(a,this.cM))};
_.h.removeEventListener=function(a,b){b=this.listeners.indexOf(b);return b!==-1?(this.listeners.splice(b,1),this.listeners.length===0&&(this.listenableMap.removeEventListener(a,this.cM),this.cM=void 0),!0):!1};_.h.clear=function(){this.listenableMap.clear()};_.h.delete=function(a){return this.listenableMap.delete(a)};_.h.entries=function(){return this.listenableMap.entries()};
_.h.forEach=function(a,b){for(var c=_.k([].concat(_.r(this.entries()))),d=c.next();!d.done;d=c.next()){var e=_.k(d.value);d=e.next().value;e=e.next().value;a.call(b,e,d,this)}};_.h.get=function(a){return this.listenableMap.get(a)};_.h.has=function(a){return this.listenableMap.has(a)};_.h.keys=function(){return this.listenableMap.keys()};_.h.set=function(a,b,c){this.listenableMap.set(a,b,c);return this};_.h.values=function(){return this.listenableMap.values()};Gzc.prototype[Symbol.iterator]=function(){return this.entries()};
_.wc.Object.defineProperties(Gzc.prototype,{size:{configurable:!0,enumerable:!0,get:function(){return this.listenableMap.size}}});var Hzc=function(a,b,c,d,e,f,g){eyc.call(this,a,g);this.asyncTaskTracker=b;this.globalCacheDataService=c;this.pantheonCsiService=d;this.veLoggingService=e;this.httpHandler=f};_.Y(Hzc,eyc);
Hzc.prototype.create=function(a,b){var c=this;return a.runInMain(function(){var d=c.overlayContainer.getContainerElement.bind(c.overlayContainer),e=new Izc(c.globalCacheDataService),f=c.serviceRegistry.getService("routerConnectionService",b);return{asyncTaskTracker:wx(c.asyncTaskTracker),getOverlayContainerElement:wx(d),globalCacheDataService:wx(e),csiService:wx(c.pantheonCsiService),trackElement:wx(_.lQa),getPlatformMetadata:wx(function(){return _.UKa(d())}),veLoggingService:wx(c.veLoggingService),
httpHandler:wx(c.httpHandler),unload:function(){e.unload()},routerConnectionService:wx(f),getZoneCurrentTask:wx(function(){return Zone.currentTask}),getCurrentZone:wx(function(){return Zone.current}),convertHttpContext:tvc}})};Hzc.da=function(a){return new (a||Hzc)(_.m(_.On),_.m(_.oq),_.m(_.kp),_.m(_.$Db),_.m(_.Ii),_.m(_.bsb),_.m(_.Vp))};Hzc.ma=_.l({token:Hzc,ka:Hzc.da,oa:"root"});var Izc=function(a){this.globalCacheDataService=a;this.aa=new Map};
Izc.prototype.getOrCreateListenableMap=function(a,b,c){if(this.aa.has(a))return this.aa.get(a);b=this.globalCacheDataService.getOrCreateListenableMap(a,Object.assign({},b),c);if(a==="NON_SHAREABLE_CACHE_ID")return b;b=new Gzc(b);this.aa.set(a,b);return b};Izc.prototype.unload=function(){for(var a=_.k(this.aa.values()),b=a.next();!b.done;b=a.next())b=b.value,b.cM&&(b.listenableMap.removeEventListener("change",b.cM),b.listeners.splice(0,b.listeners.length),b.cM=void 0)};
if(!Fzc){Fzc=!0;var Cx=window;vx(Cx,"CsiService",{proto:_.cHa.prototype,toStringTagValue:"CsiService"});vx(Cx,"CsiReport",{proto:_.RDb.prototype,toStringTagValue:"CsiReport"});vx(Cx,"VeLoggingService",{proto:_.Ii.prototype,toStringTagValue:"VeLoggingService"});vx(Cx,"HttpRequest",{proto:_.CAa.prototype,toStringTagValue:"HttpRequest"});vx(Cx,"HttpResponse",{proto:_.Sj.prototype,toStringTagValue:"HttpResponse"});vx(Cx,"HttpHeaderResponse",{proto:_.ksb.prototype,toStringTagValue:"HttpHeaderResponse"});
vx(Cx,"HttpErrorResponse",{proto:_.Tj.prototype,toStringTagValue:"HttpErrorResponse"});vx(Cx,"ErrorResponse",{proto:_.tk.prototype,toStringTagValue:"ErrorResponse"});vx(Cx,"HttpHeaders",{proto:_.sh.prototype,toStringTagValue:"HttpHeaders"});vx(Cx,"HttpParams",{proto:_.th.prototype,toStringTagValue:"HttpParams"});vx(Cx,"ErrorParameters",{proto:_.aJa.prototype,toStringTagValue:"ErrorParameters"});vx(Cx,"RouterConnectionService",{proto:Zyc.prototype,toStringTagValue:"RouterConnectionService"});vx(Cx,
"StorageUploadHostService",{proto:Azc.prototype,toStringTagValue:"StorageUploadHostService"});vx(Cx,"Observable",{proto:_.Ad.prototype,toStringTagValue:"Observable"});vx(Cx,"ConnectableObservable",{proto:_.Qra.prototype,toStringTagValue:"ConnectableObservable"});vx(Cx,"Subject",{proto:_.Ze.prototype,toStringTagValue:"Subject"});vx(Cx,"BehaviorSubject",{proto:_.Qh.prototype,toStringTagValue:"BehaviorSubject"});vx(Cx,"ReplaySubject",{proto:_.df.prototype,toStringTagValue:"ReplaySubject"});vx(Cx,"AsyncSubject",
{proto:_.Rd.prototype,toStringTagValue:"AsyncSubject"});vx(Cx,"Subscription",{proto:_.vd.prototype,toStringTagValue:"Subscription"})};var Jzc=function(){this.eventNotificationFactory=_.q(_.ht);this.aa=this.eventNotificationFactory.get("MigrationCenterUploadTrackerServiceId")};Jzc.da=function(a){return new (a||Jzc)};Jzc.ma=_.l({token:Jzc,ka:Jzc.da,oa:"root"});var Kzc=function(){var a=this;this.uploadService=_.q(mzc);this.uploads=new _.Ze;if(_.lh())throw Error("Hi");var b=_.q(_.nuc),c=_.q(Jzc),d=new Set;this.uploads.pipe(_.rf(function(e){b.add(e.uploadOperation)}),_.B(function(e){return e.start()}),_.rf(function(e){var f=e.Xja;var g=e.signedUrl;f.subscribe(function(n){n.type==="complete"?(d.delete(g),c.aa.emit(d)):d.has(g)||(d.add(g),c.aa.emit(d))},function(){d.delete(g);c.aa.emit(d)})})).subscribe();_.iq(_.fq(_.q(_.jq),"MigrationCenterUploadService_messageBus"),
function(e){return a.upload(e)})};Kzc.prototype.upload=function(a){a=new Lzc(this.uploadService,a);this.uploads.next(a);return a.objectMetadata};Kzc.da=function(a){return new (a||Kzc)};Kzc.ma=_.l({token:Kzc,ka:Kzc.da,oa:"root"});
var Lzc=function(a,b){var c=this;this.startUpload=new _.df;this.status=this.progress=0;this.signedUrl=b.signedUrl;this.Xja=this.startUpload.pipe(_.bsa(szc(a,b)),_.jf(1));a=this.Xja.pipe(_.nf({type:"progress",uploaded:0}),_.B(function(d){return{status:d.type==="complete"?1:0,uploaded:d.uploaded,uC:void 0}}),_.Ie(function(d){return _.A({status:2,uploaded:0,uC:d.message})}),_.B(function(d){return{name:b.displayName,status:d.status,uploaded:d.uploaded,size:b.file.size,uC:d.uC}}));a.subscribe(function(d){var e=
d.status;var f=d.size;d=d.uploaded;c.status=e;c.progress=d/f});this.uploadOperation={jsmod:"pm_mc_operation_drawer_row",created:new Date,operation:a};this.objectMetadata=this.Xja.pipe(_.he(function(d){return d.type==="complete"}),_.B(function(d){return d.object}))};Lzc.prototype.start=function(){this.startUpload.next();this.startUpload.complete();return{Xja:this.Xja,signedUrl:this.signedUrl}};var Nzc=function(a,b,c,d){this.BAa=a;this.rifGuardsFactory=b;this.sandboxManager=c;if(_.lh())throw Error("Ii");this.messages=_.mq(d,"GUARD_RUNNER_SERVICE_MESSAGE_ID");Mzc(this)},Mzc=function(a){a.messages.asObservable().pipe(_.he(function(b){return b.type==="RUN_REQUEST"})).subscribe(function(b){var c=b.route;b=b.state;c=a.run(c,b);a.messages.next({type:"RUN_RESPONSE",response:c,state:b})})};
Nzc.prototype.run=function(a,b){var c=this,d=this.sandboxManager.getCurrentlyRunningSandboxId();return _.$tc(this.BAa,d).pipe(_.of(function(e){e=_.Itc(b.url,e);if(e.length===0)return _.A(!0);if(_.mvc){console.group('%cRIF guards%c Will run the following guards on navigation "'+b.url+'"',"background:yellow; color:blue; font-weight:bold;","padding:0 5px; border:1px solid blue; font-weight:bold;");for(var f=_.k(e),g=f.next();!g.done;g=f.next()){var n=g.value;g=n.path;n=_.Mtc(n.guard);var p=n.config;
console.log(n.name+", route config matching path: '"+g+"'");p&&console.log("config:\n"+p)}console.groupEnd()}e=_.huc(c.rifGuardsFactory,e);return Lxc(e,a,b)}))};Nzc.da=function(a){return new (a||Nzc)(_.m(_.Ztc),_.m(_.guc),_.m(_.dq),_.m(_.jq))};Nzc.ma=_.l({token:Nzc,ka:Nzc.da,oa:"root"});var Ozc=new _.Op("45402841");var Pzc=new _.Vc("RIF_IFRAME_URL"),Qzc=new _.Vc("RIF_EXPERIMENTAL_CONFIG"),Rzc=function(a,b,c,d,e){var f=this;this.sandboxConfig=a;this.sandboxManager=b;this.iframeService=c;this.iframeService.createIframe(d,e!=null?e:{}).subscribe(function(){var g=f.iframeService.iframeWindow;if(g){var n=f.sandboxManager;g=g.pangolinIframeGlobals.uid.toString();var p=f.sandboxConfig.sandboxId;n.Fa.set(g,p);n.za.set(p,g)}})};Rzc.prototype.Ca=function(){this.iframeService.unload()};
Rzc.da=function(a){return new (a||Rzc)(_.F(yx),_.F(_.dq),_.F(Ax),_.F(Pzc),_.F(Qzc,8))};Rzc.ha=_.G({type:Rzc,selectors:[["iframe-wrapper-v2"]],standalone:!1,features:[_.zg([{provide:Ax,useExisting:fyc}])],ia:0,vars:0,template:function(){},encapsulation:2});var Szc=function(){};Szc.da=function(a){return new (a||Szc)};Szc.ua=_.Fe({type:Szc});Szc.ta=_.Dc({});var Tzc=new _.Vc("isApiEnvironment");var Uzc=function(){this.inputReady=!1};Uzc.prototype.Aa=function(){this.inputReady=!0};Uzc.da=function(a){return new (a||Uzc)};
Uzc.ha=_.G({type:Uzc,selectors:[["sandbox"]],inputs:{sandboxId:"sandboxId"},standalone:!1,features:[_.zg([{provide:yx,useFactory:function(a,b){if(b=b.getConfig(a.sandboxId))return b;throw Error("Ji`"+a.sandboxId);},deps:[Uzc,_.dq]}])],ia:1,vars:1,la:[[4,"ngIf"]],template:function(a,b){a&1&&_.I(0,Mxc,1,0,"inner-sandbox",0);a&2&&_.J("ngIf",b.inputReady)},dependencies:function(){return[_.un,Vzc]},encapsulation:2});
var Wzc=[{provide:Rxc,useFactory:function(){return new Rxc("m_")}},{provide:Tzc,useValue:!1},{provide:Vyc,useFactory:function(a,b){b=b.sandboxId;if(a.serviceDestroySubjects.has(b))throw Error("Id`"+b);var c=new _.Ze;a.serviceDestroySubjects.set(b,c);return c.asObservable()},deps:[_.Vp,yx]},{provide:Xxc,useFactory:function(a,b){return a.codeUrl?new Zxc(a,new cyc):new $xc(a,b)},deps:[yx,Vyc]},{provide:fyc,useFactory:function(a,b,c,d,e,f,g,n,p,t,u,w,z){return new Tyc(b,a,c,d,e,f,g,n,p,t,u,w,z)},deps:[yx,
Xxc,_.dq,Vyc,byc,_.On,_.jh,_.Eec,Hzc,_.Rv,_.rh,cyc,_.pe]},fzc,Sxc,{provide:Zyc,useFactory:function(){var a=_.Ch(Ozc),b=window.sharedHostData;return b&&b.routerConnectionService?b.routerConnectionService:new Zyc(a)}}],Vzc=function(a,b,c,d,e,f,g,n,p,t,u,w,z,C,H,L,V,ba,fa){this.codeService=a;this.idGenerator=b;this.sandboxConfig=c;this.serviceRegistry=d;this.workerService=e;this.devShellService=f;this.pangolinRouterSynchronizer=g;this.projectService=n;this.sectionsRegistry=p;this.rifMetadataProvider=
t;this.ec=z;this.qd=C;this.routerConnectionService=fa;this.onDestroy=new _.Ze;Ryc(this.workerService);this.workerService.onDebugMessage.pipe(_.pf(this.onDestroy)).subscribe(function(){});Nxc(this.serviceRegistry,c.sandboxId,new Map([["codeService",this.codeService],["idGenerator",this.idGenerator],["workerService",this.workerService],["routerConnectionService",this.routerConnectionService]]));this.pangolinRouterSynchronizer.initialize()};
Vzc.prototype.Ca=function(){this.onDestroy.next();this.onDestroy.complete();var a=this.serviceRegistry,b=this.sandboxConfig.sandboxId;if(a.servicesMap.has(b)){var c=a.serviceDestroySubjects.get(b);if(c)c.next(),c.complete(),a.serviceDestroySubjects.delete(b);else throw Error("Gd`"+b);a.servicesMap.delete(b)}};
Vzc.da=function(a){return new (a||Vzc)(_.F(Xxc),_.F(Rxc),_.F(yx),_.F(_.Vp),_.F(fyc),_.F(_.Auc),_.F(fzc),_.F(_.jt),_.F(_.cv),_.F(Sxc),_.F(Azc),_.F(Kzc),_.F(_.ov),_.F(_.Ow),_.F(_.lvc),_.F(_.Tuc),_.F(Nzc),_.F(_.prc),_.F(Zyc))};Vzc.ha=_.G({type:Vzc,selectors:[["inner-sandbox"]],standalone:!1,features:[_.zg(Wzc)],ia:1,vars:0,template:function(a){a&1&&_.O(0,"iframe-wrapper-v2")},dependencies:[Rzc],encapsulation:2});var Xzc=function(a){this.iconService=a;this.iconService.registerIconset("growth","small",4);this.iconService.registerIconset("growth","medium",4)};Xzc.da=function(a){return new (a||Xzc)(_.m(_.Qp))};Xzc.ua=_.Fe({type:Xzc});Xzc.ta=_.Dc({imports:[_.Rp]});var Yzc=function(a){this.sandboxManager=a;this.sandboxManager.rifSandboxContextProvider||(this.sandboxManager.rifSandboxContextProvider=this)};Yzc.prototype.getCurrentSandbox=function(){var a;return(a=Hvc())==null?void 0:a.uid.toString()};Yzc.da=function(a){return new (a||Yzc)(_.m(_.dq))};Yzc.ma=_.l({token:Yzc,ka:Yzc.da,oa:"root"});var Zzc=function(){};Zzc.da=function(a){return new (a||Zzc)(_.m(Yzc))};Zzc.ua=_.Fe({type:Zzc,id:"pm_pangolin_sandbox"});Zzc.ta=_.Dc({providers:[{provide:_.pp,useValue:{SandboxWrapper:Uzc}},{provide:Pzc,useValue:_.Gob}],imports:[_.In,_.GVb,_.x8b,_.Ir,_.Rp,_.uv,Xzc,Szc]});_.uf(Zzc,"pm_pangolin_sandbox");

_.ph();
}catch(e){_._DumpException(e)}
try{
_.oh("pm_deferred_unsaved_ui_dialog");
var yki=function(a,b){a&1&&(_.M(0,"li"),_.T(1),_.N());a&2&&(a=b.na,_.D(),_.U(" ",a," "))},zki=function(a,b){this.dialogRef=a;this.aa=b;this.i9=new _.as(!1);this.data=_.q(_.Ko);this.title="Navigating away will reset your view";this.content=_.ak("Your selection ('{PAGE_BEING_NAVIGATED_TO}') will open in a new tab to preserve current settings for the following:",{PAGE_BEING_NAVIGATED_TO:this.data.grd})};zki.prototype.confirm=function(){this.aa.i9=this.i9.value;this.dialogRef.close()};
zki.da=function(a){return new (a||zki)(_.F(_.Jo),_.F(_.pSa))};
zki.ha=_.G({type:zki,selectors:[["ng-component"]],ia:12,vars:5,la:function(){return["Don't show this message again","Got it",["matDialogTitle","","tabindex","-1"],["matDialogContent",""],["cfc-list",""],[4,"ngFor","ngForOf"],[3,"formControl"],["matDialogActions",""],["mat-button","","color","primary",3,"click"]]},template:function(a,b){a&1&&(_.M(0,"h1",2),_.T(1),_.N(),_.M(2,"div",3)(3,"p"),_.T(4),_.N(),_.M(5,"ul",4),_.I(6,yki,2,1,"li",5),_.N(),_.M(7,"mat-checkbox",6),_.R(8,0),_.N()(),_.M(9,"div",
7)(10,"button",8),_.E("click",function(){return b.confirm()}),_.R(11,1),_.N()());a&2&&(_.Cf("cdkFocusInitial",!0),_.D(),_.U(" ",b.title,"\n"),_.D(3),_.ug(b.content),_.D(2),_.J("ngForOf",b.data.QK),_.D(),_.J("formControl",b.i9))},dependencies:[_.In,_.tn,_.Ms,_.Ls,_.Cr,_.zs,_.$o,_.No,_.Po,_.Oo,_.Xs,_.Vs,_.Yz,_.Wz,_.Xz,_.Vz,_.xs,_.Sr,_.es],styles:["mat-checkbox[_ngcontent-%COMP%]{position:absolute}\n/*# sourceMappingURL=unsaved_ui_dialog_component.css.map */"]});var Aki=function(a,b){this.dialog=a;this.analyticsService=b;this.destroy=new _.Ze};Aki.prototype.Ca=function(){this.destroy.next()};Aki.prototype.confirm=function(a,b){a={disableClose:!0,data:{grd:a,QK:b}};this.analyticsService.sendEvent({type:"unsavedUiDialog",name:"openDialog"});return this.dialog.open(zki,a).afterClosed().pipe(_.pf(this.destroy),_.B(function(){return!0}))};Aki.da=function(a){return new (a||Aki)(_.m(_.Lo),_.m(_.uk))};Aki.ma=_.l({token:Aki,ka:Aki.da,oa:"root"});var Bki=function(){};
Bki.da=function(a){return new (a||Bki)};Bki.ua=_.Fe({type:Bki,id:"pm_deferred_unsaved_ui_dialog"});Bki.ta=_.Dc({providers:[{provide:_.pp,useValue:{UnsavedUiDialogService:Aki}}]});_.uf(Bki,"pm_deferred_unsaved_ui_dialog");
_.ph();
}catch(e){_._DumpException(e)}
try{
var dwi,fwi,hwi,gwi,jwi,kwi,lwi,pwi,owi,rwi,qwi,twi,vwi,wwi,xwi,ywi,zwi,Awi,Bwi,Cwi,Ewi,Fwi,Gwi,Hwi,Iwi;dwi=function(a){a.startsWith("/")||(a="/"+a);a.endsWith("/")&&(a=a.substring(0,-1));return"^"+a.split("/").map(function(b){return b.startsWith(":")?"[^/]+":b==="**"?".+":b}).join("/")+"($|/|[?]|;|#)"};
_.ewi=function(a,b){switch(_.hi(b,1)){case 2:var c=_.utb(b),d=b.getFlags(),e=b.getVersion()||"",f=b.getEnvironment()||"",g=_.vh(b,9)||!1;b=b.getBuildLabel()||"";var n=_.zh(c,1),p=_.Dha(_.wh(c,_.Fk,7)),t=_.Dha(_.wh(c,_.Fk,9));d=Object.assign({},d.toJavaScript());a:switch(_.hi(c,3)){case 1:var u=0;break a;default:u=1}a={id:a,renderer:0,configuration:{id:n,codeUrl:p,U0c:t,flags:d,securityModel:u},isSnapshot:g,release:e,environment:f,buildLabel:b};e=a.configuration;if(f=_.wh(c,_.Fk,8))e.cssUrl=_.Dha(f);
if(f=_.nc(c,5))e.cssRowKey=f;if(c=_.nc(c,6))e.combinedSignature=c;return a;default:throw Error("Yg`"+_.hi(b,1));}};fwi=function(a){return a.getTabsList().map(function(b){return{id:"",title:b.getTitle(),route:_.ySa(b.getRoute())}})};
hwi=function(a,b){b=b===void 0?0:b;if(b>6)_.Zh().logClientError({message:"Max search depth for findMatchingRoute reached",eventType:"routeUtils",eventName:"routeSearchDepthExceeded",errorExperience:2});else{++b;a.startsWith("/")&&(a=a.substring(1));for(var c=a.split("/")[0],d,e=_.Aa(_.Wk,c,function(p,t){t=t.path?t.path.split("/")[0]:void 0;return p!==t?_.kZa(p,t):0}),f=_.Wk[e],g,n;!d&&((g=f)==null?0:(n=g.path)==null?0:n.startsWith(c));)d=gwi(f,a,b),f=_.Wk[++e];return d}};
gwi=function(a,b,c,d){d=d===void 0?"":d;if(c>6)_.Zh().logClientError({message:"Max search depth for findMatchingRoute reached",eventType:"routeUtils",eventName:"routeSearchDepthExceeded",errorExperience:2});else{++c;var e=b.length>0?"/"+b:"",f=a.path!==void 0?"^"+dwi(a.path)+(a.pathMatch==="full"?"$":""):void 0;if(f&&e.match(f)){if(a.loadChildren||a.Ld)return a;if(a.qc&&typeof a.qc==="string")return a.qc.startsWith("/")?hwi(a.qc,c):hwi(d+"/"+a.qc,c)}d=a.path||"";d="/"+b.split("/").slice(0,(d?d.split("/").length-
1:0)+1).join("/");if(f&&d.match(f)&&a.children)for(b=b.substring(d.length),a=_.k(a.children),f=a.next();!f.done;f=a.next())if(f=gwi(f.value,b,c,d))return f}};_.iwi=function(a){if(a=hwi(a)){var b;if(a==null?0:(b=a.data)==null?0:b.routeId)return{routeId:a.data.routeId};if((b=_.lZa(a))&&b!=="zzzzzz")return{pintoModule:b}}};jwi=function(a){return{privateDoNotAccessOrElseTrustedResourceUrlWrappedValue:_.Vb(a).toString()}};
kwi=function(a,b){var c=a.parseUrl(b);a=c.queryParams;b={};var d;if(c=(d=c.root.children.primary)==null?void 0:d.segments){d=c[c.length-1].parameters;c=_.k(Object.keys(d));for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=d[e];b[e]=f.includes(",")?f.split(","):f}}return{queryParams:a,zrd:b}};lwi=function(a){var b={};a=_.k(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.path;d.includes(":")&&(c=_.Ntc({pattern:d,pathValue:c.pathValue||""}),b=Object.assign({},b,Object.fromEntries(c)))}return b};
pwi=function(a,b){if(!a)return{};var c=mwi.parse(a);c=_.k(c);for(var d=c.next();!d.done;d=c.next()){var e=_.k(d.value);d=e.next().value;e=e.next().value;if((d==="name"||d==="&")&&b.lookup(e)===void 0)throw new nwi("Couldn't find runtime value for '"+e+"'. Please make sure you are using the correct token string.");}try{return owi(mwi.render(a,b))}catch(f){throw new nwi(f.message);}};owi=function(a){if(!a)return{};try{return JSON.parse(a)}catch(b){throw new nwi(b.message);}};
rwi=function(a){return a.hasPermissions()?{name:"Permissions prefetch",config:a.getPermissions().getPermissionsList().map(qwi).join("\n")}:_.vl(a,_.Hp,4,_.Ip)?{name:"Permissions prefetch",config:qwi(_.yk(a,_.Hp,4,_.Ip))}:a.hasColiseum()?{name:"Coliseum prefetch",config:"Entity name: "+_.nc(a.getColiseum(),1)}:a.hasGraphql()?{name:"GraphQL prefetch",config:"Entity name: "+_.nc(a.getGraphql(),1)}:_.vl(a,_.htb,6,_.Ip)?{name:"Taberna prefetch",config:_.nc(_.yk(a,_.htb,6,_.Ip),1)}:{name:"Unknown request"}};
qwi=function(a){var b=[];a.hasResourceType()&&b.push("Resource type: "+a.getResourceType());b.push("Permissions: ["+a.getPermissionsList().join(", ")+"]");return"  {"+b.join(", ")+"}"};_.swi=function(a,b){switch(a.type){case "end":return!0;case "cancel":return!1;case "error":if(b)throw{name:"RIFNavigationError",message:a.error||"Navigation error inside RIF App."};return!1;default:throw Error("Qp`"+JSON.stringify(a));}};twi=function(a){a=_.sc(a).getDomain();return a!=="www.gstatic.com"&&a!=="gstatic-devkeys.corp.google.com"};
vwi=function(a){return!_.uwi||a.toString().indexOf("/br=")!==-1||_.W2a||twi(a.toString())?a:_.Rb(String(a)+"/br=1")};wwi=function(a,b){var c=document.head,d=document.createElement("link");(0,_.qc.ZR)(d,a,"preload");a=_.sc(a).getDomain();d.crossOrigin=a==="gstatic-devkeys.corp.google.com"?"use-credentials":"anonymous";d.as=b;try{c.appendChild(d),d.onload=function(){c.removeChild(d)},d.onerror=function(){c.removeChild(d)}}catch(e){}};
xwi=function(a,b){for(var c=0,d=_.k(a),e=d.next();!e.done;e=d.next()){e=e.value;var f=b[c],g=void 0;if(e.routeConfig!==((g=f)==null?void 0:g.routeConfig))break;if(!_.Ia(e.pathParams,f.pathParams))break;c+=1}return a.slice(c)};ywi=function(a,b){for(var c=new Set,d=0;d<a.length;d++)try{_.pqb(b,a[d]).forEach(function(e){return c.add(e)})}catch(e){}return Array.from(c)};zwi=function(a,b){return _.hc(a,2,b)};Awi=function(){var a=new _.atb;return _.hc(a,1,"ListServicesInfo")};
Bwi=function(a,b){return a.configMap.has(b)&&!a.sandboxState.get(b)};Cwi=function(a){if(a.aa.length!==0){for(var b=_.k(a.aa),c=b.next();!c.done;c=b.next())if(c=c.value,c.ntb)return c.sandboxId;return a.aa.shift().sandboxId}};
_.Dwi=function(a,b){if(_.wwb(a,b,2)){a.wa&&(a.wa=void 0);var c={sandboxId:b,ntb:!0},d=_.xBa(Number(a.za.get(b)));d&&d.pangolinIframeGlobals.canUnloadSubject.pipe(_.qf(function(f){return!f},!0)).subscribe(function(f){c.ntb=f});if(a.aa.push(c)>_.Ewb){var e=Cwi(a);_.ywb(a,e);if(e===b)return}_.Cwb(a,b,!0);e=_.zd(_.of(function(){return(d==null?void 0:d.pangolinIframeGlobals.canUnloadSubject)||_.A(!0)}),_.he(function(f){return f?a.sandboxState.get(b)===2:!1}));_.xwb(a,b).pipe(e).subscribe(function(){_.ywb(a,
b)})}};Ewi=function(a,b,c){a.matchers=a.matchers.filter(function(d){return d!==c});a.aa.delete(b)};Fwi=function(a,b){return a.aa.pipe(_.B(function(c){return c.filter(function(d){return d.pathMatch==="full"?b===d.path:b.startsWith(d.path)})}))};Gwi=function(a,b){b=_.sc(b).getPath();var c=b.startsWith("/")?b.slice(1):b;b=Fwi(a,c).pipe(_.he(function(d){return d.length>0}));a=_.Zd([Fwi(a,c)]).pipe(_.B(function(d){return _.k(d).next().value}));return _.ge(b,a).pipe(_.Qe(1))};
Hwi=function(a,b){return Object.values(a).filter(function(c){return c.id==="routes/"+b}).map(function(c){return c.path.replace(/^\/?(.*?)\/\*$/g,"/$1")})};Iwi=function(a,b){var c=a.aa.pipe(_.B(function(d){return Hwi(d,b)}),_.he(function(d){return d.length>0}));a=_.Zd([a.aa]).pipe(_.B(function(d){d=_.k(d).next().value;return Hwi(d,b)}));return _.ge(c,a).pipe(_.Qe(1))};_.uwi=!1;_.Jwi=function(){_.Sp.apply(this,arguments)};_.Y(_.Jwi,_.Sp);
_.Jwi.da=function(){var a;return function(b){return(a||(a=_.nd(_.Jwi)))(b||_.Jwi)}}();_.Jwi.ma=_.l({token:_.Jwi,ka:function(a){var b=null;a?b=new a:b=_.m(_.Tp).create("NON_SHAREABLE_CACHE_ID","platform: platform-feature-metadata");return b},oa:"root"});_.Kwi=function(a){this.Ea=_.lb(a,void 0,void 0,3)};_.Y(_.Kwi,_.yb);_.h=_.Kwi.prototype;_.h.getTitle=function(){return _.zh(this,1)};_.h.setTitle=function(a){return _.hc(this,1,a)};_.h.Gr=function(){return _.yh(this,1)};_.h.getRoute=function(){return _.wh(this,_.otb,2)};_.h.hasDetails=function(){return _.ti(this,_.Np,3)};_.Lwi=function(a){if(a!=null)return _.Gb(a),{title:_.Eb(_.nc(a,1)),route:_.dub(a.getRoute()),details:_.kub(_.wh(a,_.Np,3))}};_.Kwi.prototype.toObject=function(){return _.Lwi(this)};var Mwi=function(a){this.Ea=_.lb(a,void 0,void 0,3)};_.Y(Mwi,_.yb);Mwi.prototype.getPage=function(){return _.zh(this,1)};Mwi.prototype.setPage=function(a){return _.hc(this,1,a)};Mwi.prototype.setWithDetails=function(a){return _.ic(this,2,a)};Mwi.prototype.toObject=function(){if(this!=null){_.Gb(this);var a={page:_.Eb(_.nc(this,1)),withDetails:_.Eb(_.Fl(this,2))}}else a=void 0;return a};var Nwi=function(a){this.Ea=_.lb(a,0,Nwi.messageId,3)};_.Y(Nwi,_.yb);Nwi.prototype.getTabsList=function(a){return _.Lb(this,_.Kwi,1,_.Mb(a))};Nwi.messageId="p.gtres";Nwi.prototype.toObject=function(){if(this!=null){_.Gb(this);var a={tabsList:_.Cb(this.getTabsList(),_.Lwi)}}else a=void 0;return a};var Pwi=function(a,b){var c=this;this.globalNav=a;this.aa=new Map;this.pintoPreloads=this.globalNav.pintoPreloads;this.ea=_.l1b(b,{httpMethod:"GET",basePath:"/p/pintopreloads"});this.ea.subscribe(function(d){d=JSON.parse(d);d=_.fTa(d);Owi(c,d)});this.pintoPreloads&&Owi(this,this.pintoPreloads)},Owi=function(a,b){for(var c=_.k(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,b.hasOwnProperty(d)){var e=Qwi(a,d,!1);e.next(b[d]?b[d]:[]);e.complete()}},Qwi=function(a,b,c){c=c===void 0?!0:c;if(a.aa.get(b))return a.aa.get(b);
var d=new _.df;a.aa.set(b,d);c&&a.ea.subscribe({complete:function(){d.next([]);d.complete()},error:function(){d.next([]);d.complete()}});return d};Pwi.da=function(a){return new (a||Pwi)(_.m(_.cac),_.m(_.$u))};Pwi.ma=_.l({token:Pwi,ka:Pwi.da,oa:"root"});var Rwi=function(){this.featureContentStore=new Map};Rwi.da=function(a){return new (a||Rwi)};Rwi.ma=_.l({token:Rwi,ka:Rwi.da,oa:"root"});_.Swi=function(){this.registry=new Set;this.aa=new _.df};_.Uwi=function(a){var b=_.Twi;return[].concat(_.r(a.registry)).some(function(c){return c instanceof b})};_.Swi.da=function(a){return new (a||_.Swi)};_.Swi.ma=_.l({token:_.Swi,ka:_.Swi.da,oa:"root"});var Vwi=function(a){this.rifGuardsFactory=a};
Vwi.prototype.create=function(a){var b=a.Kcd;a=a.sandboxActivator;if(_.mvc){console.group("%cRoute config guards%c Will run the following guards during RIF initialization","background:yellow; color:blue; font-weight:bold; padding:0 5px; border:1px solid blue;","font-weight:bold;");for(var c=_.k(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.path;e=_.Mtc(e.guard);var f=e.config;console.log(e.name+", route config matching path: '"+d+"'");f&&console.log("config:\n"+f)}console.groupEnd()}return new Wwi(_.huc(this.rifGuardsFactory,
b),a)};Vwi.da=function(a){return new (a||Vwi)(_.m(_.guc))};Vwi.ma=_.l({token:Vwi,ka:Vwi.da,oa:"root"});var Wwi=function(a,b){this.guards=a;this.sandboxActivator=b};Wwi.prototype.canActivate=function(a,b){var c=[].concat(_.r(this.guards),[this.sandboxActivator]).map(function(d){return _.Yd(function(){return d.canActivate(a,b).pipe(_.Ye())})});return _.A(c).pipe(_.Ktc())};var Xwi;/*

 The MIT License

 Copyright (c) 2009 Chris Wanstrath (Ruby)
 Copyright (c) 2010-2014 Jan Lehnardt (JavaScript)
 Copyright (c) 2010-2015 The mustache.js community

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
 mustache.js - Logic-less {{mustache}} templates with JavaScript
 http://github.com/janl/mustache.js
*/
var mwi={};
(function(a){function b(ra){return typeof ra==="function"}function c(ra){return ra.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function d(ra,Va){return ra!=null&&typeof ra==="object"&&Va in ra}function e(ra,Va){function Ba(pc){typeof pc==="string"&&(pc=pc.split(V,2));if(!w(pc)||pc.length!==2)throw Error("Kp`"+pc);Wa=new RegExp(c(pc[0])+"\\s*");mb=new RegExp("\\s*"+c(pc[1]));rb=new RegExp("\\s*"+c("}"+pc[1]))}if(!ra)return[];var Ka=[],ja=[],Ca=[],Qa=!1,Na=!1,Wa,mb,rb;Ba(Va||a.tags);ra=new n(ra);
for(var zb,vb,Nb;!ra.eos();){Va=ra.pos;if(vb=ra.scanUntil(Wa)){Nb=0;for(var Tb=vb.length;Nb<Tb;++Nb)if(zb=vb.charAt(Nb),z.call(C,zb)?Na=!0:Ca.push(ja.length),ja.push(["text",zb,Va,Va+1]),Va+=1,zb==="\n"){if(Qa&&!Na)for(;Ca.length;)delete ja[Ca.pop()];else Ca=[];Na=Qa=!1}}if(!ra.scan(Wa))break;Qa=!0;zb=ra.scan(ma)||"name";ra.scan(L);zb==="="?(vb=ra.scanUntil(ba),ra.scan(ba),ra.scanUntil(mb)):zb==="{"?(vb=ra.scanUntil(rb),ra.scan(fa),ra.scanUntil(mb),zb="&"):vb=ra.scanUntil(mb);if(!ra.scan(mb))throw Error("Lp`"+
ra.pos);Nb=[zb,vb,Va,ra.pos];ja.push(Nb);if(zb==="#"||zb==="^")Ka.push(Nb);else if(zb==="/"){zb=Ka.pop();if(!zb)throw Error("Mp`"+vb+"`"+Va);if(zb[1]!==vb)throw Error("Np`"+zb[1]+"`"+Va);}else zb==="name"||zb==="{"||zb==="&"?Na=!0:zb==="="&&Ba(vb)}if(zb=Ka.pop())throw Error("Np`"+zb[1]+"`"+ra.pos);return g(f(ja))}function f(ra){for(var Va=[],Ba,Ka,ja=0,Ca=ra.length;ja<Ca;++ja)if(Ba=ra[ja])Ba[0]==="text"&&Ka&&Ka[0]==="text"?(Ka[1]+=Ba[1],Ka[3]=Ba[3]):(Va.push(Ba),Ka=Ba);return Va}function g(ra){for(var Va=
[],Ba=Va,Ka=[],ja,Ca=0,Qa=ra.length;Ca<Qa;++Ca)switch(ja=ra[Ca],ja[0]){case "#":case "^":Ba.push(ja);Ka.push(ja);Ba=ja[4]=[];break;case "/":Ba=Ka.pop();Ba[5]=ja[2];Ba=Ka.length>0?Ka[Ka.length-1][4]:Va;break;default:Ba.push(ja)}return Va}function n(ra){this.tail=this.string=ra;this.pos=0}function p(ra,Va){this.view=ra;this.cache={".":this.view};this.parent=Va}function t(){this.cache={}}var u=Object.prototype.toString,w=Array.isArray||function(ra){return u.call(ra)==="[object Array]"},z=RegExp.prototype.test,
C=/\S/,H={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},L=/\s*/,V=/\s+/,ba=/\s*=/,fa=/\s*\}/,ma=/#|\^|\/|>|\{|&|=|!/;n.prototype.eos=function(){return this.tail===""};n.prototype.scan=function(ra){ra=this.tail.match(ra);if(!ra||ra.index!==0)return"";ra=ra[0];this.tail=this.tail.substring(ra.length);this.pos+=ra.length;return ra};n.prototype.scanUntil=function(ra){ra=this.tail.search(ra);switch(ra){case -1:var Va=this.tail;this.tail="";break;case 0:Va=
"";break;default:Va=this.tail.substring(0,ra),this.tail=this.tail.substring(ra)}this.pos+=Va.length;return Va};p.prototype.push=function(ra){return new p(ra,this)};p.prototype.lookup=function(ra){var Va=this.cache;if(Va.hasOwnProperty(ra))var Ba=Va[ra];else{for(var Ka=this,ja,Ca,Qa=!1;Ka;){if(ra.indexOf(".")>0)for(Ba=Ka.view,ja=ra.split("."),Ca=0;Ba!=null&&Ca<ja.length;)Ca===ja.length-1&&(Qa=d(Ba,ja[Ca])),Ba=Ba[ja[Ca++]];else Ba=Ka.view[ra],Qa=d(Ka.view,ra);if(Qa)break;Ka=Ka.parent}Va[ra]=Ba}b(Ba)&&
(Ba=Ba.call(this.view));return Ba};t.prototype.clearCache=function(){this.cache={}};t.prototype.parse=function(ra,Va){var Ba=this.cache,Ka=Ba[ra];Ka==null&&(Ka=Ba[ra]=e(ra,Va));return Ka};t.prototype.render=function(ra,Va,Ba){var Ka=this.parse(ra);Va=Va instanceof p?Va:new p(Va);return this.renderTokens(Ka,Va,Ba,ra)};t.prototype.renderTokens=function(ra,Va,Ba,Ka){for(var ja="",Ca,Qa,Na,Wa=0,mb=ra.length;Wa<mb;++Wa)Na=void 0,Ca=ra[Wa],Qa=Ca[0],Qa==="#"?Na=this.renderSection(Ca,Va,Ba,Ka):Qa==="^"?Na=
this.renderInverted(Ca,Va,Ba,Ka):Qa===">"?Na=this.renderPartial(Ca,Va,Ba):Qa==="&"?Na=this.unescapedValue(Ca,Va):Qa==="name"?Na=this.escapedValue(Ca,Va):Qa==="text"&&(Na=this.rawValue(Ca)),Na!==void 0&&(ja+=Na);return ja};t.prototype.renderSection=function(ra,Va,Ba,Ka){function ja(rb){return Ca.render(rb,Va,Ba)}var Ca=this,Qa="",Na=Va.lookup(ra[1]);if(Na){if(w(Na))for(var Wa=0,mb=Na.length;Wa<mb;++Wa)Qa+=this.renderTokens(ra[4],Va.push(Na[Wa]),Ba,Ka);else if(typeof Na==="object"||typeof Na==="string"||
typeof Na==="number")Qa+=this.renderTokens(ra[4],Va.push(Na),Ba,Ka);else if(b(Na)){if(typeof Ka!=="string")throw Error("Op");Na=Na.call(Va.view,Ka.slice(ra[3],ra[5]),ja);Na!=null&&(Qa+=Na)}else Qa+=this.renderTokens(ra[4],Va,Ba,Ka);return Qa}};t.prototype.renderInverted=function(ra,Va,Ba,Ka){var ja=Va.lookup(ra[1]);if(!ja||w(ja)&&ja.length===0)return this.renderTokens(ra[4],Va,Ba,Ka)};t.prototype.renderPartial=function(ra,Va,Ba){if(Ba&&(ra=b(Ba)?Ba(ra[1]):Ba[ra[1]],ra!=null))return this.renderTokens(this.parse(ra),
Va,Ba,ra)};t.prototype.unescapedValue=function(ra,Va){ra=Va.lookup(ra[1]);if(ra!=null)return ra};t.prototype.escapedValue=function(ra,Va){ra=Va.lookup(ra[1]);if(ra!=null)return a.escape(ra)};t.prototype.rawValue=function(ra){return ra[1]};a.name="mustache.js";a.version="2.3.0";a.tags=["{{","}}"];var va=new t;a.clearCache=function(){return va.clearCache()};a.parse=function(ra,Va){return va.parse(ra,Va)};a.render=function(ra,Va,Ba){if(typeof ra!=="string")throw Va=TypeError,ra=w(ra)?"array":typeof ra,
new Va("Pp`"+ra);return va.render(ra,Va,Ba)};a.to_html=function(ra,Va,Ba,Ka){ra=a.render(ra,Va,Ba);if(b(Ka))Ka(ra);else return ra};a.escape=function(ra){return String(ra).replace(/[&<>"'`=\/]/g,function(Va){return H[Va]})};a.Scanner=n;a.Context=p;a.Writer=t})(mwi);var nwi=function(){var a=Error.apply(this,arguments);this.message=a.message;"stack"in a&&(this.stack=a.stack)};_.Y(nwi,Error);
var Ywi=function(a,b,c,d,e,f,g,n,p,t,u,w,z,C,H){this.coliseum=b;this.coliseumTableFactory=c;this.graphqlTableManagerFactory=d;this.graphqlClient=e;this.analyticsService=f;this.basicTypesService=g;this.httpCacheService=n;this.iamPermissionsService=p;this.orgPolicyService=t;this.ngZone=u;this.projectParamService=w;this.projectService=z;this.serviceUsageService=C;this.router=H;this.cache=a.create("NON_SHAREABLE_CACHE_ID","PrefetchService cache",{itemsExpireAfterMs:3E4})};
Ywi.prototype.getContext=function(a,b){var c=this.projectParamService.Ab(),d;c&&this.projectService.getProject(c,!0).subscribe(function(f){d=f.projectNumber}).unsubscribe();var e=kwi(this.router,b.fullPath);a=a.length?lwi(a):b.pathParams;return new mwi.Context({projectId:c,projectNumber:d,query:e.queryParams,matrixParams:e.zrd,pathParams:a,fullPath:b.fullPath})};
Ywi.prototype.prefetch=function(a,b){var c=[];a.length>0&&(a.flatMap(function(g){return g.prefetch}).filter(function(g){return!!g}).forEach(function(g){c.push(g)}),a.flatMap(function(g){return g.resolve}).filter(function(g){return!!g}).forEach(function(g){var n=_.wh(g,_.WSa,2);n&&(_.ic(n,9,_.vh(g,4)),c.push(n))}));a=this.getContext(a,{pathParams:{},fullPath:b});if(_.mvc){console.group("%cRoute config prefetch%c Will fetch the following requests during RIF initialization %c(at "+performance.now()+
"ms)","background:yellow; color:blue; font-weight:bold; padding:0 5px; border:1px solid blue;","font-weight:bold;","font-weight:bold; color:green;");b=_.k(c);for(var d=b.next();!d.done;d=b.next()){d=rwi(d.value);var e=d.config;console.log(d.name);e&&console.log("config:\n"+e)}console.groupEnd()}b=_.k(c);for(d=b.next();!d.done;d=b.next()){d=d.value;e=_.xk(d,7)!=null?_.Ob(d,7):void 0;var f=!!_.vh(d,9);d.hasPermissions()?this.prefetchPermissions(d.getPermissions(),f):_.vl(d,_.ctb,5,_.Ip)?Zwi(this,d.getOrgPolicy(),
a):_.vl(d,_.Hp,4,_.Ip)?$wi(this,_.yk(d,_.Hp,4,_.Ip)):d.hasColiseum()?axi(this,d.getColiseum(),a,f,e):d.hasGraphql()?bxi(this,d.getGraphql(),a,!!_.vh(d,9),e):_.vl(d,_.htb,6,_.Ip)?cxi(this,_.yk(d,_.htb,6,_.Ip),f):_.vl(d,_.gtb,8,_.Ip)&&dxi(this,_.yk(d,_.gtb,8,_.Ip),f)}};
var exi=function(a,b,c,d,e,f){e=e===void 0?!1:e;var g,n=!1,p=!1,t=!0;if(!a.httpCacheService.aa.has(b)){var u=c.match;c.match=function(C){if(!n||f!==void 0){if(g=u(C)){g.key=g.key||C.url;var H=g,L=H.cache,V=H.key;H=L.get(V);g.Dgd=t&&!H;H&&(H.subscribe({error:function(ba){if(!e){var fa="No error message found.";ba instanceof Error&&ba.message&&(fa=ba.message);yX(a,{status:1,eventName:"urlRequestError",message:"Error with request "+C.url,additionalInfo:[fa]});L.delete(V)}},complete:function(){yX(a,{status:2,
eventName:"urlRequestSuccess",message:"Successfully retrieved "+C.url+" from prefetch cache"});f===void 0&&a.ngZone.runOutsideAngular(function(){setTimeout(function(){L.delete(V)})})}}),n=!0)}return g}};a.httpCacheService.addMatcher(b,c);p=!0}try{d.subscribe().unsubscribe()}finally{t=!1}if(p)if(g){d=g;var w=d.cache,z=d.key;f!==void 0&&f>0&&z&&a.ngZone.runOutsideAngular(function(){setTimeout(function(){w.delete(z)},f===void 0?0:f)});w.onChange.pipe(_.Ye(function(C){return C.key===z&&C.action==="REMOVE"})).subscribe(function(){n||
yX(a,{status:1,eventName:"prefetchNotServed",message:"Prefetched response was never served, please make sure route config is equivalent to RIF's definition",additionalInfo:[c]});Ewi(a.httpCacheService,b,c)})}else yX(a,{status:1,eventName:"prefetchMatchFailed",message:"Failed to match prefetch request",additionalInfo:[c]}),Ewi(a.httpCacheService,b,c)},fxi=function(a,b,c,d,e,f,g){var n=null;g?n=g:d.hasOperation!=null&&(n=d.hasOperation()?d.getOperation():zwi(new _.atb,_.Ql(d,2)));return{prefetch:d,
filterMethods:[c],filterUrl:new RegExp(b),hUa:n,match:function(p){if(p=e(p))return{cache:a.cache,key:p,expiresAfterMs:f===0||f===-1?Infinity:f}}}};
Ywi.prototype.prefetchPermissions=function(a,b){b=b===void 0?!1:b;var c=gxi(this,a),d=fxi(this,"CRM_GRAPHQL","POST",a,function(e){var f=e.body;e=f.query||f.operationName;if(f=f.variables){var g=Object.keys(f).sort(),n={};g=_.k(g);for(var p=g.next();!p.done;p=g.next())p=p.value,n[p]=f[p];f=n}f=f||{};n=_.k(f.testIamPermissionsRequests);for(g=n.next();!g.done;g=n.next())p=void 0,(p=g.value.permissions)==null||p.sort();return JSON.stringify(e)+"|"+JSON.stringify(f)});exi(this,a,d,c,b)};
var gxi=function(a,b){var c=_.nc(b,1),d=[];b=_.k(b.getPermissionsList());for(var e=b.next(),f={};!e.done;f={SRb:void 0,WUb:void 0},e=b.next()){var g=e.value;f.SRb=g.getPermissionsList(_.Ri);e=void 0;g=(e=_.m5a(g,1))!=null?e:void 0;f.WUb=c?[new _.bj(c,g)]:void 0;d.push(new _.Ad(function(n){return function(p){a.iamPermissionsService.preFetchPermissions(n.SRb,n.WUb).subscribe(p)}}(f)))}return _.Td(d)},$wi=function(a,b){var c;(c=hxi(a,b))==null||c.subscribe({complete:function(){yX(a,{status:2,eventName:"permissionSuccess",
message:"Successfully prefetched resource permissions"})},error:function(){yX(a,{status:1,eventName:"permissionError",message:"Error prefetching resource permissions"})}})},hxi=function(a,b){var c=b.getPermissionsList(_.Ri),d=_.nc(b,3),e;b=(e=_.m5a(b,1))!=null?e:void 0;return a.iamPermissionsService.preFetchPermissions(c,d?[new _.bj(d,b)]:void 0)},Zwi=function(a,b,c){var d=function(e){return{complete:function(){yX(a,{status:2,eventName:"orgPolicySuccess",message:"Successfully prefetched "+e})},error:function(){yX(a,
{status:1,eventName:"orgPolicyError",message:"Error prefetching "+e})}}};(c=ixi(a,b,c))&&(b.getRequestType()==="getEffectivePolicy"?c.subscribe(d("getEffectivePolicy")):b.getRequestType()==="isEnforced"?c.subscribe(d("isEnforced")):c.subscribe(d("listAvailableOrgPolicyConstraints")))},ixi=function(a,b,c){try{var d=pwi(_.nc(b,2),c)}catch(e){yX(a,{status:1,eventName:"orgPolicyParsingError",message:"Error parsing arguments for the '"+b+"' request because of the following: '"+e+"'"});if(e instanceof nwi)return;
throw e;}return b.getRequestType()==="getEffectivePolicy"?a.orgPolicyService.getEffectivePolicy(d.resourceType,d.resourceId,_.nc(b,3)):b.getRequestType()==="isEnforced"?a.orgPolicyService.isEnforced(d.resourceType,d.resourceId,_.nc(b,3)):a.orgPolicyService.listAvailableOrgPolicyC