Proto @Signature(bytes: "2/GmTJbPKCNn1IcD0ORjiNiqOV+GsEjNrUJ3WmSYP4yQw=") { metaApiService: iamMetaMutation { setIamPolicies(setIamPolicyRequests: $setIamPolicyRequests) { ...policy } } } fragment policy on google_iam_v1_Policy { version bindings { role members condition { expression title description location } bindingId } auditConfigs { service auditLogConfigs { logType exemptedMembers ignoreChildExemptions } } etag }', a,b).pipe(this.deserialize(Lib))}queryTestIamPermissions(a,b){a=this.serialize(Mib,a);return this.config.request("TestIamPermissions",'query TestIamPermissions($testIamPermissionsRequests: [IN_google_iam_v1_TestIamPermissionsRequest!]!) @Signature(bytes: "2/pcNeAHGM7HCFlufi7E4VJ6jJjmSoJPhu5u2OCEGHufA=") { metaApiService: iamMetaQuery { iamPermissions(testIamPermissionsRequests: $testIamPermissionsRequests) { permissions } } }',a,b).pipe(this.deserialize(Mib))}}; Nib.ea=function(a){return new (a||Nib)(_.m(_.Oq),_.m(_.Vq))};Nib.sa=_.l({token:Nib,na:Nib.ea,wa:"root"});var Oib;Oib=function(a){return _.me(new _.Pd(b=>{a.aa.has("section-nav-panel")&&b.next(a.aa.get("section-nav-panel"));b.complete()}),a.fa).pipe(_.ne(b=>b.id==="section-nav-panel"),_.lf())};_.Xt=class{constructor(a){this.rc=a;this.aa=new Map;this.fa=new _.mf;this.da=_.bn(this.rc,"panelServiceGlobalPanelStateId")}};_.Xt.ea=function(a){return new (a||_.Xt)(_.m(_.fn))};_.Xt.sa=_.l({token:_.Xt,na:_.Xt.ea,wa:"root"});var Pib=class{constructor(a){this.aa="";this.aa=Pta(a.rm.root.snapshot)||"pan-unresolved-page-path";Promise.resolve(this.aa);let b=this.aa;a.events.subscribe(c=>{let d=!1;c instanceof _.Am?new Promise(e=>{this.da=e}):c instanceof _.Bm?(b=this.aa,this.aa=Pta(c.state.root)):c instanceof _.lh||c instanceof _.kh?(this.aa=b,d=!0):c instanceof _.jh&&(d=!0);d&&this.da&&this.da(this.aa)})}getPath(){return this.aa}};Pib.ea=function(a){return new (a||Pib)(_.m(_.Wm))};Pib.sa=_.l({token:Pib,na:Pib.ea,wa:"root"});var Qib=function(){};var Rib=function(){};_.zk(Rib,Qib);Rib.prototype.Wl=function(){let a=0;for(const b of this)a++;return a};Rib.prototype[Symbol.iterator]=function(){return Uhb(this.xJ(!0)).aa()};Rib.prototype.clear=function(){const a=Array.from(this);for(const b of a)this.remove(b)};_.zk(eIa,Rib);_.ba=eIa.prototype;_.ba.isAvailable=function(){var a=this.aa;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else b=!1;return this.da=b};_.ba.set=function(a,b){Yt(this);try{this.aa.setItem(a,b)}catch(c){if(this.aa.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; _.ba.get=function(a){Yt(this);a=this.aa.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};_.ba.remove=function(a){Yt(this);this.aa.removeItem(a)};_.ba.Wl=function(){Yt(this);return this.aa.length}; _.ba.xJ=function(a){Yt(this);var b=0,c=this.aa,d=new _.Qt;d.next=function(){if(b>=c.length)return _.Rt;var e=c.key(b++);if(a)return _.Qhb(e);e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return _.Qhb(e)};return d};_.ba.clear=function(){Yt(this);this.aa.clear()};_.ba.key=function(a){Yt(this);return this.aa.key(a)};var Yt=function(a){if(a.aa==null)throw Error("Se");let b;((b=a.da)!=null?b:a.isAvailable())||_.pa(Error("Se"))};_.zk(fIa,eIa);var Sib;Sib=new _.nd("Session Storage",{wa:"root",na:()=>new fIa}); _.Zt=class{constructor(){this.sessionStorage=_.n(Sib);this.aa=_.n(_.Rn);this.fa=new _.an("clientSessionIdSharedStateId");this.da=new _.an("crossAppClientSessionIdSharedStateId");var a=this.sessionStorage.get("pantheonSessionId");a?this.browserWindowId=a:(this.browserWindowId=_.Jn(),this.sessionStorage.set("pantheonSessionId",this.browserWindowId));this.fa.get()===void 0&&this.fa.set(_.Jn());if(this.da.get()===void 0){a=this.da;var b=a.set;a:{let e=this.sessionStorage.get("crossAppClientSessionId"); if(e){if(this.aa.history.state){var c=e;break a}var d;const f=(d=this.aa.document)==null?void 0:d.referrer;d=this.aa.location.href;if(f&&d)try{const g=new URL(f),h=new URL(d);if(g.host===h.host&&g.port===h.port&&g.protocol===h.protocol){c=e;break a}}catch(g){}}e=_.Jn();this.sessionStorage.set("crossAppClientSessionId",e);c=e}b.call(a,c)}}};_.Zt.ea=function(a){return new (a||_.Zt)};_.Zt.sa=_.l({token:_.Zt,na:_.Zt.ea,wa:"root"});_.$t=class{constructor(a,b,c,d){this.aa=b;this.fa=c;this.isInternal=!1;this.projectNumber=null;this.authUser=(b=_.Iq(a))?_.Qi(b,1):null;b=b?_.Qi(b,4):null;if(a.zS()||b&&(b.startsWith("pantheon.prober")||b.startsWith("pantheon.vmprober")))this.isInternal=!0;this.da=d.da;_.oi();this.language=(a=(this.aa.ref.pantheon_locale||"").match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):"";let e;this.jurisdiction=(e=d.jurisdiction)!=null?e:"global"}getPath(){const a=_.Fh().currentPageView.path;return a!=="pan-unresolved-page-path"? a:this.fa.getPath()}};_.$t.ea=function(a){return new (a||_.$t)(_.m(_.Jq),_.m(_.Wh),_.m(Pib),_.m(_.Tn),_.m(_.Zt))};_.$t.sa=_.l({token:_.$t,na:_.$t.ea,wa:"root"});var Tib=class extends _.Ii{constructor(a){super({name:a.name,displayName:a.displayName,lifecycleState:a.lifecycleState,type:a.type,organizationId:a.organizationId,parent:a.parent,labels:a.labels},a.isPhantom);this.capabilities=a.capabilities}};var Uib=function(a,b){return o7a(a.fa,{folderId:b}).pipe(_.A(c=>{c=c.folder;var d;const e=((d=c.configuredCapabilities)==null?0:d.includes(`${c.name}/capabilities/app-management`))&&c.managementProject?{appManagement:{managementProjectId:_.Bi(c.managementProject)}}:void 0;a:switch(c.lifecycleState){case 1:d="ACTIVE";break a;case 2:d="DELETE_REQUESTED";break a;default:d="UNSPECIFIED_LIFECYCLE_STATE"}return new Tib({name:c.name,displayName:c.displayName,lifecycleState:d,type:"folder",organizationId:c.organizationId|| null,parent:c.parent,capabilities:e})}))},au=class{constructor(){this.fa=_.n(_.Wq);this.operationsService=_.n(_.Nq);this.rc=_.n(_.fn);this.da=_.bn(this.rc,"crm.folders.mutationLroDataCacheId");this.aa=_.cn(this.rc,"crm.folders.getFolderAsyncCacheId")}getFolder(a){this.aa.get(a)===void 0&&this.aa.set(a,Uib(this,a));return this.da.has(a)?this.operationsService.get(this.da.get(a).operationId,0).pipe(_.ff(1),_.Df(b=>{b.status!=="PENDING"&&b.status!=="RUNNING"&&this.da.delete(a);b.status==="DONE"&&this.aa.refresh(a)}), _.Te(()=>{this.da.delete(a);return _.y(void 0)}),_.H(()=>this.aa.get(a))):this.aa.get(a)}};au.ea=function(a){return new (a||au)};au.sa=_.l({token:au,na:au.ea,wa:"root"});_.Vib=new _.Mn("45402723");var Zib,Xib,Wib; _.Yib=function(a){const b=Wib(a),c=({id:d,name:e,lifecycleState:f,creationTimeMs:g,isDefault:h,isSelfOwned:p})=>Lza(d,e,g,h,f,p);a.organizations=(b?_.y(b):Xib(a)).pipe(_.A(d=>{const e=Wib(a);if(e)return e.organizations.map(c);a.fa.set("list_organizations",d);a.Pa.sendEvent({type:"OrganizationResourceService",name:"listOrganizations",metadata:{resourceCount:String(d.organizations.length)}});d=d.organizations.map(c);a.da.next(d);return d}),_.Te(d=>{d.errorExperience=6;a.da.next(0);return _.y([])}));a.organizations= a.aa?a.organizations.pipe(_.wf()):a.organizations.pipe(_.uf(1),_.$d());return a.organizations};_.bu=function(a){return a.ia.aa?a.aa?a.da.asObservable().pipe(_.hf(),_.ne(b=>b!==1),_.H(b=>b===0?(a.da.next(1),_.Yib(a)):_.y(b)),_.ff(1)):_.Yib(a):_.y([])}; Zib=function(a,b){const c=[];let d,e;for(const f of((d=b)==null?void 0:(e=d.organizations)==null?void 0:e.data)||[]){if(!(f&&f.id&&f.name&&f.creationTimeMs)||isNaN(Number(f.creationTimeMs))){a.Pa.sendEvent({type:"OrganizationResourceService",name:"invalidOrganization",metadata:{invalidOrganization:!f,invalidId:!(!f||f.id),invalidName:!(!f||f.name),invalidCreationTimeMs:!(!f||f.creationTimeMs&&!isNaN(Number(f.creationTimeMs)))}});continue}let g;b={id:f.id,name:f.name,lifecycleState:(g=f)==null?void 0: g.lifecycleState,creationTimeMs:Number(f.creationTimeMs),isDefault:!!f.isDefault,isSelfOwned:!!f.isSelfOwned};c.push(b)}return{organizations:c}};Xib=function(a){return a.aa?r7a(a.ha,{cacheConfigOverrides:{accessMode:"BACKEND_WITH_MONITORING"}}).pipe(_.A(b=>Zib(a,b))):r7a(a.ha).pipe(_.ff(1),_.A(b=>Zib(a,b)))};Wib=function(a){if(!a.aa)return a.fa.get("list_organizations")}; _.cu=class{constructor(a,b,c,d){this.ha=a;this.ia=b;this.Pa=c;this.organizations=null;this.aa=_.Ah(_.Vib);this.fa=_.bn(d,"globalOrganizationsId");this.da=_.dn(d,"globalOrganizationsObsId",{variant:"BEHAVIOR_SUBJECT",initialValue:0})}};_.cu.ea=function(a){return new (a||_.cu)(_.m(_.Wq),_.m(_.Jq),_.m(_.Un),_.m(_.fn))};_.cu.sa=_.l({token:_.cu,na:_.cu.ea,wa:"root"});var $ib=class{};$ib.ea=function(a){return new (a||$ib)};$ib.Aa=_.Qe({type:$ib,id:"pm_organization_resource_service"}); $ib.za=_.Wc({providers:[{Ga:_.jn,mb:{OrganizationResourceService:_.cu}}]});_.Gf($ib,"pm_organization_resource_service");var ajb=class{constructor(a){Object.assign(this,a)}getDisplayName(){return this.reference&&this.reference.getDisplayName()||""}};var bjb=function(a,b,c){b=b.pipe(_.A(d=>{d=d instanceof _.Ii?d:a.ia(d);c&&a.resourceState.set(c,d);return d}));c||a.Ql();return b},cjb=function(a,b){return bjb(a,a.operations.create(b).pipe(_.zf(c=>c.status!=="DONE"),_.A(c=>JSON.parse(c.result))))},djb=class{constructor(a,b){this.operations=a;this.resourceState=_.bn(b,"globalCrmResourceClientCacheId",!1,{serializer:{serialize:_.rAa,deserialize:_.sAa}});this.fa=_.cn(b,"globalAsyncCrmResourceClientCacheId",{serializer:{serialize:_.rAa,deserialize:_.sAa}})}updateLabels(){throw Error("Te"); }ia(a){return new _.Ii(a)}Ql(){this.resourceState.clear()}};var fjb;_.ejb=function(a,b){{const d=a.tZa(b);if(b){var c=a.Vqa();a=c&&c===b.domain&&b.reason?a.da.get(b.reason)||d:b.errorSpace===a.cX()&&b.errorCode?a.fa.get(b.errorCode)||d:d}else a=d}a.errorExperience&&b&&(b.errorExperience=a.errorExperience);return a};fjb=function(a,b,c){c=Object.assign({},{action:a.sGa()},c);a.fa.set(b,c)};_.du=function(a,b,c){c=Object.assign({},{action:a.sGa()},c);a.da.set(b,c)}; _.eu=class{constructor(a){this.errorService=a;this.fa=new Map;this.da=new Map;this.N5a()}aa(a){const b=_.ejb(this,a),c=b.FZa&&a instanceof _.cj?(new _.Cj(b.body)).format(b.FZa(a)):b.body;let d;return this.errorService.handleError(a!=null?a:{},{errorMessage:{subject:b.action,body:c},errorExperience:(d=a==null?void 0:a.errorExperience)!=null?d:1,Vc:1})}};_.eu.ea=function(a){return new (a||_.eu)(_.m(_.Pt))};_.eu.sa=_.l({token:_.eu,na:_.eu.ea,wa:"root"});var fu={ACTIVE_FOLDER_HEIGHT_VIOLATION:1,MAX_CHILD_FOLDERS_VIOLATION:2,FOLDER_NAME_UNIQUENESS_VIOLATION:3,RESOURCE_DELETED_VIOLATION:4,PARENT_DELETED_VIOLATION:5,CYCLE_INTRODUCED_VIOLATION:6,FOLDER_BEING_MOVED_VIOLATION:7,FOLDER_TO_DELETE_NON_EMPTY_VIOLATION:8,UNRECOGNIZED:9,rZd:10,DELETED_FOLDER_HEIGHT_VIOLATION:11,ERROR_TYPE_UNSPECIFIED:12,qZd:13};_.gu=class extends _.eu{tZa(){return{body:"Unknown error",action:"Folder Service"}}N5a(){const a=[{code:fu.ERROR_TYPE_UNSPECIFIED,reason:"ERROR_TYPE_UNSPECIFIED",message:"Folder operation failed. An unrecognized error occurred."},{code:fu.UNRECOGNIZED,reason:"UNRECOGNIZED",message:"Folder operation failed. An unrecognized error occurred."},{code:fu.ACTIVE_FOLDER_HEIGHT_VIOLATION,reason:"ACTIVE_FOLDER_HEIGHT_VIOLATION",message:"The attempted action would create too many folder levels. You can have up to ten folder levels.", errorExperience:3},{code:fu.MAX_CHILD_FOLDERS_VIOLATION,reason:"MAX_CHILD_FOLDERS_VIOLATION",message:"The attempted action would violate the max child folders constraint.",errorExperience:3},{code:fu.FOLDER_NAME_UNIQUENESS_VIOLATION,reason:"FOLDER_NAME_UNIQUENESS_VIOLATION",message:"The attempted action would violate the unique folder display name constraint.",errorExperience:3},{code:fu.RESOURCE_DELETED_VIOLATION,reason:"RESOURCE_DELETED_VIOLATION",message:"The resource being moved has been deleted.", errorExperience:3},{code:fu.PARENT_DELETED_VIOLATION,reason:"PARENT_DELETED_VIOLATION",message:"The resource a folder was being added to has been deleted.",errorExperience:3},{code:fu.CYCLE_INTRODUCED_VIOLATION,reason:"CYCLE_INTRODUCED_VIOLATION",message:"The attempted action would introduce cycle in resource path.",errorExperience:3},{code:fu.FOLDER_BEING_MOVED_VIOLATION,reason:"FOLDER_BEING_MOVED_VIOLATION",message:"The attempted action would move a folder that is already being moved.",errorExperience:3}, {code:fu.FOLDER_TO_DELETE_NON_EMPTY_VIOLATION,reason:"FOLDER_TO_DELETE_NON_EMPTY_VIOLATION",message:"Folder cannot be deleted as it contains active resources. Only empty folders can be deleted.",errorExperience:3},{code:fu.FOLDER_MOVE_PERMISSION_DENIED,reason:"FOLDER_MOVE_PERMISSION_DENIED",message:"You don't have permission to move this folder.",errorExperience:3},{code:fu.DELETED_FOLDER_HEIGHT_VIOLATION,reason:"DELETED_FOLDER_HEIGHT_VIOLATION",message:"Moving this folder would create too many folder levels.", errorExperience:3}];for(const b of a)fjb(this,b.code,{body:b.message,errorExperience:b.errorExperience}),_.du(this,b.reason,{body:b.message,errorExperience:b.errorExperience})}cX(){return"folders"}Vqa(){return"cloudconsole-pa.googleapis.com/crm/folders"}sGa(){return"Folder Service"}};_.gu.ea=(()=>{let a;return function(b){return(a||(a=_.Id(_.gu)))(b||_.gu)}})();_.gu.sa=_.l({token:_.gu,na:_.gu.ea,wa:"root"});_.iIa=class{constructor(a,b){this.type=a;this.resource=b}};_.gjb=function(a,b){a.da.next(b)};_.hu=class{constructor(a){this.da=_.dn(a,"iamResourceEventCacheId",{variant:"SUBJECT"},{serializer:{serialize:hIa,deserialize:jIa}});this.events=this.da.asObservable()}};_.hu.ea=function(a){return new (a||_.hu)(_.m(_.fn))};_.hu.sa=_.l({token:_.hu,na:_.hu.ea,wa:"root"});var hjb=class extends djb{constructor(a,b,c,d,e){super(a,e);this.operations=a;this.ha=b;this.aa=c;this.errorService=d;this.da=_.n(au)}create(a,b){const c={phantomRows:[{displayName:a.displayName,parent:a.parent,type:"FOLDER",lifecycleState:"ACTIVE",name:`folders/${String(Math.round(Math.random()*1E6))}`}]};let d;b?d={displayName:a.displayName,organizationId:b.id}:d={displayName:a.displayName};b={};for(const [e,f]of a.tags||[])b[e]=f;a={entityType:"CRM_FOLDER",method:"CREATE",request:Object.assign({}, {typeName:"google.internal.cloud.console.clientapi.crm.CreateFolderRequest"},{phantomData:c,displayName:a.displayName,parent:a.parent||void 0,description:{descriptionKey:"panCreateFolder",descriptionArgs:d},tags:b})};return cjb(this,a)}rename(a,b){return bjb(this,m7a(this.aa,{folderId:a.getResourceId(),folderDisplayName:b}).pipe(_.A(({updateFolder:c})=>Object.assign({},c,{type:"folder"})),_.Df(()=>{var c=this.da,d=a.getResourceId();c.aa.refresh(d)})),a.getResourceId())}move(a,b,c){this.Ql();let d; c?d={displayName:a.getDisplayName(),organizationId:c.id}:d={displayName:a.getDisplayName()};b={name:kIa(a),parent:kIa(b),description:{descriptionKey:"panMoveFolder",descriptionArgs:d}};b={entityType:"CRM_FOLDER",method:"MOVE",request:Object.assign({},{typeName:"google.internal.cloud.console.clientapi.crm.MoveFolderRequest"},b)};return cjb(this,b).pipe(_.Df(()=>{var e=this.da,f=a.getResourceId();e.aa.refresh(f)}))}deleteResource(a){return bjb(this,k7a(this.aa,{folderId:a.getResourceId()}).pipe(_.A(({deleteFolder:b})=> Object.assign({},b,{type:"folder"})),_.Df(()=>{_.gjb(this.ha,{type:"delete",resource:a})})),a.getResourceId())}getResource(a){return gIa(this.resourceState,this.fa,a,()=>bjb(this,o7a(this.aa,{folderId:a}).pipe(_.A(({folder:b})=>Object.assign({},b,{type:"folder"}))),a)).pipe(_.A(b=>{b.type="folder";return b}))}};hjb.ea=function(a){return new (a||hjb)(_.m(_.Nq),_.m(_.hu),_.m(_.Wq),_.m(_.gu),_.m(_.fn))};hjb.sa=_.l({token:hjb,na:hjb.ea,wa:"root"});rk('Creating folder "{resourceName}".',""); rk('Successfully created folder "{resourceName}".',"");rk('Renaming folder "{resourceName}".',"Renaming folders.");rk('Successfully renamed folder "{resourceName}".',"Successfully renamed folders.");rk("Moving {resourceName} to {destinationName}.","Moving folders to {destinationName}.");rk("Successfully moved {resourceName} to {destinationName}.","Successfully moved folders to {destinationName}.");rk('Deleting folder "{resourceName}".',"Deleting folders."); rk('Successfully deleted folder "{resourceName}".',"Successfully deleted folders.");rk('Restoring folder "{resourceName}".',"Restoring folders.");rk('Successfully restored folder "{resourceName}".',"Successfully restored folders.");_.iu=class extends _.eu{tZa(){return{body:"Unknown error",action:"Organization Service"}}N5a(){fjb(this,1,{body:"Invalid argument."});fjb(this,2,{body:"Organization not found."})}cX(){return"organization"}Vqa(){}sGa(){return"Organization Service"}};_.iu.ea=(()=>{let a;return function(b){return(a||(a=_.Id(_.iu)))(b||_.iu)}})();_.iu.sa=_.l({token:_.iu,na:_.iu.ea,wa:"root"});var ijb=class extends djb{constructor(a,b,c,d){super(a,d);this.operations=a;this.aa=b;this.errorService=c}create(){return _.Wd("create not supported on organization")}rename(){return _.Wd("rename not supported on organization")}move(){return _.Wd("move not supported on organization")}deleteResource(){return _.Wd("deleteResource not supported on organization")}getResource(a){return gIa(this.resourceState,this.fa,a,()=>_.bu(this.aa).pipe(_.lf(),_.A(b=>b.filter(c=>c.getResourceId()===a)),_.A(b=>b.length? mAa(b[0]):mAa(_.Qq)))).pipe(_.A(b=>b.getResourceId()==="0"?null:b))}};ijb.ea=function(a){return new (a||ijb)(_.m(_.Nq),_.m(_.cu),_.m(_.iu),_.m(_.fn))};ijb.sa=_.l({token:ijb,na:ijb.ea,wa:"root"});_.ju=class extends _.eu{tZa(){return{body:"Unknown error",action:"Project Service"}}N5a(){const a=[{code:1,reason:"ACL_DELETE_ROLE_ONLY_OWNER",message:"You cannot delete the only owner."},{code:2,reason:"PROJECT_CREATION_QUOTA_EXCEEDED",message:"You have reached your account's quota limit for creating projects."},{code:3,reason:"API_PROJECT_LOCKED",message:"The project is locked. You are not allowed to enable or disable APIs. Please contact support to update the terms of your contract."},{code:4, reason:"CANNOT_DELETE_PROJECT_WHILE_ALLOWLISTED_OR_OFFLINE",message:"You cannot delete this project because it is on an allowlist or billed monthly. Contact Google for assistance."},{code:11,reason:"CANNOT_DELETE_INACTIVE_PROJECT",message:"You cannot delete this project because it is on an allowlist or billed monthly. Contact Google for assistance."},{code:6,reason:"ACL_OWNER_ROLE_FORBIDDEN",message:"Groups or service accounts can't be owners."},{code:7,reason:"MEMBER_NOT_FOUND",message:"Principal not found"}, {code:9,reason:"ACL_DELETE_ROLE_GROUP_OWNERSHIP",message:"You cannot edit the owner of the project. Only individual users can add or remove other owners. You are a project owner only because you belong to a group."},{code:14,reason:"INVALID_PARENT_ID",message:"Project could not be migrated to the given organization, as the given organization id is invalid"},{code:13,reason:"PARENT_ALREADY_SET",message:"Project cannot be migrated. It is already owned by an organization and organization changes are not permitted."}, {code:12,reason:"PERMISSION_DENIED_MIGRATE_ORG",message:"You cannot migrate the project to the given organization as you do not have project create permissions for the organization"},{code:15,reason:"PROJECT_SUSPENDED",message:"The project is suspended."},{code:16,reason:"CANNOT_DELETE_PROJECT_WITH_LIEN",message:"The project has a lien against it."},{code:19,reason:"CANNOT_UNDELETE_PROJECT_WITH_INACTIVE_PARENT",message:"The project has a parent folder that is not active."},{code:20,reason:"PROJECT_ID_NOT_AVAILABLE", message:"The Project ID specified is not available. Please select another. These identifiers must be unique."},{code:21,reason:"INSUFFICIENT_PROJECT_CREATION_PERMISSION",message:"You may not have permission to create projects in this organization. Contact your Google Workspace admin to verify you have the Project Creator role."},{code:22,reason:"CLOUD_DOMAIN_DISABLED",message:"Google Cloud Platform service has been disabled. Please contact your administrator to turn the service on in the Google Workspace Admin console."}, {code:23,reason:"UNRECOGNIZED",message:"Project operation failed. An unrecognized error occurred."},{code:24,reason:"INCORRECT_ORGANIZATION_FOR_GOOGLE_DOMAIN",message:"Incorrect Organization set for 'google.com' domain scope."},{code:25,reason:"CANNOT_CREATE_PROJECT_MISSING_TOS",message:"Project cannot be created as Terms of Service have not been accepted."}];for(const b of a)fjb(this,b.code,{body:b.message}),_.du(this,b.reason,{body:b.message})}cX(){return"project"}Vqa(){return"cloudconsole-pa.googleapis.com/crm/projects"}sGa(){return"Project Service"}}; _.ju.ea=(()=>{let a;return function(b){return(a||(a=_.Id(_.ju)))(b||_.ju)}})();_.ju.sa=_.l({token:_.ju,na:_.ju.ea,wa:"root"});var jjb=class extends djb{constructor(a,b,c,d,e,f){super(a,e);this.operations=a;this.aa=b;this.da=c;this.errorService=d;this.ha=f}create(){return _.Wd("create not supported for projects")}rename(a,b){return this.update(a,{name:b})}move(a,b){var c=this.update,d=b.getResourceId();b=b.getResourceType();b=_.xi.get(b);return c.call(this,a,{parent:{id:d,type:b?b.aa:null}})}updateLabels(a,b){return this.update(a,{labels:b})}deleteResource(a){return bjb(this,l7a(this.ha,{projectId:a.getResourceId()}).pipe(_.A(({deleteProject:b})=> new _.Ii({name:b.id,displayName:b.name,lifecycleState:"DELETE_REQUESTED",type:"project",organizationId:null})),_.Df(()=>{_.gjb(this.aa,{type:"delete",resource:a})})),a.getResourceId())}getResource(a){return gIa(this.resourceState,this.fa,a,()=>this.da.getProject(a).pipe(_.A(oAa)))}ia(a){return oAa(a)}update(a,b){return this.da.getProject(a.getResourceId()).pipe(_.Ye(c=>{const d=Object.assign({},c,{labels:nAa(b.labels||c.labels)});for(const [g,h]of Object.entries(d)){const p=g;h instanceof Promise&& delete d[p]}b.name&&(d.name=b.name);c.parent||(d.parent={type:"organization",id:"0"});let e,f;((e=b.parent)==null?0:e.type)&&((f=b.parent)==null?0:f.id)&&(d.parent={type:b.parent.type,id:b.parent.id});return bjb(this,n7a(this.ha,{projectId:a.getResourceId(),project:d}).pipe(_.A(({updateProject:g})=>{var h,p=_.zi(g.id,0),r=g.name,t=(h=g.parent)==null?void 0:h.id;g=g.labels;h={};if(g)for(const {key:u,value:w}of g)h[u]=w;g=h;return new _.Ii({name:p,displayName:r,lifecycleState:"ACTIVE",type:"project", organizationId:null,parent:t,labels:g})}),_.Df(g=>{var h=this.da;g=g.getResourceId();h.da.delete(g);h.aa.delete(g);this.da.fa.emit();_.gjb(this.aa,{type:"update",resource:a})})),a.getResourceId())}),_.Df(c=>{var d=this.da;c=c.getResourceId();d.da.delete(c);d.aa.delete(c);this.da.fa.emit();_.gjb(this.aa,{type:"update",resource:a})}))}};jjb.ea=function(a){return new (a||jjb)(_.m(_.Nq),_.m(_.hu),_.m(_.$q),_.m(_.ju),_.m(_.fn),_.m(_.Wq))};jjb.sa=_.l({token:jjb,na:jjb.ea,wa:"root"}); rk('Creating project "{resourceName}".',"");rk('Successfully created project "{resourceName}".',"");rk('Renaming project "{resourceName}".',"Renaming projects.");rk('Successfully renamed project "{resourceName}".',"Successfully renamed projects.");rk("Moving {resourceName} to {destinationName}.","Moving projects to {destinationName}.");rk("Successfully moved {resourceName} to {destinationName}.","Successfully moved projects to {destinationName}.");rk('Shutting down project "{resourceName}".',"Shutting down projects."); rk('Successfully shut down project "{resourceName}".',"Successfully shut down projects.");rk('Restoring project "{resourceName}".',"Restoring projects.");rk('Restored project "{resourceName}".',"Restored projects.");rk("Migrating {resourceName} to {destinationName}.","Migrating projects to {destinationName}.");rk("Successfully migrated {resourceName} to {destinationName}.","Successfully migrated projects to {destinationName}.");var ku,lu,kjb;ku=new _.nd("API_VERSION");lu=new _.nd("REQUEST_SERVICE for iam_api_client"); _.mu={$Xgafv:"$.xgafv",access_token:"access_token",alt:"alt",alternateRoleFormat:"alternateRoleFormat",callback:"callback",etag:"etag",fields:"fields",filter:"filter",key:"key",keyTypes:"keyTypes",localizationLanguage:"localizationLanguage",oauthClientCredentialId:"oauthClientCredentialId",oauthClientId:"oauthClientId",oauth_token:"oauth_token",optionsRequestedPolicyVersion:"options.requestedPolicyVersion",pageSize:"pageSize",pageToken:"pageToken",parent:"parent",prettyPrint:"prettyPrint",projectVisibilityHint:"projectVisibilityHint", publicKeyType:"publicKeyType",quotaUser:"quotaUser",readToken:"readToken",removeDeletedServiceAccounts:"removeDeletedServiceAccounts",showDeleted:"showDeleted",updateMask:"updateMask",uploadType:"uploadType",upload_protocol:"upload_protocol",validateOnly:"validateOnly",view:"view",workforcePoolId:"workforcePoolId",workforcePoolInstalledAppId:"workforcePoolInstalledAppId",workforcePoolProviderId:"workforcePoolProviderId",workforcePoolProviderKeyId:"workforcePoolProviderKeyId",workloadIdentityPoolId:"workloadIdentityPoolId", workloadIdentityPoolManagedIdentityId:"workloadIdentityPoolManagedIdentityId",workloadIdentityPoolNamespaceId:"workloadIdentityPoolNamespaceId",workloadIdentityPoolProviderId:"workloadIdentityPoolProviderId",workloadIdentityPoolProviderKeyId:"workloadIdentityPoolProviderKeyId",workloadSourceId:"workloadSourceId"}; kjb=class{constructor(a,b,c){this.aa=a;this.aa=a==null?"v1":a;this.da=new _.ht(b,c)}getEffectivePolicy(a,b={},c={}){return _.gt(this.da,{body:a,httpMethod:"POST",Ya:"iam.iamPolicies.getEffectivePolicy",path:`/${this.aa}/iamPolicies:getEffectivePolicy`,queryParams:_.Hi(b,_.mu,c)})}};kjb.ea=function(a){return new (a||kjb)(_.m(ku,8),_.m(lu),_.m(_.Tq,8))};kjb.sa=_.l({token:kjb,na:kjb.ea}); var ljb=class{constructor(a,b,c){this.aa=a;this.aa=a==null?"v1":a;this.da=new _.ht(b,c)}create(a,b,c={},d={}){_.ft(a,RegExp("^organizations/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.organizations.roles.create",path:`/${this.aa}/${a}/roles`,queryParams:_.Hi(c,_.mu,d)})}delete(a,b={},c={}){_.ft(a,RegExp("^organizations/[^/]+/roles/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"DELETE",Ya:"iam.organizations.roles.delete",path:`/${this.aa}/${a}`,queryParams:_.Hi(b,_.mu,c)})}get(a, b={},c={}){_.ft(a,RegExp("^organizations/[^/]+/roles/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"GET",Ya:"iam.organizations.roles.get",path:`/${this.aa}/${a}`,queryParams:_.Hi(b,_.mu,c)})}list(a,b={},c={}){_.ft(a,RegExp("^organizations/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"GET",Ya:"iam.organizations.roles.list",path:`/${this.aa}/${a}/roles`,queryParams:_.Hi(b,_.mu,c)})}patch(a,b,c={},d={}){_.ft(a,RegExp("^organizations/[^/]+/roles/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"PATCH", Ya:"iam.organizations.roles.patch",path:`/${this.aa}/${a}`,queryParams:_.Hi(c,_.mu,d)})}};ljb.ea=function(a){return new (a||ljb)(_.m(ku,8),_.m(lu),_.m(_.Tq,8))};ljb.sa=_.l({token:ljb,na:ljb.ea});var mjb=class{};mjb.ea=function(a){return new (a||mjb)(_.m(ku,8),_.m(lu),_.m(_.Tq,8))};mjb.sa=_.l({token:mjb,na:mjb.ea}); var njb=class{constructor(a,b,c){this.aa=a;this.aa=a==null?"v1":a;this.da=new _.ht(b,c)}create(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.projects.roles.create",path:`/${this.aa}/${a}/roles`,queryParams:_.Hi(c,_.mu,d)})}delete(a,b={},c={}){_.ft(a,RegExp("^projects/[^/]+/roles/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"DELETE",Ya:"iam.projects.roles.delete",path:`/${this.aa}/${a}`,queryParams:_.Hi(b,_.mu,c)})}get(a,b={},c={}){_.ft(a, RegExp("^projects/[^/]+/roles/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"GET",Ya:"iam.projects.roles.get",path:`/${this.aa}/${a}`,queryParams:_.Hi(b,_.mu,c)})}list(a,b={},c={}){_.ft(a,RegExp("^projects/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"GET",Ya:"iam.projects.roles.list",path:`/${this.aa}/${a}/roles`,queryParams:_.Hi(b,_.mu,c)})}patch(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+/roles/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"PATCH",Ya:"iam.projects.roles.patch", path:`/${this.aa}/${a}`,queryParams:_.Hi(c,_.mu,d)})}};njb.ea=function(a){return new (a||njb)(_.m(ku,8),_.m(lu),_.m(_.Tq,8))};njb.sa=_.l({token:njb,na:njb.ea}); var ojb=class{constructor(a,b,c){this.aa=a;this.aa=a==null?"v1":a;this.da=new _.ht(b,c)}create(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.projects.serviceAccounts.create",path:`/${this.aa}/${a}/serviceAccounts`,queryParams:_.Hi(c,_.mu,d)})}delete(a,b={},c={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"DELETE",Ya:"iam.projects.serviceAccounts.delete",path:`/${this.aa}/${a}`,queryParams:_.Hi(b, _.mu,c)})}disable(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.projects.serviceAccounts.disable",path:`/${this.aa}/${a}:disable`,queryParams:_.Hi(c,_.mu,d)})}enable(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.projects.serviceAccounts.enable",path:`/${this.aa}/${a}:enable`,queryParams:_.Hi(c,_.mu,d)})}get(a,b={},c={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$")); return _.gt(this.da,{body:null,httpMethod:"GET",Ya:"iam.projects.serviceAccounts.get",path:`/${this.aa}/${a}`,queryParams:_.Hi(b,_.mu,c)})}getIamPolicy(a,b={},c={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"POST",Ya:"iam.projects.serviceAccounts.getIamPolicy",path:`/${this.aa}/${a}:getIamPolicy`,queryParams:_.Hi(b,_.mu,c)})}list(a,b={},c={}){_.ft(a,RegExp("^projects/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"GET",Ya:"iam.projects.serviceAccounts.list", path:`/${this.aa}/${a}/serviceAccounts`,queryParams:_.Hi(b,_.mu,c)})}patch(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"PATCH",Ya:"iam.projects.serviceAccounts.patch",path:`/${this.aa}/${a}`,queryParams:_.Hi(c,_.mu,d)})}setIamPolicy(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.projects.serviceAccounts.setIamPolicy",path:`/${this.aa}/${a}:setIamPolicy`, queryParams:_.Hi(c,_.mu,d)})}testIamPermissions(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.projects.serviceAccounts.testIamPermissions",path:`/${this.aa}/${a}:testIamPermissions`,queryParams:_.Hi(c,_.mu,d)})}update(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"PUT",Ya:"iam.projects.serviceAccounts.update",path:`/${this.aa}/${a}`,queryParams:_.Hi(c,_.mu, d)})}};ojb.ea=function(a){return new (a||ojb)(_.m(ku,8),_.m(lu),_.m(_.Tq,8))};ojb.sa=_.l({token:ojb,na:ojb.ea}); var pjb=class{constructor(a,b,c){this.aa=a;this.aa=a==null?"v1":a;this.da=new _.ht(b,c)}create(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.projects.serviceAccounts.keys.create",path:`/${this.aa}/${a}/keys`,queryParams:_.Hi(c,_.mu,d)})}delete(a,b={},c={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+/keys/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"DELETE",Ya:"iam.projects.serviceAccounts.keys.delete", path:`/${this.aa}/${a}`,queryParams:_.Hi(b,_.mu,c)})}disable(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+/keys/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.projects.serviceAccounts.keys.disable",path:`/${this.aa}/${a}:disable`,queryParams:_.Hi(c,_.mu,d)})}enable(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+/keys/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.projects.serviceAccounts.keys.enable",path:`/${this.aa}/${a}:enable`, queryParams:_.Hi(c,_.mu,d)})}get(a,b={},c={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+/keys/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"GET",Ya:"iam.projects.serviceAccounts.keys.get",path:`/${this.aa}/${a}`,queryParams:_.Hi(b,_.mu,c)})}list(a,b={},c={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"GET",Ya:"iam.projects.serviceAccounts.keys.list",path:`/${this.aa}/${a}/keys`,queryParams:_.Hi(b,_.mu,c)})}patch(a,b,c={},d={}){_.ft(a, RegExp("^projects/[^/]+/serviceAccounts/[^/]+/keys/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.projects.serviceAccounts.keys.patch",path:`/${this.aa}/${a}:patch`,queryParams:_.Hi(c,_.mu,d)})}upload(a,b,c={},d={}){_.ft(a,RegExp("^projects/[^/]+/serviceAccounts/[^/]+$"));return _.gt(this.da,{body:b,httpMethod:"POST",Ya:"iam.projects.serviceAccounts.keys.upload",path:`/${this.aa}/${a}/keys:upload`,queryParams:_.Hi(c,_.mu,d)})}}; pjb.ea=function(a){return new (a||pjb)(_.m(ku,8),_.m(lu),_.m(_.Tq,8))};pjb.sa=_.l({token:pjb,na:pjb.ea});var qjb=class{constructor(a,b,c){this.aa=a;this.aa=a==null?"v1":a;this.da=new _.ht(b,c)}get(a,b={},c={}){_.ft(a,RegExp("^roles/[^/]+$"));return _.gt(this.da,{body:null,httpMethod:"GET",Ya:"iam.roles.get",path:`/${this.aa}/${a}`,queryParams:_.Hi(b,_.mu,c)})}list(a={},b={}){return _.gt(this.da,{body:null,httpMethod:"GET",Ya:"iam.roles.list",path:`/${this.aa}/roles`,queryParams:_.Hi(a,_.mu,b)})}}; qjb.ea=function(a){return new (a||qjb)(_.m(ku,8),_.m(lu),_.m(_.Tq,8))};qjb.sa=_.l({token:qjb,na:qjb.ea});var rjb=class{constructor(a,b,c){this.aa=a;this.da=b;this.fa=c}list(a,b,c=500,d=!0,e=!0,f){return a?_.Ai(a)===2?this.aa.list(a,{pageSize:c,showDeleted:d,pageToken:b,view:e?"FULL":"BASIC"}):this.da.list(a,{pageSize:c,showDeleted:d,pageToken:b,view:e?"FULL":"BASIC"}):this.fa.list({pageSize:c,showDeleted:d,pageToken:b,projectVisibilityHint:f,view:e?"FULL":"BASIC"})}create(a,b){return _.Ai(a)===2?this.aa.create(a,b):this.da.create(a,b)}patch(a,b,c){c=c.join();return _.Ai(a)===2?this.aa.patch(a,b,{updateMask:c}): this.da.patch(a,b,{updateMask:c})}delete(a){return a.startsWith("organizations/")?this.aa.delete(a,{}):this.da.delete(a,{})}get(a,b){return a.startsWith("organizations/")?this.aa.get(a,b):a.startsWith("projects/")?this.da.get(a,b):this.fa.get(a,b)}};_.nu=class{constructor(a){a=a.create({host:_.xh("iam_api_host"),version:"v1"});this.roles=a.init(qjb);this.permissions=a.init(mjb);this.fa=a.init(ljb);this.ha=a.init(njb);this.da=a.init(kjb);a.init(pjb);this.aa=a.init(ojb);this.ia=new rjb(this.fa,this.ha,this.roles)}};_.nu.ea=function(a){return new (a||_.nu)(_.m(_.Uq))};_.nu.sa=_.l({token:_.nu,na:_.nu.ea,wa:"root"});var sjb={};var tjb={entity:"IAM_GRAPHQL",entityService:"IamEntityService"};var ujb={_FlowMethodArgument:{expr:"CELExprType"},IN_google_iam_v2_CreatePolicyRequest:{policy:".IN_google_iam_v2_Policy"},IN_google_iam_v2_UpdatePolicyRequest:{policy:".IN_google_iam_v2_Policy"},IN_google_iam_v2_Policy:{annotations:"Map",createTime:"Timestamp",updateTime:"Timestamp",deleteTime:"Timestamp",rules:{__type:".IN_google_iam_v2_PolicyRule",__isList:!0}},IN_google_iam_v2_PolicyRule:{kind:"Oneof"},IN_google_iam_v3_CreatePrincipalAccessBoundaryPolicyRequest:{principalAccessBoundaryPolicy:".IN_google_iam_v3_PrincipalAccessBoundaryPolicy"}, IN_google_iam_v3_CreatePolicyBindingRequest:{policyBinding:".IN_google_iam_v3_PolicyBinding"},IN_google_iam_v3_UpdatePrincipalAccessBoundaryPolicyRequest:{principalAccessBoundaryPolicy:".IN_google_iam_v3_PrincipalAccessBoundaryPolicy",updateMask:"FieldMask"},IN_google_iam_v3_UpdatePolicyBindingRequest:{policyBinding:".IN_google_iam_v3_PolicyBinding",updateMask:"FieldMask"},IN_google_iam_v3_PrincipalAccessBoundaryPolicy:{annotations:"Map",createTime:"Timestamp",updateTime:"Timestamp"},IN_google_iam_v3_PolicyBinding:{annotations:"Map", target:".IN_google_iam_v3_PolicyBinding_Target",createTime:"Timestamp",updateTime:"Timestamp"},IN_google_iam_v3_PolicyBinding_Target:{target:"Oneof"},IN_google_cloud_policysimulator_v1beta_CreatePabSimulationRequest:{pabSimulation:".IN_google_cloud_policysimulator_v1beta_PabSimulation"},IN_google_cloud_policysimulator_v1beta_PabSimulation:{startTime:"Timestamp",endTime:"Timestamp",pabOverlay:{__type:".IN_google_cloud_policysimulator_v1beta_PabOverlay",__isList:!0}},IN_google_cloud_policysimulator_v1beta_PabOverlay:{change:"Oneof", pabPolicyOverlay:".IN_google_cloud_policysimulator_v1beta_PabPolicyOverlay",pabPolicyBindingOverlay:".IN_google_cloud_policysimulator_v1beta_PabPolicyBindingOverlay"},IN_google_cloud_policysimulator_v1beta_PabPolicyOverlay:{principalAccessBoundaryPolicy:".IN_google_cloud_policysimulator_v1beta_PrincipalAccessBoundaryPolicy",updateMask:"FieldMask"},IN_google_cloud_policysimulator_v1beta_PabPolicyBindingOverlay:{policyBinding:".IN_google_cloud_policysimulator_v1beta_PolicyBinding",updateMask:"FieldMask"}, IN_google_cloud_policysimulator_v1beta_PrincipalAccessBoundaryPolicy:{annotations:"Map",createTime:"Timestamp",updateTime:"Timestamp"},IN_google_cloud_policysimulator_v1beta_PolicyBinding:{annotations:"Map",target:".IN_google_cloud_policysimulator_v1beta_PolicyBinding_Target",createTime:"Timestamp",updateTime:"Timestamp"},IN_google_cloud_policysimulator_v1beta_PolicyBinding_Target:{target:"Oneof"},IN_google_cloud_policysimulator_v1beta_CreateAccessPolicySimulationRequest:{accessPolicySimulation:".IN_google_cloud_policysimulator_v1beta_AccessPolicySimulation"}, IN_google_cloud_policysimulator_v1beta_AccessPolicySimulation:{changeOverlay:".IN_google_cloud_policysimulator_v1beta_ChangeOverlay",createTime:"Timestamp",startTime:"Timestamp",endTime:"Timestamp"},IN_google_cloud_policysimulator_v1beta_ChangeOverlay:{mutations:{__type:".IN_google_cloud_policysimulator_v1beta_Mutation",__isList:!0}},IN_google_cloud_policysimulator_v1beta_Mutation:{contentchange:"Oneof",denyPolicyOverlay:".IN_google_cloud_policysimulator_v1beta_DenyPolicyOverlay"},IN_google_cloud_policysimulator_v1beta_DenyPolicyOverlay:{denyPolicy:".IN_google_cloud_policysimulator_v1beta_DenyPolicy", updateMask:"FieldMask"},IN_google_cloud_policysimulator_v1beta_DenyPolicy:{annotations:"Map",rules:{__type:".IN_google_cloud_policysimulator_v1beta_DenyPolicyRule",__isList:!0}},IN_google_cloud_policysimulator_v1beta_DenyPolicyRule:{kind:"Oneof"},IN_google_iam_v1_SetIamPolicyRequest:{policy:".IN_google_iam_v1_Policy",updateMask:"FieldMask"},IN_google_iam_v1_Policy:{rules:{__type:".IN_google_iam_v1_Rule",__isList:!0},etag:"Bytes"},IN_google_iam_v1_Rule:{conditions:{__type:".IN_google_iam_v1_Condition", __isList:!0},logConfig:{__type:".IN_google_iam_v1_LogConfig",__isList:!0}},IN_google_iam_v1_Condition:{subject:"Oneof"},IN_google_iam_v1_LogConfig:{type:"Oneof"}};var vjb={};_.ou=class extends _.Kq{constructor(a,b){super(ujb);this.config=_.Fq(a,tjb,!1);this.operation=b.create(this.config)}};_.ou.ea=function(a){return new (a||_.ou)(_.m(_.Oq),_.m(_.Vq))};_.ou.sa=_.l({token:_.ou,na:_.ou.ea,wa:"root"});var wjb=class{constructor(a,b,c){this.Sm=a;this.aa=b;this.locale=c}invite(a,b){var c;const d=((c=this.Sm.snapshot.queryParamMap.get("consoleUI"))==null?void 0:c.toUpperCase())==="ACTIONS"?"ACTIONS":"CLOUD";c=this.aa;a={projectId:a,email:b,consoleBranding:d,locale:this.locale};a=c.serialize(vjb,a);return c.config.request("SendProjectOwnerInvite",'mutation SendProjectOwnerInvite($projectId: String!, $email: String!, $consoleBranding: google_internal_cloud_console_clientapi_iam_schema_projectownerinvitation_types_ConsoleBranding!, $locale: String!) @Signature(bytes: "2/ShVlzE4HW4z3Pn6erkc495cTrDsw3o21HgMeJZKA+Zw=") { projectOwnerInvitation { invite(projectId: $projectId, email: $email, consoleBranding: $consoleBranding, locale: $locale) { _isPresent } } }', a,void 0).pipe(c.deserialize(vjb)).pipe(_.of())}accept(a){var b=this.aa;a={projectId:a};a=b.serialize(sjb,a);return b.config.request("AcceptProjectOwnerInvitation",'mutation AcceptProjectOwnerInvitation($projectId: String!) @NullProto @Signature(bytes: "2/9uG6S7V3u82uMhLR9KjRPg03oRP8ID9M9to4jaoyix0=") { projectOwnerInvitation { accept(projectId: $projectId) { _isPresent } } }',a,void 0).pipe(b.deserialize(sjb)).pipe(_.of(),_.df({}))}};wjb.ea=function(a){return new (a||wjb)(_.m(_.eh),_.m(_.ou),_.m(_.Jg))}; wjb.sa=_.l({token:wjb,na:wjb.ea,wa:"root"});var xjb={entity:"CRM_GRAPHQL",entityService:"CrmEntityService"};var yjb=class{constructor(a,b){this.config=_.Fq(a,xjb,!1);this.operation=b.create(this.config)}queryGetIamPolicies(a,b){return this.config.request("GetIamPolicies",'query GetIamPolicies($getIamPolicyRequests: [IN_google_iam_v1_GetIamPolicyRequest!]!) @NullProto @Signature(bytes: "2/L5tf2gQpSHA+tzKDkOAyyi0pE1179ojiPCK8lbFi7y8=") { metaApiService: folderMetaApi { iamPolicies(getIamPolicyRequests: $getIamPolicyRequests) { ...policy } } } fragment policy on google_iam_v1_Policy { version bindings { role members condition { expression title description location } bindingId } auditConfigs { service auditLogConfigs { logType exemptedMembers ignoreChildExemptions } } etag }', a,b)}mutationSetIamPolicies(a,b){return this.config.request("SetIamPolicies",'mutation SetIamPolicies($setIamPolicyRequests: [IN_google_iam_v1_SetIamPolicyRequest!]!) @NullProto @Signature(bytes: "2/4D9IiGeOUZQXYYpNGSixz159JBKgx/hONZY9prQ/G+E=") { metaApiService: folderMetaApi { setIamPolicies(setIamPolicyRequests: $setIamPolicyRequests) { ...policy } } } fragment policy on google_iam_v1_Policy { version bindings { role members condition { expression title description location } bindingId } auditConfigs { service auditLogConfigs { logType exemptedMembers ignoreChildExemptions } } etag }', a,b)}queryTestIamPermissions(a,b){return this.config.request("TestIamPermissions",'query TestIamPermissions($testIamPermissionsRequests: [IN_google_iam_v1_TestIamPermissionsRequest!]!) @Signature(bytes: "2/SL524C07sF2N6HW3/bvHR6GFiaoZuq/ygHCHzEqtTmg=") { metaApiService: folderMetaApi { iamPermissions(testIamPermissionsRequests: $testIamPermissionsRequests) { permissions } } }',a,b)}};yjb.ea=function(a){return new (a||yjb)(_.m(_.Oq),_.m(_.Vq))};yjb.sa=_.l({token:yjb,na:yjb.ea,wa:"root"});var zjb={entity:"CRM_GRAPHQL",entityService:"CrmEntityService"};var Ajb=class{constructor(a,b){this.config=_.Fq(a,zjb,!1);this.operation=b.create(this.config)}queryGetIamPolicies(a,b){return this.config.request("GetIamPolicies",'query GetIamPolicies($getIamPolicyRequests: [IN_google_iam_v1_GetIamPolicyRequest!]!) @NullProto @Signature(bytes: "2/xyCusjwSbELxRDLYD5h5bvKdBMfnVZkPaJbs0Aw2gH4=") { metaApiService: organizationMetaApi { iamPolicies(getIamPolicyRequests: $getIamPolicyRequests) { ...policy } } } fragment policy on google_iam_v1_Policy { version bindings { role members condition { expression title description location } bindingId } auditConfigs { service auditLogConfigs { logType exemptedMembers ignoreChildExemptions } } etag }', a,b)}mutationSetIamPolicies(a,b){return this.config.request("SetIamPolicies",'mutation SetIamPolicies($setIamPolicyRequests: [IN_google_iam_v1_SetIamPolicyRequest!]!) @NullProto @Signature(bytes: "2/HVcO8xPgaXxAbDwZQe8IwXc1F6QYqd00FrV5z8wZkrc=") { metaApiService: organizationMetaApi { setIamPolicies(setIamPolicyRequests: $setIamPolicyRequests) { ...policy } } } fragment policy on google_iam_v1_Policy { version bindings { role members condition { expression title description location } bindingId } auditConfigs { service auditLogConfigs { logType exemptedMembers ignoreChildExemptions } } etag }', a,b)}queryTestIamPermissions(a,b){return this.config.request("TestIamPermissions",'query TestIamPermissions($testIamPermissionsRequests: [IN_google_iam_v1_TestIamPermissionsRequest!]!) @Signature(bytes: "2/wcwONUDSNY99t0d54kEF8tjDJrp8nyywA5mAo1q7X1E=") { metaApiService: organizationMetaApi { iamPermissions(testIamPermissionsRequests: $testIamPermissionsRequests) { permissions } } }',a,b)}};Ajb.ea=function(a){return new (a||Ajb)(_.m(_.Oq),_.m(_.Vq))};Ajb.sa=_.l({token:Ajb,na:Ajb.ea,wa:"root"});var Bjb={entity:"CRM_GRAPHQL",entityService:"CrmEntityService"};var Cjb=class{constructor(a,b){this.config=_.Fq(a,Bjb,!1);this.operation=b.create(this.config)}queryGetIamPolicies(a,b){return this.config.request("GetIamPolicies",'query GetIamPolicies($getIamPolicyRequests: [IN_google_iam_v1_GetIamPolicyRequest!]!) @NullProto @Signature(bytes: "2/2t7snM4JiXn0M2f+OaIW1QVk+K6YdkiybDMPVy06wtA=") { metaApiService: projectMetaApi { iamPolicies(getIamPolicyRequests: $getIamPolicyRequests) { ...policy } } } fragment policy on google_iam_v1_Policy { version bindings { role members condition { expression title description location } bindingId } auditConfigs { service auditLogConfigs { logType exemptedMembers ignoreChildExemptions } } etag }', a,b)}mutationSetIamPolicies(a,b){return this.config.request("SetIamPolicies",'mutation SetIamPolicies($setIamPolicyRequests: [IN_google_iam_v1_SetIamPolicyRequest!]!) @NullProto @Signature(bytes: "2/BeA9KQFB8DqNTU85kJAUCatO10XW4+gt0G7wVEVEkow=") { metaApiService: projectMetaApi { setIamPolicies(setIamPolicyRequests: $setIamPolicyRequests) { ...policy } } } fragment policy on google_iam_v1_Policy { version bindings { role members condition { expression title description location } bindingId } auditConfigs { service auditLogConfigs { logType exemptedMembers ignoreChildExemptions } } etag }', a,b)}queryTestIamPermissions(a,b){return this.config.request("TestIamPermissions",'query TestIamPermissions($testIamPermissionsRequests: [IN_google_iam_v1_TestIamPermissionsRequest!]!) @Signature(bytes: "2/VOVCu+dNYGTOOkqoBH19UKscyAGQFXZATDPoq/wuBQg=") { metaApiService: projectMetaApi { iamPermissions(testIamPermissionsRequests: $testIamPermissionsRequests) { permissions } } }',a,b)}};Cjb.ea=function(a){return new (a||Cjb)(_.m(_.Oq),_.m(_.Vq))};Cjb.sa=_.l({token:Cjb,na:Cjb.ea,wa:"root"});var Djb={entity:"IAM_GRAPHQL",entityService:"IamEntityService"};var Ejb=class{constructor(a,b){this.config=_.Fq(a,Djb,!1);this.operation=b.create(this.config)}queryGetIamPolicies(a,b){return this.config.request("GetIamPolicies",'query GetIamPolicies($getIamPolicyRequests: [IN_google_iam_v1_GetIamPolicyRequest!]!) @NullProto @Signature(bytes: "2/EDxEwqJ/TLAaF0Mj/85y/XU5KDe8oGzs7jY7/OXIIVA=") { metaApiService: serviceAccountV1 { iamPolicies(getIamPolicyRequests: $getIamPolicyRequests) { ...policy } } } fragment policy on google_iam_v1_Policy { version bindings { role members condition { expression title description location } bindingId } auditConfigs { service auditLogConfigs { logType exemptedMembers ignoreChildExemptions } } etag }', a,b)}mutationSetIamPolicies(a,b){return this.config.request("SetIamPolicies",'mutation SetIamPolicies($setIamPolicyRequests: [IN_google_iam_v1_SetIamPolicyRequest!]!) @NullProto @Signature(bytes: "2/a74ye/vGX9r+1aBeFk7ITls3bjh5eGeQ576RPlWpL/Y=") { metaApiService: serviceAccountV1 { setIamPolicies(setIamPolicyRequests: $setIamPolicyRequests) { ...policy } } } fragment policy on google_iam_v1_Policy { version bindings { role members condition { expression title description location } bindingId } auditConfigs { service auditLogConfigs { logType exemptedMembers ignoreChildExemptions } } etag }', a,b)}queryTestIamPermissions(a,b){return this.config.request("TestIamPermissions",'query TestIamPermissions($testIamPermissionsRequests: [IN_google_iam_v1_TestIamPermissionsRequest!]!) @Signature(bytes: "2/sIKrPYy9gOEICD7UuiCes5/zmNFsMJRnRjK9EVzaBKE=") { metaApiService: serviceAccountV1 { iamPermissions(testIamPermissionsRequests: $testIamPermissionsRequests) { permissions } } }',a,b)}};Ejb.ea=function(a){return new (a||Ejb)(_.m(_.Oq),_.m(_.Vq))};Ejb.sa=_.l({token:Ejb,na:Ejb.ea,wa:"root"});_.pu=function(a,b,c){a.aa.set(`${b}`,c)};_.qu=class{constructor(a,b,c,d,e,f){this.rc=a;this.aa=_.bn(this.rc,"NON_SHAREABLE_CACHE_ID");_.pu(this,43,c);_.pu(this,30,f);_.pu(this,2,d);_.pu(this,0,e);_.pu(this,37,b)}};_.qu.ea=function(a){return new (a||_.qu)(_.m(_.fn),_.m(Nib),_.m(yjb),_.m(Ajb),_.m(Cjb),_.m(Ejb))};_.qu.sa=_.l({token:_.qu,na:_.qu.ea,wa:"root"});var Fjb=function(a,b,c){a=a.da.aa.get(`${b}`);if(!a)return _.Wd(Error("Ue`"+b));b=c.map(d=>({options:{requestedPolicyVersion:3},resource:d}));return a.queryGetIamPolicies({getIamPolicyRequests:b}).pipe(_.of(),_.A(d=>mIa(d.metaApiService.iamPolicies,c)))},Gjb=function(a,b,c,d){d==null||d.includes("rules");a=a.da.aa.get(`${b}`);if(!a)return _.Wd(Error("Ue`"+b));b=Array.from(c.entries()).map(f=>{[f,g]=f;var g=Object.assign({},g);g=(delete g.rules,g);return{policy:Object.assign({},g,{version:3}),resource:f, updateMask:d==null?void 0:d.join(",")}});const e=b.map(f=>f.resource);return a.mutationSetIamPolicies({setIamPolicyRequests:b}).pipe(_.of(),_.A(f=>mIa(f.metaApiService.setIamPolicies,e)))},Hjb=class{constructor(a){this.da=a}aa(a,b){const c=this.da.aa.get(`${a}`);if(!c)return _.Wd(Error("Ue`"+a));a=nIa(b);const d=a.map(e=>e.resource);return c.queryTestIamPermissions({testIamPermissionsRequests:a}).pipe(_.of(),_.A(e=>{const f=new Map;e=e.metaApiService.iamPermissions;for(let h=0;h{a.aa[b]===c&&(a.da[b]=d,a.ha.set(a.resourceId,a.da))},()=>{a.aa[b]===c&&(delete a.aa[b],a.fa.set(a.resourceId,a.aa))})},Jjb=class{constructor(a,b,c){this.fa=a;this.ha=b;this.resourceId=c;this.aa=a.get(c)||{};this.da=b.get(c)||{}}has(a){return this.aa.hasOwnProperty(a)||this.da.hasOwnProperty(a)}set(a,b){Ijb(this,a,_.Xd(b))}get(a){const b=this.da[a];if(b!==void 0)return _.y(b);const c=this.aa[a];return c?_.fe(()=>c):void 0}keys(){return Object.keys(this.aa)}};var Kjb=function(a){return a.aa.get(a.router.url.split("?")[0])},ru=class{constructor(a,b){this.router=a;this.globalPermissions=new _.an("permissionsRegistryGlobalPermissionsCacheId",[]);this.aa=_.bn(b,"permissionsRegistryIamRouteConfigsCacheId")}};ru.ea=function(a){return new (a||ru)(_.m(_.Wm),_.m(_.fn))};ru.sa=_.l({token:ru,na:ru.ea,wa:"root"});var Ljb=class extends _.nq{};Ljb.ea=(()=>{let a;return function(b){return(a||(a=_.Id(Ljb)))(b||Ljb)}})();Ljb.sa=_.l({token:Ljb,na:function(a){let b=null;a?b=new a:b=_.m(_.pq).create("GlobalPolicyCacheId","IAM policies");return b},wa:"root"});var su=function(a,b){return _.Uca(a,1,_.Oba,b,void 0,_.ub)},Mjb=class extends _.Ub{constructor(a){super(a)}};Mjb.prototype.toObject=function(){if(this!=null){_.hc(this);var a={Gje:_.fc(_.Si(this,1,3))}}else a=void 0;return a};var Njb=su(su(su(su(su(su(su(su(su(su(su(su(new Mjb,"brand_id"),"project_numbers"),"display_name"),"icon_url"),"stored_icon_url"),"support_email"),"home_page_url"),"terms_of_service_urls"),"privacy_policy_urls"),"brand_state"),"verified_brand"),"update_time");_.Si(Njb,1,_.li()).join(",");_.tu=class extends _.u7a{};_.tu.ea=(()=>{let a;return function(b){return(a||(a=_.Id(_.tu)))(b||_.tu)}})();_.tu.sa=_.l({token:_.tu,na:function(a){let b=null;a?b=new a:b=_.m(_.Xq).get("apiuiServiceEnablementCache");return b},wa:"root"});var Ojb=new _.Mn("45403416");var Qjb,Ujb,Vjb,Zjb,$jb,Sjb,Tjb,gkb,ikb,hkb,bkb,Wjb,Xjb,Yjb;_.Pjb=function(a,b){return new Jjb(a.ha,a.ia,b)};Qjb=function(a,b,c){a.la.get(b);if(a.Fa.aa.has(`${b}`))return a.Qa.aa(b,c);const d=Error(oIa(b));return _.Wd(()=>d)};_.Rjb=function(a,b,c){var d=a.ha.get(c);d||(d={},a.ha.set(c,d));d=a.ia.get(c);d||(d={},a.ia.set(c,d));b=JSON.stringify(b);(d=a.Ba.get(b))||(d=new Set);d.add(c);a.Ba.set(b,d);return new Jjb(a.ha,a.ia,c)}; Ujb=function(a,b,c,d){if(a.la.has(b))return Sjb(a,b,c,d);if(a.Fa.aa.has(`${b}`))return c=Tjb(c,d),Gjb(a.Qa,b,c,d);const e=Error(oIa(b));return _.Wd(()=>e)};Vjb=function(a,b){a.Da.clear();for(const [c,d]of b.entries()){b=c;const e=d;a.va.get(b)!==void 0&&(a.va.set(b,e),a.Da.set(b,e))}}; Zjb=function(a){const b=[];if(!Kjb(a.Ka))return Wjb(a);for(const [c,d]of a.Ba){const e=c,f=Array.from(d),g=JSON.parse(e),h=Xjb(a,g),p=Yjb(a,f).filter(r=>a.Ka.globalPermissions.get().includes(r)&&!h.includes(r));b.push(_.fe(()=>a.aa(g,f,h.concat(p),!0)))}a.ha.clear();a.ia.clear();return _.pe(...b)};$jb=function(a,b,c){c=Array.from(c.keys()).map(d=>new _.Ji(d,b));_.gjb(a.Xa,{type:"iam_policy_update",resource:c})}; _.akb=function(a,b,c,d){return c.size?Ujb(a,b,c,d).pipe(_.A(e=>{Vjb(a,e);Zjb(a).subscribe(()=>{$jb(a,b,c)});return e})):_.y(new Map(c))};Sjb=function(a,b,c,d){const e=[];for(const [f,g]of c){const h=f,p=g;p.version=3;e.push(a.la.get(b).xnc(b,h,p,d?d.join():void 0))}return _.pe(...e).pipe(_.A(f=>{const g=new Map;let h=0;for(const p of c.keys())g.set(p,f[h++]);return g}))}; Tjb=function(a,b){const c=new Map,d=new Set(["etag","version"]);for(const [e,f]of a.entries()){a=e;const g=Object.assign({},f);if(b)for(const h of Object.keys(g)){const p=bkb(h);d.has(p)||b.includes(p)||delete g[h]}c.set(a,g)}return c}; _.ckb=function(a,b){const c=b.fullResourceName||"";for(const d of a.fa.values())for(let e=0;e{for(const [d,e]of c.entries())b.set(d,e)});return b}; _.fkb=function(a,b,c=!1){if(!b.length)return _.y(new Map);const d=[];var e=[];for(const g of b){const h=g.getResourceId();var f=g.getFullResourcePath();const p=a.va.get(h);p===void 0||c?f&&a.da.has(f)&&!c?(f=a.fa.has(f)?_.y(a.fa.get(f)).pipe(_.A(r=>[h,r[0].policy])):a.da.get(f).pipe(_.A(r=>[h,r[0].policy])),e.push(f)):d.push(g.getResourceId()):(f=_.y([h,p]),e.push(f))}e=e.length?_.be(e).pipe(_.A(g=>new Map(g))):_.y(new Map);c=d.length?_.ekb(a,b[0].getResourceType(),d,c).pipe(_.lf(),_.Df(g=>{for(const h of b){const p= g.get(h.getResourceId());p&&_.ckb(a,{fullResourceName:h.getFullResourcePath()||"",policy:p})}})):_.y(new Map);return _.be([e,c]).pipe(_.A(([g,h])=>_.dkb([g,h])))};gkb=function(a,b,c){const d=a.policyUpdate(b);return _.me(c.pipe(_.Bf(d)),d).pipe(_.Df(e=>{a.va.set(b,e)}))};ikb=function(a,b,c){if(a.la.has(b))return hkb(a,b,c);if(a.Fa.aa.has(`${b}`))return Fjb(a.Qa,b,c);const d=Error(oIa(b));return _.Wd(()=>d)}; _.ekb=function(a,b,c,d=!1){const e=new Map;var f=[];for(const g of c)c=a.va.get(g),c===void 0||d?f.push(g):e.set(g,gkb(a,g,_.y(c)));if(f.length){b=ikb(a,b,f).pipe(_.xf(1));for(const g of f)f=b.pipe(_.A(h=>h.get(g))),e.set(g,gkb(a,g,f))}return _.be([...e.values()]).pipe(_.A(g=>{const h=new Map,p=e.keys();let r=0;for(const t of p)h.set(t,g[r++]);return h}))}; hkb=function(a,b,c){const d=c.map(e=>a.la.get(b).GF(b,e,3));return _.pe(...d).pipe(_.A(e=>{const f=new Map;for(const [g,h]of c.entries())f.set(h,e[g]);return f}))};bkb=function(a){return a.split(/(?=[A-Z])/).map(b=>b.replace(/^./,b[0].toLowerCase())).join("_")};Wjb=function(a){const b=[];for(const [d,e]of a.Ba){var c=e;const f=JSON.parse(d);c=Array.from(c);const g=Yjb(a,c);b.push(a.aa(f,c,g,!0,!0))}return _.pe(...b)}; Xjb=function(a,b){return(a=Kjb(a.Ka))&&a.permissionsMap?a.permissionsMap.get(b)||[]:[]};Yjb=function(a,b){b=b.map(c=>_.Pjb(a,c).keys()).reduce((c,d)=>{for(const e of d)c.add(e);return c},new Set);return Array.from(b)}; _.uu=class{constructor(a,b,c,d,e,f,g,h,p,r){this.qb=a;this.Ka=b;this.wb=c;this.Fa=d;this.Qa=e;this.fb=f;this.Xa=g;this.va=h;this.ma=p;this.yb=r;this.da=new Map;this.la=new Map;this.destroy=new _.mf;this.fa=this.ma.create("iamActionDetailsCacheId","Cache for IAM policy details");this.Da=this.ma.create("iamActionPolicyUpdateStreamCacheId","Cached state for the IAM policy update stream");this.Za=this.ma.create("iamActionDetailsUpdateStreamCacheId","Cached state for the IAM policy details stream");this.ia= this.ma.create("iamActionValueCacheId","Cache for IAM permission values");this.ha=this.ma.create("NON_SHAREABLE_CACHE_ID","Cache for IAM permission promises");this.Ba=this.ma.create("iamActionResourceTypeCacheId","Cache for IAM permission keys");this.yb.aa.pipe(_.Bf(this.destroy)).subscribe(()=>{this.da.clear();this.fa.clear();this.va.clear()});this.ia.onChange.pipe(_.ne(t=>t.action==="REMOVE")).subscribe(t=>{this.ha.delete(t.key)});this.Xa.events.pipe(_.Bf(this.destroy)).subscribe(t=>{if(t.type=== "delete"){t=t.resource instanceof Array?t.resource:[t.resource];for(const u of t){t=u.getResourceId();const w=JSON.stringify(u.getResourceType());this.ha.delete(t);this.ia.delete(t);const z=this.Ba.get(w);z&&(z.delete(t),this.Ba.set(w,z))}}})}Ea(){this.destroy.next();this.destroy.complete()}aa(a,b,c,d,e=!1){var f=new Map;for(var g of b){let h=[];if(d)h=c;else{const p=_.Pjb(this,g);h=c.filter(r=>!p.has(r))}h.length&&f.set(g,{permissions:h})}if(f.size){d=Qjb(this,a,f).pipe(_.xf(1));for(const [h,p]of f){const r= h;g=p;f=d.pipe(_.A(t=>t.get(r)));for(const t of g.permissions)g=f.pipe(_.A(u=>u.get(t)||!1),_.Te(u=>{e&&(u.errorExperience=2);return _.Ah(Ojb)&&u.status===400?_.y(!1):_.y(!0)})),_.Rjb(this,a,r).set(t,g)}}a=[];for(const h of b){b=_.Pjb(this,h);for(const p of c)a.push(b.get(p).pipe(_.A(r=>({resourceId:h,permission:p,value:r}))))}return _.Rd(a).pipe(_.de(),_.We(),_.A(h=>{const p=new Map;for(const r of h)h=p.get(r.resourceId),h||(h=new Map,p.set(r.resourceId,h)),h.set(r.permission,r.value);return p}))}xnc(a, b,c){return _.akb(this,a.getResourceType(),new Map([[a.getResourceId(),b]]),c).pipe(_.A(d=>{d=d.get(a.getResourceId());_.ckb(this,{fullResourceName:a.getFullResourcePath()||"",policy:d});return d}))}GF(a,b){return _.fkb(this,[a],b).pipe(_.A(c=>c.get(a.getResourceId())))}policyUpdate(a){return this.Da.onChange.pipe(_.ne(()=>this.Da.has(a)),_.A(()=>this.Da.get(a)))}};_.uu.ea=function(a){return new (a||_.uu)(_.m(_.pt),_.m(ru),_.m(_.nu),_.m(_.qu),_.m(Hjb),_.m(wjb),_.m(_.hu),_.m(Ljb),_.m(_.pq),_.m(_.tu))}; _.uu.sa=_.l({token:_.uu,na:_.uu.ea,wa:"root"});var jkb,kkb,lkb;jkb=new Set("servicemanagement.services.bind servicemanagement.services.create servicemanagement.services.delete servicemanagement.services.get servicemanagement.services.getIamPolicy servicemanagement.services.list servicemanagement.services.setIamPolicy servicemanagement.services.update".split(" "));kkb=function(a){return(a=_.Bq(a.aa))?new _.Ji(a,0):void 0}; lkb=function(a,b,c){c=b.sort().join("$")+`${200}${c}`;if(a.fa.has(c))return a.fa.get(c);var d=new _.mf;const e=d.pipe(_.af(200));d.pipe(_.bna(e)).subscribe(f=>{const g=f.map(h=>h.resource);a.oh(b,g).subscribe(h=>{for(const p of f)p.subject.next(h),p.subject.complete()})});d={input:d};a.fa.set(c,d);return d};_.mkb=function(a,b,c){a=lkb(a,b,c.getResourceType());b=new _.sf(1);a.input.next({resource:c,subject:b});return b.asObservable()}; _.vu=class{constructor(a,b,c,d){this.ia=a;this.da=b;this.aa=c;this.ha=d;this.fa=new Map}Ci(a,b){if(a.indexOf("servicemanagement.")===0&&!jkb.has(a))throw Error("Ve`"+a);if(b===void 0&&(b=kkb(this),!b))return;var c=this.da;b.getResourceType();b=b.getResourceId();return _.Pjb(c,b).da[a]}getResourceType(a){const b=a[0].getResourceType();a.length>1&&a.forEach(c=>{if(c.getResourceType()!==b)throw Error("We");});return b}oh(a,b,c){if(b===void 0){var d=kkb(this);b=d?[d]:[]}d=b.filter(e=>!!e.getResourceId()).map(e=> e.getResourceId());if(d.length===0)return _.y(new Map);b=this.getResourceType(b);return this.da.aa(b,d,a,c)}};_.vu.ea=function(a){return new (a||_.vu)(_.m(ru),_.m(_.uu),_.m(_.Cq),_.m(_.rn))};_.vu.sa=_.l({token:_.vu,na:_.vu.ea,wa:"root"});var nkb,okb;nkb=function(a,b,c){a=b===43?a.ia:b===0?a.ma:b===2?a.la:void 0;return a?c(a):_.Wd(`Resource-Type ${b} not supported here`)};okb=function(a,b,c){return nkb(a,b.getResourceType(),c)}; _.pkb=function(a,b,c){let d=a.aa.get(b);if(!d){if(c===0)d=s7a(a.fa,{projectId:b}).pipe(_.A(({projectAncestry:e})=>e!=null?e:[]));else if(c===43)d=p7a(a.fa,{folderId:b}).pipe(_.A(({folderAncestry:e})=>e!=null?e:[]));else return _.Wd("Invalid resource type");d=d.pipe(_.Te(()=>_.y([])),_.lf(),_.xf(1));a.aa.set(b,d)}return d.pipe(_.A(e=>e.map(f=>new _.I6a(f.id,_.Hza(f.type)))))}; _.wu=class{constructor(a,b,c,d,e,f){this.permissions=a;this.ia=b;this.ma=c;this.la=d;this.fa=e;this.da=_.dn(f,"crmResourceEditedCacheId",{variant:"SUBJECT"},{serializer:{serialize:_.rAa,deserialize:_.sAa}});this.ha=_.dn(f,"crmResourceDeletedCacheId",{variant:"SUBJECT"},{serializer:{serialize:_.rAa,deserialize:_.sAa}});this.aa=_.cn(f,"crmResourceAncestryCacheId")}create(a,b){return nkb(this,_.Hza(a.type),c=>c.create(a,b))}rename(a,b){return okb(this,a,c=>c.rename(a,b)).pipe(_.Df(c=>{this.da.next(c)}))}move(a, b,c){this.Ql();return okb(this,a,d=>d.move(a,b,c))}migrate(a,b){this.Ql();return okb(this,a,c=>c.move(a,b,b))}deleteResource(a){return okb(this,a,b=>b.deleteResource(a)).pipe(_.Df(b=>{this.ha.next(b)}))}getResource(a){return nkb(this,a.type,b=>b.getResource(a.id))}getFolder(a){return nkb(this,43,b=>b.getResource(a))}updateLabels(a,b){return okb(this,a,c=>c.updateLabels(a,b.da()))}Ql(){this.aa.clear()}};_.wu.ea=function(a){return new (a||_.wu)(_.m(_.vu),_.m(hjb),_.m(jjb),_.m(ijb),_.m(_.Wq),_.m(_.fn))}; _.wu.sa=_.l({token:_.wu,na:_.wu.ea,wa:"root"});var qkb=["CRM_GRAPHQL-CrmMutation-updateCapability"],rkb=function(a){let b;const c=((b=a.operationsService.ia)!=null?b:_.Wl).pipe(_.ne(function(d){return qkb.includes(d.operationType)&&d.status==="DONE"}),_.A(()=>{}));a=a.aa.da.asObservable().pipe(_.A(()=>{}));return _.me(c,a)},skb=class{constructor(){this.operationsService=_.n(_.Nq);this.aa=_.n(_.wu)}};skb.ea=function(a){return new (a||skb)};skb.sa=_.l({token:skb,na:skb.ea,wa:"root"});_.tkb=new _.Mn("45674175");var ukb,vkb,ykb,zkb,Akb,Ckb,yu,Bkb,Dkb;ukb=function(a){return!a.project&&!a.folder&&!a.organizationId};_.xu=function(a){return a.Jj.pipe(_.A(b=>b.ag))};_.wkb=function(a,b){let c={};b?c=b.root.queryParams:(b=_.Tm(a.router))&&b.lw&&(c=b.lw.queryParams);return vkb(a,vi(Sg(c)))};_.xkb=function(a,b){return _.wkb(a,b).pipe(_.A(c=>c.ag))}; vkb=function(a,b){const c=_.bu(a.fa).pipe(_.A(d=>{let e=[];d&&d.length&&(e=d.slice().filter(f=>f.lifecycleState!=="DELETE_REQUESTED").sort(Mza));return e}));return(b==null?void 0:b.resourceType)===0?ykb(a,b.id,c):(b==null?void 0:b.resourceType)===43?zk