@coalescesoftware/coa 7.15.0 → 7.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/coa.js
CHANGED
|
@@ -176,7 +176,7 @@ ${v}`),h.pop(),`{${N}}`}case"number":return isFinite(A)?String(A):t?t(A):"null";
|
|
|
176
176
|
`+s):i.stack=s}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=que(this.defaults,n);let{transitional:i,paramsSerializer:o,headers:s}=n;i!==void 0&&TIr.assertOptions(i,{silentJSONParsing:eK.transitional(eK.boolean),forcedJSONParsing:eK.transitional(eK.boolean),clarifyTimeoutError:eK.transitional(eK.boolean)},!1),o!=null&&(mr.isFunction(o)?n.paramsSerializer={serialize:o}:TIr.assertOptions(o,{encode:eK.function,serialize:eK.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&mr.merge(s.common,s[n.method]);s&&mr.forEach(["delete","get","head","post","put","patch","common"],h=>{delete s[h]}),n.headers=g4.concat(a,s);let l=[],c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});let u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,p=0,f;if(!c){let h=[yAi.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,u),f=h.length,d=Promise.resolve(n);p<f;)d=d.then(h[p++],h[p++]);return d}f=l.length;let A=n;for(p=0;p<f;){let h=l[p++],y=l[p++];try{A=h(A)}catch(C){y.call(this,C);break}}try{d=yAi.call(this,A)}catch(h){return Promise.reject(h)}for(p=0,f=u.length;p<f;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=que(this.defaults,t);let n=kIr(t.baseURL,t.url);return xIr(n,t.params,t.paramsSerializer)}};mr.forEach(["delete","get","head","options"],function(t){QEe.prototype[t]=function(n,i){return this.request(que(i||{},{method:t,url:n,data:(i||{}).data}))}});mr.forEach(["post","put","patch"],function(t){function n(i){return function(s,a,l){return this.request(que(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}QEe.prototype[t]=n(),QEe.prototype[t+"Form"]=n(!0)});var T2t=QEe,wIr=class r{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});let i=this;this.promise.then(o=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](o);i._listeners=null}),this.promise.then=o=>{let s,a=new Promise(l=>{i.subscribe(l),s=l}).then(o);return a.cancel=function(){i.unsubscribe(s)},a},t(function(s,a,l){i.reason||(i.reason=new iK(s,a,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){let t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new r(function(o){t=o}),cancel:t}}},Msl=wIr;function Dsl(r){return function(n){return r.apply(null,n)}}function Nsl(r){return mr.isObject(r)&&r.isAxiosError===!0}var RIr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(RIr).forEach(([r,t])=>{RIr[t]=r});var Psl=RIr;function WAi(r){let t=new T2t(r),n=vAi(T2t.prototype.request,t);return mr.extend(n,T2t.prototype,t,{allOwnKeys:!0}),mr.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return WAi(que(r,o))},n}var Fg=WAi(PIr);Fg.Axios=T2t;Fg.CanceledError=iK;Fg.CancelToken=Msl;Fg.isCancel=QAi;Fg.VERSION=w2t;Fg.toFormData=P2t;Fg.AxiosError=qo;Fg.Cancel=Fg.CanceledError;Fg.all=function(t){return Promise.all(t)};Fg.spread=Dsl;Fg.isAxiosError=Nsl;Fg.mergeConfig=que;Fg.AxiosHeaders=g4;Fg.formToJSON=r=>kAi(mr.isHTMLForm(r)?new FormData(r):r);Fg.getAdapter=GAi.getAdapter;Fg.HttpStatusCode=Psl;Fg.default=Fg;HAi.exports=Fg});var qIr=I(ex=>{"use strict";Object.defineProperty(ex,"__esModule",{value:!0});ex.RequiredError=ex.BaseAPI=ex.COLLECTION_FORMATS=ex.BASE_PATH=void 0;var ksl=LIr();ex.BASE_PATH="https://app.launchdarkly.com".replace(/\/+$/,"");ex.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:" ",pipes:"|"};var FIr=class{constructor(t,n=ex.BASE_PATH,i=ksl.default){this.basePath=n,this.axios=i,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}};ex.BaseAPI=FIr;var zIr=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};ex.RequiredError=zIr});var VAi=I(df=>{"use strict";var UIr=df&&df.__awaiter||function(r,t,n,i){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(d){try{u(i.next(d))}catch(p){a(p)}}function c(d){try{u(i.throw(d))}catch(p){a(p)}}function u(d){d.done?s(d.value):o(d.value).then(l,c)}u((i=i.apply(r,t||[])).next())})};Object.defineProperty(df,"__esModule",{value:!0});df.createRequestFunction=df.toPathString=df.serializeDataIfNeeded=df.setSearchParams=df.setOAuthToObject=df.setBearerAuthToObject=df.setBasicAuthToObject=df.setApiKeyToObject=df.assertParamExists=df.DUMMY_BASE_URL=void 0;var Qsl=qIr();df.DUMMY_BASE_URL="https://example.com";var Lsl=function(r,t,n){if(n==null)throw new Qsl.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${r}.`)};df.assertParamExists=Lsl;var Fsl=function(r,t,n){return UIr(this,void 0,void 0,function*(){if(n&&n.apiKey){let i=typeof n.apiKey=="function"?yield n.apiKey(t):yield n.apiKey;r[t]=i}})};df.setApiKeyToObject=Fsl;var zsl=function(r,t){t&&(t.username||t.password)&&(r.auth={username:t.username,password:t.password})};df.setBasicAuthToObject=zsl;var qsl=function(r,t){return UIr(this,void 0,void 0,function*(){if(t&&t.accessToken){let n=typeof t.accessToken=="function"?yield t.accessToken():yield t.accessToken;r.Authorization="Bearer "+n}})};df.setBearerAuthToObject=qsl;var Usl=function(r,t,n,i){return UIr(this,void 0,void 0,function*(){if(i&&i.accessToken){let o=typeof i.accessToken=="function"?yield i.accessToken(t,n):yield i.accessToken;r.Authorization="Bearer "+o}})};df.setOAuthToObject=Usl;var jsl=function(r,...t){let n=new URLSearchParams(r.search);for(let i of t)for(let o in i)if(Array.isArray(i[o])){n.delete(o);for(let s of i[o])n.append(o,s)}else n.set(o,i[o]);r.search=n.toString()};df.setSearchParams=jsl;var Gsl=function(r,t,n){let i=typeof r!="string";return(i&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):i)?JSON.stringify(r!==void 0?r:{}):r||""};df.serializeDataIfNeeded=Gsl;var Wsl=function(r){return r.pathname+r.search+r.hash};df.toPathString=Wsl;var Hsl=function(r,t,n,i){return(o=t,s=n)=>{let a=Object.assign(Object.assign({},r.options),{url:(i?.basePath||s)+r.url});return o.request(a)}};df.createRequestFunction=Hsl});var YAi=I(ce=>{"use strict";var Pe=ce&&ce.__awaiter||function(r,t,n,i){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(d){try{u(i.next(d))}catch(p){a(p)}}function c(d){try{u(i.throw(d))}catch(p){a(p)}}function u(d){d.done?s(d.value):o(d.value).then(l,c)}u((i=i.apply(r,t||[])).next())})};Object.defineProperty(ce,"__esModule",{value:!0});ce.NamingConventionCaseEnum=ce.MetricV2RepUnitAggregationTypeEnum=ce.MetricV2RepKindEnum=ce.MetricRepAnalysisTypeEnum=ce.MetricRepUnitAggregationTypeEnum=ce.MetricRepSuccessCriteriaEnum=ce.MetricRepKindEnum=ce.MetricPostUnitAggregationTypeEnum=ce.MetricPostSuccessCriteriaEnum=ce.MetricPostKindEnum=ce.MetricListingRepAnalysisTypeEnum=ce.MetricListingRepUnitAggregationTypeEnum=ce.MetricListingRepSuccessCriteriaEnum=ce.MetricListingRepKindEnum=ce.MetricInGroupRepUnitAggregationTypeEnum=ce.MetricInGroupRepKindEnum=ce.MetricGroupRepKindEnum=ce.MetricGroupPostKindEnum=ce.InstructionUserRequestKindEnum=ce.HoldoutRepStatusEnum=ce.HoldoutDetailRepStatusEnum=ce.FlagStatusRepNameEnum=ce.FlagImportStatusStatusEnum=ce.FlagImportIntegrationIntegrationKeyEnum=ce.FlagEventImpactRepSizeEnum=ce.FlagCopyConfigPostExcludedActionsEnum=ce.FlagCopyConfigPostIncludedActionsEnum=ce.FlagConfigApprovalRequestResponseStatusEnum=ce.FlagConfigApprovalRequestResponseReviewStatusEnum=ce.FeatureFlagStatusNameEnum=ce.FeatureFlagBodyPurposeEnum=ce.FeatureFlagKindEnum=ce.ExpandedFlagRepKindEnum=ce.ExpandableApprovalRequestResponseStatusEnum=ce.ExpandableApprovalRequestResponseReviewStatusEnum=ce.DistributionKindEnum=ce.DestinationPostKindEnum=ce.DestinationKindEnum=ce.DependentMetricOrMetricGroupRepKindEnum=ce.DependentMetricGroupRepWithMetricsKindEnum=ce.DependentMetricGroupRepKindEnum=ce.CreateCopyFlagConfigApprovalRequestRequestExcludedActionsEnum=ce.CreateCopyFlagConfigApprovalRequestRequestIncludedActionsEnum=ce.BigSegmentStoreIntegrationIntegrationKeyEnum=ce.ApprovalRequestResponseStatusEnum=ce.ApprovalRequestResponseReviewStatusEnum=ce.ApplicationRepKindEnum=ce.AccessTokenPostRoleEnum=ce.AccessDeniedReasonEffectEnum=ce.AccessAllowedReasonEffectEnum=void 0;ce.AuditLogApiFactory=ce.AuditLogApiFp=ce.AuditLogApiAxiosParamCreator=ce.ApprovalsBetaApi=ce.ApprovalsBetaApiFactory=ce.ApprovalsBetaApiFp=ce.ApprovalsBetaApiAxiosParamCreator=ce.ApprovalsApi=ce.ApprovalsApiFactory=ce.ApprovalsApiFp=ce.ApprovalsApiAxiosParamCreator=ce.ApplicationsBetaApi=ce.ApplicationsBetaApiFactory=ce.ApplicationsBetaApiFp=ce.ApplicationsBetaApiAxiosParamCreator=ce.AccountUsageBetaApi=ce.AccountUsageBetaApiFactory=ce.AccountUsageBetaApiFp=ce.AccountUsageBetaApiAxiosParamCreator=ce.AccountMembersBetaApi=ce.AccountMembersBetaApiFactory=ce.AccountMembersBetaApiFp=ce.AccountMembersBetaApiAxiosParamCreator=ce.AccountMembersApi=ce.AccountMembersApiFactory=ce.AccountMembersApiFp=ce.AccountMembersApiAxiosParamCreator=ce.AccessTokensApi=ce.AccessTokensApiFactory=ce.AccessTokensApiFp=ce.AccessTokensApiAxiosParamCreator=ce.UrlPostKindEnum=ce.TreatmentResultRepModelEnum=ce.StatisticRepTypeEnum=ce.StatementPostEffectEnum=ce.StatementEffectEnum=ce.RuleClauseOpEnum=ce.ReviewResponseKindEnum=ce.RepositoryRepTypeEnum=ce.RepositoryPostTypeEnum=ce.RandomizationUnitInputStandardRandomizationUnitEnum=ce.PostDeploymentEventInputEventTypeEnum=ce.PostDeploymentEventInputApplicationKindEnum=ce.PostApprovalRequestReviewRequestKindEnum=ce.PermissionGrantInputActionSetEnum=ce.PatchSegmentInstructionTargetTypeEnum=ce.PatchSegmentInstructionKindEnum=ce.PatchSegmentExpiringTargetInstructionTargetTypeEnum=ce.PatchSegmentExpiringTargetInstructionKindEnum=ce.NewMemberFormRoleEnum=void 0;ce.HoldoutsBetaApiAxiosParamCreator=ce.FollowFlagsApi=ce.FollowFlagsApiFactory=ce.FollowFlagsApiFp=ce.FollowFlagsApiAxiosParamCreator=ce.FlagTriggersApi=ce.FlagTriggersApiFactory=ce.FlagTriggersApiFp=ce.FlagTriggersApiAxiosParamCreator=ce.FlagLinksBetaApi=ce.FlagLinksBetaApiFactory=ce.FlagLinksBetaApiFp=ce.FlagLinksBetaApiAxiosParamCreator=ce.FeatureFlagsBetaApi=ce.FeatureFlagsBetaApiFactory=ce.FeatureFlagsBetaApiFp=ce.FeatureFlagsBetaApiAxiosParamCreator=ce.FeatureFlagsApi=ce.FeatureFlagsApiFactory=ce.FeatureFlagsApiFp=ce.FeatureFlagsApiAxiosParamCreator=ce.ExperimentsApi=ce.ExperimentsApiFactory=ce.ExperimentsApiFp=ce.ExperimentsApiAxiosParamCreator=ce.EnvironmentsApi=ce.EnvironmentsApiFactory=ce.EnvironmentsApiFp=ce.EnvironmentsApiAxiosParamCreator=ce.DataExportDestinationsApi=ce.DataExportDestinationsApiFactory=ce.DataExportDestinationsApiFp=ce.DataExportDestinationsApiAxiosParamCreator=ce.CustomRolesApi=ce.CustomRolesApiFactory=ce.CustomRolesApiFp=ce.CustomRolesApiAxiosParamCreator=ce.ContextsApi=ce.ContextsApiFactory=ce.ContextsApiFp=ce.ContextsApiAxiosParamCreator=ce.ContextSettingsApi=ce.ContextSettingsApiFactory=ce.ContextSettingsApiFp=ce.ContextSettingsApiAxiosParamCreator=ce.CodeReferencesApi=ce.CodeReferencesApiFactory=ce.CodeReferencesApiFp=ce.CodeReferencesApiAxiosParamCreator=ce.AuditLogApi=void 0;ce.MetricsBetaApiFactory=ce.MetricsBetaApiFp=ce.MetricsBetaApiAxiosParamCreator=ce.MetricsApi=ce.MetricsApiFactory=ce.MetricsApiFp=ce.MetricsApiAxiosParamCreator=ce.LayersBetaApi=ce.LayersBetaApiFactory=ce.LayersBetaApiFp=ce.LayersBetaApiAxiosParamCreator=ce.IntegrationsBetaApi=ce.IntegrationsBetaApiFactory=ce.IntegrationsBetaApiFp=ce.IntegrationsBetaApiAxiosParamCreator=ce.IntegrationDeliveryConfigurationsBetaApi=ce.IntegrationDeliveryConfigurationsBetaApiFactory=ce.IntegrationDeliveryConfigurationsBetaApiFp=ce.IntegrationDeliveryConfigurationsBetaApiAxiosParamCreator=ce.IntegrationAuditLogSubscriptionsApi=ce.IntegrationAuditLogSubscriptionsApiFactory=ce.IntegrationAuditLogSubscriptionsApiFp=ce.IntegrationAuditLogSubscriptionsApiAxiosParamCreator=ce.InsightsScoresBetaApi=ce.InsightsScoresBetaApiFactory=ce.InsightsScoresBetaApiFp=ce.InsightsScoresBetaApiAxiosParamCreator=ce.InsightsRepositoriesBetaApi=ce.InsightsRepositoriesBetaApiFactory=ce.InsightsRepositoriesBetaApiFp=ce.InsightsRepositoriesBetaApiAxiosParamCreator=ce.InsightsPullRequestsBetaApi=ce.InsightsPullRequestsBetaApiFactory=ce.InsightsPullRequestsBetaApiFp=ce.InsightsPullRequestsBetaApiAxiosParamCreator=ce.InsightsFlagEventsBetaApi=ce.InsightsFlagEventsBetaApiFactory=ce.InsightsFlagEventsBetaApiFp=ce.InsightsFlagEventsBetaApiAxiosParamCreator=ce.InsightsDeploymentsBetaApi=ce.InsightsDeploymentsBetaApiFactory=ce.InsightsDeploymentsBetaApiFp=ce.InsightsDeploymentsBetaApiAxiosParamCreator=ce.InsightsChartsBetaApi=ce.InsightsChartsBetaApiFactory=ce.InsightsChartsBetaApiFp=ce.InsightsChartsBetaApiAxiosParamCreator=ce.HoldoutsBetaApi=ce.HoldoutsBetaApiFactory=ce.HoldoutsBetaApiFp=void 0;ce.UserSettingsApiAxiosParamCreator=ce.TeamsBetaApi=ce.TeamsBetaApiFactory=ce.TeamsBetaApiFp=ce.TeamsBetaApiAxiosParamCreator=ce.TeamsApi=ce.TeamsApiFactory=ce.TeamsApiFp=ce.TeamsApiAxiosParamCreator=ce.TagsApi=ce.TagsApiFactory=ce.TagsApiFp=ce.TagsApiAxiosParamCreator=ce.SegmentsBetaApi=ce.SegmentsBetaApiFactory=ce.SegmentsBetaApiFp=ce.SegmentsBetaApiAxiosParamCreator=ce.SegmentsApi=ce.SegmentsApiFactory=ce.SegmentsApiFp=ce.SegmentsApiAxiosParamCreator=ce.ScheduledChangesApi=ce.ScheduledChangesApiFactory=ce.ScheduledChangesApiFp=ce.ScheduledChangesApiAxiosParamCreator=ce.ReleasesBetaApi=ce.ReleasesBetaApiFactory=ce.ReleasesBetaApiFp=ce.ReleasesBetaApiAxiosParamCreator=ce.ReleasePipelinesBetaApi=ce.ReleasePipelinesBetaApiFactory=ce.ReleasePipelinesBetaApiFp=ce.ReleasePipelinesBetaApiAxiosParamCreator=ce.RelayProxyConfigurationsApi=ce.RelayProxyConfigurationsApiFactory=ce.RelayProxyConfigurationsApiFp=ce.RelayProxyConfigurationsApiAxiosParamCreator=ce.ProjectsApi=ce.ProjectsApiFactory=ce.ProjectsApiFp=ce.ProjectsApiAxiosParamCreator=ce.OtherApi=ce.OtherApiFactory=ce.OtherApiFp=ce.OtherApiAxiosParamCreator=ce.OAuth2ClientsApi=ce.OAuth2ClientsApiFactory=ce.OAuth2ClientsApiFp=ce.OAuth2ClientsApiAxiosParamCreator=ce.MetricsBetaApi=void 0;ce.WorkflowsApi=ce.WorkflowsApiFactory=ce.WorkflowsApiFp=ce.WorkflowsApiAxiosParamCreator=ce.WorkflowTemplatesApi=ce.WorkflowTemplatesApiFactory=ce.WorkflowTemplatesApiFp=ce.WorkflowTemplatesApiAxiosParamCreator=ce.WebhooksApi=ce.WebhooksApiFactory=ce.WebhooksApiFp=ce.WebhooksApiAxiosParamCreator=ce.UsersBetaApi=ce.UsersBetaApiFactory=ce.UsersBetaApiFp=ce.UsersBetaApiAxiosParamCreator=ce.UsersApi=ce.UsersApiFactory=ce.UsersApiFp=ce.UsersApiAxiosParamCreator=ce.UserSettingsApi=ce.UserSettingsApiFactory=ce.UserSettingsApiFp=void 0;var It=LIr(),B=VAi(),At=qIr();ce.AccessAllowedReasonEffectEnum={Allow:"allow",Deny:"deny"};ce.AccessDeniedReasonEffectEnum={Allow:"allow",Deny:"deny"};ce.AccessTokenPostRoleEnum={Reader:"reader",Writer:"writer",Admin:"admin"};ce.ApplicationRepKindEnum={Browser:"browser",Mobile:"mobile",Server:"server"};ce.ApprovalRequestResponseReviewStatusEnum={Approved:"approved",Declined:"declined",Pending:"pending"};ce.ApprovalRequestResponseStatusEnum={Pending:"pending",Completed:"completed",Failed:"failed",Scheduled:"scheduled"};ce.BigSegmentStoreIntegrationIntegrationKeyEnum={Redis:"redis",Dynamodb:"dynamodb"};ce.CreateCopyFlagConfigApprovalRequestRequestIncludedActionsEnum={UpdateOn:"updateOn",UpdateFallthrough:"updateFallthrough",UpdateOffVariation:"updateOffVariation",UpdateRules:"updateRules",UpdateTargets:"updateTargets",UpdatePrerequisites:"updatePrerequisites"};ce.CreateCopyFlagConfigApprovalRequestRequestExcludedActionsEnum={UpdateOn:"updateOn",UpdateFallthrough:"updateFallthrough",UpdateOffVariation:"updateOffVariation",UpdateRules:"updateRules",UpdateTargets:"updateTargets",UpdatePrerequisites:"updatePrerequisites"};ce.DependentMetricGroupRepKindEnum={Funnel:"funnel",Standard:"standard"};ce.DependentMetricGroupRepWithMetricsKindEnum={Funnel:"funnel",Standard:"standard"};ce.DependentMetricOrMetricGroupRepKindEnum={Pageview:"pageview",Click:"click",Custom:"custom",Funnel:"funnel",Standard:"standard"};ce.DestinationKindEnum={GooglePubsub:"google-pubsub",Kinesis:"kinesis",Mparticle:"mparticle",Segment:"segment",AzureEventHubs:"azure-event-hubs"};ce.DestinationPostKindEnum={GooglePubsub:"google-pubsub",Kinesis:"kinesis",Mparticle:"mparticle",Segment:"segment",AzureEventHubs:"azure-event-hubs"};ce.DistributionKindEnum={Normal:"normal",Beta:"beta"};ce.ExpandableApprovalRequestResponseReviewStatusEnum={Approved:"approved",Declined:"declined",Pending:"pending"};ce.ExpandableApprovalRequestResponseStatusEnum={Pending:"pending",Completed:"completed",Failed:"failed",Scheduled:"scheduled"};ce.ExpandedFlagRepKindEnum={Boolean:"boolean",Multivariate:"multivariate"};ce.FeatureFlagKindEnum={Boolean:"boolean",Multivariate:"multivariate"};ce.FeatureFlagBodyPurposeEnum={Migration:"migration",Holdout:"holdout"};ce.FeatureFlagStatusNameEnum={New:"new",Inactive:"inactive",Active:"active",Launched:"launched"};ce.FlagConfigApprovalRequestResponseReviewStatusEnum={Approved:"approved",Declined:"declined",Pending:"pending"};ce.FlagConfigApprovalRequestResponseStatusEnum={Pending:"pending",Completed:"completed",Failed:"failed",Scheduled:"scheduled"};ce.FlagCopyConfigPostIncludedActionsEnum={UpdateOn:"updateOn",UpdateRules:"updateRules",UpdateFallthrough:"updateFallthrough",UpdateOffVariation:"updateOffVariation",UpdatePrerequisites:"updatePrerequisites",UpdateTargets:"updateTargets",UpdateFlagConfigMigrationSettings:"updateFlagConfigMigrationSettings"};ce.FlagCopyConfigPostExcludedActionsEnum={UpdateOn:"updateOn",UpdateRules:"updateRules",UpdateFallthrough:"updateFallthrough",UpdateOffVariation:"updateOffVariation",UpdatePrerequisites:"updatePrerequisites",UpdateTargets:"updateTargets",UpdateFlagConfigMigrationSettings:"updateFlagConfigMigrationSettings"};ce.FlagEventImpactRepSizeEnum={None:"none",Small:"small",Medium:"medium",Large:"large"};ce.FlagImportIntegrationIntegrationKeyEnum={Split:"split",Unleash:"unleash"};ce.FlagImportStatusStatusEnum={Complete:"complete",Importing:"importing",Pending:"pending",Failed:"failed",Partial:"partial"};ce.FlagStatusRepNameEnum={New:"new",Inactive:"inactive",Active:"active",Launched:"launched"};ce.HoldoutDetailRepStatusEnum={Created:"created",Enabled:"enabled",Running:"running",Ended:"ended"};ce.HoldoutRepStatusEnum={Created:"created",Enabled:"enabled",Running:"running",Ended:"ended"};ce.InstructionUserRequestKindEnum={AddExpireUserTargetDate:"addExpireUserTargetDate",UpdateExpireUserTargetDate:"updateExpireUserTargetDate",RemoveExpireUserTargetDate:"removeExpireUserTargetDate"};ce.MetricGroupPostKindEnum={Funnel:"funnel"};ce.MetricGroupRepKindEnum={Funnel:"funnel",Standard:"standard"};ce.MetricInGroupRepKindEnum={Pageview:"pageview",Click:"click",Custom:"custom"};ce.MetricInGroupRepUnitAggregationTypeEnum={Sum:"sum",Average:"average"};ce.MetricListingRepKindEnum={Pageview:"pageview",Click:"click",Custom:"custom"};ce.MetricListingRepSuccessCriteriaEnum={HigherThanBaseline:"HigherThanBaseline",LowerThanBaseline:"LowerThanBaseline"};ce.MetricListingRepUnitAggregationTypeEnum={Average:"average",Sum:"sum"};ce.MetricListingRepAnalysisTypeEnum={Mean:"mean",Percentile:"percentile"};ce.MetricPostKindEnum={Pageview:"pageview",Click:"click",Custom:"custom"};ce.MetricPostSuccessCriteriaEnum={HigherThanBaseline:"HigherThanBaseline",LowerThanBaseline:"LowerThanBaseline"};ce.MetricPostUnitAggregationTypeEnum={Average:"average",Sum:"sum"};ce.MetricRepKindEnum={Pageview:"pageview",Click:"click",Custom:"custom"};ce.MetricRepSuccessCriteriaEnum={HigherThanBaseline:"HigherThanBaseline",LowerThanBaseline:"LowerThanBaseline"};ce.MetricRepUnitAggregationTypeEnum={Average:"average",Sum:"sum"};ce.MetricRepAnalysisTypeEnum={Mean:"mean",Percentile:"percentile"};ce.MetricV2RepKindEnum={Pageview:"pageview",Click:"click",Custom:"custom"};ce.MetricV2RepUnitAggregationTypeEnum={Sum:"sum",Average:"average"};ce.NamingConventionCaseEnum={None:"none",CamelCase:"camelCase",UpperCamelCase:"upperCamelCase",SnakeCase:"snakeCase",KebabCase:"kebabCase"};ce.NewMemberFormRoleEnum={Reader:"reader",Writer:"writer",Admin:"admin",NoAccess:"no_access"};ce.PatchSegmentExpiringTargetInstructionKindEnum={AddExpiringTarget:"addExpiringTarget",UpdateExpiringTarget:"updateExpiringTarget",RemoveExpiringTarget:"removeExpiringTarget"};ce.PatchSegmentExpiringTargetInstructionTargetTypeEnum={Included:"included",Excluded:"excluded"};ce.PatchSegmentInstructionKindEnum={AddExpireUserTargetDate:"addExpireUserTargetDate",UpdateExpireUserTargetDate:"updateExpireUserTargetDate",RemoveExpireUserTargetDate:"removeExpireUserTargetDate"};ce.PatchSegmentInstructionTargetTypeEnum={Included:"included",Excluded:"excluded"};ce.PermissionGrantInputActionSetEnum={MaintainTeam:"maintainTeam"};ce.PostApprovalRequestReviewRequestKindEnum={Approve:"approve",Comment:"comment",Decline:"decline"};ce.PostDeploymentEventInputApplicationKindEnum={Server:"server",Browser:"browser",Mobile:"mobile"};ce.PostDeploymentEventInputEventTypeEnum={Started:"started",Failed:"failed",Finished:"finished",Custom:"custom"};ce.RandomizationUnitInputStandardRandomizationUnitEnum={Guest:"guest",GuestTime:"guestTime",Organization:"organization",Request:"request",User:"user",UserTime:"userTime"};ce.RepositoryPostTypeEnum={Bitbucket:"bitbucket",Custom:"custom",Github:"github",Gitlab:"gitlab"};ce.RepositoryRepTypeEnum={Bitbucket:"bitbucket",Custom:"custom",Github:"github",Gitlab:"gitlab"};ce.ReviewResponseKindEnum={Approve:"approve",Decline:"decline",Comment:"comment"};ce.RuleClauseOpEnum={In:"in",EndsWith:"endsWith",StartsWith:"startsWith",Matches:"matches",Contains:"contains",LessThan:"lessThan",LessThanOrEqual:"lessThanOrEqual",GreaterThan:"greaterThan",GreaterThanOrEqual:"greaterThanOrEqual",Before:"before",After:"after",SegmentMatch:"segmentMatch",SemVerEqual:"semVerEqual",SemVerLessThan:"semVerLessThan",SemVerGreaterThan:"semVerGreaterThan"};ce.StatementEffectEnum={Allow:"allow",Deny:"deny"};ce.StatementPostEffectEnum={Allow:"allow",Deny:"deny"};ce.StatisticRepTypeEnum={Bitbucket:"bitbucket",Custom:"custom",Github:"github",Gitlab:"gitlab"};ce.TreatmentResultRepModelEnum={BayesianNormal:"bayesianNormal",BayesianBeta:"bayesianBeta"};ce.UrlPostKindEnum={Exact:"exact",Canonical:"canonical",Substring:"substring",Regex:"regex"};var Vsl=function(r){return{deleteToken:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteToken","id",t);let i="/api/v2/tokens/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getToken:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getToken","id",t);let i="/api/v2/tokens/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getTokens:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){let s="/api/v2/tokens",a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),t!==void 0&&(d.showAll=t),n!==void 0&&(d.limit=n),i!==void 0&&(d.offset=i),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),patchToken:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchToken","id",t),(0,B.assertParamExists)("patchToken","patchOperation",n);let o="/api/v2/tokens/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),postToken:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postToken","accessTokenPost",t);let i="/api/v2/tokens",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}}),resetToken:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("resetToken","id",t);let o="/api/v2/tokens/{id}/reset".replace("{id}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.expiry=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}})}};ce.AccessTokensApiAxiosParamCreator=Vsl;var Ysl=function(r){let t=(0,ce.AccessTokensApiAxiosParamCreator)(r);return{deleteToken(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteToken(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getToken(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getToken(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getTokens(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getTokens(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},patchToken(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchToken(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postToken(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.postToken(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},resetToken(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.resetToken(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.AccessTokensApiFp=Ysl;var Ksl=function(r,t,n){let i=(0,ce.AccessTokensApiFp)(r);return{deleteToken(o,s){return i.deleteToken(o,s).then(a=>a(n,t))},getToken(o,s){return i.getToken(o,s).then(a=>a(n,t))},getTokens(o,s,a,l){return i.getTokens(o,s,a,l).then(c=>c(n,t))},patchToken(o,s,a){return i.patchToken(o,s,a).then(l=>l(n,t))},postToken(o,s){return i.postToken(o,s).then(a=>a(n,t))},resetToken(o,s,a){return i.resetToken(o,s,a).then(l=>l(n,t))}}};ce.AccessTokensApiFactory=Ksl;var jIr=class extends At.BaseAPI{deleteToken(t,n){return(0,ce.AccessTokensApiFp)(this.configuration).deleteToken(t,n).then(i=>i(this.axios,this.basePath))}getToken(t,n){return(0,ce.AccessTokensApiFp)(this.configuration).getToken(t,n).then(i=>i(this.axios,this.basePath))}getTokens(t,n,i,o){return(0,ce.AccessTokensApiFp)(this.configuration).getTokens(t,n,i,o).then(s=>s(this.axios,this.basePath))}patchToken(t,n,i){return(0,ce.AccessTokensApiFp)(this.configuration).patchToken(t,n,i).then(o=>o(this.axios,this.basePath))}postToken(t,n){return(0,ce.AccessTokensApiFp)(this.configuration).postToken(t,n).then(i=>i(this.axios,this.basePath))}resetToken(t,n,i){return(0,ce.AccessTokensApiFp)(this.configuration).resetToken(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.AccessTokensApi=jIr;var Jsl=function(r){return{deleteMember:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteMember","id",t);let i="/api/v2/members/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getMember:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getMember","id",t);let o="/api/v2/members/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.expand=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getMembers:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){let l="/api/v2/members",c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"GET"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),t!==void 0&&(f.limit=t),n!==void 0&&(f.offset=n),i!==void 0&&(f.filter=i),o!==void 0&&(f.expand=o),s!==void 0&&(f.sort=s),(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),{url:(0,B.toPathString)(c),options:d}}),patchMember:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchMember","id",t),(0,B.assertParamExists)("patchMember","patchOperation",n);let o="/api/v2/members/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),postMemberTeams:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postMemberTeams","id",t),(0,B.assertParamExists)("postMemberTeams","memberTeamsPostInput",n);let o="/api/v2/members/{id}/teams".replace("{id}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),postMembers:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postMembers","newMemberForm",t);let i="/api/v2/members",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}})}};ce.AccountMembersApiAxiosParamCreator=Jsl;var Xsl=function(r){let t=(0,ce.AccountMembersApiAxiosParamCreator)(r);return{deleteMember(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteMember(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getMember(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getMember(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getMembers(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.getMembers(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},patchMember(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchMember(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postMemberTeams(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.postMemberTeams(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postMembers(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.postMembers(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})}}};ce.AccountMembersApiFp=Xsl;var $sl=function(r,t,n){let i=(0,ce.AccountMembersApiFp)(r);return{deleteMember(o,s){return i.deleteMember(o,s).then(a=>a(n,t))},getMember(o,s,a){return i.getMember(o,s,a).then(l=>l(n,t))},getMembers(o,s,a,l,c,u){return i.getMembers(o,s,a,l,c,u).then(d=>d(n,t))},patchMember(o,s,a){return i.patchMember(o,s,a).then(l=>l(n,t))},postMemberTeams(o,s,a){return i.postMemberTeams(o,s,a).then(l=>l(n,t))},postMembers(o,s){return i.postMembers(o,s).then(a=>a(n,t))}}};ce.AccountMembersApiFactory=$sl;var GIr=class extends At.BaseAPI{deleteMember(t,n){return(0,ce.AccountMembersApiFp)(this.configuration).deleteMember(t,n).then(i=>i(this.axios,this.basePath))}getMember(t,n,i){return(0,ce.AccountMembersApiFp)(this.configuration).getMember(t,n,i).then(o=>o(this.axios,this.basePath))}getMembers(t,n,i,o,s,a){return(0,ce.AccountMembersApiFp)(this.configuration).getMembers(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}patchMember(t,n,i){return(0,ce.AccountMembersApiFp)(this.configuration).patchMember(t,n,i).then(o=>o(this.axios,this.basePath))}postMemberTeams(t,n,i){return(0,ce.AccountMembersApiFp)(this.configuration).postMemberTeams(t,n,i).then(o=>o(this.axios,this.basePath))}postMembers(t,n){return(0,ce.AccountMembersApiFp)(this.configuration).postMembers(t,n).then(i=>i(this.axios,this.basePath))}};ce.AccountMembersApi=GIr;var Zsl=function(r){return{patchMembers:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchMembers","membersPatchInput",t);let i="/api/v2/members",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"PATCH"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}})}};ce.AccountMembersBetaApiAxiosParamCreator=Zsl;var eal=function(r){let t=(0,ce.AccountMembersBetaApiAxiosParamCreator)(r);return{patchMembers(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.patchMembers(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})}}};ce.AccountMembersBetaApiFp=eal;var tal=function(r,t,n){let i=(0,ce.AccountMembersBetaApiFp)(r);return{patchMembers(o,s){return i.patchMembers(o,s).then(a=>a(n,t))}}};ce.AccountMembersBetaApiFactory=tal;var WIr=class extends At.BaseAPI{patchMembers(t,n){return(0,ce.AccountMembersBetaApiFp)(this.configuration).patchMembers(t,n).then(i=>i(this.axios,this.basePath))}};ce.AccountMembersBetaApi=WIr;var ral=function(r){return{getDataExportEventsUsage:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){let a="/api/v2/usage/data-export-events",l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),t!==void 0&&(p.from=t),n!==void 0&&(p.to=n),i!==void 0&&(p.projectKey=i),o!==void 0&&(p.environmentKey=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getEvaluationsUsage:(t,n,i,o,s,a,l={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getEvaluationsUsage","projectKey",t),(0,B.assertParamExists)("getEvaluationsUsage","environmentKey",n),(0,B.assertParamExists)("getEvaluationsUsage","featureFlagKey",i);let c="/api/v2/usage/evaluations/{projectKey}/{environmentKey}/{featureFlagKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{featureFlagKey}",encodeURIComponent(String(i))),u=new URL(c,B.DUMMY_BASE_URL),d;r&&(d=r.baseOptions);let p=Object.assign(Object.assign({method:"GET"},d),l),f={},A={};yield(0,B.setApiKeyToObject)(f,"Authorization",r),o!==void 0&&(A.from=o),s!==void 0&&(A.to=s),a!==void 0&&(A.tz=a),(0,B.setSearchParams)(u,A);let h=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),l.headers),{url:(0,B.toPathString)(u),options:p}}),getEventsUsage:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getEventsUsage","type",t);let s="/api/v2/usage/events/{type}".replace("{type}",encodeURIComponent(String(t))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),n!==void 0&&(d.from=n),i!==void 0&&(d.to=i),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getExperimentationKeysUsage:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){let a="/api/v2/usage/experimentation-keys",l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),t!==void 0&&(p.from=t),n!==void 0&&(p.to=n),i!==void 0&&(p.projectKey=i),o!==void 0&&(p.environmentKey=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getExperimentationUnitsUsage:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){let a="/api/v2/usage/experimentation-units",l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),t!==void 0&&(p.from=t),n!==void 0&&(p.to=n),i!==void 0&&(p.projectKey=i),o!==void 0&&(p.environmentKey=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getMauSdksByType:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){let s="/api/v2/usage/mau/sdks",a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),t!==void 0&&(d.from=t),n!==void 0&&(d.to=n),i!==void 0&&(d.sdktype=i),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getMauUsage:(t,n,i,o,s,a,l,c,u={})=>Pe(this,void 0,void 0,function*(){let d="/api/v2/usage/mau",p=new URL(d,B.DUMMY_BASE_URL),f;r&&(f=r.baseOptions);let A=Object.assign(Object.assign({method:"GET"},f),u),h={},y={};yield(0,B.setApiKeyToObject)(h,"Authorization",r),t!==void 0&&(y.from=t),n!==void 0&&(y.to=n),i!==void 0&&(y.project=i),o!==void 0&&(y.environment=o),s!==void 0&&(y.sdktype=s),a!==void 0&&(y.sdk=a),l!==void 0&&(y.anonymous=l),c!==void 0&&(y.groupby=c),(0,B.setSearchParams)(p,y);let C=f&&f.headers?f.headers:{};return A.headers=Object.assign(Object.assign(Object.assign({},h),C),u.headers),{url:(0,B.toPathString)(p),options:A}}),getMauUsageByCategory:(t,n,i={})=>Pe(this,void 0,void 0,function*(){let o="/api/v2/usage/mau/bycategory",s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),t!==void 0&&(u.from=t),n!==void 0&&(u.to=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getServiceConnectionUsage:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){let a="/api/v2/usage/service-connections",l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),t!==void 0&&(p.from=t),n!==void 0&&(p.to=n),i!==void 0&&(p.projectKey=i),o!==void 0&&(p.environmentKey=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getStreamUsage:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getStreamUsage","source",t);let a="/api/v2/usage/streams/{source}".replace("{source}",encodeURIComponent(String(t))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),n!==void 0&&(p.from=n),i!==void 0&&(p.to=i),o!==void 0&&(p.tz=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getStreamUsageBySdkVersion:(t,n,i,o,s,a,l={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getStreamUsageBySdkVersion","source",t);let c="/api/v2/usage/streams/{source}/bysdkversion".replace("{source}",encodeURIComponent(String(t))),u=new URL(c,B.DUMMY_BASE_URL),d;r&&(d=r.baseOptions);let p=Object.assign(Object.assign({method:"GET"},d),l),f={},A={};yield(0,B.setApiKeyToObject)(f,"Authorization",r),n!==void 0&&(A.from=n),i!==void 0&&(A.to=i),o!==void 0&&(A.tz=o),s!==void 0&&(A.sdk=s),a!==void 0&&(A.version=a),(0,B.setSearchParams)(u,A);let h=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),l.headers),{url:(0,B.toPathString)(u),options:p}}),getStreamUsageSdkversion:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getStreamUsageSdkversion","source",t);let i="/api/v2/usage/streams/{source}/sdkversions".replace("{source}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}})}};ce.AccountUsageBetaApiAxiosParamCreator=ral;var nal=function(r){let t=(0,ce.AccountUsageBetaApiAxiosParamCreator)(r);return{getDataExportEventsUsage(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getDataExportEventsUsage(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getEvaluationsUsage(n,i,o,s,a,l,c){return Pe(this,void 0,void 0,function*(){let u=yield t.getEvaluationsUsage(n,i,o,s,a,l,c);return(0,B.createRequestFunction)(u,It.default,At.BASE_PATH,r)})},getEventsUsage(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getEventsUsage(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getExperimentationKeysUsage(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getExperimentationKeysUsage(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getExperimentationUnitsUsage(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getExperimentationUnitsUsage(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getMauSdksByType(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getMauSdksByType(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getMauUsage(n,i,o,s,a,l,c,u,d){return Pe(this,void 0,void 0,function*(){let p=yield t.getMauUsage(n,i,o,s,a,l,c,u,d);return(0,B.createRequestFunction)(p,It.default,At.BASE_PATH,r)})},getMauUsageByCategory(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getMauUsageByCategory(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getServiceConnectionUsage(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getServiceConnectionUsage(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getStreamUsage(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getStreamUsage(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getStreamUsageBySdkVersion(n,i,o,s,a,l,c){return Pe(this,void 0,void 0,function*(){let u=yield t.getStreamUsageBySdkVersion(n,i,o,s,a,l,c);return(0,B.createRequestFunction)(u,It.default,At.BASE_PATH,r)})},getStreamUsageSdkversion(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getStreamUsageSdkversion(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})}}};ce.AccountUsageBetaApiFp=nal;var ial=function(r,t,n){let i=(0,ce.AccountUsageBetaApiFp)(r);return{getDataExportEventsUsage(o,s,a,l,c){return i.getDataExportEventsUsage(o,s,a,l,c).then(u=>u(n,t))},getEvaluationsUsage(o,s,a,l,c,u,d){return i.getEvaluationsUsage(o,s,a,l,c,u,d).then(p=>p(n,t))},getEventsUsage(o,s,a,l){return i.getEventsUsage(o,s,a,l).then(c=>c(n,t))},getExperimentationKeysUsage(o,s,a,l,c){return i.getExperimentationKeysUsage(o,s,a,l,c).then(u=>u(n,t))},getExperimentationUnitsUsage(o,s,a,l,c){return i.getExperimentationUnitsUsage(o,s,a,l,c).then(u=>u(n,t))},getMauSdksByType(o,s,a,l){return i.getMauSdksByType(o,s,a,l).then(c=>c(n,t))},getMauUsage(o,s,a,l,c,u,d,p,f){return i.getMauUsage(o,s,a,l,c,u,d,p,f).then(A=>A(n,t))},getMauUsageByCategory(o,s,a){return i.getMauUsageByCategory(o,s,a).then(l=>l(n,t))},getServiceConnectionUsage(o,s,a,l,c){return i.getServiceConnectionUsage(o,s,a,l,c).then(u=>u(n,t))},getStreamUsage(o,s,a,l,c){return i.getStreamUsage(o,s,a,l,c).then(u=>u(n,t))},getStreamUsageBySdkVersion(o,s,a,l,c,u,d){return i.getStreamUsageBySdkVersion(o,s,a,l,c,u,d).then(p=>p(n,t))},getStreamUsageSdkversion(o,s){return i.getStreamUsageSdkversion(o,s).then(a=>a(n,t))}}};ce.AccountUsageBetaApiFactory=ial;var HIr=class extends At.BaseAPI{getDataExportEventsUsage(t,n,i,o,s){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getDataExportEventsUsage(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getEvaluationsUsage(t,n,i,o,s,a,l){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getEvaluationsUsage(t,n,i,o,s,a,l).then(c=>c(this.axios,this.basePath))}getEventsUsage(t,n,i,o){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getEventsUsage(t,n,i,o).then(s=>s(this.axios,this.basePath))}getExperimentationKeysUsage(t,n,i,o,s){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getExperimentationKeysUsage(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getExperimentationUnitsUsage(t,n,i,o,s){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getExperimentationUnitsUsage(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getMauSdksByType(t,n,i,o){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getMauSdksByType(t,n,i,o).then(s=>s(this.axios,this.basePath))}getMauUsage(t,n,i,o,s,a,l,c,u){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getMauUsage(t,n,i,o,s,a,l,c,u).then(d=>d(this.axios,this.basePath))}getMauUsageByCategory(t,n,i){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getMauUsageByCategory(t,n,i).then(o=>o(this.axios,this.basePath))}getServiceConnectionUsage(t,n,i,o,s){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getServiceConnectionUsage(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getStreamUsage(t,n,i,o,s){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getStreamUsage(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getStreamUsageBySdkVersion(t,n,i,o,s,a,l){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getStreamUsageBySdkVersion(t,n,i,o,s,a,l).then(c=>c(this.axios,this.basePath))}getStreamUsageSdkversion(t,n){return(0,ce.AccountUsageBetaApiFp)(this.configuration).getStreamUsageSdkversion(t,n).then(i=>i(this.axios,this.basePath))}};ce.AccountUsageBetaApi=HIr;var oal=function(r){return{deleteApplication:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteApplication","applicationKey",t);let i="/api/v2/applications/{applicationKey}".replace("{applicationKey}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),deleteApplicationVersion:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteApplicationVersion","applicationKey",t),(0,B.assertParamExists)("deleteApplicationVersion","versionKey",n);let o="/api/v2/applications/{applicationKey}/versions/{versionKey}".replace("{applicationKey}",encodeURIComponent(String(t))).replace("{versionKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"DELETE"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getApplication:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getApplication","applicationKey",t);let o="/api/v2/applications/{applicationKey}".replace("{applicationKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.expand=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getApplicationVersions:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getApplicationVersions","applicationKey",t);let l="/api/v2/applications/{applicationKey}/versions".replace("{applicationKey}",encodeURIComponent(String(t))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"GET"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),n!==void 0&&(f.filter=n),i!==void 0&&(f.limit=i),o!==void 0&&(f.offset=o),s!==void 0&&(f.sort=s),(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),{url:(0,B.toPathString)(c),options:d}}),getApplications:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){let l="/api/v2/applications",c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"GET"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),t!==void 0&&(f.filter=t),n!==void 0&&(f.limit=n),i!==void 0&&(f.offset=i),o!==void 0&&(f.sort=o),s!==void 0&&(f.expand=s),(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),{url:(0,B.toPathString)(c),options:d}}),patchApplication:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchApplication","applicationKey",t),(0,B.assertParamExists)("patchApplication","patchOperation",n);let o="/api/v2/applications/{applicationKey}".replace("{applicationKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),patchApplicationVersion:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchApplicationVersion","applicationKey",t),(0,B.assertParamExists)("patchApplicationVersion","versionKey",n),(0,B.assertParamExists)("patchApplicationVersion","patchOperation",i);let s="/api/v2/applications/{applicationKey}/versions/{versionKey}".replace("{applicationKey}",encodeURIComponent(String(t))).replace("{versionKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"PATCH"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}})}};ce.ApplicationsBetaApiAxiosParamCreator=oal;var sal=function(r){let t=(0,ce.ApplicationsBetaApiAxiosParamCreator)(r);return{deleteApplication(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteApplication(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},deleteApplicationVersion(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.deleteApplicationVersion(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getApplication(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getApplication(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getApplicationVersions(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.getApplicationVersions(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},getApplications(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.getApplications(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},patchApplication(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchApplication(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},patchApplicationVersion(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.patchApplicationVersion(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})}}};ce.ApplicationsBetaApiFp=sal;var aal=function(r,t,n){let i=(0,ce.ApplicationsBetaApiFp)(r);return{deleteApplication(o,s){return i.deleteApplication(o,s).then(a=>a(n,t))},deleteApplicationVersion(o,s,a){return i.deleteApplicationVersion(o,s,a).then(l=>l(n,t))},getApplication(o,s,a){return i.getApplication(o,s,a).then(l=>l(n,t))},getApplicationVersions(o,s,a,l,c,u){return i.getApplicationVersions(o,s,a,l,c,u).then(d=>d(n,t))},getApplications(o,s,a,l,c,u){return i.getApplications(o,s,a,l,c,u).then(d=>d(n,t))},patchApplication(o,s,a){return i.patchApplication(o,s,a).then(l=>l(n,t))},patchApplicationVersion(o,s,a,l){return i.patchApplicationVersion(o,s,a,l).then(c=>c(n,t))}}};ce.ApplicationsBetaApiFactory=aal;var VIr=class extends At.BaseAPI{deleteApplication(t,n){return(0,ce.ApplicationsBetaApiFp)(this.configuration).deleteApplication(t,n).then(i=>i(this.axios,this.basePath))}deleteApplicationVersion(t,n,i){return(0,ce.ApplicationsBetaApiFp)(this.configuration).deleteApplicationVersion(t,n,i).then(o=>o(this.axios,this.basePath))}getApplication(t,n,i){return(0,ce.ApplicationsBetaApiFp)(this.configuration).getApplication(t,n,i).then(o=>o(this.axios,this.basePath))}getApplicationVersions(t,n,i,o,s,a){return(0,ce.ApplicationsBetaApiFp)(this.configuration).getApplicationVersions(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}getApplications(t,n,i,o,s,a){return(0,ce.ApplicationsBetaApiFp)(this.configuration).getApplications(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}patchApplication(t,n,i){return(0,ce.ApplicationsBetaApiFp)(this.configuration).patchApplication(t,n,i).then(o=>o(this.axios,this.basePath))}patchApplicationVersion(t,n,i,o){return(0,ce.ApplicationsBetaApiFp)(this.configuration).patchApplicationVersion(t,n,i,o).then(s=>s(this.axios,this.basePath))}};ce.ApplicationsBetaApi=VIr;var lal=function(r){return{deleteApprovalRequest:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteApprovalRequest","id",t);let i="/api/v2/approval-requests/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),deleteApprovalRequestForFlag:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteApprovalRequestForFlag","projectKey",t),(0,B.assertParamExists)("deleteApprovalRequestForFlag","featureFlagKey",n),(0,B.assertParamExists)("deleteApprovalRequestForFlag","environmentKey",i),(0,B.assertParamExists)("deleteApprovalRequestForFlag","id",o);let a="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"DELETE"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getApprovalForFlag:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getApprovalForFlag","projectKey",t),(0,B.assertParamExists)("getApprovalForFlag","featureFlagKey",n),(0,B.assertParamExists)("getApprovalForFlag","environmentKey",i),(0,B.assertParamExists)("getApprovalForFlag","id",o);let a="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getApprovalRequest:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getApprovalRequest","id",t);let o="/api/v2/approval-requests/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.expand=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getApprovalRequests:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){let a="/api/v2/approval-requests",l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),t!==void 0&&(p.filter=t),n!==void 0&&(p.expand=n),i!==void 0&&(p.limit=i),o!==void 0&&(p.offset=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getApprovalsForFlag:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getApprovalsForFlag","projectKey",t),(0,B.assertParamExists)("getApprovalsForFlag","featureFlagKey",n),(0,B.assertParamExists)("getApprovalsForFlag","environmentKey",i);let s="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),postApprovalRequest:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postApprovalRequest","createApprovalRequestRequest",t);let i="/api/v2/approval-requests",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}}),postApprovalRequestApply:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postApprovalRequestApply","id",t),(0,B.assertParamExists)("postApprovalRequestApply","postApprovalRequestApplyRequest",n);let o="/api/v2/approval-requests/{id}/apply".replace("{id}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),postApprovalRequestApplyForFlag:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postApprovalRequestApplyForFlag","projectKey",t),(0,B.assertParamExists)("postApprovalRequestApplyForFlag","featureFlagKey",n),(0,B.assertParamExists)("postApprovalRequestApplyForFlag","environmentKey",i),(0,B.assertParamExists)("postApprovalRequestApplyForFlag","id",o),(0,B.assertParamExists)("postApprovalRequestApplyForFlag","postApprovalRequestApplyRequest",s);let l="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id}/apply".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"POST"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),p["Content-Type"]="application/json",(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),d.data=(0,B.serializeDataIfNeeded)(s,d,r),{url:(0,B.toPathString)(c),options:d}}),postApprovalRequestForFlag:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postApprovalRequestForFlag","projectKey",t),(0,B.assertParamExists)("postApprovalRequestForFlag","featureFlagKey",n),(0,B.assertParamExists)("postApprovalRequestForFlag","environmentKey",i),(0,B.assertParamExists)("postApprovalRequestForFlag","createFlagConfigApprovalRequestRequest",o);let a="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"POST"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),postApprovalRequestReview:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postApprovalRequestReview","id",t),(0,B.assertParamExists)("postApprovalRequestReview","postApprovalRequestReviewRequest",n);let o="/api/v2/approval-requests/{id}/reviews".replace("{id}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),postApprovalRequestReviewForFlag:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postApprovalRequestReviewForFlag","projectKey",t),(0,B.assertParamExists)("postApprovalRequestReviewForFlag","featureFlagKey",n),(0,B.assertParamExists)("postApprovalRequestReviewForFlag","environmentKey",i),(0,B.assertParamExists)("postApprovalRequestReviewForFlag","id",o),(0,B.assertParamExists)("postApprovalRequestReviewForFlag","postApprovalRequestReviewRequest",s);let l="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id}/reviews".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"POST"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),p["Content-Type"]="application/json",(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),d.data=(0,B.serializeDataIfNeeded)(s,d,r),{url:(0,B.toPathString)(c),options:d}}),postFlagCopyConfigApprovalRequest:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postFlagCopyConfigApprovalRequest","projectKey",t),(0,B.assertParamExists)("postFlagCopyConfigApprovalRequest","featureFlagKey",n),(0,B.assertParamExists)("postFlagCopyConfigApprovalRequest","environmentKey",i),(0,B.assertParamExists)("postFlagCopyConfigApprovalRequest","createCopyFlagConfigApprovalRequestRequest",o);let a="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests-flag-copy".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"POST"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}})}};ce.ApprovalsApiAxiosParamCreator=lal;var ual=function(r){let t=(0,ce.ApprovalsApiAxiosParamCreator)(r);return{deleteApprovalRequest(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteApprovalRequest(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},deleteApprovalRequestForFlag(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.deleteApprovalRequestForFlag(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getApprovalForFlag(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getApprovalForFlag(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getApprovalRequest(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getApprovalRequest(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getApprovalRequests(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getApprovalRequests(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getApprovalsForFlag(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getApprovalsForFlag(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},postApprovalRequest(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.postApprovalRequest(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},postApprovalRequestApply(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.postApprovalRequestApply(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postApprovalRequestApplyForFlag(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.postApprovalRequestApplyForFlag(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},postApprovalRequestForFlag(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.postApprovalRequestForFlag(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},postApprovalRequestReview(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.postApprovalRequestReview(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postApprovalRequestReviewForFlag(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.postApprovalRequestReviewForFlag(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},postFlagCopyConfigApprovalRequest(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.postFlagCopyConfigApprovalRequest(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})}}};ce.ApprovalsApiFp=ual;var cal=function(r,t,n){let i=(0,ce.ApprovalsApiFp)(r);return{deleteApprovalRequest(o,s){return i.deleteApprovalRequest(o,s).then(a=>a(n,t))},deleteApprovalRequestForFlag(o,s,a,l,c){return i.deleteApprovalRequestForFlag(o,s,a,l,c).then(u=>u(n,t))},getApprovalForFlag(o,s,a,l,c){return i.getApprovalForFlag(o,s,a,l,c).then(u=>u(n,t))},getApprovalRequest(o,s,a){return i.getApprovalRequest(o,s,a).then(l=>l(n,t))},getApprovalRequests(o,s,a,l,c){return i.getApprovalRequests(o,s,a,l,c).then(u=>u(n,t))},getApprovalsForFlag(o,s,a,l){return i.getApprovalsForFlag(o,s,a,l).then(c=>c(n,t))},postApprovalRequest(o,s){return i.postApprovalRequest(o,s).then(a=>a(n,t))},postApprovalRequestApply(o,s,a){return i.postApprovalRequestApply(o,s,a).then(l=>l(n,t))},postApprovalRequestApplyForFlag(o,s,a,l,c,u){return i.postApprovalRequestApplyForFlag(o,s,a,l,c,u).then(d=>d(n,t))},postApprovalRequestForFlag(o,s,a,l,c){return i.postApprovalRequestForFlag(o,s,a,l,c).then(u=>u(n,t))},postApprovalRequestReview(o,s,a){return i.postApprovalRequestReview(o,s,a).then(l=>l(n,t))},postApprovalRequestReviewForFlag(o,s,a,l,c,u){return i.postApprovalRequestReviewForFlag(o,s,a,l,c,u).then(d=>d(n,t))},postFlagCopyConfigApprovalRequest(o,s,a,l,c){return i.postFlagCopyConfigApprovalRequest(o,s,a,l,c).then(u=>u(n,t))}}};ce.ApprovalsApiFactory=cal;var YIr=class extends At.BaseAPI{deleteApprovalRequest(t,n){return(0,ce.ApprovalsApiFp)(this.configuration).deleteApprovalRequest(t,n).then(i=>i(this.axios,this.basePath))}deleteApprovalRequestForFlag(t,n,i,o,s){return(0,ce.ApprovalsApiFp)(this.configuration).deleteApprovalRequestForFlag(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getApprovalForFlag(t,n,i,o,s){return(0,ce.ApprovalsApiFp)(this.configuration).getApprovalForFlag(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getApprovalRequest(t,n,i){return(0,ce.ApprovalsApiFp)(this.configuration).getApprovalRequest(t,n,i).then(o=>o(this.axios,this.basePath))}getApprovalRequests(t,n,i,o,s){return(0,ce.ApprovalsApiFp)(this.configuration).getApprovalRequests(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getApprovalsForFlag(t,n,i,o){return(0,ce.ApprovalsApiFp)(this.configuration).getApprovalsForFlag(t,n,i,o).then(s=>s(this.axios,this.basePath))}postApprovalRequest(t,n){return(0,ce.ApprovalsApiFp)(this.configuration).postApprovalRequest(t,n).then(i=>i(this.axios,this.basePath))}postApprovalRequestApply(t,n,i){return(0,ce.ApprovalsApiFp)(this.configuration).postApprovalRequestApply(t,n,i).then(o=>o(this.axios,this.basePath))}postApprovalRequestApplyForFlag(t,n,i,o,s,a){return(0,ce.ApprovalsApiFp)(this.configuration).postApprovalRequestApplyForFlag(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}postApprovalRequestForFlag(t,n,i,o,s){return(0,ce.ApprovalsApiFp)(this.configuration).postApprovalRequestForFlag(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}postApprovalRequestReview(t,n,i){return(0,ce.ApprovalsApiFp)(this.configuration).postApprovalRequestReview(t,n,i).then(o=>o(this.axios,this.basePath))}postApprovalRequestReviewForFlag(t,n,i,o,s,a){return(0,ce.ApprovalsApiFp)(this.configuration).postApprovalRequestReviewForFlag(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}postFlagCopyConfigApprovalRequest(t,n,i,o,s){return(0,ce.ApprovalsApiFp)(this.configuration).postFlagCopyConfigApprovalRequest(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}};ce.ApprovalsApi=YIr;var dal=function(r){return{patchApprovalRequest:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchApprovalRequest","projectKey",t),(0,B.assertParamExists)("patchApprovalRequest","featureFlagKey",n),(0,B.assertParamExists)("patchApprovalRequest","environmentKey",i),(0,B.assertParamExists)("patchApprovalRequest","id",o);let a="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}})}};ce.ApprovalsBetaApiAxiosParamCreator=dal;var pal=function(r){let t=(0,ce.ApprovalsBetaApiAxiosParamCreator)(r);return{patchApprovalRequest(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchApprovalRequest(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})}}};ce.ApprovalsBetaApiFp=pal;var fal=function(r,t,n){let i=(0,ce.ApprovalsBetaApiFp)(r);return{patchApprovalRequest(o,s,a,l,c){return i.patchApprovalRequest(o,s,a,l,c).then(u=>u(n,t))}}};ce.ApprovalsBetaApiFactory=fal;var KIr=class extends At.BaseAPI{patchApprovalRequest(t,n,i,o,s){return(0,ce.ApprovalsBetaApiFp)(this.configuration).patchApprovalRequest(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}};ce.ApprovalsBetaApi=KIr;var Aal=function(r){return{getAuditLogEntries:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){let l="/api/v2/auditlog",c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"GET"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),t!==void 0&&(f.before=t),n!==void 0&&(f.after=n),i!==void 0&&(f.q=i),o!==void 0&&(f.limit=o),s!==void 0&&(f.spec=s),(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),{url:(0,B.toPathString)(c),options:d}}),getAuditLogEntry:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getAuditLogEntry","id",t);let i="/api/v2/auditlog/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),postAuditLogEntries:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){let l="/api/v2/auditlog",c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"POST"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),t!==void 0&&(f.before=t),n!==void 0&&(f.after=n),i!==void 0&&(f.q=i),o!==void 0&&(f.limit=o),p["Content-Type"]="application/json",(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),d.data=(0,B.serializeDataIfNeeded)(s,d,r),{url:(0,B.toPathString)(c),options:d}})}};ce.AuditLogApiAxiosParamCreator=Aal;var hal=function(r){let t=(0,ce.AuditLogApiAxiosParamCreator)(r);return{getAuditLogEntries(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.getAuditLogEntries(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},getAuditLogEntry(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getAuditLogEntry(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},postAuditLogEntries(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.postAuditLogEntries(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})}}};ce.AuditLogApiFp=hal;var gal=function(r,t,n){let i=(0,ce.AuditLogApiFp)(r);return{getAuditLogEntries(o,s,a,l,c,u){return i.getAuditLogEntries(o,s,a,l,c,u).then(d=>d(n,t))},getAuditLogEntry(o,s){return i.getAuditLogEntry(o,s).then(a=>a(n,t))},postAuditLogEntries(o,s,a,l,c,u){return i.postAuditLogEntries(o,s,a,l,c,u).then(d=>d(n,t))}}};ce.AuditLogApiFactory=gal;var JIr=class extends At.BaseAPI{getAuditLogEntries(t,n,i,o,s,a){return(0,ce.AuditLogApiFp)(this.configuration).getAuditLogEntries(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}getAuditLogEntry(t,n){return(0,ce.AuditLogApiFp)(this.configuration).getAuditLogEntry(t,n).then(i=>i(this.axios,this.basePath))}postAuditLogEntries(t,n,i,o,s,a){return(0,ce.AuditLogApiFp)(this.configuration).postAuditLogEntries(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}};ce.AuditLogApi=JIr;var mal=function(r){return{deleteBranches:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteBranches","repo",t),(0,B.assertParamExists)("deleteBranches","requestBody",n);let o="/api/v2/code-refs/repositories/{repo}/branch-delete-tasks".replace("{repo}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),deleteRepository:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteRepository","repo",t);let i="/api/v2/code-refs/repositories/{repo}".replace("{repo}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getBranch:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getBranch","repo",t),(0,B.assertParamExists)("getBranch","branch",n);let a="/api/v2/code-refs/repositories/{repo}/branches/{branch}".replace("{repo}",encodeURIComponent(String(t))).replace("{branch}",encodeURIComponent(String(n))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),i!==void 0&&(p.projKey=i),o!==void 0&&(p.flagKey=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getBranches:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getBranches","repo",t);let i="/api/v2/code-refs/repositories/{repo}/branches".replace("{repo}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getExtinctions:(t,n,i,o,s,a,l={})=>Pe(this,void 0,void 0,function*(){let c="/api/v2/code-refs/extinctions",u=new URL(c,B.DUMMY_BASE_URL),d;r&&(d=r.baseOptions);let p=Object.assign(Object.assign({method:"GET"},d),l),f={},A={};yield(0,B.setApiKeyToObject)(f,"Authorization",r),t!==void 0&&(A.repoName=t),n!==void 0&&(A.branchName=n),i!==void 0&&(A.projKey=i),o!==void 0&&(A.flagKey=o),s!==void 0&&(A.from=s),a!==void 0&&(A.to=a),(0,B.setSearchParams)(u,A);let h=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),l.headers),{url:(0,B.toPathString)(u),options:p}}),getRepositories:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){let a="/api/v2/code-refs/repositories",l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),t!==void 0&&(p.withBranches=t),n!==void 0&&(p.withReferencesForDefaultBranch=n),i!==void 0&&(p.projKey=i),o!==void 0&&(p.flagKey=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getRepository:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getRepository","repo",t);let i="/api/v2/code-refs/repositories/{repo}".replace("{repo}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getRootStatistic:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/code-refs/statistics",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),getStatistics:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getStatistics","projectKey",t);let o="/api/v2/code-refs/statistics/{projectKey}".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.flagKey=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),patchRepository:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchRepository","repo",t),(0,B.assertParamExists)("patchRepository","patchOperation",n);let o="/api/v2/code-refs/repositories/{repo}".replace("{repo}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),postExtinction:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postExtinction","repo",t),(0,B.assertParamExists)("postExtinction","branch",n),(0,B.assertParamExists)("postExtinction","extinction",i);let s="/api/v2/code-refs/repositories/{repo}/branches/{branch}/extinction-events".replace("{repo}",encodeURIComponent(String(t))).replace("{branch}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),postRepository:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postRepository","repositoryPost",t);let i="/api/v2/code-refs/repositories",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}}),putBranch:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("putBranch","repo",t),(0,B.assertParamExists)("putBranch","branch",n),(0,B.assertParamExists)("putBranch","putBranch",i);let s="/api/v2/code-refs/repositories/{repo}/branches/{branch}".replace("{repo}",encodeURIComponent(String(t))).replace("{branch}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"PUT"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}})}};ce.CodeReferencesApiAxiosParamCreator=mal;var yal=function(r){let t=(0,ce.CodeReferencesApiAxiosParamCreator)(r);return{deleteBranches(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.deleteBranches(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},deleteRepository(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteRepository(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getBranch(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getBranch(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getBranches(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getBranches(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getExtinctions(n,i,o,s,a,l,c){return Pe(this,void 0,void 0,function*(){let u=yield t.getExtinctions(n,i,o,s,a,l,c);return(0,B.createRequestFunction)(u,It.default,At.BASE_PATH,r)})},getRepositories(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getRepositories(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getRepository(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getRepository(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getRootStatistic(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getRootStatistic(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},getStatistics(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getStatistics(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},patchRepository(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchRepository(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postExtinction(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.postExtinction(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},postRepository(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.postRepository(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},putBranch(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.putBranch(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})}}};ce.CodeReferencesApiFp=yal;var Eal=function(r,t,n){let i=(0,ce.CodeReferencesApiFp)(r);return{deleteBranches(o,s,a){return i.deleteBranches(o,s,a).then(l=>l(n,t))},deleteRepository(o,s){return i.deleteRepository(o,s).then(a=>a(n,t))},getBranch(o,s,a,l,c){return i.getBranch(o,s,a,l,c).then(u=>u(n,t))},getBranches(o,s){return i.getBranches(o,s).then(a=>a(n,t))},getExtinctions(o,s,a,l,c,u,d){return i.getExtinctions(o,s,a,l,c,u,d).then(p=>p(n,t))},getRepositories(o,s,a,l,c){return i.getRepositories(o,s,a,l,c).then(u=>u(n,t))},getRepository(o,s){return i.getRepository(o,s).then(a=>a(n,t))},getRootStatistic(o){return i.getRootStatistic(o).then(s=>s(n,t))},getStatistics(o,s,a){return i.getStatistics(o,s,a).then(l=>l(n,t))},patchRepository(o,s,a){return i.patchRepository(o,s,a).then(l=>l(n,t))},postExtinction(o,s,a,l){return i.postExtinction(o,s,a,l).then(c=>c(n,t))},postRepository(o,s){return i.postRepository(o,s).then(a=>a(n,t))},putBranch(o,s,a,l){return i.putBranch(o,s,a,l).then(c=>c(n,t))}}};ce.CodeReferencesApiFactory=Eal;var XIr=class extends At.BaseAPI{deleteBranches(t,n,i){return(0,ce.CodeReferencesApiFp)(this.configuration).deleteBranches(t,n,i).then(o=>o(this.axios,this.basePath))}deleteRepository(t,n){return(0,ce.CodeReferencesApiFp)(this.configuration).deleteRepository(t,n).then(i=>i(this.axios,this.basePath))}getBranch(t,n,i,o,s){return(0,ce.CodeReferencesApiFp)(this.configuration).getBranch(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getBranches(t,n){return(0,ce.CodeReferencesApiFp)(this.configuration).getBranches(t,n).then(i=>i(this.axios,this.basePath))}getExtinctions(t,n,i,o,s,a,l){return(0,ce.CodeReferencesApiFp)(this.configuration).getExtinctions(t,n,i,o,s,a,l).then(c=>c(this.axios,this.basePath))}getRepositories(t,n,i,o,s){return(0,ce.CodeReferencesApiFp)(this.configuration).getRepositories(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getRepository(t,n){return(0,ce.CodeReferencesApiFp)(this.configuration).getRepository(t,n).then(i=>i(this.axios,this.basePath))}getRootStatistic(t){return(0,ce.CodeReferencesApiFp)(this.configuration).getRootStatistic(t).then(n=>n(this.axios,this.basePath))}getStatistics(t,n,i){return(0,ce.CodeReferencesApiFp)(this.configuration).getStatistics(t,n,i).then(o=>o(this.axios,this.basePath))}patchRepository(t,n,i){return(0,ce.CodeReferencesApiFp)(this.configuration).patchRepository(t,n,i).then(o=>o(this.axios,this.basePath))}postExtinction(t,n,i,o){return(0,ce.CodeReferencesApiFp)(this.configuration).postExtinction(t,n,i,o).then(s=>s(this.axios,this.basePath))}postRepository(t,n){return(0,ce.CodeReferencesApiFp)(this.configuration).postRepository(t,n).then(i=>i(this.axios,this.basePath))}putBranch(t,n,i,o){return(0,ce.CodeReferencesApiFp)(this.configuration).putBranch(t,n,i,o).then(s=>s(this.axios,this.basePath))}};ce.CodeReferencesApi=XIr;var bal=function(r){return{putContextFlagSetting:(t,n,i,o,s,a,l={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("putContextFlagSetting","projectKey",t),(0,B.assertParamExists)("putContextFlagSetting","environmentKey",n),(0,B.assertParamExists)("putContextFlagSetting","contextKind",i),(0,B.assertParamExists)("putContextFlagSetting","contextKey",o),(0,B.assertParamExists)("putContextFlagSetting","featureFlagKey",s),(0,B.assertParamExists)("putContextFlagSetting","valuePut",a);let c="/api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/{contextKind}/{contextKey}/flags/{featureFlagKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{contextKind}",encodeURIComponent(String(i))).replace("{contextKey}",encodeURIComponent(String(o))).replace("{featureFlagKey}",encodeURIComponent(String(s))),u=new URL(c,B.DUMMY_BASE_URL),d;r&&(d=r.baseOptions);let p=Object.assign(Object.assign({method:"PUT"},d),l),f={},A={};yield(0,B.setApiKeyToObject)(f,"Authorization",r),f["Content-Type"]="application/json",(0,B.setSearchParams)(u,A);let h=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),l.headers),p.data=(0,B.serializeDataIfNeeded)(a,p,r),{url:(0,B.toPathString)(u),options:p}})}};ce.ContextSettingsApiAxiosParamCreator=bal;var Cal=function(r){let t=(0,ce.ContextSettingsApiAxiosParamCreator)(r);return{putContextFlagSetting(n,i,o,s,a,l,c){return Pe(this,void 0,void 0,function*(){let u=yield t.putContextFlagSetting(n,i,o,s,a,l,c);return(0,B.createRequestFunction)(u,It.default,At.BASE_PATH,r)})}}};ce.ContextSettingsApiFp=Cal;var Ial=function(r,t,n){let i=(0,ce.ContextSettingsApiFp)(r);return{putContextFlagSetting(o,s,a,l,c,u,d){return i.putContextFlagSetting(o,s,a,l,c,u,d).then(p=>p(n,t))}}};ce.ContextSettingsApiFactory=Ial;var $Ir=class extends At.BaseAPI{putContextFlagSetting(t,n,i,o,s,a,l){return(0,ce.ContextSettingsApiFp)(this.configuration).putContextFlagSetting(t,n,i,o,s,a,l).then(c=>c(this.axios,this.basePath))}};ce.ContextSettingsApi=$Ir;var Sal=function(r){return{deleteContextInstances:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteContextInstances","projectKey",t),(0,B.assertParamExists)("deleteContextInstances","environmentKey",n),(0,B.assertParamExists)("deleteContextInstances","id",i);let s="/api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{id}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"DELETE"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),evaluateContextInstance:(t,n,i,o,s,a,l,c={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("evaluateContextInstance","projectKey",t),(0,B.assertParamExists)("evaluateContextInstance","environmentKey",n),(0,B.assertParamExists)("evaluateContextInstance","requestBody",i);let u="/api/v2/projects/{projectKey}/environments/{environmentKey}/flags/evaluate".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),d=new URL(u,B.DUMMY_BASE_URL),p;r&&(p=r.baseOptions);let f=Object.assign(Object.assign({method:"POST"},p),c),A={},h={};yield(0,B.setApiKeyToObject)(A,"Authorization",r),o!==void 0&&(h.limit=o),s!==void 0&&(h.offset=s),a!==void 0&&(h.sort=a),l!==void 0&&(h.filter=l),A["Content-Type"]="application/json",(0,B.setSearchParams)(d,h);let y=p&&p.headers?p.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},A),y),c.headers),f.data=(0,B.serializeDataIfNeeded)(i,f,r),{url:(0,B.toPathString)(d),options:f}}),getContextAttributeNames:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getContextAttributeNames","projectKey",t),(0,B.assertParamExists)("getContextAttributeNames","environmentKey",n);let a="/api/v2/projects/{projectKey}/environments/{environmentKey}/context-attributes".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),i!==void 0&&(p.filter=i),o!==void 0&&(p.limit=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getContextAttributeValues:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getContextAttributeValues","projectKey",t),(0,B.assertParamExists)("getContextAttributeValues","environmentKey",n),(0,B.assertParamExists)("getContextAttributeValues","attributeName",i);let l="/api/v2/projects/{projectKey}/environments/{environmentKey}/context-attributes/{attributeName}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{attributeName}",encodeURIComponent(String(i))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"GET"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),o!==void 0&&(f.filter=o),s!==void 0&&(f.limit=s),(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),{url:(0,B.toPathString)(c),options:d}}),getContextInstances:(t,n,i,o,s,a,l,c,u={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getContextInstances","projectKey",t),(0,B.assertParamExists)("getContextInstances","environmentKey",n),(0,B.assertParamExists)("getContextInstances","id",i);let d="/api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{id}",encodeURIComponent(String(i))),p=new URL(d,B.DUMMY_BASE_URL),f;r&&(f=r.baseOptions);let A=Object.assign(Object.assign({method:"GET"},f),u),h={},y={};yield(0,B.setApiKeyToObject)(h,"Authorization",r),o!==void 0&&(y.limit=o),s!==void 0&&(y.continuationToken=s),a!==void 0&&(y.sort=a),l!==void 0&&(y.filter=l),c!==void 0&&(y.includeTotalCount=c),(0,B.setSearchParams)(p,y);let C=f&&f.headers?f.headers:{};return A.headers=Object.assign(Object.assign(Object.assign({},h),C),u.headers),{url:(0,B.toPathString)(p),options:A}}),getContextKindsByProjectKey:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getContextKindsByProjectKey","projectKey",t);let i="/api/v2/projects/{projectKey}/context-kinds".replace("{projectKey}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getContexts:(t,n,i,o,s,a,l,c,u,d={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getContexts","projectKey",t),(0,B.assertParamExists)("getContexts","environmentKey",n),(0,B.assertParamExists)("getContexts","kind",i),(0,B.assertParamExists)("getContexts","key",o);let p="/api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/{kind}/{key}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{kind}",encodeURIComponent(String(i))).replace("{key}",encodeURIComponent(String(o))),f=new URL(p,B.DUMMY_BASE_URL),A;r&&(A=r.baseOptions);let h=Object.assign(Object.assign({method:"GET"},A),d),y={},C={};yield(0,B.setApiKeyToObject)(y,"Authorization",r),s!==void 0&&(C.limit=s),a!==void 0&&(C.continuationToken=a),l!==void 0&&(C.sort=l),c!==void 0&&(C.filter=c),u!==void 0&&(C.includeTotalCount=u),(0,B.setSearchParams)(f,C);let v=A&&A.headers?A.headers:{};return h.headers=Object.assign(Object.assign(Object.assign({},y),v),d.headers),{url:(0,B.toPathString)(f),options:h}}),putContextKind:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("putContextKind","projectKey",t),(0,B.assertParamExists)("putContextKind","key",n),(0,B.assertParamExists)("putContextKind","upsertContextKindPayload",i);let s="/api/v2/projects/{projectKey}/context-kinds/{key}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"PUT"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),searchContextInstances:(t,n,i,o,s,a,l,c,u={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("searchContextInstances","projectKey",t),(0,B.assertParamExists)("searchContextInstances","environmentKey",n),(0,B.assertParamExists)("searchContextInstances","contextInstanceSearch",i);let d="/api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/search".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),p=new URL(d,B.DUMMY_BASE_URL),f;r&&(f=r.baseOptions);let A=Object.assign(Object.assign({method:"POST"},f),u),h={},y={};yield(0,B.setApiKeyToObject)(h,"Authorization",r),o!==void 0&&(y.limit=o),s!==void 0&&(y.continuationToken=s),a!==void 0&&(y.sort=a),l!==void 0&&(y.filter=l),c!==void 0&&(y.includeTotalCount=c),h["Content-Type"]="application/json",(0,B.setSearchParams)(p,y);let C=f&&f.headers?f.headers:{};return A.headers=Object.assign(Object.assign(Object.assign({},h),C),u.headers),A.data=(0,B.serializeDataIfNeeded)(i,A,r),{url:(0,B.toPathString)(p),options:A}}),searchContexts:(t,n,i,o,s,a,l,c,u={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("searchContexts","projectKey",t),(0,B.assertParamExists)("searchContexts","environmentKey",n),(0,B.assertParamExists)("searchContexts","contextSearch",i);let d="/api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/search".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),p=new URL(d,B.DUMMY_BASE_URL),f;r&&(f=r.baseOptions);let A=Object.assign(Object.assign({method:"POST"},f),u),h={},y={};yield(0,B.setApiKeyToObject)(h,"Authorization",r),o!==void 0&&(y.limit=o),s!==void 0&&(y.continuationToken=s),a!==void 0&&(y.sort=a),l!==void 0&&(y.filter=l),c!==void 0&&(y.includeTotalCount=c),h["Content-Type"]="application/json",(0,B.setSearchParams)(p,y);let C=f&&f.headers?f.headers:{};return A.headers=Object.assign(Object.assign(Object.assign({},h),C),u.headers),A.data=(0,B.serializeDataIfNeeded)(i,A,r),{url:(0,B.toPathString)(p),options:A}})}};ce.ContextsApiAxiosParamCreator=Sal;var _al=function(r){let t=(0,ce.ContextsApiAxiosParamCreator)(r);return{deleteContextInstances(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.deleteContextInstances(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},evaluateContextInstance(n,i,o,s,a,l,c,u){return Pe(this,void 0,void 0,function*(){let d=yield t.evaluateContextInstance(n,i,o,s,a,l,c,u);return(0,B.createRequestFunction)(d,It.default,At.BASE_PATH,r)})},getContextAttributeNames(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getContextAttributeNames(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getContextAttributeValues(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.getContextAttributeValues(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},getContextInstances(n,i,o,s,a,l,c,u,d){return Pe(this,void 0,void 0,function*(){let p=yield t.getContextInstances(n,i,o,s,a,l,c,u,d);return(0,B.createRequestFunction)(p,It.default,At.BASE_PATH,r)})},getContextKindsByProjectKey(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getContextKindsByProjectKey(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getContexts(n,i,o,s,a,l,c,u,d,p){return Pe(this,void 0,void 0,function*(){let f=yield t.getContexts(n,i,o,s,a,l,c,u,d,p);return(0,B.createRequestFunction)(f,It.default,At.BASE_PATH,r)})},putContextKind(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.putContextKind(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},searchContextInstances(n,i,o,s,a,l,c,u,d){return Pe(this,void 0,void 0,function*(){let p=yield t.searchContextInstances(n,i,o,s,a,l,c,u,d);return(0,B.createRequestFunction)(p,It.default,At.BASE_PATH,r)})},searchContexts(n,i,o,s,a,l,c,u,d){return Pe(this,void 0,void 0,function*(){let p=yield t.searchContexts(n,i,o,s,a,l,c,u,d);return(0,B.createRequestFunction)(p,It.default,At.BASE_PATH,r)})}}};ce.ContextsApiFp=_al;var Oal=function(r,t,n){let i=(0,ce.ContextsApiFp)(r);return{deleteContextInstances(o,s,a,l){return i.deleteContextInstances(o,s,a,l).then(c=>c(n,t))},evaluateContextInstance(o,s,a,l,c,u,d,p){return i.evaluateContextInstance(o,s,a,l,c,u,d,p).then(f=>f(n,t))},getContextAttributeNames(o,s,a,l,c){return i.getContextAttributeNames(o,s,a,l,c).then(u=>u(n,t))},getContextAttributeValues(o,s,a,l,c,u){return i.getContextAttributeValues(o,s,a,l,c,u).then(d=>d(n,t))},getContextInstances(o,s,a,l,c,u,d,p,f){return i.getContextInstances(o,s,a,l,c,u,d,p,f).then(A=>A(n,t))},getContextKindsByProjectKey(o,s){return i.getContextKindsByProjectKey(o,s).then(a=>a(n,t))},getContexts(o,s,a,l,c,u,d,p,f,A){return i.getContexts(o,s,a,l,c,u,d,p,f,A).then(h=>h(n,t))},putContextKind(o,s,a,l){return i.putContextKind(o,s,a,l).then(c=>c(n,t))},searchContextInstances(o,s,a,l,c,u,d,p,f){return i.searchContextInstances(o,s,a,l,c,u,d,p,f).then(A=>A(n,t))},searchContexts(o,s,a,l,c,u,d,p,f){return i.searchContexts(o,s,a,l,c,u,d,p,f).then(A=>A(n,t))}}};ce.ContextsApiFactory=Oal;var ZIr=class extends At.BaseAPI{deleteContextInstances(t,n,i,o){return(0,ce.ContextsApiFp)(this.configuration).deleteContextInstances(t,n,i,o).then(s=>s(this.axios,this.basePath))}evaluateContextInstance(t,n,i,o,s,a,l,c){return(0,ce.ContextsApiFp)(this.configuration).evaluateContextInstance(t,n,i,o,s,a,l,c).then(u=>u(this.axios,this.basePath))}getContextAttributeNames(t,n,i,o,s){return(0,ce.ContextsApiFp)(this.configuration).getContextAttributeNames(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getContextAttributeValues(t,n,i,o,s,a){return(0,ce.ContextsApiFp)(this.configuration).getContextAttributeValues(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}getContextInstances(t,n,i,o,s,a,l,c,u){return(0,ce.ContextsApiFp)(this.configuration).getContextInstances(t,n,i,o,s,a,l,c,u).then(d=>d(this.axios,this.basePath))}getContextKindsByProjectKey(t,n){return(0,ce.ContextsApiFp)(this.configuration).getContextKindsByProjectKey(t,n).then(i=>i(this.axios,this.basePath))}getContexts(t,n,i,o,s,a,l,c,u,d){return(0,ce.ContextsApiFp)(this.configuration).getContexts(t,n,i,o,s,a,l,c,u,d).then(p=>p(this.axios,this.basePath))}putContextKind(t,n,i,o){return(0,ce.ContextsApiFp)(this.configuration).putContextKind(t,n,i,o).then(s=>s(this.axios,this.basePath))}searchContextInstances(t,n,i,o,s,a,l,c,u){return(0,ce.ContextsApiFp)(this.configuration).searchContextInstances(t,n,i,o,s,a,l,c,u).then(d=>d(this.axios,this.basePath))}searchContexts(t,n,i,o,s,a,l,c,u){return(0,ce.ContextsApiFp)(this.configuration).searchContexts(t,n,i,o,s,a,l,c,u).then(d=>d(this.axios,this.basePath))}};ce.ContextsApi=ZIr;var Tal=function(r){return{deleteCustomRole:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteCustomRole","customRoleKey",t);let i="/api/v2/roles/{customRoleKey}".replace("{customRoleKey}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getCustomRole:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getCustomRole","customRoleKey",t);let i="/api/v2/roles/{customRoleKey}".replace("{customRoleKey}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getCustomRoles:(t,n,i={})=>Pe(this,void 0,void 0,function*(){let o="/api/v2/roles",s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),t!==void 0&&(u.limit=t),n!==void 0&&(u.offset=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),patchCustomRole:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchCustomRole","customRoleKey",t),(0,B.assertParamExists)("patchCustomRole","patchWithComment",n);let o="/api/v2/roles/{customRoleKey}".replace("{customRoleKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),postCustomRole:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postCustomRole","customRolePost",t);let i="/api/v2/roles",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}})}};ce.CustomRolesApiAxiosParamCreator=Tal;var wal=function(r){let t=(0,ce.CustomRolesApiAxiosParamCreator)(r);return{deleteCustomRole(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteCustomRole(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getCustomRole(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getCustomRole(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getCustomRoles(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getCustomRoles(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},patchCustomRole(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchCustomRole(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postCustomRole(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.postCustomRole(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})}}};ce.CustomRolesApiFp=wal;var Ral=function(r,t,n){let i=(0,ce.CustomRolesApiFp)(r);return{deleteCustomRole(o,s){return i.deleteCustomRole(o,s).then(a=>a(n,t))},getCustomRole(o,s){return i.getCustomRole(o,s).then(a=>a(n,t))},getCustomRoles(o,s,a){return i.getCustomRoles(o,s,a).then(l=>l(n,t))},patchCustomRole(o,s,a){return i.patchCustomRole(o,s,a).then(l=>l(n,t))},postCustomRole(o,s){return i.postCustomRole(o,s).then(a=>a(n,t))}}};ce.CustomRolesApiFactory=Ral;var evr=class extends At.BaseAPI{deleteCustomRole(t,n){return(0,ce.CustomRolesApiFp)(this.configuration).deleteCustomRole(t,n).then(i=>i(this.axios,this.basePath))}getCustomRole(t,n){return(0,ce.CustomRolesApiFp)(this.configuration).getCustomRole(t,n).then(i=>i(this.axios,this.basePath))}getCustomRoles(t,n,i){return(0,ce.CustomRolesApiFp)(this.configuration).getCustomRoles(t,n,i).then(o=>o(this.axios,this.basePath))}patchCustomRole(t,n,i){return(0,ce.CustomRolesApiFp)(this.configuration).patchCustomRole(t,n,i).then(o=>o(this.axios,this.basePath))}postCustomRole(t,n){return(0,ce.CustomRolesApiFp)(this.configuration).postCustomRole(t,n).then(i=>i(this.axios,this.basePath))}};ce.CustomRolesApi=evr;var Bal=function(r){return{deleteDestination:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteDestination","projectKey",t),(0,B.assertParamExists)("deleteDestination","environmentKey",n),(0,B.assertParamExists)("deleteDestination","id",i);let s="/api/v2/destinations/{projectKey}/{environmentKey}/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{id}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"DELETE"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getDestination:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getDestination","projectKey",t),(0,B.assertParamExists)("getDestination","environmentKey",n),(0,B.assertParamExists)("getDestination","id",i);let s="/api/v2/destinations/{projectKey}/{environmentKey}/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{id}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getDestinations:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/destinations",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),patchDestination:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchDestination","projectKey",t),(0,B.assertParamExists)("patchDestination","environmentKey",n),(0,B.assertParamExists)("patchDestination","id",i),(0,B.assertParamExists)("patchDestination","patchOperation",o);let a="/api/v2/destinations/{projectKey}/{environmentKey}/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{id}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),postDestination:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postDestination","projectKey",t),(0,B.assertParamExists)("postDestination","environmentKey",n),(0,B.assertParamExists)("postDestination","destinationPost",i);let s="/api/v2/destinations/{projectKey}/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}})}};ce.DataExportDestinationsApiAxiosParamCreator=Bal;var xal=function(r){let t=(0,ce.DataExportDestinationsApiAxiosParamCreator)(r);return{deleteDestination(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.deleteDestination(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getDestination(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getDestination(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getDestinations(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getDestinations(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},patchDestination(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchDestination(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},postDestination(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.postDestination(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})}}};ce.DataExportDestinationsApiFp=xal;var Mal=function(r,t,n){let i=(0,ce.DataExportDestinationsApiFp)(r);return{deleteDestination(o,s,a,l){return i.deleteDestination(o,s,a,l).then(c=>c(n,t))},getDestination(o,s,a,l){return i.getDestination(o,s,a,l).then(c=>c(n,t))},getDestinations(o){return i.getDestinations(o).then(s=>s(n,t))},patchDestination(o,s,a,l,c){return i.patchDestination(o,s,a,l,c).then(u=>u(n,t))},postDestination(o,s,a,l){return i.postDestination(o,s,a,l).then(c=>c(n,t))}}};ce.DataExportDestinationsApiFactory=Mal;var tvr=class extends At.BaseAPI{deleteDestination(t,n,i,o){return(0,ce.DataExportDestinationsApiFp)(this.configuration).deleteDestination(t,n,i,o).then(s=>s(this.axios,this.basePath))}getDestination(t,n,i,o){return(0,ce.DataExportDestinationsApiFp)(this.configuration).getDestination(t,n,i,o).then(s=>s(this.axios,this.basePath))}getDestinations(t){return(0,ce.DataExportDestinationsApiFp)(this.configuration).getDestinations(t).then(n=>n(this.axios,this.basePath))}patchDestination(t,n,i,o,s){return(0,ce.DataExportDestinationsApiFp)(this.configuration).patchDestination(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}postDestination(t,n,i,o){return(0,ce.DataExportDestinationsApiFp)(this.configuration).postDestination(t,n,i,o).then(s=>s(this.axios,this.basePath))}};ce.DataExportDestinationsApi=tvr;var Dal=function(r){return{deleteEnvironment:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteEnvironment","projectKey",t),(0,B.assertParamExists)("deleteEnvironment","environmentKey",n);let o="/api/v2/projects/{projectKey}/environments/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"DELETE"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getEnvironment:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getEnvironment","projectKey",t),(0,B.assertParamExists)("getEnvironment","environmentKey",n);let o="/api/v2/projects/{projectKey}/environments/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getEnvironmentsByProject:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getEnvironmentsByProject","projectKey",t);let l="/api/v2/projects/{projectKey}/environments".replace("{projectKey}",encodeURIComponent(String(t))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"GET"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),n!==void 0&&(f.limit=n),i!==void 0&&(f.offset=i),o!==void 0&&(f.filter=o),s!==void 0&&(f.sort=s),(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),{url:(0,B.toPathString)(c),options:d}}),patchEnvironment:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchEnvironment","projectKey",t),(0,B.assertParamExists)("patchEnvironment","environmentKey",n),(0,B.assertParamExists)("patchEnvironment","patchOperation",i);let s="/api/v2/projects/{projectKey}/environments/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"PATCH"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),postEnvironment:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postEnvironment","projectKey",t),(0,B.assertParamExists)("postEnvironment","environmentPost",n);let o="/api/v2/projects/{projectKey}/environments".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),resetEnvironmentMobileKey:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("resetEnvironmentMobileKey","projectKey",t),(0,B.assertParamExists)("resetEnvironmentMobileKey","environmentKey",n);let o="/api/v2/projects/{projectKey}/environments/{environmentKey}/mobileKey".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),resetEnvironmentSDKKey:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("resetEnvironmentSDKKey","projectKey",t),(0,B.assertParamExists)("resetEnvironmentSDKKey","environmentKey",n);let s="/api/v2/projects/{projectKey}/environments/{environmentKey}/apiKey".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),i!==void 0&&(d.expiry=i),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}})}};ce.EnvironmentsApiAxiosParamCreator=Dal;var Nal=function(r){let t=(0,ce.EnvironmentsApiAxiosParamCreator)(r);return{deleteEnvironment(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.deleteEnvironment(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getEnvironment(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getEnvironment(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getEnvironmentsByProject(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.getEnvironmentsByProject(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},patchEnvironment(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.patchEnvironment(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},postEnvironment(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.postEnvironment(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},resetEnvironmentMobileKey(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.resetEnvironmentMobileKey(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},resetEnvironmentSDKKey(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.resetEnvironmentSDKKey(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})}}};ce.EnvironmentsApiFp=Nal;var Pal=function(r,t,n){let i=(0,ce.EnvironmentsApiFp)(r);return{deleteEnvironment(o,s,a){return i.deleteEnvironment(o,s,a).then(l=>l(n,t))},getEnvironment(o,s,a){return i.getEnvironment(o,s,a).then(l=>l(n,t))},getEnvironmentsByProject(o,s,a,l,c,u){return i.getEnvironmentsByProject(o,s,a,l,c,u).then(d=>d(n,t))},patchEnvironment(o,s,a,l){return i.patchEnvironment(o,s,a,l).then(c=>c(n,t))},postEnvironment(o,s,a){return i.postEnvironment(o,s,a).then(l=>l(n,t))},resetEnvironmentMobileKey(o,s,a){return i.resetEnvironmentMobileKey(o,s,a).then(l=>l(n,t))},resetEnvironmentSDKKey(o,s,a,l){return i.resetEnvironmentSDKKey(o,s,a,l).then(c=>c(n,t))}}};ce.EnvironmentsApiFactory=Pal;var rvr=class extends At.BaseAPI{deleteEnvironment(t,n,i){return(0,ce.EnvironmentsApiFp)(this.configuration).deleteEnvironment(t,n,i).then(o=>o(this.axios,this.basePath))}getEnvironment(t,n,i){return(0,ce.EnvironmentsApiFp)(this.configuration).getEnvironment(t,n,i).then(o=>o(this.axios,this.basePath))}getEnvironmentsByProject(t,n,i,o,s,a){return(0,ce.EnvironmentsApiFp)(this.configuration).getEnvironmentsByProject(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}patchEnvironment(t,n,i,o){return(0,ce.EnvironmentsApiFp)(this.configuration).patchEnvironment(t,n,i,o).then(s=>s(this.axios,this.basePath))}postEnvironment(t,n,i){return(0,ce.EnvironmentsApiFp)(this.configuration).postEnvironment(t,n,i).then(o=>o(this.axios,this.basePath))}resetEnvironmentMobileKey(t,n,i){return(0,ce.EnvironmentsApiFp)(this.configuration).resetEnvironmentMobileKey(t,n,i).then(o=>o(this.axios,this.basePath))}resetEnvironmentSDKKey(t,n,i,o){return(0,ce.EnvironmentsApiFp)(this.configuration).resetEnvironmentSDKKey(t,n,i,o).then(s=>s(this.axios,this.basePath))}};ce.EnvironmentsApi=rvr;var kal=function(r){return{createExperiment:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createExperiment","projectKey",t),(0,B.assertParamExists)("createExperiment","environmentKey",n),(0,B.assertParamExists)("createExperiment","experimentPost",i);let s="/api/v2/projects/{projectKey}/environments/{environmentKey}/experiments".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),createIteration:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createIteration","projectKey",t),(0,B.assertParamExists)("createIteration","environmentKey",n),(0,B.assertParamExists)("createIteration","experimentKey",i),(0,B.assertParamExists)("createIteration","iterationInput",o);let a="/api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}/iterations".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{experimentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"POST"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),getExperiment:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getExperiment","projectKey",t),(0,B.assertParamExists)("getExperiment","environmentKey",n),(0,B.assertParamExists)("getExperiment","experimentKey",i);let a="/api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{experimentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),o!==void 0&&(p.expand=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getExperimentResults:(t,n,i,o,s,a,l={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getExperimentResults","projectKey",t),(0,B.assertParamExists)("getExperimentResults","environmentKey",n),(0,B.assertParamExists)("getExperimentResults","experimentKey",i),(0,B.assertParamExists)("getExperimentResults","metricKey",o);let c="/api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}/metrics/{metricKey}/results".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{experimentKey}",encodeURIComponent(String(i))).replace("{metricKey}",encodeURIComponent(String(o))),u=new URL(c,B.DUMMY_BASE_URL),d;r&&(d=r.baseOptions);let p=Object.assign(Object.assign({method:"GET"},d),l),f={},A={};yield(0,B.setApiKeyToObject)(f,"Authorization",r),s!==void 0&&(A.iterationId=s),a!==void 0&&(A.expand=a),(0,B.setSearchParams)(u,A);let h=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),l.headers),{url:(0,B.toPathString)(u),options:p}}),getExperimentResultsForMetricGroup:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getExperimentResultsForMetricGroup","projectKey",t),(0,B.assertParamExists)("getExperimentResultsForMetricGroup","environmentKey",n),(0,B.assertParamExists)("getExperimentResultsForMetricGroup","experimentKey",i),(0,B.assertParamExists)("getExperimentResultsForMetricGroup","metricGroupKey",o);let l="/api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}/metric-groups/{metricGroupKey}/results".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{experimentKey}",encodeURIComponent(String(i))).replace("{metricGroupKey}",encodeURIComponent(String(o))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"GET"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),s!==void 0&&(f.iterationId=s),(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),{url:(0,B.toPathString)(c),options:d}}),getExperimentationSettings:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getExperimentationSettings","projectKey",t);let i="/api/v2/projects/{projectKey}/experimentation-settings".replace("{projectKey}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getExperiments:(t,n,i,o,s,a,l,c={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getExperiments","projectKey",t),(0,B.assertParamExists)("getExperiments","environmentKey",n);let u="/api/v2/projects/{projectKey}/environments/{environmentKey}/experiments".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),d=new URL(u,B.DUMMY_BASE_URL),p;r&&(p=r.baseOptions);let f=Object.assign(Object.assign({method:"GET"},p),c),A={},h={};yield(0,B.setApiKeyToObject)(A,"Authorization",r),i!==void 0&&(h.limit=i),o!==void 0&&(h.offset=o),s!==void 0&&(h.filter=s),a!==void 0&&(h.expand=a),l!==void 0&&(h.lifecycleState=l),(0,B.setSearchParams)(d,h);let y=p&&p.headers?p.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},A),y),c.headers),{url:(0,B.toPathString)(d),options:f}}),getLegacyExperimentResults:(t,n,i,o,s,a,l={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getLegacyExperimentResults","projectKey",t),(0,B.assertParamExists)("getLegacyExperimentResults","featureFlagKey",n),(0,B.assertParamExists)("getLegacyExperimentResults","environmentKey",i),(0,B.assertParamExists)("getLegacyExperimentResults","metricKey",o);let c="/api/v2/flags/{projectKey}/{featureFlagKey}/experiments/{environmentKey}/{metricKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{metricKey}",encodeURIComponent(String(o))),u=new URL(c,B.DUMMY_BASE_URL),d;r&&(d=r.baseOptions);let p=Object.assign(Object.assign({method:"GET"},d),l),f={},A={};yield(0,B.setApiKeyToObject)(f,"Authorization",r),s!==void 0&&(A.from=s),a!==void 0&&(A.to=a),(0,B.setSearchParams)(u,A);let h=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),l.headers),{url:(0,B.toPathString)(u),options:p}}),patchExperiment:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchExperiment","projectKey",t),(0,B.assertParamExists)("patchExperiment","environmentKey",n),(0,B.assertParamExists)("patchExperiment","experimentKey",i),(0,B.assertParamExists)("patchExperiment","experimentPatchInput",o);let a="/api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{experimentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),putExperimentationSettings:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("putExperimentationSettings","projectKey",t),(0,B.assertParamExists)("putExperimentationSettings","randomizationSettingsPut",n);let o="/api/v2/projects/{projectKey}/experimentation-settings".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PUT"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}})}};ce.ExperimentsApiAxiosParamCreator=kal;var Qal=function(r){let t=(0,ce.ExperimentsApiAxiosParamCreator)(r);return{createExperiment(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.createExperiment(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},createIteration(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.createIteration(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getExperiment(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getExperiment(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getExperimentResults(n,i,o,s,a,l,c){return Pe(this,void 0,void 0,function*(){let u=yield t.getExperimentResults(n,i,o,s,a,l,c);return(0,B.createRequestFunction)(u,It.default,At.BASE_PATH,r)})},getExperimentResultsForMetricGroup(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.getExperimentResultsForMetricGroup(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},getExperimentationSettings(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getExperimentationSettings(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getExperiments(n,i,o,s,a,l,c,u){return Pe(this,void 0,void 0,function*(){let d=yield t.getExperiments(n,i,o,s,a,l,c,u);return(0,B.createRequestFunction)(d,It.default,At.BASE_PATH,r)})},getLegacyExperimentResults(n,i,o,s,a,l,c){return Pe(this,void 0,void 0,function*(){let u=yield t.getLegacyExperimentResults(n,i,o,s,a,l,c);return(0,B.createRequestFunction)(u,It.default,At.BASE_PATH,r)})},patchExperiment(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchExperiment(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},putExperimentationSettings(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.putExperimentationSettings(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.ExperimentsApiFp=Qal;var Lal=function(r,t,n){let i=(0,ce.ExperimentsApiFp)(r);return{createExperiment(o,s,a,l){return i.createExperiment(o,s,a,l).then(c=>c(n,t))},createIteration(o,s,a,l,c){return i.createIteration(o,s,a,l,c).then(u=>u(n,t))},getExperiment(o,s,a,l,c){return i.getExperiment(o,s,a,l,c).then(u=>u(n,t))},getExperimentResults(o,s,a,l,c,u,d){return i.getExperimentResults(o,s,a,l,c,u,d).then(p=>p(n,t))},getExperimentResultsForMetricGroup(o,s,a,l,c,u){return i.getExperimentResultsForMetricGroup(o,s,a,l,c,u).then(d=>d(n,t))},getExperimentationSettings(o,s){return i.getExperimentationSettings(o,s).then(a=>a(n,t))},getExperiments(o,s,a,l,c,u,d,p){return i.getExperiments(o,s,a,l,c,u,d,p).then(f=>f(n,t))},getLegacyExperimentResults(o,s,a,l,c,u,d){return i.getLegacyExperimentResults(o,s,a,l,c,u,d).then(p=>p(n,t))},patchExperiment(o,s,a,l,c){return i.patchExperiment(o,s,a,l,c).then(u=>u(n,t))},putExperimentationSettings(o,s,a){return i.putExperimentationSettings(o,s,a).then(l=>l(n,t))}}};ce.ExperimentsApiFactory=Lal;var nvr=class extends At.BaseAPI{createExperiment(t,n,i,o){return(0,ce.ExperimentsApiFp)(this.configuration).createExperiment(t,n,i,o).then(s=>s(this.axios,this.basePath))}createIteration(t,n,i,o,s){return(0,ce.ExperimentsApiFp)(this.configuration).createIteration(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getExperiment(t,n,i,o,s){return(0,ce.ExperimentsApiFp)(this.configuration).getExperiment(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getExperimentResults(t,n,i,o,s,a,l){return(0,ce.ExperimentsApiFp)(this.configuration).getExperimentResults(t,n,i,o,s,a,l).then(c=>c(this.axios,this.basePath))}getExperimentResultsForMetricGroup(t,n,i,o,s,a){return(0,ce.ExperimentsApiFp)(this.configuration).getExperimentResultsForMetricGroup(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}getExperimentationSettings(t,n){return(0,ce.ExperimentsApiFp)(this.configuration).getExperimentationSettings(t,n).then(i=>i(this.axios,this.basePath))}getExperiments(t,n,i,o,s,a,l,c){return(0,ce.ExperimentsApiFp)(this.configuration).getExperiments(t,n,i,o,s,a,l,c).then(u=>u(this.axios,this.basePath))}getLegacyExperimentResults(t,n,i,o,s,a,l){return(0,ce.ExperimentsApiFp)(this.configuration).getLegacyExperimentResults(t,n,i,o,s,a,l).then(c=>c(this.axios,this.basePath))}patchExperiment(t,n,i,o,s){return(0,ce.ExperimentsApiFp)(this.configuration).patchExperiment(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}putExperimentationSettings(t,n,i){return(0,ce.ExperimentsApiFp)(this.configuration).putExperimentationSettings(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.ExperimentsApi=nvr;var Fal=function(r){return{copyFeatureFlag:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("copyFeatureFlag","projectKey",t),(0,B.assertParamExists)("copyFeatureFlag","featureFlagKey",n),(0,B.assertParamExists)("copyFeatureFlag","flagCopyConfigPost",i);let s="/api/v2/flags/{projectKey}/{featureFlagKey}/copy".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),deleteFeatureFlag:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteFeatureFlag","projectKey",t),(0,B.assertParamExists)("deleteFeatureFlag","featureFlagKey",n);let o="/api/v2/flags/{projectKey}/{featureFlagKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"DELETE"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getExpiringContextTargets:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getExpiringContextTargets","projectKey",t),(0,B.assertParamExists)("getExpiringContextTargets","environmentKey",n),(0,B.assertParamExists)("getExpiringContextTargets","featureFlagKey",i);let s="/api/v2/flags/{projectKey}/{featureFlagKey}/expiring-targets/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{featureFlagKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getExpiringUserTargets:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getExpiringUserTargets","projectKey",t),(0,B.assertParamExists)("getExpiringUserTargets","environmentKey",n),(0,B.assertParamExists)("getExpiringUserTargets","featureFlagKey",i);let s="/api/v2/flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{featureFlagKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getFeatureFlag:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFeatureFlag","projectKey",t),(0,B.assertParamExists)("getFeatureFlag","featureFlagKey",n);let a="/api/v2/flags/{projectKey}/{featureFlagKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),i!==void 0&&(p.env=i),o!==void 0&&(p.expand=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getFeatureFlagStatus:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFeatureFlagStatus","projectKey",t),(0,B.assertParamExists)("getFeatureFlagStatus","environmentKey",n),(0,B.assertParamExists)("getFeatureFlagStatus","featureFlagKey",i);let s="/api/v2/flag-statuses/{projectKey}/{environmentKey}/{featureFlagKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{featureFlagKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getFeatureFlagStatusAcrossEnvironments:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFeatureFlagStatusAcrossEnvironments","projectKey",t),(0,B.assertParamExists)("getFeatureFlagStatusAcrossEnvironments","featureFlagKey",n);let s="/api/v2/flag-status/{projectKey}/{featureFlagKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),i!==void 0&&(d.env=i),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getFeatureFlagStatuses:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFeatureFlagStatuses","projectKey",t),(0,B.assertParamExists)("getFeatureFlagStatuses","environmentKey",n);let o="/api/v2/flag-statuses/{projectKey}/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getFeatureFlags:(t,n,i,o,s,a,l,c,u,d,p,f={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFeatureFlags","projectKey",t);let A="/api/v2/flags/{projectKey}".replace("{projectKey}",encodeURIComponent(String(t))),h=new URL(A,B.DUMMY_BASE_URL),y;r&&(y=r.baseOptions);let C=Object.assign(Object.assign({method:"GET"},y),f),v={},O={};yield(0,B.setApiKeyToObject)(v,"Authorization",r),n!==void 0&&(O.env=n),i!==void 0&&(O.tag=i),o!==void 0&&(O.limit=o),s!==void 0&&(O.offset=s),a!==void 0&&(O.archived=a),l!==void 0&&(O.summary=l),c!==void 0&&(O.filter=c),u!==void 0&&(O.sort=u),d!==void 0&&(O.compare=d),p!==void 0&&(O.expand=p),(0,B.setSearchParams)(h,O);let T=y&&y.headers?y.headers:{};return C.headers=Object.assign(Object.assign(Object.assign({},v),T),f.headers),{url:(0,B.toPathString)(h),options:C}}),patchExpiringTargets:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchExpiringTargets","projectKey",t),(0,B.assertParamExists)("patchExpiringTargets","environmentKey",n),(0,B.assertParamExists)("patchExpiringTargets","featureFlagKey",i),(0,B.assertParamExists)("patchExpiringTargets","patchFlagsRequest",o);let a="/api/v2/flags/{projectKey}/{featureFlagKey}/expiring-targets/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{featureFlagKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),patchExpiringUserTargets:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchExpiringUserTargets","projectKey",t),(0,B.assertParamExists)("patchExpiringUserTargets","environmentKey",n),(0,B.assertParamExists)("patchExpiringUserTargets","featureFlagKey",i),(0,B.assertParamExists)("patchExpiringUserTargets","patchFlagsRequest",o);let a="/api/v2/flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{featureFlagKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),patchFeatureFlag:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchFeatureFlag","projectKey",t),(0,B.assertParamExists)("patchFeatureFlag","featureFlagKey",n),(0,B.assertParamExists)("patchFeatureFlag","patchWithComment",i);let a="/api/v2/flags/{projectKey}/{featureFlagKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),o!==void 0&&(p.ignoreConflicts=o),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(i,u,r),{url:(0,B.toPathString)(l),options:u}}),postFeatureFlag:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postFeatureFlag","projectKey",t),(0,B.assertParamExists)("postFeatureFlag","featureFlagBody",n);let s="/api/v2/flags/{projectKey}".replace("{projectKey}",encodeURIComponent(String(t))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),i!==void 0&&(d.clone=i),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(n,c,r),{url:(0,B.toPathString)(a),options:c}}),postMigrationSafetyIssues:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postMigrationSafetyIssues","projectKey",t),(0,B.assertParamExists)("postMigrationSafetyIssues","flagKey",n),(0,B.assertParamExists)("postMigrationSafetyIssues","environmentKey",i),(0,B.assertParamExists)("postMigrationSafetyIssues","flagSempatch",o);let a="/api/v2/projects/{projectKey}/flags/{flagKey}/environments/{environmentKey}/migration-safety-issues".replace("{projectKey}",encodeURIComponent(String(t))).replace("{flagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"POST"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}})}};ce.FeatureFlagsApiAxiosParamCreator=Fal;var zal=function(r){let t=(0,ce.FeatureFlagsApiAxiosParamCreator)(r);return{copyFeatureFlag(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.copyFeatureFlag(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},deleteFeatureFlag(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.deleteFeatureFlag(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getExpiringContextTargets(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getExpiringContextTargets(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getExpiringUserTargets(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getExpiringUserTargets(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getFeatureFlag(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getFeatureFlag(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getFeatureFlagStatus(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getFeatureFlagStatus(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getFeatureFlagStatusAcrossEnvironments(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getFeatureFlagStatusAcrossEnvironments(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getFeatureFlagStatuses(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getFeatureFlagStatuses(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getFeatureFlags(n,i,o,s,a,l,c,u,d,p,f,A){return Pe(this,void 0,void 0,function*(){let h=yield t.getFeatureFlags(n,i,o,s,a,l,c,u,d,p,f,A);return(0,B.createRequestFunction)(h,It.default,At.BASE_PATH,r)})},patchExpiringTargets(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchExpiringTargets(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},patchExpiringUserTargets(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchExpiringUserTargets(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},patchFeatureFlag(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchFeatureFlag(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},postFeatureFlag(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.postFeatureFlag(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},postMigrationSafetyIssues(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.postMigrationSafetyIssues(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})}}};ce.FeatureFlagsApiFp=zal;var qal=function(r,t,n){let i=(0,ce.FeatureFlagsApiFp)(r);return{copyFeatureFlag(o,s,a,l){return i.copyFeatureFlag(o,s,a,l).then(c=>c(n,t))},deleteFeatureFlag(o,s,a){return i.deleteFeatureFlag(o,s,a).then(l=>l(n,t))},getExpiringContextTargets(o,s,a,l){return i.getExpiringContextTargets(o,s,a,l).then(c=>c(n,t))},getExpiringUserTargets(o,s,a,l){return i.getExpiringUserTargets(o,s,a,l).then(c=>c(n,t))},getFeatureFlag(o,s,a,l,c){return i.getFeatureFlag(o,s,a,l,c).then(u=>u(n,t))},getFeatureFlagStatus(o,s,a,l){return i.getFeatureFlagStatus(o,s,a,l).then(c=>c(n,t))},getFeatureFlagStatusAcrossEnvironments(o,s,a,l){return i.getFeatureFlagStatusAcrossEnvironments(o,s,a,l).then(c=>c(n,t))},getFeatureFlagStatuses(o,s,a){return i.getFeatureFlagStatuses(o,s,a).then(l=>l(n,t))},getFeatureFlags(o,s,a,l,c,u,d,p,f,A,h,y){return i.getFeatureFlags(o,s,a,l,c,u,d,p,f,A,h,y).then(C=>C(n,t))},patchExpiringTargets(o,s,a,l,c){return i.patchExpiringTargets(o,s,a,l,c).then(u=>u(n,t))},patchExpiringUserTargets(o,s,a,l,c){return i.patchExpiringUserTargets(o,s,a,l,c).then(u=>u(n,t))},patchFeatureFlag(o,s,a,l,c){return i.patchFeatureFlag(o,s,a,l,c).then(u=>u(n,t))},postFeatureFlag(o,s,a,l){return i.postFeatureFlag(o,s,a,l).then(c=>c(n,t))},postMigrationSafetyIssues(o,s,a,l,c){return i.postMigrationSafetyIssues(o,s,a,l,c).then(u=>u(n,t))}}};ce.FeatureFlagsApiFactory=qal;var ivr=class extends At.BaseAPI{copyFeatureFlag(t,n,i,o){return(0,ce.FeatureFlagsApiFp)(this.configuration).copyFeatureFlag(t,n,i,o).then(s=>s(this.axios,this.basePath))}deleteFeatureFlag(t,n,i){return(0,ce.FeatureFlagsApiFp)(this.configuration).deleteFeatureFlag(t,n,i).then(o=>o(this.axios,this.basePath))}getExpiringContextTargets(t,n,i,o){return(0,ce.FeatureFlagsApiFp)(this.configuration).getExpiringContextTargets(t,n,i,o).then(s=>s(this.axios,this.basePath))}getExpiringUserTargets(t,n,i,o){return(0,ce.FeatureFlagsApiFp)(this.configuration).getExpiringUserTargets(t,n,i,o).then(s=>s(this.axios,this.basePath))}getFeatureFlag(t,n,i,o,s){return(0,ce.FeatureFlagsApiFp)(this.configuration).getFeatureFlag(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getFeatureFlagStatus(t,n,i,o){return(0,ce.FeatureFlagsApiFp)(this.configuration).getFeatureFlagStatus(t,n,i,o).then(s=>s(this.axios,this.basePath))}getFeatureFlagStatusAcrossEnvironments(t,n,i,o){return(0,ce.FeatureFlagsApiFp)(this.configuration).getFeatureFlagStatusAcrossEnvironments(t,n,i,o).then(s=>s(this.axios,this.basePath))}getFeatureFlagStatuses(t,n,i){return(0,ce.FeatureFlagsApiFp)(this.configuration).getFeatureFlagStatuses(t,n,i).then(o=>o(this.axios,this.basePath))}getFeatureFlags(t,n,i,o,s,a,l,c,u,d,p,f){return(0,ce.FeatureFlagsApiFp)(this.configuration).getFeatureFlags(t,n,i,o,s,a,l,c,u,d,p,f).then(A=>A(this.axios,this.basePath))}patchExpiringTargets(t,n,i,o,s){return(0,ce.FeatureFlagsApiFp)(this.configuration).patchExpiringTargets(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}patchExpiringUserTargets(t,n,i,o,s){return(0,ce.FeatureFlagsApiFp)(this.configuration).patchExpiringUserTargets(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}patchFeatureFlag(t,n,i,o,s){return(0,ce.FeatureFlagsApiFp)(this.configuration).patchFeatureFlag(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}postFeatureFlag(t,n,i,o){return(0,ce.FeatureFlagsApiFp)(this.configuration).postFeatureFlag(t,n,i,o).then(s=>s(this.axios,this.basePath))}postMigrationSafetyIssues(t,n,i,o,s){return(0,ce.FeatureFlagsApiFp)(this.configuration).postMigrationSafetyIssues(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}};ce.FeatureFlagsApi=ivr;var Ual=function(r){return{getDependentFlags:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getDependentFlags","projectKey",t),(0,B.assertParamExists)("getDependentFlags","featureFlagKey",n);let o="/api/v2/flags/{projectKey}/{featureFlagKey}/dependent-flags".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getDependentFlagsByEnv:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getDependentFlagsByEnv","projectKey",t),(0,B.assertParamExists)("getDependentFlagsByEnv","environmentKey",n),(0,B.assertParamExists)("getDependentFlagsByEnv","featureFlagKey",i);let s="/api/v2/flags/{projectKey}/{environmentKey}/{featureFlagKey}/dependent-flags".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{featureFlagKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}})}};ce.FeatureFlagsBetaApiAxiosParamCreator=Ual;var jal=function(r){let t=(0,ce.FeatureFlagsBetaApiAxiosParamCreator)(r);return{getDependentFlags(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getDependentFlags(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getDependentFlagsByEnv(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getDependentFlagsByEnv(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})}}};ce.FeatureFlagsBetaApiFp=jal;var Gal=function(r,t,n){let i=(0,ce.FeatureFlagsBetaApiFp)(r);return{getDependentFlags(o,s,a){return i.getDependentFlags(o,s,a).then(l=>l(n,t))},getDependentFlagsByEnv(o,s,a,l){return i.getDependentFlagsByEnv(o,s,a,l).then(c=>c(n,t))}}};ce.FeatureFlagsBetaApiFactory=Gal;var ovr=class extends At.BaseAPI{getDependentFlags(t,n,i){return(0,ce.FeatureFlagsBetaApiFp)(this.configuration).getDependentFlags(t,n,i).then(o=>o(this.axios,this.basePath))}getDependentFlagsByEnv(t,n,i,o){return(0,ce.FeatureFlagsBetaApiFp)(this.configuration).getDependentFlagsByEnv(t,n,i,o).then(s=>s(this.axios,this.basePath))}};ce.FeatureFlagsBetaApi=ovr;var Wal=function(r){return{createFlagLink:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createFlagLink","projectKey",t),(0,B.assertParamExists)("createFlagLink","featureFlagKey",n),(0,B.assertParamExists)("createFlagLink","flagLinkPost",i);let s="/api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),deleteFlagLink:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteFlagLink","projectKey",t),(0,B.assertParamExists)("deleteFlagLink","featureFlagKey",n),(0,B.assertParamExists)("deleteFlagLink","id",i);let s="/api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey}/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{id}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"DELETE"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getFlagLinks:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFlagLinks","projectKey",t),(0,B.assertParamExists)("getFlagLinks","featureFlagKey",n);let o="/api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),updateFlagLink:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("updateFlagLink","projectKey",t),(0,B.assertParamExists)("updateFlagLink","featureFlagKey",n),(0,B.assertParamExists)("updateFlagLink","id",i),(0,B.assertParamExists)("updateFlagLink","patchOperation",o);let a="/api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey}/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{id}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}})}};ce.FlagLinksBetaApiAxiosParamCreator=Wal;var Hal=function(r){let t=(0,ce.FlagLinksBetaApiAxiosParamCreator)(r);return{createFlagLink(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.createFlagLink(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},deleteFlagLink(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.deleteFlagLink(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getFlagLinks(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getFlagLinks(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},updateFlagLink(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.updateFlagLink(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})}}};ce.FlagLinksBetaApiFp=Hal;var Val=function(r,t,n){let i=(0,ce.FlagLinksBetaApiFp)(r);return{createFlagLink(o,s,a,l){return i.createFlagLink(o,s,a,l).then(c=>c(n,t))},deleteFlagLink(o,s,a,l){return i.deleteFlagLink(o,s,a,l).then(c=>c(n,t))},getFlagLinks(o,s,a){return i.getFlagLinks(o,s,a).then(l=>l(n,t))},updateFlagLink(o,s,a,l,c){return i.updateFlagLink(o,s,a,l,c).then(u=>u(n,t))}}};ce.FlagLinksBetaApiFactory=Val;var svr=class extends At.BaseAPI{createFlagLink(t,n,i,o){return(0,ce.FlagLinksBetaApiFp)(this.configuration).createFlagLink(t,n,i,o).then(s=>s(this.axios,this.basePath))}deleteFlagLink(t,n,i,o){return(0,ce.FlagLinksBetaApiFp)(this.configuration).deleteFlagLink(t,n,i,o).then(s=>s(this.axios,this.basePath))}getFlagLinks(t,n,i){return(0,ce.FlagLinksBetaApiFp)(this.configuration).getFlagLinks(t,n,i).then(o=>o(this.axios,this.basePath))}updateFlagLink(t,n,i,o,s){return(0,ce.FlagLinksBetaApiFp)(this.configuration).updateFlagLink(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}};ce.FlagLinksBetaApi=svr;var Yal=function(r){return{createTriggerWorkflow:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createTriggerWorkflow","projectKey",t),(0,B.assertParamExists)("createTriggerWorkflow","environmentKey",n),(0,B.assertParamExists)("createTriggerWorkflow","featureFlagKey",i),(0,B.assertParamExists)("createTriggerWorkflow","triggerPost",o);let a="/api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{featureFlagKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"POST"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),deleteTriggerWorkflow:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteTriggerWorkflow","projectKey",t),(0,B.assertParamExists)("deleteTriggerWorkflow","environmentKey",n),(0,B.assertParamExists)("deleteTriggerWorkflow","featureFlagKey",i),(0,B.assertParamExists)("deleteTriggerWorkflow","id",o);let a="/api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{featureFlagKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"DELETE"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getTriggerWorkflowById:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getTriggerWorkflowById","projectKey",t),(0,B.assertParamExists)("getTriggerWorkflowById","featureFlagKey",n),(0,B.assertParamExists)("getTriggerWorkflowById","environmentKey",i),(0,B.assertParamExists)("getTriggerWorkflowById","id",o);let a="/api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getTriggerWorkflows:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getTriggerWorkflows","projectKey",t),(0,B.assertParamExists)("getTriggerWorkflows","environmentKey",n),(0,B.assertParamExists)("getTriggerWorkflows","featureFlagKey",i);let s="/api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{featureFlagKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),patchTriggerWorkflow:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchTriggerWorkflow","projectKey",t),(0,B.assertParamExists)("patchTriggerWorkflow","environmentKey",n),(0,B.assertParamExists)("patchTriggerWorkflow","featureFlagKey",i),(0,B.assertParamExists)("patchTriggerWorkflow","id",o),(0,B.assertParamExists)("patchTriggerWorkflow","flagTriggerInput",s);let l="/api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{featureFlagKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"PATCH"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),p["Content-Type"]="application/json",(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),d.data=(0,B.serializeDataIfNeeded)(s,d,r),{url:(0,B.toPathString)(c),options:d}})}};ce.FlagTriggersApiAxiosParamCreator=Yal;var Kal=function(r){let t=(0,ce.FlagTriggersApiAxiosParamCreator)(r);return{createTriggerWorkflow(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.createTriggerWorkflow(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},deleteTriggerWorkflow(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.deleteTriggerWorkflow(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getTriggerWorkflowById(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getTriggerWorkflowById(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getTriggerWorkflows(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getTriggerWorkflows(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},patchTriggerWorkflow(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.patchTriggerWorkflow(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})}}};ce.FlagTriggersApiFp=Kal;var Jal=function(r,t,n){let i=(0,ce.FlagTriggersApiFp)(r);return{createTriggerWorkflow(o,s,a,l,c){return i.createTriggerWorkflow(o,s,a,l,c).then(u=>u(n,t))},deleteTriggerWorkflow(o,s,a,l,c){return i.deleteTriggerWorkflow(o,s,a,l,c).then(u=>u(n,t))},getTriggerWorkflowById(o,s,a,l,c){return i.getTriggerWorkflowById(o,s,a,l,c).then(u=>u(n,t))},getTriggerWorkflows(o,s,a,l){return i.getTriggerWorkflows(o,s,a,l).then(c=>c(n,t))},patchTriggerWorkflow(o,s,a,l,c,u){return i.patchTriggerWorkflow(o,s,a,l,c,u).then(d=>d(n,t))}}};ce.FlagTriggersApiFactory=Jal;var avr=class extends At.BaseAPI{createTriggerWorkflow(t,n,i,o,s){return(0,ce.FlagTriggersApiFp)(this.configuration).createTriggerWorkflow(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}deleteTriggerWorkflow(t,n,i,o,s){return(0,ce.FlagTriggersApiFp)(this.configuration).deleteTriggerWorkflow(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getTriggerWorkflowById(t,n,i,o,s){return(0,ce.FlagTriggersApiFp)(this.configuration).getTriggerWorkflowById(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getTriggerWorkflows(t,n,i,o){return(0,ce.FlagTriggersApiFp)(this.configuration).getTriggerWorkflows(t,n,i,o).then(s=>s(this.axios,this.basePath))}patchTriggerWorkflow(t,n,i,o,s,a){return(0,ce.FlagTriggersApiFp)(this.configuration).patchTriggerWorkflow(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}};ce.FlagTriggersApi=avr;var Xal=function(r){return{deleteFlagFollower:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteFlagFollower","projectKey",t),(0,B.assertParamExists)("deleteFlagFollower","featureFlagKey",n),(0,B.assertParamExists)("deleteFlagFollower","environmentKey",i),(0,B.assertParamExists)("deleteFlagFollower","memberId",o);let a="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/followers/{memberId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{memberId}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"DELETE"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getFlagFollowers:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFlagFollowers","projectKey",t),(0,B.assertParamExists)("getFlagFollowers","featureFlagKey",n),(0,B.assertParamExists)("getFlagFollowers","environmentKey",i);let s="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/followers".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getFollowersByProjEnv:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFollowersByProjEnv","projectKey",t),(0,B.assertParamExists)("getFollowersByProjEnv","environmentKey",n);let o="/api/v2/projects/{projectKey}/environments/{environmentKey}/followers".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),putFlagFollower:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("putFlagFollower","projectKey",t),(0,B.assertParamExists)("putFlagFollower","featureFlagKey",n),(0,B.assertParamExists)("putFlagFollower","environmentKey",i),(0,B.assertParamExists)("putFlagFollower","memberId",o);let a="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/followers/{memberId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{memberId}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PUT"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}})}};ce.FollowFlagsApiAxiosParamCreator=Xal;var $al=function(r){let t=(0,ce.FollowFlagsApiAxiosParamCreator)(r);return{deleteFlagFollower(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.deleteFlagFollower(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getFlagFollowers(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getFlagFollowers(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getFollowersByProjEnv(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getFollowersByProjEnv(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},putFlagFollower(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.putFlagFollower(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})}}};ce.FollowFlagsApiFp=$al;var Zal=function(r,t,n){let i=(0,ce.FollowFlagsApiFp)(r);return{deleteFlagFollower(o,s,a,l,c){return i.deleteFlagFollower(o,s,a,l,c).then(u=>u(n,t))},getFlagFollowers(o,s,a,l){return i.getFlagFollowers(o,s,a,l).then(c=>c(n,t))},getFollowersByProjEnv(o,s,a){return i.getFollowersByProjEnv(o,s,a).then(l=>l(n,t))},putFlagFollower(o,s,a,l,c){return i.putFlagFollower(o,s,a,l,c).then(u=>u(n,t))}}};ce.FollowFlagsApiFactory=Zal;var lvr=class extends At.BaseAPI{deleteFlagFollower(t,n,i,o,s){return(0,ce.FollowFlagsApiFp)(this.configuration).deleteFlagFollower(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getFlagFollowers(t,n,i,o){return(0,ce.FollowFlagsApiFp)(this.configuration).getFlagFollowers(t,n,i,o).then(s=>s(this.axios,this.basePath))}getFollowersByProjEnv(t,n,i){return(0,ce.FollowFlagsApiFp)(this.configuration).getFollowersByProjEnv(t,n,i).then(o=>o(this.axios,this.basePath))}putFlagFollower(t,n,i,o,s){return(0,ce.FollowFlagsApiFp)(this.configuration).putFlagFollower(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}};ce.FollowFlagsApi=lvr;var ell=function(r){return{getAllHoldouts:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getAllHoldouts","projectKey",t),(0,B.assertParamExists)("getAllHoldouts","environmentKey",n);let a="/api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),i!==void 0&&(p.limit=i),o!==void 0&&(p.offset=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getHoldout:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getHoldout","projectKey",t),(0,B.assertParamExists)("getHoldout","environmentKey",n),(0,B.assertParamExists)("getHoldout","holdoutKey",i);let a="/api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts/{holdoutKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{holdoutKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),o!==void 0&&(p.expand=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getHoldoutById:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getHoldoutById","projectKey",t),(0,B.assertParamExists)("getHoldoutById","environmentKey",n),(0,B.assertParamExists)("getHoldoutById","holdoutId",i);let s="/api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts/id/{holdoutId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{holdoutId}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),patchHoldout:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchHoldout","projectKey",t),(0,B.assertParamExists)("patchHoldout","environmentKey",n),(0,B.assertParamExists)("patchHoldout","holdoutKey",i),(0,B.assertParamExists)("patchHoldout","holdoutPatchInput",o);let a="/api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts/{holdoutKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{holdoutKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),postHoldout:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postHoldout","projectKey",t),(0,B.assertParamExists)("postHoldout","environmentKey",n),(0,B.assertParamExists)("postHoldout","holdoutPostRequest",i);let s="/api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}})}};ce.HoldoutsBetaApiAxiosParamCreator=ell;var tll=function(r){let t=(0,ce.HoldoutsBetaApiAxiosParamCreator)(r);return{getAllHoldouts(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getAllHoldouts(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getHoldout(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getHoldout(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getHoldoutById(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getHoldoutById(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},patchHoldout(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchHoldout(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},postHoldout(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.postHoldout(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})}}};ce.HoldoutsBetaApiFp=tll;var rll=function(r,t,n){let i=(0,ce.HoldoutsBetaApiFp)(r);return{getAllHoldouts(o,s,a,l,c){return i.getAllHoldouts(o,s,a,l,c).then(u=>u(n,t))},getHoldout(o,s,a,l,c){return i.getHoldout(o,s,a,l,c).then(u=>u(n,t))},getHoldoutById(o,s,a,l){return i.getHoldoutById(o,s,a,l).then(c=>c(n,t))},patchHoldout(o,s,a,l,c){return i.patchHoldout(o,s,a,l,c).then(u=>u(n,t))},postHoldout(o,s,a,l){return i.postHoldout(o,s,a,l).then(c=>c(n,t))}}};ce.HoldoutsBetaApiFactory=rll;var uvr=class extends At.BaseAPI{getAllHoldouts(t,n,i,o,s){return(0,ce.HoldoutsBetaApiFp)(this.configuration).getAllHoldouts(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getHoldout(t,n,i,o,s){return(0,ce.HoldoutsBetaApiFp)(this.configuration).getHoldout(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getHoldoutById(t,n,i,o){return(0,ce.HoldoutsBetaApiFp)(this.configuration).getHoldoutById(t,n,i,o).then(s=>s(this.axios,this.basePath))}patchHoldout(t,n,i,o,s){return(0,ce.HoldoutsBetaApiFp)(this.configuration).patchHoldout(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}postHoldout(t,n,i,o){return(0,ce.HoldoutsBetaApiFp)(this.configuration).postHoldout(t,n,i,o).then(s=>s(this.axios,this.basePath))}};ce.HoldoutsBetaApi=uvr;var nll=function(r){return{getDeploymentFrequencyChart:(t,n,i,o,s,a,l,c,u,d={})=>Pe(this,void 0,void 0,function*(){let p="/api/v2/engineering-insights/charts/deployments/frequency",f=new URL(p,B.DUMMY_BASE_URL),A;r&&(A=r.baseOptions);let h=Object.assign(Object.assign({method:"GET"},A),d),y={},C={};yield(0,B.setApiKeyToObject)(y,"Authorization",r),t!==void 0&&(C.projectKey=t),n!==void 0&&(C.environmentKey=n),i!==void 0&&(C.applicationKey=i),o!==void 0&&(C.from=o instanceof Date?o.toISOString():o),s!==void 0&&(C.to=s instanceof Date?s.toISOString():s),a!==void 0&&(C.bucketType=a),l!==void 0&&(C.bucketMs=l),c!==void 0&&(C.groupBy=c),u!==void 0&&(C.expand=u),(0,B.setSearchParams)(f,C);let v=A&&A.headers?A.headers:{};return h.headers=Object.assign(Object.assign(Object.assign({},y),v),d.headers),{url:(0,B.toPathString)(f),options:h}}),getFlagStatusChart:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFlagStatusChart","projectKey",t),(0,B.assertParamExists)("getFlagStatusChart","environmentKey",n);let s="/api/v2/engineering-insights/charts/flags/status",a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),t!==void 0&&(d.projectKey=t),n!==void 0&&(d.environmentKey=n),i!==void 0&&(d.applicationKey=i),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getLeadTimeChart:(t,n,i,o,s,a,l,c,u,d={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getLeadTimeChart","projectKey",t);let p="/api/v2/engineering-insights/charts/lead-time",f=new URL(p,B.DUMMY_BASE_URL),A;r&&(A=r.baseOptions);let h=Object.assign(Object.assign({method:"GET"},A),d),y={},C={};yield(0,B.setApiKeyToObject)(y,"Authorization",r),t!==void 0&&(C.projectKey=t),n!==void 0&&(C.environmentKey=n),i!==void 0&&(C.applicationKey=i),o!==void 0&&(C.from=o),s!==void 0&&(C.to=s),a!==void 0&&(C.bucketType=a),l!==void 0&&(C.bucketMs=l),c!==void 0&&(C.groupBy=c),u!==void 0&&(C.expand=u),(0,B.setSearchParams)(f,C);let v=A&&A.headers?A.headers:{};return h.headers=Object.assign(Object.assign(Object.assign({},y),v),d.headers),{url:(0,B.toPathString)(f),options:h}}),getReleaseFrequencyChart:(t,n,i,o,s,a,l,c,u,d,p,f={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getReleaseFrequencyChart","projectKey",t),(0,B.assertParamExists)("getReleaseFrequencyChart","environmentKey",n);let A="/api/v2/engineering-insights/charts/releases/frequency",h=new URL(A,B.DUMMY_BASE_URL),y;r&&(y=r.baseOptions);let C=Object.assign(Object.assign({method:"GET"},y),f),v={},O={};yield(0,B.setApiKeyToObject)(v,"Authorization",r),t!==void 0&&(O.projectKey=t),n!==void 0&&(O.environmentKey=n),i!==void 0&&(O.applicationKey=i),o!==void 0&&(O.hasExperiments=o),s!==void 0&&(O.global=s),a!==void 0&&(O.groupBy=a),l!==void 0&&(O.from=l instanceof Date?l.toISOString():l),c!==void 0&&(O.to=c instanceof Date?c.toISOString():c),u!==void 0&&(O.bucketType=u),d!==void 0&&(O.bucketMs=d),p!==void 0&&(O.expand=p),(0,B.setSearchParams)(h,O);let T=y&&y.headers?y.headers:{};return C.headers=Object.assign(Object.assign(Object.assign({},v),T),f.headers),{url:(0,B.toPathString)(h),options:C}}),getStaleFlagsChart:(t,n,i,o,s,a,l,c={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getStaleFlagsChart","projectKey",t),(0,B.assertParamExists)("getStaleFlagsChart","environmentKey",n);let u="/api/v2/engineering-insights/charts/flags/stale",d=new URL(u,B.DUMMY_BASE_URL),p;r&&(p=r.baseOptions);let f=Object.assign(Object.assign({method:"GET"},p),c),A={},h={};yield(0,B.setApiKeyToObject)(A,"Authorization",r),t!==void 0&&(h.projectKey=t),n!==void 0&&(h.environmentKey=n),i!==void 0&&(h.applicationKey=i),o!==void 0&&(h.groupBy=o),s!==void 0&&(h.maintainerId=s),a!==void 0&&(h.maintainerTeamKey=a),l!==void 0&&(h.expand=l),(0,B.setSearchParams)(d,h);let y=p&&p.headers?p.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},A),y),c.headers),{url:(0,B.toPathString)(d),options:f}})}};ce.InsightsChartsBetaApiAxiosParamCreator=nll;var ill=function(r){let t=(0,ce.InsightsChartsBetaApiAxiosParamCreator)(r);return{getDeploymentFrequencyChart(n,i,o,s,a,l,c,u,d,p){return Pe(this,void 0,void 0,function*(){let f=yield t.getDeploymentFrequencyChart(n,i,o,s,a,l,c,u,d,p);return(0,B.createRequestFunction)(f,It.default,At.BASE_PATH,r)})},getFlagStatusChart(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getFlagStatusChart(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getLeadTimeChart(n,i,o,s,a,l,c,u,d,p){return Pe(this,void 0,void 0,function*(){let f=yield t.getLeadTimeChart(n,i,o,s,a,l,c,u,d,p);return(0,B.createRequestFunction)(f,It.default,At.BASE_PATH,r)})},getReleaseFrequencyChart(n,i,o,s,a,l,c,u,d,p,f,A){return Pe(this,void 0,void 0,function*(){let h=yield t.getReleaseFrequencyChart(n,i,o,s,a,l,c,u,d,p,f,A);return(0,B.createRequestFunction)(h,It.default,At.BASE_PATH,r)})},getStaleFlagsChart(n,i,o,s,a,l,c,u){return Pe(this,void 0,void 0,function*(){let d=yield t.getStaleFlagsChart(n,i,o,s,a,l,c,u);return(0,B.createRequestFunction)(d,It.default,At.BASE_PATH,r)})}}};ce.InsightsChartsBetaApiFp=ill;var oll=function(r,t,n){let i=(0,ce.InsightsChartsBetaApiFp)(r);return{getDeploymentFrequencyChart(o,s,a,l,c,u,d,p,f,A){return i.getDeploymentFrequencyChart(o,s,a,l,c,u,d,p,f,A).then(h=>h(n,t))},getFlagStatusChart(o,s,a,l){return i.getFlagStatusChart(o,s,a,l).then(c=>c(n,t))},getLeadTimeChart(o,s,a,l,c,u,d,p,f,A){return i.getLeadTimeChart(o,s,a,l,c,u,d,p,f,A).then(h=>h(n,t))},getReleaseFrequencyChart(o,s,a,l,c,u,d,p,f,A,h,y){return i.getReleaseFrequencyChart(o,s,a,l,c,u,d,p,f,A,h,y).then(C=>C(n,t))},getStaleFlagsChart(o,s,a,l,c,u,d,p){return i.getStaleFlagsChart(o,s,a,l,c,u,d,p).then(f=>f(n,t))}}};ce.InsightsChartsBetaApiFactory=oll;var cvr=class extends At.BaseAPI{getDeploymentFrequencyChart(t,n,i,o,s,a,l,c,u,d){return(0,ce.InsightsChartsBetaApiFp)(this.configuration).getDeploymentFrequencyChart(t,n,i,o,s,a,l,c,u,d).then(p=>p(this.axios,this.basePath))}getFlagStatusChart(t,n,i,o){return(0,ce.InsightsChartsBetaApiFp)(this.configuration).getFlagStatusChart(t,n,i,o).then(s=>s(this.axios,this.basePath))}getLeadTimeChart(t,n,i,o,s,a,l,c,u,d){return(0,ce.InsightsChartsBetaApiFp)(this.configuration).getLeadTimeChart(t,n,i,o,s,a,l,c,u,d).then(p=>p(this.axios,this.basePath))}getReleaseFrequencyChart(t,n,i,o,s,a,l,c,u,d,p,f){return(0,ce.InsightsChartsBetaApiFp)(this.configuration).getReleaseFrequencyChart(t,n,i,o,s,a,l,c,u,d,p,f).then(A=>A(this.axios,this.basePath))}getStaleFlagsChart(t,n,i,o,s,a,l,c){return(0,ce.InsightsChartsBetaApiFp)(this.configuration).getStaleFlagsChart(t,n,i,o,s,a,l,c).then(u=>u(this.axios,this.basePath))}};ce.InsightsChartsBetaApi=cvr;var sll=function(r){return{createDeploymentEvent:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createDeploymentEvent","postDeploymentEventInput",t);let i="/api/v2/engineering-insights/deployment-events",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}}),getDeployment:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getDeployment","deploymentID",t);let o="/api/v2/engineering-insights/deployments/{deploymentID}".replace("{deploymentID}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.expand=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getDeployments:(t,n,i,o,s,a,l,c,u,d,p,f={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getDeployments","projectKey",t),(0,B.assertParamExists)("getDeployments","environmentKey",n);let A="/api/v2/engineering-insights/deployments",h=new URL(A,B.DUMMY_BASE_URL),y;r&&(y=r.baseOptions);let C=Object.assign(Object.assign({method:"GET"},y),f),v={},O={};yield(0,B.setApiKeyToObject)(v,"Authorization",r),t!==void 0&&(O.projectKey=t),n!==void 0&&(O.environmentKey=n),i!==void 0&&(O.applicationKey=i),o!==void 0&&(O.limit=o),s!==void 0&&(O.expand=s),a!==void 0&&(O.from=a),l!==void 0&&(O.to=l),c!==void 0&&(O.after=c),u!==void 0&&(O.before=u),d!==void 0&&(O.kind=d),p!==void 0&&(O.status=p),(0,B.setSearchParams)(h,O);let T=y&&y.headers?y.headers:{};return C.headers=Object.assign(Object.assign(Object.assign({},v),T),f.headers),{url:(0,B.toPathString)(h),options:C}}),updateDeployment:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("updateDeployment","deploymentID",t),(0,B.assertParamExists)("updateDeployment","patchOperation",n);let o="/api/v2/engineering-insights/deployments/{deploymentID}".replace("{deploymentID}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}})}};ce.InsightsDeploymentsBetaApiAxiosParamCreator=sll;var all=function(r){let t=(0,ce.InsightsDeploymentsBetaApiAxiosParamCreator)(r);return{createDeploymentEvent(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.createDeploymentEvent(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getDeployment(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getDeployment(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getDeployments(n,i,o,s,a,l,c,u,d,p,f,A){return Pe(this,void 0,void 0,function*(){let h=yield t.getDeployments(n,i,o,s,a,l,c,u,d,p,f,A);return(0,B.createRequestFunction)(h,It.default,At.BASE_PATH,r)})},updateDeployment(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.updateDeployment(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.InsightsDeploymentsBetaApiFp=all;var lll=function(r,t,n){let i=(0,ce.InsightsDeploymentsBetaApiFp)(r);return{createDeploymentEvent(o,s){return i.createDeploymentEvent(o,s).then(a=>a(n,t))},getDeployment(o,s,a){return i.getDeployment(o,s,a).then(l=>l(n,t))},getDeployments(o,s,a,l,c,u,d,p,f,A,h,y){return i.getDeployments(o,s,a,l,c,u,d,p,f,A,h,y).then(C=>C(n,t))},updateDeployment(o,s,a){return i.updateDeployment(o,s,a).then(l=>l(n,t))}}};ce.InsightsDeploymentsBetaApiFactory=lll;var dvr=class extends At.BaseAPI{createDeploymentEvent(t,n){return(0,ce.InsightsDeploymentsBetaApiFp)(this.configuration).createDeploymentEvent(t,n).then(i=>i(this.axios,this.basePath))}getDeployment(t,n,i){return(0,ce.InsightsDeploymentsBetaApiFp)(this.configuration).getDeployment(t,n,i).then(o=>o(this.axios,this.basePath))}getDeployments(t,n,i,o,s,a,l,c,u,d,p,f){return(0,ce.InsightsDeploymentsBetaApiFp)(this.configuration).getDeployments(t,n,i,o,s,a,l,c,u,d,p,f).then(A=>A(this.axios,this.basePath))}updateDeployment(t,n,i){return(0,ce.InsightsDeploymentsBetaApiFp)(this.configuration).updateDeployment(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.InsightsDeploymentsBetaApi=dvr;var ull=function(r){return{getFlagEvents:(t,n,i,o,s,a,l,c,u,d,p,f,A,h={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFlagEvents","projectKey",t),(0,B.assertParamExists)("getFlagEvents","environmentKey",n);let y="/api/v2/engineering-insights/flag-events",C=new URL(y,B.DUMMY_BASE_URL),v;r&&(v=r.baseOptions);let O=Object.assign(Object.assign({method:"GET"},v),h),T={},R={};yield(0,B.setApiKeyToObject)(T,"Authorization",r),t!==void 0&&(R.projectKey=t),n!==void 0&&(R.environmentKey=n),i!==void 0&&(R.applicationKey=i),o!==void 0&&(R.query=o),s!==void 0&&(R.impactSize=s),a!==void 0&&(R.hasExperiments=a),l!==void 0&&(R.global=l),c!==void 0&&(R.expand=c),u!==void 0&&(R.limit=u),d!==void 0&&(R.from=d),p!==void 0&&(R.to=p),f!==void 0&&(R.after=f),A!==void 0&&(R.before=A),(0,B.setSearchParams)(C,R);let N=v&&v.headers?v.headers:{};return O.headers=Object.assign(Object.assign(Object.assign({},T),N),h.headers),{url:(0,B.toPathString)(C),options:O}})}};ce.InsightsFlagEventsBetaApiAxiosParamCreator=ull;var cll=function(r){let t=(0,ce.InsightsFlagEventsBetaApiAxiosParamCreator)(r);return{getFlagEvents(n,i,o,s,a,l,c,u,d,p,f,A,h,y){return Pe(this,void 0,void 0,function*(){let C=yield t.getFlagEvents(n,i,o,s,a,l,c,u,d,p,f,A,h,y);return(0,B.createRequestFunction)(C,It.default,At.BASE_PATH,r)})}}};ce.InsightsFlagEventsBetaApiFp=cll;var dll=function(r,t,n){let i=(0,ce.InsightsFlagEventsBetaApiFp)(r);return{getFlagEvents(o,s,a,l,c,u,d,p,f,A,h,y,C,v){return i.getFlagEvents(o,s,a,l,c,u,d,p,f,A,h,y,C,v).then(O=>O(n,t))}}};ce.InsightsFlagEventsBetaApiFactory=dll;var pvr=class extends At.BaseAPI{getFlagEvents(t,n,i,o,s,a,l,c,u,d,p,f,A,h){return(0,ce.InsightsFlagEventsBetaApiFp)(this.configuration).getFlagEvents(t,n,i,o,s,a,l,c,u,d,p,f,A,h).then(y=>y(this.axios,this.basePath))}};ce.InsightsFlagEventsBetaApi=pvr;var pll=function(r){return{getPullRequests:(t,n,i,o,s,a,l,c,u,d,p,f,A={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getPullRequests","projectKey",t);let h="/api/v2/engineering-insights/pull-requests",y=new URL(h,B.DUMMY_BASE_URL),C;r&&(C=r.baseOptions);let v=Object.assign(Object.assign({method:"GET"},C),A),O={},T={};yield(0,B.setApiKeyToObject)(O,"Authorization",r),t!==void 0&&(T.projectKey=t),n!==void 0&&(T.environmentKey=n),i!==void 0&&(T.applicationKey=i),o!==void 0&&(T.status=o),s!==void 0&&(T.query=s),a!==void 0&&(T.limit=a),l!==void 0&&(T.expand=l),c!==void 0&&(T.sort=c),u!==void 0&&(T.from=u instanceof Date?u.toISOString():u),d!==void 0&&(T.to=d instanceof Date?d.toISOString():d),p!==void 0&&(T.after=p),f!==void 0&&(T.before=f),(0,B.setSearchParams)(y,T);let R=C&&C.headers?C.headers:{};return v.headers=Object.assign(Object.assign(Object.assign({},O),R),A.headers),{url:(0,B.toPathString)(y),options:v}})}};ce.InsightsPullRequestsBetaApiAxiosParamCreator=pll;var fll=function(r){let t=(0,ce.InsightsPullRequestsBetaApiAxiosParamCreator)(r);return{getPullRequests(n,i,o,s,a,l,c,u,d,p,f,A,h){return Pe(this,void 0,void 0,function*(){let y=yield t.getPullRequests(n,i,o,s,a,l,c,u,d,p,f,A,h);return(0,B.createRequestFunction)(y,It.default,At.BASE_PATH,r)})}}};ce.InsightsPullRequestsBetaApiFp=fll;var All=function(r,t,n){let i=(0,ce.InsightsPullRequestsBetaApiFp)(r);return{getPullRequests(o,s,a,l,c,u,d,p,f,A,h,y,C){return i.getPullRequests(o,s,a,l,c,u,d,p,f,A,h,y,C).then(v=>v(n,t))}}};ce.InsightsPullRequestsBetaApiFactory=All;var fvr=class extends At.BaseAPI{getPullRequests(t,n,i,o,s,a,l,c,u,d,p,f,A){return(0,ce.InsightsPullRequestsBetaApiFp)(this.configuration).getPullRequests(t,n,i,o,s,a,l,c,u,d,p,f,A).then(h=>h(this.axios,this.basePath))}};ce.InsightsPullRequestsBetaApi=fvr;var hll=function(r){return{associateRepositoriesAndProjects:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("associateRepositoriesAndProjects","insightsRepositoryProjectMappings",t);let i="/api/v2/engineering-insights/repositories/projects",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"PUT"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}}),deleteRepositoryProject:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteRepositoryProject","repositoryKey",t),(0,B.assertParamExists)("deleteRepositoryProject","projectKey",n);let o="/api/v2/engineering-insights/repositories/{repositoryKey}/projects/{projectKey}".replace("{repositoryKey}",encodeURIComponent(String(t))).replace("{projectKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"DELETE"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getInsightsRepositories:(t,n={})=>Pe(this,void 0,void 0,function*(){let i="/api/v2/engineering-insights/repositories",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),t!==void 0&&(c.expand=t),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}})}};ce.InsightsRepositoriesBetaApiAxiosParamCreator=hll;var gll=function(r){let t=(0,ce.InsightsRepositoriesBetaApiAxiosParamCreator)(r);return{associateRepositoriesAndProjects(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.associateRepositoriesAndProjects(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},deleteRepositoryProject(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.deleteRepositoryProject(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getInsightsRepositories(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getInsightsRepositories(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})}}};ce.InsightsRepositoriesBetaApiFp=gll;var mll=function(r,t,n){let i=(0,ce.InsightsRepositoriesBetaApiFp)(r);return{associateRepositoriesAndProjects(o,s){return i.associateRepositoriesAndProjects(o,s).then(a=>a(n,t))},deleteRepositoryProject(o,s,a){return i.deleteRepositoryProject(o,s,a).then(l=>l(n,t))},getInsightsRepositories(o,s){return i.getInsightsRepositories(o,s).then(a=>a(n,t))}}};ce.InsightsRepositoriesBetaApiFactory=mll;var Avr=class extends At.BaseAPI{associateRepositoriesAndProjects(t,n){return(0,ce.InsightsRepositoriesBetaApiFp)(this.configuration).associateRepositoriesAndProjects(t,n).then(i=>i(this.axios,this.basePath))}deleteRepositoryProject(t,n,i){return(0,ce.InsightsRepositoriesBetaApiFp)(this.configuration).deleteRepositoryProject(t,n,i).then(o=>o(this.axios,this.basePath))}getInsightsRepositories(t,n){return(0,ce.InsightsRepositoriesBetaApiFp)(this.configuration).getInsightsRepositories(t,n).then(i=>i(this.axios,this.basePath))}};ce.InsightsRepositoriesBetaApi=Avr;var yll=function(r){return{createInsightGroup:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createInsightGroup","postInsightGroupParams",t);let i="/api/v2/engineering-insights/insights/group",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}}),deleteInsightGroup:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteInsightGroup","insightGroupKey",t);let i="/api/v2/engineering-insights/insights/groups/{insightGroupKey}".replace("{insightGroupKey}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getInsightGroup:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getInsightGroup","insightGroupKey",t);let o="/api/v2/engineering-insights/insights/groups/{insightGroupKey}".replace("{insightGroupKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.expand=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getInsightGroups:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){let l="/api/v2/engineering-insights/insights/groups",c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"GET"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),t!==void 0&&(f.limit=t),n!==void 0&&(f.offset=n),i!==void 0&&(f.sort=i),o!==void 0&&(f.query=o),s!==void 0&&(f.expand=s),(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),{url:(0,B.toPathString)(c),options:d}}),getInsightsScores:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getInsightsScores","projectKey",t),(0,B.assertParamExists)("getInsightsScores","environmentKey",n);let s="/api/v2/engineering-insights/insights/scores",a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),t!==void 0&&(d.projectKey=t),n!==void 0&&(d.environmentKey=n),i!==void 0&&(d.applicationKey=i),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),patchInsightGroup:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchInsightGroup","insightGroupKey",t),(0,B.assertParamExists)("patchInsightGroup","patchOperation",n);let o="/api/v2/engineering-insights/insights/groups/{insightGroupKey}".replace("{insightGroupKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}})}};ce.InsightsScoresBetaApiAxiosParamCreator=yll;var Ell=function(r){let t=(0,ce.InsightsScoresBetaApiAxiosParamCreator)(r);return{createInsightGroup(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.createInsightGroup(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},deleteInsightGroup(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteInsightGroup(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getInsightGroup(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getInsightGroup(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getInsightGroups(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.getInsightGroups(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},getInsightsScores(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getInsightsScores(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},patchInsightGroup(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchInsightGroup(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.InsightsScoresBetaApiFp=Ell;var bll=function(r,t,n){let i=(0,ce.InsightsScoresBetaApiFp)(r);return{createInsightGroup(o,s){return i.createInsightGroup(o,s).then(a=>a(n,t))},deleteInsightGroup(o,s){return i.deleteInsightGroup(o,s).then(a=>a(n,t))},getInsightGroup(o,s,a){return i.getInsightGroup(o,s,a).then(l=>l(n,t))},getInsightGroups(o,s,a,l,c,u){return i.getInsightGroups(o,s,a,l,c,u).then(d=>d(n,t))},getInsightsScores(o,s,a,l){return i.getInsightsScores(o,s,a,l).then(c=>c(n,t))},patchInsightGroup(o,s,a){return i.patchInsightGroup(o,s,a).then(l=>l(n,t))}}};ce.InsightsScoresBetaApiFactory=bll;var hvr=class extends At.BaseAPI{createInsightGroup(t,n){return(0,ce.InsightsScoresBetaApiFp)(this.configuration).createInsightGroup(t,n).then(i=>i(this.axios,this.basePath))}deleteInsightGroup(t,n){return(0,ce.InsightsScoresBetaApiFp)(this.configuration).deleteInsightGroup(t,n).then(i=>i(this.axios,this.basePath))}getInsightGroup(t,n,i){return(0,ce.InsightsScoresBetaApiFp)(this.configuration).getInsightGroup(t,n,i).then(o=>o(this.axios,this.basePath))}getInsightGroups(t,n,i,o,s,a){return(0,ce.InsightsScoresBetaApiFp)(this.configuration).getInsightGroups(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}getInsightsScores(t,n,i,o){return(0,ce.InsightsScoresBetaApiFp)(this.configuration).getInsightsScores(t,n,i,o).then(s=>s(this.axios,this.basePath))}patchInsightGroup(t,n,i){return(0,ce.InsightsScoresBetaApiFp)(this.configuration).patchInsightGroup(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.InsightsScoresBetaApi=hvr;var Cll=function(r){return{createSubscription:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createSubscription","integrationKey",t),(0,B.assertParamExists)("createSubscription","subscriptionPost",n);let o="/api/v2/integrations/{integrationKey}".replace("{integrationKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),deleteSubscription:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteSubscription","integrationKey",t),(0,B.assertParamExists)("deleteSubscription","id",n);let o="/api/v2/integrations/{integrationKey}/{id}".replace("{integrationKey}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"DELETE"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getSubscriptionByID:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getSubscriptionByID","integrationKey",t),(0,B.assertParamExists)("getSubscriptionByID","id",n);let o="/api/v2/integrations/{integrationKey}/{id}".replace("{integrationKey}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getSubscriptions:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getSubscriptions","integrationKey",t);let i="/api/v2/integrations/{integrationKey}".replace("{integrationKey}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),updateSubscription:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("updateSubscription","integrationKey",t),(0,B.assertParamExists)("updateSubscription","id",n),(0,B.assertParamExists)("updateSubscription","patchOperation",i);let s="/api/v2/integrations/{integrationKey}/{id}".replace("{integrationKey}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"PATCH"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}})}};ce.IntegrationAuditLogSubscriptionsApiAxiosParamCreator=Cll;var Ill=function(r){let t=(0,ce.IntegrationAuditLogSubscriptionsApiAxiosParamCreator)(r);return{createSubscription(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.createSubscription(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},deleteSubscription(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.deleteSubscription(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getSubscriptionByID(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getSubscriptionByID(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getSubscriptions(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getSubscriptions(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},updateSubscription(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.updateSubscription(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})}}};ce.IntegrationAuditLogSubscriptionsApiFp=Ill;var vll=function(r,t,n){let i=(0,ce.IntegrationAuditLogSubscriptionsApiFp)(r);return{createSubscription(o,s,a){return i.createSubscription(o,s,a).then(l=>l(n,t))},deleteSubscription(o,s,a){return i.deleteSubscription(o,s,a).then(l=>l(n,t))},getSubscriptionByID(o,s,a){return i.getSubscriptionByID(o,s,a).then(l=>l(n,t))},getSubscriptions(o,s){return i.getSubscriptions(o,s).then(a=>a(n,t))},updateSubscription(o,s,a,l){return i.updateSubscription(o,s,a,l).then(c=>c(n,t))}}};ce.IntegrationAuditLogSubscriptionsApiFactory=vll;var gvr=class extends At.BaseAPI{createSubscription(t,n,i){return(0,ce.IntegrationAuditLogSubscriptionsApiFp)(this.configuration).createSubscription(t,n,i).then(o=>o(this.axios,this.basePath))}deleteSubscription(t,n,i){return(0,ce.IntegrationAuditLogSubscriptionsApiFp)(this.configuration).deleteSubscription(t,n,i).then(o=>o(this.axios,this.basePath))}getSubscriptionByID(t,n,i){return(0,ce.IntegrationAuditLogSubscriptionsApiFp)(this.configuration).getSubscriptionByID(t,n,i).then(o=>o(this.axios,this.basePath))}getSubscriptions(t,n){return(0,ce.IntegrationAuditLogSubscriptionsApiFp)(this.configuration).getSubscriptions(t,n).then(i=>i(this.axios,this.basePath))}updateSubscription(t,n,i,o){return(0,ce.IntegrationAuditLogSubscriptionsApiFp)(this.configuration).updateSubscription(t,n,i,o).then(s=>s(this.axios,this.basePath))}};ce.IntegrationAuditLogSubscriptionsApi=gvr;var Sll=function(r){return{createIntegrationDeliveryConfiguration:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createIntegrationDeliveryConfiguration","projectKey",t),(0,B.assertParamExists)("createIntegrationDeliveryConfiguration","environmentKey",n),(0,B.assertParamExists)("createIntegrationDeliveryConfiguration","integrationKey",i),(0,B.assertParamExists)("createIntegrationDeliveryConfiguration","integrationDeliveryConfigurationPost",o);let a="/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{integrationKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"POST"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),deleteIntegrationDeliveryConfiguration:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteIntegrationDeliveryConfiguration","projectKey",t),(0,B.assertParamExists)("deleteIntegrationDeliveryConfiguration","environmentKey",n),(0,B.assertParamExists)("deleteIntegrationDeliveryConfiguration","integrationKey",i),(0,B.assertParamExists)("deleteIntegrationDeliveryConfiguration","id",o);let a="/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{integrationKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"DELETE"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getIntegrationDeliveryConfigurationByEnvironment:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getIntegrationDeliveryConfigurationByEnvironment","projectKey",t),(0,B.assertParamExists)("getIntegrationDeliveryConfigurationByEnvironment","environmentKey",n);let o="/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getIntegrationDeliveryConfigurationById:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getIntegrationDeliveryConfigurationById","projectKey",t),(0,B.assertParamExists)("getIntegrationDeliveryConfigurationById","environmentKey",n),(0,B.assertParamExists)("getIntegrationDeliveryConfigurationById","integrationKey",i),(0,B.assertParamExists)("getIntegrationDeliveryConfigurationById","id",o);let a="/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{integrationKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getIntegrationDeliveryConfigurations:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/integration-capabilities/featureStore",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),patchIntegrationDeliveryConfiguration:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchIntegrationDeliveryConfiguration","projectKey",t),(0,B.assertParamExists)("patchIntegrationDeliveryConfiguration","environmentKey",n),(0,B.assertParamExists)("patchIntegrationDeliveryConfiguration","integrationKey",i),(0,B.assertParamExists)("patchIntegrationDeliveryConfiguration","id",o),(0,B.assertParamExists)("patchIntegrationDeliveryConfiguration","patchOperation",s);let l="/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{integrationKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"PATCH"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),p["Content-Type"]="application/json",(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),d.data=(0,B.serializeDataIfNeeded)(s,d,r),{url:(0,B.toPathString)(c),options:d}}),validateIntegrationDeliveryConfiguration:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("validateIntegrationDeliveryConfiguration","projectKey",t),(0,B.assertParamExists)("validateIntegrationDeliveryConfiguration","environmentKey",n),(0,B.assertParamExists)("validateIntegrationDeliveryConfiguration","integrationKey",i),(0,B.assertParamExists)("validateIntegrationDeliveryConfiguration","id",o);let a="/api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id}/validate".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{integrationKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"POST"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}})}};ce.IntegrationDeliveryConfigurationsBetaApiAxiosParamCreator=Sll;var _ll=function(r){let t=(0,ce.IntegrationDeliveryConfigurationsBetaApiAxiosParamCreator)(r);return{createIntegrationDeliveryConfiguration(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.createIntegrationDeliveryConfiguration(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},deleteIntegrationDeliveryConfiguration(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.deleteIntegrationDeliveryConfiguration(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getIntegrationDeliveryConfigurationByEnvironment(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getIntegrationDeliveryConfigurationByEnvironment(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getIntegrationDeliveryConfigurationById(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getIntegrationDeliveryConfigurationById(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getIntegrationDeliveryConfigurations(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getIntegrationDeliveryConfigurations(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},patchIntegrationDeliveryConfiguration(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.patchIntegrationDeliveryConfiguration(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},validateIntegrationDeliveryConfiguration(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.validateIntegrationDeliveryConfiguration(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})}}};ce.IntegrationDeliveryConfigurationsBetaApiFp=_ll;var Oll=function(r,t,n){let i=(0,ce.IntegrationDeliveryConfigurationsBetaApiFp)(r);return{createIntegrationDeliveryConfiguration(o,s,a,l,c){return i.createIntegrationDeliveryConfiguration(o,s,a,l,c).then(u=>u(n,t))},deleteIntegrationDeliveryConfiguration(o,s,a,l,c){return i.deleteIntegrationDeliveryConfiguration(o,s,a,l,c).then(u=>u(n,t))},getIntegrationDeliveryConfigurationByEnvironment(o,s,a){return i.getIntegrationDeliveryConfigurationByEnvironment(o,s,a).then(l=>l(n,t))},getIntegrationDeliveryConfigurationById(o,s,a,l,c){return i.getIntegrationDeliveryConfigurationById(o,s,a,l,c).then(u=>u(n,t))},getIntegrationDeliveryConfigurations(o){return i.getIntegrationDeliveryConfigurations(o).then(s=>s(n,t))},patchIntegrationDeliveryConfiguration(o,s,a,l,c,u){return i.patchIntegrationDeliveryConfiguration(o,s,a,l,c,u).then(d=>d(n,t))},validateIntegrationDeliveryConfiguration(o,s,a,l,c){return i.validateIntegrationDeliveryConfiguration(o,s,a,l,c).then(u=>u(n,t))}}};ce.IntegrationDeliveryConfigurationsBetaApiFactory=Oll;var mvr=class extends At.BaseAPI{createIntegrationDeliveryConfiguration(t,n,i,o,s){return(0,ce.IntegrationDeliveryConfigurationsBetaApiFp)(this.configuration).createIntegrationDeliveryConfiguration(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}deleteIntegrationDeliveryConfiguration(t,n,i,o,s){return(0,ce.IntegrationDeliveryConfigurationsBetaApiFp)(this.configuration).deleteIntegrationDeliveryConfiguration(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getIntegrationDeliveryConfigurationByEnvironment(t,n,i){return(0,ce.IntegrationDeliveryConfigurationsBetaApiFp)(this.configuration).getIntegrationDeliveryConfigurationByEnvironment(t,n,i).then(o=>o(this.axios,this.basePath))}getIntegrationDeliveryConfigurationById(t,n,i,o,s){return(0,ce.IntegrationDeliveryConfigurationsBetaApiFp)(this.configuration).getIntegrationDeliveryConfigurationById(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getIntegrationDeliveryConfigurations(t){return(0,ce.IntegrationDeliveryConfigurationsBetaApiFp)(this.configuration).getIntegrationDeliveryConfigurations(t).then(n=>n(this.axios,this.basePath))}patchIntegrationDeliveryConfiguration(t,n,i,o,s,a){return(0,ce.IntegrationDeliveryConfigurationsBetaApiFp)(this.configuration).patchIntegrationDeliveryConfiguration(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}validateIntegrationDeliveryConfiguration(t,n,i,o,s){return(0,ce.IntegrationDeliveryConfigurationsBetaApiFp)(this.configuration).validateIntegrationDeliveryConfiguration(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}};ce.IntegrationDeliveryConfigurationsBetaApi=mvr;var Tll=function(r){return{createBigSegmentStoreIntegration:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createBigSegmentStoreIntegration","projectKey",t),(0,B.assertParamExists)("createBigSegmentStoreIntegration","environmentKey",n),(0,B.assertParamExists)("createBigSegmentStoreIntegration","integrationKey",i),(0,B.assertParamExists)("createBigSegmentStoreIntegration","integrationDeliveryConfigurationPost",o);let a="/api/v2/integration-capabilities/big-segment-store/{projectKey}/{environmentKey}/{integrationKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{integrationKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"POST"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),createFlagImportConfiguration:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createFlagImportConfiguration","projectKey",t),(0,B.assertParamExists)("createFlagImportConfiguration","integrationKey",n),(0,B.assertParamExists)("createFlagImportConfiguration","flagImportConfigurationPost",i);let s="/api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{integrationKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),deleteBigSegmentStoreIntegration:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteBigSegmentStoreIntegration","projectKey",t),(0,B.assertParamExists)("deleteBigSegmentStoreIntegration","environmentKey",n),(0,B.assertParamExists)("deleteBigSegmentStoreIntegration","integrationKey",i),(0,B.assertParamExists)("deleteBigSegmentStoreIntegration","integrationId",o);let a="/api/v2/integration-capabilities/big-segment-store/{projectKey}/{environmentKey}/{integrationKey}/{integrationId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{integrationKey}",encodeURIComponent(String(i))).replace("{integrationId}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"DELETE"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),deleteFlagImportConfiguration:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteFlagImportConfiguration","projectKey",t),(0,B.assertParamExists)("deleteFlagImportConfiguration","integrationKey",n),(0,B.assertParamExists)("deleteFlagImportConfiguration","integrationId",i);let s="/api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey}/{integrationId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{integrationKey}",encodeURIComponent(String(n))).replace("{integrationId}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"DELETE"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getBigSegmentStoreIntegration:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getBigSegmentStoreIntegration","projectKey",t),(0,B.assertParamExists)("getBigSegmentStoreIntegration","environmentKey",n),(0,B.assertParamExists)("getBigSegmentStoreIntegration","integrationKey",i),(0,B.assertParamExists)("getBigSegmentStoreIntegration","integrationId",o);let a="/api/v2/integration-capabilities/big-segment-store/{projectKey}/{environmentKey}/{integrationKey}/{integrationId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{integrationKey}",encodeURIComponent(String(i))).replace("{integrationId}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getBigSegmentStoreIntegrations:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/integration-capabilities/big-segment-store",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),getFlagImportConfiguration:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFlagImportConfiguration","projectKey",t),(0,B.assertParamExists)("getFlagImportConfiguration","integrationKey",n),(0,B.assertParamExists)("getFlagImportConfiguration","integrationId",i);let s="/api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey}/{integrationId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{integrationKey}",encodeURIComponent(String(n))).replace("{integrationId}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getFlagImportConfigurations:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/integration-capabilities/flag-import",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),patchBigSegmentStoreIntegration:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchBigSegmentStoreIntegration","projectKey",t),(0,B.assertParamExists)("patchBigSegmentStoreIntegration","environmentKey",n),(0,B.assertParamExists)("patchBigSegmentStoreIntegration","integrationKey",i),(0,B.assertParamExists)("patchBigSegmentStoreIntegration","integrationId",o),(0,B.assertParamExists)("patchBigSegmentStoreIntegration","patchOperation",s);let l="/api/v2/integration-capabilities/big-segment-store/{projectKey}/{environmentKey}/{integrationKey}/{integrationId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{integrationKey}",encodeURIComponent(String(i))).replace("{integrationId}",encodeURIComponent(String(o))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"PATCH"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),p["Content-Type"]="application/json",(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),d.data=(0,B.serializeDataIfNeeded)(s,d,r),{url:(0,B.toPathString)(c),options:d}}),patchFlagImportConfiguration:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchFlagImportConfiguration","projectKey",t),(0,B.assertParamExists)("patchFlagImportConfiguration","integrationKey",n),(0,B.assertParamExists)("patchFlagImportConfiguration","integrationId",i),(0,B.assertParamExists)("patchFlagImportConfiguration","patchOperation",o);let a="/api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey}/{integrationId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{integrationKey}",encodeURIComponent(String(n))).replace("{integrationId}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),triggerFlagImportJob:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("triggerFlagImportJob","projectKey",t),(0,B.assertParamExists)("triggerFlagImportJob","integrationKey",n),(0,B.assertParamExists)("triggerFlagImportJob","integrationId",i);let s="/api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey}/{integrationId}/trigger".replace("{projectKey}",encodeURIComponent(String(t))).replace("{integrationKey}",encodeURIComponent(String(n))).replace("{integrationId}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}})}};ce.IntegrationsBetaApiAxiosParamCreator=Tll;var wll=function(r){let t=(0,ce.IntegrationsBetaApiAxiosParamCreator)(r);return{createBigSegmentStoreIntegration(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.createBigSegmentStoreIntegration(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},createFlagImportConfiguration(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.createFlagImportConfiguration(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},deleteBigSegmentStoreIntegration(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.deleteBigSegmentStoreIntegration(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},deleteFlagImportConfiguration(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.deleteFlagImportConfiguration(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getBigSegmentStoreIntegration(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getBigSegmentStoreIntegration(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getBigSegmentStoreIntegrations(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getBigSegmentStoreIntegrations(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},getFlagImportConfiguration(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getFlagImportConfiguration(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getFlagImportConfigurations(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getFlagImportConfigurations(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},patchBigSegmentStoreIntegration(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.patchBigSegmentStoreIntegration(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},patchFlagImportConfiguration(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchFlagImportConfiguration(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},triggerFlagImportJob(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.triggerFlagImportJob(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})}}};ce.IntegrationsBetaApiFp=wll;var Rll=function(r,t,n){let i=(0,ce.IntegrationsBetaApiFp)(r);return{createBigSegmentStoreIntegration(o,s,a,l,c){return i.createBigSegmentStoreIntegration(o,s,a,l,c).then(u=>u(n,t))},createFlagImportConfiguration(o,s,a,l){return i.createFlagImportConfiguration(o,s,a,l).then(c=>c(n,t))},deleteBigSegmentStoreIntegration(o,s,a,l,c){return i.deleteBigSegmentStoreIntegration(o,s,a,l,c).then(u=>u(n,t))},deleteFlagImportConfiguration(o,s,a,l){return i.deleteFlagImportConfiguration(o,s,a,l).then(c=>c(n,t))},getBigSegmentStoreIntegration(o,s,a,l,c){return i.getBigSegmentStoreIntegration(o,s,a,l,c).then(u=>u(n,t))},getBigSegmentStoreIntegrations(o){return i.getBigSegmentStoreIntegrations(o).then(s=>s(n,t))},getFlagImportConfiguration(o,s,a,l){return i.getFlagImportConfiguration(o,s,a,l).then(c=>c(n,t))},getFlagImportConfigurations(o){return i.getFlagImportConfigurations(o).then(s=>s(n,t))},patchBigSegmentStoreIntegration(o,s,a,l,c,u){return i.patchBigSegmentStoreIntegration(o,s,a,l,c,u).then(d=>d(n,t))},patchFlagImportConfiguration(o,s,a,l,c){return i.patchFlagImportConfiguration(o,s,a,l,c).then(u=>u(n,t))},triggerFlagImportJob(o,s,a,l){return i.triggerFlagImportJob(o,s,a,l).then(c=>c(n,t))}}};ce.IntegrationsBetaApiFactory=Rll;var yvr=class extends At.BaseAPI{createBigSegmentStoreIntegration(t,n,i,o,s){return(0,ce.IntegrationsBetaApiFp)(this.configuration).createBigSegmentStoreIntegration(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}createFlagImportConfiguration(t,n,i,o){return(0,ce.IntegrationsBetaApiFp)(this.configuration).createFlagImportConfiguration(t,n,i,o).then(s=>s(this.axios,this.basePath))}deleteBigSegmentStoreIntegration(t,n,i,o,s){return(0,ce.IntegrationsBetaApiFp)(this.configuration).deleteBigSegmentStoreIntegration(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}deleteFlagImportConfiguration(t,n,i,o){return(0,ce.IntegrationsBetaApiFp)(this.configuration).deleteFlagImportConfiguration(t,n,i,o).then(s=>s(this.axios,this.basePath))}getBigSegmentStoreIntegration(t,n,i,o,s){return(0,ce.IntegrationsBetaApiFp)(this.configuration).getBigSegmentStoreIntegration(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getBigSegmentStoreIntegrations(t){return(0,ce.IntegrationsBetaApiFp)(this.configuration).getBigSegmentStoreIntegrations(t).then(n=>n(this.axios,this.basePath))}getFlagImportConfiguration(t,n,i,o){return(0,ce.IntegrationsBetaApiFp)(this.configuration).getFlagImportConfiguration(t,n,i,o).then(s=>s(this.axios,this.basePath))}getFlagImportConfigurations(t){return(0,ce.IntegrationsBetaApiFp)(this.configuration).getFlagImportConfigurations(t).then(n=>n(this.axios,this.basePath))}patchBigSegmentStoreIntegration(t,n,i,o,s,a){return(0,ce.IntegrationsBetaApiFp)(this.configuration).patchBigSegmentStoreIntegration(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}patchFlagImportConfiguration(t,n,i,o,s){return(0,ce.IntegrationsBetaApiFp)(this.configuration).patchFlagImportConfiguration(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}triggerFlagImportJob(t,n,i,o){return(0,ce.IntegrationsBetaApiFp)(this.configuration).triggerFlagImportJob(t,n,i,o).then(s=>s(this.axios,this.basePath))}};ce.IntegrationsBetaApi=yvr;var Bll=function(r){return{createLayer:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createLayer","projectKey",t),(0,B.assertParamExists)("createLayer","layerPost",n);let o="/api/v2/projects/{projectKey}/layers".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),getLayers:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getLayers","projectKey",t);let o="/api/v2/projects/{projectKey}/layers".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.filter=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),updateLayer:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("updateLayer","projectKey",t),(0,B.assertParamExists)("updateLayer","layerKey",n),(0,B.assertParamExists)("updateLayer","layerPatchInput",i);let s="/api/v2/projects/{projectKey}/layers/{layerKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{layerKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"PATCH"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}})}};ce.LayersBetaApiAxiosParamCreator=Bll;var xll=function(r){let t=(0,ce.LayersBetaApiAxiosParamCreator)(r);return{createLayer(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.createLayer(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getLayers(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getLayers(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},updateLayer(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.updateLayer(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})}}};ce.LayersBetaApiFp=xll;var Mll=function(r,t,n){let i=(0,ce.LayersBetaApiFp)(r);return{createLayer(o,s,a){return i.createLayer(o,s,a).then(l=>l(n,t))},getLayers(o,s,a){return i.getLayers(o,s,a).then(l=>l(n,t))},updateLayer(o,s,a,l){return i.updateLayer(o,s,a,l).then(c=>c(n,t))}}};ce.LayersBetaApiFactory=Mll;var Evr=class extends At.BaseAPI{createLayer(t,n,i){return(0,ce.LayersBetaApiFp)(this.configuration).createLayer(t,n,i).then(o=>o(this.axios,this.basePath))}getLayers(t,n,i){return(0,ce.LayersBetaApiFp)(this.configuration).getLayers(t,n,i).then(o=>o(this.axios,this.basePath))}updateLayer(t,n,i,o){return(0,ce.LayersBetaApiFp)(this.configuration).updateLayer(t,n,i,o).then(s=>s(this.axios,this.basePath))}};ce.LayersBetaApi=Evr;var Dll=function(r){return{deleteMetric:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteMetric","projectKey",t),(0,B.assertParamExists)("deleteMetric","metricKey",n);let o="/api/v2/metrics/{projectKey}/{metricKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{metricKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"DELETE"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getMetric:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getMetric","projectKey",t),(0,B.assertParamExists)("getMetric","metricKey",n);let a="/api/v2/metrics/{projectKey}/{metricKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{metricKey}",encodeURIComponent(String(n))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),i!==void 0&&(p.expand=i),o!==void 0&&(p.versionId=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getMetrics:(t,n,i,o,s,a,l={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getMetrics","projectKey",t);let c="/api/v2/metrics/{projectKey}".replace("{projectKey}",encodeURIComponent(String(t))),u=new URL(c,B.DUMMY_BASE_URL),d;r&&(d=r.baseOptions);let p=Object.assign(Object.assign({method:"GET"},d),l),f={},A={};yield(0,B.setApiKeyToObject)(f,"Authorization",r),n!==void 0&&(A.expand=n),i!==void 0&&(A.limit=i),o!==void 0&&(A.offset=o),s!==void 0&&(A.sort=s),a!==void 0&&(A.filter=a),(0,B.setSearchParams)(u,A);let h=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),l.headers),{url:(0,B.toPathString)(u),options:p}}),patchMetric:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchMetric","projectKey",t),(0,B.assertParamExists)("patchMetric","metricKey",n),(0,B.assertParamExists)("patchMetric","patchOperation",i);let s="/api/v2/metrics/{projectKey}/{metricKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{metricKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"PATCH"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),postMetric:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postMetric","projectKey",t),(0,B.assertParamExists)("postMetric","metricPost",n);let o="/api/v2/metrics/{projectKey}".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}})}};ce.MetricsApiAxiosParamCreator=Dll;var Nll=function(r){let t=(0,ce.MetricsApiAxiosParamCreator)(r);return{deleteMetric(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.deleteMetric(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getMetric(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getMetric(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getMetrics(n,i,o,s,a,l,c){return Pe(this,void 0,void 0,function*(){let u=yield t.getMetrics(n,i,o,s,a,l,c);return(0,B.createRequestFunction)(u,It.default,At.BASE_PATH,r)})},patchMetric(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.patchMetric(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},postMetric(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.postMetric(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.MetricsApiFp=Nll;var Pll=function(r,t,n){let i=(0,ce.MetricsApiFp)(r);return{deleteMetric(o,s,a){return i.deleteMetric(o,s,a).then(l=>l(n,t))},getMetric(o,s,a,l,c){return i.getMetric(o,s,a,l,c).then(u=>u(n,t))},getMetrics(o,s,a,l,c,u,d){return i.getMetrics(o,s,a,l,c,u,d).then(p=>p(n,t))},patchMetric(o,s,a,l){return i.patchMetric(o,s,a,l).then(c=>c(n,t))},postMetric(o,s,a){return i.postMetric(o,s,a).then(l=>l(n,t))}}};ce.MetricsApiFactory=Pll;var bvr=class extends At.BaseAPI{deleteMetric(t,n,i){return(0,ce.MetricsApiFp)(this.configuration).deleteMetric(t,n,i).then(o=>o(this.axios,this.basePath))}getMetric(t,n,i,o,s){return(0,ce.MetricsApiFp)(this.configuration).getMetric(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getMetrics(t,n,i,o,s,a,l){return(0,ce.MetricsApiFp)(this.configuration).getMetrics(t,n,i,o,s,a,l).then(c=>c(this.axios,this.basePath))}patchMetric(t,n,i,o){return(0,ce.MetricsApiFp)(this.configuration).patchMetric(t,n,i,o).then(s=>s(this.axios,this.basePath))}postMetric(t,n,i){return(0,ce.MetricsApiFp)(this.configuration).postMetric(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.MetricsApi=bvr;var kll=function(r){return{createMetricGroup:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createMetricGroup","projectKey",t),(0,B.assertParamExists)("createMetricGroup","metricGroupPost",n);let o="/api/v2/projects/{projectKey}/metric-groups".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),deleteMetricGroup:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteMetricGroup","projectKey",t),(0,B.assertParamExists)("deleteMetricGroup","metricGroupKey",n);let o="/api/v2/projects/{projectKey}/metric-groups/{metricGroupKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{metricGroupKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"DELETE"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getMetricGroup:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getMetricGroup","projectKey",t),(0,B.assertParamExists)("getMetricGroup","metricGroupKey",n);let s="/api/v2/projects/{projectKey}/metric-groups/{metricGroupKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{metricGroupKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),i!==void 0&&(d.expand=i),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getMetricGroups:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getMetricGroups","projectKey",t);let l="/api/v2/projects/{projectKey}/metric-groups".replace("{projectKey}",encodeURIComponent(String(t))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"GET"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),n!==void 0&&(f.filter=n),i!==void 0&&(f.expand=i),o!==void 0&&(f.limit=o),s!==void 0&&(f.offset=s),(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),{url:(0,B.toPathString)(c),options:d}}),patchMetricGroup:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchMetricGroup","projectKey",t),(0,B.assertParamExists)("patchMetricGroup","metricGroupKey",n),(0,B.assertParamExists)("patchMetricGroup","patchOperation",i);let s="/api/v2/projects/{projectKey}/metric-groups/{metricGroupKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{metricGroupKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"PATCH"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}})}};ce.MetricsBetaApiAxiosParamCreator=kll;var Qll=function(r){let t=(0,ce.MetricsBetaApiAxiosParamCreator)(r);return{createMetricGroup(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.createMetricGroup(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},deleteMetricGroup(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.deleteMetricGroup(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getMetricGroup(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getMetricGroup(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getMetricGroups(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.getMetricGroups(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},patchMetricGroup(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.patchMetricGroup(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})}}};ce.MetricsBetaApiFp=Qll;var Lll=function(r,t,n){let i=(0,ce.MetricsBetaApiFp)(r);return{createMetricGroup(o,s,a){return i.createMetricGroup(o,s,a).then(l=>l(n,t))},deleteMetricGroup(o,s,a){return i.deleteMetricGroup(o,s,a).then(l=>l(n,t))},getMetricGroup(o,s,a,l){return i.getMetricGroup(o,s,a,l).then(c=>c(n,t))},getMetricGroups(o,s,a,l,c,u){return i.getMetricGroups(o,s,a,l,c,u).then(d=>d(n,t))},patchMetricGroup(o,s,a,l){return i.patchMetricGroup(o,s,a,l).then(c=>c(n,t))}}};ce.MetricsBetaApiFactory=Lll;var Cvr=class extends At.BaseAPI{createMetricGroup(t,n,i){return(0,ce.MetricsBetaApiFp)(this.configuration).createMetricGroup(t,n,i).then(o=>o(this.axios,this.basePath))}deleteMetricGroup(t,n,i){return(0,ce.MetricsBetaApiFp)(this.configuration).deleteMetricGroup(t,n,i).then(o=>o(this.axios,this.basePath))}getMetricGroup(t,n,i,o){return(0,ce.MetricsBetaApiFp)(this.configuration).getMetricGroup(t,n,i,o).then(s=>s(this.axios,this.basePath))}getMetricGroups(t,n,i,o,s,a){return(0,ce.MetricsBetaApiFp)(this.configuration).getMetricGroups(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}patchMetricGroup(t,n,i,o){return(0,ce.MetricsBetaApiFp)(this.configuration).patchMetricGroup(t,n,i,o).then(s=>s(this.axios,this.basePath))}};ce.MetricsBetaApi=Cvr;var Fll=function(r){return{createOAuth2Client:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createOAuth2Client","oauthClientPost",t);let i="/api/v2/oauth/clients",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}}),deleteOAuthClient:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteOAuthClient","clientId",t);let i="/api/v2/oauth/clients/{clientId}".replace("{clientId}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getOAuthClientById:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getOAuthClientById","clientId",t);let i="/api/v2/oauth/clients/{clientId}".replace("{clientId}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getOAuthClients:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/oauth/clients",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),patchOAuthClient:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchOAuthClient","clientId",t),(0,B.assertParamExists)("patchOAuthClient","patchOperation",n);let o="/api/v2/oauth/clients/{clientId}".replace("{clientId}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}})}};ce.OAuth2ClientsApiAxiosParamCreator=Fll;var zll=function(r){let t=(0,ce.OAuth2ClientsApiAxiosParamCreator)(r);return{createOAuth2Client(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.createOAuth2Client(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},deleteOAuthClient(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteOAuthClient(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getOAuthClientById(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getOAuthClientById(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getOAuthClients(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getOAuthClients(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},patchOAuthClient(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchOAuthClient(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.OAuth2ClientsApiFp=zll;var qll=function(r,t,n){let i=(0,ce.OAuth2ClientsApiFp)(r);return{createOAuth2Client(o,s){return i.createOAuth2Client(o,s).then(a=>a(n,t))},deleteOAuthClient(o,s){return i.deleteOAuthClient(o,s).then(a=>a(n,t))},getOAuthClientById(o,s){return i.getOAuthClientById(o,s).then(a=>a(n,t))},getOAuthClients(o){return i.getOAuthClients(o).then(s=>s(n,t))},patchOAuthClient(o,s,a){return i.patchOAuthClient(o,s,a).then(l=>l(n,t))}}};ce.OAuth2ClientsApiFactory=qll;var Ivr=class extends At.BaseAPI{createOAuth2Client(t,n){return(0,ce.OAuth2ClientsApiFp)(this.configuration).createOAuth2Client(t,n).then(i=>i(this.axios,this.basePath))}deleteOAuthClient(t,n){return(0,ce.OAuth2ClientsApiFp)(this.configuration).deleteOAuthClient(t,n).then(i=>i(this.axios,this.basePath))}getOAuthClientById(t,n){return(0,ce.OAuth2ClientsApiFp)(this.configuration).getOAuthClientById(t,n).then(i=>i(this.axios,this.basePath))}getOAuthClients(t){return(0,ce.OAuth2ClientsApiFp)(this.configuration).getOAuthClients(t).then(n=>n(this.axios,this.basePath))}patchOAuthClient(t,n,i){return(0,ce.OAuth2ClientsApiFp)(this.configuration).patchOAuthClient(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.OAuth2ClientsApi=Ivr;var Ull=function(r){return{getCallerIdentity:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/caller-identity",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),getIps:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/public-ip-list",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),getOpenapiSpec:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/openapi.json",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),getRoot:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),getVersions:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/versions",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}})}};ce.OtherApiAxiosParamCreator=Ull;var jll=function(r){let t=(0,ce.OtherApiAxiosParamCreator)(r);return{getCallerIdentity(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getCallerIdentity(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},getIps(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getIps(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},getOpenapiSpec(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getOpenapiSpec(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},getRoot(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getRoot(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},getVersions(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getVersions(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})}}};ce.OtherApiFp=jll;var Gll=function(r,t,n){let i=(0,ce.OtherApiFp)(r);return{getCallerIdentity(o){return i.getCallerIdentity(o).then(s=>s(n,t))},getIps(o){return i.getIps(o).then(s=>s(n,t))},getOpenapiSpec(o){return i.getOpenapiSpec(o).then(s=>s(n,t))},getRoot(o){return i.getRoot(o).then(s=>s(n,t))},getVersions(o){return i.getVersions(o).then(s=>s(n,t))}}};ce.OtherApiFactory=Gll;var vvr=class extends At.BaseAPI{getCallerIdentity(t){return(0,ce.OtherApiFp)(this.configuration).getCallerIdentity(t).then(n=>n(this.axios,this.basePath))}getIps(t){return(0,ce.OtherApiFp)(this.configuration).getIps(t).then(n=>n(this.axios,this.basePath))}getOpenapiSpec(t){return(0,ce.OtherApiFp)(this.configuration).getOpenapiSpec(t).then(n=>n(this.axios,this.basePath))}getRoot(t){return(0,ce.OtherApiFp)(this.configuration).getRoot(t).then(n=>n(this.axios,this.basePath))}getVersions(t){return(0,ce.OtherApiFp)(this.configuration).getVersions(t).then(n=>n(this.axios,this.basePath))}};ce.OtherApi=vvr;var Wll=function(r){return{deleteProject:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteProject","projectKey",t);let i="/api/v2/projects/{projectKey}".replace("{projectKey}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getFlagDefaultsByProject:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFlagDefaultsByProject","projectKey",t);let i="/api/v2/projects/{projectKey}/flag-defaults".replace("{projectKey}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getProject:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getProject","projectKey",t);let o="/api/v2/projects/{projectKey}".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.expand=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getProjects:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){let l="/api/v2/projects",c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"GET"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),t!==void 0&&(f.limit=t),n!==void 0&&(f.offset=n),i!==void 0&&(f.filter=i),o!==void 0&&(f.sort=o),s!==void 0&&(f.expand=s),(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),{url:(0,B.toPathString)(c),options:d}}),patchFlagDefaultsByProject:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchFlagDefaultsByProject","projectKey",t),(0,B.assertParamExists)("patchFlagDefaultsByProject","patchOperation",n);let o="/api/v2/projects/{projectKey}/flag-defaults".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),patchProject:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchProject","projectKey",t),(0,B.assertParamExists)("patchProject","patchOperation",n);let o="/api/v2/projects/{projectKey}".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),postProject:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postProject","projectPost",t);let i="/api/v2/projects",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}}),putFlagDefaultsByProject:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("putFlagDefaultsByProject","projectKey",t),(0,B.assertParamExists)("putFlagDefaultsByProject","upsertFlagDefaultsPayload",n);let o="/api/v2/projects/{projectKey}/flag-defaults".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PUT"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}})}};ce.ProjectsApiAxiosParamCreator=Wll;var Hll=function(r){let t=(0,ce.ProjectsApiAxiosParamCreator)(r);return{deleteProject(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteProject(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getFlagDefaultsByProject(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getFlagDefaultsByProject(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getProject(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getProject(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getProjects(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.getProjects(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},patchFlagDefaultsByProject(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchFlagDefaultsByProject(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},patchProject(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchProject(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postProject(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.postProject(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},putFlagDefaultsByProject(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.putFlagDefaultsByProject(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.ProjectsApiFp=Hll;var Vll=function(r,t,n){let i=(0,ce.ProjectsApiFp)(r);return{deleteProject(o,s){return i.deleteProject(o,s).then(a=>a(n,t))},getFlagDefaultsByProject(o,s){return i.getFlagDefaultsByProject(o,s).then(a=>a(n,t))},getProject(o,s,a){return i.getProject(o,s,a).then(l=>l(n,t))},getProjects(o,s,a,l,c,u){return i.getProjects(o,s,a,l,c,u).then(d=>d(n,t))},patchFlagDefaultsByProject(o,s,a){return i.patchFlagDefaultsByProject(o,s,a).then(l=>l(n,t))},patchProject(o,s,a){return i.patchProject(o,s,a).then(l=>l(n,t))},postProject(o,s){return i.postProject(o,s).then(a=>a(n,t))},putFlagDefaultsByProject(o,s,a){return i.putFlagDefaultsByProject(o,s,a).then(l=>l(n,t))}}};ce.ProjectsApiFactory=Vll;var Svr=class extends At.BaseAPI{deleteProject(t,n){return(0,ce.ProjectsApiFp)(this.configuration).deleteProject(t,n).then(i=>i(this.axios,this.basePath))}getFlagDefaultsByProject(t,n){return(0,ce.ProjectsApiFp)(this.configuration).getFlagDefaultsByProject(t,n).then(i=>i(this.axios,this.basePath))}getProject(t,n,i){return(0,ce.ProjectsApiFp)(this.configuration).getProject(t,n,i).then(o=>o(this.axios,this.basePath))}getProjects(t,n,i,o,s,a){return(0,ce.ProjectsApiFp)(this.configuration).getProjects(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}patchFlagDefaultsByProject(t,n,i){return(0,ce.ProjectsApiFp)(this.configuration).patchFlagDefaultsByProject(t,n,i).then(o=>o(this.axios,this.basePath))}patchProject(t,n,i){return(0,ce.ProjectsApiFp)(this.configuration).patchProject(t,n,i).then(o=>o(this.axios,this.basePath))}postProject(t,n){return(0,ce.ProjectsApiFp)(this.configuration).postProject(t,n).then(i=>i(this.axios,this.basePath))}putFlagDefaultsByProject(t,n,i){return(0,ce.ProjectsApiFp)(this.configuration).putFlagDefaultsByProject(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.ProjectsApi=Svr;var Yll=function(r){return{deleteRelayAutoConfig:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteRelayAutoConfig","id",t);let i="/api/v2/account/relay-auto-configs/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getRelayProxyConfig:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getRelayProxyConfig","id",t);let i="/api/v2/account/relay-auto-configs/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getRelayProxyConfigs:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/account/relay-auto-configs",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),patchRelayAutoConfig:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchRelayAutoConfig","id",t),(0,B.assertParamExists)("patchRelayAutoConfig","patchWithComment",n);let o="/api/v2/account/relay-auto-configs/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),postRelayAutoConfig:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postRelayAutoConfig","relayAutoConfigPost",t);let i="/api/v2/account/relay-auto-configs",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}}),resetRelayAutoConfig:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("resetRelayAutoConfig","id",t);let o="/api/v2/account/relay-auto-configs/{id}/reset".replace("{id}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.expiry=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}})}};ce.RelayProxyConfigurationsApiAxiosParamCreator=Yll;var Kll=function(r){let t=(0,ce.RelayProxyConfigurationsApiAxiosParamCreator)(r);return{deleteRelayAutoConfig(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteRelayAutoConfig(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getRelayProxyConfig(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getRelayProxyConfig(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getRelayProxyConfigs(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getRelayProxyConfigs(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},patchRelayAutoConfig(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchRelayAutoConfig(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postRelayAutoConfig(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.postRelayAutoConfig(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},resetRelayAutoConfig(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.resetRelayAutoConfig(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.RelayProxyConfigurationsApiFp=Kll;var Jll=function(r,t,n){let i=(0,ce.RelayProxyConfigurationsApiFp)(r);return{deleteRelayAutoConfig(o,s){return i.deleteRelayAutoConfig(o,s).then(a=>a(n,t))},getRelayProxyConfig(o,s){return i.getRelayProxyConfig(o,s).then(a=>a(n,t))},getRelayProxyConfigs(o){return i.getRelayProxyConfigs(o).then(s=>s(n,t))},patchRelayAutoConfig(o,s,a){return i.patchRelayAutoConfig(o,s,a).then(l=>l(n,t))},postRelayAutoConfig(o,s){return i.postRelayAutoConfig(o,s).then(a=>a(n,t))},resetRelayAutoConfig(o,s,a){return i.resetRelayAutoConfig(o,s,a).then(l=>l(n,t))}}};ce.RelayProxyConfigurationsApiFactory=Jll;var _vr=class extends At.BaseAPI{deleteRelayAutoConfig(t,n){return(0,ce.RelayProxyConfigurationsApiFp)(this.configuration).deleteRelayAutoConfig(t,n).then(i=>i(this.axios,this.basePath))}getRelayProxyConfig(t,n){return(0,ce.RelayProxyConfigurationsApiFp)(this.configuration).getRelayProxyConfig(t,n).then(i=>i(this.axios,this.basePath))}getRelayProxyConfigs(t){return(0,ce.RelayProxyConfigurationsApiFp)(this.configuration).getRelayProxyConfigs(t).then(n=>n(this.axios,this.basePath))}patchRelayAutoConfig(t,n,i){return(0,ce.RelayProxyConfigurationsApiFp)(this.configuration).patchRelayAutoConfig(t,n,i).then(o=>o(this.axios,this.basePath))}postRelayAutoConfig(t,n){return(0,ce.RelayProxyConfigurationsApiFp)(this.configuration).postRelayAutoConfig(t,n).then(i=>i(this.axios,this.basePath))}resetRelayAutoConfig(t,n,i){return(0,ce.RelayProxyConfigurationsApiFp)(this.configuration).resetRelayAutoConfig(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.RelayProxyConfigurationsApi=_vr;var Xll=function(r){return{deleteReleasePipeline:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteReleasePipeline","projectKey",t),(0,B.assertParamExists)("deleteReleasePipeline","pipelineKey",n);let o="/api/v2/projects/{projectKey}/release-pipelines/{pipelineKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{pipelineKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"DELETE"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getAllReleasePipelines:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getAllReleasePipelines","projectKey",t);let a="/api/v2/projects/{projectKey}/release-pipelines".replace("{projectKey}",encodeURIComponent(String(t))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),n!==void 0&&(p.filter=n),i!==void 0&&(p.limit=i),o!==void 0&&(p.offset=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getAllReleaseProgressionsForReleasePipeline:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getAllReleaseProgressionsForReleasePipeline","projectKey",t),(0,B.assertParamExists)("getAllReleaseProgressionsForReleasePipeline","pipelineKey",n);let l="/api/v2/projects/{projectKey}/release-pipelines/{pipelineKey}/releases".replace("{projectKey}",encodeURIComponent(String(t))).replace("{pipelineKey}",encodeURIComponent(String(n))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"GET"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),i!==void 0&&(f.filter=i),o!==void 0&&(f.limit=o),s!==void 0&&(f.offset=s),(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),{url:(0,B.toPathString)(c),options:d}}),getReleasePipelineByKey:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getReleasePipelineByKey","projectKey",t),(0,B.assertParamExists)("getReleasePipelineByKey","pipelineKey",n);let o="/api/v2/projects/{projectKey}/release-pipelines/{pipelineKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{pipelineKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),patchReleasePipeline:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchReleasePipeline","projectKey",t),(0,B.assertParamExists)("patchReleasePipeline","pipelineKey",n);let o="/api/v2/projects/{projectKey}/release-pipelines/{pipelineKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{pipelineKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),postReleasePipeline:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postReleasePipeline","projectKey",t),(0,B.assertParamExists)("postReleasePipeline","createReleasePipelineInput",n);let o="/api/v2/projects/{projectKey}/release-pipelines".replace("{projectKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}})}};ce.ReleasePipelinesBetaApiAxiosParamCreator=Xll;var $ll=function(r){let t=(0,ce.ReleasePipelinesBetaApiAxiosParamCreator)(r);return{deleteReleasePipeline(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.deleteReleasePipeline(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getAllReleasePipelines(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getAllReleasePipelines(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getAllReleaseProgressionsForReleasePipeline(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.getAllReleaseProgressionsForReleasePipeline(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},getReleasePipelineByKey(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getReleasePipelineByKey(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},patchReleasePipeline(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchReleasePipeline(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postReleasePipeline(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.postReleasePipeline(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.ReleasePipelinesBetaApiFp=$ll;var Zll=function(r,t,n){let i=(0,ce.ReleasePipelinesBetaApiFp)(r);return{deleteReleasePipeline(o,s,a){return i.deleteReleasePipeline(o,s,a).then(l=>l(n,t))},getAllReleasePipelines(o,s,a,l,c){return i.getAllReleasePipelines(o,s,a,l,c).then(u=>u(n,t))},getAllReleaseProgressionsForReleasePipeline(o,s,a,l,c,u){return i.getAllReleaseProgressionsForReleasePipeline(o,s,a,l,c,u).then(d=>d(n,t))},getReleasePipelineByKey(o,s,a){return i.getReleasePipelineByKey(o,s,a).then(l=>l(n,t))},patchReleasePipeline(o,s,a){return i.patchReleasePipeline(o,s,a).then(l=>l(n,t))},postReleasePipeline(o,s,a){return i.postReleasePipeline(o,s,a).then(l=>l(n,t))}}};ce.ReleasePipelinesBetaApiFactory=Zll;var Ovr=class extends At.BaseAPI{deleteReleasePipeline(t,n,i){return(0,ce.ReleasePipelinesBetaApiFp)(this.configuration).deleteReleasePipeline(t,n,i).then(o=>o(this.axios,this.basePath))}getAllReleasePipelines(t,n,i,o,s){return(0,ce.ReleasePipelinesBetaApiFp)(this.configuration).getAllReleasePipelines(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getAllReleaseProgressionsForReleasePipeline(t,n,i,o,s,a){return(0,ce.ReleasePipelinesBetaApiFp)(this.configuration).getAllReleaseProgressionsForReleasePipeline(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}getReleasePipelineByKey(t,n,i){return(0,ce.ReleasePipelinesBetaApiFp)(this.configuration).getReleasePipelineByKey(t,n,i).then(o=>o(this.axios,this.basePath))}patchReleasePipeline(t,n,i){return(0,ce.ReleasePipelinesBetaApiFp)(this.configuration).patchReleasePipeline(t,n,i).then(o=>o(this.axios,this.basePath))}postReleasePipeline(t,n,i){return(0,ce.ReleasePipelinesBetaApiFp)(this.configuration).postReleasePipeline(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.ReleasePipelinesBetaApi=Ovr;var eul=function(r){return{createReleaseForFlag:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createReleaseForFlag","projectKey",t),(0,B.assertParamExists)("createReleaseForFlag","flagKey",n),(0,B.assertParamExists)("createReleaseForFlag","createReleaseInput",i);let s="/api/v2/projects/{projectKey}/flags/{flagKey}/release".replace("{projectKey}",encodeURIComponent(String(t))).replace("{flagKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"PUT"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),deleteReleaseByFlagKey:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteReleaseByFlagKey","projectKey",t),(0,B.assertParamExists)("deleteReleaseByFlagKey","flagKey",n);let o="/api/v2/flags/{projectKey}/{flagKey}/release".replace("{projectKey}",encodeURIComponent(String(t))).replace("{flagKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"DELETE"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getReleaseByFlagKey:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getReleaseByFlagKey","projectKey",t),(0,B.assertParamExists)("getReleaseByFlagKey","flagKey",n);let o="/api/v2/flags/{projectKey}/{flagKey}/release".replace("{projectKey}",encodeURIComponent(String(t))).replace("{flagKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),patchReleaseByFlagKey:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchReleaseByFlagKey","projectKey",t),(0,B.assertParamExists)("patchReleaseByFlagKey","flagKey",n),(0,B.assertParamExists)("patchReleaseByFlagKey","patchOperation",i);let s="/api/v2/flags/{projectKey}/{flagKey}/release".replace("{projectKey}",encodeURIComponent(String(t))).replace("{flagKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"PATCH"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),updatePhaseStatus:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("updatePhaseStatus","projectKey",t),(0,B.assertParamExists)("updatePhaseStatus","flagKey",n),(0,B.assertParamExists)("updatePhaseStatus","phaseId",i),(0,B.assertParamExists)("updatePhaseStatus","updatePhaseStatusInput",o);let a="/api/v2/projects/{projectKey}/flags/{flagKey}/release/phases/{phaseId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{flagKey}",encodeURIComponent(String(n))).replace("{phaseId}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PUT"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}})}};ce.ReleasesBetaApiAxiosParamCreator=eul;var tul=function(r){let t=(0,ce.ReleasesBetaApiAxiosParamCreator)(r);return{createReleaseForFlag(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.createReleaseForFlag(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},deleteReleaseByFlagKey(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.deleteReleaseByFlagKey(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getReleaseByFlagKey(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getReleaseByFlagKey(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},patchReleaseByFlagKey(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.patchReleaseByFlagKey(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},updatePhaseStatus(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.updatePhaseStatus(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})}}};ce.ReleasesBetaApiFp=tul;var rul=function(r,t,n){let i=(0,ce.ReleasesBetaApiFp)(r);return{createReleaseForFlag(o,s,a,l){return i.createReleaseForFlag(o,s,a,l).then(c=>c(n,t))},deleteReleaseByFlagKey(o,s,a){return i.deleteReleaseByFlagKey(o,s,a).then(l=>l(n,t))},getReleaseByFlagKey(o,s,a){return i.getReleaseByFlagKey(o,s,a).then(l=>l(n,t))},patchReleaseByFlagKey(o,s,a,l){return i.patchReleaseByFlagKey(o,s,a,l).then(c=>c(n,t))},updatePhaseStatus(o,s,a,l,c){return i.updatePhaseStatus(o,s,a,l,c).then(u=>u(n,t))}}};ce.ReleasesBetaApiFactory=rul;var Tvr=class extends At.BaseAPI{createReleaseForFlag(t,n,i,o){return(0,ce.ReleasesBetaApiFp)(this.configuration).createReleaseForFlag(t,n,i,o).then(s=>s(this.axios,this.basePath))}deleteReleaseByFlagKey(t,n,i){return(0,ce.ReleasesBetaApiFp)(this.configuration).deleteReleaseByFlagKey(t,n,i).then(o=>o(this.axios,this.basePath))}getReleaseByFlagKey(t,n,i){return(0,ce.ReleasesBetaApiFp)(this.configuration).getReleaseByFlagKey(t,n,i).then(o=>o(this.axios,this.basePath))}patchReleaseByFlagKey(t,n,i,o){return(0,ce.ReleasesBetaApiFp)(this.configuration).patchReleaseByFlagKey(t,n,i,o).then(s=>s(this.axios,this.basePath))}updatePhaseStatus(t,n,i,o,s){return(0,ce.ReleasesBetaApiFp)(this.configuration).updatePhaseStatus(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}};ce.ReleasesBetaApi=Tvr;var nul=function(r){return{deleteFlagConfigScheduledChanges:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteFlagConfigScheduledChanges","projectKey",t),(0,B.assertParamExists)("deleteFlagConfigScheduledChanges","featureFlagKey",n),(0,B.assertParamExists)("deleteFlagConfigScheduledChanges","environmentKey",i),(0,B.assertParamExists)("deleteFlagConfigScheduledChanges","id",o);let a="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"DELETE"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getFeatureFlagScheduledChange:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFeatureFlagScheduledChange","projectKey",t),(0,B.assertParamExists)("getFeatureFlagScheduledChange","featureFlagKey",n),(0,B.assertParamExists)("getFeatureFlagScheduledChange","environmentKey",i),(0,B.assertParamExists)("getFeatureFlagScheduledChange","id",o);let a="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getFlagConfigScheduledChanges:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getFlagConfigScheduledChanges","projectKey",t),(0,B.assertParamExists)("getFlagConfigScheduledChanges","featureFlagKey",n),(0,B.assertParamExists)("getFlagConfigScheduledChanges","environmentKey",i);let s="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),patchFlagConfigScheduledChange:(t,n,i,o,s,a,l={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchFlagConfigScheduledChange","projectKey",t),(0,B.assertParamExists)("patchFlagConfigScheduledChange","featureFlagKey",n),(0,B.assertParamExists)("patchFlagConfigScheduledChange","environmentKey",i),(0,B.assertParamExists)("patchFlagConfigScheduledChange","id",o),(0,B.assertParamExists)("patchFlagConfigScheduledChange","flagScheduledChangesInput",s);let c="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{id}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{id}",encodeURIComponent(String(o))),u=new URL(c,B.DUMMY_BASE_URL),d;r&&(d=r.baseOptions);let p=Object.assign(Object.assign({method:"PATCH"},d),l),f={},A={};yield(0,B.setApiKeyToObject)(f,"Authorization",r),a!==void 0&&(A.ignoreConflicts=a),f["Content-Type"]="application/json",(0,B.setSearchParams)(u,A);let h=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),l.headers),p.data=(0,B.serializeDataIfNeeded)(s,p,r),{url:(0,B.toPathString)(u),options:p}}),postFlagConfigScheduledChanges:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postFlagConfigScheduledChanges","projectKey",t),(0,B.assertParamExists)("postFlagConfigScheduledChanges","featureFlagKey",n),(0,B.assertParamExists)("postFlagConfigScheduledChanges","environmentKey",i),(0,B.assertParamExists)("postFlagConfigScheduledChanges","postFlagScheduledChangesInput",o);let l="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"POST"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),s!==void 0&&(f.ignoreConflicts=s),p["Content-Type"]="application/json",(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),d.data=(0,B.serializeDataIfNeeded)(o,d,r),{url:(0,B.toPathString)(c),options:d}})}};ce.ScheduledChangesApiAxiosParamCreator=nul;var iul=function(r){let t=(0,ce.ScheduledChangesApiAxiosParamCreator)(r);return{deleteFlagConfigScheduledChanges(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.deleteFlagConfigScheduledChanges(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getFeatureFlagScheduledChange(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getFeatureFlagScheduledChange(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getFlagConfigScheduledChanges(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getFlagConfigScheduledChanges(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},patchFlagConfigScheduledChange(n,i,o,s,a,l,c){return Pe(this,void 0,void 0,function*(){let u=yield t.patchFlagConfigScheduledChange(n,i,o,s,a,l,c);return(0,B.createRequestFunction)(u,It.default,At.BASE_PATH,r)})},postFlagConfigScheduledChanges(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.postFlagConfigScheduledChanges(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})}}};ce.ScheduledChangesApiFp=iul;var oul=function(r,t,n){let i=(0,ce.ScheduledChangesApiFp)(r);return{deleteFlagConfigScheduledChanges(o,s,a,l,c){return i.deleteFlagConfigScheduledChanges(o,s,a,l,c).then(u=>u(n,t))},getFeatureFlagScheduledChange(o,s,a,l,c){return i.getFeatureFlagScheduledChange(o,s,a,l,c).then(u=>u(n,t))},getFlagConfigScheduledChanges(o,s,a,l){return i.getFlagConfigScheduledChanges(o,s,a,l).then(c=>c(n,t))},patchFlagConfigScheduledChange(o,s,a,l,c,u,d){return i.patchFlagConfigScheduledChange(o,s,a,l,c,u,d).then(p=>p(n,t))},postFlagConfigScheduledChanges(o,s,a,l,c,u){return i.postFlagConfigScheduledChanges(o,s,a,l,c,u).then(d=>d(n,t))}}};ce.ScheduledChangesApiFactory=oul;var wvr=class extends At.BaseAPI{deleteFlagConfigScheduledChanges(t,n,i,o,s){return(0,ce.ScheduledChangesApiFp)(this.configuration).deleteFlagConfigScheduledChanges(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getFeatureFlagScheduledChange(t,n,i,o,s){return(0,ce.ScheduledChangesApiFp)(this.configuration).getFeatureFlagScheduledChange(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getFlagConfigScheduledChanges(t,n,i,o){return(0,ce.ScheduledChangesApiFp)(this.configuration).getFlagConfigScheduledChanges(t,n,i,o).then(s=>s(this.axios,this.basePath))}patchFlagConfigScheduledChange(t,n,i,o,s,a,l){return(0,ce.ScheduledChangesApiFp)(this.configuration).patchFlagConfigScheduledChange(t,n,i,o,s,a,l).then(c=>c(this.axios,this.basePath))}postFlagConfigScheduledChanges(t,n,i,o,s,a){return(0,ce.ScheduledChangesApiFp)(this.configuration).postFlagConfigScheduledChanges(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}};ce.ScheduledChangesApi=wvr;var sul=function(r){return{deleteSegment:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteSegment","projectKey",t),(0,B.assertParamExists)("deleteSegment","environmentKey",n),(0,B.assertParamExists)("deleteSegment","segmentKey",i);let s="/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"DELETE"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getContextInstanceSegmentsMembershipByEnv:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getContextInstanceSegmentsMembershipByEnv","projectKey",t),(0,B.assertParamExists)("getContextInstanceSegmentsMembershipByEnv","environmentKey",n),(0,B.assertParamExists)("getContextInstanceSegmentsMembershipByEnv","requestBody",i);let s="/api/v2/projects/{projectKey}/environments/{environmentKey}/segments/evaluate".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),getExpiringTargetsForSegment:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getExpiringTargetsForSegment","projectKey",t),(0,B.assertParamExists)("getExpiringTargetsForSegment","environmentKey",n),(0,B.assertParamExists)("getExpiringTargetsForSegment","segmentKey",i);let s="/api/v2/segments/{projectKey}/{segmentKey}/expiring-targets/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getExpiringUserTargetsForSegment:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getExpiringUserTargetsForSegment","projectKey",t),(0,B.assertParamExists)("getExpiringUserTargetsForSegment","environmentKey",n),(0,B.assertParamExists)("getExpiringUserTargetsForSegment","segmentKey",i);let s="/api/v2/segments/{projectKey}/{segmentKey}/expiring-user-targets/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getSegment:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getSegment","projectKey",t),(0,B.assertParamExists)("getSegment","environmentKey",n),(0,B.assertParamExists)("getSegment","segmentKey",i);let s="/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getSegmentMembershipForContext:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getSegmentMembershipForContext","projectKey",t),(0,B.assertParamExists)("getSegmentMembershipForContext","environmentKey",n),(0,B.assertParamExists)("getSegmentMembershipForContext","segmentKey",i),(0,B.assertParamExists)("getSegmentMembershipForContext","contextKey",o);let a="/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/contexts/{contextKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))).replace("{contextKey}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getSegmentMembershipForUser:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getSegmentMembershipForUser","projectKey",t),(0,B.assertParamExists)("getSegmentMembershipForUser","environmentKey",n),(0,B.assertParamExists)("getSegmentMembershipForUser","segmentKey",i),(0,B.assertParamExists)("getSegmentMembershipForUser","userKey",o);let a="/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/users/{userKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))).replace("{userKey}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getSegments:(t,n,i,o,s,a,l={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getSegments","projectKey",t),(0,B.assertParamExists)("getSegments","environmentKey",n);let c="/api/v2/segments/{projectKey}/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),u=new URL(c,B.DUMMY_BASE_URL),d;r&&(d=r.baseOptions);let p=Object.assign(Object.assign({method:"GET"},d),l),f={},A={};yield(0,B.setApiKeyToObject)(f,"Authorization",r),i!==void 0&&(A.limit=i),o!==void 0&&(A.offset=o),s!==void 0&&(A.sort=s),a!==void 0&&(A.filter=a),(0,B.setSearchParams)(u,A);let h=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),l.headers),{url:(0,B.toPathString)(u),options:p}}),patchExpiringTargetsForSegment:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchExpiringTargetsForSegment","projectKey",t),(0,B.assertParamExists)("patchExpiringTargetsForSegment","environmentKey",n),(0,B.assertParamExists)("patchExpiringTargetsForSegment","segmentKey",i),(0,B.assertParamExists)("patchExpiringTargetsForSegment","patchSegmentExpiringTargetInputRep",o);let a="/api/v2/segments/{projectKey}/{segmentKey}/expiring-targets/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),patchExpiringUserTargetsForSegment:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchExpiringUserTargetsForSegment","projectKey",t),(0,B.assertParamExists)("patchExpiringUserTargetsForSegment","environmentKey",n),(0,B.assertParamExists)("patchExpiringUserTargetsForSegment","segmentKey",i),(0,B.assertParamExists)("patchExpiringUserTargetsForSegment","patchSegmentRequest",o);let a="/api/v2/segments/{projectKey}/{segmentKey}/expiring-user-targets/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),patchSegment:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchSegment","projectKey",t),(0,B.assertParamExists)("patchSegment","environmentKey",n),(0,B.assertParamExists)("patchSegment","segmentKey",i),(0,B.assertParamExists)("patchSegment","patchWithComment",o);let a="/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),postSegment:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postSegment","projectKey",t),(0,B.assertParamExists)("postSegment","environmentKey",n),(0,B.assertParamExists)("postSegment","segmentBody",i);let s="/api/v2/segments/{projectKey}/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(i,c,r),{url:(0,B.toPathString)(a),options:c}}),updateBigSegmentContextTargets:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("updateBigSegmentContextTargets","projectKey",t),(0,B.assertParamExists)("updateBigSegmentContextTargets","environmentKey",n),(0,B.assertParamExists)("updateBigSegmentContextTargets","segmentKey",i),(0,B.assertParamExists)("updateBigSegmentContextTargets","segmentUserState",o);let a="/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/contexts".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"POST"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),updateBigSegmentTargets:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("updateBigSegmentTargets","projectKey",t),(0,B.assertParamExists)("updateBigSegmentTargets","environmentKey",n),(0,B.assertParamExists)("updateBigSegmentTargets","segmentKey",i),(0,B.assertParamExists)("updateBigSegmentTargets","segmentUserState",o);let a="/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/users".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"POST"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}})}};ce.SegmentsApiAxiosParamCreator=sul;var aul=function(r){let t=(0,ce.SegmentsApiAxiosParamCreator)(r);return{deleteSegment(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.deleteSegment(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getContextInstanceSegmentsMembershipByEnv(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getContextInstanceSegmentsMembershipByEnv(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getExpiringTargetsForSegment(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getExpiringTargetsForSegment(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getExpiringUserTargetsForSegment(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getExpiringUserTargetsForSegment(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getSegment(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getSegment(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getSegmentMembershipForContext(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getSegmentMembershipForContext(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getSegmentMembershipForUser(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getSegmentMembershipForUser(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getSegments(n,i,o,s,a,l,c){return Pe(this,void 0,void 0,function*(){let u=yield t.getSegments(n,i,o,s,a,l,c);return(0,B.createRequestFunction)(u,It.default,At.BASE_PATH,r)})},patchExpiringTargetsForSegment(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchExpiringTargetsForSegment(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},patchExpiringUserTargetsForSegment(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchExpiringUserTargetsForSegment(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},patchSegment(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchSegment(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},postSegment(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.postSegment(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},updateBigSegmentContextTargets(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.updateBigSegmentContextTargets(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},updateBigSegmentTargets(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.updateBigSegmentTargets(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})}}};ce.SegmentsApiFp=aul;var lul=function(r,t,n){let i=(0,ce.SegmentsApiFp)(r);return{deleteSegment(o,s,a,l){return i.deleteSegment(o,s,a,l).then(c=>c(n,t))},getContextInstanceSegmentsMembershipByEnv(o,s,a,l){return i.getContextInstanceSegmentsMembershipByEnv(o,s,a,l).then(c=>c(n,t))},getExpiringTargetsForSegment(o,s,a,l){return i.getExpiringTargetsForSegment(o,s,a,l).then(c=>c(n,t))},getExpiringUserTargetsForSegment(o,s,a,l){return i.getExpiringUserTargetsForSegment(o,s,a,l).then(c=>c(n,t))},getSegment(o,s,a,l){return i.getSegment(o,s,a,l).then(c=>c(n,t))},getSegmentMembershipForContext(o,s,a,l,c){return i.getSegmentMembershipForContext(o,s,a,l,c).then(u=>u(n,t))},getSegmentMembershipForUser(o,s,a,l,c){return i.getSegmentMembershipForUser(o,s,a,l,c).then(u=>u(n,t))},getSegments(o,s,a,l,c,u,d){return i.getSegments(o,s,a,l,c,u,d).then(p=>p(n,t))},patchExpiringTargetsForSegment(o,s,a,l,c){return i.patchExpiringTargetsForSegment(o,s,a,l,c).then(u=>u(n,t))},patchExpiringUserTargetsForSegment(o,s,a,l,c){return i.patchExpiringUserTargetsForSegment(o,s,a,l,c).then(u=>u(n,t))},patchSegment(o,s,a,l,c){return i.patchSegment(o,s,a,l,c).then(u=>u(n,t))},postSegment(o,s,a,l){return i.postSegment(o,s,a,l).then(c=>c(n,t))},updateBigSegmentContextTargets(o,s,a,l,c){return i.updateBigSegmentContextTargets(o,s,a,l,c).then(u=>u(n,t))},updateBigSegmentTargets(o,s,a,l,c){return i.updateBigSegmentTargets(o,s,a,l,c).then(u=>u(n,t))}}};ce.SegmentsApiFactory=lul;var Rvr=class extends At.BaseAPI{deleteSegment(t,n,i,o){return(0,ce.SegmentsApiFp)(this.configuration).deleteSegment(t,n,i,o).then(s=>s(this.axios,this.basePath))}getContextInstanceSegmentsMembershipByEnv(t,n,i,o){return(0,ce.SegmentsApiFp)(this.configuration).getContextInstanceSegmentsMembershipByEnv(t,n,i,o).then(s=>s(this.axios,this.basePath))}getExpiringTargetsForSegment(t,n,i,o){return(0,ce.SegmentsApiFp)(this.configuration).getExpiringTargetsForSegment(t,n,i,o).then(s=>s(this.axios,this.basePath))}getExpiringUserTargetsForSegment(t,n,i,o){return(0,ce.SegmentsApiFp)(this.configuration).getExpiringUserTargetsForSegment(t,n,i,o).then(s=>s(this.axios,this.basePath))}getSegment(t,n,i,o){return(0,ce.SegmentsApiFp)(this.configuration).getSegment(t,n,i,o).then(s=>s(this.axios,this.basePath))}getSegmentMembershipForContext(t,n,i,o,s){return(0,ce.SegmentsApiFp)(this.configuration).getSegmentMembershipForContext(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getSegmentMembershipForUser(t,n,i,o,s){return(0,ce.SegmentsApiFp)(this.configuration).getSegmentMembershipForUser(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getSegments(t,n,i,o,s,a,l){return(0,ce.SegmentsApiFp)(this.configuration).getSegments(t,n,i,o,s,a,l).then(c=>c(this.axios,this.basePath))}patchExpiringTargetsForSegment(t,n,i,o,s){return(0,ce.SegmentsApiFp)(this.configuration).patchExpiringTargetsForSegment(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}patchExpiringUserTargetsForSegment(t,n,i,o,s){return(0,ce.SegmentsApiFp)(this.configuration).patchExpiringUserTargetsForSegment(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}patchSegment(t,n,i,o,s){return(0,ce.SegmentsApiFp)(this.configuration).patchSegment(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}postSegment(t,n,i,o){return(0,ce.SegmentsApiFp)(this.configuration).postSegment(t,n,i,o).then(s=>s(this.axios,this.basePath))}updateBigSegmentContextTargets(t,n,i,o,s){return(0,ce.SegmentsApiFp)(this.configuration).updateBigSegmentContextTargets(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}updateBigSegmentTargets(t,n,i,o,s){return(0,ce.SegmentsApiFp)(this.configuration).updateBigSegmentTargets(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}};ce.SegmentsApi=Rvr;var uul=function(r){return{createBigSegmentExport:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createBigSegmentExport","projectKey",t),(0,B.assertParamExists)("createBigSegmentExport","environmentKey",n),(0,B.assertParamExists)("createBigSegmentExport","segmentKey",i);let s="/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/exports".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"POST"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),createBigSegmentImport:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createBigSegmentImport","projectKey",t),(0,B.assertParamExists)("createBigSegmentImport","environmentKey",n),(0,B.assertParamExists)("createBigSegmentImport","segmentKey",i);let l="/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/imports".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"POST"},u),a),p={},f={},A=new(r&&r.formDataCtor||FormData);yield(0,B.setApiKeyToObject)(p,"Authorization",r),o!==void 0&&A.append("file",o),s!==void 0&&A.append("mode",s),p["Content-Type"]="multipart/form-data",(0,B.setSearchParams)(c,f);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),h),a.headers),d.data=A,{url:(0,B.toPathString)(c),options:d}}),getBigSegmentExport:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getBigSegmentExport","projectKey",t),(0,B.assertParamExists)("getBigSegmentExport","environmentKey",n),(0,B.assertParamExists)("getBigSegmentExport","segmentKey",i),(0,B.assertParamExists)("getBigSegmentExport","exportID",o);let a="/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/exports/{exportID}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))).replace("{exportID}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getBigSegmentImport:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getBigSegmentImport","projectKey",t),(0,B.assertParamExists)("getBigSegmentImport","environmentKey",n),(0,B.assertParamExists)("getBigSegmentImport","segmentKey",i),(0,B.assertParamExists)("getBigSegmentImport","importID",o);let a="/api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/imports/{importID}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{segmentKey}",encodeURIComponent(String(i))).replace("{importID}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}})}};ce.SegmentsBetaApiAxiosParamCreator=uul;var cul=function(r){let t=(0,ce.SegmentsBetaApiAxiosParamCreator)(r);return{createBigSegmentExport(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.createBigSegmentExport(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},createBigSegmentImport(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.createBigSegmentImport(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})},getBigSegmentExport(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getBigSegmentExport(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getBigSegmentImport(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getBigSegmentImport(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})}}};ce.SegmentsBetaApiFp=cul;var dul=function(r,t,n){let i=(0,ce.SegmentsBetaApiFp)(r);return{createBigSegmentExport(o,s,a,l){return i.createBigSegmentExport(o,s,a,l).then(c=>c(n,t))},createBigSegmentImport(o,s,a,l,c,u){return i.createBigSegmentImport(o,s,a,l,c,u).then(d=>d(n,t))},getBigSegmentExport(o,s,a,l,c){return i.getBigSegmentExport(o,s,a,l,c).then(u=>u(n,t))},getBigSegmentImport(o,s,a,l,c){return i.getBigSegmentImport(o,s,a,l,c).then(u=>u(n,t))}}};ce.SegmentsBetaApiFactory=dul;var Bvr=class extends At.BaseAPI{createBigSegmentExport(t,n,i,o){return(0,ce.SegmentsBetaApiFp)(this.configuration).createBigSegmentExport(t,n,i,o).then(s=>s(this.axios,this.basePath))}createBigSegmentImport(t,n,i,o,s,a){return(0,ce.SegmentsBetaApiFp)(this.configuration).createBigSegmentImport(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}getBigSegmentExport(t,n,i,o,s){return(0,ce.SegmentsBetaApiFp)(this.configuration).getBigSegmentExport(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getBigSegmentImport(t,n,i,o,s){return(0,ce.SegmentsBetaApiFp)(this.configuration).getBigSegmentImport(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}};ce.SegmentsBetaApi=Bvr;var pul=function(r){return{getTags:(t,n,i,o,s,a,l={})=>Pe(this,void 0,void 0,function*(){let c="/api/v2/tags",u=new URL(c,B.DUMMY_BASE_URL),d;r&&(d=r.baseOptions);let p=Object.assign(Object.assign({method:"GET"},d),l),f={},A={};yield(0,B.setApiKeyToObject)(f,"Authorization",r),t&&(A.kind=t),n!==void 0&&(A.pre=n),i!==void 0&&(A.archived=i),o!==void 0&&(A.limit=o),s!==void 0&&(A.offset=s),a!==void 0&&(A.asOf=a),(0,B.setSearchParams)(u,A);let h=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),l.headers),{url:(0,B.toPathString)(u),options:p}})}};ce.TagsApiAxiosParamCreator=pul;var ful=function(r){let t=(0,ce.TagsApiAxiosParamCreator)(r);return{getTags(n,i,o,s,a,l,c){return Pe(this,void 0,void 0,function*(){let u=yield t.getTags(n,i,o,s,a,l,c);return(0,B.createRequestFunction)(u,It.default,At.BASE_PATH,r)})}}};ce.TagsApiFp=ful;var Aul=function(r,t,n){let i=(0,ce.TagsApiFp)(r);return{getTags(o,s,a,l,c,u,d){return i.getTags(o,s,a,l,c,u,d).then(p=>p(n,t))}}};ce.TagsApiFactory=Aul;var xvr=class extends At.BaseAPI{getTags(t,n,i,o,s,a,l){return(0,ce.TagsApiFp)(this.configuration).getTags(t,n,i,o,s,a,l).then(c=>c(this.axios,this.basePath))}};ce.TagsApi=xvr;var hul=function(r){return{deleteTeam:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteTeam","teamKey",t);let i="/api/v2/teams/{teamKey}".replace("{teamKey}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getTeam:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getTeam","teamKey",t);let o="/api/v2/teams/{teamKey}".replace("{teamKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.expand=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}}),getTeamMaintainers:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getTeamMaintainers","teamKey",t);let s="/api/v2/teams/{teamKey}/maintainers".replace("{teamKey}",encodeURIComponent(String(t))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),n!==void 0&&(d.limit=n),i!==void 0&&(d.offset=i),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getTeamRoles:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getTeamRoles","teamKey",t);let s="/api/v2/teams/{teamKey}/roles".replace("{teamKey}",encodeURIComponent(String(t))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),n!==void 0&&(d.limit=n),i!==void 0&&(d.offset=i),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getTeams:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){let a="/api/v2/teams",l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),t!==void 0&&(p.limit=t),n!==void 0&&(p.offset=n),i!==void 0&&(p.filter=i),o!==void 0&&(p.expand=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),patchTeam:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchTeam","teamKey",t),(0,B.assertParamExists)("patchTeam","teamPatchInput",n);let s="/api/v2/teams/{teamKey}".replace("{teamKey}",encodeURIComponent(String(t))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"PATCH"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),i!==void 0&&(d.expand=i),u["Content-Type"]="application/json",(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),c.data=(0,B.serializeDataIfNeeded)(n,c,r),{url:(0,B.toPathString)(a),options:c}}),postTeam:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postTeam","teamPostInput",t);let o="/api/v2/teams",s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&(u.expand=n),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(t,l,r),{url:(0,B.toPathString)(s),options:l}}),postTeamMembers:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postTeamMembers","teamKey",t);let o="/api/v2/teams/{teamKey}/members".replace("{teamKey}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"POST"},a),i),c={},u={},d=new(r&&r.formDataCtor||FormData);yield(0,B.setApiKeyToObject)(c,"Authorization",r),n!==void 0&&d.append("file",n),c["Content-Type"]="multipart/form-data",(0,B.setSearchParams)(s,u);let p=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),p),i.headers),l.data=d,{url:(0,B.toPathString)(s),options:l}})}};ce.TeamsApiAxiosParamCreator=hul;var gul=function(r){let t=(0,ce.TeamsApiAxiosParamCreator)(r);return{deleteTeam(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteTeam(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getTeam(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getTeam(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},getTeamMaintainers(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getTeamMaintainers(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getTeamRoles(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getTeamRoles(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getTeams(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getTeams(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},patchTeam(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.patchTeam(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},postTeam(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.postTeam(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postTeamMembers(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.postTeamMembers(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.TeamsApiFp=gul;var mul=function(r,t,n){let i=(0,ce.TeamsApiFp)(r);return{deleteTeam(o,s){return i.deleteTeam(o,s).then(a=>a(n,t))},getTeam(o,s,a){return i.getTeam(o,s,a).then(l=>l(n,t))},getTeamMaintainers(o,s,a,l){return i.getTeamMaintainers(o,s,a,l).then(c=>c(n,t))},getTeamRoles(o,s,a,l){return i.getTeamRoles(o,s,a,l).then(c=>c(n,t))},getTeams(o,s,a,l,c){return i.getTeams(o,s,a,l,c).then(u=>u(n,t))},patchTeam(o,s,a,l){return i.patchTeam(o,s,a,l).then(c=>c(n,t))},postTeam(o,s,a){return i.postTeam(o,s,a).then(l=>l(n,t))},postTeamMembers(o,s,a){return i.postTeamMembers(o,s,a).then(l=>l(n,t))}}};ce.TeamsApiFactory=mul;var Mvr=class extends At.BaseAPI{deleteTeam(t,n){return(0,ce.TeamsApiFp)(this.configuration).deleteTeam(t,n).then(i=>i(this.axios,this.basePath))}getTeam(t,n,i){return(0,ce.TeamsApiFp)(this.configuration).getTeam(t,n,i).then(o=>o(this.axios,this.basePath))}getTeamMaintainers(t,n,i,o){return(0,ce.TeamsApiFp)(this.configuration).getTeamMaintainers(t,n,i,o).then(s=>s(this.axios,this.basePath))}getTeamRoles(t,n,i,o){return(0,ce.TeamsApiFp)(this.configuration).getTeamRoles(t,n,i,o).then(s=>s(this.axios,this.basePath))}getTeams(t,n,i,o,s){return(0,ce.TeamsApiFp)(this.configuration).getTeams(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}patchTeam(t,n,i,o){return(0,ce.TeamsApiFp)(this.configuration).patchTeam(t,n,i,o).then(s=>s(this.axios,this.basePath))}postTeam(t,n,i){return(0,ce.TeamsApiFp)(this.configuration).postTeam(t,n,i).then(o=>o(this.axios,this.basePath))}postTeamMembers(t,n,i){return(0,ce.TeamsApiFp)(this.configuration).postTeamMembers(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.TeamsApi=Mvr;var yul=function(r){return{patchTeams:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchTeams","teamsPatchInput",t);let i="/api/v2/teams",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"PATCH"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}})}};ce.TeamsBetaApiAxiosParamCreator=yul;var Eul=function(r){let t=(0,ce.TeamsBetaApiAxiosParamCreator)(r);return{patchTeams(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.patchTeams(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})}}};ce.TeamsBetaApiFp=Eul;var bul=function(r,t,n){let i=(0,ce.TeamsBetaApiFp)(r);return{patchTeams(o,s){return i.patchTeams(o,s).then(a=>a(n,t))}}};ce.TeamsBetaApiFactory=bul;var Dvr=class extends At.BaseAPI{patchTeams(t,n){return(0,ce.TeamsBetaApiFp)(this.configuration).patchTeams(t,n).then(i=>i(this.axios,this.basePath))}};ce.TeamsBetaApi=Dvr;var Cul=function(r){return{getExpiringFlagsForUser:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getExpiringFlagsForUser","projectKey",t),(0,B.assertParamExists)("getExpiringFlagsForUser","userKey",n),(0,B.assertParamExists)("getExpiringFlagsForUser","environmentKey",i);let s="/api/v2/users/{projectKey}/{userKey}/expiring-user-targets/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{userKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getUserFlagSetting:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getUserFlagSetting","projectKey",t),(0,B.assertParamExists)("getUserFlagSetting","environmentKey",n),(0,B.assertParamExists)("getUserFlagSetting","userKey",i),(0,B.assertParamExists)("getUserFlagSetting","featureFlagKey",o);let a="/api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{userKey}",encodeURIComponent(String(i))).replace("{featureFlagKey}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getUserFlagSettings:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getUserFlagSettings","projectKey",t),(0,B.assertParamExists)("getUserFlagSettings","environmentKey",n),(0,B.assertParamExists)("getUserFlagSettings","userKey",i);let s="/api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{userKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),patchExpiringFlagsForUser:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchExpiringFlagsForUser","projectKey",t),(0,B.assertParamExists)("patchExpiringFlagsForUser","userKey",n),(0,B.assertParamExists)("patchExpiringFlagsForUser","environmentKey",i),(0,B.assertParamExists)("patchExpiringFlagsForUser","patchUsersRequest",o);let a="/api/v2/users/{projectKey}/{userKey}/expiring-user-targets/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{userKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"PATCH"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),d["Content-Type"]="application/json",(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),u.data=(0,B.serializeDataIfNeeded)(o,u,r),{url:(0,B.toPathString)(l),options:u}}),putFlagSetting:(t,n,i,o,s,a={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("putFlagSetting","projectKey",t),(0,B.assertParamExists)("putFlagSetting","environmentKey",n),(0,B.assertParamExists)("putFlagSetting","userKey",i),(0,B.assertParamExists)("putFlagSetting","featureFlagKey",o),(0,B.assertParamExists)("putFlagSetting","valuePut",s);let l="/api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{userKey}",encodeURIComponent(String(i))).replace("{featureFlagKey}",encodeURIComponent(String(o))),c=new URL(l,B.DUMMY_BASE_URL),u;r&&(u=r.baseOptions);let d=Object.assign(Object.assign({method:"PUT"},u),a),p={},f={};yield(0,B.setApiKeyToObject)(p,"Authorization",r),p["Content-Type"]="application/json",(0,B.setSearchParams)(c,f);let A=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},p),A),a.headers),d.data=(0,B.serializeDataIfNeeded)(s,d,r),{url:(0,B.toPathString)(c),options:d}})}};ce.UserSettingsApiAxiosParamCreator=Cul;var Iul=function(r){let t=(0,ce.UserSettingsApiAxiosParamCreator)(r);return{getExpiringFlagsForUser(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getExpiringFlagsForUser(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getUserFlagSetting(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getUserFlagSetting(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getUserFlagSettings(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getUserFlagSettings(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},patchExpiringFlagsForUser(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.patchExpiringFlagsForUser(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},putFlagSetting(n,i,o,s,a,l){return Pe(this,void 0,void 0,function*(){let c=yield t.putFlagSetting(n,i,o,s,a,l);return(0,B.createRequestFunction)(c,It.default,At.BASE_PATH,r)})}}};ce.UserSettingsApiFp=Iul;var vul=function(r,t,n){let i=(0,ce.UserSettingsApiFp)(r);return{getExpiringFlagsForUser(o,s,a,l){return i.getExpiringFlagsForUser(o,s,a,l).then(c=>c(n,t))},getUserFlagSetting(o,s,a,l,c){return i.getUserFlagSetting(o,s,a,l,c).then(u=>u(n,t))},getUserFlagSettings(o,s,a,l){return i.getUserFlagSettings(o,s,a,l).then(c=>c(n,t))},patchExpiringFlagsForUser(o,s,a,l,c){return i.patchExpiringFlagsForUser(o,s,a,l,c).then(u=>u(n,t))},putFlagSetting(o,s,a,l,c,u){return i.putFlagSetting(o,s,a,l,c,u).then(d=>d(n,t))}}};ce.UserSettingsApiFactory=vul;var Nvr=class extends At.BaseAPI{getExpiringFlagsForUser(t,n,i,o){return(0,ce.UserSettingsApiFp)(this.configuration).getExpiringFlagsForUser(t,n,i,o).then(s=>s(this.axios,this.basePath))}getUserFlagSetting(t,n,i,o,s){return(0,ce.UserSettingsApiFp)(this.configuration).getUserFlagSetting(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getUserFlagSettings(t,n,i,o){return(0,ce.UserSettingsApiFp)(this.configuration).getUserFlagSettings(t,n,i,o).then(s=>s(this.axios,this.basePath))}patchExpiringFlagsForUser(t,n,i,o,s){return(0,ce.UserSettingsApiFp)(this.configuration).patchExpiringFlagsForUser(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}putFlagSetting(t,n,i,o,s,a){return(0,ce.UserSettingsApiFp)(this.configuration).putFlagSetting(t,n,i,o,s,a).then(l=>l(this.axios,this.basePath))}};ce.UserSettingsApi=Nvr;var Sul=function(r){return{deleteUser:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteUser","projectKey",t),(0,B.assertParamExists)("deleteUser","environmentKey",n),(0,B.assertParamExists)("deleteUser","userKey",i);let s="/api/v2/users/{projectKey}/{environmentKey}/{userKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{userKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"DELETE"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getSearchUsers:(t,n,i,o,s,a,l,c,u,d={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getSearchUsers","projectKey",t),(0,B.assertParamExists)("getSearchUsers","environmentKey",n);let p="/api/v2/user-search/{projectKey}/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),f=new URL(p,B.DUMMY_BASE_URL),A;r&&(A=r.baseOptions);let h=Object.assign(Object.assign({method:"GET"},A),d),y={},C={};yield(0,B.setApiKeyToObject)(y,"Authorization",r),i!==void 0&&(C.q=i),o!==void 0&&(C.limit=o),s!==void 0&&(C.offset=s),a!==void 0&&(C.after=a),l!==void 0&&(C.sort=l),c!==void 0&&(C.searchAfter=c),u!==void 0&&(C.filter=u),(0,B.setSearchParams)(f,C);let v=A&&A.headers?A.headers:{};return h.headers=Object.assign(Object.assign(Object.assign({},y),v),d.headers),{url:(0,B.toPathString)(f),options:h}}),getUser:(t,n,i,o={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getUser","projectKey",t),(0,B.assertParamExists)("getUser","environmentKey",n),(0,B.assertParamExists)("getUser","userKey",i);let s="/api/v2/users/{projectKey}/{environmentKey}/{userKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))).replace("{userKey}",encodeURIComponent(String(i))),a=new URL(s,B.DUMMY_BASE_URL),l;r&&(l=r.baseOptions);let c=Object.assign(Object.assign({method:"GET"},l),o),u={},d={};yield(0,B.setApiKeyToObject)(u,"Authorization",r),(0,B.setSearchParams)(a,d);let p=l&&l.headers?l.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),p),o.headers),{url:(0,B.toPathString)(a),options:c}}),getUsers:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getUsers","projectKey",t),(0,B.assertParamExists)("getUsers","environmentKey",n);let a="/api/v2/users/{projectKey}/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),i!==void 0&&(p.limit=i),o!==void 0&&(p.searchAfter=o),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}})}};ce.UsersApiAxiosParamCreator=Sul;var _ul=function(r){let t=(0,ce.UsersApiAxiosParamCreator)(r);return{deleteUser(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.deleteUser(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getSearchUsers(n,i,o,s,a,l,c,u,d,p){return Pe(this,void 0,void 0,function*(){let f=yield t.getSearchUsers(n,i,o,s,a,l,c,u,d,p);return(0,B.createRequestFunction)(f,It.default,At.BASE_PATH,r)})},getUser(n,i,o,s){return Pe(this,void 0,void 0,function*(){let a=yield t.getUser(n,i,o,s);return(0,B.createRequestFunction)(a,It.default,At.BASE_PATH,r)})},getUsers(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getUsers(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})}}};ce.UsersApiFp=_ul;var Oul=function(r,t,n){let i=(0,ce.UsersApiFp)(r);return{deleteUser(o,s,a,l){return i.deleteUser(o,s,a,l).then(c=>c(n,t))},getSearchUsers(o,s,a,l,c,u,d,p,f,A){return i.getSearchUsers(o,s,a,l,c,u,d,p,f,A).then(h=>h(n,t))},getUser(o,s,a,l){return i.getUser(o,s,a,l).then(c=>c(n,t))},getUsers(o,s,a,l,c){return i.getUsers(o,s,a,l,c).then(u=>u(n,t))}}};ce.UsersApiFactory=Oul;var Pvr=class extends At.BaseAPI{deleteUser(t,n,i,o){return(0,ce.UsersApiFp)(this.configuration).deleteUser(t,n,i,o).then(s=>s(this.axios,this.basePath))}getSearchUsers(t,n,i,o,s,a,l,c,u,d){return(0,ce.UsersApiFp)(this.configuration).getSearchUsers(t,n,i,o,s,a,l,c,u,d).then(p=>p(this.axios,this.basePath))}getUser(t,n,i,o){return(0,ce.UsersApiFp)(this.configuration).getUser(t,n,i,o).then(s=>s(this.axios,this.basePath))}getUsers(t,n,i,o,s){return(0,ce.UsersApiFp)(this.configuration).getUsers(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}};ce.UsersApi=Pvr;var Tul=function(r){return{getUserAttributeNames:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getUserAttributeNames","projectKey",t),(0,B.assertParamExists)("getUserAttributeNames","environmentKey",n);let o="/api/v2/user-attributes/{projectKey}/{environmentKey}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{environmentKey}",encodeURIComponent(String(n))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}})}};ce.UsersBetaApiAxiosParamCreator=Tul;var wul=function(r){let t=(0,ce.UsersBetaApiAxiosParamCreator)(r);return{getUserAttributeNames(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getUserAttributeNames(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.UsersBetaApiFp=wul;var Rul=function(r,t,n){let i=(0,ce.UsersBetaApiFp)(r);return{getUserAttributeNames(o,s,a){return i.getUserAttributeNames(o,s,a).then(l=>l(n,t))}}};ce.UsersBetaApiFactory=Rul;var kvr=class extends At.BaseAPI{getUserAttributeNames(t,n,i){return(0,ce.UsersBetaApiFp)(this.configuration).getUserAttributeNames(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.UsersBetaApi=kvr;var Bul=function(r){return{deleteWebhook:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteWebhook","id",t);let i="/api/v2/webhooks/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getAllWebhooks:(t={})=>Pe(this,void 0,void 0,function*(){let n="/api/v2/webhooks",i=new URL(n,B.DUMMY_BASE_URL),o;r&&(o=r.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),a={},l={};yield(0,B.setApiKeyToObject)(a,"Authorization",r),(0,B.setSearchParams)(i,l);let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),c),t.headers),{url:(0,B.toPathString)(i),options:s}}),getWebhook:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getWebhook","id",t);let i="/api/v2/webhooks/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"GET"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),patchWebhook:(t,n,i={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("patchWebhook","id",t),(0,B.assertParamExists)("patchWebhook","patchOperation",n);let o="/api/v2/webhooks/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"PATCH"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),c["Content-Type"]="application/json",(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=(0,B.serializeDataIfNeeded)(n,l,r),{url:(0,B.toPathString)(s),options:l}}),postWebhook:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postWebhook","webhookPost",t);let i="/api/v2/webhooks",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}})}};ce.WebhooksApiAxiosParamCreator=Bul;var xul=function(r){let t=(0,ce.WebhooksApiAxiosParamCreator)(r);return{deleteWebhook(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteWebhook(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getAllWebhooks(n){return Pe(this,void 0,void 0,function*(){let i=yield t.getAllWebhooks(n);return(0,B.createRequestFunction)(i,It.default,At.BASE_PATH,r)})},getWebhook(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.getWebhook(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},patchWebhook(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.patchWebhook(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})},postWebhook(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.postWebhook(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})}}};ce.WebhooksApiFp=xul;var Mul=function(r,t,n){let i=(0,ce.WebhooksApiFp)(r);return{deleteWebhook(o,s){return i.deleteWebhook(o,s).then(a=>a(n,t))},getAllWebhooks(o){return i.getAllWebhooks(o).then(s=>s(n,t))},getWebhook(o,s){return i.getWebhook(o,s).then(a=>a(n,t))},patchWebhook(o,s,a){return i.patchWebhook(o,s,a).then(l=>l(n,t))},postWebhook(o,s){return i.postWebhook(o,s).then(a=>a(n,t))}}};ce.WebhooksApiFactory=Mul;var Qvr=class extends At.BaseAPI{deleteWebhook(t,n){return(0,ce.WebhooksApiFp)(this.configuration).deleteWebhook(t,n).then(i=>i(this.axios,this.basePath))}getAllWebhooks(t){return(0,ce.WebhooksApiFp)(this.configuration).getAllWebhooks(t).then(n=>n(this.axios,this.basePath))}getWebhook(t,n){return(0,ce.WebhooksApiFp)(this.configuration).getWebhook(t,n).then(i=>i(this.axios,this.basePath))}patchWebhook(t,n,i){return(0,ce.WebhooksApiFp)(this.configuration).patchWebhook(t,n,i).then(o=>o(this.axios,this.basePath))}postWebhook(t,n){return(0,ce.WebhooksApiFp)(this.configuration).postWebhook(t,n).then(i=>i(this.axios,this.basePath))}};ce.WebhooksApi=Qvr;var Dul=function(r){return{createWorkflowTemplate:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("createWorkflowTemplate","createWorkflowTemplateInput",t);let i="/api/v2/templates",o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"POST"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),l["Content-Type"]="application/json",(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),a.data=(0,B.serializeDataIfNeeded)(t,a,r),{url:(0,B.toPathString)(o),options:a}}),deleteWorkflowTemplate:(t,n={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteWorkflowTemplate","templateKey",t);let i="/api/v2/templates/{templateKey}".replace("{templateKey}",encodeURIComponent(String(t))),o=new URL(i,B.DUMMY_BASE_URL),s;r&&(s=r.baseOptions);let a=Object.assign(Object.assign({method:"DELETE"},s),n),l={},c={};yield(0,B.setApiKeyToObject)(l,"Authorization",r),(0,B.setSearchParams)(o,c);let u=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},l),u),n.headers),{url:(0,B.toPathString)(o),options:a}}),getWorkflowTemplates:(t,n,i={})=>Pe(this,void 0,void 0,function*(){let o="/api/v2/templates",s=new URL(o,B.DUMMY_BASE_URL),a;r&&(a=r.baseOptions);let l=Object.assign(Object.assign({method:"GET"},a),i),c={},u={};yield(0,B.setApiKeyToObject)(c,"Authorization",r),t!==void 0&&(u.summary=t),n!==void 0&&(u.search=n),(0,B.setSearchParams)(s,u);let d=a&&a.headers?a.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:(0,B.toPathString)(s),options:l}})}};ce.WorkflowTemplatesApiAxiosParamCreator=Dul;var Nul=function(r){let t=(0,ce.WorkflowTemplatesApiAxiosParamCreator)(r);return{createWorkflowTemplate(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.createWorkflowTemplate(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},deleteWorkflowTemplate(n,i){return Pe(this,void 0,void 0,function*(){let o=yield t.deleteWorkflowTemplate(n,i);return(0,B.createRequestFunction)(o,It.default,At.BASE_PATH,r)})},getWorkflowTemplates(n,i,o){return Pe(this,void 0,void 0,function*(){let s=yield t.getWorkflowTemplates(n,i,o);return(0,B.createRequestFunction)(s,It.default,At.BASE_PATH,r)})}}};ce.WorkflowTemplatesApiFp=Nul;var Pul=function(r,t,n){let i=(0,ce.WorkflowTemplatesApiFp)(r);return{createWorkflowTemplate(o,s){return i.createWorkflowTemplate(o,s).then(a=>a(n,t))},deleteWorkflowTemplate(o,s){return i.deleteWorkflowTemplate(o,s).then(a=>a(n,t))},getWorkflowTemplates(o,s,a){return i.getWorkflowTemplates(o,s,a).then(l=>l(n,t))}}};ce.WorkflowTemplatesApiFactory=Pul;var Lvr=class extends At.BaseAPI{createWorkflowTemplate(t,n){return(0,ce.WorkflowTemplatesApiFp)(this.configuration).createWorkflowTemplate(t,n).then(i=>i(this.axios,this.basePath))}deleteWorkflowTemplate(t,n){return(0,ce.WorkflowTemplatesApiFp)(this.configuration).deleteWorkflowTemplate(t,n).then(i=>i(this.axios,this.basePath))}getWorkflowTemplates(t,n,i){return(0,ce.WorkflowTemplatesApiFp)(this.configuration).getWorkflowTemplates(t,n,i).then(o=>o(this.axios,this.basePath))}};ce.WorkflowTemplatesApi=Lvr;var kul=function(r){return{deleteWorkflow:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("deleteWorkflow","projectKey",t),(0,B.assertParamExists)("deleteWorkflow","featureFlagKey",n),(0,B.assertParamExists)("deleteWorkflow","environmentKey",i),(0,B.assertParamExists)("deleteWorkflow","workflowId",o);let a="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows/{workflowId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{workflowId}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"DELETE"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getCustomWorkflow:(t,n,i,o,s={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getCustomWorkflow","projectKey",t),(0,B.assertParamExists)("getCustomWorkflow","featureFlagKey",n),(0,B.assertParamExists)("getCustomWorkflow","environmentKey",i),(0,B.assertParamExists)("getCustomWorkflow","workflowId",o);let a="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows/{workflowId}".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))).replace("{workflowId}",encodeURIComponent(String(o))),l=new URL(a,B.DUMMY_BASE_URL),c;r&&(c=r.baseOptions);let u=Object.assign(Object.assign({method:"GET"},c),s),d={},p={};yield(0,B.setApiKeyToObject)(d,"Authorization",r),(0,B.setSearchParams)(l,p);let f=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),f),s.headers),{url:(0,B.toPathString)(l),options:u}}),getWorkflows:(t,n,i,o,s,a,l,c={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("getWorkflows","projectKey",t),(0,B.assertParamExists)("getWorkflows","featureFlagKey",n),(0,B.assertParamExists)("getWorkflows","environmentKey",i);let u="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))),d=new URL(u,B.DUMMY_BASE_URL),p;r&&(p=r.baseOptions);let f=Object.assign(Object.assign({method:"GET"},p),c),A={},h={};yield(0,B.setApiKeyToObject)(A,"Authorization",r),o!==void 0&&(h.status=o),s!==void 0&&(h.sort=s),a!==void 0&&(h.limit=a),l!==void 0&&(h.offset=l),(0,B.setSearchParams)(d,h);let y=p&&p.headers?p.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},A),y),c.headers),{url:(0,B.toPathString)(d),options:f}}),postWorkflow:(t,n,i,o,s,a,l={})=>Pe(this,void 0,void 0,function*(){(0,B.assertParamExists)("postWorkflow","projectKey",t),(0,B.assertParamExists)("postWorkflow","featureFlagKey",n),(0,B.assertParamExists)("postWorkflow","environmentKey",i),(0,B.assertParamExists)("postWorkflow","customWorkflowInput",o);let c="/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows".replace("{projectKey}",encodeURIComponent(String(t))).replace("{featureFlagKey}",encodeURIComponent(String(n))).replace("{environmentKey}",encodeURIComponent(String(i))),u=new URL(c,B.DUMMY_BASE_URL),d;r&&(d=r.baseOptions);let p=Object.assign(Object.assign({method:"POST"},d),l),f={},A={};yield(0,B.setApiKeyToObject)(f,"Authorization",r),s!==void 0&&(A.templateKey=s),a!==void 0&&(A.dryRun=a),f["Content-Type"]="application/json",(0,B.setSearchParams)(u,A);let h=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},f),h),l.headers),p.data=(0,B.serializeDataIfNeeded)(o,p,r),{url:(0,B.toPathString)(u),options:p}})}};ce.WorkflowsApiAxiosParamCreator=kul;var Qul=function(r){let t=(0,ce.WorkflowsApiAxiosParamCreator)(r);return{deleteWorkflow(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.deleteWorkflow(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getCustomWorkflow(n,i,o,s,a){return Pe(this,void 0,void 0,function*(){let l=yield t.getCustomWorkflow(n,i,o,s,a);return(0,B.createRequestFunction)(l,It.default,At.BASE_PATH,r)})},getWorkflows(n,i,o,s,a,l,c,u){return Pe(this,void 0,void 0,function*(){let d=yield t.getWorkflows(n,i,o,s,a,l,c,u);return(0,B.createRequestFunction)(d,It.default,At.BASE_PATH,r)})},postWorkflow(n,i,o,s,a,l,c){return Pe(this,void 0,void 0,function*(){let u=yield t.postWorkflow(n,i,o,s,a,l,c);return(0,B.createRequestFunction)(u,It.default,At.BASE_PATH,r)})}}};ce.WorkflowsApiFp=Qul;var Lul=function(r,t,n){let i=(0,ce.WorkflowsApiFp)(r);return{deleteWorkflow(o,s,a,l,c){return i.deleteWorkflow(o,s,a,l,c).then(u=>u(n,t))},getCustomWorkflow(o,s,a,l,c){return i.getCustomWorkflow(o,s,a,l,c).then(u=>u(n,t))},getWorkflows(o,s,a,l,c,u,d,p){return i.getWorkflows(o,s,a,l,c,u,d,p).then(f=>f(n,t))},postWorkflow(o,s,a,l,c,u,d){return i.postWorkflow(o,s,a,l,c,u,d).then(p=>p(n,t))}}};ce.WorkflowsApiFactory=Lul;var Fvr=class extends At.BaseAPI{deleteWorkflow(t,n,i,o,s){return(0,ce.WorkflowsApiFp)(this.configuration).deleteWorkflow(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getCustomWorkflow(t,n,i,o,s){return(0,ce.WorkflowsApiFp)(this.configuration).getCustomWorkflow(t,n,i,o,s).then(a=>a(this.axios,this.basePath))}getWorkflows(t,n,i,o,s,a,l,c){return(0,ce.WorkflowsApiFp)(this.configuration).getWorkflows(t,n,i,o,s,a,l,c).then(u=>u(this.axios,this.basePath))}postWorkflow(t,n,i,o,s,a,l){return(0,ce.WorkflowsApiFp)(this.configuration).postWorkflow(t,n,i,o,s,a,l).then(c=>c(this.axios,this.basePath))}};ce.WorkflowsApi=Fvr});var KAi=I(Q2t=>{"use strict";Object.defineProperty(Q2t,"__esModule",{value:!0});Q2t.Configuration=void 0;var zvr=class{constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};Q2t.Configuration=zvr});var XAi=I(sK=>{"use strict";var Ful=sK&&sK.__createBinding||(Object.create?function(r,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(r,i,o)}:function(r,t,n,i){i===void 0&&(i=n),r[i]=t[n]}),JAi=sK&&sK.__exportStar||function(r,t){for(var n in r)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ful(t,r,n)};Object.defineProperty(sK,"__esModule",{value:!0});JAi(YAi(),sK);JAi(KAi(),sK)});var L2t,ZAi,$Ai,qvr,F2t,zul,Uvr,jvr,ehi=et(()=>{"use strict";L2t=Ct(XAi()),ZAi=Ct(us());XY();wr();y2t();m2t();$Ai="default",qvr=r=>{let t=parseInt(process.env.LAUNCHDARKLY_INIT_TIMEOUT_SEC??"");return isNaN(t)?r:t},F2t=r=>{let t={kind:"multi"};return r.user&&(t.user={key:r.user.id,name:r.user.name,anonymous:r.user.id===kue.user.id}),r.org&&(t.organization={key:r.org.id,name:r.org.name}),r.subdomain&&(t.subdomain={key:r.subdomain.id}),t},zul=r=>{switch(r){case"org":return"organization";case"subdomain":return"subdomain";case"user":return"user";default:throw new mt(`Unsupported feature flags context kind '${r}'`)}},Uvr=async(r,t,n,i,o,s)=>{let a=process.env.LAUNCHDARKLY_API_KEY;F3(!!a,"Missing LAUNCHDARKLY_API_KEY environment variable",o);let l=process.env.LAUNCHDARKLY_ENVIRONMENT;F3(!!l,"Missing LAUNCHDARKLY_ENVIRONMENT environment variable",o),s||(s=new L2t.FeatureFlagsApi(new L2t.Configuration({apiKey:a})));let c=zul(r),{data:u}=await s.getFeatureFlag($Ai,n,l),d=u.variations.findIndex(h=>(0,ZAi.isEqual)(h.value,i));if(d<0)throw new mt(`No LaunchDarkly variation found for flag '${n}' value '${i}'`);let p=u.variations[d]._id,f=u.environments[l]?.contextTargets?.find(h=>h.contextKind===c&&h.values.includes(t))?.variation??-1,A=f>=0?u.variations[f]._id:void 0;if(o.info(`Setting LaunchDarkly feature flag '${n}' to '${i}' for ${r} '${t}' in environment ${l}`),f!==d){let h=[{kind:"addTargets",contextKind:c,values:[t],variationId:p}];A&&h.unshift({kind:"removeTargets",contextKind:c,values:[t],variationId:A}),await s.patchFeatureFlag($Ai,n,{comment:"Updating target via automation",environmentKey:l,instructions:h},!1,{headers:{"Content-Type":"application/json; domain-model=launchdarkly.semanticpatch"}})}},jvr=r=>Object.keys(r).reduce((t,n)=>(Y2[n]&&!Y2[n].isLegacyOrgFlag&&(t[n]=r[n]),t),{})});var Gvr,Uue,Wvr,thi=et(()=>{"use strict";Uue=()=>(Gvr||(Gvr=new Wvr),Gvr),Wvr=class{listeners=new Set;flags=new Map;listen(t){return this.listeners.add(t),()=>this.listeners.delete(t)}async setFlag(t,n,i,o){let s=`${t}:${n}`,a=this.flags.get(s);a||(a={},this.flags.set(s,a));let l=a[i];if(a[i]=o,l!==o)for(let c of this.listeners)c(t,n,i,l,o)}getFlags(t){let n={};for(let i in t){let o=t[i].id,s=this.flags.get(`${i}:${o}`);s&&(n={...n,...s})}return n}async clear(){this.flags=new Map,this.listeners=new Set}}});var Hvr,z2t,rhi=et(()=>{"use strict";XY();ugt();QCr();thi();Hvr=class{constructor(t){this.logger=t}async initialize(t){}get isInitialized(){return!0}async identify(t){return new Kq(Uue().getFlags(t),this.logger)}async close(){}setTestFlag(t,n,i,o){return Uue().setFlag(t,n,i,o)}},z2t=class extends Hvr{listeners=new Set;_context;flags;constructor(t){super(t),this.flags=new sN(this.logger,()=>Uue().getFlags(this.currentContext),n=>Uue().getFlags(this.currentContext)[n]),Uue().listen(this.onFlagChange.bind(this))}async initialize(t){await super.initialize(t),this._context=t.context}get isInitialized(){return!!this._context}get currentContext(){return F3(!!this._context,"MockFeatureFlagsClientService is not initialized",this.logger),this._context}get currentFlags(){return this.flags}onChange(t){return this.listeners.add(t),()=>this.listeners.delete(t)}async identify(t){let n=Uue(),i=n.getFlags(this.currentContext);this._context=t;let o=n.getFlags(t),s={},a=new Set([...Object.keys(o),...Object.keys(i)]);for(let c of a){let u=o[c],d=i[c];u!==d&&(s[c]={current:u,previous:d})}let l=uI();return await setTimeout(()=>{this.notifyListeners(s),l.resolve(this.flags)}),l.promise}notifyListeners(t){for(let n of this.listeners)n(t)}onFlagChange(t,n,i,o,s){this.currentContext[t]?.id===n&&this.notifyListeners({[i]:{current:s,previous:o}})}}});var aK=et(()=>{"use strict";m2t();sfi();y2t();QCr();ehi();rhi()});var gqd,Vvr,Kvr,Yvr,nhi,$2,Jq=et(()=>{"use strict";cn();kCr();aK();gqd=w.object({orgID:h2t.optional(),userID:g2t.optional(),requestID:w.string().optional()}),Kvr=()=>(Vvr||(Vvr={logContext:{},featureFlags:new Kq({})}),Vvr),Yvr=Kvr,nhi=r=>{let t=Yvr;return Yvr=r,t},$2=()=>Yvr()});var ihi,ohi,shi=et(()=>{"use strict";ihi=()=>{let r=new WeakSet;return(t,n)=>{if(typeof n=="object"&&n!==null){if(r.has(n))return;r.add(n)}return n}},ohi=r=>{switch(typeof r){case"object":if(r===null)return"null";try{switch(r?.constructor?.name){case"Object":case"Array":return JSON.stringify(r,ihi());case"Set":return JSON.stringify(Array.from(r),ihi());case"Error":{let t=r.toString();try{let n=JSON.stringify(r);n!=="{}"&&(t=n)}catch{}return t}case"Null":return"null";case"Function":case"RegExp":return r.toString();case"Date":return r.toDateString();case"ReferenceError":case"TypeError":case"SyntaxError":case"JestAssertionError":return r.toString();case void 0:default:return`attempting to stringify object w/ constructor: ${r?.constructor?.name}; ${JSON.stringify(r)}`}}catch(t){return`Error converting object to string: ${t}`}case"undefined":return typeof r;case"bigint":case"number":case"symbol":return r.toString();case"boolean":return String(r);case"string":return r;default:return"Can't convert arg to string"}}});var Jvr,Zvr,q2t,Dm,aN,ahi,lhi,e4r,qul,Xvr,$vr,uhi,Uul,jul,chi,dhi,t4r,d0,Lg=et(()=>{"use strict";Jvr=Ct(n0i()),Zvr=Ct(Gq()),q2t=Ct(us()),Dm=Ct(Pue());cn();Jq();shi();aN=r=>(0,q2t.cloneDeepWith)(r,(t,n)=>{if(typeof t=="string"&&typeof n=="string"&&n.match(/(password|token|keypair)/i))return"<REDACTED>"}),ahi={emerg:"error",alert:"error",crit:"error",error:"error",warn:"warn",notice:"info",info:"info",debug:"debug"},lhi=Dm.default.format((r,t)=>({...r,...$2().logContext})),e4r=w.object({NODE_ENV:w.string().default("development"),LOG_LEVEL:w.string().default("info").optional(),REACT_APP_COALESCE_VERSION:w.string().default("").optional(),HOSTNAME:w.string().default("").optional(),RUNTIME_ENVIRONMENT:w.string().default("").optional()}),qul=(r,t)=>({host:"http-intake.logs.datadoghq.com",path:`/v1/input/pub04bd017317b60c96b62874179d82ff97?ddtags=env:${t.NODE_ENV},coalesceSoftwareVersion:${t.REACT_APP_COALESCE_VERSION}&ddsource=nodejs&service=${r}`,ssl:!0}),Xvr=class extends Zvr.default{constructor(t){super(t)}log(t,n){Jvr.datadogLogs.logger&&Jvr.datadogLogs.logger.log(t,{},ahi[t.level]??"info"),n()}},$vr=class extends Zvr.default{httpTransport;constructor(t,n){super(n),this.httpTransport=t}log(t,n){this.httpTransport.log?.({...t,level:t.level,status:ahi[t.level]},n)}},uhi=(r,t)=>Dm.default.createLogger({levels:Dm.default.config.syslog.levels,level:t.LOG_LEVEL,format:Dm.default.format.combine(Dm.default.format.timestamp(),lhi(),Dm.default.format.json()),defaultMeta:{service:r,category:"global",coalescesoftwareversion:t.REACT_APP_COALESCE_VERSION,hostname:t.HOSTNAME,env:t.RUNTIME_ENVIRONMENT},transports:[new Dm.default.transports.Console,new $vr(new Dm.default.transports.Http(qul(r,t)))]}),Uul=()=>Dm.default.format.combine(Dm.default.format.timestamp(),Dm.default.format.colorize(),Dm.default.format.printf(r=>`${r.timestamp}|${r.category}|${ohi((0,q2t.omit)(r,"timestamp","message","category","hostname","env","coalescesoftwareversion","level","service"))}|${r.level}:${r.message}`)),jul=r=>new Dm.default.transports.Console({format:Uul(),silent:r}),chi=(r,t)=>Dm.default.createLogger({levels:Dm.default.config.syslog.levels,level:r.LOG_LEVEL,format:Dm.default.format.combine(Dm.default.format.timestamp(),lhi(),Dm.default.format.json()),defaultMeta:{service:"Frontend",category:"frontend",coalescesoftwareversion:r.REACT_APP_COALESCE_VERSION,hostname:r.HOSTNAME,env:r.RUNTIME_ENVIRONMENT},transports:[new Xvr,jul(!t)]}),t4r=r=>{dhi=r},d0=()=>dhi});var r4r,phi=et(()=>{"use strict";Lg();r4r=(r,t,n,...i)=>{let o=d0(),s={...t,area:r};o[n](...i,s)}});var lK,fhi,Tw,FEe,U2t=et(()=>{"use strict";wr();Lg();phi();lK=class{valid=!1;failures;originalValue;constructor(t,n){this.originalValue=aN(t),this.failures=n}get failureMessage(){return this.failures.map(t=>t.path.length>0?`${t.path}: ${t.message}`:t.message).join(`
|
|
177
177
|
`)}},fhi=null,Tw=class extends mt{code;result;constructor(t,n,i=400){super(t,typeof n=="string"?n:n?.failureMessage),this.result=typeof n=="string"?void 0:n,this.code=i}statusCode(){return this.code}get validationResult(){return this.result}get failureDetails(){return this.result?`${this.message}: ${this.result.failureMessage}`:this.message}},FEe=class{constructor(t){this.name=t}is(t){return this.validate(t).valid}assert(t,n){return this.doAssert(t,!0,n)}verify(t,n){let i=!!(n?.throwOnVerify??!1);return this.doAssert(t,i,n)}doAssert(t,n,i){let{logContext:o,logArea:s,failureLogLevel:a,successLogLevel:l,statusCode:c,errorMessage:u}=i||{},d=this.validate(t),p=i?.additionalValidation?.(t)||{valid:!0},f=p.valid?d:p;if(!f.valid){let A=typeof u=="function"?u(f):u??`Found ${f.failures.length} validation failure(s) for ${this.name}`,h=new Tw(A,f,c);if(a!==fhi){let y=t;y&&typeof y=="object"&&(y=aN(y)),r4r(s,o,a||"error",h,y)}if(n)throw h;return t}return l&&r4r(s,o,l,`${this.name} validation succeeded`,t),f.value}}});var n4r,Pd,i4r=et(()=>{"use strict";Lg();wr();U2t();n4r=class extends FEe{constructor(n,i){super(n);this.runtype=i;if(!i)throw new mt(`Missing runtype for ${n} validator. Did you use a circular import?`)}validate(n){try{let i=this.runtype.validate(n);return i.success?{valid:!0,value:n}:this.createValidationFailedResult(i,n)}catch(i){return d0().error(`RuntypesValidator: Unable to validate ${this.name} value. `,`
|
|
178
178
|
Error: `,i,`
|
|
179
|
-
Value: `,n),new lK(n,[{path:"",message:"value triggered unknown runtypes error"}])}}createValidationFailedResult(n,i){let o=[],s=(a,l)=>{for(let[c,u]of Object.entries(l)){let d=a.concat(c);typeof u=="string"?o.push({path:d.join("."),message:u}):s(d,u)}};if(n.code==="TYPE_INCORRECT"||n.code==="CONSTRAINT_FAILED")o.push({path:"",message:n.message});else{let a=n.details;a&&s([],a)}return new lK(i,o)}},Pd=(r,t)=>new n4r(r,t)});var s4r,Gul,Wul,o4r,Ir,Ahi=et(()=>{"use strict";s4r=Ct(us());wr();Lg();U2t();cn();Gul=r=>r.code==="unrecognized_keys"?r.keys.length:r.code==="invalid_type"&&r.received==="undefined"&&r.message==="Required"?1:r.code==="invalid_literal"?10:0,Wul=r=>s4r.default.sum(r.issues.map(t=>Gul(t))),o4r=class extends FEe{constructor(n,i){super(n);this.zodType=i;if(!i)throw new mt(`Missing Zod type for ${n} validator. Did you use a circular import?`)}convertZodError=n=>{let i=[];for(let o of n.issues)if(o.code==="invalid_union"){let s=s4r.default.minBy(o.unionErrors,a=>Wul(a));s&&i.push(...this.convertZodError(s))}else i.push({path:o.path.join("."),message:o.message});return i};validate(n){try{let i=this.zodType.safeParse(n);if(i.success)return{valid:!0,value:i.data};let o=this.convertZodError(i.error);return new lK(n,o)}catch(i){let o=i instanceof w.ZodError?[i.flatten(),i.issues]:[];return d0().error(`ZodValidator: Unable to validate ${this.name} value`,"error: ",i,"value: ",n,...o),new lK(n,[{path:"",message:"value triggered unknown Zod error"}])}}},Ir=(r,t)=>new o4r(r,t)});var zEe=et(()=>{"use strict";i4r();U2t();Ahi()});var Hul,Vul,hhi,j2t,nqe,a4r,G2t,l4r,u4r,c4r,d4r,p4r,f4r,W2t,iqe,A4r,ghi,tx=et(()=>{"use strict";cn();V1r();xY();h3r();M3r();rEe();pli();zq();zEe();Hul=w.object({auth:w.string(),firestore:w.string(),storage:w.string()}),Vul=w.object({apiKey:w.string(),authDomain:w.string(),projectId:w.string(),storageBucket:w.string(),messagingSenderId:w.string(),appId:w.string(),measurementId:w.string(),emulatorInfo:Hul.optional()}),hhi=Ir("FirebaseConfig",Vul),j2t=r=>{q7("firestore.delete",{path:r})},nqe=r=>{q7("firestore.set",{path:r})},a4r=r=>{q7("firestore.update",{path:r})},G2t=r=>{q7("firestore.get",{path:r})},l4r=r=>{q7("firestore.transaction.get",{path:r})},u4r=r=>{q7("firestore.transaction.set",{path:r})},c4r=r=>{q7("firestore.transaction.update",{path:r})},d4r=r=>{q7("firestore.transaction.delete",{path:r})},p4r=()=>{q7("firestore.batch")},f4r=U8.getTracer("firestore"),W2t=async r=>(j2t(r.path),f4r.startActiveSpan(`delete ${r.path}`,async t=>{t.setAttribute("path",r.path),t.setAttribute("operation","delete");let n=await r.delete();return t.end(),n})),iqe=(r,t,n)=>(nqe(r.path),f4r.startActiveSpan(`set ${r.path}`,async i=>{if(i.setAttribute("path",r.path),i.setAttribute("operation","set"),n){let o=await r.set(t,n);return i.end(),o}else{let o=await r.set(t);return i.end(),o}})),A4r=r=>(G2t(r.path),f4r.startActiveSpan(`get ${r.path}`,async t=>{t.setAttribute("path",r.path),t.setAttribute("operation","get");let n=await r.get();return t.end(),n})),ghi=async(r,t=1e3)=>{let n=()=>{},i=new Promise(o=>{n=r.onSnapshot(s=>{s.metadata.hasPendingWrites||o(s)})});return await u4(t,`Timed out in GetDocumentNoPendingWrites after ${t} ms`,i).finally(n)}});var H2t,V2t,mhi,jue=et(()=>{"use strict";H2t={emerg:"emerg",info:"info",error:"error",debug:"debug",assert:"assert",warn:"warn",alert:"alert",app:"app"},V2t={LEVELS:{emerg:0,assert:1,alert:2,error:3,app:4,info:5,debug:6,warn:4},COLORS:{emerg:"red",assert:"yellow",alert:"yellow",warn:"yellow",error:"cyan",app:"blue",info:"green",debug:"magenta"}},mhi=["Authorization","Token","Password","Secret","idToken","id_token","clientID","clientSecret"]});var h4r,ww,oqe=et(()=>{"use strict";h4r=["ACTUAL_STATE","ADVANCED_DEPLOY","APP","AUTH","BULK_WRITE","CLI","CLI_INTERNAL","COLUMN_LINEAGE","COLUMN_METADATA","COMMON","CONNECTION","DEBUG","DEPLOY","DNS","DOCS","DRAG","ENTITY_API","ENV","ENVIRONMENTS","ERROR_OPERATIONS","FIREBASE","FOLDERS","GIT","GIT_SETTINGS","GOOGLE_DEBUG","GRAPH","HEARTBEAT","INTEGRATIONS","JDBC_SERVICE","JEST","JOBS","JSON_PARSER","LIGHTNING_FS","LISTENERS","MACROS","MAPPING_GRID","METADATA_HYDRATION","METADATA_OPERATIONS","NARROW_METADATA","NODE_TYPES","ORGS","ORG_BOOTSTRAP","ORG_SCANNER","ORG_SETTINGS","ORG_UPGRADE","PACKAGES","PACKAGES_BACKEND","PACKAGE_NAMESPACES","PACKAGE_REGISTRY","PALETTE","PARTNER_CONNECT","PENDO","PERFORMANCE","PIPELINE","PLAN","PLATFORM","PRESYNC","PROBLEM_SCANNER","PROJECTS","RBAC","RENDERER","RUNNER","RUNNER_BACKEND","RUN_RESULTS","RUN_TRANSACTION","SEARCH","SECRETS","SQL_PARSING","SQL_TESTING","STATE","STEPS","STORAGE_LOCATIONS","STRUMENTA","SYSTEM_EMAILS","TEMPLATE_EDITOR","TESTING","TIMING_UTILS","TREE_OPERATIONS","TYPESENSE","UI","USERS","USER_ACTIVATION","USER_MANAGEMENT","USER_SETTINGS","VERSIONING","VERSION_CONTROL_ACTIONS","WORKSPACES","XML_PARSER","YAML","ZIP","AI_COLUMN_DESCRIPTIONS","AI_NODE_DESCRIPTIONS","AI_GIT_COMMIT_MESSAGE"],ww={...Object.fromEntries(h4r.map(r=>[r,{level:"info"}]))}});var Rw,qEe,zg,Y2t=et(()=>{"use strict";Rw=(r,t,n,i,o)=>({orgID:r,workspaceID:t,userID:n,runID:i,nodeID:o}),qEe=(r,t)=>{r.runID=t},zg={}});var Ehi=I(yhi=>{"use strict";Object.defineProperty(yhi,"__esModule",{value:!0})});var g4r=I(K2t=>{"use strict";Object.defineProperty(K2t,"__esModule",{value:!0});K2t.Failcode=void 0;K2t.Failcode={TYPE_INCORRECT:"TYPE_INCORRECT",VALUE_INCORRECT:"VALUE_INCORRECT",KEY_INCORRECT:"KEY_INCORRECT",CONTENT_INCORRECT:"CONTENT_INCORRECT",ARGUMENT_INCORRECT:"ARGUMENT_INCORRECT",RETURN_INCORRECT:"RETURN_INCORRECT",CONSTRAINT_FAILED:"CONSTRAINT_FAILED",PROPERTY_MISSING:"PROPERTY_MISSING",PROPERTY_PRESENT:"PROPERTY_PRESENT",NOTHING_EXPECTED:"NOTHING_EXPECTED"}});var jEe=I(UEe=>{"use strict";var Yul=UEe&&UEe.__extends||function(){var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},r(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(UEe,"__esModule",{value:!0});UEe.ValidationError=void 0;var Kul=function(r){Yul(t,r);function t(n){var i=r.call(this,n.message)||this;return i.name="ValidationError",i.code=n.code,n.details!==void 0&&(i.details=n.details),Object.setPrototypeOf(i,t.prototype),i}return t}(Error);UEe.ValidationError=Kul});var sqe=I(m4r=>{"use strict";Object.defineProperty(m4r,"__esModule",{value:!0});var J2t=function(r){return function(t){switch(t.tag){case"literal":return'"'.concat(String(t.value),'"');case"string":return"string";case"brand":return t.brand;case"constraint":return t.name||J2t(r)(t.underlying);case"union":return t.alternatives.map(J2t(r)).join(" | ");case"intersect":return t.intersectees.map(J2t(r)).join(" & ");default:break}return"`${".concat(y5(!1,r)(t),"}`")}},X2t=function(r){return function(t){switch(t.tag){case"literal":return String(t.value);case"brand":return"${".concat(t.brand,"}");case"constraint":return t.name?"${".concat(t.name,"}"):X2t(r)(t.underlying);case"union":if(t.alternatives.length===1){var n=t.alternatives[0];return X2t(r)(n.reflect)}break;case"intersect":if(t.intersectees.length===1){var n=t.intersectees[0];return X2t(r)(n.reflect)}break;default:break}return"${".concat(y5(!1,r)(t),"}")}},y5=function(r,t){return function(n){var i=function(u){return r?"(".concat(u,")"):u};if(t.has(n))return i("CIRCULAR ".concat(n.tag));t.add(n);try{switch(n.tag){case"unknown":case"never":case"void":case"boolean":case"number":case"bigint":case"string":case"symbol":case"function":return n.tag;case"literal":{var o=n.value;return typeof o=="string"?'"'.concat(o,'"'):String(o)}case"template":{if(n.strings.length===0)return'""';if(n.strings.length===1)return'"'.concat(n.strings[0],'"');if(n.strings.length===2&&n.strings.every(function(u){return u===""})){var s=n.runtypes[0];return J2t(t)(s.reflect)}var a=!1,l=n.strings.reduce(function(u,d,p){var f=u+d,A=n.runtypes[p];if(A){var h=X2t(t)(A.reflect);return!a&&h.startsWith("$")&&(a=!0),f+h}else return f},"");return a?"`".concat(l,"`"):'"'.concat(l,'"')}case"array":return"".concat(bhi(n)).concat(y5(!0,t)(n.element),"[]");case"dictionary":return"{ [_: ".concat(n.key,"]: ").concat(y5(!1,t)(n.value)," }");case"record":{var c=Object.keys(n.fields);return c.length?"{ ".concat(c.map(function(u){return"".concat(bhi(n)).concat(u).concat(Jul(n,u),": ").concat(n.fields[u].tag==="optional"?y5(!1,t)(n.fields[u].underlying):y5(!1,t)(n.fields[u]),";")}).join(" ")," }"):"{}"}case"tuple":return"[".concat(n.components.map(y5(!1,t)).join(", "),"]");case"union":return i("".concat(n.alternatives.map(y5(!0,t)).join(" | ")));case"intersect":return i("".concat(n.intersectees.map(y5(!0,t)).join(" & ")));case"optional":return y5(r,t)(n.underlying)+" | undefined";case"constraint":return n.name||y5(r,t)(n.underlying);case"instanceof":return n.ctor.name;case"brand":return y5(r,t)(n.entity)}}finally{t.delete(n)}throw Error("impossible")}};m4r.default=y5(!1,new Set);function Jul(r,t){var n=r.isPartial,i=r.fields;return n||t!==void 0&&i[t].tag==="optional"?"?":""}function bhi(r){var t=r.isReadonly;return t?"readonly ":""}});var pf=I(kd=>{"use strict";var y4r=kd&&kd.__assign||function(){return y4r=Object.assign||function(r){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r},y4r.apply(this,arguments)};Object.defineProperty(kd,"__esModule",{value:!0});kd.FAILURE=kd.SUCCESS=kd.enumerableKeysOf=kd.typeOf=kd.hasKey=void 0;var lN=g4r(),Gue=sqe();function Xul(r,t){return typeof t=="object"&&t!==null&&r in t}kd.hasKey=Xul;var $ul=function(r){var t,n,i;return typeof r=="object"?r===null?"null":Array.isArray(r)?"array":((t=r.constructor)===null||t===void 0?void 0:t.name)==="Object"?"object":(i=(n=r.constructor)===null||n===void 0?void 0:n.name)!==null&&i!==void 0?i:typeof r:typeof r};kd.typeOf=$ul;var Zul=function(r){return typeof r=="object"&&r!==null?Reflect.ownKeys(r).filter(function(t){var n,i;return(i=(n=r.propertyIsEnumerable)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!0}):[]};kd.enumerableKeysOf=Zul;function ecl(r){return{success:!0,value:r}}kd.SUCCESS=ecl;kd.FAILURE=Object.assign(function(r,t,n){return y4r({success:!1,code:r,message:t},n?{details:n}:{})},{TYPE_INCORRECT:function(r,t){var n="Expected ".concat(r.tag==="template"?"string ".concat((0,Gue.default)(r)):(0,Gue.default)(r),", but was ").concat((0,kd.typeOf)(t));return(0,kd.FAILURE)(lN.Failcode.TYPE_INCORRECT,n)},VALUE_INCORRECT:function(r,t,n){return(0,kd.FAILURE)(lN.Failcode.VALUE_INCORRECT,"Expected ".concat(r," ").concat(String(t),", but was ").concat(String(n)))},KEY_INCORRECT:function(r,t,n){return(0,kd.FAILURE)(lN.Failcode.KEY_INCORRECT,"Expected ".concat((0,Gue.default)(r)," key to be ").concat((0,Gue.default)(t),", but was ").concat((0,kd.typeOf)(n)))},CONTENT_INCORRECT:function(r,t){var n="Expected ".concat((0,Gue.default)(r),", but was incompatible");return(0,kd.FAILURE)(lN.Failcode.CONTENT_INCORRECT,n,t)},ARGUMENT_INCORRECT:function(r){return(0,kd.FAILURE)(lN.Failcode.ARGUMENT_INCORRECT,r)},RETURN_INCORRECT:function(r){return(0,kd.FAILURE)(lN.Failcode.RETURN_INCORRECT,r)},CONSTRAINT_FAILED:function(r,t){var n=t?": ".concat(t):"";return(0,kd.FAILURE)(lN.Failcode.CONSTRAINT_FAILED,"Failed constraint check for ".concat((0,Gue.default)(r)).concat(n))},PROPERTY_MISSING:function(r){var t="Expected ".concat((0,Gue.default)(r),", but was missing");return(0,kd.FAILURE)(lN.Failcode.PROPERTY_MISSING,t)},PROPERTY_PRESENT:function(r){var t="Expected nothing, but was ".concat((0,kd.typeOf)(r));return(0,kd.FAILURE)(lN.Failcode.PROPERTY_PRESENT,t)},NOTHING_EXPECTED:function(r){var t="Expected nothing, but was ".concat((0,kd.typeOf)(r));return(0,kd.FAILURE)(lN.Failcode.NOTHING_EXPECTED,t)}})});var Chi=I(uK=>{"use strict";var tcl=uK&&uK.__read||function(r,t){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var i=n.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s},rcl=uK&&uK.__spreadArray||function(r,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return r.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(uK,"__esModule",{value:!0});uK.Contract=void 0;var ncl=jEe(),icl=pf();function ocl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=r.length-1,i=r.slice(0,n),o=r[n];return{enforce:function(s){return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];if(a.length<i.length){var c="Expected ".concat(i.length," arguments but only received ").concat(a.length),u=icl.FAILURE.ARGUMENT_INCORRECT(c);throw new ncl.ValidationError(u)}for(var d=0;d<i.length;d++)i[d].check(a[d]);return o.check(s.apply(void 0,rcl([],tcl(a),!1)))}}}}uK.Contract=ocl});var Shi=I(cK=>{"use strict";var scl=cK&&cK.__read||function(r,t){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var i=n.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s},acl=cK&&cK.__spreadArray||function(r,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return r.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(cK,"__esModule",{value:!0});cK.AsyncContract=void 0;var Ihi=jEe(),vhi=pf();function lcl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=r.length-1,i=r.slice(0,n),o=r[n];return{enforce:function(s){return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];if(a.length<i.length){var c="Expected ".concat(i.length," arguments but only received ").concat(a.length),u=vhi.FAILURE.ARGUMENT_INCORRECT(c);throw new Ihi.ValidationError(u)}for(var d=0;d<i.length;d++)i[d].check(a[d]);var p=s.apply(void 0,acl([],scl(a),!1));if(!(p instanceof Promise)){var c="Expected function to return a promise, but instead got ".concat(p),u=vhi.FAILURE.RETURN_INCORRECT(c);throw new Ihi.ValidationError(u)}return p.then(o.check)}}}}cK.AsyncContract=lcl});var _hi=I(uN=>{"use strict";var ucl=uN&&uN.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&r[t],i=0;if(n)return n.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ccl=uN&&uN.__read||function(r,t){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var i=n.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s};Object.defineProperty(uN,"__esModule",{value:!0});uN.when=uN.match=void 0;function dcl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return function(n){var i,o;try{for(var s=ucl(r),a=s.next();!a.done;a=s.next()){var l=ccl(a.value,2),c=l[0],u=l[1];if(c.guard(n))return u(n)}}catch(d){i={error:d}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}throw new Error("No alternatives were matched")}}uN.match=dcl;function pcl(r,t){return[r,t]}uN.when=pcl});var YA=I(pK=>{"use strict";Object.defineProperty(pK,"__esModule",{value:!0});pK.innerValidate=pK.create=pK.isRuntype=void 0;var dK=z3(),fcl=sqe(),Acl=jEe(),Ohi=pf(),Thi=Symbol(),hcl=function(r){return(0,Ohi.hasKey)(Thi,r)};pK.isRuntype=hcl;function gcl(r,t){return t[Thi]=!0,t.check=n,t.assert=n,t._innerValidate=function(p,f){return f.has(p,t)?(0,Ohi.SUCCESS)(p):r(p,f)},t.validate=function(p){return t._innerValidate(p,ycl())},t.guard=i,t.Or=o,t.And=s,t.optional=a,t.nullable=l,t.withConstraint=c,t.withGuard=u,t.withBrand=d,t.reflect=t,t.toString=function(){return"Runtype<".concat((0,fcl.default)(t),">")},t;function n(p){var f=t.validate(p);if(f.success)return f.value;throw new Acl.ValidationError(f)}function i(p){return t.validate(p).success}function o(p){return(0,dK.Union)(t,p)}function s(p){return(0,dK.Intersect)(t,p)}function a(){return(0,dK.Optional)(t)}function l(){return(0,dK.Union)(t,dK.Null)}function c(p,f){return(0,dK.Constraint)(t,p,f)}function u(p,f){return(0,dK.Constraint)(t,p,f)}function d(p){return(0,dK.Brand)(p,t)}}pK.create=gcl;function mcl(r,t,n){return r._innerValidate(t,n)}pK.innerValidate=mcl;function ycl(){var r=new WeakMap,t=function(i,o){if(!(i===null||typeof i!="object")){var s=r.get(i);r.set(i,s?s.set(o,!0):new WeakMap().set(o,!0))}},n=function(i,o){var s=r.get(i),a=s&&s.get(o)||!1;return t(i,o),a};return{has:n}}});var Z2t=I($2t=>{"use strict";Object.defineProperty($2t,"__esModule",{value:!0});$2t.Unknown=void 0;var Ecl=YA(),bcl=pf(),Ccl={tag:"unknown"};$2t.Unknown=(0,Ecl.create)(function(r){return(0,bcl.SUCCESS)(r)},Ccl)});var whi=I(eyt=>{"use strict";Object.defineProperty(eyt,"__esModule",{value:!0});eyt.Never=void 0;var Icl=YA(),vcl=pf(),Scl={tag:"never"};eyt.Never=(0,Icl.create)(vcl.FAILURE.NOTHING_EXPECTED,Scl)});var Rhi=I(tyt=>{"use strict";Object.defineProperty(tyt,"__esModule",{value:!0});tyt.Void=void 0;var _cl=Z2t();tyt.Void=_cl.Unknown});var E4r=I(GEe=>{"use strict";var ryt=GEe&&GEe.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&r[t],i=0;if(n)return n.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(GEe,"__esModule",{value:!0});GEe.Union=void 0;var nyt=YA(),aqe=pf();function Ocl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return function(a){for(var l=0;l<r.length;l++)if(r[l].guard(a))return o[l](a)}},i={tag:"union",alternatives:r,match:n};return(0,nyt.create)(function(o,s){var a,l,c,u,d,p,f,A;if(typeof o!="object"||o===null){try{for(var h=ryt(r),y=h.next();!y.done;y=h.next()){var C=y.value;if((0,nyt.innerValidate)(C,o,s).success)return(0,aqe.SUCCESS)(o)}}catch(J){a={error:J}}finally{try{y&&!y.done&&(l=h.return)&&l.call(h)}finally{if(a)throw a.error}}return aqe.FAILURE.TYPE_INCORRECT(i,o)}var v={};try{for(var O=ryt(r),T=O.next();!T.done;T=O.next()){var C=T.value;if(C.reflect.tag==="record"){var R=function(Y){var L=C.reflect.fields[Y];L.tag==="literal"&&(v[Y]?v[Y].every(function(X){return X!==L.value})&&v[Y].push(L.value):v[Y]=[L.value])};for(var N in C.reflect.fields)R(N)}}}catch(J){c={error:J}}finally{try{T&&!T.done&&(u=O.return)&&u.call(O)}finally{if(c)throw c.error}}for(var N in v)if(v[N].length===r.length)try{for(var z=(d=void 0,ryt(r)),W=z.next();!W.done;W=z.next()){var C=W.value;if(C.reflect.tag==="record"){var V=C.reflect.fields[N];if(V.tag==="literal"&&(0,aqe.hasKey)(N,o)&&o[N]===V.value)return(0,nyt.innerValidate)(C,o,s)}}}catch(Y){d={error:Y}}finally{try{W&&!W.done&&(p=z.return)&&p.call(z)}finally{if(d)throw d.error}}try{for(var $=ryt(r),K=$.next();!K.done;K=$.next()){var F=K.value;if((0,nyt.innerValidate)(F,o,s).success)return(0,aqe.SUCCESS)(o)}}catch(J){f={error:J}}finally{try{K&&!K.done&&(A=$.return)&&A.call($)}finally{if(f)throw f.error}}return aqe.FAILURE.TYPE_INCORRECT(i,o)},i)}GEe.Union=Ocl});var I4r=I(m4=>{"use strict";Object.defineProperty(m4,"__esModule",{value:!0});m4.Nullish=m4.Null=m4.Undefined=m4.Literal=m4.literal=void 0;var Tcl=YA(),Bhi=pf(),wcl=E4r();function b4r(r){return Array.isArray(r)?String(r.map(String)):typeof r=="bigint"?String(r)+"n":String(r)}m4.literal=b4r;function C4r(r){var t={tag:"literal",value:r};return(0,Tcl.create)(function(n){return n===r?(0,Bhi.SUCCESS)(n):Bhi.FAILURE.VALUE_INCORRECT("literal","`".concat(b4r(r),"`"),"`".concat(b4r(n),"`"))},t)}m4.Literal=C4r;m4.Undefined=C4r(void 0);m4.Null=C4r(null);m4.Nullish=(0,wcl.Union)(m4.Null,m4.Undefined)});var Phi=I(cN=>{"use strict";var fK=cN&&cN.__read||function(r,t){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var i=n.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s},v4r=cN&&cN.__spreadArray||function(r,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return r.concat(s||Array.prototype.slice.call(t))},xhi=cN&&cN.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&r[t],i=0;if(n)return n.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(cN,"__esModule",{value:!0});cN.Template=void 0;var iyt=YA(),Mhi=sqe(),Xq=pf(),Nhi=I4r(),S4r=function(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},Rcl=function(r){if(0<r.length&&Array.isArray(r[0])){var t=fK(r),n=t[0],i=t.slice(1);return[Array.from(n),i]}else{var o=r,n=o.reduce(function(l,c){return(0,iyt.isRuntype)(c)?l.push(""):l.push(l.pop()+String(c)),l},[""]),i=o.filter(iyt.isRuntype);return[n,i]}},Bcl=function(r,t){for(var n=0;n<t.length;)switch(t[n].reflect.tag){case"literal":{var i=t[n];t.splice(n,1);var o=String(i.value);r.splice(n,2,r[n]+o+r[n+1]);break}case"template":{var s=t[n];t.splice.apply(t,v4r([n,1],fK(s.runtypes),!1));var a=s.strings;if(a.length===1)r.splice(n,2,r[n]+a[0]+r[n+1]);else{var l=a[0],c=a.slice(1,-1),u=a[a.length-1];r.splice.apply(r,v4r(v4r([n,2,r[n]+l],fK(c),!1),[u+r[n+1]],!1))}break}case"union":{var d=t[n];if(d.alternatives.length===1)try{var p=cqe(d);t.splice(n,1);var o=String(p.value);r.splice(n,2,r[n]+o+r[n+1]);break}catch{n++;break}else{n++;break}}case"intersect":{var f=t[n];if(f.intersectees.length===1)try{var A=cqe(f);t.splice(n,1);var o=String(A.value);r.splice(n,2,r[n]+o+r[n+1]);break}catch{n++;break}else{n++;break}}default:n++;break}},xcl=function(r){var t=fK(Rcl(r),2),n=t[0],i=t[1];return Bcl(n,i),[n,i]},cqe=function(r){switch(r.reflect.tag){case"literal":return r;case"brand":return cqe(r.reflect.entity);case"union":if(r.reflect.alternatives.length===1)return cqe(r.reflect.alternatives[0]);break;case"intersect":if(r.reflect.intersectees.length===1)return cqe(r.reflect.intersectees[0]);break;default:break}throw void 0},Dhi=function(r){return r},_4r={string:[function(r){return globalThis.String(r)},".*"],number:[function(r){return globalThis.Number(r)},"[+-]?(?:\\d*\\.\\d+|\\d+\\.\\d*|\\d+)(?:[Ee][+-]?\\d+)?","0[Bb][01]+","0[Oo][0-7]+","0[Xx][0-9A-Fa-f]+"],bigint:[function(r){return globalThis.BigInt(r)},"-?[1-9]d*"],boolean:[function(r){return r!=="false"},"true","false"],null:[function(){return null},"null"],undefined:[function(){},"undefined"]},lqe=function(r){switch(r.tag){case"literal":{var t=fK(_4r[(0,Xq.typeOf)(r.value)]||[Dhi],1),n=t[0];return n}case"brand":return lqe(r.entity);case"constraint":return lqe(r.underlying);case"union":return r.alternatives.map(lqe);case"intersect":return r.intersectees.map(lqe);default:var i=fK(_4r[r.tag]||[Dhi],1),o=i[0];return o}},O4r=function(r,t){return function(n){var i,o,s,a,l=lqe(r);if(Array.isArray(l))switch(r.tag){case"union":try{for(var c=xhi(r.alternatives),u=c.next();!u.done;u=c.next()){var d=u.value,p=O4r(d.reflect,t)(n);if(p.success)return p}}catch(C){i={error:C}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return Xq.FAILURE.TYPE_INCORRECT(r,n);case"intersect":try{for(var f=xhi(r.intersectees),A=f.next();!A.done;A=f.next()){var h=A.value,p=O4r(h.reflect,t)(n);if(!p.success)return p}}catch(C){s={error:C}}finally{try{A&&!A.done&&(a=f.return)&&a.call(f)}finally{if(s)throw s.error}}return(0,Xq.SUCCESS)(n);default:throw Error("impossible")}else{var y=l,p=(0,iyt.innerValidate)(r,y(n),t);return!p.success&&p.code==="VALUE_INCORRECT"&&r.tag==="literal"?Xq.FAILURE.VALUE_INCORRECT("literal",'"'.concat((0,Nhi.literal)(r.value),'"'),'"'.concat(n,'"')):p}}},uqe=function(r){switch(r.tag){case"literal":return S4r(String(r.value));case"brand":return uqe(r.entity);case"constraint":return uqe(r.underlying);case"union":return r.alternatives.map(uqe).join("|");case"template":return r.strings.map(S4r).reduce(function(i,o,s){var a=i+o,l=r.runtypes[s];return l?a+"(?:".concat(uqe(l.reflect),")"):a},"");default:var t=fK(_4r[r.tag]||[void 0,".*"]),n=t.slice(1);return n.join("|")}},Mcl=function(r){var t=r.strings.map(S4r).reduce(function(n,i,o){var s=n+i,a=r.runtypes[o];return a?s+"(".concat(uqe(a.reflect),")"):s},"");return new RegExp("^".concat(t,"$"),"su")};function Dcl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=fK(xcl(r),2),i=n[0],o=n[1],s={tag:"template",strings:i,runtypes:o},a=Mcl(s),l=function(c,u){var d=c.match(a);if(d){for(var p=d.slice(1),f=0;f<o.length;f++){var A=o[f],h=p[f],y=O4r(A.reflect,u)(h);if(!y.success)return y}return(0,Xq.SUCCESS)(c)}else return Xq.FAILURE.VALUE_INCORRECT("string","".concat((0,Mhi.default)(s)),'"'.concat((0,Nhi.literal)(c),'"'))};return(0,iyt.create)(function(c,u){if(typeof c!="string")return Xq.FAILURE.TYPE_INCORRECT(s,c);var d=l(c,u);if(d.success)return(0,Xq.SUCCESS)(c);var p=Xq.FAILURE.VALUE_INCORRECT("string","".concat((0,Mhi.default)(s)),'"'.concat(c,'"'));return p.message!==d.message&&(p.message+=" (inner: ".concat(d.message,")")),p},s)}cN.Template=Dcl});var Lhi=I(oyt=>{"use strict";Object.defineProperty(oyt,"__esModule",{value:!0});oyt.Boolean=void 0;var Ncl=YA(),khi=pf(),Qhi={tag:"boolean"};oyt.Boolean=(0,Ncl.create)(function(r){return typeof r=="boolean"?(0,khi.SUCCESS)(r):khi.FAILURE.TYPE_INCORRECT(Qhi,r)},Qhi)});var qhi=I(syt=>{"use strict";Object.defineProperty(syt,"__esModule",{value:!0});syt.Number=void 0;var Pcl=YA(),Fhi=pf(),zhi={tag:"number"};syt.Number=(0,Pcl.create)(function(r){return typeof r=="number"?(0,Fhi.SUCCESS)(r):Fhi.FAILURE.TYPE_INCORRECT(zhi,r)},zhi)});var Ghi=I(ayt=>{"use strict";Object.defineProperty(ayt,"__esModule",{value:!0});ayt.BigInt=void 0;var kcl=YA(),Uhi=pf(),jhi={tag:"bigint"};ayt.BigInt=(0,kcl.create)(function(r){return typeof r=="bigint"?(0,Uhi.SUCCESS)(r):Uhi.FAILURE.TYPE_INCORRECT(jhi,r)},jhi)});var T4r=I(lyt=>{"use strict";Object.defineProperty(lyt,"__esModule",{value:!0});lyt.String=void 0;var Qcl=YA(),Whi=pf(),Hhi={tag:"string"};lyt.String=(0,Qcl.create)(function(r){return typeof r=="string"?(0,Whi.SUCCESS)(r):Whi.FAILURE.TYPE_INCORRECT(Hhi,r)},Hhi)});var Jhi=I(uyt=>{"use strict";Object.defineProperty(uyt,"__esModule",{value:!0});uyt.Symbol=void 0;var Khi=YA(),dqe=pf(),Lcl=function(r){var t={tag:"symbol",key:r};return(0,Khi.create)(function(n){if(typeof n!="symbol")return dqe.FAILURE.TYPE_INCORRECT(t,n);var i=globalThis.Symbol.keyFor(n);return i!==r?dqe.FAILURE.VALUE_INCORRECT("symbol key",Yhi(r),Yhi(i)):(0,dqe.SUCCESS)(n)},t)},Vhi={tag:"symbol"};uyt.Symbol=(0,Khi.create)(function(r){return typeof r=="symbol"?(0,dqe.SUCCESS)(r):dqe.FAILURE.TYPE_INCORRECT(Vhi,r)},Object.assign(Lcl,Vhi));var Yhi=function(r){return r===void 0?"undefined":'"'.concat(r,'"')}});var Zhi=I(cyt=>{"use strict";Object.defineProperty(cyt,"__esModule",{value:!0});cyt.Array=void 0;var Xhi=YA(),pqe=pf();function $hi(r,t){var n={tag:"array",isReadonly:t,element:r};return zcl((0,Xhi.create)(function(i,o){if(!Array.isArray(i))return pqe.FAILURE.TYPE_INCORRECT(n,i);var s=(0,pqe.enumerableKeysOf)(i),a=s.map(function(c){return(0,Xhi.innerValidate)(r,i[c],o)}),l=s.reduce(function(c,u){var d=a[u];return d.success||(c[u]=d.details||d.message),c},[]);return(0,pqe.enumerableKeysOf)(l).length!==0?pqe.FAILURE.CONTENT_INCORRECT(n,l):(0,pqe.SUCCESS)(i)},n))}function Fcl(r){return $hi(r,!1)}cyt.Array=Fcl;function zcl(r){return r.asReadonly=t,r;function t(){return $hi(r.element,!0)}}});var tgi=I(dyt=>{"use strict";Object.defineProperty(dyt,"__esModule",{value:!0});dyt.Tuple=void 0;var egi=YA(),WEe=pf();function qcl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n={tag:"tuple",components:r};return(0,egi.create)(function(i,o){if(!Array.isArray(i))return WEe.FAILURE.TYPE_INCORRECT(n,i);if(i.length!==r.length)return WEe.FAILURE.CONSTRAINT_FAILED(n,"Expected length ".concat(r.length,", but was ").concat(i.length));var s=(0,WEe.enumerableKeysOf)(i),a=s.map(function(c){return(0,egi.innerValidate)(r[c],i[c],o)}),l=s.reduce(function(c,u){var d=a[u];return d.success||(c[u]=d.details||d.message),c},[]);return(0,WEe.enumerableKeysOf)(l).length!==0?WEe.FAILURE.CONTENT_INCORRECT(n,l):(0,WEe.SUCCESS)(i)},n)}dyt.Tuple=qcl});var ngi=I(Bw=>{"use strict";var w4r=Bw&&Bw.__read||function(r,t){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var i=n.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s},R4r=Bw&&Bw.__spreadArray||function(r,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return r.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(Bw,"__esModule",{value:!0});Bw.Partial=Bw.Record=Bw.InternalRecord=void 0;var rgi=YA(),y4=pf();function AK(r,t,n){var i={tag:"record",isPartial:t,isReadonly:n,fields:r};return Gcl((0,rgi.create)(function(o,s){if(o==null)return y4.FAILURE.TYPE_INCORRECT(i,o);var a=(0,y4.enumerableKeysOf)(r);if(a.length!==0&&typeof o!="object")return y4.FAILURE.TYPE_INCORRECT(i,o);var l=R4r([],w4r(new Set(R4r(R4r([],w4r(a),!1),w4r((0,y4.enumerableKeysOf)(o)),!1))),!1),c=l.reduce(function(d,p){var f=(0,y4.hasKey)(p,r),A=(0,y4.hasKey)(p,o);if(f){var h=r[p],y=t||h.reflect.tag==="optional";if(A){var C=o[p];y&&C===void 0?d[p]=(0,y4.SUCCESS)(C):d[p]=(0,rgi.innerValidate)(h,C,s)}else y?d[p]=(0,y4.SUCCESS)(void 0):d[p]=y4.FAILURE.PROPERTY_MISSING(h.reflect)}else if(A){var C=o[p];d[p]=(0,y4.SUCCESS)(C)}else throw new Error("impossible");return d},{}),u=l.reduce(function(d,p){var f=c[p];return f.success||(d[p]=f.details||f.message),d},{});return(0,y4.enumerableKeysOf)(u).length!==0?y4.FAILURE.CONTENT_INCORRECT(i,u):(0,y4.SUCCESS)(o)},i))}Bw.InternalRecord=AK;function Ucl(r){return AK(r,!1,!1)}Bw.Record=Ucl;function jcl(r){return AK(r,!0,!1)}Bw.Partial=jcl;function Gcl(r){return r.asPartial=t,r.asReadonly=n,r.pick=i,r.omit=o,r.extend=s,r;function t(){return AK(r.fields,!0,r.isReadonly)}function n(){return AK(r.fields,r.isPartial,!0)}function i(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var c={};return a.forEach(function(u){c[u]=r.fields[u]}),AK(c,r.isPartial,r.isReadonly)}function o(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var c={},u=(0,y4.enumerableKeysOf)(r.fields);return u.forEach(function(d){a.includes(d)||(c[d]=r.fields[d])}),AK(c,r.isPartial,r.isReadonly)}function s(a){return AK(Object.assign({},r.fields,a),r.isPartial,r.isReadonly)}}});var x4r=I(HEe=>{"use strict";Object.defineProperty(HEe,"__esModule",{value:!0});HEe.Guard=HEe.Constraint=void 0;var Wcl=YA(),B4r=pf(),Hcl=Z2t();function Vcl(r,t,n){var i=n&&n.name,o=n&&n.args,s={tag:"constraint",underlying:r,constraint:t,name:i,args:o};return(0,Wcl.create)(function(a){var l=r.validate(a);if(!l.success)return l;var c=t(l.value);return typeof c=="string"?B4r.FAILURE.CONSTRAINT_FAILED(s,c):c?(0,B4r.SUCCESS)(l.value):B4r.FAILURE.CONSTRAINT_FAILED(s)},s)}HEe.Constraint=Vcl;var Ycl=function(r,t){return Hcl.Unknown.withGuard(r,t)};HEe.Guard=Ycl});var ogi=I(pyt=>{"use strict";Object.defineProperty(pyt,"__esModule",{value:!0});pyt.Dictionary=void 0;var igi=YA(),M4r=T4r(),Kcl=x4r(),Jcl=sqe(),Wue=pf(),Xcl=(0,Kcl.Constraint)(M4r.String,function(r){return!isNaN(+r)},{name:"number"});function $cl(r,t){var n=t===void 0||t==="string"?M4r.String:t==="number"?Xcl:t,i=(0,Jcl.default)(n),o={tag:"dictionary",key:i,value:r};return(0,igi.create)(function(s,a){if(s==null||typeof s!="object"||Object.getPrototypeOf(s)!==Object.prototype&&(!Array.isArray(s)||i==="string"))return Wue.FAILURE.TYPE_INCORRECT(o,s);var l=/^(?:NaN|-?\d+(?:\.\d+)?)$/,c=(0,Wue.enumerableKeysOf)(s),u=c.reduce(function(p,f){var A=typeof f=="string"&&l.test(f),h=A?globalThis.Number(f):f;return(A?!n.guard(h)&&!n.guard(f):!n.guard(h))?p[f]=Wue.FAILURE.KEY_INCORRECT(o,n.reflect,h):p[f]=(0,igi.innerValidate)(r,s[f],a),p},{}),d=c.reduce(function(p,f){var A=u[f];return A.success||(p[f]=A.details||A.message),p},{});return(0,Wue.enumerableKeysOf)(d).length!==0?Wue.FAILURE.CONTENT_INCORRECT(o,d):(0,Wue.SUCCESS)(s)},o)}pyt.Dictionary=$cl});var agi=I(VEe=>{"use strict";var Zcl=VEe&&VEe.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&r[t],i=0;if(n)return n.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(VEe,"__esModule",{value:!0});VEe.Intersect=void 0;var sgi=YA(),e0l=pf();function t0l(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n={tag:"intersect",intersectees:r};return(0,sgi.create)(function(i,o){var s,a;try{for(var l=Zcl(r),c=l.next();!c.done;c=l.next()){var u=c.value,d=(0,sgi.innerValidate)(u,i,o);if(!d.success)return d}}catch(p){s={error:p}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}return(0,e0l.SUCCESS)(i)},n)}VEe.Intersect=t0l});var lgi=I(fyt=>{"use strict";Object.defineProperty(fyt,"__esModule",{value:!0});fyt.Optional=void 0;var r0l=YA(),n0l=pf();function i0l(r){var t={tag:"optional",underlying:r};return(0,r0l.create)(function(n){return n===void 0?(0,n0l.SUCCESS)(n):r.validate(n)},t)}fyt.Optional=i0l});var dgi=I(Ayt=>{"use strict";Object.defineProperty(Ayt,"__esModule",{value:!0});Ayt.Function=void 0;var o0l=YA(),ugi=pf(),cgi={tag:"function"};Ayt.Function=(0,o0l.create)(function(r){return typeof r=="function"?(0,ugi.SUCCESS)(r):ugi.FAILURE.TYPE_INCORRECT(cgi,r)},cgi)});var fgi=I(hyt=>{"use strict";Object.defineProperty(hyt,"__esModule",{value:!0});hyt.InstanceOf=void 0;var s0l=YA(),pgi=pf();function a0l(r){var t={tag:"instanceof",ctor:r};return(0,s0l.create)(function(n){return n instanceof r?(0,pgi.SUCCESS)(n):pgi.FAILURE.TYPE_INCORRECT(t,n)},t)}hyt.InstanceOf=a0l});var Agi=I(gyt=>{"use strict";Object.defineProperty(gyt,"__esModule",{value:!0});gyt.Lazy=void 0;var l0l=YA();function u0l(r){var t={get tag(){return i().tag}},n;function i(){if(!n){n=r();for(var o in n)o!=="tag"&&(t[o]=n[o])}return n}return(0,l0l.create)(function(o){return i().validate(o)},t)}gyt.Lazy=u0l});var hgi=I(myt=>{"use strict";Object.defineProperty(myt,"__esModule",{value:!0});myt.Brand=void 0;var c0l=YA();function d0l(r,t){var n={tag:"brand",brand:r,entity:t};return(0,c0l.create)(function(i){return t.validate(i)},n)}myt.Brand=d0l});var ggi=I(YEe=>{"use strict";Object.defineProperty(YEe,"__esModule",{value:!0});YEe.checked=YEe.check=void 0;var p0l=jEe(),f0l=pf(),D4r=new WeakMap;function A0l(r,t,n){var i=D4r.get(r)||new Map;D4r.set(r,i);var o=i.get(t)||[];i.set(t,o),o.push(n)}YEe.check=A0l;function h0l(r,t,n){var i=D4r.get(r),o=i&&i.get(t);if(o)return o;for(var s=[],a=0;a<n;a++)s.push(a);return s}function g0l(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(r.length===0)throw new Error("No runtype provided to `@checked`. Please remove the decorator.");return function(n,i,o){var s=o.value,a=(n.name||n.constructor.name+".prototype")+(typeof i=="string"?'["'.concat(i,'"]'):"[".concat(String(i),"]")),l=h0l(n,i,r.length);if(l.length!==r.length)throw new Error("Number of `@checked` runtypes and @check parameters not matched.");if(l.length>s.length)throw new Error("Number of `@checked` runtypes exceeds actual parameter length.");o.value=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return r.forEach(function(d,p){var f=l[p],A=d.validate(c[f]);if(!A.success){var h="".concat(a,", argument #").concat(f,": ").concat(A.message),y=f0l.FAILURE.ARGUMENT_INCORRECT(h);throw new p0l.ValidationError(y)}}),s.apply(this,c)}}}YEe.checked=g0l});var z3=I(Cl=>{"use strict";var m0l=Cl&&Cl.__createBinding||(Object.create?function(r,t,n,i){i===void 0&&(i=n),Object.defineProperty(r,i,{enumerable:!0,get:function(){return t[n]}})}:function(r,t,n,i){i===void 0&&(i=n),r[i]=t[n]}),ap=Cl&&Cl.__exportStar||function(r,t){for(var n in r)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&m0l(t,r,n)};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.InstanceOf=Cl.Nullish=Cl.Null=Cl.Undefined=Cl.Literal=void 0;ap(Ehi(),Cl);ap(g4r(),Cl);ap(Chi(),Cl);ap(Shi(),Cl);ap(_hi(),Cl);ap(jEe(),Cl);ap(Z2t(),Cl);ap(whi(),Cl);ap(Rhi(),Cl);var yyt=I4r();Object.defineProperty(Cl,"Literal",{enumerable:!0,get:function(){return yyt.Literal}});Object.defineProperty(Cl,"Undefined",{enumerable:!0,get:function(){return yyt.Undefined}});Object.defineProperty(Cl,"Null",{enumerable:!0,get:function(){return yyt.Null}});Object.defineProperty(Cl,"Nullish",{enumerable:!0,get:function(){return yyt.Nullish}});ap(Phi(),Cl);ap(Lhi(),Cl);ap(qhi(),Cl);ap(Ghi(),Cl);ap(T4r(),Cl);ap(Jhi(),Cl);ap(Zhi(),Cl);ap(tgi(),Cl);ap(ngi(),Cl);ap(ogi(),Cl);ap(E4r(),Cl);ap(agi(),Cl);ap(lgi(),Cl);ap(dgi(),Cl);var y0l=fgi();Object.defineProperty(Cl,"InstanceOf",{enumerable:!0,get:function(){return y0l.InstanceOf}});ap(Agi(),Cl);ap(x4r(),Cl);ap(hgi(),Cl);ap(ggi(),Cl)});var fqe=I((NUd,mgi)=>{var E0l="2.0.0",b0l=Number.MAX_SAFE_INTEGER||9007199254740991,C0l=16,I0l=250,v0l=["major","premajor","minor","preminor","patch","prepatch","prerelease"];mgi.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:C0l,MAX_SAFE_BUILD_LENGTH:I0l,MAX_SAFE_INTEGER:b0l,RELEASE_TYPES:v0l,SEMVER_SPEC_VERSION:E0l,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Aqe=I((PUd,ygi)=>{var S0l=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};ygi.exports=S0l});var KEe=I(($q,Egi)=>{var{MAX_SAFE_COMPONENT_LENGTH:N4r,MAX_SAFE_BUILD_LENGTH:_0l,MAX_LENGTH:O0l}=fqe(),T0l=Aqe();$q=Egi.exports={};var w0l=$q.re=[],R0l=$q.safeRe=[],cs=$q.src=[],ds=$q.t={},B0l=0,P4r="[a-zA-Z0-9-]",x0l=[["\\s",1],["\\d",O0l],[P4r,_0l]],M0l=r=>{for(let[t,n]of x0l)r=r.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return r},au=(r,t,n)=>{let i=M0l(t),o=B0l++;T0l(r,o,t),ds[r]=o,cs[o]=t,w0l[o]=new RegExp(t,n?"g":void 0),R0l[o]=new RegExp(i,n?"g":void 0)};au("NUMERICIDENTIFIER","0|[1-9]\\d*");au("NUMERICIDENTIFIERLOOSE","\\d+");au("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${P4r}*`);au("MAINVERSION",`(${cs[ds.NUMERICIDENTIFIER]})\\.(${cs[ds.NUMERICIDENTIFIER]})\\.(${cs[ds.NUMERICIDENTIFIER]})`);au("MAINVERSIONLOOSE",`(${cs[ds.NUMERICIDENTIFIERLOOSE]})\\.(${cs[ds.NUMERICIDENTIFIERLOOSE]})\\.(${cs[ds.NUMERICIDENTIFIERLOOSE]})`);au("PRERELEASEIDENTIFIER",`(?:${cs[ds.NUMERICIDENTIFIER]}|${cs[ds.NONNUMERICIDENTIFIER]})`);au("PRERELEASEIDENTIFIERLOOSE",`(?:${cs[ds.NUMERICIDENTIFIERLOOSE]}|${cs[ds.NONNUMERICIDENTIFIER]})`);au("PRERELEASE",`(?:-(${cs[ds.PRERELEASEIDENTIFIER]}(?:\\.${cs[ds.PRERELEASEIDENTIFIER]})*))`);au("PRERELEASELOOSE",`(?:-?(${cs[ds.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${cs[ds.PRERELEASEIDENTIFIERLOOSE]})*))`);au("BUILDIDENTIFIER",`${P4r}+`);au("BUILD",`(?:\\+(${cs[ds.BUILDIDENTIFIER]}(?:\\.${cs[ds.BUILDIDENTIFIER]})*))`);au("FULLPLAIN",`v?${cs[ds.MAINVERSION]}${cs[ds.PRERELEASE]}?${cs[ds.BUILD]}?`);au("FULL",`^${cs[ds.FULLPLAIN]}$`);au("LOOSEPLAIN",`[v=\\s]*${cs[ds.MAINVERSIONLOOSE]}${cs[ds.PRERELEASELOOSE]}?${cs[ds.BUILD]}?`);au("LOOSE",`^${cs[ds.LOOSEPLAIN]}$`);au("GTLT","((?:<|>)?=?)");au("XRANGEIDENTIFIERLOOSE",`${cs[ds.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);au("XRANGEIDENTIFIER",`${cs[ds.NUMERICIDENTIFIER]}|x|X|\\*`);au("XRANGEPLAIN",`[v=\\s]*(${cs[ds.XRANGEIDENTIFIER]})(?:\\.(${cs[ds.XRANGEIDENTIFIER]})(?:\\.(${cs[ds.XRANGEIDENTIFIER]})(?:${cs[ds.PRERELEASE]})?${cs[ds.BUILD]}?)?)?`);au("XRANGEPLAINLOOSE",`[v=\\s]*(${cs[ds.XRANGEIDENTIFIERLOOSE]})(?:\\.(${cs[ds.XRANGEIDENTIFIERLOOSE]})(?:\\.(${cs[ds.XRANGEIDENTIFIERLOOSE]})(?:${cs[ds.PRERELEASELOOSE]})?${cs[ds.BUILD]}?)?)?`);au("XRANGE",`^${cs[ds.GTLT]}\\s*${cs[ds.XRANGEPLAIN]}$`);au("XRANGELOOSE",`^${cs[ds.GTLT]}\\s*${cs[ds.XRANGEPLAINLOOSE]}$`);au("COERCE",`(^|[^\\d])(\\d{1,${N4r}})(?:\\.(\\d{1,${N4r}}))?(?:\\.(\\d{1,${N4r}}))?(?:$|[^\\d])`);au("COERCERTL",cs[ds.COERCE],!0);au("LONETILDE","(?:~>?)");au("TILDETRIM",`(\\s*)${cs[ds.LONETILDE]}\\s+`,!0);$q.tildeTrimReplace="$1~";au("TILDE",`^${cs[ds.LONETILDE]}${cs[ds.XRANGEPLAIN]}$`);au("TILDELOOSE",`^${cs[ds.LONETILDE]}${cs[ds.XRANGEPLAINLOOSE]}$`);au("LONECARET","(?:\\^)");au("CARETTRIM",`(\\s*)${cs[ds.LONECARET]}\\s+`,!0);$q.caretTrimReplace="$1^";au("CARET",`^${cs[ds.LONECARET]}${cs[ds.XRANGEPLAIN]}$`);au("CARETLOOSE",`^${cs[ds.LONECARET]}${cs[ds.XRANGEPLAINLOOSE]}$`);au("COMPARATORLOOSE",`^${cs[ds.GTLT]}\\s*(${cs[ds.LOOSEPLAIN]})$|^$`);au("COMPARATOR",`^${cs[ds.GTLT]}\\s*(${cs[ds.FULLPLAIN]})$|^$`);au("COMPARATORTRIM",`(\\s*)${cs[ds.GTLT]}\\s*(${cs[ds.LOOSEPLAIN]}|${cs[ds.XRANGEPLAIN]})`,!0);$q.comparatorTrimReplace="$1$2$3";au("HYPHENRANGE",`^\\s*(${cs[ds.XRANGEPLAIN]})\\s+-\\s+(${cs[ds.XRANGEPLAIN]})\\s*$`);au("HYPHENRANGELOOSE",`^\\s*(${cs[ds.XRANGEPLAINLOOSE]})\\s+-\\s+(${cs[ds.XRANGEPLAINLOOSE]})\\s*$`);au("STAR","(<|>)?=?\\s*\\*");au("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");au("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Eyt=I((kUd,bgi)=>{var D0l=Object.freeze({loose:!0}),N0l=Object.freeze({}),P0l=r=>r?typeof r!="object"?D0l:r:N0l;bgi.exports=P0l});var k4r=I((QUd,vgi)=>{var Cgi=/^[0-9]+$/,Igi=(r,t)=>{let n=Cgi.test(r),i=Cgi.test(t);return n&&i&&(r=+r,t=+t),r===t?0:n&&!i?-1:i&&!n?1:r<t?-1:1},k0l=(r,t)=>Igi(t,r);vgi.exports={compareIdentifiers:Igi,rcompareIdentifiers:k0l}});var _b=I((LUd,Tgi)=>{var byt=Aqe(),{MAX_LENGTH:Sgi,MAX_SAFE_INTEGER:Cyt}=fqe(),{safeRe:_gi,t:Ogi}=KEe(),Q0l=Eyt(),{compareIdentifiers:JEe}=k4r(),Q4r=class r{constructor(t,n){if(n=Q0l(n),t instanceof r){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Sgi)throw new TypeError(`version is longer than ${Sgi} characters`);byt("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=t.trim().match(n.loose?_gi[Ogi.LOOSE]:_gi[Ogi.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Cyt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Cyt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Cyt||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let s=+o;if(s>=0&&s<Cyt)return s}return o}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(byt("SemVer.compare",this.version,this.options,t),!(t instanceof r)){if(typeof t=="string"&&t===this.version)return 0;t=new r(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof r||(t=new r(t,this.options)),JEe(this.major,t.major)||JEe(this.minor,t.minor)||JEe(this.patch,t.patch)}comparePre(t){if(t instanceof r||(t=new r(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let i=this.prerelease[n],o=t.prerelease[n];if(byt("prerelease compare",n,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return JEe(i,o)}while(++n)}compareBuild(t){t instanceof r||(t=new r(t,this.options));let n=0;do{let i=this.build[n],o=t.build[n];if(byt("prerelease compare",n,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return JEe(i,o)}while(++n)}inc(t,n,i){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(i)?1:0;if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(n){let s=[n,o];i===!1&&(s=[n]),JEe(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Tgi.exports=Q4r});var Hue=I((FUd,Rgi)=>{var wgi=_b(),L0l=(r,t,n=!1)=>{if(r instanceof wgi)return r;try{return new wgi(r,t)}catch(i){if(!n)return null;throw i}};Rgi.exports=L0l});var xgi=I((zUd,Bgi)=>{var F0l=Hue(),z0l=(r,t)=>{let n=F0l(r,t);return n?n.version:null};Bgi.exports=z0l});var Dgi=I((qUd,Mgi)=>{var q0l=Hue(),U0l=(r,t)=>{let n=q0l(r.trim().replace(/^[=v]+/,""),t);return n?n.version:null};Mgi.exports=U0l});var kgi=I((UUd,Pgi)=>{var Ngi=_b(),j0l=(r,t,n,i,o)=>{typeof n=="string"&&(o=i,i=n,n=void 0);try{return new Ngi(r instanceof Ngi?r.version:r,n).inc(t,i,o).version}catch{return null}};Pgi.exports=j0l});var Fgi=I((jUd,Lgi)=>{var Qgi=Hue(),G0l=(r,t)=>{let n=Qgi(r,null,!0),i=Qgi(t,null,!0),o=n.compare(i);if(o===0)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length;if(!!l.prerelease.length&&!c)return!l.patch&&!l.minor?"major":a.patch?"patch":a.minor?"minor":"major";let d=c?"pre":"";return n.major!==i.major?d+"major":n.minor!==i.minor?d+"minor":n.patch!==i.patch?d+"patch":"prerelease"};Lgi.exports=G0l});var qgi=I((GUd,zgi)=>{var W0l=_b(),H0l=(r,t)=>new W0l(r,t).major;zgi.exports=H0l});var jgi=I((WUd,Ugi)=>{var V0l=_b(),Y0l=(r,t)=>new V0l(r,t).minor;Ugi.exports=Y0l});var Wgi=I((HUd,Ggi)=>{var K0l=_b(),J0l=(r,t)=>new K0l(r,t).patch;Ggi.exports=J0l});var Vgi=I((VUd,Hgi)=>{var X0l=Hue(),$0l=(r,t)=>{let n=X0l(r,t);return n&&n.prerelease.length?n.prerelease:null};Hgi.exports=$0l});var xw=I((YUd,Kgi)=>{var Ygi=_b(),Z0l=(r,t,n)=>new Ygi(r,n).compare(new Ygi(t,n));Kgi.exports=Z0l});var Xgi=I((KUd,Jgi)=>{var edl=xw(),tdl=(r,t,n)=>edl(t,r,n);Jgi.exports=tdl});var Zgi=I((JUd,$gi)=>{var rdl=xw(),ndl=(r,t)=>rdl(r,t,!0);$gi.exports=ndl});var Iyt=I((XUd,tmi)=>{var emi=_b(),idl=(r,t,n)=>{let i=new emi(r,n),o=new emi(t,n);return i.compare(o)||i.compareBuild(o)};tmi.exports=idl});var nmi=I(($Ud,rmi)=>{var odl=Iyt(),sdl=(r,t)=>r.sort((n,i)=>odl(n,i,t));rmi.exports=sdl});var omi=I((ZUd,imi)=>{var adl=Iyt(),ldl=(r,t)=>r.sort((n,i)=>adl(i,n,t));imi.exports=ldl});var hqe=I((ejd,smi)=>{var udl=xw(),cdl=(r,t,n)=>udl(r,t,n)>0;smi.exports=cdl});var vyt=I((tjd,ami)=>{var ddl=xw(),pdl=(r,t,n)=>ddl(r,t,n)<0;ami.exports=pdl});var L4r=I((rjd,lmi)=>{var fdl=xw(),Adl=(r,t,n)=>fdl(r,t,n)===0;lmi.exports=Adl});var F4r=I((njd,umi)=>{var hdl=xw(),gdl=(r,t,n)=>hdl(r,t,n)!==0;umi.exports=gdl});var Syt=I((ijd,cmi)=>{var mdl=xw(),ydl=(r,t,n)=>mdl(r,t,n)>=0;cmi.exports=ydl});var _yt=I((ojd,dmi)=>{var Edl=xw(),bdl=(r,t,n)=>Edl(r,t,n)<=0;dmi.exports=bdl});var z4r=I((sjd,pmi)=>{var Cdl=L4r(),Idl=F4r(),vdl=hqe(),Sdl=Syt(),_dl=vyt(),Odl=_yt(),Tdl=(r,t,n,i)=>{switch(t){case"===":return typeof r=="object"&&(r=r.version),typeof n=="object"&&(n=n.version),r===n;case"!==":return typeof r=="object"&&(r=r.version),typeof n=="object"&&(n=n.version),r!==n;case"":case"=":case"==":return Cdl(r,n,i);case"!=":return Idl(r,n,i);case">":return vdl(r,n,i);case">=":return Sdl(r,n,i);case"<":return _dl(r,n,i);case"<=":return Odl(r,n,i);default:throw new TypeError(`Invalid operator: ${t}`)}};pmi.exports=Tdl});var Ami=I((ajd,fmi)=>{var wdl=_b(),Rdl=Hue(),{safeRe:Oyt,t:Tyt}=KEe(),Bdl=(r,t)=>{if(r instanceof wdl)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;t=t||{};let n=null;if(!t.rtl)n=r.match(Oyt[Tyt.COERCE]);else{let i;for(;(i=Oyt[Tyt.COERCERTL].exec(r))&&(!n||n.index+n[0].length!==r.length);)(!n||i.index+i[0].length!==n.index+n[0].length)&&(n=i),Oyt[Tyt.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Oyt[Tyt.COERCERTL].lastIndex=-1}return n===null?null:Rdl(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};fmi.exports=Bdl});var gmi=I((ljd,hmi)=>{"use strict";hmi.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var q4r=I((ujd,mmi)=>{"use strict";mmi.exports=p0;p0.Node=Vue;p0.create=p0;function p0(r){var t=this;if(t instanceof p0||(t=new p0),t.tail=null,t.head=null,t.length=0,r&&typeof r.forEach=="function")r.forEach(function(o){t.push(o)});else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}p0.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var t=r.next,n=r.prev;return t&&(t.prev=n),n&&(n.next=t),r===this.head&&(this.head=t),r===this.tail&&(this.tail=n),r.list.length--,r.next=null,r.prev=null,r.list=null,t};p0.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var t=this.head;r.list=this,r.next=t,t&&(t.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};p0.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var t=this.tail;r.list=this,r.prev=t,t&&(t.next=r),this.tail=r,this.head||(this.head=r),this.length++}};p0.prototype.push=function(){for(var r=0,t=arguments.length;r<t;r++)Mdl(this,arguments[r]);return this.length};p0.prototype.unshift=function(){for(var r=0,t=arguments.length;r<t;r++)Ddl(this,arguments[r]);return this.length};p0.prototype.pop=function(){if(this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};p0.prototype.shift=function(){if(this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};p0.prototype.forEach=function(r,t){t=t||this;for(var n=this.head,i=0;n!==null;i++)r.call(t,n.value,i,this),n=n.next};p0.prototype.forEachReverse=function(r,t){t=t||this;for(var n=this.tail,i=this.length-1;n!==null;i--)r.call(t,n.value,i,this),n=n.prev};p0.prototype.get=function(r){for(var t=0,n=this.head;n!==null&&t<r;t++)n=n.next;if(t===r&&n!==null)return n.value};p0.prototype.getReverse=function(r){for(var t=0,n=this.tail;n!==null&&t<r;t++)n=n.prev;if(t===r&&n!==null)return n.value};p0.prototype.map=function(r,t){t=t||this;for(var n=new p0,i=this.head;i!==null;)n.push(r.call(t,i.value,this)),i=i.next;return n};p0.prototype.mapReverse=function(r,t){t=t||this;for(var n=new p0,i=this.tail;i!==null;)n.push(r.call(t,i.value,this)),i=i.prev;return n};p0.prototype.reduce=function(r,t){var n,i=this.head;if(arguments.length>1)n=t;else if(this.head)i=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;i!==null;o++)n=r(n,i.value,o),i=i.next;return n};p0.prototype.reduceReverse=function(r,t){var n,i=this.tail;if(arguments.length>1)n=t;else if(this.tail)i=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;i!==null;o--)n=r(n,i.value,o),i=i.prev;return n};p0.prototype.toArray=function(){for(var r=new Array(this.length),t=0,n=this.head;n!==null;t++)r[t]=n.value,n=n.next;return r};p0.prototype.toArrayReverse=function(){for(var r=new Array(this.length),t=0,n=this.tail;n!==null;t++)r[t]=n.value,n=n.prev;return r};p0.prototype.slice=function(r,t){t=t||this.length,t<0&&(t+=this.length),r=r||0,r<0&&(r+=this.length);var n=new p0;if(t<r||t<0)return n;r<0&&(r=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;o!==null&&i<r;i++)o=o.next;for(;o!==null&&i<t;i++,o=o.next)n.push(o.value);return n};p0.prototype.sliceReverse=function(r,t){t=t||this.length,t<0&&(t+=this.length),r=r||0,r<0&&(r+=this.length);var n=new p0;if(t<r||t<0)return n;r<0&&(r=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;o!==null&&i>t;i--)o=o.prev;for(;o!==null&&i>r;i--,o=o.prev)n.push(o.value);return n};p0.prototype.splice=function(r,t,...n){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var i=0,o=this.head;o!==null&&i<r;i++)o=o.next;for(var s=[],i=0;o&&i<t;i++)s.push(o.value),o=this.removeNode(o);o===null&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var i=0;i<n.length;i++)o=xdl(this,o,n[i]);return s};p0.prototype.reverse=function(){for(var r=this.head,t=this.tail,n=r;n!==null;n=n.prev){var i=n.prev;n.prev=n.next,n.next=i}return this.head=t,this.tail=r,this};function xdl(r,t,n){var i=t===r.head?new Vue(n,null,t,r):new Vue(n,t,t.next,r);return i.next===null&&(r.tail=i),i.prev===null&&(r.head=i),r.length++,i}function Mdl(r,t){r.tail=new Vue(t,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function Ddl(r,t){r.head=new Vue(t,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function Vue(r,t,n,i){if(!(this instanceof Vue))return new Vue(r,t,n,i);this.list=i,this.value=r,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{gmi()(p0)}catch{}});var ZEe=I((cjd,Cmi)=>{"use strict";var Ndl=q4r(),Yue=Symbol("max"),eU=Symbol("length"),XEe=Symbol("lengthCalculator"),mqe=Symbol("allowStale"),Kue=Symbol("maxAge"),Zq=Symbol("dispose"),ymi=Symbol("noDisposeOnSet"),Z2=Symbol("lruList"),rx=Symbol("cache"),bmi=Symbol("updateAgeOnGet"),U4r=()=>1,G4r=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");let n=this[Yue]=t.max||1/0,i=t.length||U4r;if(this[XEe]=typeof i!="function"?U4r:i,this[mqe]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Kue]=t.maxAge||0,this[Zq]=t.dispose,this[ymi]=t.noDisposeOnSet||!1,this[bmi]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Yue]=t||1/0,gqe(this)}get max(){return this[Yue]}set allowStale(t){this[mqe]=!!t}get allowStale(){return this[mqe]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Kue]=t,gqe(this)}get maxAge(){return this[Kue]}set lengthCalculator(t){typeof t!="function"&&(t=U4r),t!==this[XEe]&&(this[XEe]=t,this[eU]=0,this[Z2].forEach(n=>{n.length=this[XEe](n.value,n.key),this[eU]+=n.length})),gqe(this)}get lengthCalculator(){return this[XEe]}get length(){return this[eU]}get itemCount(){return this[Z2].length}rforEach(t,n){n=n||this;for(let i=this[Z2].tail;i!==null;){let o=i.prev;Emi(this,t,i,n),i=o}}forEach(t,n){n=n||this;for(let i=this[Z2].head;i!==null;){let o=i.next;Emi(this,t,i,n),i=o}}keys(){return this[Z2].toArray().map(t=>t.key)}values(){return this[Z2].toArray().map(t=>t.value)}reset(){this[Zq]&&this[Z2]&&this[Z2].length&&this[Z2].forEach(t=>this[Zq](t.key,t.value)),this[rx]=new Map,this[Z2]=new Ndl,this[eU]=0}dump(){return this[Z2].map(t=>wyt(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Z2]}set(t,n,i){if(i=i||this[Kue],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let o=i?Date.now():0,s=this[XEe](n,t);if(this[rx].has(t)){if(s>this[Yue])return $Ee(this,this[rx].get(t)),!1;let c=this[rx].get(t).value;return this[Zq]&&(this[ymi]||this[Zq](t,c.value)),c.now=o,c.maxAge=i,c.value=n,this[eU]+=s-c.length,c.length=s,this.get(t),gqe(this),!0}let a=new W4r(t,n,s,o,i);return a.length>this[Yue]?(this[Zq]&&this[Zq](t,n),!1):(this[eU]+=a.length,this[Z2].unshift(a),this[rx].set(t,this[Z2].head),gqe(this),!0)}has(t){if(!this[rx].has(t))return!1;let n=this[rx].get(t).value;return!wyt(this,n)}get(t){return j4r(this,t,!0)}peek(t){return j4r(this,t,!1)}pop(){let t=this[Z2].tail;return t?($Ee(this,t),t.value):null}del(t){$Ee(this,this[rx].get(t))}load(t){this.reset();let n=Date.now();for(let i=t.length-1;i>=0;i--){let o=t[i],s=o.e||0;if(s===0)this.set(o.k,o.v);else{let a=s-n;a>0&&this.set(o.k,o.v,a)}}}prune(){this[rx].forEach((t,n)=>j4r(this,n,!1))}},j4r=(r,t,n)=>{let i=r[rx].get(t);if(i){let o=i.value;if(wyt(r,o)){if($Ee(r,i),!r[mqe])return}else n&&(r[bmi]&&(i.value.now=Date.now()),r[Z2].unshiftNode(i));return o.value}},wyt=(r,t)=>{if(!t||!t.maxAge&&!r[Kue])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:r[Kue]&&n>r[Kue]},gqe=r=>{if(r[eU]>r[Yue])for(let t=r[Z2].tail;r[eU]>r[Yue]&&t!==null;){let n=t.prev;$Ee(r,t),t=n}},$Ee=(r,t)=>{if(t){let n=t.value;r[Zq]&&r[Zq](n.key,n.value),r[eU]-=n.length,r[rx].delete(n.key),r[Z2].removeNode(t)}},W4r=class{constructor(t,n,i,o,s){this.key=t,this.value=n,this.length=i,this.now=o,this.maxAge=s||0}},Emi=(r,t,n,i)=>{let o=n.value;wyt(r,o)&&($Ee(r,n),r[mqe]||(o=void 0)),o&&t.call(i,o.value,o.key,r)};Cmi.exports=G4r});var Mw=I((djd,_mi)=>{var H4r=class r{constructor(t,n){if(n=kdl(n),t instanceof r)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new r(t.raw,n);if(t instanceof V4r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(o=>!vmi(o[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&jdl(o[0])){this.set=[o];break}}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){let i=((this.options.includePrerelease&&qdl)|(this.options.loose&&Udl))+":"+t,o=Imi.get(i);if(o)return o;let s=this.options.loose,a=s?E4[gI.HYPHENRANGELOOSE]:E4[gI.HYPHENRANGE];t=t.replace(a,Zdl(this.options.includePrerelease)),O1("hyphen replace",t),t=t.replace(E4[gI.COMPARATORTRIM],Ldl),O1("comparator trim",t),t=t.replace(E4[gI.TILDETRIM],Fdl),O1("tilde trim",t),t=t.replace(E4[gI.CARETTRIM],zdl),O1("caret trim",t);let l=t.split(" ").map(p=>Gdl(p,this.options)).join(" ").split(/\s+/).map(p=>$dl(p,this.options));s&&(l=l.filter(p=>(O1("loose invalid filter",p,this.options),!!p.match(E4[gI.COMPARATORLOOSE])))),O1("range list",l);let c=new Map,u=l.map(p=>new V4r(p,this.options));for(let p of u){if(vmi(p))return[p];c.set(p.value,p)}c.size>1&&c.has("")&&c.delete("");let d=[...c.values()];return Imi.set(i,d),d}intersects(t,n){if(!(t instanceof r))throw new TypeError("a Range is required");return this.set.some(i=>Smi(i,n)&&t.set.some(o=>Smi(o,n)&&i.every(s=>o.every(a=>s.intersects(a,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new Qdl(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(epl(this.set[n],t,this.options))return!0;return!1}};_mi.exports=H4r;var Pdl=ZEe(),Imi=new Pdl({max:1e3}),kdl=Eyt(),V4r=yqe(),O1=Aqe(),Qdl=_b(),{safeRe:E4,t:gI,comparatorTrimReplace:Ldl,tildeTrimReplace:Fdl,caretTrimReplace:zdl}=KEe(),{FLAG_INCLUDE_PRERELEASE:qdl,FLAG_LOOSE:Udl}=fqe(),vmi=r=>r.value==="<0.0.0-0",jdl=r=>r.value==="",Smi=(r,t)=>{let n=!0,i=r.slice(),o=i.pop();for(;n&&i.length;)n=i.every(s=>o.intersects(s,t)),o=i.pop();return n},Gdl=(r,t)=>(O1("comp",r,t),r=Vdl(r,t),O1("caret",r),r=Wdl(r,t),O1("tildes",r),r=Kdl(r,t),O1("xrange",r),r=Xdl(r,t),O1("stars",r),r),mI=r=>!r||r.toLowerCase()==="x"||r==="*",Wdl=(r,t)=>r.trim().split(/\s+/).map(n=>Hdl(n,t)).join(" "),Hdl=(r,t)=>{let n=t.loose?E4[gI.TILDELOOSE]:E4[gI.TILDE];return r.replace(n,(i,o,s,a,l)=>{O1("tilde",r,i,o,s,a,l);let c;return mI(o)?c="":mI(s)?c=`>=${o}.0.0 <${+o+1}.0.0-0`:mI(a)?c=`>=${o}.${s}.0 <${o}.${+s+1}.0-0`:l?(O1("replaceTilde pr",l),c=`>=${o}.${s}.${a}-${l} <${o}.${+s+1}.0-0`):c=`>=${o}.${s}.${a} <${o}.${+s+1}.0-0`,O1("tilde return",c),c})},Vdl=(r,t)=>r.trim().split(/\s+/).map(n=>Ydl(n,t)).join(" "),Ydl=(r,t)=>{O1("caret",r,t);let n=t.loose?E4[gI.CARETLOOSE]:E4[gI.CARET],i=t.includePrerelease?"-0":"";return r.replace(n,(o,s,a,l,c)=>{O1("caret",r,o,s,a,l,c);let u;return mI(s)?u="":mI(a)?u=`>=${s}.0.0${i} <${+s+1}.0.0-0`:mI(l)?s==="0"?u=`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.0${i} <${+s+1}.0.0-0`:c?(O1("replaceCaret pr",c),s==="0"?a==="0"?u=`>=${s}.${a}.${l}-${c} <${s}.${a}.${+l+1}-0`:u=`>=${s}.${a}.${l}-${c} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${l}-${c} <${+s+1}.0.0-0`):(O1("no pr"),s==="0"?a==="0"?u=`>=${s}.${a}.${l}${i} <${s}.${a}.${+l+1}-0`:u=`>=${s}.${a}.${l}${i} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${l} <${+s+1}.0.0-0`),O1("caret return",u),u})},Kdl=(r,t)=>(O1("replaceXRanges",r,t),r.split(/\s+/).map(n=>Jdl(n,t)).join(" ")),Jdl=(r,t)=>{r=r.trim();let n=t.loose?E4[gI.XRANGELOOSE]:E4[gI.XRANGE];return r.replace(n,(i,o,s,a,l,c)=>{O1("xRange",r,i,o,s,a,l,c);let u=mI(s),d=u||mI(a),p=d||mI(l),f=p;return o==="="&&f&&(o=""),c=t.includePrerelease?"-0":"",u?o===">"||o==="<"?i="<0.0.0-0":i="*":o&&f?(d&&(a=0),l=0,o===">"?(o=">=",d?(s=+s+1,a=0,l=0):(a=+a+1,l=0)):o==="<="&&(o="<",d?s=+s+1:a=+a+1),o==="<"&&(c="-0"),i=`${o+s}.${a}.${l}${c}`):d?i=`>=${s}.0.0${c} <${+s+1}.0.0-0`:p&&(i=`>=${s}.${a}.0${c} <${s}.${+a+1}.0-0`),O1("xRange return",i),i})},Xdl=(r,t)=>(O1("replaceStars",r,t),r.trim().replace(E4[gI.STAR],"")),$dl=(r,t)=>(O1("replaceGTE0",r,t),r.trim().replace(E4[t.includePrerelease?gI.GTE0PRE:gI.GTE0],"")),Zdl=r=>(t,n,i,o,s,a,l,c,u,d,p,f,A)=>(mI(i)?n="":mI(o)?n=`>=${i}.0.0${r?"-0":""}`:mI(s)?n=`>=${i}.${o}.0${r?"-0":""}`:a?n=`>=${n}`:n=`>=${n}${r?"-0":""}`,mI(u)?c="":mI(d)?c=`<${+u+1}.0.0-0`:mI(p)?c=`<${u}.${+d+1}.0-0`:f?c=`<=${u}.${d}.${p}-${f}`:r?c=`<${u}.${d}.${+p+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),epl=(r,t,n)=>{for(let i=0;i<r.length;i++)if(!r[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let i=0;i<r.length;i++)if(O1(r[i].semver),r[i].semver!==V4r.ANY&&r[i].semver.prerelease.length>0){let o=r[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var yqe=I((pjd,xmi)=>{var Eqe=Symbol("SemVer ANY"),J4r=class r{static get ANY(){return Eqe}constructor(t,n){if(n=Omi(n),t instanceof r){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),K4r("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===Eqe?this.value="":this.value=this.operator+this.semver.version,K4r("comp",this)}parse(t){let n=this.options.loose?Tmi[wmi.COMPARATORLOOSE]:Tmi[wmi.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Rmi(i[2],this.options.loose):this.semver=Eqe}toString(){return this.value}test(t){if(K4r("Comparator.test",t,this.options.loose),this.semver===Eqe||t===Eqe)return!0;if(typeof t=="string")try{t=new Rmi(t,this.options)}catch{return!1}return Y4r(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Bmi(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new Bmi(this.value,n).test(t.semver):(n=Omi(n),n.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||Y4r(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Y4r(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};xmi.exports=J4r;var Omi=Eyt(),{safeRe:Tmi,t:wmi}=KEe(),Y4r=z4r(),K4r=Aqe(),Rmi=_b(),Bmi=Mw()});var bqe=I((fjd,Mmi)=>{var tpl=Mw(),rpl=(r,t,n)=>{try{t=new tpl(t,n)}catch{return!1}return t.test(r)};Mmi.exports=rpl});var Nmi=I((Ajd,Dmi)=>{var npl=Mw(),ipl=(r,t)=>new npl(r,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));Dmi.exports=ipl});var kmi=I((hjd,Pmi)=>{var opl=_b(),spl=Mw(),apl=(r,t,n)=>{let i=null,o=null,s=null;try{s=new spl(t,n)}catch{return null}return r.forEach(a=>{s.test(a)&&(!i||o.compare(a)===-1)&&(i=a,o=new opl(i,n))}),i};Pmi.exports=apl});var Lmi=I((gjd,Qmi)=>{var lpl=_b(),upl=Mw(),cpl=(r,t,n)=>{let i=null,o=null,s=null;try{s=new upl(t,n)}catch{return null}return r.forEach(a=>{s.test(a)&&(!i||o.compare(a)===1)&&(i=a,o=new lpl(i,n))}),i};Qmi.exports=cpl});var qmi=I((mjd,zmi)=>{var X4r=_b(),dpl=Mw(),Fmi=hqe(),ppl=(r,t)=>{r=new dpl(r,t);let n=new X4r("0.0.0");if(r.test(n)||(n=new X4r("0.0.0-0"),r.test(n)))return n;n=null;for(let i=0;i<r.set.length;++i){let o=r.set[i],s=null;o.forEach(a=>{let l=new X4r(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!s||Fmi(l,s))&&(s=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!n||Fmi(n,s))&&(n=s)}return n&&r.test(n)?n:null};zmi.exports=ppl});var jmi=I((yjd,Umi)=>{var fpl=Mw(),Apl=(r,t)=>{try{return new fpl(r,t).range||"*"}catch{return null}};Umi.exports=Apl});var Ryt=I((Ejd,Vmi)=>{var hpl=_b(),Hmi=yqe(),{ANY:gpl}=Hmi,mpl=Mw(),ypl=bqe(),Gmi=hqe(),Wmi=vyt(),Epl=_yt(),bpl=Syt(),Cpl=(r,t,n,i)=>{r=new hpl(r,i),t=new mpl(t,i);let o,s,a,l,c;switch(n){case">":o=Gmi,s=Epl,a=Wmi,l=">",c=">=";break;case"<":o=Wmi,s=bpl,a=Gmi,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ypl(r,t,i))return!1;for(let u=0;u<t.set.length;++u){let d=t.set[u],p=null,f=null;if(d.forEach(A=>{A.semver===gpl&&(A=new Hmi(">=0.0.0")),p=p||A,f=f||A,o(A.semver,p.semver,i)?p=A:a(A.semver,f.semver,i)&&(f=A)}),p.operator===l||p.operator===c||(!f.operator||f.operator===l)&&s(r,f.semver))return!1;if(f.operator===c&&a(r,f.semver))return!1}return!0};Vmi.exports=Cpl});var Kmi=I((bjd,Ymi)=>{var Ipl=Ryt(),vpl=(r,t,n)=>Ipl(r,t,">",n);Ymi.exports=vpl});var Xmi=I((Cjd,Jmi)=>{var Spl=Ryt(),_pl=(r,t,n)=>Spl(r,t,"<",n);Jmi.exports=_pl});var e2i=I((Ijd,Zmi)=>{var $mi=Mw(),Opl=(r,t,n)=>(r=new $mi(r,n),t=new $mi(t,n),r.intersects(t,n));Zmi.exports=Opl});var r2i=I((vjd,t2i)=>{var Tpl=bqe(),wpl=xw();t2i.exports=(r,t,n)=>{let i=[],o=null,s=null,a=r.sort((d,p)=>wpl(d,p,n));for(let d of a)Tpl(d,t,n)?(s=d,o||(o=d)):(s&&i.push([o,s]),s=null,o=null);o&&i.push([o,null]);let l=[];for(let[d,p]of i)d===p?l.push(d):!p&&d===a[0]?l.push("*"):p?d===a[0]?l.push(`<=${p}`):l.push(`${d} - ${p}`):l.push(`>=${d}`);let c=l.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var l2i=I((Sjd,a2i)=>{var n2i=Mw(),Z4r=yqe(),{ANY:$4r}=Z4r,Cqe=bqe(),eSr=xw(),Rpl=(r,t,n={})=>{if(r===t)return!0;r=new n2i(r,n),t=new n2i(t,n);let i=!1;e:for(let o of r.set){for(let s of t.set){let a=xpl(o,s,n);if(i=i||a!==null,a)continue e}if(i)return!1}return!0},Bpl=[new Z4r(">=0.0.0-0")],i2i=[new Z4r(">=0.0.0")],xpl=(r,t,n)=>{if(r===t)return!0;if(r.length===1&&r[0].semver===$4r){if(t.length===1&&t[0].semver===$4r)return!0;n.includePrerelease?r=Bpl:r=i2i}if(t.length===1&&t[0].semver===$4r){if(n.includePrerelease)return!0;t=i2i}let i=new Set,o,s;for(let A of r)A.operator===">"||A.operator===">="?o=o2i(o,A,n):A.operator==="<"||A.operator==="<="?s=s2i(s,A,n):i.add(A.semver);if(i.size>1)return null;let a;if(o&&s){if(a=eSr(o.semver,s.semver,n),a>0)return null;if(a===0&&(o.operator!==">="||s.operator!=="<="))return null}for(let A of i){if(o&&!Cqe(A,String(o),n)||s&&!Cqe(A,String(s),n))return null;for(let h of t)if(!Cqe(A,String(h),n))return!1;return!0}let l,c,u,d,p=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,f=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&s.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let A of t){if(d=d||A.operator===">"||A.operator===">=",u=u||A.operator==="<"||A.operator==="<=",o){if(f&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===f.major&&A.semver.minor===f.minor&&A.semver.patch===f.patch&&(f=!1),A.operator===">"||A.operator===">="){if(l=o2i(o,A,n),l===A&&l!==o)return!1}else if(o.operator===">="&&!Cqe(o.semver,String(A),n))return!1}if(s){if(p&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===p.major&&A.semver.minor===p.minor&&A.semver.patch===p.patch&&(p=!1),A.operator==="<"||A.operator==="<="){if(c=s2i(s,A,n),c===A&&c!==s)return!1}else if(s.operator==="<="&&!Cqe(s.semver,String(A),n))return!1}if(!A.operator&&(s||o)&&a!==0)return!1}return!(o&&u&&!s&&a!==0||s&&d&&!o&&a!==0||f||p)},o2i=(r,t,n)=>{if(!r)return t;let i=eSr(r.semver,t.semver,n);return i>0?r:i<0||t.operator===">"&&r.operator===">="?t:r},s2i=(r,t,n)=>{if(!r)return t;let i=eSr(r.semver,t.semver,n);return i<0?r:i>0||t.operator==="<"&&r.operator==="<="?t:r};a2i.exports=Rpl});var ebe=I((_jd,d2i)=>{var tSr=KEe(),u2i=fqe(),Mpl=_b(),c2i=k4r(),Dpl=Hue(),Npl=xgi(),Ppl=Dgi(),kpl=kgi(),Qpl=Fgi(),Lpl=qgi(),Fpl=jgi(),zpl=Wgi(),qpl=Vgi(),Upl=xw(),jpl=Xgi(),Gpl=Zgi(),Wpl=Iyt(),Hpl=nmi(),Vpl=omi(),Ypl=hqe(),Kpl=vyt(),Jpl=L4r(),Xpl=F4r(),$pl=Syt(),Zpl=_yt(),e1l=z4r(),t1l=Ami(),r1l=yqe(),n1l=Mw(),i1l=bqe(),o1l=Nmi(),s1l=kmi(),a1l=Lmi(),l1l=qmi(),u1l=jmi(),c1l=Ryt(),d1l=Kmi(),p1l=Xmi(),f1l=e2i(),A1l=r2i(),h1l=l2i();d2i.exports={parse:Dpl,valid:Npl,clean:Ppl,inc:kpl,diff:Qpl,major:Lpl,minor:Fpl,patch:zpl,prerelease:qpl,compare:Upl,rcompare:jpl,compareLoose:Gpl,compareBuild:Wpl,sort:Hpl,rsort:Vpl,gt:Ypl,lt:Kpl,eq:Jpl,neq:Xpl,gte:$pl,lte:Zpl,cmp:e1l,coerce:t1l,Comparator:r1l,Range:n1l,satisfies:i1l,toComparators:o1l,maxSatisfying:s1l,minSatisfying:a1l,minVersion:l1l,validRange:u1l,outside:c1l,gtr:d1l,ltr:p1l,intersects:f1l,simplifyRange:A1l,subset:h1l,SemVer:Mpl,re:tSr.re,src:tSr.src,tokens:tSr.t,SEMVER_SPEC_VERSION:u2i.SEMVER_SPEC_VERSION,RELEASE_TYPES:u2i.RELEASE_TYPES,compareIdentifiers:c2i.compareIdentifiers,rcompareIdentifiers:c2i.rcompareIdentifiers}});var Iqe,g1l,Ojd,m1l,tU,tbe=et(()=>{"use strict";Iqe=Ct(z3()),g1l=Ct(ebe()),Ojd=(0,Iqe.Record)({version:Iqe.String,hash:Iqe.String}),m1l=()=>({version:"7.15.0-rc.1",hash:"7df10d576c04e7cee36eced35812a0cb43ac26a7"}),tU=m1l()});var p2i,Dw,f2i,rSr,nSr,E1l,Byt,b1l,vqe,xyt=et(()=>{"use strict";p2i=Ct(Pue());oqe();jue();Sqe();wu();tbe();f2i=r=>{Dw=r},rSr=r=>r.includes("production")?"production":r.includes("staging")?"staging":r.includes("qa")?"qa":"development",nSr=()=>{if(Xf()){let r=process.env.RUNTIME_ENVIRONMENT||"development";return vqn("coa")?process.env.COALESCE_COA_CLOUD_JOB_ID?rSr(r):void 0:rSr(r)}else{let r;try{r=self.ENVIRONMENT}catch{}return typeof r=="string"?rSr(r):void 0}},E1l=()=>{let r=Tu();if(r.isTest)return{};let t=nSr();return r.isNode?{firebaseEnv:t}:{windowInfo:{frontendURLHost:self.location.host},firebaseEnv:t}},Byt=r=>({coalesceSoftwareVersion:tU?.version||"",service:r,env:process.env.REACT_APP_OWNER??"",reactAppCoalesceDev:process.env.REACT_APP_COALESCE_DEV??""}),b1l=r=>{let t=Byt(Dw);return{appEnv:E1l(),loggingArea:r,...t}},vqe=r=>{let t=ww[r];if(!t)throw new Error(`Logging area "${r}" is not a valid LoggingAreas key`);return t.logger||(t.logger=p2i.createLogger({levels:V2t.LEVELS,defaultMeta:b1l(r),level:t.level,transports:A2i(t)})),t.logger}});var aSr,b4,iSr,h2i,g2i,m2i,oSr,lSr,Myt,C1l,uSr,rbe,sSr,Dyt,cSr,A2i,Sqe=et(()=>{"use strict";aSr=Ct(Gq()),b4=Ct(Pue());jue();Y2t();xyt();wu();iSr=null,h2i=r=>{iSr=r},g2i={emerg:"error",assert:"warn",alert:"warn",error:"warn",warn:"warn",app:"info",info:"info",debug:"debug"},m2i={emerg:"emerg",assert:"alert",alert:"alert",error:"error",app:"info",info:"info",warn:"warn",debug:"debug"},oSr=class extends aSr.default{baseContext;constructor(t){super(t),this.baseContext=Byt(Dw)}log(t,n){iSr&&iSr.log({...t,level:m2i[t.level]},{...this.baseContext,...zg},g2i[t.level]),n()}},Myt=r=>{let t=Byt(r);lSr={host:"http-intake.logs.datadoghq.com",path:`/v1/input/pub04bd017317b60c96b62874179d82ff97?ddtags=env:${t.env},coalesceSoftwareVersion:${t.coalesceSoftwareVersion}&ddsource=nodejs&service=${r}`,ssl:!0}},C1l=!1,uSr=()=>b4.format.combine(b4.format.timestamp(),b4.format.colorize({colors:V2t.COLORS}),b4.format.printf(r=>`|${r.timestamp}|${process.env.JEST_WORKER_ID?`[SHARD:${process.env.JEST_WORKER_ID}]`:""}[${r.loggingArea}]${r.orgID?`|(org:${r.orgID})`:""}${r.workspaceID?`|(env:${r.workspaceID})`:""}${r.userID?`|(user:${r.userID})`:""}${r.runID?`|run:${r.runID})`:""}(${r.nodeID?`|(node:${r.nodeID})`:""})|)|${r.level}:${r.message}`)),rbe=r=>new b4.transports.Console({format:process.env.CONSOLE_JSON_LOGS?b4.format.combine(b4.format.timestamp(),b4.format.json()):uSr(),level:r.level,silent:C1l}),sSr=class extends aSr.default{httpTransport;constructor(t,n){super(n),this.httpTransport=t}log(t,n){this.httpTransport.log?.({...t,level:m2i[t.level],status:g2i[t.level]},n)}},Dyt=()=>{let r=new b4.transports.Http({...lSr,format:b4.format.combine(uSr(),b4.format.uncolorize())});return new sSr(r)},cSr=()=>new b4.transports.File({filename:process.env.JEST_WORKER_ID?`test-shard-${process.env.JEST_WORKER_ID}.log`:"test.log",dirname:"./test-logs",format:uSr(),level:H2t.debug}),A2i=r=>{let t=[];return t.push(rbe(r)),lSr&&t.push(Dyt()),Tu().isTest&&t.push(cSr()),[new oSr,...t]}});var y2i,Nyt,Pyt,dSr,kyt,rU,E2i=et(()=>{"use strict";y2i=Ct(us()),Nyt=Ct(Pue());oqe();Sqe();wu();xyt();jue();Lg();Pyt=(r,t)=>{let n=r.toUpperCase(),i=[];if(n in ww||i.push(`invalid logging area '${n}'`),H2t[t]||i.push("`invalid log level '${logLevel}'`"),i.length)throw i.forEach(l=>{console.error(l)}),new Error("Invalid logging area or log level: "+i.join(", "));let o=vqe(n),s=o.transports.filter(l=>l instanceof Nyt.transports.Console),a=o.transports;s.length||(a=[...a,rbe(ww[n])]),a.filter(l=>l instanceof Nyt.transports.Console)[0].level=t,o.configure({...o,transports:o.transports})},dSr=()=>{Object.keys(ww).forEach(r=>{Pyt(r,"debug")})},kyt=(r,t)=>{for(let n in r){let i=n,o=vqe(i);r[i].defaultMeta={...o.defaultMeta,...r[i].defaultMeta,...t};let s=r[i].transports||o.transports,a;if(Tu().isTest&&s.length>0){let l=s[s.length-1];l instanceof Nyt.transports.File&&(a=l,s=o.transports.slice(0,-1),s.push(cSr()))}o.configure({...o,...r[i],transports:s,level:r[i].level||o.level}),a&&a.close&&a.close()}},rU=r=>{let t=y2i.default.mapValues(ww,(n,i)=>({}));kyt(t,r)}});function _qe(r,t){return function(){return r.apply(t,arguments)}}var pSr=et(()=>{"use strict"});function v1l(r){return r!==null&&!Oqe(r)&&r.constructor!==null&&!Oqe(r.constructor)&&E5(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}function S1l(r){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(r):t=r&&r.buffer&&I2i(r.buffer),t}function Tqe(r,t,{allOwnKeys:n=!1}={}){if(r===null||typeof r>"u")return;let i,o;if(typeof r!="object"&&(r=[r]),nbe(r))for(i=0,o=r.length;i<o;i++)t.call(null,r[i],i,r);else{let s=n?Object.getOwnPropertyNames(r):Object.keys(r),a=s.length,l;for(i=0;i<a;i++)l=s[i],t.call(null,r[l],l,r)}}function S2i(r,t){t=t.toLowerCase();let n=Object.keys(r),i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}function ASr(){let{caseless:r}=_2i(this)&&this||{},t={},n=(i,o)=>{let s=r&&S2i(t,o)||o;Qyt(t[s])&&Qyt(i)?t[s]=ASr(t[s],i):Qyt(i)?t[s]=ASr({},i):nbe(i)?t[s]=i.slice():t[s]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Tqe(arguments[i],n);return t}function rfl(r){return!!(r&&E5(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}var I1l,hSr,Lyt,nx,Fyt,nbe,Oqe,I2i,_1l,E5,v2i,zyt,O1l,Qyt,T1l,w1l,R1l,B1l,x1l,M1l,D1l,N1l,P1l,k1l,Q1l,L1l,Jue,_2i,F1l,z1l,q1l,U1l,j1l,G1l,W1l,H1l,V1l,Y1l,K1l,b2i,J1l,O2i,X1l,$1l,Z1l,efl,fSr,C2i,T2i,tfl,nfl,ifl,ofl,w2i,sfl,er,Qd=et(()=>{"use strict";pSr();({toString:I1l}=Object.prototype),{getPrototypeOf:hSr}=Object,Lyt=(r=>t=>{let n=I1l.call(t);return r[n]||(r[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),nx=r=>(r=r.toLowerCase(),t=>Lyt(t)===r),Fyt=r=>t=>typeof t===r,{isArray:nbe}=Array,Oqe=Fyt("undefined");I2i=nx("ArrayBuffer");_1l=Fyt("string"),E5=Fyt("function"),v2i=Fyt("number"),zyt=r=>r!==null&&typeof r=="object",O1l=r=>r===!0||r===!1,Qyt=r=>{if(Lyt(r)!=="object")return!1;let t=hSr(r);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},T1l=nx("Date"),w1l=nx("File"),R1l=nx("Blob"),B1l=nx("FileList"),x1l=r=>zyt(r)&&E5(r.pipe),M1l=r=>{let t;return r&&(typeof FormData=="function"&&r instanceof FormData||E5(r.append)&&((t=Lyt(r))==="formdata"||t==="object"&&E5(r.toString)&&r.toString()==="[object FormData]"))},D1l=nx("URLSearchParams"),[N1l,P1l,k1l,Q1l]=["ReadableStream","Request","Response","Headers"].map(nx),L1l=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");Jue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_2i=r=>!Oqe(r)&&r!==Jue;F1l=(r,t,n,{allOwnKeys:i}={})=>(Tqe(t,(o,s)=>{n&&E5(o)?r[s]=_qe(o,n):r[s]=o},{allOwnKeys:i}),r),z1l=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),q1l=(r,t,n,i)=>{r.prototype=Object.create(t.prototype,i),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:t.prototype}),n&&Object.assign(r.prototype,n)},U1l=(r,t,n,i)=>{let o,s,a,l={};if(t=t||{},r==null)return t;do{for(o=Object.getOwnPropertyNames(r),s=o.length;s-- >0;)a=o[s],(!i||i(a,r,t))&&!l[a]&&(t[a]=r[a],l[a]=!0);r=n!==!1&&hSr(r)}while(r&&(!n||n(r,t))&&r!==Object.prototype);return t},j1l=(r,t,n)=>{r=String(r),(n===void 0||n>r.length)&&(n=r.length),n-=t.length;let i=r.indexOf(t,n);return i!==-1&&i===n},G1l=r=>{if(!r)return null;if(nbe(r))return r;let t=r.length;if(!v2i(t))return null;let n=new Array(t);for(;t-- >0;)n[t]=r[t];return n},W1l=(r=>t=>r&&t instanceof r)(typeof Uint8Array<"u"&&hSr(Uint8Array)),H1l=(r,t)=>{let i=(r&&r[Symbol.iterator]).call(r),o;for(;(o=i.next())&&!o.done;){let s=o.value;t.call(r,s[0],s[1])}},V1l=(r,t)=>{let n,i=[];for(;(n=r.exec(t))!==null;)i.push(n);return i},Y1l=nx("HTMLFormElement"),K1l=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),b2i=(({hasOwnProperty:r})=>(t,n)=>r.call(t,n))(Object.prototype),J1l=nx("RegExp"),O2i=(r,t)=>{let n=Object.getOwnPropertyDescriptors(r),i={};Tqe(n,(o,s)=>{let a;(a=t(o,s,r))!==!1&&(i[s]=a||o)}),Object.defineProperties(r,i)},X1l=r=>{O2i(r,(t,n)=>{if(E5(r)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;let i=r[n];if(E5(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},$1l=(r,t)=>{let n={},i=o=>{o.forEach(s=>{n[s]=!0})};return nbe(r)?i(r):i(String(r).split(t)),n},Z1l=()=>{},efl=(r,t)=>r!=null&&Number.isFinite(r=+r)?r:t,fSr="abcdefghijklmnopqrstuvwxyz",C2i="0123456789",T2i={DIGIT:C2i,ALPHA:fSr,ALPHA_DIGIT:fSr+fSr.toUpperCase()+C2i},tfl=(r=16,t=T2i.ALPHA_DIGIT)=>{let n="",{length:i}=t;for(;r--;)n+=t[Math.random()*i|0];return n};nfl=r=>{let t=new Array(10),n=(i,o)=>{if(zyt(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;let s=nbe(i)?[]:{};return Tqe(i,(a,l)=>{let c=n(a,o+1);!Oqe(c)&&(s[l]=c)}),t[o]=void 0,s}}return i};return n(r,0)},ifl=nx("AsyncFunction"),ofl=r=>r&&(zyt(r)||E5(r))&&E5(r.then)&&E5(r.catch),w2i=((r,t)=>r?setImmediate:t?((n,i)=>(Jue.addEventListener("message",({source:o,data:s})=>{o===Jue&&s===n&&i.length&&i.shift()()},!1),o=>{i.push(o),Jue.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",E5(Jue.postMessage)),sfl=typeof queueMicrotask<"u"?queueMicrotask.bind(Jue):typeof process<"u"&&process.nextTick||w2i,er={isArray:nbe,isArrayBuffer:I2i,isBuffer:v1l,isFormData:M1l,isArrayBufferView:S1l,isString:_1l,isNumber:v2i,isBoolean:O1l,isObject:zyt,isPlainObject:Qyt,isReadableStream:N1l,isRequest:P1l,isResponse:k1l,isHeaders:Q1l,isUndefined:Oqe,isDate:T1l,isFile:w1l,isBlob:R1l,isRegExp:J1l,isFunction:E5,isStream:x1l,isURLSearchParams:D1l,isTypedArray:W1l,isFileList:B1l,forEach:Tqe,merge:ASr,extend:F1l,trim:L1l,stripBOM:z1l,inherits:q1l,toFlatObject:U1l,kindOf:Lyt,kindOfTest:nx,endsWith:j1l,toArray:G1l,forEachEntry:H1l,matchAll:V1l,isHTMLForm:Y1l,hasOwnProperty:b2i,hasOwnProp:b2i,reduceDescriptors:O2i,freezeMethods:X1l,toObjectSet:$1l,toCamelCase:K1l,noop:Z1l,toFiniteNumber:efl,findKey:S2i,global:Jue,isContextDefined:_2i,ALPHABET:T2i,generateString:tfl,isSpecCompliantForm:rfl,toJSONObject:nfl,isAsyncFn:ifl,isThenable:ofl,setImmediate:w2i,asap:sfl}});function ibe(r,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status?o.status:null)}var R2i,B2i,so,b5=et(()=>{"use strict";Qd();er.inherits(ibe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:er.toJSONObject(this.config),code:this.code,status:this.status}}});R2i=ibe.prototype,B2i={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{B2i[r]={value:r}});Object.defineProperties(ibe,B2i);Object.defineProperty(R2i,"isAxiosError",{value:!0});ibe.from=(r,t,n,i,o,s)=>{let a=Object.create(R2i);return er.toFlatObject(r,a,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),ibe.call(a,r.message,t,n,i,o),a.cause=r,a.name=r.name,s&&Object.assign(a,s),a};so=ibe});var x2i,qyt,gSr=et(()=>{x2i=Ct(Hze(),1),qyt=x2i.default});function mSr(r){return er.isPlainObject(r)||er.isArray(r)}function D2i(r){return er.endsWith(r,"[]")?r.slice(0,-2):r}function M2i(r,t,n){return r?r.concat(t).map(function(o,s){return o=D2i(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function afl(r){return er.isArray(r)&&!r.some(mSr)}function ufl(r,t,n){if(!er.isObject(r))throw new TypeError("target must be an object");t=t||new(qyt||FormData),n=er.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,C){return!er.isUndefined(C[y])});let i=n.metaTokens,o=n.visitor||d,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&er.isSpecCompliantForm(t);if(!er.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(er.isDate(h))return h.toISOString();if(!c&&er.isBlob(h))throw new so("Blob is not supported. Use a Buffer instead.");return er.isArrayBuffer(h)||er.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,y,C){let v=h;if(h&&!C&&typeof h=="object"){if(er.endsWith(y,"{}"))y=i?y:y.slice(0,-2),h=JSON.stringify(h);else if(er.isArray(h)&&afl(h)||(er.isFileList(h)||er.endsWith(y,"[]"))&&(v=er.toArray(h)))return y=D2i(y),v.forEach(function(T,R){!(er.isUndefined(T)||T===null)&&t.append(a===!0?M2i([y],R,s):a===null?y:y+"[]",u(T))}),!1}return mSr(h)?!0:(t.append(M2i(C,y,s),u(h)),!1)}let p=[],f=Object.assign(lfl,{defaultVisitor:d,convertValue:u,isVisitable:mSr});function A(h,y){if(!er.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(h),er.forEach(h,function(v,O){(!(er.isUndefined(v)||v===null)&&o.call(t,v,er.isString(O)?O.trim():O,y,f))===!0&&A(v,y?y.concat(O):[O])}),p.pop()}}if(!er.isObject(r))throw new TypeError("data must be an object");return A(r),t}var lfl,hK,wqe=et(()=>{"use strict";Qd();b5();gSr();lfl=er.toFlatObject(er,{},null,function(t){return/^is[A-Z]/.test(t)});hK=ufl});function N2i(r){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function P2i(r,t){this._pairs=[],r&&hK(r,this,t)}var k2i,Q2i,L2i=et(()=>{"use strict";wqe();k2i=P2i.prototype;k2i.append=function(t,n){this._pairs.push([t,n])};k2i.toString=function(t){let n=t?function(i){return t.call(this,i,N2i)}:N2i;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};Q2i=P2i});function cfl(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xue(r,t,n){if(!t)return r;let i=n&&n.encode||cfl,o=n&&n.serialize,s;if(o?s=o(t,n):s=er.isURLSearchParams(t)?t.toString():new Q2i(t,n).toString(i),s){let a=r.indexOf("#");a!==-1&&(r=r.slice(0,a)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}var Uyt=et(()=>{"use strict";Qd();L2i()});var ySr,ESr,F2i=et(()=>{"use strict";Qd();ySr=class{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){er.forEach(this.handlers,function(i){i!==null&&t(i)})}},ESr=ySr});var obe,jyt=et(()=>{"use strict";obe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}});var z2i,q2i,U2i=et(()=>{"use strict";z2i=Ct(require("url"),1),q2i=z2i.default.URLSearchParams});var j2i,G2i=et(()=>{U2i();gSr();j2i={isNode:!0,classes:{URLSearchParams:q2i,FormData:qyt,Blob:typeof Blob<"u"&&Blob||null},protocols:["http","https","file","data"]}});var ISr={};j_(ISr,{hasBrowserEnv:()=>CSr,hasStandardBrowserEnv:()=>dfl,hasStandardBrowserWebWorkerEnv:()=>pfl,navigator:()=>bSr,origin:()=>ffl});var CSr,bSr,dfl,pfl,ffl,W2i=et(()=>{CSr=typeof window<"u"&&typeof document<"u",bSr=typeof navigator=="object"&&navigator||void 0,dfl=CSr&&(!bSr||["ReactNative","NativeScript","NS"].indexOf(bSr.product)<0),pfl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ffl=CSr&&window.location.href||"http://localhost"});var lp,dN=et(()=>{G2i();W2i();lp={...ISr,...j2i}});function vSr(r,t){return hK(r,new lp.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,s){return lp.isNode&&er.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}var H2i=et(()=>{"use strict";Qd();wqe();dN()});function Afl(r){return er.matchAll(/\w+|\[(\w*)]/g,r).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hfl(r){let t={},n=Object.keys(r),i,o=n.length,s;for(i=0;i<o;i++)s=n[i],t[s]=r[s];return t}function gfl(r){function t(n,i,o,s){let a=n[s++];if(a==="__proto__")return!0;let l=Number.isFinite(+a),c=s>=n.length;return a=!a&&er.isArray(o)?o.length:a,c?(er.hasOwnProp(o,a)?o[a]=[o[a],i]:o[a]=i,!l):((!o[a]||!er.isObject(o[a]))&&(o[a]=[]),t(n,i,o[a],s)&&er.isArray(o[a])&&(o[a]=hfl(o[a])),!l)}if(er.isFormData(r)&&er.isFunction(r.entries)){let n={};return er.forEachEntry(r,(i,o)=>{t(Afl(i),o,n,0)}),n}return null}var Gyt,SSr=et(()=>{"use strict";Qd();Gyt=gfl});function mfl(r,t,n){if(er.isString(r))try{return(t||JSON.parse)(r),er.trim(r)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(r)}var _Sr,sbe,Wyt=et(()=>{"use strict";Qd();b5();jyt();wqe();H2i();dN();SSr();_Sr={transitional:obe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i=n.getContentType()||"",o=i.indexOf("application/json")>-1,s=er.isObject(t);if(s&&er.isHTMLForm(t)&&(t=new FormData(t)),er.isFormData(t))return o?JSON.stringify(Gyt(t)):t;if(er.isArrayBuffer(t)||er.isBuffer(t)||er.isStream(t)||er.isFile(t)||er.isBlob(t)||er.isReadableStream(t))return t;if(er.isArrayBufferView(t))return t.buffer;if(er.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return vSr(t,this.formSerializer).toString();if((l=er.isFileList(t))||i.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return hK(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),mfl(t)):t}],transformResponse:[function(t){let n=this.transitional||_Sr.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(er.isResponse(t)||er.isReadableStream(t))return t;if(t&&er.isString(t)&&(i&&!this.responseType||o)){let a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?so.from(l,so.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lp.classes.FormData,Blob:lp.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};er.forEach(["delete","get","head","post","put","patch"],r=>{_Sr.headers[r]={}});sbe=_Sr});var yfl,V2i,Y2i=et(()=>{"use strict";Qd();yfl=er.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),V2i=r=>{let t={},n,i,o;return r&&r.split(`
|
|
179
|
+
Value: `,n),new lK(n,[{path:"",message:"value triggered unknown runtypes error"}])}}createValidationFailedResult(n,i){let o=[],s=(a,l)=>{for(let[c,u]of Object.entries(l)){let d=a.concat(c);typeof u=="string"?o.push({path:d.join("."),message:u}):s(d,u)}};if(n.code==="TYPE_INCORRECT"||n.code==="CONSTRAINT_FAILED")o.push({path:"",message:n.message});else{let a=n.details;a&&s([],a)}return new lK(i,o)}},Pd=(r,t)=>new n4r(r,t)});var s4r,Gul,Wul,o4r,Ir,Ahi=et(()=>{"use strict";s4r=Ct(us());wr();Lg();U2t();cn();Gul=r=>r.code==="unrecognized_keys"?r.keys.length:r.code==="invalid_type"&&r.received==="undefined"&&r.message==="Required"?1:r.code==="invalid_literal"?10:0,Wul=r=>s4r.default.sum(r.issues.map(t=>Gul(t))),o4r=class extends FEe{constructor(n,i){super(n);this.zodType=i;if(!i)throw new mt(`Missing Zod type for ${n} validator. Did you use a circular import?`)}convertZodError=n=>{let i=[];for(let o of n.issues)if(o.code==="invalid_union"){let s=s4r.default.minBy(o.unionErrors,a=>Wul(a));s&&i.push(...this.convertZodError(s))}else i.push({path:o.path.join("."),message:o.message});return i};validate(n){try{let i=this.zodType.safeParse(n);if(i.success)return{valid:!0,value:i.data};let o=this.convertZodError(i.error);return new lK(n,o)}catch(i){let o=i instanceof w.ZodError?[i.flatten(),i.issues]:[];return d0().error(`ZodValidator: Unable to validate ${this.name} value`,"error: ",i,"value: ",n,...o),new lK(n,[{path:"",message:"value triggered unknown Zod error"}])}}},Ir=(r,t)=>new o4r(r,t)});var zEe=et(()=>{"use strict";i4r();U2t();Ahi()});var Hul,Vul,hhi,j2t,nqe,a4r,G2t,l4r,u4r,c4r,d4r,p4r,f4r,W2t,iqe,A4r,ghi,tx=et(()=>{"use strict";cn();V1r();xY();h3r();M3r();rEe();pli();zq();zEe();Hul=w.object({auth:w.string(),firestore:w.string(),storage:w.string()}),Vul=w.object({apiKey:w.string(),authDomain:w.string(),projectId:w.string(),storageBucket:w.string(),messagingSenderId:w.string(),appId:w.string(),measurementId:w.string(),emulatorInfo:Hul.optional()}),hhi=Ir("FirebaseConfig",Vul),j2t=r=>{q7("firestore.delete",{path:r})},nqe=r=>{q7("firestore.set",{path:r})},a4r=r=>{q7("firestore.update",{path:r})},G2t=r=>{q7("firestore.get",{path:r})},l4r=r=>{q7("firestore.transaction.get",{path:r})},u4r=r=>{q7("firestore.transaction.set",{path:r})},c4r=r=>{q7("firestore.transaction.update",{path:r})},d4r=r=>{q7("firestore.transaction.delete",{path:r})},p4r=()=>{q7("firestore.batch")},f4r=U8.getTracer("firestore"),W2t=async r=>(j2t(r.path),f4r.startActiveSpan(`delete ${r.path}`,async t=>{t.setAttribute("path",r.path),t.setAttribute("operation","delete");let n=await r.delete();return t.end(),n})),iqe=(r,t,n)=>(nqe(r.path),f4r.startActiveSpan(`set ${r.path}`,async i=>{if(i.setAttribute("path",r.path),i.setAttribute("operation","set"),n){let o=await r.set(t,n);return i.end(),o}else{let o=await r.set(t);return i.end(),o}})),A4r=r=>(G2t(r.path),f4r.startActiveSpan(`get ${r.path}`,async t=>{t.setAttribute("path",r.path),t.setAttribute("operation","get");let n=await r.get();return t.end(),n})),ghi=async(r,t=1e3)=>{let n=()=>{},i=new Promise(o=>{n=r.onSnapshot(s=>{s.metadata.hasPendingWrites||o(s)})});return await u4(t,`Timed out in GetDocumentNoPendingWrites after ${t} ms`,i).finally(n)}});var H2t,V2t,mhi,jue=et(()=>{"use strict";H2t={emerg:"emerg",info:"info",error:"error",debug:"debug",assert:"assert",warn:"warn",alert:"alert",app:"app"},V2t={LEVELS:{emerg:0,assert:1,alert:2,error:3,app:4,info:5,debug:6,warn:4},COLORS:{emerg:"red",assert:"yellow",alert:"yellow",warn:"yellow",error:"cyan",app:"blue",info:"green",debug:"magenta"}},mhi=["Authorization","Token","Password","Secret","idToken","id_token","clientID","clientSecret"]});var h4r,ww,oqe=et(()=>{"use strict";h4r=["ACTUAL_STATE","ADVANCED_DEPLOY","APP","AUTH","BULK_WRITE","CLI","CLI_INTERNAL","COLUMN_LINEAGE","COLUMN_METADATA","COMMON","CONNECTION","DEBUG","DEPLOY","DNS","DOCS","DRAG","ENTITY_API","ENV","ENVIRONMENTS","ERROR_OPERATIONS","FIREBASE","FOLDERS","GIT","GIT_SETTINGS","GOOGLE_DEBUG","GRAPH","HEARTBEAT","INTEGRATIONS","JDBC_SERVICE","JEST","JOBS","JSON_PARSER","LIGHTNING_FS","LISTENERS","MACROS","MAPPING_GRID","METADATA_HYDRATION","METADATA_OPERATIONS","NARROW_METADATA","NODE_TYPES","ORGS","ORG_BOOTSTRAP","ORG_SCANNER","ORG_SETTINGS","ORG_UPGRADE","PACKAGES","PACKAGES_BACKEND","PACKAGE_NAMESPACES","PACKAGE_REGISTRY","PALETTE","PARTNER_CONNECT","PENDO","PERFORMANCE","PIPELINE","PLAN","PLATFORM","PRESYNC","PROBLEM_SCANNER","PROJECTS","RBAC","RENDERER","RUNNER","RUNNER_BACKEND","RUN_RESULTS","RUN_TRANSACTION","SEARCH","SECRETS","SQL_PARSING","SQL_TESTING","STATE","STEPS","STORAGE_LOCATIONS","STRUMENTA","SYSTEM_EMAILS","TEMPLATE_EDITOR","TESTING","TIMING_UTILS","TREE_OPERATIONS","TYPESENSE","UI","USERS","USER_ACTIVATION","USER_MANAGEMENT","USER_SETTINGS","VERSIONING","VERSION_CONTROL_ACTIONS","WORKSPACES","XML_PARSER","YAML","ZIP","AI_COLUMN_DESCRIPTIONS","AI_NODE_DESCRIPTIONS","AI_GIT_COMMIT_MESSAGE"],ww={...Object.fromEntries(h4r.map(r=>[r,{level:"info"}]))}});var Rw,qEe,zg,Y2t=et(()=>{"use strict";Rw=(r,t,n,i,o)=>({orgID:r,workspaceID:t,userID:n,runID:i,nodeID:o}),qEe=(r,t)=>{r.runID=t},zg={}});var Ehi=I(yhi=>{"use strict";Object.defineProperty(yhi,"__esModule",{value:!0})});var g4r=I(K2t=>{"use strict";Object.defineProperty(K2t,"__esModule",{value:!0});K2t.Failcode=void 0;K2t.Failcode={TYPE_INCORRECT:"TYPE_INCORRECT",VALUE_INCORRECT:"VALUE_INCORRECT",KEY_INCORRECT:"KEY_INCORRECT",CONTENT_INCORRECT:"CONTENT_INCORRECT",ARGUMENT_INCORRECT:"ARGUMENT_INCORRECT",RETURN_INCORRECT:"RETURN_INCORRECT",CONSTRAINT_FAILED:"CONSTRAINT_FAILED",PROPERTY_MISSING:"PROPERTY_MISSING",PROPERTY_PRESENT:"PROPERTY_PRESENT",NOTHING_EXPECTED:"NOTHING_EXPECTED"}});var jEe=I(UEe=>{"use strict";var Yul=UEe&&UEe.__extends||function(){var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},r(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(UEe,"__esModule",{value:!0});UEe.ValidationError=void 0;var Kul=function(r){Yul(t,r);function t(n){var i=r.call(this,n.message)||this;return i.name="ValidationError",i.code=n.code,n.details!==void 0&&(i.details=n.details),Object.setPrototypeOf(i,t.prototype),i}return t}(Error);UEe.ValidationError=Kul});var sqe=I(m4r=>{"use strict";Object.defineProperty(m4r,"__esModule",{value:!0});var J2t=function(r){return function(t){switch(t.tag){case"literal":return'"'.concat(String(t.value),'"');case"string":return"string";case"brand":return t.brand;case"constraint":return t.name||J2t(r)(t.underlying);case"union":return t.alternatives.map(J2t(r)).join(" | ");case"intersect":return t.intersectees.map(J2t(r)).join(" & ");default:break}return"`${".concat(y5(!1,r)(t),"}`")}},X2t=function(r){return function(t){switch(t.tag){case"literal":return String(t.value);case"brand":return"${".concat(t.brand,"}");case"constraint":return t.name?"${".concat(t.name,"}"):X2t(r)(t.underlying);case"union":if(t.alternatives.length===1){var n=t.alternatives[0];return X2t(r)(n.reflect)}break;case"intersect":if(t.intersectees.length===1){var n=t.intersectees[0];return X2t(r)(n.reflect)}break;default:break}return"${".concat(y5(!1,r)(t),"}")}},y5=function(r,t){return function(n){var i=function(u){return r?"(".concat(u,")"):u};if(t.has(n))return i("CIRCULAR ".concat(n.tag));t.add(n);try{switch(n.tag){case"unknown":case"never":case"void":case"boolean":case"number":case"bigint":case"string":case"symbol":case"function":return n.tag;case"literal":{var o=n.value;return typeof o=="string"?'"'.concat(o,'"'):String(o)}case"template":{if(n.strings.length===0)return'""';if(n.strings.length===1)return'"'.concat(n.strings[0],'"');if(n.strings.length===2&&n.strings.every(function(u){return u===""})){var s=n.runtypes[0];return J2t(t)(s.reflect)}var a=!1,l=n.strings.reduce(function(u,d,p){var f=u+d,A=n.runtypes[p];if(A){var h=X2t(t)(A.reflect);return!a&&h.startsWith("$")&&(a=!0),f+h}else return f},"");return a?"`".concat(l,"`"):'"'.concat(l,'"')}case"array":return"".concat(bhi(n)).concat(y5(!0,t)(n.element),"[]");case"dictionary":return"{ [_: ".concat(n.key,"]: ").concat(y5(!1,t)(n.value)," }");case"record":{var c=Object.keys(n.fields);return c.length?"{ ".concat(c.map(function(u){return"".concat(bhi(n)).concat(u).concat(Jul(n,u),": ").concat(n.fields[u].tag==="optional"?y5(!1,t)(n.fields[u].underlying):y5(!1,t)(n.fields[u]),";")}).join(" ")," }"):"{}"}case"tuple":return"[".concat(n.components.map(y5(!1,t)).join(", "),"]");case"union":return i("".concat(n.alternatives.map(y5(!0,t)).join(" | ")));case"intersect":return i("".concat(n.intersectees.map(y5(!0,t)).join(" & ")));case"optional":return y5(r,t)(n.underlying)+" | undefined";case"constraint":return n.name||y5(r,t)(n.underlying);case"instanceof":return n.ctor.name;case"brand":return y5(r,t)(n.entity)}}finally{t.delete(n)}throw Error("impossible")}};m4r.default=y5(!1,new Set);function Jul(r,t){var n=r.isPartial,i=r.fields;return n||t!==void 0&&i[t].tag==="optional"?"?":""}function bhi(r){var t=r.isReadonly;return t?"readonly ":""}});var pf=I(kd=>{"use strict";var y4r=kd&&kd.__assign||function(){return y4r=Object.assign||function(r){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r},y4r.apply(this,arguments)};Object.defineProperty(kd,"__esModule",{value:!0});kd.FAILURE=kd.SUCCESS=kd.enumerableKeysOf=kd.typeOf=kd.hasKey=void 0;var lN=g4r(),Gue=sqe();function Xul(r,t){return typeof t=="object"&&t!==null&&r in t}kd.hasKey=Xul;var $ul=function(r){var t,n,i;return typeof r=="object"?r===null?"null":Array.isArray(r)?"array":((t=r.constructor)===null||t===void 0?void 0:t.name)==="Object"?"object":(i=(n=r.constructor)===null||n===void 0?void 0:n.name)!==null&&i!==void 0?i:typeof r:typeof r};kd.typeOf=$ul;var Zul=function(r){return typeof r=="object"&&r!==null?Reflect.ownKeys(r).filter(function(t){var n,i;return(i=(n=r.propertyIsEnumerable)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!0}):[]};kd.enumerableKeysOf=Zul;function ecl(r){return{success:!0,value:r}}kd.SUCCESS=ecl;kd.FAILURE=Object.assign(function(r,t,n){return y4r({success:!1,code:r,message:t},n?{details:n}:{})},{TYPE_INCORRECT:function(r,t){var n="Expected ".concat(r.tag==="template"?"string ".concat((0,Gue.default)(r)):(0,Gue.default)(r),", but was ").concat((0,kd.typeOf)(t));return(0,kd.FAILURE)(lN.Failcode.TYPE_INCORRECT,n)},VALUE_INCORRECT:function(r,t,n){return(0,kd.FAILURE)(lN.Failcode.VALUE_INCORRECT,"Expected ".concat(r," ").concat(String(t),", but was ").concat(String(n)))},KEY_INCORRECT:function(r,t,n){return(0,kd.FAILURE)(lN.Failcode.KEY_INCORRECT,"Expected ".concat((0,Gue.default)(r)," key to be ").concat((0,Gue.default)(t),", but was ").concat((0,kd.typeOf)(n)))},CONTENT_INCORRECT:function(r,t){var n="Expected ".concat((0,Gue.default)(r),", but was incompatible");return(0,kd.FAILURE)(lN.Failcode.CONTENT_INCORRECT,n,t)},ARGUMENT_INCORRECT:function(r){return(0,kd.FAILURE)(lN.Failcode.ARGUMENT_INCORRECT,r)},RETURN_INCORRECT:function(r){return(0,kd.FAILURE)(lN.Failcode.RETURN_INCORRECT,r)},CONSTRAINT_FAILED:function(r,t){var n=t?": ".concat(t):"";return(0,kd.FAILURE)(lN.Failcode.CONSTRAINT_FAILED,"Failed constraint check for ".concat((0,Gue.default)(r)).concat(n))},PROPERTY_MISSING:function(r){var t="Expected ".concat((0,Gue.default)(r),", but was missing");return(0,kd.FAILURE)(lN.Failcode.PROPERTY_MISSING,t)},PROPERTY_PRESENT:function(r){var t="Expected nothing, but was ".concat((0,kd.typeOf)(r));return(0,kd.FAILURE)(lN.Failcode.PROPERTY_PRESENT,t)},NOTHING_EXPECTED:function(r){var t="Expected nothing, but was ".concat((0,kd.typeOf)(r));return(0,kd.FAILURE)(lN.Failcode.NOTHING_EXPECTED,t)}})});var Chi=I(uK=>{"use strict";var tcl=uK&&uK.__read||function(r,t){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var i=n.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s},rcl=uK&&uK.__spreadArray||function(r,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return r.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(uK,"__esModule",{value:!0});uK.Contract=void 0;var ncl=jEe(),icl=pf();function ocl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=r.length-1,i=r.slice(0,n),o=r[n];return{enforce:function(s){return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];if(a.length<i.length){var c="Expected ".concat(i.length," arguments but only received ").concat(a.length),u=icl.FAILURE.ARGUMENT_INCORRECT(c);throw new ncl.ValidationError(u)}for(var d=0;d<i.length;d++)i[d].check(a[d]);return o.check(s.apply(void 0,rcl([],tcl(a),!1)))}}}}uK.Contract=ocl});var Shi=I(cK=>{"use strict";var scl=cK&&cK.__read||function(r,t){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var i=n.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s},acl=cK&&cK.__spreadArray||function(r,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return r.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(cK,"__esModule",{value:!0});cK.AsyncContract=void 0;var Ihi=jEe(),vhi=pf();function lcl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=r.length-1,i=r.slice(0,n),o=r[n];return{enforce:function(s){return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];if(a.length<i.length){var c="Expected ".concat(i.length," arguments but only received ").concat(a.length),u=vhi.FAILURE.ARGUMENT_INCORRECT(c);throw new Ihi.ValidationError(u)}for(var d=0;d<i.length;d++)i[d].check(a[d]);var p=s.apply(void 0,acl([],scl(a),!1));if(!(p instanceof Promise)){var c="Expected function to return a promise, but instead got ".concat(p),u=vhi.FAILURE.RETURN_INCORRECT(c);throw new Ihi.ValidationError(u)}return p.then(o.check)}}}}cK.AsyncContract=lcl});var _hi=I(uN=>{"use strict";var ucl=uN&&uN.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&r[t],i=0;if(n)return n.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ccl=uN&&uN.__read||function(r,t){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var i=n.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s};Object.defineProperty(uN,"__esModule",{value:!0});uN.when=uN.match=void 0;function dcl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return function(n){var i,o;try{for(var s=ucl(r),a=s.next();!a.done;a=s.next()){var l=ccl(a.value,2),c=l[0],u=l[1];if(c.guard(n))return u(n)}}catch(d){i={error:d}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}throw new Error("No alternatives were matched")}}uN.match=dcl;function pcl(r,t){return[r,t]}uN.when=pcl});var YA=I(pK=>{"use strict";Object.defineProperty(pK,"__esModule",{value:!0});pK.innerValidate=pK.create=pK.isRuntype=void 0;var dK=z3(),fcl=sqe(),Acl=jEe(),Ohi=pf(),Thi=Symbol(),hcl=function(r){return(0,Ohi.hasKey)(Thi,r)};pK.isRuntype=hcl;function gcl(r,t){return t[Thi]=!0,t.check=n,t.assert=n,t._innerValidate=function(p,f){return f.has(p,t)?(0,Ohi.SUCCESS)(p):r(p,f)},t.validate=function(p){return t._innerValidate(p,ycl())},t.guard=i,t.Or=o,t.And=s,t.optional=a,t.nullable=l,t.withConstraint=c,t.withGuard=u,t.withBrand=d,t.reflect=t,t.toString=function(){return"Runtype<".concat((0,fcl.default)(t),">")},t;function n(p){var f=t.validate(p);if(f.success)return f.value;throw new Acl.ValidationError(f)}function i(p){return t.validate(p).success}function o(p){return(0,dK.Union)(t,p)}function s(p){return(0,dK.Intersect)(t,p)}function a(){return(0,dK.Optional)(t)}function l(){return(0,dK.Union)(t,dK.Null)}function c(p,f){return(0,dK.Constraint)(t,p,f)}function u(p,f){return(0,dK.Constraint)(t,p,f)}function d(p){return(0,dK.Brand)(p,t)}}pK.create=gcl;function mcl(r,t,n){return r._innerValidate(t,n)}pK.innerValidate=mcl;function ycl(){var r=new WeakMap,t=function(i,o){if(!(i===null||typeof i!="object")){var s=r.get(i);r.set(i,s?s.set(o,!0):new WeakMap().set(o,!0))}},n=function(i,o){var s=r.get(i),a=s&&s.get(o)||!1;return t(i,o),a};return{has:n}}});var Z2t=I($2t=>{"use strict";Object.defineProperty($2t,"__esModule",{value:!0});$2t.Unknown=void 0;var Ecl=YA(),bcl=pf(),Ccl={tag:"unknown"};$2t.Unknown=(0,Ecl.create)(function(r){return(0,bcl.SUCCESS)(r)},Ccl)});var whi=I(eyt=>{"use strict";Object.defineProperty(eyt,"__esModule",{value:!0});eyt.Never=void 0;var Icl=YA(),vcl=pf(),Scl={tag:"never"};eyt.Never=(0,Icl.create)(vcl.FAILURE.NOTHING_EXPECTED,Scl)});var Rhi=I(tyt=>{"use strict";Object.defineProperty(tyt,"__esModule",{value:!0});tyt.Void=void 0;var _cl=Z2t();tyt.Void=_cl.Unknown});var E4r=I(GEe=>{"use strict";var ryt=GEe&&GEe.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&r[t],i=0;if(n)return n.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(GEe,"__esModule",{value:!0});GEe.Union=void 0;var nyt=YA(),aqe=pf();function Ocl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return function(a){for(var l=0;l<r.length;l++)if(r[l].guard(a))return o[l](a)}},i={tag:"union",alternatives:r,match:n};return(0,nyt.create)(function(o,s){var a,l,c,u,d,p,f,A;if(typeof o!="object"||o===null){try{for(var h=ryt(r),y=h.next();!y.done;y=h.next()){var C=y.value;if((0,nyt.innerValidate)(C,o,s).success)return(0,aqe.SUCCESS)(o)}}catch(J){a={error:J}}finally{try{y&&!y.done&&(l=h.return)&&l.call(h)}finally{if(a)throw a.error}}return aqe.FAILURE.TYPE_INCORRECT(i,o)}var v={};try{for(var O=ryt(r),T=O.next();!T.done;T=O.next()){var C=T.value;if(C.reflect.tag==="record"){var R=function(Y){var L=C.reflect.fields[Y];L.tag==="literal"&&(v[Y]?v[Y].every(function(X){return X!==L.value})&&v[Y].push(L.value):v[Y]=[L.value])};for(var N in C.reflect.fields)R(N)}}}catch(J){c={error:J}}finally{try{T&&!T.done&&(u=O.return)&&u.call(O)}finally{if(c)throw c.error}}for(var N in v)if(v[N].length===r.length)try{for(var z=(d=void 0,ryt(r)),W=z.next();!W.done;W=z.next()){var C=W.value;if(C.reflect.tag==="record"){var V=C.reflect.fields[N];if(V.tag==="literal"&&(0,aqe.hasKey)(N,o)&&o[N]===V.value)return(0,nyt.innerValidate)(C,o,s)}}}catch(Y){d={error:Y}}finally{try{W&&!W.done&&(p=z.return)&&p.call(z)}finally{if(d)throw d.error}}try{for(var $=ryt(r),K=$.next();!K.done;K=$.next()){var F=K.value;if((0,nyt.innerValidate)(F,o,s).success)return(0,aqe.SUCCESS)(o)}}catch(J){f={error:J}}finally{try{K&&!K.done&&(A=$.return)&&A.call($)}finally{if(f)throw f.error}}return aqe.FAILURE.TYPE_INCORRECT(i,o)},i)}GEe.Union=Ocl});var I4r=I(m4=>{"use strict";Object.defineProperty(m4,"__esModule",{value:!0});m4.Nullish=m4.Null=m4.Undefined=m4.Literal=m4.literal=void 0;var Tcl=YA(),Bhi=pf(),wcl=E4r();function b4r(r){return Array.isArray(r)?String(r.map(String)):typeof r=="bigint"?String(r)+"n":String(r)}m4.literal=b4r;function C4r(r){var t={tag:"literal",value:r};return(0,Tcl.create)(function(n){return n===r?(0,Bhi.SUCCESS)(n):Bhi.FAILURE.VALUE_INCORRECT("literal","`".concat(b4r(r),"`"),"`".concat(b4r(n),"`"))},t)}m4.Literal=C4r;m4.Undefined=C4r(void 0);m4.Null=C4r(null);m4.Nullish=(0,wcl.Union)(m4.Null,m4.Undefined)});var Phi=I(cN=>{"use strict";var fK=cN&&cN.__read||function(r,t){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var i=n.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s},v4r=cN&&cN.__spreadArray||function(r,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return r.concat(s||Array.prototype.slice.call(t))},xhi=cN&&cN.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&r[t],i=0;if(n)return n.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(cN,"__esModule",{value:!0});cN.Template=void 0;var iyt=YA(),Mhi=sqe(),Xq=pf(),Nhi=I4r(),S4r=function(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},Rcl=function(r){if(0<r.length&&Array.isArray(r[0])){var t=fK(r),n=t[0],i=t.slice(1);return[Array.from(n),i]}else{var o=r,n=o.reduce(function(l,c){return(0,iyt.isRuntype)(c)?l.push(""):l.push(l.pop()+String(c)),l},[""]),i=o.filter(iyt.isRuntype);return[n,i]}},Bcl=function(r,t){for(var n=0;n<t.length;)switch(t[n].reflect.tag){case"literal":{var i=t[n];t.splice(n,1);var o=String(i.value);r.splice(n,2,r[n]+o+r[n+1]);break}case"template":{var s=t[n];t.splice.apply(t,v4r([n,1],fK(s.runtypes),!1));var a=s.strings;if(a.length===1)r.splice(n,2,r[n]+a[0]+r[n+1]);else{var l=a[0],c=a.slice(1,-1),u=a[a.length-1];r.splice.apply(r,v4r(v4r([n,2,r[n]+l],fK(c),!1),[u+r[n+1]],!1))}break}case"union":{var d=t[n];if(d.alternatives.length===1)try{var p=cqe(d);t.splice(n,1);var o=String(p.value);r.splice(n,2,r[n]+o+r[n+1]);break}catch{n++;break}else{n++;break}}case"intersect":{var f=t[n];if(f.intersectees.length===1)try{var A=cqe(f);t.splice(n,1);var o=String(A.value);r.splice(n,2,r[n]+o+r[n+1]);break}catch{n++;break}else{n++;break}}default:n++;break}},xcl=function(r){var t=fK(Rcl(r),2),n=t[0],i=t[1];return Bcl(n,i),[n,i]},cqe=function(r){switch(r.reflect.tag){case"literal":return r;case"brand":return cqe(r.reflect.entity);case"union":if(r.reflect.alternatives.length===1)return cqe(r.reflect.alternatives[0]);break;case"intersect":if(r.reflect.intersectees.length===1)return cqe(r.reflect.intersectees[0]);break;default:break}throw void 0},Dhi=function(r){return r},_4r={string:[function(r){return globalThis.String(r)},".*"],number:[function(r){return globalThis.Number(r)},"[+-]?(?:\\d*\\.\\d+|\\d+\\.\\d*|\\d+)(?:[Ee][+-]?\\d+)?","0[Bb][01]+","0[Oo][0-7]+","0[Xx][0-9A-Fa-f]+"],bigint:[function(r){return globalThis.BigInt(r)},"-?[1-9]d*"],boolean:[function(r){return r!=="false"},"true","false"],null:[function(){return null},"null"],undefined:[function(){},"undefined"]},lqe=function(r){switch(r.tag){case"literal":{var t=fK(_4r[(0,Xq.typeOf)(r.value)]||[Dhi],1),n=t[0];return n}case"brand":return lqe(r.entity);case"constraint":return lqe(r.underlying);case"union":return r.alternatives.map(lqe);case"intersect":return r.intersectees.map(lqe);default:var i=fK(_4r[r.tag]||[Dhi],1),o=i[0];return o}},O4r=function(r,t){return function(n){var i,o,s,a,l=lqe(r);if(Array.isArray(l))switch(r.tag){case"union":try{for(var c=xhi(r.alternatives),u=c.next();!u.done;u=c.next()){var d=u.value,p=O4r(d.reflect,t)(n);if(p.success)return p}}catch(C){i={error:C}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return Xq.FAILURE.TYPE_INCORRECT(r,n);case"intersect":try{for(var f=xhi(r.intersectees),A=f.next();!A.done;A=f.next()){var h=A.value,p=O4r(h.reflect,t)(n);if(!p.success)return p}}catch(C){s={error:C}}finally{try{A&&!A.done&&(a=f.return)&&a.call(f)}finally{if(s)throw s.error}}return(0,Xq.SUCCESS)(n);default:throw Error("impossible")}else{var y=l,p=(0,iyt.innerValidate)(r,y(n),t);return!p.success&&p.code==="VALUE_INCORRECT"&&r.tag==="literal"?Xq.FAILURE.VALUE_INCORRECT("literal",'"'.concat((0,Nhi.literal)(r.value),'"'),'"'.concat(n,'"')):p}}},uqe=function(r){switch(r.tag){case"literal":return S4r(String(r.value));case"brand":return uqe(r.entity);case"constraint":return uqe(r.underlying);case"union":return r.alternatives.map(uqe).join("|");case"template":return r.strings.map(S4r).reduce(function(i,o,s){var a=i+o,l=r.runtypes[s];return l?a+"(?:".concat(uqe(l.reflect),")"):a},"");default:var t=fK(_4r[r.tag]||[void 0,".*"]),n=t.slice(1);return n.join("|")}},Mcl=function(r){var t=r.strings.map(S4r).reduce(function(n,i,o){var s=n+i,a=r.runtypes[o];return a?s+"(".concat(uqe(a.reflect),")"):s},"");return new RegExp("^".concat(t,"$"),"su")};function Dcl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=fK(xcl(r),2),i=n[0],o=n[1],s={tag:"template",strings:i,runtypes:o},a=Mcl(s),l=function(c,u){var d=c.match(a);if(d){for(var p=d.slice(1),f=0;f<o.length;f++){var A=o[f],h=p[f],y=O4r(A.reflect,u)(h);if(!y.success)return y}return(0,Xq.SUCCESS)(c)}else return Xq.FAILURE.VALUE_INCORRECT("string","".concat((0,Mhi.default)(s)),'"'.concat((0,Nhi.literal)(c),'"'))};return(0,iyt.create)(function(c,u){if(typeof c!="string")return Xq.FAILURE.TYPE_INCORRECT(s,c);var d=l(c,u);if(d.success)return(0,Xq.SUCCESS)(c);var p=Xq.FAILURE.VALUE_INCORRECT("string","".concat((0,Mhi.default)(s)),'"'.concat(c,'"'));return p.message!==d.message&&(p.message+=" (inner: ".concat(d.message,")")),p},s)}cN.Template=Dcl});var Lhi=I(oyt=>{"use strict";Object.defineProperty(oyt,"__esModule",{value:!0});oyt.Boolean=void 0;var Ncl=YA(),khi=pf(),Qhi={tag:"boolean"};oyt.Boolean=(0,Ncl.create)(function(r){return typeof r=="boolean"?(0,khi.SUCCESS)(r):khi.FAILURE.TYPE_INCORRECT(Qhi,r)},Qhi)});var qhi=I(syt=>{"use strict";Object.defineProperty(syt,"__esModule",{value:!0});syt.Number=void 0;var Pcl=YA(),Fhi=pf(),zhi={tag:"number"};syt.Number=(0,Pcl.create)(function(r){return typeof r=="number"?(0,Fhi.SUCCESS)(r):Fhi.FAILURE.TYPE_INCORRECT(zhi,r)},zhi)});var Ghi=I(ayt=>{"use strict";Object.defineProperty(ayt,"__esModule",{value:!0});ayt.BigInt=void 0;var kcl=YA(),Uhi=pf(),jhi={tag:"bigint"};ayt.BigInt=(0,kcl.create)(function(r){return typeof r=="bigint"?(0,Uhi.SUCCESS)(r):Uhi.FAILURE.TYPE_INCORRECT(jhi,r)},jhi)});var T4r=I(lyt=>{"use strict";Object.defineProperty(lyt,"__esModule",{value:!0});lyt.String=void 0;var Qcl=YA(),Whi=pf(),Hhi={tag:"string"};lyt.String=(0,Qcl.create)(function(r){return typeof r=="string"?(0,Whi.SUCCESS)(r):Whi.FAILURE.TYPE_INCORRECT(Hhi,r)},Hhi)});var Jhi=I(uyt=>{"use strict";Object.defineProperty(uyt,"__esModule",{value:!0});uyt.Symbol=void 0;var Khi=YA(),dqe=pf(),Lcl=function(r){var t={tag:"symbol",key:r};return(0,Khi.create)(function(n){if(typeof n!="symbol")return dqe.FAILURE.TYPE_INCORRECT(t,n);var i=globalThis.Symbol.keyFor(n);return i!==r?dqe.FAILURE.VALUE_INCORRECT("symbol key",Yhi(r),Yhi(i)):(0,dqe.SUCCESS)(n)},t)},Vhi={tag:"symbol"};uyt.Symbol=(0,Khi.create)(function(r){return typeof r=="symbol"?(0,dqe.SUCCESS)(r):dqe.FAILURE.TYPE_INCORRECT(Vhi,r)},Object.assign(Lcl,Vhi));var Yhi=function(r){return r===void 0?"undefined":'"'.concat(r,'"')}});var Zhi=I(cyt=>{"use strict";Object.defineProperty(cyt,"__esModule",{value:!0});cyt.Array=void 0;var Xhi=YA(),pqe=pf();function $hi(r,t){var n={tag:"array",isReadonly:t,element:r};return zcl((0,Xhi.create)(function(i,o){if(!Array.isArray(i))return pqe.FAILURE.TYPE_INCORRECT(n,i);var s=(0,pqe.enumerableKeysOf)(i),a=s.map(function(c){return(0,Xhi.innerValidate)(r,i[c],o)}),l=s.reduce(function(c,u){var d=a[u];return d.success||(c[u]=d.details||d.message),c},[]);return(0,pqe.enumerableKeysOf)(l).length!==0?pqe.FAILURE.CONTENT_INCORRECT(n,l):(0,pqe.SUCCESS)(i)},n))}function Fcl(r){return $hi(r,!1)}cyt.Array=Fcl;function zcl(r){return r.asReadonly=t,r;function t(){return $hi(r.element,!0)}}});var tgi=I(dyt=>{"use strict";Object.defineProperty(dyt,"__esModule",{value:!0});dyt.Tuple=void 0;var egi=YA(),WEe=pf();function qcl(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n={tag:"tuple",components:r};return(0,egi.create)(function(i,o){if(!Array.isArray(i))return WEe.FAILURE.TYPE_INCORRECT(n,i);if(i.length!==r.length)return WEe.FAILURE.CONSTRAINT_FAILED(n,"Expected length ".concat(r.length,", but was ").concat(i.length));var s=(0,WEe.enumerableKeysOf)(i),a=s.map(function(c){return(0,egi.innerValidate)(r[c],i[c],o)}),l=s.reduce(function(c,u){var d=a[u];return d.success||(c[u]=d.details||d.message),c},[]);return(0,WEe.enumerableKeysOf)(l).length!==0?WEe.FAILURE.CONTENT_INCORRECT(n,l):(0,WEe.SUCCESS)(i)},n)}dyt.Tuple=qcl});var ngi=I(Bw=>{"use strict";var w4r=Bw&&Bw.__read||function(r,t){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var i=n.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s},R4r=Bw&&Bw.__spreadArray||function(r,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return r.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(Bw,"__esModule",{value:!0});Bw.Partial=Bw.Record=Bw.InternalRecord=void 0;var rgi=YA(),y4=pf();function AK(r,t,n){var i={tag:"record",isPartial:t,isReadonly:n,fields:r};return Gcl((0,rgi.create)(function(o,s){if(o==null)return y4.FAILURE.TYPE_INCORRECT(i,o);var a=(0,y4.enumerableKeysOf)(r);if(a.length!==0&&typeof o!="object")return y4.FAILURE.TYPE_INCORRECT(i,o);var l=R4r([],w4r(new Set(R4r(R4r([],w4r(a),!1),w4r((0,y4.enumerableKeysOf)(o)),!1))),!1),c=l.reduce(function(d,p){var f=(0,y4.hasKey)(p,r),A=(0,y4.hasKey)(p,o);if(f){var h=r[p],y=t||h.reflect.tag==="optional";if(A){var C=o[p];y&&C===void 0?d[p]=(0,y4.SUCCESS)(C):d[p]=(0,rgi.innerValidate)(h,C,s)}else y?d[p]=(0,y4.SUCCESS)(void 0):d[p]=y4.FAILURE.PROPERTY_MISSING(h.reflect)}else if(A){var C=o[p];d[p]=(0,y4.SUCCESS)(C)}else throw new Error("impossible");return d},{}),u=l.reduce(function(d,p){var f=c[p];return f.success||(d[p]=f.details||f.message),d},{});return(0,y4.enumerableKeysOf)(u).length!==0?y4.FAILURE.CONTENT_INCORRECT(i,u):(0,y4.SUCCESS)(o)},i))}Bw.InternalRecord=AK;function Ucl(r){return AK(r,!1,!1)}Bw.Record=Ucl;function jcl(r){return AK(r,!0,!1)}Bw.Partial=jcl;function Gcl(r){return r.asPartial=t,r.asReadonly=n,r.pick=i,r.omit=o,r.extend=s,r;function t(){return AK(r.fields,!0,r.isReadonly)}function n(){return AK(r.fields,r.isPartial,!0)}function i(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var c={};return a.forEach(function(u){c[u]=r.fields[u]}),AK(c,r.isPartial,r.isReadonly)}function o(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var c={},u=(0,y4.enumerableKeysOf)(r.fields);return u.forEach(function(d){a.includes(d)||(c[d]=r.fields[d])}),AK(c,r.isPartial,r.isReadonly)}function s(a){return AK(Object.assign({},r.fields,a),r.isPartial,r.isReadonly)}}});var x4r=I(HEe=>{"use strict";Object.defineProperty(HEe,"__esModule",{value:!0});HEe.Guard=HEe.Constraint=void 0;var Wcl=YA(),B4r=pf(),Hcl=Z2t();function Vcl(r,t,n){var i=n&&n.name,o=n&&n.args,s={tag:"constraint",underlying:r,constraint:t,name:i,args:o};return(0,Wcl.create)(function(a){var l=r.validate(a);if(!l.success)return l;var c=t(l.value);return typeof c=="string"?B4r.FAILURE.CONSTRAINT_FAILED(s,c):c?(0,B4r.SUCCESS)(l.value):B4r.FAILURE.CONSTRAINT_FAILED(s)},s)}HEe.Constraint=Vcl;var Ycl=function(r,t){return Hcl.Unknown.withGuard(r,t)};HEe.Guard=Ycl});var ogi=I(pyt=>{"use strict";Object.defineProperty(pyt,"__esModule",{value:!0});pyt.Dictionary=void 0;var igi=YA(),M4r=T4r(),Kcl=x4r(),Jcl=sqe(),Wue=pf(),Xcl=(0,Kcl.Constraint)(M4r.String,function(r){return!isNaN(+r)},{name:"number"});function $cl(r,t){var n=t===void 0||t==="string"?M4r.String:t==="number"?Xcl:t,i=(0,Jcl.default)(n),o={tag:"dictionary",key:i,value:r};return(0,igi.create)(function(s,a){if(s==null||typeof s!="object"||Object.getPrototypeOf(s)!==Object.prototype&&(!Array.isArray(s)||i==="string"))return Wue.FAILURE.TYPE_INCORRECT(o,s);var l=/^(?:NaN|-?\d+(?:\.\d+)?)$/,c=(0,Wue.enumerableKeysOf)(s),u=c.reduce(function(p,f){var A=typeof f=="string"&&l.test(f),h=A?globalThis.Number(f):f;return(A?!n.guard(h)&&!n.guard(f):!n.guard(h))?p[f]=Wue.FAILURE.KEY_INCORRECT(o,n.reflect,h):p[f]=(0,igi.innerValidate)(r,s[f],a),p},{}),d=c.reduce(function(p,f){var A=u[f];return A.success||(p[f]=A.details||A.message),p},{});return(0,Wue.enumerableKeysOf)(d).length!==0?Wue.FAILURE.CONTENT_INCORRECT(o,d):(0,Wue.SUCCESS)(s)},o)}pyt.Dictionary=$cl});var agi=I(VEe=>{"use strict";var Zcl=VEe&&VEe.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&r[t],i=0;if(n)return n.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(VEe,"__esModule",{value:!0});VEe.Intersect=void 0;var sgi=YA(),e0l=pf();function t0l(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n={tag:"intersect",intersectees:r};return(0,sgi.create)(function(i,o){var s,a;try{for(var l=Zcl(r),c=l.next();!c.done;c=l.next()){var u=c.value,d=(0,sgi.innerValidate)(u,i,o);if(!d.success)return d}}catch(p){s={error:p}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}return(0,e0l.SUCCESS)(i)},n)}VEe.Intersect=t0l});var lgi=I(fyt=>{"use strict";Object.defineProperty(fyt,"__esModule",{value:!0});fyt.Optional=void 0;var r0l=YA(),n0l=pf();function i0l(r){var t={tag:"optional",underlying:r};return(0,r0l.create)(function(n){return n===void 0?(0,n0l.SUCCESS)(n):r.validate(n)},t)}fyt.Optional=i0l});var dgi=I(Ayt=>{"use strict";Object.defineProperty(Ayt,"__esModule",{value:!0});Ayt.Function=void 0;var o0l=YA(),ugi=pf(),cgi={tag:"function"};Ayt.Function=(0,o0l.create)(function(r){return typeof r=="function"?(0,ugi.SUCCESS)(r):ugi.FAILURE.TYPE_INCORRECT(cgi,r)},cgi)});var fgi=I(hyt=>{"use strict";Object.defineProperty(hyt,"__esModule",{value:!0});hyt.InstanceOf=void 0;var s0l=YA(),pgi=pf();function a0l(r){var t={tag:"instanceof",ctor:r};return(0,s0l.create)(function(n){return n instanceof r?(0,pgi.SUCCESS)(n):pgi.FAILURE.TYPE_INCORRECT(t,n)},t)}hyt.InstanceOf=a0l});var Agi=I(gyt=>{"use strict";Object.defineProperty(gyt,"__esModule",{value:!0});gyt.Lazy=void 0;var l0l=YA();function u0l(r){var t={get tag(){return i().tag}},n;function i(){if(!n){n=r();for(var o in n)o!=="tag"&&(t[o]=n[o])}return n}return(0,l0l.create)(function(o){return i().validate(o)},t)}gyt.Lazy=u0l});var hgi=I(myt=>{"use strict";Object.defineProperty(myt,"__esModule",{value:!0});myt.Brand=void 0;var c0l=YA();function d0l(r,t){var n={tag:"brand",brand:r,entity:t};return(0,c0l.create)(function(i){return t.validate(i)},n)}myt.Brand=d0l});var ggi=I(YEe=>{"use strict";Object.defineProperty(YEe,"__esModule",{value:!0});YEe.checked=YEe.check=void 0;var p0l=jEe(),f0l=pf(),D4r=new WeakMap;function A0l(r,t,n){var i=D4r.get(r)||new Map;D4r.set(r,i);var o=i.get(t)||[];i.set(t,o),o.push(n)}YEe.check=A0l;function h0l(r,t,n){var i=D4r.get(r),o=i&&i.get(t);if(o)return o;for(var s=[],a=0;a<n;a++)s.push(a);return s}function g0l(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(r.length===0)throw new Error("No runtype provided to `@checked`. Please remove the decorator.");return function(n,i,o){var s=o.value,a=(n.name||n.constructor.name+".prototype")+(typeof i=="string"?'["'.concat(i,'"]'):"[".concat(String(i),"]")),l=h0l(n,i,r.length);if(l.length!==r.length)throw new Error("Number of `@checked` runtypes and @check parameters not matched.");if(l.length>s.length)throw new Error("Number of `@checked` runtypes exceeds actual parameter length.");o.value=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return r.forEach(function(d,p){var f=l[p],A=d.validate(c[f]);if(!A.success){var h="".concat(a,", argument #").concat(f,": ").concat(A.message),y=f0l.FAILURE.ARGUMENT_INCORRECT(h);throw new p0l.ValidationError(y)}}),s.apply(this,c)}}}YEe.checked=g0l});var z3=I(Cl=>{"use strict";var m0l=Cl&&Cl.__createBinding||(Object.create?function(r,t,n,i){i===void 0&&(i=n),Object.defineProperty(r,i,{enumerable:!0,get:function(){return t[n]}})}:function(r,t,n,i){i===void 0&&(i=n),r[i]=t[n]}),ap=Cl&&Cl.__exportStar||function(r,t){for(var n in r)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&m0l(t,r,n)};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.InstanceOf=Cl.Nullish=Cl.Null=Cl.Undefined=Cl.Literal=void 0;ap(Ehi(),Cl);ap(g4r(),Cl);ap(Chi(),Cl);ap(Shi(),Cl);ap(_hi(),Cl);ap(jEe(),Cl);ap(Z2t(),Cl);ap(whi(),Cl);ap(Rhi(),Cl);var yyt=I4r();Object.defineProperty(Cl,"Literal",{enumerable:!0,get:function(){return yyt.Literal}});Object.defineProperty(Cl,"Undefined",{enumerable:!0,get:function(){return yyt.Undefined}});Object.defineProperty(Cl,"Null",{enumerable:!0,get:function(){return yyt.Null}});Object.defineProperty(Cl,"Nullish",{enumerable:!0,get:function(){return yyt.Nullish}});ap(Phi(),Cl);ap(Lhi(),Cl);ap(qhi(),Cl);ap(Ghi(),Cl);ap(T4r(),Cl);ap(Jhi(),Cl);ap(Zhi(),Cl);ap(tgi(),Cl);ap(ngi(),Cl);ap(ogi(),Cl);ap(E4r(),Cl);ap(agi(),Cl);ap(lgi(),Cl);ap(dgi(),Cl);var y0l=fgi();Object.defineProperty(Cl,"InstanceOf",{enumerable:!0,get:function(){return y0l.InstanceOf}});ap(Agi(),Cl);ap(x4r(),Cl);ap(hgi(),Cl);ap(ggi(),Cl)});var fqe=I((NUd,mgi)=>{var E0l="2.0.0",b0l=Number.MAX_SAFE_INTEGER||9007199254740991,C0l=16,I0l=250,v0l=["major","premajor","minor","preminor","patch","prepatch","prerelease"];mgi.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:C0l,MAX_SAFE_BUILD_LENGTH:I0l,MAX_SAFE_INTEGER:b0l,RELEASE_TYPES:v0l,SEMVER_SPEC_VERSION:E0l,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Aqe=I((PUd,ygi)=>{var S0l=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};ygi.exports=S0l});var KEe=I(($q,Egi)=>{var{MAX_SAFE_COMPONENT_LENGTH:N4r,MAX_SAFE_BUILD_LENGTH:_0l,MAX_LENGTH:O0l}=fqe(),T0l=Aqe();$q=Egi.exports={};var w0l=$q.re=[],R0l=$q.safeRe=[],cs=$q.src=[],ds=$q.t={},B0l=0,P4r="[a-zA-Z0-9-]",x0l=[["\\s",1],["\\d",O0l],[P4r,_0l]],M0l=r=>{for(let[t,n]of x0l)r=r.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return r},au=(r,t,n)=>{let i=M0l(t),o=B0l++;T0l(r,o,t),ds[r]=o,cs[o]=t,w0l[o]=new RegExp(t,n?"g":void 0),R0l[o]=new RegExp(i,n?"g":void 0)};au("NUMERICIDENTIFIER","0|[1-9]\\d*");au("NUMERICIDENTIFIERLOOSE","\\d+");au("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${P4r}*`);au("MAINVERSION",`(${cs[ds.NUMERICIDENTIFIER]})\\.(${cs[ds.NUMERICIDENTIFIER]})\\.(${cs[ds.NUMERICIDENTIFIER]})`);au("MAINVERSIONLOOSE",`(${cs[ds.NUMERICIDENTIFIERLOOSE]})\\.(${cs[ds.NUMERICIDENTIFIERLOOSE]})\\.(${cs[ds.NUMERICIDENTIFIERLOOSE]})`);au("PRERELEASEIDENTIFIER",`(?:${cs[ds.NUMERICIDENTIFIER]}|${cs[ds.NONNUMERICIDENTIFIER]})`);au("PRERELEASEIDENTIFIERLOOSE",`(?:${cs[ds.NUMERICIDENTIFIERLOOSE]}|${cs[ds.NONNUMERICIDENTIFIER]})`);au("PRERELEASE",`(?:-(${cs[ds.PRERELEASEIDENTIFIER]}(?:\\.${cs[ds.PRERELEASEIDENTIFIER]})*))`);au("PRERELEASELOOSE",`(?:-?(${cs[ds.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${cs[ds.PRERELEASEIDENTIFIERLOOSE]})*))`);au("BUILDIDENTIFIER",`${P4r}+`);au("BUILD",`(?:\\+(${cs[ds.BUILDIDENTIFIER]}(?:\\.${cs[ds.BUILDIDENTIFIER]})*))`);au("FULLPLAIN",`v?${cs[ds.MAINVERSION]}${cs[ds.PRERELEASE]}?${cs[ds.BUILD]}?`);au("FULL",`^${cs[ds.FULLPLAIN]}$`);au("LOOSEPLAIN",`[v=\\s]*${cs[ds.MAINVERSIONLOOSE]}${cs[ds.PRERELEASELOOSE]}?${cs[ds.BUILD]}?`);au("LOOSE",`^${cs[ds.LOOSEPLAIN]}$`);au("GTLT","((?:<|>)?=?)");au("XRANGEIDENTIFIERLOOSE",`${cs[ds.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);au("XRANGEIDENTIFIER",`${cs[ds.NUMERICIDENTIFIER]}|x|X|\\*`);au("XRANGEPLAIN",`[v=\\s]*(${cs[ds.XRANGEIDENTIFIER]})(?:\\.(${cs[ds.XRANGEIDENTIFIER]})(?:\\.(${cs[ds.XRANGEIDENTIFIER]})(?:${cs[ds.PRERELEASE]})?${cs[ds.BUILD]}?)?)?`);au("XRANGEPLAINLOOSE",`[v=\\s]*(${cs[ds.XRANGEIDENTIFIERLOOSE]})(?:\\.(${cs[ds.XRANGEIDENTIFIERLOOSE]})(?:\\.(${cs[ds.XRANGEIDENTIFIERLOOSE]})(?:${cs[ds.PRERELEASELOOSE]})?${cs[ds.BUILD]}?)?)?`);au("XRANGE",`^${cs[ds.GTLT]}\\s*${cs[ds.XRANGEPLAIN]}$`);au("XRANGELOOSE",`^${cs[ds.GTLT]}\\s*${cs[ds.XRANGEPLAINLOOSE]}$`);au("COERCE",`(^|[^\\d])(\\d{1,${N4r}})(?:\\.(\\d{1,${N4r}}))?(?:\\.(\\d{1,${N4r}}))?(?:$|[^\\d])`);au("COERCERTL",cs[ds.COERCE],!0);au("LONETILDE","(?:~>?)");au("TILDETRIM",`(\\s*)${cs[ds.LONETILDE]}\\s+`,!0);$q.tildeTrimReplace="$1~";au("TILDE",`^${cs[ds.LONETILDE]}${cs[ds.XRANGEPLAIN]}$`);au("TILDELOOSE",`^${cs[ds.LONETILDE]}${cs[ds.XRANGEPLAINLOOSE]}$`);au("LONECARET","(?:\\^)");au("CARETTRIM",`(\\s*)${cs[ds.LONECARET]}\\s+`,!0);$q.caretTrimReplace="$1^";au("CARET",`^${cs[ds.LONECARET]}${cs[ds.XRANGEPLAIN]}$`);au("CARETLOOSE",`^${cs[ds.LONECARET]}${cs[ds.XRANGEPLAINLOOSE]}$`);au("COMPARATORLOOSE",`^${cs[ds.GTLT]}\\s*(${cs[ds.LOOSEPLAIN]})$|^$`);au("COMPARATOR",`^${cs[ds.GTLT]}\\s*(${cs[ds.FULLPLAIN]})$|^$`);au("COMPARATORTRIM",`(\\s*)${cs[ds.GTLT]}\\s*(${cs[ds.LOOSEPLAIN]}|${cs[ds.XRANGEPLAIN]})`,!0);$q.comparatorTrimReplace="$1$2$3";au("HYPHENRANGE",`^\\s*(${cs[ds.XRANGEPLAIN]})\\s+-\\s+(${cs[ds.XRANGEPLAIN]})\\s*$`);au("HYPHENRANGELOOSE",`^\\s*(${cs[ds.XRANGEPLAINLOOSE]})\\s+-\\s+(${cs[ds.XRANGEPLAINLOOSE]})\\s*$`);au("STAR","(<|>)?=?\\s*\\*");au("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");au("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Eyt=I((kUd,bgi)=>{var D0l=Object.freeze({loose:!0}),N0l=Object.freeze({}),P0l=r=>r?typeof r!="object"?D0l:r:N0l;bgi.exports=P0l});var k4r=I((QUd,vgi)=>{var Cgi=/^[0-9]+$/,Igi=(r,t)=>{let n=Cgi.test(r),i=Cgi.test(t);return n&&i&&(r=+r,t=+t),r===t?0:n&&!i?-1:i&&!n?1:r<t?-1:1},k0l=(r,t)=>Igi(t,r);vgi.exports={compareIdentifiers:Igi,rcompareIdentifiers:k0l}});var _b=I((LUd,Tgi)=>{var byt=Aqe(),{MAX_LENGTH:Sgi,MAX_SAFE_INTEGER:Cyt}=fqe(),{safeRe:_gi,t:Ogi}=KEe(),Q0l=Eyt(),{compareIdentifiers:JEe}=k4r(),Q4r=class r{constructor(t,n){if(n=Q0l(n),t instanceof r){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Sgi)throw new TypeError(`version is longer than ${Sgi} characters`);byt("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=t.trim().match(n.loose?_gi[Ogi.LOOSE]:_gi[Ogi.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Cyt||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Cyt||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Cyt||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let s=+o;if(s>=0&&s<Cyt)return s}return o}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(byt("SemVer.compare",this.version,this.options,t),!(t instanceof r)){if(typeof t=="string"&&t===this.version)return 0;t=new r(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof r||(t=new r(t,this.options)),JEe(this.major,t.major)||JEe(this.minor,t.minor)||JEe(this.patch,t.patch)}comparePre(t){if(t instanceof r||(t=new r(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let i=this.prerelease[n],o=t.prerelease[n];if(byt("prerelease compare",n,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return JEe(i,o)}while(++n)}compareBuild(t){t instanceof r||(t=new r(t,this.options));let n=0;do{let i=this.build[n],o=t.build[n];if(byt("prerelease compare",n,i,o),i===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(i===void 0)return-1;if(i===o)continue;return JEe(i,o)}while(++n)}inc(t,n,i){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(i)?1:0;if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(n){let s=[n,o];i===!1&&(s=[n]),JEe(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Tgi.exports=Q4r});var Hue=I((FUd,Rgi)=>{var wgi=_b(),L0l=(r,t,n=!1)=>{if(r instanceof wgi)return r;try{return new wgi(r,t)}catch(i){if(!n)return null;throw i}};Rgi.exports=L0l});var xgi=I((zUd,Bgi)=>{var F0l=Hue(),z0l=(r,t)=>{let n=F0l(r,t);return n?n.version:null};Bgi.exports=z0l});var Dgi=I((qUd,Mgi)=>{var q0l=Hue(),U0l=(r,t)=>{let n=q0l(r.trim().replace(/^[=v]+/,""),t);return n?n.version:null};Mgi.exports=U0l});var kgi=I((UUd,Pgi)=>{var Ngi=_b(),j0l=(r,t,n,i,o)=>{typeof n=="string"&&(o=i,i=n,n=void 0);try{return new Ngi(r instanceof Ngi?r.version:r,n).inc(t,i,o).version}catch{return null}};Pgi.exports=j0l});var Fgi=I((jUd,Lgi)=>{var Qgi=Hue(),G0l=(r,t)=>{let n=Qgi(r,null,!0),i=Qgi(t,null,!0),o=n.compare(i);if(o===0)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length;if(!!l.prerelease.length&&!c)return!l.patch&&!l.minor?"major":a.patch?"patch":a.minor?"minor":"major";let d=c?"pre":"";return n.major!==i.major?d+"major":n.minor!==i.minor?d+"minor":n.patch!==i.patch?d+"patch":"prerelease"};Lgi.exports=G0l});var qgi=I((GUd,zgi)=>{var W0l=_b(),H0l=(r,t)=>new W0l(r,t).major;zgi.exports=H0l});var jgi=I((WUd,Ugi)=>{var V0l=_b(),Y0l=(r,t)=>new V0l(r,t).minor;Ugi.exports=Y0l});var Wgi=I((HUd,Ggi)=>{var K0l=_b(),J0l=(r,t)=>new K0l(r,t).patch;Ggi.exports=J0l});var Vgi=I((VUd,Hgi)=>{var X0l=Hue(),$0l=(r,t)=>{let n=X0l(r,t);return n&&n.prerelease.length?n.prerelease:null};Hgi.exports=$0l});var xw=I((YUd,Kgi)=>{var Ygi=_b(),Z0l=(r,t,n)=>new Ygi(r,n).compare(new Ygi(t,n));Kgi.exports=Z0l});var Xgi=I((KUd,Jgi)=>{var edl=xw(),tdl=(r,t,n)=>edl(t,r,n);Jgi.exports=tdl});var Zgi=I((JUd,$gi)=>{var rdl=xw(),ndl=(r,t)=>rdl(r,t,!0);$gi.exports=ndl});var Iyt=I((XUd,tmi)=>{var emi=_b(),idl=(r,t,n)=>{let i=new emi(r,n),o=new emi(t,n);return i.compare(o)||i.compareBuild(o)};tmi.exports=idl});var nmi=I(($Ud,rmi)=>{var odl=Iyt(),sdl=(r,t)=>r.sort((n,i)=>odl(n,i,t));rmi.exports=sdl});var omi=I((ZUd,imi)=>{var adl=Iyt(),ldl=(r,t)=>r.sort((n,i)=>adl(i,n,t));imi.exports=ldl});var hqe=I((ejd,smi)=>{var udl=xw(),cdl=(r,t,n)=>udl(r,t,n)>0;smi.exports=cdl});var vyt=I((tjd,ami)=>{var ddl=xw(),pdl=(r,t,n)=>ddl(r,t,n)<0;ami.exports=pdl});var L4r=I((rjd,lmi)=>{var fdl=xw(),Adl=(r,t,n)=>fdl(r,t,n)===0;lmi.exports=Adl});var F4r=I((njd,umi)=>{var hdl=xw(),gdl=(r,t,n)=>hdl(r,t,n)!==0;umi.exports=gdl});var Syt=I((ijd,cmi)=>{var mdl=xw(),ydl=(r,t,n)=>mdl(r,t,n)>=0;cmi.exports=ydl});var _yt=I((ojd,dmi)=>{var Edl=xw(),bdl=(r,t,n)=>Edl(r,t,n)<=0;dmi.exports=bdl});var z4r=I((sjd,pmi)=>{var Cdl=L4r(),Idl=F4r(),vdl=hqe(),Sdl=Syt(),_dl=vyt(),Odl=_yt(),Tdl=(r,t,n,i)=>{switch(t){case"===":return typeof r=="object"&&(r=r.version),typeof n=="object"&&(n=n.version),r===n;case"!==":return typeof r=="object"&&(r=r.version),typeof n=="object"&&(n=n.version),r!==n;case"":case"=":case"==":return Cdl(r,n,i);case"!=":return Idl(r,n,i);case">":return vdl(r,n,i);case">=":return Sdl(r,n,i);case"<":return _dl(r,n,i);case"<=":return Odl(r,n,i);default:throw new TypeError(`Invalid operator: ${t}`)}};pmi.exports=Tdl});var Ami=I((ajd,fmi)=>{var wdl=_b(),Rdl=Hue(),{safeRe:Oyt,t:Tyt}=KEe(),Bdl=(r,t)=>{if(r instanceof wdl)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;t=t||{};let n=null;if(!t.rtl)n=r.match(Oyt[Tyt.COERCE]);else{let i;for(;(i=Oyt[Tyt.COERCERTL].exec(r))&&(!n||n.index+n[0].length!==r.length);)(!n||i.index+i[0].length!==n.index+n[0].length)&&(n=i),Oyt[Tyt.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Oyt[Tyt.COERCERTL].lastIndex=-1}return n===null?null:Rdl(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};fmi.exports=Bdl});var gmi=I((ljd,hmi)=>{"use strict";hmi.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var q4r=I((ujd,mmi)=>{"use strict";mmi.exports=p0;p0.Node=Vue;p0.create=p0;function p0(r){var t=this;if(t instanceof p0||(t=new p0),t.tail=null,t.head=null,t.length=0,r&&typeof r.forEach=="function")r.forEach(function(o){t.push(o)});else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}p0.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var t=r.next,n=r.prev;return t&&(t.prev=n),n&&(n.next=t),r===this.head&&(this.head=t),r===this.tail&&(this.tail=n),r.list.length--,r.next=null,r.prev=null,r.list=null,t};p0.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var t=this.head;r.list=this,r.next=t,t&&(t.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};p0.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var t=this.tail;r.list=this,r.prev=t,t&&(t.next=r),this.tail=r,this.head||(this.head=r),this.length++}};p0.prototype.push=function(){for(var r=0,t=arguments.length;r<t;r++)Mdl(this,arguments[r]);return this.length};p0.prototype.unshift=function(){for(var r=0,t=arguments.length;r<t;r++)Ddl(this,arguments[r]);return this.length};p0.prototype.pop=function(){if(this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};p0.prototype.shift=function(){if(this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};p0.prototype.forEach=function(r,t){t=t||this;for(var n=this.head,i=0;n!==null;i++)r.call(t,n.value,i,this),n=n.next};p0.prototype.forEachReverse=function(r,t){t=t||this;for(var n=this.tail,i=this.length-1;n!==null;i--)r.call(t,n.value,i,this),n=n.prev};p0.prototype.get=function(r){for(var t=0,n=this.head;n!==null&&t<r;t++)n=n.next;if(t===r&&n!==null)return n.value};p0.prototype.getReverse=function(r){for(var t=0,n=this.tail;n!==null&&t<r;t++)n=n.prev;if(t===r&&n!==null)return n.value};p0.prototype.map=function(r,t){t=t||this;for(var n=new p0,i=this.head;i!==null;)n.push(r.call(t,i.value,this)),i=i.next;return n};p0.prototype.mapReverse=function(r,t){t=t||this;for(var n=new p0,i=this.tail;i!==null;)n.push(r.call(t,i.value,this)),i=i.prev;return n};p0.prototype.reduce=function(r,t){var n,i=this.head;if(arguments.length>1)n=t;else if(this.head)i=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;i!==null;o++)n=r(n,i.value,o),i=i.next;return n};p0.prototype.reduceReverse=function(r,t){var n,i=this.tail;if(arguments.length>1)n=t;else if(this.tail)i=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;i!==null;o--)n=r(n,i.value,o),i=i.prev;return n};p0.prototype.toArray=function(){for(var r=new Array(this.length),t=0,n=this.head;n!==null;t++)r[t]=n.value,n=n.next;return r};p0.prototype.toArrayReverse=function(){for(var r=new Array(this.length),t=0,n=this.tail;n!==null;t++)r[t]=n.value,n=n.prev;return r};p0.prototype.slice=function(r,t){t=t||this.length,t<0&&(t+=this.length),r=r||0,r<0&&(r+=this.length);var n=new p0;if(t<r||t<0)return n;r<0&&(r=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;o!==null&&i<r;i++)o=o.next;for(;o!==null&&i<t;i++,o=o.next)n.push(o.value);return n};p0.prototype.sliceReverse=function(r,t){t=t||this.length,t<0&&(t+=this.length),r=r||0,r<0&&(r+=this.length);var n=new p0;if(t<r||t<0)return n;r<0&&(r=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;o!==null&&i>t;i--)o=o.prev;for(;o!==null&&i>r;i--,o=o.prev)n.push(o.value);return n};p0.prototype.splice=function(r,t,...n){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var i=0,o=this.head;o!==null&&i<r;i++)o=o.next;for(var s=[],i=0;o&&i<t;i++)s.push(o.value),o=this.removeNode(o);o===null&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var i=0;i<n.length;i++)o=xdl(this,o,n[i]);return s};p0.prototype.reverse=function(){for(var r=this.head,t=this.tail,n=r;n!==null;n=n.prev){var i=n.prev;n.prev=n.next,n.next=i}return this.head=t,this.tail=r,this};function xdl(r,t,n){var i=t===r.head?new Vue(n,null,t,r):new Vue(n,t,t.next,r);return i.next===null&&(r.tail=i),i.prev===null&&(r.head=i),r.length++,i}function Mdl(r,t){r.tail=new Vue(t,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function Ddl(r,t){r.head=new Vue(t,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function Vue(r,t,n,i){if(!(this instanceof Vue))return new Vue(r,t,n,i);this.list=i,this.value=r,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{gmi()(p0)}catch{}});var ZEe=I((cjd,Cmi)=>{"use strict";var Ndl=q4r(),Yue=Symbol("max"),eU=Symbol("length"),XEe=Symbol("lengthCalculator"),mqe=Symbol("allowStale"),Kue=Symbol("maxAge"),Zq=Symbol("dispose"),ymi=Symbol("noDisposeOnSet"),Z2=Symbol("lruList"),rx=Symbol("cache"),bmi=Symbol("updateAgeOnGet"),U4r=()=>1,G4r=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");let n=this[Yue]=t.max||1/0,i=t.length||U4r;if(this[XEe]=typeof i!="function"?U4r:i,this[mqe]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Kue]=t.maxAge||0,this[Zq]=t.dispose,this[ymi]=t.noDisposeOnSet||!1,this[bmi]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Yue]=t||1/0,gqe(this)}get max(){return this[Yue]}set allowStale(t){this[mqe]=!!t}get allowStale(){return this[mqe]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Kue]=t,gqe(this)}get maxAge(){return this[Kue]}set lengthCalculator(t){typeof t!="function"&&(t=U4r),t!==this[XEe]&&(this[XEe]=t,this[eU]=0,this[Z2].forEach(n=>{n.length=this[XEe](n.value,n.key),this[eU]+=n.length})),gqe(this)}get lengthCalculator(){return this[XEe]}get length(){return this[eU]}get itemCount(){return this[Z2].length}rforEach(t,n){n=n||this;for(let i=this[Z2].tail;i!==null;){let o=i.prev;Emi(this,t,i,n),i=o}}forEach(t,n){n=n||this;for(let i=this[Z2].head;i!==null;){let o=i.next;Emi(this,t,i,n),i=o}}keys(){return this[Z2].toArray().map(t=>t.key)}values(){return this[Z2].toArray().map(t=>t.value)}reset(){this[Zq]&&this[Z2]&&this[Z2].length&&this[Z2].forEach(t=>this[Zq](t.key,t.value)),this[rx]=new Map,this[Z2]=new Ndl,this[eU]=0}dump(){return this[Z2].map(t=>wyt(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Z2]}set(t,n,i){if(i=i||this[Kue],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let o=i?Date.now():0,s=this[XEe](n,t);if(this[rx].has(t)){if(s>this[Yue])return $Ee(this,this[rx].get(t)),!1;let c=this[rx].get(t).value;return this[Zq]&&(this[ymi]||this[Zq](t,c.value)),c.now=o,c.maxAge=i,c.value=n,this[eU]+=s-c.length,c.length=s,this.get(t),gqe(this),!0}let a=new W4r(t,n,s,o,i);return a.length>this[Yue]?(this[Zq]&&this[Zq](t,n),!1):(this[eU]+=a.length,this[Z2].unshift(a),this[rx].set(t,this[Z2].head),gqe(this),!0)}has(t){if(!this[rx].has(t))return!1;let n=this[rx].get(t).value;return!wyt(this,n)}get(t){return j4r(this,t,!0)}peek(t){return j4r(this,t,!1)}pop(){let t=this[Z2].tail;return t?($Ee(this,t),t.value):null}del(t){$Ee(this,this[rx].get(t))}load(t){this.reset();let n=Date.now();for(let i=t.length-1;i>=0;i--){let o=t[i],s=o.e||0;if(s===0)this.set(o.k,o.v);else{let a=s-n;a>0&&this.set(o.k,o.v,a)}}}prune(){this[rx].forEach((t,n)=>j4r(this,n,!1))}},j4r=(r,t,n)=>{let i=r[rx].get(t);if(i){let o=i.value;if(wyt(r,o)){if($Ee(r,i),!r[mqe])return}else n&&(r[bmi]&&(i.value.now=Date.now()),r[Z2].unshiftNode(i));return o.value}},wyt=(r,t)=>{if(!t||!t.maxAge&&!r[Kue])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:r[Kue]&&n>r[Kue]},gqe=r=>{if(r[eU]>r[Yue])for(let t=r[Z2].tail;r[eU]>r[Yue]&&t!==null;){let n=t.prev;$Ee(r,t),t=n}},$Ee=(r,t)=>{if(t){let n=t.value;r[Zq]&&r[Zq](n.key,n.value),r[eU]-=n.length,r[rx].delete(n.key),r[Z2].removeNode(t)}},W4r=class{constructor(t,n,i,o,s){this.key=t,this.value=n,this.length=i,this.now=o,this.maxAge=s||0}},Emi=(r,t,n,i)=>{let o=n.value;wyt(r,o)&&($Ee(r,n),r[mqe]||(o=void 0)),o&&t.call(i,o.value,o.key,r)};Cmi.exports=G4r});var Mw=I((djd,_mi)=>{var H4r=class r{constructor(t,n){if(n=kdl(n),t instanceof r)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new r(t.raw,n);if(t instanceof V4r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(o=>!vmi(o[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&jdl(o[0])){this.set=[o];break}}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){let i=((this.options.includePrerelease&&qdl)|(this.options.loose&&Udl))+":"+t,o=Imi.get(i);if(o)return o;let s=this.options.loose,a=s?E4[gI.HYPHENRANGELOOSE]:E4[gI.HYPHENRANGE];t=t.replace(a,Zdl(this.options.includePrerelease)),O1("hyphen replace",t),t=t.replace(E4[gI.COMPARATORTRIM],Ldl),O1("comparator trim",t),t=t.replace(E4[gI.TILDETRIM],Fdl),O1("tilde trim",t),t=t.replace(E4[gI.CARETTRIM],zdl),O1("caret trim",t);let l=t.split(" ").map(p=>Gdl(p,this.options)).join(" ").split(/\s+/).map(p=>$dl(p,this.options));s&&(l=l.filter(p=>(O1("loose invalid filter",p,this.options),!!p.match(E4[gI.COMPARATORLOOSE])))),O1("range list",l);let c=new Map,u=l.map(p=>new V4r(p,this.options));for(let p of u){if(vmi(p))return[p];c.set(p.value,p)}c.size>1&&c.has("")&&c.delete("");let d=[...c.values()];return Imi.set(i,d),d}intersects(t,n){if(!(t instanceof r))throw new TypeError("a Range is required");return this.set.some(i=>Smi(i,n)&&t.set.some(o=>Smi(o,n)&&i.every(s=>o.every(a=>s.intersects(a,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new Qdl(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(epl(this.set[n],t,this.options))return!0;return!1}};_mi.exports=H4r;var Pdl=ZEe(),Imi=new Pdl({max:1e3}),kdl=Eyt(),V4r=yqe(),O1=Aqe(),Qdl=_b(),{safeRe:E4,t:gI,comparatorTrimReplace:Ldl,tildeTrimReplace:Fdl,caretTrimReplace:zdl}=KEe(),{FLAG_INCLUDE_PRERELEASE:qdl,FLAG_LOOSE:Udl}=fqe(),vmi=r=>r.value==="<0.0.0-0",jdl=r=>r.value==="",Smi=(r,t)=>{let n=!0,i=r.slice(),o=i.pop();for(;n&&i.length;)n=i.every(s=>o.intersects(s,t)),o=i.pop();return n},Gdl=(r,t)=>(O1("comp",r,t),r=Vdl(r,t),O1("caret",r),r=Wdl(r,t),O1("tildes",r),r=Kdl(r,t),O1("xrange",r),r=Xdl(r,t),O1("stars",r),r),mI=r=>!r||r.toLowerCase()==="x"||r==="*",Wdl=(r,t)=>r.trim().split(/\s+/).map(n=>Hdl(n,t)).join(" "),Hdl=(r,t)=>{let n=t.loose?E4[gI.TILDELOOSE]:E4[gI.TILDE];return r.replace(n,(i,o,s,a,l)=>{O1("tilde",r,i,o,s,a,l);let c;return mI(o)?c="":mI(s)?c=`>=${o}.0.0 <${+o+1}.0.0-0`:mI(a)?c=`>=${o}.${s}.0 <${o}.${+s+1}.0-0`:l?(O1("replaceTilde pr",l),c=`>=${o}.${s}.${a}-${l} <${o}.${+s+1}.0-0`):c=`>=${o}.${s}.${a} <${o}.${+s+1}.0-0`,O1("tilde return",c),c})},Vdl=(r,t)=>r.trim().split(/\s+/).map(n=>Ydl(n,t)).join(" "),Ydl=(r,t)=>{O1("caret",r,t);let n=t.loose?E4[gI.CARETLOOSE]:E4[gI.CARET],i=t.includePrerelease?"-0":"";return r.replace(n,(o,s,a,l,c)=>{O1("caret",r,o,s,a,l,c);let u;return mI(s)?u="":mI(a)?u=`>=${s}.0.0${i} <${+s+1}.0.0-0`:mI(l)?s==="0"?u=`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.0${i} <${+s+1}.0.0-0`:c?(O1("replaceCaret pr",c),s==="0"?a==="0"?u=`>=${s}.${a}.${l}-${c} <${s}.${a}.${+l+1}-0`:u=`>=${s}.${a}.${l}-${c} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${l}-${c} <${+s+1}.0.0-0`):(O1("no pr"),s==="0"?a==="0"?u=`>=${s}.${a}.${l}${i} <${s}.${a}.${+l+1}-0`:u=`>=${s}.${a}.${l}${i} <${s}.${+a+1}.0-0`:u=`>=${s}.${a}.${l} <${+s+1}.0.0-0`),O1("caret return",u),u})},Kdl=(r,t)=>(O1("replaceXRanges",r,t),r.split(/\s+/).map(n=>Jdl(n,t)).join(" ")),Jdl=(r,t)=>{r=r.trim();let n=t.loose?E4[gI.XRANGELOOSE]:E4[gI.XRANGE];return r.replace(n,(i,o,s,a,l,c)=>{O1("xRange",r,i,o,s,a,l,c);let u=mI(s),d=u||mI(a),p=d||mI(l),f=p;return o==="="&&f&&(o=""),c=t.includePrerelease?"-0":"",u?o===">"||o==="<"?i="<0.0.0-0":i="*":o&&f?(d&&(a=0),l=0,o===">"?(o=">=",d?(s=+s+1,a=0,l=0):(a=+a+1,l=0)):o==="<="&&(o="<",d?s=+s+1:a=+a+1),o==="<"&&(c="-0"),i=`${o+s}.${a}.${l}${c}`):d?i=`>=${s}.0.0${c} <${+s+1}.0.0-0`:p&&(i=`>=${s}.${a}.0${c} <${s}.${+a+1}.0-0`),O1("xRange return",i),i})},Xdl=(r,t)=>(O1("replaceStars",r,t),r.trim().replace(E4[gI.STAR],"")),$dl=(r,t)=>(O1("replaceGTE0",r,t),r.trim().replace(E4[t.includePrerelease?gI.GTE0PRE:gI.GTE0],"")),Zdl=r=>(t,n,i,o,s,a,l,c,u,d,p,f,A)=>(mI(i)?n="":mI(o)?n=`>=${i}.0.0${r?"-0":""}`:mI(s)?n=`>=${i}.${o}.0${r?"-0":""}`:a?n=`>=${n}`:n=`>=${n}${r?"-0":""}`,mI(u)?c="":mI(d)?c=`<${+u+1}.0.0-0`:mI(p)?c=`<${u}.${+d+1}.0-0`:f?c=`<=${u}.${d}.${p}-${f}`:r?c=`<${u}.${d}.${+p+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),epl=(r,t,n)=>{for(let i=0;i<r.length;i++)if(!r[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let i=0;i<r.length;i++)if(O1(r[i].semver),r[i].semver!==V4r.ANY&&r[i].semver.prerelease.length>0){let o=r[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}});var yqe=I((pjd,xmi)=>{var Eqe=Symbol("SemVer ANY"),J4r=class r{static get ANY(){return Eqe}constructor(t,n){if(n=Omi(n),t instanceof r){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),K4r("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===Eqe?this.value="":this.value=this.operator+this.semver.version,K4r("comp",this)}parse(t){let n=this.options.loose?Tmi[wmi.COMPARATORLOOSE]:Tmi[wmi.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Rmi(i[2],this.options.loose):this.semver=Eqe}toString(){return this.value}test(t){if(K4r("Comparator.test",t,this.options.loose),this.semver===Eqe||t===Eqe)return!0;if(typeof t=="string")try{t=new Rmi(t,this.options)}catch{return!1}return Y4r(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Bmi(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new Bmi(this.value,n).test(t.semver):(n=Omi(n),n.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||Y4r(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Y4r(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};xmi.exports=J4r;var Omi=Eyt(),{safeRe:Tmi,t:wmi}=KEe(),Y4r=z4r(),K4r=Aqe(),Rmi=_b(),Bmi=Mw()});var bqe=I((fjd,Mmi)=>{var tpl=Mw(),rpl=(r,t,n)=>{try{t=new tpl(t,n)}catch{return!1}return t.test(r)};Mmi.exports=rpl});var Nmi=I((Ajd,Dmi)=>{var npl=Mw(),ipl=(r,t)=>new npl(r,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));Dmi.exports=ipl});var kmi=I((hjd,Pmi)=>{var opl=_b(),spl=Mw(),apl=(r,t,n)=>{let i=null,o=null,s=null;try{s=new spl(t,n)}catch{return null}return r.forEach(a=>{s.test(a)&&(!i||o.compare(a)===-1)&&(i=a,o=new opl(i,n))}),i};Pmi.exports=apl});var Lmi=I((gjd,Qmi)=>{var lpl=_b(),upl=Mw(),cpl=(r,t,n)=>{let i=null,o=null,s=null;try{s=new upl(t,n)}catch{return null}return r.forEach(a=>{s.test(a)&&(!i||o.compare(a)===1)&&(i=a,o=new lpl(i,n))}),i};Qmi.exports=cpl});var qmi=I((mjd,zmi)=>{var X4r=_b(),dpl=Mw(),Fmi=hqe(),ppl=(r,t)=>{r=new dpl(r,t);let n=new X4r("0.0.0");if(r.test(n)||(n=new X4r("0.0.0-0"),r.test(n)))return n;n=null;for(let i=0;i<r.set.length;++i){let o=r.set[i],s=null;o.forEach(a=>{let l=new X4r(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!s||Fmi(l,s))&&(s=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!n||Fmi(n,s))&&(n=s)}return n&&r.test(n)?n:null};zmi.exports=ppl});var jmi=I((yjd,Umi)=>{var fpl=Mw(),Apl=(r,t)=>{try{return new fpl(r,t).range||"*"}catch{return null}};Umi.exports=Apl});var Ryt=I((Ejd,Vmi)=>{var hpl=_b(),Hmi=yqe(),{ANY:gpl}=Hmi,mpl=Mw(),ypl=bqe(),Gmi=hqe(),Wmi=vyt(),Epl=_yt(),bpl=Syt(),Cpl=(r,t,n,i)=>{r=new hpl(r,i),t=new mpl(t,i);let o,s,a,l,c;switch(n){case">":o=Gmi,s=Epl,a=Wmi,l=">",c=">=";break;case"<":o=Wmi,s=bpl,a=Gmi,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ypl(r,t,i))return!1;for(let u=0;u<t.set.length;++u){let d=t.set[u],p=null,f=null;if(d.forEach(A=>{A.semver===gpl&&(A=new Hmi(">=0.0.0")),p=p||A,f=f||A,o(A.semver,p.semver,i)?p=A:a(A.semver,f.semver,i)&&(f=A)}),p.operator===l||p.operator===c||(!f.operator||f.operator===l)&&s(r,f.semver))return!1;if(f.operator===c&&a(r,f.semver))return!1}return!0};Vmi.exports=Cpl});var Kmi=I((bjd,Ymi)=>{var Ipl=Ryt(),vpl=(r,t,n)=>Ipl(r,t,">",n);Ymi.exports=vpl});var Xmi=I((Cjd,Jmi)=>{var Spl=Ryt(),_pl=(r,t,n)=>Spl(r,t,"<",n);Jmi.exports=_pl});var e2i=I((Ijd,Zmi)=>{var $mi=Mw(),Opl=(r,t,n)=>(r=new $mi(r,n),t=new $mi(t,n),r.intersects(t,n));Zmi.exports=Opl});var r2i=I((vjd,t2i)=>{var Tpl=bqe(),wpl=xw();t2i.exports=(r,t,n)=>{let i=[],o=null,s=null,a=r.sort((d,p)=>wpl(d,p,n));for(let d of a)Tpl(d,t,n)?(s=d,o||(o=d)):(s&&i.push([o,s]),s=null,o=null);o&&i.push([o,null]);let l=[];for(let[d,p]of i)d===p?l.push(d):!p&&d===a[0]?l.push("*"):p?d===a[0]?l.push(`<=${p}`):l.push(`${d} - ${p}`):l.push(`>=${d}`);let c=l.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var l2i=I((Sjd,a2i)=>{var n2i=Mw(),Z4r=yqe(),{ANY:$4r}=Z4r,Cqe=bqe(),eSr=xw(),Rpl=(r,t,n={})=>{if(r===t)return!0;r=new n2i(r,n),t=new n2i(t,n);let i=!1;e:for(let o of r.set){for(let s of t.set){let a=xpl(o,s,n);if(i=i||a!==null,a)continue e}if(i)return!1}return!0},Bpl=[new Z4r(">=0.0.0-0")],i2i=[new Z4r(">=0.0.0")],xpl=(r,t,n)=>{if(r===t)return!0;if(r.length===1&&r[0].semver===$4r){if(t.length===1&&t[0].semver===$4r)return!0;n.includePrerelease?r=Bpl:r=i2i}if(t.length===1&&t[0].semver===$4r){if(n.includePrerelease)return!0;t=i2i}let i=new Set,o,s;for(let A of r)A.operator===">"||A.operator===">="?o=o2i(o,A,n):A.operator==="<"||A.operator==="<="?s=s2i(s,A,n):i.add(A.semver);if(i.size>1)return null;let a;if(o&&s){if(a=eSr(o.semver,s.semver,n),a>0)return null;if(a===0&&(o.operator!==">="||s.operator!=="<="))return null}for(let A of i){if(o&&!Cqe(A,String(o),n)||s&&!Cqe(A,String(s),n))return null;for(let h of t)if(!Cqe(A,String(h),n))return!1;return!0}let l,c,u,d,p=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,f=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&s.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let A of t){if(d=d||A.operator===">"||A.operator===">=",u=u||A.operator==="<"||A.operator==="<=",o){if(f&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===f.major&&A.semver.minor===f.minor&&A.semver.patch===f.patch&&(f=!1),A.operator===">"||A.operator===">="){if(l=o2i(o,A,n),l===A&&l!==o)return!1}else if(o.operator===">="&&!Cqe(o.semver,String(A),n))return!1}if(s){if(p&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===p.major&&A.semver.minor===p.minor&&A.semver.patch===p.patch&&(p=!1),A.operator==="<"||A.operator==="<="){if(c=s2i(s,A,n),c===A&&c!==s)return!1}else if(s.operator==="<="&&!Cqe(s.semver,String(A),n))return!1}if(!A.operator&&(s||o)&&a!==0)return!1}return!(o&&u&&!s&&a!==0||s&&d&&!o&&a!==0||f||p)},o2i=(r,t,n)=>{if(!r)return t;let i=eSr(r.semver,t.semver,n);return i>0?r:i<0||t.operator===">"&&r.operator===">="?t:r},s2i=(r,t,n)=>{if(!r)return t;let i=eSr(r.semver,t.semver,n);return i<0?r:i>0||t.operator==="<"&&r.operator==="<="?t:r};a2i.exports=Rpl});var ebe=I((_jd,d2i)=>{var tSr=KEe(),u2i=fqe(),Mpl=_b(),c2i=k4r(),Dpl=Hue(),Npl=xgi(),Ppl=Dgi(),kpl=kgi(),Qpl=Fgi(),Lpl=qgi(),Fpl=jgi(),zpl=Wgi(),qpl=Vgi(),Upl=xw(),jpl=Xgi(),Gpl=Zgi(),Wpl=Iyt(),Hpl=nmi(),Vpl=omi(),Ypl=hqe(),Kpl=vyt(),Jpl=L4r(),Xpl=F4r(),$pl=Syt(),Zpl=_yt(),e1l=z4r(),t1l=Ami(),r1l=yqe(),n1l=Mw(),i1l=bqe(),o1l=Nmi(),s1l=kmi(),a1l=Lmi(),l1l=qmi(),u1l=jmi(),c1l=Ryt(),d1l=Kmi(),p1l=Xmi(),f1l=e2i(),A1l=r2i(),h1l=l2i();d2i.exports={parse:Dpl,valid:Npl,clean:Ppl,inc:kpl,diff:Qpl,major:Lpl,minor:Fpl,patch:zpl,prerelease:qpl,compare:Upl,rcompare:jpl,compareLoose:Gpl,compareBuild:Wpl,sort:Hpl,rsort:Vpl,gt:Ypl,lt:Kpl,eq:Jpl,neq:Xpl,gte:$pl,lte:Zpl,cmp:e1l,coerce:t1l,Comparator:r1l,Range:n1l,satisfies:i1l,toComparators:o1l,maxSatisfying:s1l,minSatisfying:a1l,minVersion:l1l,validRange:u1l,outside:c1l,gtr:d1l,ltr:p1l,intersects:f1l,simplifyRange:A1l,subset:h1l,SemVer:Mpl,re:tSr.re,src:tSr.src,tokens:tSr.t,SEMVER_SPEC_VERSION:u2i.SEMVER_SPEC_VERSION,RELEASE_TYPES:u2i.RELEASE_TYPES,compareIdentifiers:c2i.compareIdentifiers,rcompareIdentifiers:c2i.rcompareIdentifiers}});var Iqe,g1l,Ojd,m1l,tU,tbe=et(()=>{"use strict";Iqe=Ct(z3()),g1l=Ct(ebe()),Ojd=(0,Iqe.Record)({version:Iqe.String,hash:Iqe.String}),m1l=()=>({version:"7.15.2",hash:"c073bede74a205f5ba12366366ebfeed88e51da1"}),tU=m1l()});var p2i,Dw,f2i,rSr,nSr,E1l,Byt,b1l,vqe,xyt=et(()=>{"use strict";p2i=Ct(Pue());oqe();jue();Sqe();wu();tbe();f2i=r=>{Dw=r},rSr=r=>r.includes("production")?"production":r.includes("staging")?"staging":r.includes("qa")?"qa":"development",nSr=()=>{if(Xf()){let r=process.env.RUNTIME_ENVIRONMENT||"development";return vqn("coa")?process.env.COALESCE_COA_CLOUD_JOB_ID?rSr(r):void 0:rSr(r)}else{let r;try{r=self.ENVIRONMENT}catch{}return typeof r=="string"?rSr(r):void 0}},E1l=()=>{let r=Tu();if(r.isTest)return{};let t=nSr();return r.isNode?{firebaseEnv:t}:{windowInfo:{frontendURLHost:self.location.host},firebaseEnv:t}},Byt=r=>({coalesceSoftwareVersion:tU?.version||"",service:r,env:process.env.REACT_APP_OWNER??"",reactAppCoalesceDev:process.env.REACT_APP_COALESCE_DEV??""}),b1l=r=>{let t=Byt(Dw);return{appEnv:E1l(),loggingArea:r,...t}},vqe=r=>{let t=ww[r];if(!t)throw new Error(`Logging area "${r}" is not a valid LoggingAreas key`);return t.logger||(t.logger=p2i.createLogger({levels:V2t.LEVELS,defaultMeta:b1l(r),level:t.level,transports:A2i(t)})),t.logger}});var aSr,b4,iSr,h2i,g2i,m2i,oSr,lSr,Myt,C1l,uSr,rbe,sSr,Dyt,cSr,A2i,Sqe=et(()=>{"use strict";aSr=Ct(Gq()),b4=Ct(Pue());jue();Y2t();xyt();wu();iSr=null,h2i=r=>{iSr=r},g2i={emerg:"error",assert:"warn",alert:"warn",error:"warn",warn:"warn",app:"info",info:"info",debug:"debug"},m2i={emerg:"emerg",assert:"alert",alert:"alert",error:"error",app:"info",info:"info",warn:"warn",debug:"debug"},oSr=class extends aSr.default{baseContext;constructor(t){super(t),this.baseContext=Byt(Dw)}log(t,n){iSr&&iSr.log({...t,level:m2i[t.level]},{...this.baseContext,...zg},g2i[t.level]),n()}},Myt=r=>{let t=Byt(r);lSr={host:"http-intake.logs.datadoghq.com",path:`/v1/input/pub04bd017317b60c96b62874179d82ff97?ddtags=env:${t.env},coalesceSoftwareVersion:${t.coalesceSoftwareVersion}&ddsource=nodejs&service=${r}`,ssl:!0}},C1l=!1,uSr=()=>b4.format.combine(b4.format.timestamp(),b4.format.colorize({colors:V2t.COLORS}),b4.format.printf(r=>`|${r.timestamp}|${process.env.JEST_WORKER_ID?`[SHARD:${process.env.JEST_WORKER_ID}]`:""}[${r.loggingArea}]${r.orgID?`|(org:${r.orgID})`:""}${r.workspaceID?`|(env:${r.workspaceID})`:""}${r.userID?`|(user:${r.userID})`:""}${r.runID?`|run:${r.runID})`:""}(${r.nodeID?`|(node:${r.nodeID})`:""})|)|${r.level}:${r.message}`)),rbe=r=>new b4.transports.Console({format:process.env.CONSOLE_JSON_LOGS?b4.format.combine(b4.format.timestamp(),b4.format.json()):uSr(),level:r.level,silent:C1l}),sSr=class extends aSr.default{httpTransport;constructor(t,n){super(n),this.httpTransport=t}log(t,n){this.httpTransport.log?.({...t,level:m2i[t.level],status:g2i[t.level]},n)}},Dyt=()=>{let r=new b4.transports.Http({...lSr,format:b4.format.combine(uSr(),b4.format.uncolorize())});return new sSr(r)},cSr=()=>new b4.transports.File({filename:process.env.JEST_WORKER_ID?`test-shard-${process.env.JEST_WORKER_ID}.log`:"test.log",dirname:"./test-logs",format:uSr(),level:H2t.debug}),A2i=r=>{let t=[];return t.push(rbe(r)),lSr&&t.push(Dyt()),Tu().isTest&&t.push(cSr()),[new oSr,...t]}});var y2i,Nyt,Pyt,dSr,kyt,rU,E2i=et(()=>{"use strict";y2i=Ct(us()),Nyt=Ct(Pue());oqe();Sqe();wu();xyt();jue();Lg();Pyt=(r,t)=>{let n=r.toUpperCase(),i=[];if(n in ww||i.push(`invalid logging area '${n}'`),H2t[t]||i.push("`invalid log level '${logLevel}'`"),i.length)throw i.forEach(l=>{console.error(l)}),new Error("Invalid logging area or log level: "+i.join(", "));let o=vqe(n),s=o.transports.filter(l=>l instanceof Nyt.transports.Console),a=o.transports;s.length||(a=[...a,rbe(ww[n])]),a.filter(l=>l instanceof Nyt.transports.Console)[0].level=t,o.configure({...o,transports:o.transports})},dSr=()=>{Object.keys(ww).forEach(r=>{Pyt(r,"debug")})},kyt=(r,t)=>{for(let n in r){let i=n,o=vqe(i);r[i].defaultMeta={...o.defaultMeta,...r[i].defaultMeta,...t};let s=r[i].transports||o.transports,a;if(Tu().isTest&&s.length>0){let l=s[s.length-1];l instanceof Nyt.transports.File&&(a=l,s=o.transports.slice(0,-1),s.push(cSr()))}o.configure({...o,...r[i],transports:s,level:r[i].level||o.level}),a&&a.close&&a.close()}},rU=r=>{let t=y2i.default.mapValues(ww,(n,i)=>({}));kyt(t,r)}});function _qe(r,t){return function(){return r.apply(t,arguments)}}var pSr=et(()=>{"use strict"});function v1l(r){return r!==null&&!Oqe(r)&&r.constructor!==null&&!Oqe(r.constructor)&&E5(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}function S1l(r){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(r):t=r&&r.buffer&&I2i(r.buffer),t}function Tqe(r,t,{allOwnKeys:n=!1}={}){if(r===null||typeof r>"u")return;let i,o;if(typeof r!="object"&&(r=[r]),nbe(r))for(i=0,o=r.length;i<o;i++)t.call(null,r[i],i,r);else{let s=n?Object.getOwnPropertyNames(r):Object.keys(r),a=s.length,l;for(i=0;i<a;i++)l=s[i],t.call(null,r[l],l,r)}}function S2i(r,t){t=t.toLowerCase();let n=Object.keys(r),i=n.length,o;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}function ASr(){let{caseless:r}=_2i(this)&&this||{},t={},n=(i,o)=>{let s=r&&S2i(t,o)||o;Qyt(t[s])&&Qyt(i)?t[s]=ASr(t[s],i):Qyt(i)?t[s]=ASr({},i):nbe(i)?t[s]=i.slice():t[s]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Tqe(arguments[i],n);return t}function rfl(r){return!!(r&&E5(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}var I1l,hSr,Lyt,nx,Fyt,nbe,Oqe,I2i,_1l,E5,v2i,zyt,O1l,Qyt,T1l,w1l,R1l,B1l,x1l,M1l,D1l,N1l,P1l,k1l,Q1l,L1l,Jue,_2i,F1l,z1l,q1l,U1l,j1l,G1l,W1l,H1l,V1l,Y1l,K1l,b2i,J1l,O2i,X1l,$1l,Z1l,efl,fSr,C2i,T2i,tfl,nfl,ifl,ofl,w2i,sfl,er,Qd=et(()=>{"use strict";pSr();({toString:I1l}=Object.prototype),{getPrototypeOf:hSr}=Object,Lyt=(r=>t=>{let n=I1l.call(t);return r[n]||(r[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),nx=r=>(r=r.toLowerCase(),t=>Lyt(t)===r),Fyt=r=>t=>typeof t===r,{isArray:nbe}=Array,Oqe=Fyt("undefined");I2i=nx("ArrayBuffer");_1l=Fyt("string"),E5=Fyt("function"),v2i=Fyt("number"),zyt=r=>r!==null&&typeof r=="object",O1l=r=>r===!0||r===!1,Qyt=r=>{if(Lyt(r)!=="object")return!1;let t=hSr(r);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},T1l=nx("Date"),w1l=nx("File"),R1l=nx("Blob"),B1l=nx("FileList"),x1l=r=>zyt(r)&&E5(r.pipe),M1l=r=>{let t;return r&&(typeof FormData=="function"&&r instanceof FormData||E5(r.append)&&((t=Lyt(r))==="formdata"||t==="object"&&E5(r.toString)&&r.toString()==="[object FormData]"))},D1l=nx("URLSearchParams"),[N1l,P1l,k1l,Q1l]=["ReadableStream","Request","Response","Headers"].map(nx),L1l=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");Jue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_2i=r=>!Oqe(r)&&r!==Jue;F1l=(r,t,n,{allOwnKeys:i}={})=>(Tqe(t,(o,s)=>{n&&E5(o)?r[s]=_qe(o,n):r[s]=o},{allOwnKeys:i}),r),z1l=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),q1l=(r,t,n,i)=>{r.prototype=Object.create(t.prototype,i),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:t.prototype}),n&&Object.assign(r.prototype,n)},U1l=(r,t,n,i)=>{let o,s,a,l={};if(t=t||{},r==null)return t;do{for(o=Object.getOwnPropertyNames(r),s=o.length;s-- >0;)a=o[s],(!i||i(a,r,t))&&!l[a]&&(t[a]=r[a],l[a]=!0);r=n!==!1&&hSr(r)}while(r&&(!n||n(r,t))&&r!==Object.prototype);return t},j1l=(r,t,n)=>{r=String(r),(n===void 0||n>r.length)&&(n=r.length),n-=t.length;let i=r.indexOf(t,n);return i!==-1&&i===n},G1l=r=>{if(!r)return null;if(nbe(r))return r;let t=r.length;if(!v2i(t))return null;let n=new Array(t);for(;t-- >0;)n[t]=r[t];return n},W1l=(r=>t=>r&&t instanceof r)(typeof Uint8Array<"u"&&hSr(Uint8Array)),H1l=(r,t)=>{let i=(r&&r[Symbol.iterator]).call(r),o;for(;(o=i.next())&&!o.done;){let s=o.value;t.call(r,s[0],s[1])}},V1l=(r,t)=>{let n,i=[];for(;(n=r.exec(t))!==null;)i.push(n);return i},Y1l=nx("HTMLFormElement"),K1l=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),b2i=(({hasOwnProperty:r})=>(t,n)=>r.call(t,n))(Object.prototype),J1l=nx("RegExp"),O2i=(r,t)=>{let n=Object.getOwnPropertyDescriptors(r),i={};Tqe(n,(o,s)=>{let a;(a=t(o,s,r))!==!1&&(i[s]=a||o)}),Object.defineProperties(r,i)},X1l=r=>{O2i(r,(t,n)=>{if(E5(r)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;let i=r[n];if(E5(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},$1l=(r,t)=>{let n={},i=o=>{o.forEach(s=>{n[s]=!0})};return nbe(r)?i(r):i(String(r).split(t)),n},Z1l=()=>{},efl=(r,t)=>r!=null&&Number.isFinite(r=+r)?r:t,fSr="abcdefghijklmnopqrstuvwxyz",C2i="0123456789",T2i={DIGIT:C2i,ALPHA:fSr,ALPHA_DIGIT:fSr+fSr.toUpperCase()+C2i},tfl=(r=16,t=T2i.ALPHA_DIGIT)=>{let n="",{length:i}=t;for(;r--;)n+=t[Math.random()*i|0];return n};nfl=r=>{let t=new Array(10),n=(i,o)=>{if(zyt(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;let s=nbe(i)?[]:{};return Tqe(i,(a,l)=>{let c=n(a,o+1);!Oqe(c)&&(s[l]=c)}),t[o]=void 0,s}}return i};return n(r,0)},ifl=nx("AsyncFunction"),ofl=r=>r&&(zyt(r)||E5(r))&&E5(r.then)&&E5(r.catch),w2i=((r,t)=>r?setImmediate:t?((n,i)=>(Jue.addEventListener("message",({source:o,data:s})=>{o===Jue&&s===n&&i.length&&i.shift()()},!1),o=>{i.push(o),Jue.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",E5(Jue.postMessage)),sfl=typeof queueMicrotask<"u"?queueMicrotask.bind(Jue):typeof process<"u"&&process.nextTick||w2i,er={isArray:nbe,isArrayBuffer:I2i,isBuffer:v1l,isFormData:M1l,isArrayBufferView:S1l,isString:_1l,isNumber:v2i,isBoolean:O1l,isObject:zyt,isPlainObject:Qyt,isReadableStream:N1l,isRequest:P1l,isResponse:k1l,isHeaders:Q1l,isUndefined:Oqe,isDate:T1l,isFile:w1l,isBlob:R1l,isRegExp:J1l,isFunction:E5,isStream:x1l,isURLSearchParams:D1l,isTypedArray:W1l,isFileList:B1l,forEach:Tqe,merge:ASr,extend:F1l,trim:L1l,stripBOM:z1l,inherits:q1l,toFlatObject:U1l,kindOf:Lyt,kindOfTest:nx,endsWith:j1l,toArray:G1l,forEachEntry:H1l,matchAll:V1l,isHTMLForm:Y1l,hasOwnProperty:b2i,hasOwnProp:b2i,reduceDescriptors:O2i,freezeMethods:X1l,toObjectSet:$1l,toCamelCase:K1l,noop:Z1l,toFiniteNumber:efl,findKey:S2i,global:Jue,isContextDefined:_2i,ALPHABET:T2i,generateString:tfl,isSpecCompliantForm:rfl,toJSONObject:nfl,isAsyncFn:ifl,isThenable:ofl,setImmediate:w2i,asap:sfl}});function ibe(r,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status?o.status:null)}var R2i,B2i,so,b5=et(()=>{"use strict";Qd();er.inherits(ibe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:er.toJSONObject(this.config),code:this.code,status:this.status}}});R2i=ibe.prototype,B2i={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{B2i[r]={value:r}});Object.defineProperties(ibe,B2i);Object.defineProperty(R2i,"isAxiosError",{value:!0});ibe.from=(r,t,n,i,o,s)=>{let a=Object.create(R2i);return er.toFlatObject(r,a,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),ibe.call(a,r.message,t,n,i,o),a.cause=r,a.name=r.name,s&&Object.assign(a,s),a};so=ibe});var x2i,qyt,gSr=et(()=>{x2i=Ct(Hze(),1),qyt=x2i.default});function mSr(r){return er.isPlainObject(r)||er.isArray(r)}function D2i(r){return er.endsWith(r,"[]")?r.slice(0,-2):r}function M2i(r,t,n){return r?r.concat(t).map(function(o,s){return o=D2i(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function afl(r){return er.isArray(r)&&!r.some(mSr)}function ufl(r,t,n){if(!er.isObject(r))throw new TypeError("target must be an object");t=t||new(qyt||FormData),n=er.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,C){return!er.isUndefined(C[y])});let i=n.metaTokens,o=n.visitor||d,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&er.isSpecCompliantForm(t);if(!er.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(er.isDate(h))return h.toISOString();if(!c&&er.isBlob(h))throw new so("Blob is not supported. Use a Buffer instead.");return er.isArrayBuffer(h)||er.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,y,C){let v=h;if(h&&!C&&typeof h=="object"){if(er.endsWith(y,"{}"))y=i?y:y.slice(0,-2),h=JSON.stringify(h);else if(er.isArray(h)&&afl(h)||(er.isFileList(h)||er.endsWith(y,"[]"))&&(v=er.toArray(h)))return y=D2i(y),v.forEach(function(T,R){!(er.isUndefined(T)||T===null)&&t.append(a===!0?M2i([y],R,s):a===null?y:y+"[]",u(T))}),!1}return mSr(h)?!0:(t.append(M2i(C,y,s),u(h)),!1)}let p=[],f=Object.assign(lfl,{defaultVisitor:d,convertValue:u,isVisitable:mSr});function A(h,y){if(!er.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(h),er.forEach(h,function(v,O){(!(er.isUndefined(v)||v===null)&&o.call(t,v,er.isString(O)?O.trim():O,y,f))===!0&&A(v,y?y.concat(O):[O])}),p.pop()}}if(!er.isObject(r))throw new TypeError("data must be an object");return A(r),t}var lfl,hK,wqe=et(()=>{"use strict";Qd();b5();gSr();lfl=er.toFlatObject(er,{},null,function(t){return/^is[A-Z]/.test(t)});hK=ufl});function N2i(r){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function P2i(r,t){this._pairs=[],r&&hK(r,this,t)}var k2i,Q2i,L2i=et(()=>{"use strict";wqe();k2i=P2i.prototype;k2i.append=function(t,n){this._pairs.push([t,n])};k2i.toString=function(t){let n=t?function(i){return t.call(this,i,N2i)}:N2i;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};Q2i=P2i});function cfl(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xue(r,t,n){if(!t)return r;let i=n&&n.encode||cfl,o=n&&n.serialize,s;if(o?s=o(t,n):s=er.isURLSearchParams(t)?t.toString():new Q2i(t,n).toString(i),s){let a=r.indexOf("#");a!==-1&&(r=r.slice(0,a)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}var Uyt=et(()=>{"use strict";Qd();L2i()});var ySr,ESr,F2i=et(()=>{"use strict";Qd();ySr=class{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){er.forEach(this.handlers,function(i){i!==null&&t(i)})}},ESr=ySr});var obe,jyt=et(()=>{"use strict";obe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}});var z2i,q2i,U2i=et(()=>{"use strict";z2i=Ct(require("url"),1),q2i=z2i.default.URLSearchParams});var j2i,G2i=et(()=>{U2i();gSr();j2i={isNode:!0,classes:{URLSearchParams:q2i,FormData:qyt,Blob:typeof Blob<"u"&&Blob||null},protocols:["http","https","file","data"]}});var ISr={};j_(ISr,{hasBrowserEnv:()=>CSr,hasStandardBrowserEnv:()=>dfl,hasStandardBrowserWebWorkerEnv:()=>pfl,navigator:()=>bSr,origin:()=>ffl});var CSr,bSr,dfl,pfl,ffl,W2i=et(()=>{CSr=typeof window<"u"&&typeof document<"u",bSr=typeof navigator=="object"&&navigator||void 0,dfl=CSr&&(!bSr||["ReactNative","NativeScript","NS"].indexOf(bSr.product)<0),pfl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ffl=CSr&&window.location.href||"http://localhost"});var lp,dN=et(()=>{G2i();W2i();lp={...ISr,...j2i}});function vSr(r,t){return hK(r,new lp.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,s){return lp.isNode&&er.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}var H2i=et(()=>{"use strict";Qd();wqe();dN()});function Afl(r){return er.matchAll(/\w+|\[(\w*)]/g,r).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hfl(r){let t={},n=Object.keys(r),i,o=n.length,s;for(i=0;i<o;i++)s=n[i],t[s]=r[s];return t}function gfl(r){function t(n,i,o,s){let a=n[s++];if(a==="__proto__")return!0;let l=Number.isFinite(+a),c=s>=n.length;return a=!a&&er.isArray(o)?o.length:a,c?(er.hasOwnProp(o,a)?o[a]=[o[a],i]:o[a]=i,!l):((!o[a]||!er.isObject(o[a]))&&(o[a]=[]),t(n,i,o[a],s)&&er.isArray(o[a])&&(o[a]=hfl(o[a])),!l)}if(er.isFormData(r)&&er.isFunction(r.entries)){let n={};return er.forEachEntry(r,(i,o)=>{t(Afl(i),o,n,0)}),n}return null}var Gyt,SSr=et(()=>{"use strict";Qd();Gyt=gfl});function mfl(r,t,n){if(er.isString(r))try{return(t||JSON.parse)(r),er.trim(r)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(r)}var _Sr,sbe,Wyt=et(()=>{"use strict";Qd();b5();jyt();wqe();H2i();dN();SSr();_Sr={transitional:obe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i=n.getContentType()||"",o=i.indexOf("application/json")>-1,s=er.isObject(t);if(s&&er.isHTMLForm(t)&&(t=new FormData(t)),er.isFormData(t))return o?JSON.stringify(Gyt(t)):t;if(er.isArrayBuffer(t)||er.isBuffer(t)||er.isStream(t)||er.isFile(t)||er.isBlob(t)||er.isReadableStream(t))return t;if(er.isArrayBufferView(t))return t.buffer;if(er.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return vSr(t,this.formSerializer).toString();if((l=er.isFileList(t))||i.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return hK(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),mfl(t)):t}],transformResponse:[function(t){let n=this.transitional||_Sr.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(er.isResponse(t)||er.isReadableStream(t))return t;if(t&&er.isString(t)&&(i&&!this.responseType||o)){let a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?so.from(l,so.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lp.classes.FormData,Blob:lp.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};er.forEach(["delete","get","head","post","put","patch"],r=>{_Sr.headers[r]={}});sbe=_Sr});var yfl,V2i,Y2i=et(()=>{"use strict";Qd();yfl=er.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),V2i=r=>{let t={},n,i,o;return r&&r.split(`
|
|
180
180
|
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),i=a.substring(o+1).trim(),!(!n||t[n]&&yfl[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t}});function Rqe(r){return r&&String(r).trim().toLowerCase()}function Hyt(r){return r===!1||r==null?r:er.isArray(r)?r.map(Hyt):String(r)}function Efl(r){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,i;for(;i=n.exec(r);)t[i[1]]=i[2];return t}function OSr(r,t,n,i,o){if(er.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!er.isString(t)){if(er.isString(i))return t.indexOf(i)!==-1;if(er.isRegExp(i))return i.test(t)}}function Cfl(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Ifl(r,t){let n=er.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(r,i+n,{value:function(o,s,a){return this[i].call(this,t,o,s,a)},configurable:!0})})}var K2i,bfl,abe,rA,pN=et(()=>{"use strict";Qd();Y2i();K2i=Symbol("internals");bfl=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());abe=class{constructor(t){t&&this.set(t)}set(t,n,i){let o=this;function s(l,c,u){let d=Rqe(c);if(!d)throw new Error("header name must be a non-empty string");let p=er.findKey(o,d);(!p||o[p]===void 0||u===!0||u===void 0&&o[p]!==!1)&&(o[p||c]=Hyt(l))}let a=(l,c)=>er.forEach(l,(u,d)=>s(u,d,c));if(er.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(er.isString(t)&&(t=t.trim())&&!bfl(t))a(V2i(t),n);else if(er.isHeaders(t))for(let[l,c]of t.entries())s(c,l,i);else t!=null&&s(n,t,i);return this}get(t,n){if(t=Rqe(t),t){let i=er.findKey(this,t);if(i){let o=this[i];if(!n)return o;if(n===!0)return Efl(o);if(er.isFunction(n))return n.call(this,o,i);if(er.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rqe(t),t){let i=er.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||OSr(this,this[i],i,n)))}return!1}delete(t,n){let i=this,o=!1;function s(a){if(a=Rqe(a),a){let l=er.findKey(i,a);l&&(!n||OSr(i,i[l],l,n))&&(delete i[l],o=!0)}}return er.isArray(t)?t.forEach(s):s(t),o}clear(t){let n=Object.keys(this),i=n.length,o=!1;for(;i--;){let s=n[i];(!t||OSr(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){let n=this,i={};return er.forEach(this,(o,s)=>{let a=er.findKey(i,s);if(a){n[a]=Hyt(o),delete n[s];return}let l=t?Cfl(s):String(s).trim();l!==s&&delete n[s],n[l]=Hyt(o),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return er.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&er.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
181
181
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){let i=(this[K2i]=this[K2i]={accessors:{}}).accessors,o=this.prototype;function s(a){let l=Rqe(a);i[l]||(Ifl(o,a),i[l]=!0)}return er.isArray(t)?t.forEach(s):s(t),this}};abe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);er.reduceDescriptors(abe.prototype,({value:r},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(i){this[n]=i}}});er.freezeMethods(abe);rA=abe});function Bqe(r,t){let n=this||sbe,i=t||n,o=rA.from(i.headers),s=i.data;return er.forEach(r,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}var J2i=et(()=>{"use strict";Qd();Wyt();pN()});function xqe(r){return!!(r&&r.__CANCEL__)}var TSr=et(()=>{"use strict"});function X2i(r,t,n){so.call(this,r??"canceled",so.ERR_CANCELED,t,n),this.name="CanceledError"}var C5,$ue=et(()=>{"use strict";b5();Qd();er.inherits(X2i,so,{__CANCEL__:!0});C5=X2i});function fN(r,t,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?r(n):t(new so("Request failed with status code "+n.status,[so.ERR_BAD_REQUEST,so.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var Vyt=et(()=>{"use strict";b5()});function wSr(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}var $2i=et(()=>{"use strict"});function RSr(r,t){return t?r.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):r}var Z2i=et(()=>{"use strict"});function Zue(r,t){return r&&!wSr(t)?RSr(r,t):t}var Yyt=et(()=>{"use strict";$2i();Z2i()});var ece,Kyt=et(()=>{ece="1.7.7"});function Mqe(r){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return t&&t[1]||""}var BSr=et(()=>{"use strict"});function xSr(r,t,n){let i=n&&n.Blob||lp.classes.Blob,o=Mqe(r);if(t===void 0&&i&&(t=!0),o==="data"){r=o.length?r.slice(o.length+1):r;let s=vfl.exec(r);if(!s)throw new so("Invalid URL",so.ERR_INVALID_URL);let a=s[1],l=s[2],c=s[3],u=Buffer.from(decodeURIComponent(c),l?"base64":"utf8");if(t){if(!i)throw new so("Blob is not supported",so.ERR_NOT_SUPPORT);return new i([u],{type:a})}return u}throw new so("Unsupported protocol "+o,so.ERR_NOT_SUPPORT)}var vfl,eyi=et(()=>{"use strict";b5();BSr();dN();vfl=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/});var tyi,MSr,DSr,NSr,ryi=et(()=>{"use strict";tyi=Ct(require("stream"),1);Qd();MSr=Symbol("internals"),DSr=class extends tyi.default.Transform{constructor(t){t=er.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(i,o)=>!er.isUndefined(o[i])),super({readableHighWaterMark:t.chunkSize});let n=this[MSr]={timeWindow:t.timeWindow,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",i=>{i==="progress"&&(n.isCaptured||(n.isCaptured=!0))})}_read(t){let n=this[MSr];return n.onReadCallback&&n.onReadCallback(),super._read(t)}_transform(t,n,i){let o=this[MSr],s=o.maxRate,a=this.readableHighWaterMark,l=o.timeWindow,c=1e3/l,u=s/c,d=o.minChunkSize!==!1?Math.max(o.minChunkSize,u*.01):0,p=(A,h)=>{let y=Buffer.byteLength(A);o.bytesSeen+=y,o.bytes+=y,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(A)?process.nextTick(h):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(h)}},f=(A,h)=>{let y=Buffer.byteLength(A),C=null,v=a,O,T=0;if(s){let R=Date.now();(!o.ts||(T=R-o.ts)>=l)&&(o.ts=R,O=u-o.bytes,o.bytes=O<0?-O:0,T=0),O=u-o.bytes}if(s){if(O<=0)return setTimeout(()=>{h(null,A)},l-T);O<v&&(v=O)}v&&y>v&&y-v>d&&(C=A.subarray(v),A=A.subarray(0,v)),p(A,C?()=>{process.nextTick(h,null,C)}:h)};f(t,function A(h,y){if(h)return i(h);y?f(y,A):i(null)})}},NSr=DSr});var nyi,Sfl,Jyt,PSr=et(()=>{({asyncIterator:nyi}=Symbol),Sfl=async function*(r){r.stream?yield*r.stream():r.arrayBuffer?yield await r.arrayBuffer():r[nyi]?yield*r[nyi]():yield r},Jyt=Sfl});var iyi,oyi,_fl,Dqe,gK,Ofl,Tfl,kSr,wfl,syi,ayi=et(()=>{iyi=require("util"),oyi=require("stream");Qd();PSr();_fl=er.ALPHABET.ALPHA_DIGIT+"-_",Dqe=new iyi.TextEncoder,gK=`\r
|
|
182
182
|
`,Ofl=Dqe.encode(gK),Tfl=2,kSr=class{constructor(t,n){let{escapeName:i}=this.constructor,o=er.isString(n),s=`Content-Disposition: form-data; name="${i(t)}"${!o&&n.name?`; filename="${i(n.name)}"`:""}${gK}`;o?n=Dqe.encode(String(n).replace(/\r?\n|\r\n?/g,gK)):s+=`Content-Type: ${n.type||"application/octet-stream"}${gK}`,this.headers=Dqe.encode(s+gK),this.contentLength=o?n.byteLength:n.size,this.size=this.headers.byteLength+this.contentLength+Tfl,this.name=t,this.value=n}async*encode(){yield this.headers;let{value:t}=this;er.isTypedArray(t)?yield t:yield*Jyt(t),yield Ofl}static escapeName(t){return String(t).replace(/[\r\n"]/g,n=>({"\r":"%0D","\n":"%0A",'"':"%22"})[n])}},wfl=(r,t,n)=>{let{tag:i="form-data-boundary",size:o=25,boundary:s=i+"-"+er.generateString(o,_fl)}=n||{};if(!er.isFormData(r))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let a=Dqe.encode("--"+s+gK),l=Dqe.encode("--"+s+"--"+gK+gK),c=l.byteLength,u=Array.from(r.entries()).map(([p,f])=>{let A=new kSr(p,f);return c+=A.size,A});c+=a.byteLength*u.length,c=er.toFiniteNumber(c);let d={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(d["Content-Length"]=c),t&&t(d),oyi.Readable.from(async function*(){for(let p of u)yield a,yield*p.encode();yield l}())},syi=wfl});var lyi,QSr,uyi,cyi=et(()=>{"use strict";lyi=Ct(require("stream"),1),QSr=class extends lyi.default.Transform{__transform(t,n,i){this.push(t),i()}_transform(t,n,i){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){let o=Buffer.alloc(2);o[0]=120,o[1]=156,this.push(o,n)}this.__transform(t,n,i)}},uyi=QSr});var Rfl,dyi,pyi=et(()=>{Qd();Rfl=(r,t)=>er.isAsyncFn(r)?function(...n){let i=n.pop();r.apply(this,n).then(o=>{try{t?i(null,...t(o)):i(null,o)}catch(s){i(s)}},i)}:r,dyi=Rfl});function Bfl(r,t){r=r||10;let n=new Array(r),i=new Array(r),o=0,s=0,a;return t=t!==void 0?t:1e3,function(c){let u=Date.now(),d=i[s];a||(a=u),n[o]=c,i[o]=u;let p=s,f=0;for(;p!==o;)f+=n[p++],p=p%r;if(o=(o+1)%r,o===s&&(s=(s+1)%r),u-a<t)return;let A=d&&u-d;return A?Math.round(f*1e3/A):void 0}}var fyi,Ayi=et(()=>{"use strict";fyi=Bfl});function xfl(r,t){let n=0,i=1e3/t,o,s,a=(u,d=Date.now())=>{n=d,o=null,s&&(clearTimeout(s),s=null),r.apply(null,u)};return[(...u)=>{let d=Date.now(),p=d-n;p>=i?a(u,d):(o=u,s||(s=setTimeout(()=>{s=null,a(o)},i-p)))},()=>o&&a(o)]}var hyi,gyi=et(()=>{hyi=xfl});var nU,lbe,ube,Xyt=et(()=>{Ayi();gyi();Qd();nU=(r,t,n=3)=>{let i=0,o=fyi(50,250);return hyi(s=>{let a=s.loaded,l=s.lengthComputable?s.total:void 0,c=a-i,u=o(c),d=a<=l;i=a;let p={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-a)/u:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};r(p)},n)},lbe=(r,t)=>{let n=r!=null;return[i=>t[0]({lengthComputable:n,total:r,loaded:i}),t[1]]},ube=r=>(...t)=>er.asap(()=>r(...t))});function kfl(r,t){r.beforeRedirects.proxy&&r.beforeRedirects.proxy(r),r.beforeRedirects.config&&r.beforeRedirects.config(r,t)}function wyi(r,t,n){let i=t;if(!i&&i!==!1){let o=(0,Iyi.getProxyForUrl)(n);o&&(i=new URL(o))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){(i.auth.username||i.auth.password)&&(i.auth=(i.auth.username||"")+":"+(i.auth.password||""));let s=Buffer.from(i.auth,"utf8").toString("base64");r.headers["Proxy-Authorization"]="Basic "+s}r.headers.host=r.hostname+(r.port?":"+r.port:"");let o=i.hostname||i.host;r.hostname=o,r.host=o,r.port=i.port,r.path=n,i.protocol&&(r.protocol=i.protocol.includes(":")?i.protocol:`${i.protocol}:`)}r.beforeRedirects.proxy=function(s){wyi(s,t,s.href)}}var Iyi,vyi,Syi,_yi,Oyi,iU,tce,Tyi,myi,Mfl,yyi,Dfl,Nfl,Pfl,Eyi,byi,Qfl,Lfl,Ffl,Cyi,Ryi,Byi=et(()=>{"use strict";Qd();Vyt();Yyt();Uyt();Iyi=Ct(Vze(),1),vyi=Ct(require("http"),1),Syi=Ct(require("https"),1),_yi=Ct(require("util"),1),Oyi=Ct(pIr(),1),iU=Ct(require("zlib"),1);Kyt();jyt();b5();$ue();dN();eyi();tce=Ct(require("stream"),1);pN();ryi();Tyi=require("events");ayi();PSr();cyi();pyi();Xyt();myi={flush:iU.default.constants.Z_SYNC_FLUSH,finishFlush:iU.default.constants.Z_SYNC_FLUSH},Mfl={flush:iU.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:iU.default.constants.BROTLI_OPERATION_FLUSH},yyi=er.isFunction(iU.default.createBrotliDecompress),{http:Dfl,https:Nfl}=Oyi.default,Pfl=/https:?/,Eyi=lp.protocols.map(r=>r+":"),byi=(r,[t,n])=>(r.on("end",n).on("error",n),t);Qfl=typeof process<"u"&&er.kindOf(process)==="process",Lfl=r=>new Promise((t,n)=>{let i,o,s=(c,u)=>{o||(o=!0,i&&i(c,u))},a=c=>{s(c),t(c)},l=c=>{s(c,!0),n(c)};r(a,l,c=>i=c).catch(l)}),Ffl=({address:r,family:t})=>{if(!er.isString(r))throw TypeError("address must be a string");return{address:r,family:t||(r.indexOf(".")<0?6:4)}},Cyi=(r,t)=>Ffl(er.isObject(r)?r:{address:r,family:t}),Ryi=Qfl&&function(t){return Lfl(async function(i,o,s){let{data:a,lookup:l,family:c}=t,{responseType:u,responseEncoding:d}=t,p=t.method.toUpperCase(),f,A=!1,h;if(l){let ne=dyi(l,oe=>er.isArray(oe)?oe:[oe]);l=(oe,H,se)=>{ne(oe,H,(le,ie,fe)=>{if(le)return se(le);let Re=er.isArray(ie)?ie.map(Fe=>Cyi(Fe)):[Cyi(ie,fe)];H.all?se(le,Re):se(le,Re[0].address,Re[0].family)})}}let y=new Tyi.EventEmitter,C=()=>{t.cancelToken&&t.cancelToken.unsubscribe(v),t.signal&&t.signal.removeEventListener("abort",v),y.removeAllListeners()};s((ne,oe)=>{f=!0,oe&&(A=!0,C())});function v(ne){y.emit("abort",!ne||ne.type?new C5(null,t,h):ne)}y.once("abort",o),(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(v),t.signal&&(t.signal.aborted?v():t.signal.addEventListener("abort",v)));let O=Zue(t.baseURL,t.url),T=new URL(O,lp.hasBrowserEnv?lp.origin:void 0),R=T.protocol||Eyi[0];if(R==="data:"){let ne;if(p!=="GET")return fN(i,o,{status:405,statusText:"method not allowed",headers:{},config:t});try{ne=xSr(t.url,u==="blob",{Blob:t.env&&t.env.Blob})}catch(oe){throw so.from(oe,so.ERR_BAD_REQUEST,t)}return u==="text"?(ne=ne.toString(d),(!d||d==="utf8")&&(ne=er.stripBOM(ne))):u==="stream"&&(ne=tce.default.Readable.from(ne)),fN(i,o,{data:ne,status:200,statusText:"OK",headers:new rA,config:t})}if(Eyi.indexOf(R)===-1)return o(new so("Unsupported protocol "+R,so.ERR_BAD_REQUEST,t));let N=rA.from(t.headers).normalize();N.set("User-Agent","axios/"+ece,!1);let{onUploadProgress:z,onDownloadProgress:W}=t,V=t.maxRate,$,K;if(er.isSpecCompliantForm(a)){let ne=N.getContentType(/boundary=([-_\w\d]{10,70})/i);a=syi(a,oe=>{N.set(oe)},{tag:`axios-${ece}-boundary`,boundary:ne&&ne[1]||void 0})}else if(er.isFormData(a)&&er.isFunction(a.getHeaders)){if(N.set(a.getHeaders()),!N.hasContentLength())try{let ne=await _yi.default.promisify(a.getLength).call(a);Number.isFinite(ne)&&ne>=0&&N.setContentLength(ne)}catch{}}else if(er.isBlob(a))a.size&&N.setContentType(a.type||"application/octet-stream"),N.setContentLength(a.size||0),a=tce.default.Readable.from(Jyt(a));else if(a&&!er.isStream(a)){if(!Buffer.isBuffer(a))if(er.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(er.isString(a))a=Buffer.from(a,"utf-8");else return o(new so("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",so.ERR_BAD_REQUEST,t));if(N.setContentLength(a.length,!1),t.maxBodyLength>-1&&a.length>t.maxBodyLength)return o(new so("Request body larger than maxBodyLength limit",so.ERR_BAD_REQUEST,t))}let F=er.toFiniteNumber(N.getContentLength());er.isArray(V)?($=V[0],K=V[1]):$=K=V,a&&(z||$)&&(er.isStream(a)||(a=tce.default.Readable.from(a,{objectMode:!1})),a=tce.default.pipeline([a,new NSr({maxRate:er.toFiniteNumber($)})],er.noop),z&&a.on("progress",byi(a,lbe(F,nU(ube(z),!1,3)))));let J;if(t.auth){let ne=t.auth.username||"",oe=t.auth.password||"";J=ne+":"+oe}if(!J&&T.username){let ne=T.username,oe=T.password;J=ne+":"+oe}J&&N.delete("authorization");let Y;try{Y=Xue(T.pathname+T.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(ne){let oe=new Error(ne.message);return oe.config=t,oe.url=t.url,oe.exists=!0,o(oe)}N.set("Accept-Encoding","gzip, compress, deflate"+(yyi?", br":""),!1);let L={path:Y,method:p,headers:N.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:J,protocol:R,family:c,beforeRedirect:kfl,beforeRedirects:{}};!er.isUndefined(l)&&(L.lookup=l),t.socketPath?L.socketPath=t.socketPath:(L.hostname=T.hostname.startsWith("[")?T.hostname.slice(1,-1):T.hostname,L.port=T.port,wyi(L,t.proxy,R+"//"+T.hostname+(T.port?":"+T.port:"")+L.path));let X,te=Pfl.test(L.protocol);if(L.agent=te?t.httpsAgent:t.httpAgent,t.transport?X=t.transport:t.maxRedirects===0?X=te?Syi.default:vyi.default:(t.maxRedirects&&(L.maxRedirects=t.maxRedirects),t.beforeRedirect&&(L.beforeRedirects.config=t.beforeRedirect),X=te?Nfl:Dfl),t.maxBodyLength>-1?L.maxBodyLength=t.maxBodyLength:L.maxBodyLength=1/0,t.insecureHTTPParser&&(L.insecureHTTPParser=t.insecureHTTPParser),h=X.request(L,function(oe){if(h.destroyed)return;let H=[oe],se=+oe.headers["content-length"];if(W||K){let Fe=new NSr({maxRate:er.toFiniteNumber(K)});W&&Fe.on("progress",byi(Fe,lbe(se,nU(ube(W),!0,3)))),H.push(Fe)}let le=oe,ie=oe.req||h;if(t.decompress!==!1&&oe.headers["content-encoding"])switch((p==="HEAD"||oe.statusCode===204)&&delete oe.headers["content-encoding"],(oe.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":H.push(iU.default.createUnzip(myi)),delete oe.headers["content-encoding"];break;case"deflate":H.push(new uyi),H.push(iU.default.createUnzip(myi)),delete oe.headers["content-encoding"];break;case"br":yyi&&(H.push(iU.default.createBrotliDecompress(Mfl)),delete oe.headers["content-encoding"])}le=H.length>1?tce.default.pipeline(H,er.noop):H[0];let fe=tce.default.finished(le,()=>{fe(),C()}),Re={status:oe.statusCode,statusText:oe.statusMessage,headers:new rA(oe.headers),config:t,request:ie};if(u==="stream")Re.data=le,fN(i,o,Re);else{let Fe=[],me=0;le.on("data",function(Ye){Fe.push(Ye),me+=Ye.length,t.maxContentLength>-1&&me>t.maxContentLength&&(A=!0,le.destroy(),o(new so("maxContentLength size of "+t.maxContentLength+" exceeded",so.ERR_BAD_RESPONSE,t,ie)))}),le.on("aborted",function(){if(A)return;let Ye=new so("maxContentLength size of "+t.maxContentLength+" exceeded",so.ERR_BAD_RESPONSE,t,ie);le.destroy(Ye),o(Ye)}),le.on("error",function(Ye){h.destroyed||o(so.from(Ye,null,t,ie))}),le.on("end",function(){try{let Ye=Fe.length===1?Fe[0]:Buffer.concat(Fe);u!=="arraybuffer"&&(Ye=Ye.toString(d),(!d||d==="utf8")&&(Ye=er.stripBOM(Ye))),Re.data=Ye}catch(Ye){return o(so.from(Ye,null,t,Re.request,Re))}fN(i,o,Re)})}y.once("abort",Fe=>{le.destroyed||(le.emit("error",Fe),le.destroy())})}),y.once("abort",ne=>{o(ne),h.destroy(ne)}),h.on("error",function(oe){o(so.from(oe,null,t,h))}),h.on("socket",function(oe){oe.setKeepAlive(!0,1e3*60)}),t.timeout){let ne=parseInt(t.timeout,10);if(Number.isNaN(ne)){o(new so("error trying to parse `config.timeout` to int",so.ERR_BAD_OPTION_VALUE,t,h));return}h.setTimeout(ne,function(){if(f)return;let H=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",se=t.transitional||obe;t.timeoutErrorMessage&&(H=t.timeoutErrorMessage),o(new so(H,se.clarifyTimeoutError?so.ETIMEDOUT:so.ECONNABORTED,t,h)),v()})}if(er.isStream(a)){let ne=!1,oe=!1;a.on("end",()=>{ne=!0}),a.once("error",H=>{oe=!0,h.destroy(H)}),a.on("close",()=>{!ne&&!oe&&v(new C5("Request stream has been aborted",t,h))}),a.pipe(h)}else h.end(a)})}});var xyi,Myi=et(()=>{"use strict";Qd();dN();xyi=lp.hasStandardBrowserEnv?function(){let t=lp.navigator&&/(msie|trident)/i.test(lp.navigator.userAgent),n=document.createElement("a"),i;function o(s){let a=s;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(a){let l=er.isString(a)?o(a):a;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}()});var Dyi,Nyi=et(()=>{Qd();dN();Dyi=lp.hasStandardBrowserEnv?{write(r,t,n,i,o,s){let a=[r+"="+encodeURIComponent(t)];er.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),er.isString(i)&&a.push("path="+i),er.isString(o)&&a.push("domain="+o),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(r){let t=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}}});function ix(r,t){t=t||{};let n={};function i(u,d,p){return er.isPlainObject(u)&&er.isPlainObject(d)?er.merge.call({caseless:p},u,d):er.isPlainObject(d)?er.merge({},d):er.isArray(d)?d.slice():d}function o(u,d,p){if(er.isUndefined(d)){if(!er.isUndefined(u))return i(void 0,u,p)}else return i(u,d,p)}function s(u,d){if(!er.isUndefined(d))return i(void 0,d)}function a(u,d){if(er.isUndefined(d)){if(!er.isUndefined(u))return i(void 0,u)}else return i(void 0,d)}function l(u,d,p){if(p in t)return i(u,d);if(p in r)return i(void 0,u)}let c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,d)=>o(Pyi(u),Pyi(d),!0)};return er.forEach(Object.keys(Object.assign({},r,t)),function(d){let p=c[d]||o,f=p(r[d],t[d],d);er.isUndefined(f)&&p!==l||(n[d]=f)}),n}var Pyi,$yt=et(()=>{"use strict";Qd();pN();Pyi=r=>r instanceof rA?{...r}:r});var Zyt,LSr=et(()=>{dN();Qd();Myi();Nyi();Yyt();$yt();pN();Uyt();Zyt=r=>{let t=ix({},r),{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=t;t.headers=a=rA.from(a),t.url=Xue(Zue(t.baseURL,t.url),r.params,r.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(er.isFormData(n)){if(lp.hasStandardBrowserEnv||lp.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){let[u,...d]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(lp.hasStandardBrowserEnv&&(i&&er.isFunction(i)&&(i=i(t)),i||i!==!1&&xyi(t.url))){let u=o&&s&&Dyi.read(s);u&&a.set(o,u)}return t}});var zfl,kyi,Qyi=et(()=>{Qd();Vyt();jyt();b5();$ue();BSr();dN();pN();Xyt();LSr();zfl=typeof XMLHttpRequest<"u",kyi=zfl&&function(r){return new Promise(function(n,i){let o=Zyt(r),s=o.data,a=rA.from(o.headers).normalize(),{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,p,f,A,h;function y(){A&&A(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function v(){if(!C)return;let T=rA.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),N={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:T,config:r,request:C};fN(function(W){n(W),y()},function(W){i(W),y()},N),C=null}"onloadend"in C?C.onloadend=v:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(v)},C.onabort=function(){C&&(i(new so("Request aborted",so.ECONNABORTED,r,C)),C=null)},C.onerror=function(){i(new so("Network Error",so.ERR_NETWORK,r,C)),C=null},C.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",N=o.transitional||obe;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),i(new so(R,N.clarifyTimeoutError?so.ETIMEDOUT:so.ECONNABORTED,r,C)),C=null},s===void 0&&a.setContentType(null),"setRequestHeader"in C&&er.forEach(a.toJSON(),function(R,N){C.setRequestHeader(N,R)}),er.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),l&&l!=="json"&&(C.responseType=o.responseType),u&&([f,h]=nU(u,!0),C.addEventListener("progress",f)),c&&C.upload&&([p,A]=nU(c),C.upload.addEventListener("progress",p),C.upload.addEventListener("loadend",A)),(o.cancelToken||o.signal)&&(d=T=>{C&&(i(!T||T.type?new C5(null,r,C):T),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));let O=Mqe(o.url);if(O&&lp.protocols.indexOf(O)===-1){i(new so("Unsupported protocol "+O+":",so.ERR_BAD_REQUEST,r));return}C.send(s||null)})}});var qfl,Lyi,Fyi=et(()=>{$ue();b5();Qd();qfl=(r,t)=>{let{length:n}=r=r?r.filter(Boolean):[];if(t||n){let i=new AbortController,o,s=function(u){if(!o){o=!0,l();let d=u instanceof Error?u:this.reason;i.abort(d instanceof so?d:new C5(d instanceof Error?d.message:d))}},a=t&&setTimeout(()=>{a=null,s(new so(`timeout ${t} of ms exceeded`,so.ETIMEDOUT))},t),l=()=>{r&&(a&&clearTimeout(a),a=null,r.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),r=null)};r.forEach(u=>u.addEventListener("abort",s));let{signal:c}=i;return c.unsubscribe=()=>er.asap(l),c}},Lyi=qfl});var Ufl,jfl,Gfl,FSr,zyi=et(()=>{Ufl=function*(r,t){let n=r.byteLength;if(!t||n<t){yield r;return}let i=0,o;for(;i<n;)o=i+t,yield r.slice(i,o),i=o},jfl=async function*(r,t){for await(let n of Gfl(r))yield*Ufl(n,t)},Gfl=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}let t=r.getReader();try{for(;;){let{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},FSr=(r,t,n,i)=>{let o=jfl(r,t),s=0,a,l=c=>{a||(a=!0,i&&i(c))};return new ReadableStream({async pull(c){try{let{done:u,value:d}=await o.next();if(u){l(),c.close();return}let p=d.byteLength;if(n){let f=s+=p;n(f)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),o.return()}},{highWaterMark:2})}});var t3t,Uyi,Wfl,jyi,Hfl,qyi,zSr,e3t,Vfl,Yfl,Gyi,Wyi=et(()=>{dN();Qd();b5();Fyi();zyi();pN();Xyt();LSr();Vyt();t3t=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Uyi=t3t&&typeof ReadableStream=="function",Wfl=t3t&&(typeof TextEncoder=="function"?(r=>t=>r.encode(t))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),jyi=(r,...t)=>{try{return!!r(...t)}catch{return!1}},Hfl=Uyi&&jyi(()=>{let r=!1,t=new Request(lp.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!t}),qyi=64*1024,zSr=Uyi&&jyi(()=>er.isReadableStream(new Response("").body)),e3t={stream:zSr&&(r=>r.body)};t3t&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!e3t[t]&&(e3t[t]=er.isFunction(r[t])?n=>n[t]():(n,i)=>{throw new so(`Response type '${t}' is not supported`,so.ERR_NOT_SUPPORT,i)})})})(new Response);Vfl=async r=>{if(r==null)return 0;if(er.isBlob(r))return r.size;if(er.isSpecCompliantForm(r))return(await new Request(lp.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(er.isArrayBufferView(r)||er.isArrayBuffer(r))return r.byteLength;if(er.isURLSearchParams(r)&&(r=r+""),er.isString(r))return(await Wfl(r)).byteLength},Yfl=async(r,t)=>{let n=er.toFiniteNumber(r.getContentLength());return n??Vfl(t)},Gyi=t3t&&(async r=>{let{url:t,method:n,data:i,signal:o,cancelToken:s,timeout:a,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:f}=Zyt(r);u=u?(u+"").toLowerCase():"text";let A=Lyi([o,s&&s.toAbortSignal()],a),h,y=A&&A.unsubscribe&&(()=>{A.unsubscribe()}),C;try{if(c&&Hfl&&n!=="get"&&n!=="head"&&(C=await Yfl(d,i))!==0){let N=new Request(t,{method:"POST",body:i,duplex:"half"}),z;if(er.isFormData(i)&&(z=N.headers.get("content-type"))&&d.setContentType(z),N.body){let[W,V]=lbe(C,nU(ube(c)));i=FSr(N.body,qyi,W,V)}}er.isString(p)||(p=p?"include":"omit");let v="credentials"in Request.prototype;h=new Request(t,{...f,signal:A,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:v?p:void 0});let O=await fetch(h),T=zSr&&(u==="stream"||u==="response");if(zSr&&(l||T&&y)){let N={};["status","statusText","headers"].forEach($=>{N[$]=O[$]});let z=er.toFiniteNumber(O.headers.get("content-length")),[W,V]=l&&lbe(z,nU(ube(l),!0))||[];O=new Response(FSr(O.body,qyi,W,()=>{V&&V(),y&&y()}),N)}u=u||"text";let R=await e3t[er.findKey(e3t,u)||"text"](O,r);return!T&&y&&y(),await new Promise((N,z)=>{fN(N,z,{data:R,headers:rA.from(O.headers),status:O.status,statusText:O.statusText,config:r,request:h})})}catch(v){throw y&&y(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new so("Network Error",so.ERR_NETWORK,r,h),{cause:v.cause||v}):so.from(v,v&&v.code,r,h)}})});var qSr,Hyi,Kfl,r3t,USr=et(()=>{Qd();Byi();Qyi();Wyi();b5();qSr={http:Ryi,xhr:kyi,fetch:Gyi};er.forEach(qSr,(r,t)=>{if(r){try{Object.defineProperty(r,"name",{value:t})}catch{}Object.defineProperty(r,"adapterName",{value:t})}});Hyi=r=>`- ${r}`,Kfl=r=>er.isFunction(r)||r===null||r===!1,r3t={getAdapter:r=>{r=er.isArray(r)?r:[r];let{length:t}=r,n,i,o={};for(let s=0;s<t;s++){n=r[s];let a;if(i=n,!Kfl(n)&&(i=qSr[(a=String(n)).toLowerCase()],i===void 0))throw new so(`Unknown adapter '${a}'`);if(i)break;o[a||"#"+s]=i}if(!i){let s=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build")),a=t?s.length>1?`since :
|
|
@@ -270,7 +270,7 @@ ${"".padEnd(t)}${"^".repeat(n)}`}function dOi(r){return bOl(Swr,r)}function px(r
|
|
|
270
270
|
`);i.next.cells.push({colspan:t,rowspan:n,text:o})}closeTableRow(){let t=this._popStackItem();t.next.rows.push(t.cells)}closeTable({tableToString:t,leadingLineBreaks:n=2,trailingLineBreaks:i=2}){let o=this._popStackItem(),s=t(o.rows);s&&Vbt(this._stackItem,s,n,i)}toString(){return Cce(this._stackItem.getRoot())}};qTl=Object.freeze({__proto__:null,block:PTl,blockHtml:FTl,blockString:DTl,blockTag:QTl,inline:NTl,inlineHtml:LTl,inlineString:MTl,inlineSurround:zTl,inlineTag:kTl,skip:xTl});lwl=Object.freeze({__proto__:null,anchor:ewl,blockquote:$Tl,dataTable:dTi,heading:XTl,horizontalLine:YTl,image:ZTl,lineBreak:HTl,orderedList:rwl,paragraph:KTl,pre:JTl,table:swl,unorderedList:twl,wbr:VTl}),uwl={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:` \r
|
|
271
271
|
\f\u200B`,wordwrap:80},cwl=(r,t,n)=>[...r,...t],pTi=(r,t,n)=>[...t],dwl=(r,t,n)=>r.some(i=>typeof i=="object")?cwl(r,t):pTi(r,t)});var M5,eCt,Awl,n6r,i6r,vce,fTi,ATi,EU=et(()=>{"use strict";M5=Ct(z3());Ns();eCt=M5.Record({errorDetail:M5.String,errorString:M5.String}),Awl=M5.Record({error:eCt,runDetails:M5.Record({compiledSQL:M5.String}).optional(),validationDetails:M5.Record({id:M5.String,type:M5.String,value:M5.Unknown}).optional()}),n6r=Pd("TRunErrorContents",eCt),i6r=Pd("TRunError",Awl),vce=r=>{try{return i6r.is(r)}catch(t){if(t instanceof TypeError)return!1;throw t}},fTi=r=>{if(typeof r.statusCode!="number")return!1;try{return n6r.is(r.error)}catch{return!1}},ATi=(r,t)=>r.error.errorDetail.includes(t)||r.error.errorString.includes(t)});var hTi,gTi,mTi,yTi,ETi,o6r,TN,hwl,gwl,mwl,ywl,Ewl,QK,zl,tCt,w4,Vu=et(()=>{"use strict";r6r();wr();Ww();wu();EU();pr();hTi=rt.RUNNER_BACKEND,gTi=rt.ERROR_OPERATIONS,mTi="Failed to parse runtime parameters",yTi=r=>{let t;if(r instanceof Error)t=r;else{let i=r?.error?.errorString||"Something went wrong";t=new Error(i)}return t},ETi=r=>{if(r instanceof Error)return r.message?r.message:(gTi.error("instance of Error did not have a message property. original error: ",r),"Unknown error");{let t=r;return!t.error.errorString&&!t.error.errorDetail?(gTi.error("instance of TRunError did not have a errorString or errorDetail property. original error: ",r),"Unknown error"):t.error.errorString||t.error.errorDetail}},o6r=(r,t)=>({errorString:r,errorDetail:t}),TN=(r,t,n,i)=>({error:o6r(r,t),...!!n&&{runDetails:n},...!!i&&{validationDetails:i}}),hwl=r=>r instanceof Error,gwl=r=>{if(r instanceof mt)return r.toTRunError();let t=r.message,n=r.stack||r.name&&r.message&&`${r.name}: ${r.message}`||"";return TN(t,n)},mwl=r=>{let t=r.message,n=r.code;return TN(t,n)},ywl=r=>{let t=r.response?.data,n=t?.error,i="(unknown URL)",o=t?t.message:void 0,s=r?.config?.url||r.response?.config.url,a=r?.config?.baseURL||r.response?.config.baseURL;if(s){let d;if(s.startsWith("http")?d=s:a&&(d=a+s),d)try{let p=new URL(d);i=p.origin+p.pathname}catch{i="(invalid URL)"}}let l=n?.errorString||n?.message||o||r.message||`${r}`,c=`Axios Error ${r?.config?.method} ${i} ${r?.response?.status||"(no status)"}: ${n?.errorDetail||r.stack||n?.message||r.message||r}, code=${r.response?.status||r.code||"unknown"}`,u=n?.runDetails?.compiledSQL?{compiledSQL:n.runDetails.compiledSQL}:null;return TN(l,c,u)},Ewl=r=>!!(typeof r=="object"&&r&&"error"in r),QK=r=>{try{return i6r.is(r)}catch{return!1}},zl=(r,t=!1)=>{if(typeof r=="object"&&r){if(QK(r))return r;if(sp(r))return r.toTRunError();if(km(r))return ywl(r);if(agt(r))return mwl(r);if(hwl(r))return gwl(r);if(Ewl(r)&&r.error)return zl(r.error,t);if(n6r.is(r))return TN(r.errorString,r.errorDetail);t||hTi.assert("CreateTRunError received a non-error object",r,new Error().stack)}else{if(typeof r=="string")return r.includes("html>")?TN("Coalesce was served HTML possibly indicating a service failure",Zbt(r)):TN(r,r);t||hTi.assert("CreateTRunError received error of unknown shape: ",r,new Error().stack)}return TN("","")},tCt=r=>{try{let t=r instanceof Error?r.stack:"<no stack>",{error:{errorDetail:n,errorString:i}}=zl(r);return i+`
|
|
272
272
|
`+n+`
|
|
273
|
-
`+t}catch{return"<failed to get stack>"}},w4=(r,t="",n)=>{let i=zl(r);return new mt(t+i.error.errorString,n)}});var $Ue,s6r=et(()=>{"use strict";$Ue=(r,t,n)=>t?r.default(n):r.optional()});var rCt,Cwl,Iwl,bU,Sce,vwl,Swl,_wl,bTi,R4,CTi,Btp,a6r,l6r=et(()=>{"use strict";cn();Fs();s6r();rCt=w.object({locationName:w.string(),nodeName:w.string()}).strict(),Cwl=w.enum(["None","sysCreateDate","sysUpdateDate","sysStartDate","sysEndDate","sysVersion","sysCurrentFlag"]),Iwl=w.enum(["None","surrogateKey","primaryBusinessKey"]),bU=w.enum(["SHA1","SHA256","MD5"]),Sce=w.object({stepCounter:xb,columnCounter:xb}).strict(),vwl=w.object({columnReferences:w.array(Sce.strict()),transform:w.string()}).strict(),Swl=w.object({hashAlgorithm:bU}),_wl=w.object({strictMatch:w.boolean(),values:w.array(w.string())}).strict(),bTi=r=>w.object({defaultValue:w.string().optional(),nullable:_4.default(!1),name:w.string(),dataType:w.string(),description:w.string(),columnReference:Sce,transform:w.string().optional(),sourceColumnReferences:w.array(vwl).optional(),systemColumnType:Cwl.optional(),keyColumnType:Iwl.optional(),isBusinessKey:_4.optional(),isChangeTracking:_4.optional(),primaryKey:_4.optional(),uniqueKey:_4.optional(),hashDetails:Swl.nullish(),hashedColumns:w.array(Sce.strict()).optional(),isSurrogateKey:w.boolean().optional(),config:$Ue(w.record(w.any()),r,{}),appliedColumnTests:$Ue(w.record(w.string(),w.boolean()),r,{}),acceptedValues:_wl.strict().optional(),isSystemCreateDate:_4.optional(),isSystemUpdateDate:w.boolean().optional(),isSystemStartDate:w.boolean().optional(),isSystemEndDate:w.boolean().optional(),isSystemVersion:w.boolean().optional(),isSystemCurrentFlag:w.boolean().optional()}).passthrough(),R4=bTi(!1),CTi=R4.shape.columnReference.shape.columnCounter,Btp=R4.strict(),a6r=bTi(!0)});var Owl,u6r,vTi,c6r,d6r,CU,STi,p6r,Twl,wwl,ITi,_Ti,Rwl,Bwl,OTi,xwl,Mwl,TTi,LK,wTi,RTi,Dwl,Nwl,BTi,FK,xTi,MTi,_ce,Pwl,kwl,ktp,DTi=et(()=>{"use strict";cn();Fs();l6r();s6r();Owl=w.enum(["sql","sourceInput"]),u6r="Source",vTi=["Stage","persistentStage","View","Dimension","Fact"],c6r=[...vTi,u6r],d6r=w.union([w.enum(c6r),w.coerce.string()]),CU=1,STi=w.object({database:w.string().default(""),schema:w.string().default(""),description:w.string().default(""),deployEnabled:_4.optional(),locationName:w.string(),name:w.string(),sqlType:d6r,type:Owl,version:w.literal(CU).default(CU)}),p6r=w.enum(["Before","After"]),Twl=w.object({name:w.string(),description:w.string().default(""),continueOnFailure:w.boolean(),runOrder:p6r}).strict(),wwl=Twl.extend({templateString:w.string()}).strict(),ITi=["table","view"],_Ti=r=>w.object({name:w.string(),join:w.object({joinCondition:w.string()}).strict(),dependencies:w.array(rCt),customSQL:w.object({customSQL:w.string()}).strict().optional(),noLinkRefs:w.array(rCt).default([]),aliases:$Ue(w.record(w.string(),w.string()),r,{})}).strict(),Rwl=_Ti(!1),Bwl=_Ti(!0),OTi=r=>w.object({columns:w.array(r?a6r:R4),sourceMapping:w.array(r?Bwl.strict():Rwl.strict()).nonempty(),cteString:w.string().optional(),destinationName:w.string().optional(),description:w.string().optional(),mapping:w.record(w.union([w.object({}).partial().passthrough(),w.string(),w.number(),w.boolean()])).optional(),materializationOption:w.string().optional(),appliedNodeTests:w.array(wwl).default([]),enabledColumnTestIDs:w.array(w.string()).default([])}).strict(),xwl=OTi(!1),Mwl=OTi(!0),TTi=r=>STi.extend({deployEnabled:w.boolean().default(!0),config:w.record(w.any()).default({}),isMultisource:w.boolean(),metadata:r?Mwl:xwl,materializationType:r?w.union([w.enum(ITi),w.string()]).default("table"):w.union([w.enum(ITi),w.string()]),overrideSQL:w.boolean().optional(),sqlType:w.union([w.enum(vTi),w.coerce.string()]).refine(t=>t!==u6r,{message:"'Source' is not allowed for a sql node"}),type:w.literal("sql")}).strict(),LK=TTi(!1),wTi=TTi(!0),RTi=r=>w.object({columns:w.array(r?a6r:R4)}).strict(),Dwl=RTi(!1),Nwl=RTi(!0),BTi=r=>STi.extend({deployEnabled:w.boolean().default(!0),metadata:r?Nwl:Dwl,type:w.literal("sourceInput"),sqlType:w.literal(u6r)}).strict(),FK=BTi(!1),xTi=BTi(!0),MTi=w.discriminatedUnion("type",[zi.merge(LK),zi.merge(FK)]),_ce=w.string(),Pwl=w.discriminatedUnion("type",[FK,LK]),kwl=w.object({operation:Pwl}),ktp=w.record(_ce,kwl)});var Qwl,Lwl,NTi,Fwl,zwl,gCe,f6r,A6r,wN,h6r=et(()=>{"use strict";cn();Fs();Qwl=w.string(),Lwl=w.object({backgroundColor:w.string().optional(),textColor:w.string().optional()}).strict(),NTi=["Refreshing","Failed Deploy","Failed Refresh","Deploying","Waiting","Initializing","Deleting"],Fwl=w.enum(NTi),zwl=w.string(),gCe=2,f6r=gce.extend({createdBy:w.string(),createdAt:w.coerce.date(),name:w.string(),oauthEnabled:w.boolean().default(!1),runTimeParameters:zwl.optional(),status:Fwl,connectionAccount:w.string().optional(),accessUrl:w.string().nullable().default(null),currentGitBranch:w.string().optional(),currentGitCommit:w.string().nullable().optional(),currentGitURL:w.string().optional(),currentlyRunningJobs:w.array(w.number().int()).optional(),currentlyRunningDevJobs:w.array(w.number().int()).optional(),lastCommit:w.string().nullable().optional(),description:w.string().optional(),devEnv:w.boolean().default(!1),oauthClientID:w.string().optional(),oauthClientSecret:w.string().optional(),platformKind:O4.optional()}),A6r=f6r.extend({mappingsV1:Qwl,defaultStorageMapping:w.string().nullable().optional(),deployedWorkspaces:w.record(w.object({})).optional(),tagColors:Lwl,project:w.string(),latestCommitDate:w.date().optional(),latestUncommittedFiles:w.array(w.string()).optional(),version:w.literal(gCe).default(gCe)}).strict(),wN=w.number()});var mCe=et(()=>{"use strict";DTi();h6r();l6r()});var nCt,PTi,Ktp,yCe=et(()=>{"use strict";cn();Fs();Ns();mCe();h6r();nCt=w.record(w.any()),PTi=A6r.omit({createdAt:!0,createdBy:!0}),Ktp=Ir("Workspace",fs(A6r))});var qwl,H3,IU=et(()=>{"use strict";cn();Fs();qwl=w.union([w.literal("NodeType"),w.literal("Auth"),w.literal("Totp"),w.literal("AI"),w.literal("NewWorkspace")]),H3=zi.merge(w.object({type:w.literal("core").default("core"),orgID:h2t,event:w.string(),resourceType:qwl,resourceID:w.string(),fromID:w.string(),requestedBy:g2t,requestedByUserAgent:w.string().optional()})).strict()});var iCt,Uwl,jwl,LTi,g6r,Gwl,kTi,QTi,D5,Wwl,Hwl,oCt,Vwl,Ywl,sCt,ZUe=et(()=>{"use strict";cn();Fs();iCt=w.string().refine(r=>/^[a-z0-9](?!.*--)[-a-z0-9]*[a-z0-9]$|^[a-z0-9]+$/i.test(r),r=>({message:`Invalid name "${r}". Only lowercase alphanumeric and hyphens are allowed. No consecutive or leading/trailing hyphens.`})),Uwl=/^(?!.*\s{2})(?!.*--)(?!.*__)[a-zA-Z0-9]([-_\s]*[a-zA-Z0-9])*$|^[a-z0-9]+$/i,jwl=w.string().refine(r=>Uwl.test(r),r=>({message:`Invalid package name ${r}. Only alphanumeric characters, spaces, hyphens, and underscores are allowed. No consecutive or leading/trailing spaces, hyphens, or underscores.`})),LTi=iCt,g6r="_",Gwl=w.string().refine(r=>{let[t,n]=r.split(g6r);return n?LTi.safeParse(t).success&&iCt.safeParse(n).success:!1},r=>({message:`Invalid package ID "${r}". Must be in the format <publisherID>${g6r}<packageName>`})),kTi="/",QTi="@",D5=w.string().refine(r=>r.startsWith(QTi)?r.includes(kTi):!1,r=>({message:`${r} is not a valid package ID. Should be formatted "${QTi}publisherID${kTi}packageName"`})),Wwl=w.enum(["public","private","unlisted"]),Hwl=zi.extend({version:w.string(),changeLog:w.string()}),oCt=Hwl.extend({releaseID:w.string(),storagePath:w.string(),privacy:Wwl.default("unlisted")}),Vwl=200,Ywl=w.string().max(Vwl).default(""),sCt=zi.extend({description:w.string(),overview:Ywl,packageID:D5,publisherID:LTi,name:jwl,org:w.string(),latestRelease:w.string(),tags:w.array(w.string()).default([]),featured:w.boolean().default(!1),certified:w.boolean().default(!1),platformKind:O4.default("snowflake").optional()})});var aCt=et(()=>{"use strict";ZUe()});var lCt,m6r=et(()=>{"use strict";cn();yCe();IU();Fs();aCt();lCt=zi.merge(H3.extend({type:w.literal("duplicate"),packageID:D5,releaseID:w.string(),workspaceID:wN})).strict()});var uCt,y6r=et(()=>{"use strict";cn();yCe();IU();aCt();Fs();uCt=zi.merge(H3.extend({type:w.literal("install"),packageID:D5,releaseID:w.string(),workspaceID:wN})).strict()});var cCt,E6r=et(()=>{"use strict";cn();yCe();IU();Fs();mCe();cCt=zi.merge(H3.extend({type:w.literal("update"),workspaceID:wN,nodeID:_ce,acceptedDescriptionsCount:w.number().int(),modifiedDescriptionsCount:w.number().int(),rejectedDescriptionsCount:w.number().int()})).strict()});var dCt,b6r=et(()=>{"use strict";cn();IU();Fs();dCt=zi.merge(H3.extend({type:w.literal("create"),projectID:w.string(),stepNumber:w.number(),startTime:w.date(),endTime:w.date(),status:w.string()})).strict()});var Kwl,Jwl,zTi,Xwl,ECe,bCe,$wl,Zwl,e6l,t6l,r6l,qTi,n6l,i6l,o6l,pCt,Rrp,CCe,s6l,a6l,l6l,u6l,c6l,d6l,C6r,UTi,jTi,FTi,GTi,p6l,f6l,WTi,A6l,eje,fCt,tje=et(()=>{"use strict";cn();Kwl=["sql","none"],Jwl=w.enum(["beginning","end"]),zTi=w.object({isRequired:w.boolean().optional(),enableIf:w.string().optional()}),Xwl=["columnSelector","dropdownSelector","textBox","toggleButton","tabular","columnDropdownSelector"],ECe=w.enum(Xwl),bCe=r=>zTi.extend({displayName:w.string(),type:w.literal(r),attributeName:w.string().min(1,"attributeName must be non-empty")}),$wl=bCe(ECe.Enum.columnSelector),Zwl=bCe(ECe.Enum.dropdownSelector).extend({default:w.string().optional(),options:w.array(w.string())}),e6l=bCe(ECe.Enum.textBox).extend({default:w.union([w.string(),w.number()]).optional(),syntax:w.enum(Kwl).optional()}),t6l=bCe(ECe.Enum.toggleButton).extend({default:w.boolean().optional()}),r6l=bCe(ECe.Enum.columnDropdownSelector).extend({ineligibleColumns:w.array(w.string()).optional()}),qTi=w.discriminatedUnion("type",[Zwl,e6l,t6l,r6l]),n6l=w.discriminatedUnion("type",[$wl,...qTi.options]),i6l=bCe(ECe.Enum.tabular).extend({isRequired:w.boolean(),enableIf:w.string().optional(),columns:w.array(qTi).nonempty()}),o6l=w.discriminatedUnion("type",[...n6l.options,i6l]),pCt=["businessKeyColumns","changeTrackingColumns","multisourceToggle","overrideSQLToggle","materializationSelector"],Rrp=w.enum(pCt),CCe=r=>zTi.extend({type:w.literal(r),default:w.union([w.string(),w.boolean()]).optional(),options:w.array(w.string()).optional()}),s6l=CCe("multisourceToggle"),a6l=CCe("businessKeyColumns"),l6l=CCe("changeTrackingColumns"),u6l=CCe("overrideSQLToggle"),c6l=CCe("materializationSelector"),d6l=CCe("dataVaultToggle"),C6r=w.discriminatedUnion("type",[a6l,l6l,s6l,u6l,c6l]),UTi=w.object({displayName:w.string(),transform:w.string(),dataType:w.string(),nullable:w.boolean().optional(),defaultValue:w.string().optional(),description:w.string().optional(),placement:Jwl,attributeName:w.string(),enableIf:w.string().optional()}).strict(),jTi=w.object({headerName:w.string(),attributeName:w.string(),type:w.literal("textBox")}).strict(),FTi=w.union([w.literal("table"),w.literal("view"),w.string()]),GTi=w.object({default:FTi,options:w.array(FTi)}).strict(),p6l=w.discriminatedUnion("type",[...C6r.options,...o6l.options,d6l]),f6l=w.object({groupName:w.string(),description:w.string().optional(),items:w.array(p6l),enableIf:w.string().optional()}).strict(),WTi=w.array(f6l),A6l=["default","advanced","transient"],eje=w.enum(A6l),fCt=w.object({deployStrategy:eje})});var krp,h6l,ACt,I6r,HTi,Qrp,g6l,Lrp,m6l,v6r,VTi,S6r,Frp,zrp,y6l,E6l,b6l,YTi,_6r=et(()=>{"use strict";cn();Fs();Ns();tje();mCe();mCe();krp=w.object({columns:w.array(R4.strict()),mappings:w.any(),locationName:w.string(),sourceMapping:w.any(),description:w.string().optional(),workspaceID:w.number().int().optional(),workspaceName:w.string().optional(),destinationName:w.string().optional()}).strict(),h6l=w.object({locationName:w.string(),database:w.string(),schema:w.string()}),ACt=w.record(w.string(),h6l),I6r=w.object({operationName:w.string(),destinationName:w.string().optional(),mapping:ACt,parameters:w.record(w.any()).optional(),deployStrategy:eje.optional()}),HTi=w.discriminatedUnion("type",[LK,FK]),Qrp=Ir("NodeCore",HTi),g6l=w.object({operation:MTi}),Lrp=w.record(g6l),m6l=w.record(w.object({operation:HTi})),v6r=w.discriminatedUnion("type",[fs(LK),fs(FK)]),VTi=w.record(w.object({operation:v6r})),S6r=w.discriminatedUnion("type",[wTi,xTi]),Frp=Ir("NodeCore + Defaults",fs(S6r)),zrp=Ir("Node Dictionary",m6l),y6l=LK.pick({locationName:!0,type:!0,name:!0,sqlType:!0}),E6l=FK.pick({locationName:!0,type:!0,name:!0,sqlType:!0}),b6l=w.object({operation:w.discriminatedUnion("type",[y6l,E6l])}),YTi=Ir("NodeSummary",b6l)});var C6l,hCt,O6r=et(()=>{"use strict";cn();yCe();IU();Fs();_6r();C6l=w.enum(["Accepted","Modified","Rejected"]),hCt=zi.merge(H3.extend({type:w.literal("update_node_description"),workspaceID:wN,nodeID:_ce,action:C6l})).strict()});var I6l,gCt,mCt,T6r=et(()=>{"use strict";cn();Fs();IU();I6l=w.enum(["Accepted","Modified","Rejected"]),gCt=zi.merge(H3.extend({type:w.literal("request"),fileCount:w.number(),diffContent:w.string(),charCount:w.number(),latencyMs:w.number(),aiGitRequestId:w.string()})).strict(),mCt=zi.merge(H3.extend({type:w.literal("action"),action:I6l,aiMessage:w.string(),finalMessage:w.string(),editDistance:w.number(),aiGitRequestId:w.string()})).strict()});var anp,KTi=et(()=>{"use strict";cn();m6r();IU();y6r();E6r();b6r();O6r();T6r();anp=w.discriminatedUnion("type",[H3,lCt,uCt,cCt,dCt,hCt,gCt,mCt])});var v6l,JTi,w6r=et(()=>{"use strict";cn();v6l=w.union([w.object({seconds:w.number(),nanoseconds:w.number()}),w.object({_seconds:w.number(),_nanoseconds:w.number()})]),JTi=w.union([v6l,w.date()])});var XTi,$Ti,ZTi=et(()=>{"use strict";cn();Fs();XTi=2,$Ti=zi.extend({gitUsername:w.string(),gitAuthorName:w.string(),gitAuthorEmail:w.string(),gitAccountName:w.string(),version:w.literal(XTi).default(XTi).optional()}).strict()});var ewi,twi,rwi=et(()=>{"use strict";cn();Fs();ewi=1,twi=zi.extend({version:w.literal(ewi).default(ewi)}).strict()});var nwi=et(()=>{"use strict"});var N5,S6l,rje,yCt,_6l,ECt,O6l,R6r,B6r,iwi,T6l,RN,x6r,M6r,owi,Inp,w6l,swi,D6r,vnp,Snp,nje=et(()=>{"use strict";cn();ZUe();Fs();zEe();N5=iCt,S6l=w.object({defaultStorageLocation:w.string().nullable(),isDisabled:w.boolean()}).strict(),rje=w.string(),yCt=w.object({packageVariables:rje,entities:w.object({nodeTypes:w.record(S6l)})}).strict(),_6l=w.string(),ECt=oCt.pick({version:!0,changeLog:!0,releaseID:!0}),O6l=w.object({alias:N5,packageID:D5,releaseID:w.string(),macros:_6l,version:w.string()}),R6r=O6l.extend({dependencies:w.record(N5,w.lazy(()=>R6r))}).strict(),B6r=w.record(N5,R6r),iwi=Ir("Package Dependency",R6r),T6l=sCt.pick({description:!0,overview:!0,packageID:!0,publisherID:!0,name:!0}),RN=w.object({id:w.string(),version:w.string()}).strict(),x6r=w.object({defaultStorageLocation:w.string().optional().nullable(),error:w.object({errorString:w.string()}).nullable(),nodeMetadataSpec:w.string(),templates:w.object({create:w.object({templateString:w.string()}).strict(),run:w.object({templateString:w.string()}).strict()}).strict()}).strict(),M6r=w.object({templateCounter:w.number().int().optional(),id:w.string().optional(),isDisabled:w.boolean(),metadata:x6r.strict(),name:w.string(),version:w.number().int(),packageInfo:RN.optional()}).strict(),owi=M6r.merge(zi),Inp=Ir("PackageNodeTypeUnparsed",owi),w6l=w.record(owi),swi=w.object({macros:w.string(),nodeTypes:w6l,release:ECt,dependencies:B6r,platformKind:O4.optional()}),D6r=T6l.merge(swi).strict(),vnp=D6r.extend({packageVariables:rje}),Snp=swi.extend({packageVariables:rje})});var zK,R6l,B6l,x6l,Mnp,M6l,Dnp,awi=et(()=>{"use strict";cn();wr();zEe();ZUe();nje();zK=w.object({releaseID:w.string(),packageID:D5,config:yCt}),R6l=w.object({releaseID:ECt.shape.releaseID,packageID:D5}),B6l=w.record(N5,R6l),x6l=w.object({packageID:D5,macros:w.string(),dependencies:B6l,release:ECt,packageVariables:rje}),Mnp=Ir("PackageMetadataForZip",x6l),M6l=w.object({serializedPackages:w.record(N5,zK)}),Dnp=Ir("Hydrate Serialized Packages Validator",M6l)});var lwi,D6l,N6l,P6l,k6l,Q6l,Qnp,uwi=et(()=>{"use strict";cn();nje();lwi=w.object({templateString:w.string()}),D6l=w.object({run:lwi,create:lwi}),N6l=w.object({errorString:w.string()}),P6l=w.string(),k6l=w.object({defaultStorageLocation:P6l.optional().nullable(),nodeMetadataSpec:w.string(),templates:D6l,error:N6l.nullable()}),Q6l=w.object({name:w.string(),isDisabled:w.boolean(),version:w.number(),id:w.string(),metadata:k6l,packageInfo:RN.optional()}),Qnp=w.record(w.string(),Q6l)});var ICe=et(()=>{"use strict";nwi();ZUe();awi();nje();uwi()});var N6r,L6l,F6l,vCe,bCt=et(()=>{"use strict";cn();w6r();Fs();ICe();N6r=(o=>(o.adding="adding",o.added="added",o.removing="removing",o.error="error",o))(N6r||{}),L6l=w.object({filePath:w.string()}),F6l=w.object({commit:w.string()}),vCe=zi.extend({version:w.string(),versionInfo:w.union([F6l,L6l]),status:w.nativeEnum(N6r),addedBy:w.string(),createdAt:JTi.nullable(),manifest:w.record(w.record(w.object({id:w.string(),name:w.string()})))}).strict()});var cwi,dwi=et(()=>{"use strict";tje();cwi=(r=[],t)=>t==="advanced"?!0:r.every(n=>{let i=n.items.find(a=>a.type==="materializationSelector");if(!i)return!0;let o=C6r.safeParse(i);return o.success?(o.data.options||[]).every(a=>a.toLowerCase()==="table"||a.toLowerCase()==="view"):!0})});var ICt,pwi,z6l,fwi,q6l,Awi,hwi,U6l,vCt,P6r,SCt,j6l,iip,vU,gwi,G6l,mwi,W6l,oip,ywi,H6l,CCt,V6l,_Ct,Ewi,bwi,sip,k6r,Q6r=et(()=>{"use strict";cn();Ns();bCt();Fs();tje();dwi();ICt=(r,t)=>w.object({defaultStorageLocation:w.string().optional().nullable(),templates:z6l,nodeMetadataSpec:r,error:t}),pwi=w.strictObject({templateString:w.string()}),z6l=w.strictObject({run:pwi,create:pwi}),fwi=w.string(),q6l=w.object({capitalized:w.string(),tagColor:w.string(),plural:w.string(),short:w.string().nullable().optional(),isDisabled:w.boolean().optional(),isGhostobjectColumnsEnabled:w.boolean().optional(),systemColumns:w.array(UTi).optional(),isMultisourceToggleEnabled:w.boolean().optional(),isOverrideSQLEnabled:w.boolean().optional(),fetchDataOnSuccess:w.boolean().optional(),isDMLEnabled:w.boolean().optional(),isBusinessKeysEnabled:w.boolean().optional(),isChangeTrackingEnabled:w.boolean().optional(),materializationOptions:GTi.optional(),deployStrategy:eje.optional(),isColumnResyncEnabled:w.boolean().optional(),alwaysDeploy:w.boolean().optional(),config:WTi.optional(),mappingColumns:w.array(jTi).optional(),joinTemplate:w.string().optional()}),Awi=w.strictObject({errorString:w.string()}),hwi=q6l.refine(({alwaysDeploy:r,deployStrategy:t})=>!r||r===!0&&t==="advanced",{message:"alwaysDeploy is only supported for advanced deploy strategies"}).refine(r=>{let{config:t,deployStrategy:n}=r;return cwi(t,n)},{message:"materializationSelector options other than 'table' or 'view' are only supported for advanced deploy strategies"}),U6l=w.strictObject({id:w.string(),name:w.string(),isDisabled:w.boolean(),version:w.number().int()}),vCt=U6l.extend({packageInfo:RN.optional()}).strict(),P6r=ICt(fwi,Awi),SCt=ICt(fwi,w.null()),j6l=w.union([P6r,SCt]),iip=vCt.extend({metadata:SCt}),vU=vCt.extend({metadata:j6l}),gwi=w.record(vU),G6l=ICt(w.null(),Awi),mwi=ICt(hwi,w.null()),W6l=w.union([G6l,mwi]),oip=vCt.extend({metadata:mwi}),ywi=vCt.extend({metadata:W6l}),H6l=w.record(ywi),CCt=1,V6l=zi.extend({version:w.literal(CCt).default(CCt)}).strict(),_Ct=V6l.merge(vU),Ewi=Ir("NodeSpec",fs(hwi)),bwi=Ir("NodeTypeParsed",fs(ywi)),sip=Ir("NodeTypes Parsed",fs(H6l)),k6r=Ir("AnyNodeTypeYAML",fs(vU))});var Y6l,fip,Cwi,SCe,Aip,L6r,Iwi=et(()=>{"use strict";cn();Ns();Q6r();Fs();ICe();nje();Y6l=vU.omit({packageInfo:!0}).merge(zi),fip=w.record(Y6l),Cwi=1,SCe=zi.extend({version:w.literal(Cwi).default(Cwi),contents:D6r,config:yCt,alias:N5}).strict(),Aip=w.record(N5,SCe),L6r=Ir("Installed Workspace Package",fs(SCe))});var qK,vwi,Eip,UK,Swi=et(()=>{"use strict";cn();Fs();qK=2,vwi=w.object({jobCounter:w.number().int(),name:w.string().default(""),includeSelector:xb.default(""),excludeSelector:xb.default(""),subgraphs:w.array(w.number().int()).optional(),steps:w.array(xb).optional()}),Eip=w.record(vwi),UK=gce.merge(vwi.extend({version:w.literal(qK).default(qK)})).strict()});var gf,BN,Sip,K6l,_wi=et(()=>{"use strict";cn();Fs();bCt();gf=1,BN=zi.extend({macroString:w.string().default(""),macroCounter:w.number().int().optional(),packageInfo:RN.optional(),version:w.literal(gf).default(gf).optional()}).strict(),Sip=w.record(BN),K6l=w.string().brand("WorkspaceMacroString")});var F6r,J6l,Owi,z6r,X6l,$6l,q6r,jK,Twi=et(()=>{"use strict";cn();Ns();Fs();F6r=w.object({id:w.number().int(),locationName:w.string(),database:w.string(),schema:w.string()}).strict(),J6l=w.record(F6r),Owi=Ir("MappingV0Dictionary",fs(J6l)),z6r=w.object({database:w.string().optional(),schema:w.string().optional()}).strict(),X6l=w.record(z6r),$6l=w.object({mappingDefinitions:X6l}).strict(),q6r=w.record($6l),jK=Ir("MappingV1Dictionary",fs(q6r))});var Z6l,eRl,wwi,Rwi,Bwi=et(()=>{"use strict";cn();Fs();Z6l=w.object({sampleSize:w.number().int(),aiNodeColumnDescriptionsOptedIn:w.boolean().default(!1),aiCommitMessagesOptedIn:w.boolean().default(!1)}),eRl=w.object({trialStartDate:xb.optional(),isTrial:w.boolean(),trialActivator:w.string().optional(),companyName:w.string().optional(),trialSource:w.string().optional(),trialEndDate:w.string().optional()}).strict(),wwi=1,Rwi=zi.extend({backendBulkWritingEnabled:w.boolean().optional(),columnCounter:w.coerce.number().int().default(0),connectionCounter:w.coerce.number().int().default(0),createdAt:w.custom().optional(),createdBy:w.string().optional(),updatedAt:w.custom().optional(),updatedBy:w.string().optional(),deployDashboardV2Disabled:w.boolean().optional(),devRunCounter:w.coerce.number().int().default(0),devRunsEnabled:w.boolean().optional(),docsV2Enabled:w.boolean().optional(),enableRepoUpgrade:w.boolean().optional(),folderCounter:w.coerce.number().int().optional(),gitRepoCounter:w.number().int().optional(),jobCounter:w.coerce.number().int().default(0),lastLoginTime:w.coerce.date().optional(),listenersWaitForServerResponse:w.boolean().optional(),disableProblemScanner:w.boolean().optional(),locationCounter:w.coerce.number().int().default(0),multiFactorAuthEnabled:w.boolean().optional(),orgID:w.string().optional(),id:w.string(),orgName:w.string(),preferences:Z6l.strict().optional(),presyncDisabled:w.boolean().optional(),runCounter:w.coerce.number().int().default(0),snowflakeAdvancedOptionsEnabled:w.boolean().optional(),stepCounter:w.coerce.number().int().default(0),superDebugEnabled:w.boolean().optional(),templateCounter:w.coerce.number().int().default(0),workspaceCounter:w.coerce.number().int().default(0),ignoreForDatabaseValidation:w.boolean().optional(),licenseDetails:eRl.strict().optional(),dnsName:w.string().optional(),environmentCounter:w.number().int().optional(),authServer:w.string().optional(),testingEnabled:w.boolean().optional(),coaImageOverride:w.string().optional().nullable(),version:w.literal(wwi).default(wwi),featureFlags:w.record(w.string(),w.boolean().optional()).default({})}).strict()});var tRl,rRl,OCt,xwi,Mwi,nRl,kip,Dwi=et(()=>{"use strict";cn();Fs();Ns();tRl=["okta","azure","other"],rRl=w.enum(tRl),OCt=1,xwi=w.object({authority:rRl,authServer:w.string(),authUrl:w.string().optional(),useServerTokenAuth:w.boolean().optional(),clientID:w.string(),dnsName:w.string(),issuer:w.string().optional(),audience:w.string().optional()}).strict(),Mwi=zi.merge(xwi.partial()).extend({version:w.literal(OCt).default(OCt)}).strict(),nRl=xwi.extend({id:w.string()}).strict(),kip=Ir("SSOConfig",nRl.passthrough())});var Nwi,Pwi,kwi,Qwi=et(()=>{"use strict";cn();Ns();Fs();Nwi=w.object({name:w.string()}).strict(),Pwi=Ir("Package namespace (OLD)",fs(Nwi)),kwi=zi.merge(Nwi).strict()});var iRl,Lwi,U6r,Wip,Fwi=et(()=>{"use strict";cn();Fs();Ns();iRl=w.enum(["active","deleted"]),Lwi=1,U6r=zi.extend({name:w.string(),description:w.string().optional(),platformKind:O4.optional(),gitRepoURL:w.string().optional(),status:iRl,version:w.literal(Lwi).default(Lwi),id:w.string()}).strict(),Wip=Ir("Project",fs(U6r))});var zwi,qwi,Uwi=et(()=>{"use strict";cn();Fs();zwi=1,qwi=zi.extend({gitAccountID:w.string(),version:w.literal(zwi).default(zwi)}).strict()});var j6r,jwi,G6r=et(()=>{"use strict";cn();j6r="Transaction exceeded data limit, returned a subset of rows",jwi=w.enum(["Success","Failure","Canceled",j6r])});var Gwi,oRl,sRl,aRl,Wwi,TCt,W6r=et(()=>{"use strict";cn();Fs();G6r();Gwi=w.object({locationName:w.string(),nodeName:w.string()}).strict(),oRl=w.object({values:w.array(w.any())}),sRl=w.object({type:w.string(),name:w.string()}),aRl=w.enum(["sql","sqlTest"]),Wwi=1,TCt=zi.extend({sql:w.string(),success:_4.default(!1),rows:w.array(oRl.strict()),fields:w.array(sRl.strict()),error:__i.nullable().optional(),startTime:w.coerce.date(),endTime:w.coerce.date(),name:w.string(),isRunning:w.boolean(),exportedRefs:w.array(Gwi),invalidExportedRefs:w.array(Gwi),queryResultSequence:w.object({}).passthrough().nullable().optional(),status:jwi,type:aRl,queryID:w.string().nullable().optional(),queryResultExecutionIndex:w.number(),warehouse:w.string().nullable().optional(),renderStartTime:w.coerce.date().optional(),renderEndTime:w.coerce.date().optional(),stageExecutionStartTime:w.coerce.date().nullable().optional(),stageExecutionEndTime:w.coerce.date().nullable().optional(),version:w.literal(Wwi).default(Wwi)}).strict()});var Hwi=et(()=>{"use strict";W6r()});var Vwi=et(()=>{"use strict";mCe()});var _Ce,lRl,Oce,H6r=et(()=>{"use strict";cn();_Ce=w.object({location_name:w.string(),node_name:w.string()}),lRl=w.object({invalid_ref:w.array(_Ce),invalid_ref_link:w.array(_Ce),invalid_ref_no_link:w.array(_Ce),ref:w.array(_Ce),ref_link:w.array(_Ce),ref_no_link:w.array(_Ce)}),Oce=w.record(lRl)});var Ywi=et(()=>{"use strict";H6r()});var uRl,Kwi,V6r=et(()=>{"use strict";cn();uRl=w.enum(["Basic","OAuth","KeyPair","Cloud"]),Kwi=w.object({snowflakeAccount:w.string(),snowflakeAccessUrl:w.string().nullable().optional(),snowflakeKeyPairKey:w.string().optional(),snowflakeKeyPairPass:w.string().optional(),snowflakeUsername:w.string().nullable().optional(),snowflakeRole:w.string().optional(),snowflakeWarehouse:w.string().optional(),snowflakeAuthType:uRl,platformKind:w.literal("snowflake").optional()}).strict()});var cRl,Jwi,Y6r=et(()=>{"use strict";cn();cRl=w.enum(["Token","Cloud"]),Jwi=w.object({databricksToken:w.string().optional(),databricksPath:w.string().optional(),databricksHost:w.string(),databricksAuthType:cRl,platformKind:w.literal("databricks")}).strict()});var dRl,Xwi,K6r=et(()=>{"use strict";cn();dRl=w.enum(["oauth"]),Xwi=w.object({fabricConnectionString:w.string(),fabricAuthType:dRl,platformKind:w.literal("fabric")}).strict()});var pRl,Zwi,e6i,fRl,t6i,Iop,J6r,ARl,vop,hRl,gRl,Sop,mRl,yRl,X6r,_op,Oop,r6i,Tce,n6i,ERl,bRl,CRl,IRl,i6i,o6i,s6i,vRl,a6i,Top,SRl,l6i,wop,$wi,_Rl,ORl,$6r,Z6r,eRr,tRr,Rop,u6i=et(()=>{"use strict";cn();Fs();H6r();V6r();Y6r();K6r();pRl=["initializing","rendering"],Zwi=["waitingToRun","running"],e6i=[...pRl,...Zwi],fRl=w.enum(e6i),t6i=["failed","canceled"],Iop=w.enum(t6i),J6r=["completed",...t6i],ARl=w.enum(J6r),vop=[...Zwi,...J6r],hRl=[...e6i,...J6r],gRl=w.union([fRl,ARl]),Sop=w.enum(hRl),mRl=["deploy","refresh"],yRl=[...mRl,"devRun"],X6r=w.enum(yRl),_op=w.object({compiledSQL:w.string()}).strict(),Oop=w.enum(["addedColumn","addedTable","alteredColumn","alteredTable","clonedTable","deletedColumn","deletedTable","renamedColumn"]),r6i=w.coerce.number().int(),Tce=w.record(w.string(),w.array(w.string())),n6i=w.object({toWorkspaceID:w.coerce.number().int(),environmentID:xb.optional(),deployCommit:w.string(),deployCommitMessage:w.string().optional(),fromWorkspaceData:w.object({}).optional(),dividedStepDataWithWorkspaceEdits:w.object({}).optional(),stepsInRun:w.number().int().optional(),parallelism:w.number().int().optional(),canceled:w.boolean().optional(),forcedDeployment:w.boolean().optional(),clearTargetEnvironment:w.boolean().optional()}).strict(),ERl=w.object({version:w.literal(1).optional(),dependencies:Oce.optional()}).strict(),bRl=n6i.merge(ERl).strict(),CRl=w.object({version:w.literal(2),phasedDependencies:w.object({addedTable:Tce,alteredTable:Tce,deletedTable:Tce}).strict().optional()}).strict(),IRl=n6i.merge(CRl),i6i=w.union([bRl,IRl]),o6i=w.object({environmentID:xb,workspaceID:w.number().int().optional(),refreshDescription:w.string().optional(),stepsInRun:w.number().int().optional(),jobID:r6i.optional(),includeNodesSelector:w.string().optional(),excludeNodesSelector:w.string().optional(),forceIgnoreWorkspaceStatus:_4.optional(),parallelism:w.number().int().optional(),canceled:w.boolean().optional(),executor:w.string().optional(),allStepsForRefresh:w.array(w.string()).optional()}).strict(),s6i=["create","run"],vRl=w.enum(s6i),a6i=["Node Metadata Spec",...s6i,"select"],Top=w.enum(a6i),SRl=w.record(w.number()).nullable(),l6i=w.object({canceled:_4.default(!1),environmentID:w.string(),operationType:vRl,isPreview:w.boolean(),multisourceIndexLookup:SRl,jobID:r6i.optional(),includeNodesSelector:w.string().optional(),excludeNodesSelector:w.string().optional(),parallelism:w.number().int(),stepsInRun:w.number().int().nullable().optional(),dependencies:Oce.optional()}).strict(),wop=w.union([i6i,l6i,o6i]),$wi=3,_Rl=["API","UI","CLI","fivetranAPI"],ORl=w.enum(_Rl),$6r=gce.extend({runHeartbeat:w.coerce.date().optional(),runEndTime:w.coerce.date().optional(),runStartTime:w.coerce.date().optional(),runStatus:gRl,runType:X6r,userID:w.string().optional(),runHistory:w.array(w.coerce.number().int()).default([]).optional(),runFailureReason:w.string().optional(),runTimeParameters:w.any().nullable().optional(),reRunID:w.string().optional(),kubernetesJobUuid:w.string().optional(),userCredentials:w.union([Jwi,Kwi,Xwi]).nullable().optional(),origin:ORl.default("API"),version:w.literal($wi).default($wi)}),Z6r=$6r.extend({runType:w.literal("devRun"),runDetails:l6i}).strict(),eRr=$6r.extend({runType:w.literal("deploy"),runDetails:i6i}).strict(),tRr=$6r.extend({runType:w.literal("refresh"),runDetails:o6i,hasTestFailures:w.boolean().default(!1)}).strict(),Rop=w.discriminatedUnion("runType",[Z6r,eRr,tRr])});var c6i=et(()=>{"use strict";u6i()});var ije,TRl,rRr,nRr,wRl,d6i,iRr,RRl,BRl,wCt,oRr=et(()=>{"use strict";cn();W6r();Fs();ije=TCt.omit({id:!0,queryResultExecutionIndex:!0,version:!0}).strict(),TRl=w.object({name:w.string(),isRunning:w.literal(!0)}).strict(),rRr=w.object({name:w.string(),queryResults:w.array(w.union([ije,TRl])),isRunning:w.boolean(),renderQueryResults:ije.optional()}).strict(),nRr=["waiting","queued","running","complete","error","skipped","canceled"],wRl=w.enum(nRr),d6i=2,iRr=["None","Error","Validated","Created","DataLoaded","Skipped"],RRl=w.enum(iRr),BRl=w.number().int(),wCt=zi.extend({dataResult:w.union([w.record(w.union([w.number(),w.string(),w.boolean()])),ije]).nullable().optional(),name:w.string(),queryResultSequence:rRr,runExecutionSequenceID:BRl.optional(),runResultVersion:w.literal(d6i).default(d6i),runState:wRl,stepRunState:RRl,version:w.literal(2).default(2)}).strict()});var Fop,p6i=et(()=>{"use strict";cn();oRr();oRr();Fop=wCt.omit({queryResultSequence:!0}).extend({queryResultSequence:rRr.omit({queryResults:!0}).extend({queryResults:w.array(ije)})})});var f6i=et(()=>{"use strict";Y6r()});var A6i=et(()=>{"use strict";V6r()});var h6i=et(()=>{"use strict";K6r()});var sRr,OCe,aRr,oje,g6i=et(()=>{"use strict";cn();Fs();Ns();sRr=1,OCe=w.object({folderCounter:xb,name:w.string().default(""),steps:w.array(xb).default([]),version:w.literal(sRr).default(sRr)}),aRr=Ir("SubgraphCore",fs(OCe)),oje=zi.merge(OCe.strict())});var xRl,MRl,DRl,lRr,TCe,esp,m6i=et(()=>{"use strict";cn();Fs();xRl=w.enum(["SSO","normal"]),MRl=["Admin","User"],DRl=w.enum(MRl),lRr=1,TCe=zi.extend({firstName:w.string(),lastName:w.string(),role:DRl,currentTeam:w.string(),email:w.string(),password:w.string().optional(),accountType:xRl.optional().default("normal"),hasSuperUserAccess:w.boolean().optional(),hasProvisioningAccess:w.boolean().optional(),phoneNumber:w.string().optional(),activated:w.boolean().optional(),authDisabled:w.boolean().optional(),deleted:w.boolean().optional(),version:w.literal(lRr).default(lRr)}).strict(),esp=TCe.extend({password:w.string()})});var sje,uRr,cRr,NRl,PRl,y6i,E6i=et(()=>{"use strict";cn();Fs();sje=w.enum(["admin","contributor","member"]),uRr=w.enum(["admin","architect","contributor","member"]),cRr=w.enum(["admin","reader"]),NRl=w.object({environmentRoles:w.array(cRr)}).strict(),PRl=w.object({projectRoles:w.array(uRr),environments:w.record(NRl)}).strict(),y6i=zi.extend({organizationRoles:w.array(sje),projects:w.record(PRl)}).strict()});var kRl,QRl,wCe,dRr,pRr,fRr,b6i,lsp,C6i=et(()=>{"use strict";cn();Fs();Ns();kRl=w.enum(["Basic","OAuth","KeyPair","Cloud"]),QRl=w.object({userID:w.string(),user:w.string(),role:w.string().optional(),warehouse:w.string().optional(),keyPair:w.string().optional()}).strict(),wCe=1,dRr=zi.extend({connectionType:kRl,connectionDetails:QRl,version:w.literal(wCe).default(wCe),connectionKind:w.literal("snowflake").optional()}).strict(),pRr=zi.extend({connectionType:w.union([w.literal("Cloud"),w.literal("Token")]),connectionDetails:w.object({path:w.string(),userID:w.string()}),version:w.literal(wCe).default(wCe),connectionKind:w.literal("databricks")}).strict(),fRr=zi.extend({connectionType:w.literal("oauth"),connectionDetails:w.object({userID:w.string(),connectionString:w.string().optional()}),version:w.literal(wCe).default(wCe),connectionKind:w.literal("fabric")}).strict(),b6i=w.union([dRr,pRr,fRr]),lsp=Ir("WorkspaceUser",fs(b6i))});var I6i,psp,v6i,S6i,_6i=et(()=>{"use strict";cn();Fs();I6i=w.union([w.literal("node-description"),w.literal("column-description"),w.literal("git-commit-message")]),psp=w.string(),v6i=zi.extend({id:I6i,currentVersion:w.string(),description:w.string()}),S6i=zi.extend({promptType:I6i,content:w.string()})});var O6i,ARr=et(()=>{"use strict";cn();Fs();O6i=zi.extend({lastRefreshed:w.string().datetime()})});var T6i,w6i=et(()=>{"use strict";cn();Fs();T6i=zi.merge(w.object({expiration:w.date(),encryptedData:w.string()})).strict()});var ho=et(()=>{"use strict";KTi();w6r();ZTi();rwi();Iwi();Swi();_wi();Twi();_6r();Q6r();tje();Bwi();Dwi();bCt();Qwi();Fwi();Uwi();Hwi();Vwi();Ywi();c6i();p6i();f6i();A6i();h6i();g6i();m6i();E6i();C6i();yCe();aCt();_6i();ARr();w6i()});var nap,R6i,LRl,hRr,RCt,iap,oap,RCe=et(()=>{"use strict";cn();ho();nap=w.object({hashAlgorithm:bU,hashType:w.enum(["HubHash","LinkHash","ChangeHash","Hash","None"]).optional(),hubHashes:w.array(Sce).optional()}),R6i=w.object({tableName:w.string().nullable(),columnName:w.string()}),LRl=["hasNull","isDistinct","acceptedValues"],hRr={fail:"Test failed - records matching fail condition were returned",failCOF:'Test failed with "Continue on Failure" option disabled'},RCt=w.object({name:w.string(),description:w.string(),continueOnFailure:w.boolean(),runOrder:p6r}),iap=RCt.extend({templateString:w.string()}),oap=RCt.extend({attributes:w.object({}),columnTestDefinitionID:w.union([w.enum(LRl),w.string()]),getTemplateString:w.function(w.tuple([R4]),w.string())})});var FRl,zRl,qRl,B6i,URl,x6i,gRr,mRr,jRl,M6i,dap,pap,D6i,GRl,WRl,BCt,yRr,fap,xCt=et(()=>{"use strict";cn();RCe();ho();Ns();FRl=w.object({algorithm:bU,columns:w.array(w.any())}),zRl=w.object({database:w.string(),schema:w.string(),name:w.string()}),qRl=w.array(zRl),B6i=w.object({enabled:w.boolean(),script:w.string()}),URl=w.object({create:B6i,run:B6i.optional()}),x6i=RCt.extend({templateString:w.string()}),gRr=w.object({id:w.string(),name:w.string(),location:w.object({name:w.string()}),description:w.string(),materializationType:w.string(),isMultisource:w.boolean(),override:URl,nodeType:d6r,tests:w.array(x6i)}),mRr=w.object({id:w.string(),name:w.string(),dataType:w.string(),description:w.string(),nullable:w.union([w.string(),w.boolean()]),defaultValue:w.any(),config:w.record(w.any()).optional(),tests:w.array(x6i),isBusinessKey:w.boolean().optional(),isSurrogateKey:w.boolean().optional(),isChangeTracking:w.boolean().optional(),isSystemCreateDate:w.boolean().optional(),isSystemUpdateDate:w.boolean().optional(),isSystemRecordSource:w.boolean().optional(),columnsForHash:w.array(w.string()).optional(),hashDetails:FRl.optional()}),jRl=w.object({node:gRr,column:mRr}),M6i=mRr.extend({transform:w.string(),sourceColumns:w.union([w.array(jRl),w.array(w.record(w.any()))])}),dap=Ir("MultiSourceColumn",M6i),pap=w.record(w.union([w.boolean(),w.undefined()])),D6i=mRr.catchall(w.union([w.boolean(),w.undefined()])),GRl=w.object({node:gRr,columns:D6i}),WRl=w.object({name:w.string(),columns:w.array(M6i),join:w.string(),customSQL:w.string(),dependencies:w.array(w.union([GRl,w.record(w.any())]))}),BCt=w.object({columns:w.array(D6i),storageLocations:qRl,config:w.record(w.any()),sources:w.union([w.array(WRl),w.null()]),node:gRr,this:w.string(),parameters:nCt}),yRr=w.object({currentState:w.union([BCt,w.undefined()]),desiredState:w.union([BCt,w.undefined()]),currentMapping:w.union([ACt,w.undefined()]),desiredMapping:w.union([ACt,w.undefined()])}),fap=Ir("AdvancedHydratedMetadata",yRr)});var wce,HRl,VRl,ERr,bRr,YRl,CRr,IRr,N6i,map,KRl,yap,GK=et(()=>{"use strict";ho();cn();wce=w.object({oldName:w.string(),oldLocation:w.string()}),HRl=w.object({nullable:w.boolean().optional(),dataType:w.string().optional(),description:w.string().optional(),name:w.string()}),VRl=w.object({name:w.string(),dataType:w.string(),nullable:w.boolean(),description:w.string(),defaultValue:w.string().optional()}),ERr=wce.extend({addedColumns:w.array(VRl)}),bRr=wce.extend({alteredColumns:w.array(HRl)}),YRl=w.object({name:w.string()}),CRr=wce.extend({deletedColumns:w.array(YRl)}),IRr=wce.extend({oldColumn:R4,newColumn:R4}),N6i=[wce,CRr,bRr,ERr,IRr],map=w.union(N6i),KRl=[...N6i,fCt,w.object({})],yap=w.union(KRl)});var MN,P6i,xN,k6i,Q6i,vRr,L6i,F6i,WK,z6i,JRl,_ap,XRl,Oap,MCt,q6i,SRr,$Rl,ZRl,DCt,NCt,B4=et(()=>{"use strict";cn();ho();xCt();Ns();GK();MN="select 1 as coalesce_test",P6i="SELECT name FROM sys.databases;",xN={None:null,sysCreateDate:"isSystemCreateDate",sysUpdateDate:"isSystemUpdateDate",sysStartDate:"isSystemStartDate",sysEndDate:"isSystemEndDate",sysVersion:"isSystemVersion",sysCurrentFlag:"isSystemCurrentFlag"},k6i={[xN.sysCreateDate]:"sysCreateDate",[xN.sysUpdateDate]:"sysUpdateDate",[xN.sysStartDate]:"sysStartDate",[xN.sysEndDate]:"sysEndDate",[xN.sysVersion]:"sysVersion",[xN.sysCurrentFlag]:"sysCurrentFlag"},Q6i={isChangeTracking:"isChangeTracking",isSurrogateKey:"isSurrogateKey",isBusinessKey:"isBusinessKey",none:"None"},vRr={isBusinessKey:"primaryBusinessKey",isSurrogateKey:"surrogateKey"},L6i=r=>!!(typeof r=="object"&&r!==null&&"items"in r&&Array.isArray(r.items)),F6i=r=>r.hasOwnProperty("stepCounter"),WK=I6r.merge(BCt),z6i=I6r.merge(yRr),JRl=w.object({templateString:w.string(),macrosString:w.string(),runTimeParameters:nCt.optional(),packages:B6r,renderDepth:w.number().optional(),formatSQL:w.boolean().optional(),nodeMetadata:w.union([WK.strict(),z6i.strict()])}).strict(),_ap=Ir("RenderNodeParams",JRl),XRl=w.union([WK.merge(wce),WK.merge(CRr),WK.merge(bRr),WK.merge(ERr),WK.merge(IRr),WK.merge(fCt),WK.merge(w.object({})),z6i]),Oap=Ir("RenderDeployNodeMetadata",XRl),MCt=r=>r.toWorkspaceID!==void 0,q6i=r=>MCt(r)&&(!("version"in r)||r.version===1)&&!("phasedDependencies"in r),SRr=r=>MCt(r)&&r.version===2&&"phasedDependencies"in r&&!("dependencies"in r),$Rl=r=>r.environmentID!==void 0&&!ZRl(r),ZRl=r=>r.operationType!==void 0,DCt=r=>{if(!r?.runType||!r?.runDetails)throw new Error("Run info has invalid run type or run details!");let t=r.runType==="refresh";if(t&&!$Rl(r.runDetails))throw new Error(`Refresh run ${r.id||r.reRunID} info has invalid run details!`);return t},NCt=r=>!!r.reRunID});var eBl,DN,Mc,_Rr,U6i,tBl,PCt,ORr,Yw,Fd=et(()=>{"use strict";pr();Vu();B4();({TIMING_UTILS:eBl}=rt),DN=r=>new Promise(t=>setTimeout(t,r)),Mc=async(r,t,n,i,o="debugContext",...s)=>{let a=rt[n];a[o](t,r,"starting");let l=performance.now();try{return await i()}catch(c){let{error:{errorString:u,errorDetail:d}}=zl(c);throw a.errorContext(t,r,`
|
|
273
|
+
`+t}catch{return"<failed to get stack>"}},w4=(r,t="",n)=>{let i=zl(r);return new mt(t+i.error.errorString,n)}});var $Ue,s6r=et(()=>{"use strict";$Ue=(r,t,n)=>t?r.default(n):r.optional()});var rCt,Cwl,Iwl,bU,Sce,vwl,Swl,_wl,bTi,R4,CTi,Btp,a6r,l6r=et(()=>{"use strict";cn();Fs();s6r();rCt=w.object({locationName:w.string(),nodeName:w.string()}).strict(),Cwl=w.enum(["None","sysCreateDate","sysUpdateDate","sysStartDate","sysEndDate","sysVersion","sysCurrentFlag"]),Iwl=w.enum(["None","surrogateKey","primaryBusinessKey"]),bU=w.enum(["SHA1","SHA256","MD5"]),Sce=w.object({stepCounter:xb,columnCounter:xb}).strict(),vwl=w.object({columnReferences:w.array(Sce.strict()),transform:w.string()}).strict(),Swl=w.object({hashAlgorithm:bU}),_wl=w.object({strictMatch:w.boolean(),values:w.array(w.string())}).strict(),bTi=r=>w.object({defaultValue:w.string().optional(),nullable:_4.default(!1),name:w.string(),dataType:w.string(),description:w.string(),columnReference:Sce,transform:w.string().optional(),sourceColumnReferences:w.array(vwl).optional(),systemColumnType:Cwl.optional(),keyColumnType:Iwl.optional(),isBusinessKey:_4.optional(),isChangeTracking:_4.optional(),primaryKey:_4.optional(),uniqueKey:_4.optional(),hashDetails:Swl.nullish(),hashedColumns:w.array(Sce.strict()).optional(),isSurrogateKey:w.boolean().optional(),config:$Ue(w.record(w.any()),r,{}),appliedColumnTests:$Ue(w.record(w.string(),w.boolean()),r,{}),acceptedValues:_wl.strict().optional(),isSystemCreateDate:_4.optional(),isSystemUpdateDate:w.boolean().optional(),isSystemStartDate:w.boolean().optional(),isSystemEndDate:w.boolean().optional(),isSystemVersion:w.boolean().optional(),isSystemCurrentFlag:w.boolean().optional()}).passthrough(),R4=bTi(!1),CTi=R4.shape.columnReference.shape.columnCounter,Btp=R4.strict(),a6r=bTi(!0)});var Owl,u6r,vTi,c6r,d6r,CU,STi,p6r,Twl,wwl,ITi,_Ti,Rwl,Bwl,OTi,xwl,Mwl,TTi,LK,wTi,RTi,Dwl,Nwl,BTi,FK,xTi,MTi,_ce,Pwl,kwl,ktp,DTi=et(()=>{"use strict";cn();Fs();l6r();s6r();Owl=w.enum(["sql","sourceInput"]),u6r="Source",vTi=["Stage","persistentStage","View","Dimension","Fact"],c6r=[...vTi,u6r],d6r=w.union([w.enum(c6r),w.coerce.string()]),CU=1,STi=w.object({database:w.string().default(""),schema:w.string().default(""),description:w.string().default(""),deployEnabled:_4.optional(),locationName:w.string(),name:w.string(),sqlType:d6r,type:Owl,version:w.literal(CU).default(CU)}),p6r=w.enum(["Before","After"]),Twl=w.object({name:w.string(),description:w.string().default(""),continueOnFailure:w.boolean(),runOrder:p6r}).strict(),wwl=Twl.extend({templateString:w.string()}).strict(),ITi=["table","view"],_Ti=r=>w.object({name:w.string(),join:w.object({joinCondition:w.string()}).strict(),dependencies:w.array(rCt),customSQL:w.object({customSQL:w.string()}).strict().optional(),noLinkRefs:w.array(rCt).default([]),aliases:$Ue(w.record(w.string(),w.string()),r,{})}).strict(),Rwl=_Ti(!1),Bwl=_Ti(!0),OTi=r=>w.object({columns:w.array(r?a6r:R4),sourceMapping:w.array(r?Bwl.strict():Rwl.strict()).nonempty(),cteString:w.string().optional(),destinationName:w.string().optional(),description:w.string().optional(),mapping:w.record(w.union([w.object({}).partial().passthrough(),w.string(),w.number(),w.boolean()])).optional(),materializationOption:w.string().optional(),appliedNodeTests:w.array(wwl).default([]),enabledColumnTestIDs:w.array(w.string()).default([])}).strict(),xwl=OTi(!1),Mwl=OTi(!0),TTi=r=>STi.extend({deployEnabled:w.boolean().default(!0),config:w.record(w.any()).default({}),isMultisource:w.boolean(),metadata:r?Mwl:xwl,materializationType:r?w.union([w.enum(ITi),w.string()]).default("table"):w.union([w.enum(ITi),w.string()]),overrideSQL:w.boolean().optional(),sqlType:w.union([w.enum(vTi),w.coerce.string()]).refine(t=>t!==u6r,{message:"'Source' is not allowed for a sql node"}),type:w.literal("sql")}).strict(),LK=TTi(!1),wTi=TTi(!0),RTi=r=>w.object({columns:w.array(r?a6r:R4)}).strict(),Dwl=RTi(!1),Nwl=RTi(!0),BTi=r=>STi.extend({deployEnabled:w.boolean().default(!0),metadata:r?Nwl:Dwl,type:w.literal("sourceInput"),sqlType:w.literal(u6r)}).strict(),FK=BTi(!1),xTi=BTi(!0),MTi=w.discriminatedUnion("type",[zi.merge(LK),zi.merge(FK)]),_ce=w.string(),Pwl=w.discriminatedUnion("type",[FK,LK]),kwl=w.object({operation:Pwl}),ktp=w.record(_ce,kwl)});var Qwl,Lwl,NTi,Fwl,zwl,gCe,f6r,A6r,wN,h6r=et(()=>{"use strict";cn();Fs();Qwl=w.string(),Lwl=w.object({backgroundColor:w.string().optional(),textColor:w.string().optional()}).strict(),NTi=["Refreshing","Failed Deploy","Failed Refresh","Deploying","Waiting","Initializing","Deleting"],Fwl=w.enum(NTi),zwl=w.string(),gCe=2,f6r=gce.extend({createdBy:w.string(),createdAt:w.coerce.date(),name:w.string(),oauthEnabled:w.boolean().default(!1),runTimeParameters:zwl.optional(),status:Fwl,connectionAccount:w.string().optional(),accessUrl:w.string().nullable().default(null),currentGitBranch:w.string().optional(),currentGitCommit:w.string().nullable().optional(),currentGitURL:w.string().optional(),currentlyRunningJobs:w.array(w.number().int()).optional(),currentlyRunningDevJobs:w.array(w.number().int()).optional(),lastCommit:w.string().nullable().optional(),description:w.string().optional(),devEnv:w.boolean().default(!1),oauthClientID:w.string().optional(),oauthClientSecret:w.string().optional(),platformKind:O4.optional()}),A6r=f6r.extend({mappingsV1:Qwl,defaultStorageMapping:w.string().nullable().optional(),deployedWorkspaces:w.record(w.object({})).optional(),tagColors:Lwl,project:w.string(),latestCommitDate:w.date().optional(),latestUncommittedFiles:w.array(w.string()).optional(),version:w.literal(gCe).default(gCe)}).strict(),wN=w.number()});var mCe=et(()=>{"use strict";DTi();h6r();l6r()});var nCt,PTi,Ktp,yCe=et(()=>{"use strict";cn();Fs();Ns();mCe();h6r();nCt=w.record(w.any()),PTi=A6r.omit({createdAt:!0,createdBy:!0}),Ktp=Ir("Workspace",fs(A6r))});var qwl,H3,IU=et(()=>{"use strict";cn();Fs();qwl=w.union([w.literal("NodeType"),w.literal("Auth"),w.literal("Totp"),w.literal("AI"),w.literal("NewWorkspace")]),H3=zi.merge(w.object({type:w.literal("core").default("core"),orgID:h2t,event:w.string(),resourceType:qwl,resourceID:w.string(),fromID:w.string(),requestedBy:g2t,requestedByUserAgent:w.string().optional()})).strict()});var iCt,Uwl,jwl,LTi,g6r,Gwl,kTi,QTi,D5,Wwl,Hwl,oCt,Vwl,Ywl,sCt,ZUe=et(()=>{"use strict";cn();Fs();iCt=w.string().refine(r=>/^[a-z0-9](?!.*--)[-a-z0-9]*[a-z0-9]$|^[a-z0-9]+$/i.test(r),r=>({message:`Invalid name "${r}". Only lowercase alphanumeric and hyphens are allowed. No consecutive or leading/trailing hyphens.`})),Uwl=/^(?!.*\s{2})(?!.*--)(?!.*__)[a-zA-Z0-9]([-_\s]*[a-zA-Z0-9])*$|^[a-z0-9]+$/i,jwl=w.string().refine(r=>Uwl.test(r),r=>({message:`Invalid package name ${r}. Only alphanumeric characters, spaces, hyphens, and underscores are allowed. No consecutive or leading/trailing spaces, hyphens, or underscores.`})),LTi=iCt,g6r="_",Gwl=w.string().refine(r=>{let[t,n]=r.split(g6r);return n?LTi.safeParse(t).success&&iCt.safeParse(n).success:!1},r=>({message:`Invalid package ID "${r}". Must be in the format <publisherID>${g6r}<packageName>`})),kTi="/",QTi="@",D5=w.string().refine(r=>r.startsWith(QTi)?r.includes(kTi):!1,r=>({message:`${r} is not a valid package ID. Should be formatted "${QTi}publisherID${kTi}packageName"`})),Wwl=w.enum(["public","private","unlisted"]),Hwl=zi.extend({version:w.string(),changeLog:w.string()}),oCt=Hwl.extend({releaseID:w.string(),storagePath:w.string(),privacy:Wwl.default("unlisted")}),Vwl=200,Ywl=w.string().max(Vwl).default(""),sCt=zi.extend({description:w.string(),overview:Ywl,packageID:D5,publisherID:LTi,name:jwl,org:w.string(),latestRelease:w.string(),tags:w.array(w.string()).default([]),featured:w.boolean().default(!1),certified:w.boolean().default(!1),platformKind:O4.default("snowflake").optional()})});var aCt=et(()=>{"use strict";ZUe()});var lCt,m6r=et(()=>{"use strict";cn();yCe();IU();Fs();aCt();lCt=zi.merge(H3.extend({type:w.literal("duplicate"),packageID:D5,releaseID:w.string(),workspaceID:wN})).strict()});var uCt,y6r=et(()=>{"use strict";cn();yCe();IU();aCt();Fs();uCt=zi.merge(H3.extend({type:w.literal("install"),packageID:D5,releaseID:w.string(),workspaceID:wN})).strict()});var cCt,E6r=et(()=>{"use strict";cn();yCe();IU();Fs();mCe();cCt=zi.merge(H3.extend({type:w.literal("update"),workspaceID:wN,nodeID:_ce,acceptedDescriptionsCount:w.number().int(),modifiedDescriptionsCount:w.number().int(),rejectedDescriptionsCount:w.number().int()})).strict()});var dCt,b6r=et(()=>{"use strict";cn();IU();Fs();dCt=zi.merge(H3.extend({type:w.literal("create"),projectID:w.string(),stepNumber:w.number(),startTime:w.date(),endTime:w.date(),status:w.string()})).strict()});var Kwl,Jwl,zTi,Xwl,ECe,bCe,$wl,Zwl,e6l,t6l,r6l,qTi,n6l,i6l,o6l,pCt,Rrp,CCe,s6l,a6l,l6l,u6l,c6l,d6l,C6r,UTi,jTi,FTi,GTi,p6l,f6l,WTi,A6l,eje,fCt,tje=et(()=>{"use strict";cn();Kwl=["sql","none"],Jwl=w.enum(["beginning","end"]),zTi=w.object({isRequired:w.boolean().optional(),enableIf:w.string().optional()}),Xwl=["columnSelector","dropdownSelector","textBox","toggleButton","tabular","columnDropdownSelector"],ECe=w.enum(Xwl),bCe=r=>zTi.extend({displayName:w.string(),type:w.literal(r),attributeName:w.string().min(1,"attributeName must be non-empty")}),$wl=bCe(ECe.Enum.columnSelector),Zwl=bCe(ECe.Enum.dropdownSelector).extend({default:w.string().optional(),options:w.array(w.string())}),e6l=bCe(ECe.Enum.textBox).extend({default:w.union([w.string(),w.number()]).optional(),syntax:w.enum(Kwl).optional()}),t6l=bCe(ECe.Enum.toggleButton).extend({default:w.boolean().optional()}),r6l=bCe(ECe.Enum.columnDropdownSelector).extend({ineligibleColumns:w.array(w.string()).optional()}),qTi=w.discriminatedUnion("type",[Zwl,e6l,t6l,r6l]),n6l=w.discriminatedUnion("type",[$wl,...qTi.options]),i6l=bCe(ECe.Enum.tabular).extend({isRequired:w.boolean(),enableIf:w.string().optional(),columns:w.array(qTi).nonempty()}),o6l=w.discriminatedUnion("type",[...n6l.options,i6l]),pCt=["businessKeyColumns","changeTrackingColumns","multisourceToggle","overrideSQLToggle","materializationSelector"],Rrp=w.enum(pCt),CCe=r=>zTi.extend({type:w.literal(r),default:w.union([w.string(),w.boolean()]).optional(),options:w.array(w.string()).optional()}),s6l=CCe("multisourceToggle"),a6l=CCe("businessKeyColumns"),l6l=CCe("changeTrackingColumns"),u6l=CCe("overrideSQLToggle"),c6l=CCe("materializationSelector"),d6l=CCe("dataVaultToggle"),C6r=w.discriminatedUnion("type",[a6l,l6l,s6l,u6l,c6l]),UTi=w.object({displayName:w.string(),transform:w.string(),dataType:w.string(),nullable:w.boolean().optional(),defaultValue:w.string().optional(),description:w.string().optional(),placement:Jwl,attributeName:w.string(),enableIf:w.string().optional()}).strict(),jTi=w.object({headerName:w.string(),attributeName:w.string(),type:w.literal("textBox")}).strict(),FTi=w.union([w.literal("table"),w.literal("view"),w.string()]),GTi=w.object({default:FTi,options:w.array(FTi)}).strict(),p6l=w.discriminatedUnion("type",[...C6r.options,...o6l.options,d6l]),f6l=w.object({groupName:w.string(),description:w.string().optional(),items:w.array(p6l),enableIf:w.string().optional()}).strict(),WTi=w.array(f6l),A6l=["default","advanced","transient"],eje=w.enum(A6l),fCt=w.object({deployStrategy:eje})});var krp,h6l,ACt,I6r,HTi,Qrp,g6l,Lrp,m6l,v6r,VTi,S6r,Frp,zrp,y6l,E6l,b6l,YTi,_6r=et(()=>{"use strict";cn();Fs();Ns();tje();mCe();mCe();krp=w.object({columns:w.array(R4.strict()),mappings:w.any(),locationName:w.string(),sourceMapping:w.any(),description:w.string().optional(),workspaceID:w.number().int().optional(),workspaceName:w.string().optional(),destinationName:w.string().optional()}).strict(),h6l=w.object({locationName:w.string(),database:w.string(),schema:w.string()}),ACt=w.record(w.string(),h6l),I6r=w.object({operationName:w.string(),destinationName:w.string().optional(),mapping:ACt,parameters:w.record(w.any()).optional(),deployStrategy:eje.optional()}),HTi=w.discriminatedUnion("type",[LK,FK]),Qrp=Ir("NodeCore",HTi),g6l=w.object({operation:MTi}),Lrp=w.record(g6l),m6l=w.record(w.object({operation:HTi})),v6r=w.discriminatedUnion("type",[fs(LK),fs(FK)]),VTi=w.record(w.object({operation:v6r})),S6r=w.discriminatedUnion("type",[wTi,xTi]),Frp=Ir("NodeCore + Defaults",fs(S6r)),zrp=Ir("Node Dictionary",m6l),y6l=LK.pick({locationName:!0,type:!0,name:!0,sqlType:!0}),E6l=FK.pick({locationName:!0,type:!0,name:!0,sqlType:!0}),b6l=w.object({operation:w.discriminatedUnion("type",[y6l,E6l])}),YTi=Ir("NodeSummary",b6l)});var C6l,hCt,O6r=et(()=>{"use strict";cn();yCe();IU();Fs();_6r();C6l=w.enum(["Accepted","Modified","Rejected"]),hCt=zi.merge(H3.extend({type:w.literal("update_node_description"),workspaceID:wN,nodeID:_ce,action:C6l})).strict()});var I6l,gCt,mCt,T6r=et(()=>{"use strict";cn();Fs();IU();I6l=w.enum(["Accepted","Modified","Rejected"]),gCt=zi.merge(H3.extend({type:w.literal("request"),fileCount:w.number(),diffContent:w.string(),charCount:w.number(),latencyMs:w.number(),aiGitRequestId:w.string()})).strict(),mCt=zi.merge(H3.extend({type:w.literal("action"),action:I6l,aiMessage:w.string(),finalMessage:w.string(),editDistance:w.number(),aiGitRequestId:w.string()})).strict()});var anp,KTi=et(()=>{"use strict";cn();m6r();IU();y6r();E6r();b6r();O6r();T6r();anp=w.discriminatedUnion("type",[H3,lCt,uCt,cCt,dCt,hCt,gCt,mCt])});var v6l,JTi,w6r=et(()=>{"use strict";cn();v6l=w.union([w.object({seconds:w.number(),nanoseconds:w.number()}),w.object({_seconds:w.number(),_nanoseconds:w.number()})]),JTi=w.union([v6l,w.date()])});var XTi,$Ti,ZTi=et(()=>{"use strict";cn();Fs();XTi=2,$Ti=zi.extend({gitUsername:w.string(),gitAuthorName:w.string(),gitAuthorEmail:w.string(),gitAccountName:w.string(),version:w.literal(XTi).default(XTi).optional()}).strict()});var ewi,twi,rwi=et(()=>{"use strict";cn();Fs();ewi=1,twi=zi.extend({version:w.literal(ewi).default(ewi)}).strict()});var nwi=et(()=>{"use strict"});var N5,S6l,rje,yCt,_6l,ECt,O6l,R6r,B6r,iwi,T6l,RN,x6r,M6r,owi,Inp,w6l,swi,D6r,vnp,Snp,nje=et(()=>{"use strict";cn();ZUe();Fs();zEe();N5=iCt,S6l=w.object({defaultStorageLocation:w.string().nullable(),isDisabled:w.boolean()}).strict(),rje=w.string(),yCt=w.object({packageVariables:rje,entities:w.object({nodeTypes:w.record(S6l)})}).strict(),_6l=w.string(),ECt=oCt.pick({version:!0,changeLog:!0,releaseID:!0}),O6l=w.object({alias:N5,packageID:D5,releaseID:w.string(),macros:_6l,version:w.string()}),R6r=O6l.extend({dependencies:w.record(N5,w.lazy(()=>R6r))}).strict(),B6r=w.record(N5,R6r),iwi=Ir("Package Dependency",R6r),T6l=sCt.pick({description:!0,overview:!0,packageID:!0,publisherID:!0,name:!0}),RN=w.object({id:w.string(),version:w.string()}).strict(),x6r=w.object({defaultStorageLocation:w.string().optional().nullable(),error:w.object({errorString:w.string()}).nullable(),nodeMetadataSpec:w.string(),templates:w.object({create:w.object({templateString:w.string()}).strict(),run:w.object({templateString:w.string()}).strict()}).strict()}).strict(),M6r=w.object({templateCounter:w.number().int().optional(),id:w.string().optional(),isDisabled:w.boolean(),metadata:x6r.strict(),name:w.string(),version:w.number().int(),packageInfo:RN.optional()}).strict(),owi=M6r.merge(zi),Inp=Ir("PackageNodeTypeUnparsed",owi),w6l=w.record(owi),swi=w.object({macros:w.string(),nodeTypes:w6l,release:ECt,dependencies:B6r,platformKind:O4.optional()}),D6r=T6l.merge(swi).strict(),vnp=D6r.extend({packageVariables:rje}),Snp=swi.extend({packageVariables:rje})});var zK,R6l,B6l,x6l,Mnp,M6l,Dnp,awi=et(()=>{"use strict";cn();wr();zEe();ZUe();nje();zK=w.object({releaseID:w.string(),packageID:D5,config:yCt}),R6l=w.object({releaseID:ECt.shape.releaseID,packageID:D5}),B6l=w.record(N5,R6l),x6l=w.object({packageID:D5,macros:w.string(),dependencies:B6l,release:ECt,packageVariables:rje}),Mnp=Ir("PackageMetadataForZip",x6l),M6l=w.object({serializedPackages:w.record(N5,zK)}),Dnp=Ir("Hydrate Serialized Packages Validator",M6l)});var lwi,D6l,N6l,P6l,k6l,Q6l,Qnp,uwi=et(()=>{"use strict";cn();nje();lwi=w.object({templateString:w.string()}),D6l=w.object({run:lwi,create:lwi}),N6l=w.object({errorString:w.string()}),P6l=w.string(),k6l=w.object({defaultStorageLocation:P6l.optional().nullable(),nodeMetadataSpec:w.string(),templates:D6l,error:N6l.nullable()}),Q6l=w.object({name:w.string(),isDisabled:w.boolean(),version:w.number(),id:w.string(),metadata:k6l,packageInfo:RN.optional()}),Qnp=w.record(w.string(),Q6l)});var ICe=et(()=>{"use strict";nwi();ZUe();awi();nje();uwi()});var N6r,L6l,F6l,vCe,bCt=et(()=>{"use strict";cn();w6r();Fs();ICe();N6r=(o=>(o.adding="adding",o.added="added",o.removing="removing",o.error="error",o))(N6r||{}),L6l=w.object({filePath:w.string()}),F6l=w.object({commit:w.string()}),vCe=zi.extend({version:w.string(),versionInfo:w.union([F6l,L6l]),status:w.nativeEnum(N6r),addedBy:w.string(),createdAt:JTi.nullable(),manifest:w.record(w.record(w.object({id:w.string(),name:w.string()})))}).strict()});var cwi,dwi=et(()=>{"use strict";tje();cwi=(r=[],t)=>t==="advanced"?!0:r.every(n=>{let i=n.items.find(a=>a.type==="materializationSelector");if(!i)return!0;let o=C6r.safeParse(i);return o.success?(o.data.options||[]).every(a=>a.toLowerCase()==="table"||a.toLowerCase()==="view"):!0})});var ICt,pwi,z6l,fwi,q6l,Awi,hwi,U6l,vCt,P6r,SCt,j6l,iip,vU,gwi,G6l,mwi,W6l,oip,ywi,H6l,CCt,V6l,_Ct,Ewi,bwi,sip,k6r,Q6r=et(()=>{"use strict";cn();Ns();bCt();Fs();tje();dwi();ICt=(r,t)=>w.object({defaultStorageLocation:w.string().optional().nullable(),templates:z6l,nodeMetadataSpec:r,error:t}),pwi=w.strictObject({templateString:w.string()}),z6l=w.strictObject({run:pwi,create:pwi}),fwi=w.string(),q6l=w.object({capitalized:w.string(),tagColor:w.string(),plural:w.string(),short:w.string().nullable().optional(),isDisabled:w.boolean().optional(),isGhostobjectColumnsEnabled:w.boolean().optional(),systemColumns:w.array(UTi).optional(),isMultisourceToggleEnabled:w.boolean().optional(),isOverrideSQLEnabled:w.boolean().optional(),fetchDataOnSuccess:w.boolean().optional(),isDMLEnabled:w.boolean().optional(),isBusinessKeysEnabled:w.boolean().optional(),isChangeTrackingEnabled:w.boolean().optional(),materializationOptions:GTi.optional(),deployStrategy:eje.optional(),isColumnResyncEnabled:w.boolean().optional(),alwaysDeploy:w.boolean().optional(),config:WTi.optional(),mappingColumns:w.array(jTi).optional(),joinTemplate:w.string().optional()}),Awi=w.strictObject({errorString:w.string()}),hwi=q6l.refine(({alwaysDeploy:r,deployStrategy:t})=>!r||r===!0&&t==="advanced",{message:"alwaysDeploy is only supported for advanced deploy strategies"}).refine(r=>{let{config:t,deployStrategy:n}=r;return cwi(t,n)},{message:"materializationSelector options other than 'table' or 'view' are only supported for advanced deploy strategies"}),U6l=w.strictObject({id:w.string(),name:w.string(),isDisabled:w.boolean(),version:w.number().int()}),vCt=U6l.extend({packageInfo:RN.optional()}).strict(),P6r=ICt(fwi,Awi),SCt=ICt(fwi,w.null()),j6l=w.union([P6r,SCt]),iip=vCt.extend({metadata:SCt}),vU=vCt.extend({metadata:j6l}),gwi=w.record(vU),G6l=ICt(w.null(),Awi),mwi=ICt(hwi,w.null()),W6l=w.union([G6l,mwi]),oip=vCt.extend({metadata:mwi}),ywi=vCt.extend({metadata:W6l}),H6l=w.record(ywi),CCt=1,V6l=zi.extend({version:w.literal(CCt).default(CCt)}).strict(),_Ct=V6l.merge(vU),Ewi=Ir("NodeSpec",fs(hwi)),bwi=Ir("NodeTypeParsed",fs(ywi)),sip=Ir("NodeTypes Parsed",fs(H6l)),k6r=Ir("AnyNodeTypeYAML",fs(vU))});var Y6l,fip,Cwi,SCe,Aip,L6r,Iwi=et(()=>{"use strict";cn();Ns();Q6r();Fs();ICe();nje();Y6l=vU.omit({packageInfo:!0}).merge(zi),fip=w.record(Y6l),Cwi=1,SCe=zi.extend({version:w.literal(Cwi).default(Cwi),contents:D6r,config:yCt,alias:N5}).strict(),Aip=w.record(N5,SCe),L6r=Ir("Installed Workspace Package",fs(SCe))});var qK,vwi,Eip,UK,Swi=et(()=>{"use strict";cn();Fs();qK=2,vwi=w.object({jobCounter:w.number().int(),name:w.string().default(""),includeSelector:xb.default(""),excludeSelector:xb.default(""),subgraphs:w.array(w.number().int()).optional(),steps:w.array(xb).optional()}),Eip=w.record(vwi),UK=gce.merge(vwi.extend({version:w.literal(qK).default(qK)})).strict()});var gf,BN,Sip,K6l,_wi=et(()=>{"use strict";cn();Fs();bCt();gf=1,BN=zi.extend({macroString:w.string().default(""),macroCounter:w.number().int().optional(),packageInfo:RN.optional(),version:w.literal(gf).default(gf).optional()}).strict(),Sip=w.record(BN),K6l=w.string().brand("WorkspaceMacroString")});var F6r,J6l,Owi,z6r,X6l,$6l,q6r,jK,Twi=et(()=>{"use strict";cn();Ns();Fs();F6r=w.object({id:w.number().int(),locationName:w.string(),database:w.string(),schema:w.string()}).strict(),J6l=w.record(F6r),Owi=Ir("MappingV0Dictionary",fs(J6l)),z6r=w.object({database:w.string().optional(),schema:w.string().optional()}).strict(),X6l=w.record(z6r),$6l=w.object({mappingDefinitions:X6l}).strict(),q6r=w.record($6l),jK=Ir("MappingV1Dictionary",fs(q6r))});var Z6l,eRl,wwi,Rwi,Bwi=et(()=>{"use strict";cn();Fs();Z6l=w.object({sampleSize:w.number().int(),aiNodeColumnDescriptionsOptedIn:w.boolean().default(!1),aiCommitMessagesOptedIn:w.boolean().default(!1)}),eRl=w.object({trialStartDate:xb.optional(),isTrial:w.boolean(),trialActivator:w.string().optional(),companyName:w.string().optional(),trialSource:w.string().optional(),trialEndDate:w.string().optional()}).strict(),wwi=1,Rwi=zi.extend({backendBulkWritingEnabled:w.boolean().optional(),columnCounter:w.coerce.number().int().default(0),connectionCounter:w.coerce.number().int().default(0),createdAt:w.custom().optional(),createdBy:w.string().optional(),updatedAt:w.custom().optional(),updatedBy:w.string().optional(),deployDashboardV2Disabled:w.boolean().optional(),devRunCounter:w.coerce.number().int().default(0),devRunsEnabled:w.boolean().optional(),docsV2Enabled:w.boolean().optional(),enableRepoUpgrade:w.boolean().optional(),folderCounter:w.coerce.number().int().optional(),gitRepoCounter:w.number().int().optional(),jobCounter:w.coerce.number().int().default(0),lastLoginTime:w.coerce.date().optional(),listenersWaitForServerResponse:w.boolean().optional(),disableProblemScanner:w.boolean().optional(),locationCounter:w.coerce.number().int().default(0),multiFactorAuthEnabled:w.boolean().optional(),orgID:w.string().optional(),id:w.string(),orgName:w.string(),preferences:Z6l.strict().optional(),presyncDisabled:w.boolean().optional(),runCounter:w.coerce.number().int().default(0),snowflakeAdvancedOptionsEnabled:w.boolean().optional(),stepCounter:w.coerce.number().int().default(0),superDebugEnabled:w.boolean().optional(),templateCounter:w.coerce.number().int().default(0),workspaceCounter:w.coerce.number().int().default(0),ignoreForDatabaseValidation:w.boolean().optional(),licenseDetails:eRl.strict().optional(),dnsName:w.string().optional(),environmentCounter:w.number().int().optional(),authServer:w.string().optional(),testingEnabled:w.boolean().optional(),coaImageOverride:w.string().optional().nullable(),version:w.literal(wwi).default(wwi),featureFlags:w.record(w.string(),w.boolean().optional()).default({})}).strict()});var tRl,rRl,OCt,xwi,Mwi,nRl,kip,Dwi=et(()=>{"use strict";cn();Fs();Ns();tRl=["okta","azure","other"],rRl=w.enum(tRl),OCt=1,xwi=w.object({authority:rRl,authServer:w.string(),authUrl:w.string().optional(),useServerTokenAuth:w.boolean().optional(),clientID:w.string(),dnsName:w.string(),issuer:w.string().optional(),audience:w.string().optional()}).strict(),Mwi=zi.merge(xwi.partial()).extend({version:w.literal(OCt).default(OCt)}).strict(),nRl=xwi.extend({id:w.string()}).strict(),kip=Ir("SSOConfig",nRl.passthrough())});var Nwi,Pwi,kwi,Qwi=et(()=>{"use strict";cn();Ns();Fs();Nwi=w.object({name:w.string()}).strict(),Pwi=Ir("Package namespace (OLD)",fs(Nwi)),kwi=zi.merge(Nwi).strict()});var iRl,Lwi,U6r,Wip,Fwi=et(()=>{"use strict";cn();Fs();Ns();iRl=w.enum(["active","deleted"]),Lwi=1,U6r=zi.extend({name:w.string(),description:w.string().optional(),platformKind:O4.optional(),gitRepoURL:w.string().optional(),status:iRl,version:w.literal(Lwi).default(Lwi),id:w.string()}).strict(),Wip=Ir("Project",fs(U6r))});var zwi,qwi,Uwi=et(()=>{"use strict";cn();Fs();zwi=1,qwi=zi.extend({gitAccountID:w.string(),version:w.literal(zwi).default(zwi)}).strict()});var j6r,jwi,G6r=et(()=>{"use strict";cn();j6r="Transaction exceeded data limit, returned a subset of rows",jwi=w.enum(["Success","Failure","Canceled",j6r])});var Gwi,oRl,sRl,aRl,Wwi,TCt,W6r=et(()=>{"use strict";cn();Fs();G6r();Gwi=w.object({locationName:w.string(),nodeName:w.string()}).strict(),oRl=w.object({values:w.array(w.any())}),sRl=w.object({type:w.string(),name:w.string()}),aRl=w.enum(["sql","sqlTest"]),Wwi=1,TCt=zi.extend({sql:w.string(),success:_4.default(!1),rows:w.array(oRl.strict()),fields:w.array(sRl.strict()),error:__i.nullable().optional(),startTime:w.coerce.date(),endTime:w.coerce.date(),name:w.string(),isRunning:w.boolean(),exportedRefs:w.array(Gwi),invalidExportedRefs:w.array(Gwi),queryResultSequence:w.object({}).passthrough().nullable().optional(),status:jwi,type:aRl,queryID:w.string().nullable().optional(),queryResultExecutionIndex:w.number(),warehouse:w.string().nullable().optional(),renderStartTime:w.coerce.date().optional(),renderEndTime:w.coerce.date().optional(),stageExecutionStartTime:w.coerce.date().nullable().optional(),stageExecutionEndTime:w.coerce.date().nullable().optional(),version:w.literal(Wwi).default(Wwi)}).strict()});var Hwi=et(()=>{"use strict";W6r()});var Vwi=et(()=>{"use strict";mCe()});var _Ce,lRl,Oce,H6r=et(()=>{"use strict";cn();_Ce=w.object({location_name:w.string(),node_name:w.string()}),lRl=w.object({invalid_ref:w.array(_Ce),invalid_ref_link:w.array(_Ce),invalid_ref_no_link:w.array(_Ce),ref:w.array(_Ce),ref_link:w.array(_Ce),ref_no_link:w.array(_Ce)}),Oce=w.record(lRl)});var Ywi=et(()=>{"use strict";H6r()});var uRl,Kwi,V6r=et(()=>{"use strict";cn();uRl=w.enum(["Basic","OAuth","KeyPair","Cloud"]),Kwi=w.object({snowflakeAccount:w.string(),snowflakeAccessUrl:w.string().nullable().optional(),snowflakeKeyPairKey:w.string().optional(),snowflakeKeyPairPass:w.string().optional(),snowflakeUsername:w.string().nullable().optional(),snowflakeRole:w.string().optional(),snowflakeWarehouse:w.string().optional(),snowflakeAuthType:uRl,platformKind:w.literal("snowflake").optional()}).strict()});var cRl,Jwi,Y6r=et(()=>{"use strict";cn();cRl=w.enum(["Token","Cloud"]),Jwi=w.object({databricksToken:w.string().optional(),databricksPath:w.string().optional(),databricksHost:w.string(),databricksAuthType:cRl,platformKind:w.literal("databricks")}).strict()});var dRl,Xwi,K6r=et(()=>{"use strict";cn();dRl=w.enum(["oauth"]),Xwi=w.object({fabricConnectionString:w.string(),fabricAuthType:dRl,platformKind:w.literal("fabric")}).strict()});var pRl,Zwi,e6i,fRl,t6i,Iop,J6r,ARl,vop,hRl,gRl,Sop,mRl,yRl,X6r,_op,Oop,r6i,Tce,n6i,ERl,bRl,CRl,IRl,i6i,o6i,s6i,vRl,a6i,Top,SRl,l6i,wop,$wi,_Rl,ORl,$6r,Z6r,eRr,tRr,Rop,u6i=et(()=>{"use strict";cn();Fs();H6r();V6r();Y6r();K6r();pRl=["initializing","rendering"],Zwi=["waitingToRun","running"],e6i=[...pRl,...Zwi],fRl=w.enum(e6i),t6i=["failed","canceled"],Iop=w.enum(t6i),J6r=["completed",...t6i],ARl=w.enum(J6r),vop=[...Zwi,...J6r],hRl=[...e6i,...J6r],gRl=w.union([fRl,ARl]),Sop=w.enum(hRl),mRl=["deploy","refresh"],yRl=[...mRl,"devRun"],X6r=w.enum(yRl),_op=w.object({compiledSQL:w.string()}).strict(),Oop=w.enum(["addedColumn","addedTable","alteredColumn","alteredTable","clonedTable","deletedColumn","deletedTable","renamedColumn"]),r6i=w.coerce.number().int(),Tce=w.record(w.string(),w.array(w.string())),n6i=w.object({toWorkspaceID:w.coerce.number().int(),environmentID:xb.optional(),deployCommit:w.string(),deployCommitMessage:w.string().optional(),fromWorkspaceData:w.object({}).optional(),dividedStepDataWithWorkspaceEdits:w.object({}).optional(),stepsInRun:w.number().int().optional(),parallelism:w.number().int().optional(),canceled:w.boolean().optional(),forcedDeployment:w.boolean().optional(),clearTargetEnvironment:w.boolean().optional()}).strict(),ERl=w.object({version:w.literal(1).optional(),dependencies:Oce.optional()}).strict(),bRl=n6i.merge(ERl).strict(),CRl=w.object({version:w.literal(2),phasedDependencies:w.object({addedTable:Tce,alteredTable:Tce,deletedTable:Tce}).strict().optional()}).strict(),IRl=n6i.merge(CRl),i6i=w.union([bRl,IRl]),o6i=w.object({environmentID:xb,workspaceID:w.number().int().optional(),refreshDescription:w.string().optional(),stepsInRun:w.number().int().optional(),jobID:r6i.optional(),includeNodesSelector:w.string().optional(),excludeNodesSelector:w.string().optional(),forceIgnoreWorkspaceStatus:_4.optional(),parallelism:w.number().int().optional(),canceled:w.boolean().optional(),executor:w.string().optional(),allStepsForRefresh:w.array(w.string()).optional()}).strict(),s6i=["create","run"],vRl=w.enum(s6i),a6i=["Node Metadata Spec",...s6i,"select"],Top=w.enum(a6i),SRl=w.record(w.number()).nullable(),l6i=w.object({canceled:_4.default(!1),environmentID:w.string(),operationType:vRl,isPreview:w.boolean(),multisourceIndexLookup:SRl,jobID:r6i.optional(),includeNodesSelector:w.string().optional(),excludeNodesSelector:w.string().optional(),parallelism:w.number().int(),stepsInRun:w.number().int().nullable().optional(),dependencies:Oce.optional()}).strict(),wop=w.union([i6i,l6i,o6i]),$wi=3,_Rl=["API","UI","CLI","fivetranAPI"],ORl=w.enum(_Rl),$6r=gce.extend({runHeartbeat:w.coerce.date().optional(),runEndTime:w.coerce.date().optional(),runStartTime:w.coerce.date().optional(),runStatus:gRl,runType:X6r,userID:w.string().optional(),runHistory:w.array(w.coerce.number().int()).default([]).optional(),runFailureReason:w.string().optional(),runTimeParameters:w.any().nullable().optional(),reRunID:w.string().optional(),kubernetesJobUuid:w.string().optional(),userCredentials:w.union([Jwi,Kwi,Xwi]).nullable().optional(),origin:ORl.default("API"),version:w.literal($wi).default($wi)}),Z6r=$6r.extend({runType:w.literal("devRun"),runDetails:l6i}).strict(),eRr=$6r.extend({runType:w.literal("deploy"),runDetails:i6i}).strict(),tRr=$6r.extend({runType:w.literal("refresh"),runDetails:o6i,hasTestFailures:w.boolean().default(!1)}).strict(),Rop=w.discriminatedUnion("runType",[Z6r,eRr,tRr])});var c6i=et(()=>{"use strict";u6i()});var ije,TRl,rRr,nRr,wRl,d6i,iRr,RRl,BRl,wCt,oRr=et(()=>{"use strict";cn();W6r();Fs();ije=TCt.omit({id:!0,queryResultExecutionIndex:!0,version:!0}).strict(),TRl=w.object({name:w.string(),isRunning:w.literal(!0)}).strict(),rRr=w.object({name:w.string(),queryResults:w.array(w.union([ije,TRl])),isRunning:w.boolean(),renderQueryResults:ije.optional()}).strict(),nRr=["waiting","queued","running","complete","error","skipped","canceled"],wRl=w.enum(nRr),d6i=2,iRr=["None","Error","Validated","Created","DataLoaded","Skipped"],RRl=w.enum(iRr),BRl=w.number().int(),wCt=zi.extend({dataResult:w.union([w.record(w.union([w.number(),w.string(),w.boolean()])),ije]).nullable().optional(),name:w.string(),queryResultSequence:rRr,runExecutionSequenceID:BRl.optional(),runResultVersion:w.literal(d6i).default(d6i),runState:wRl,stepRunState:RRl,version:w.literal(2).default(2)}).strict()});var Fop,p6i=et(()=>{"use strict";cn();oRr();oRr();Fop=wCt.omit({queryResultSequence:!0}).extend({queryResultSequence:rRr.omit({queryResults:!0}).extend({queryResults:w.array(ije)})})});var f6i=et(()=>{"use strict";Y6r()});var A6i=et(()=>{"use strict";V6r()});var h6i=et(()=>{"use strict";K6r()});var sRr,OCe,aRr,oje,g6i=et(()=>{"use strict";cn();Fs();Ns();sRr=1,OCe=w.object({folderCounter:xb,name:w.string().default(""),steps:w.array(xb).default([]),version:w.literal(sRr).default(sRr)}),aRr=Ir("SubgraphCore",fs(OCe)),oje=zi.merge(OCe.strict())});var xRl,MRl,DRl,lRr,TCe,esp,m6i=et(()=>{"use strict";cn();Fs();xRl=w.enum(["SSO","normal"]),MRl=["Admin","User"],DRl=w.enum(MRl),lRr=1,TCe=zi.extend({firstName:w.string(),lastName:w.string(),role:DRl,currentTeam:w.string(),email:w.string(),password:w.string().optional(),accountType:xRl.optional().default("normal"),hasSuperUserAccess:w.boolean().optional(),hasProvisioningAccess:w.boolean().optional(),phoneNumber:w.string().optional(),activated:w.boolean().optional(),authDisabled:w.boolean().optional(),deleted:w.boolean().optional(),version:w.literal(lRr).default(lRr)}).strict(),esp=TCe.extend({password:w.string()})});var sje,uRr,cRr,NRl,PRl,y6i,E6i=et(()=>{"use strict";cn();Fs();sje=w.enum(["admin","contributor","member"]),uRr=w.enum(["admin","architect","contributor","member"]),cRr=w.enum(["admin","reader"]),NRl=w.object({environmentRoles:w.array(cRr)}).strict(),PRl=w.object({projectRoles:w.array(uRr),environments:w.record(NRl)}).strict(),y6i=zi.extend({organizationRoles:w.array(sje),projects:w.record(PRl)}).strict()});var kRl,QRl,wCe,dRr,pRr,fRr,b6i,lsp,C6i=et(()=>{"use strict";cn();Fs();Ns();kRl=w.enum(["Basic","OAuth","KeyPair","Cloud"]),QRl=w.object({userID:w.string(),user:w.string(),role:w.string().optional(),warehouse:w.string().optional(),keyPair:w.string().optional()}).strict(),wCe=1,dRr=zi.extend({connectionType:kRl,connectionDetails:QRl,version:w.literal(wCe).default(wCe),connectionKind:w.literal("snowflake").optional()}).strict(),pRr=zi.extend({connectionType:w.union([w.literal("Cloud"),w.literal("Token")]),connectionDetails:w.object({path:w.string(),userID:w.string()}),version:w.literal(wCe).default(wCe),connectionKind:w.literal("databricks")}).strict(),fRr=zi.extend({connectionType:w.literal("oauth"),connectionDetails:w.object({userID:w.string(),connectionString:w.string().optional()}),version:w.literal(wCe).default(wCe),connectionKind:w.literal("fabric")}).strict(),b6i=w.union([dRr,pRr,fRr]),lsp=Ir("WorkspaceUser",fs(b6i))});var I6i,psp,v6i,S6i,_6i=et(()=>{"use strict";cn();Fs();I6i=w.union([w.literal("node-description"),w.literal("column-description"),w.literal("git-commit-message")]),psp=w.string(),v6i=zi.extend({id:I6i,currentVersion:w.string(),description:w.string()}),S6i=zi.extend({promptType:I6i,content:w.string()})});var O6i,ARr=et(()=>{"use strict";cn();Fs();O6i=zi.extend({lastRefreshed:w.string().datetime()})});var T6i,w6i=et(()=>{"use strict";cn();Fs();T6i=zi.merge(w.object({expiration:w.date(),encryptedData:w.string()})).strict()});var ho=et(()=>{"use strict";KTi();w6r();ZTi();rwi();Iwi();Swi();_wi();Twi();_6r();Q6r();tje();Bwi();Dwi();bCt();Qwi();Fwi();Uwi();Hwi();Vwi();Ywi();c6i();p6i();f6i();A6i();h6i();g6i();m6i();E6i();C6i();yCe();aCt();_6i();ARr();w6i()});var nap,R6i,LRl,hRr,RCt,iap,oap,RCe=et(()=>{"use strict";cn();ho();nap=w.object({hashAlgorithm:bU,hashType:w.enum(["HubHash","LinkHash","ChangeHash","Hash","None"]).optional(),hubHashes:w.array(Sce).optional()}),R6i=w.object({tableName:w.string().nullable(),columnName:w.string()}),LRl=["hasNull","isDistinct","acceptedValues"],hRr={fail:"Test failed - records matching fail condition were returned",failCOF:'Test failed with "Continue on Failure" option disabled'},RCt=w.object({name:w.string(),description:w.string(),continueOnFailure:w.boolean(),runOrder:p6r}),iap=RCt.extend({templateString:w.string()}),oap=RCt.extend({attributes:w.object({}),columnTestDefinitionID:w.union([w.enum(LRl),w.string()]),getTemplateString:w.function(w.tuple([R4]),w.string())})});var FRl,zRl,qRl,B6i,URl,x6i,gRr,mRr,jRl,M6i,dap,pap,D6i,GRl,WRl,BCt,yRr,fap,xCt=et(()=>{"use strict";cn();RCe();ho();Ns();FRl=w.object({algorithm:bU,columns:w.array(w.any())}),zRl=w.object({database:w.string(),schema:w.string(),name:w.string()}),qRl=w.array(zRl),B6i=w.object({enabled:w.boolean(),script:w.string()}),URl=w.object({create:B6i,run:B6i.optional()}),x6i=RCt.extend({templateString:w.string()}),gRr=w.object({id:w.string(),name:w.string(),location:w.object({name:w.string()}),description:w.string(),materializationType:w.string(),isMultisource:w.boolean(),override:URl,nodeType:d6r,tests:w.array(x6i)}),mRr=w.object({id:w.string(),name:w.string(),dataType:w.string(),description:w.string(),nullable:w.union([w.string(),w.boolean()]),defaultValue:w.any(),config:w.record(w.any()).optional(),tests:w.array(x6i),isBusinessKey:w.boolean().optional(),isSurrogateKey:w.boolean().optional(),isChangeTracking:w.boolean().optional(),isSystemCreateDate:w.boolean().optional(),isSystemUpdateDate:w.boolean().optional(),isSystemRecordSource:w.boolean().optional(),columnsForHash:w.array(w.string()).optional(),hashDetails:FRl.optional()}),jRl=w.object({node:gRr,column:mRr}),M6i=mRr.extend({transform:w.string(),sourceColumns:w.union([w.array(jRl),w.array(w.record(w.any()))])}),dap=Ir("HydratedSourceColumn",M6i),pap=w.record(w.union([w.boolean(),w.undefined()])),D6i=mRr.catchall(w.union([w.boolean(),w.undefined()])),GRl=w.object({node:gRr,columns:D6i}),WRl=w.object({name:w.string(),columns:w.array(M6i),join:w.string(),customSQL:w.string(),dependencies:w.array(w.union([GRl,w.record(w.any())]))}),BCt=w.object({columns:w.array(D6i),storageLocations:qRl,config:w.record(w.any()),sources:w.union([w.array(WRl),w.null()]),node:gRr,this:w.string(),parameters:nCt}),yRr=w.object({currentState:w.union([BCt,w.undefined()]),desiredState:w.union([BCt,w.undefined()]),currentMapping:w.union([ACt,w.undefined()]),desiredMapping:w.union([ACt,w.undefined()])}),fap=Ir("AdvancedHydratedMetadata",yRr)});var wce,HRl,VRl,ERr,bRr,YRl,CRr,IRr,N6i,map,KRl,yap,GK=et(()=>{"use strict";ho();cn();wce=w.object({oldName:w.string(),oldLocation:w.string()}),HRl=w.object({nullable:w.boolean().optional(),dataType:w.string().optional(),description:w.string().optional(),name:w.string()}),VRl=w.object({name:w.string(),dataType:w.string(),nullable:w.boolean(),description:w.string(),defaultValue:w.string().optional()}),ERr=wce.extend({addedColumns:w.array(VRl)}),bRr=wce.extend({alteredColumns:w.array(HRl)}),YRl=w.object({name:w.string()}),CRr=wce.extend({deletedColumns:w.array(YRl)}),IRr=wce.extend({oldColumn:R4,newColumn:R4}),N6i=[wce,CRr,bRr,ERr,IRr],map=w.union(N6i),KRl=[...N6i,fCt,w.object({})],yap=w.union(KRl)});var MN,P6i,xN,k6i,Q6i,vRr,L6i,F6i,WK,z6i,JRl,_ap,XRl,Oap,MCt,q6i,SRr,$Rl,ZRl,DCt,NCt,B4=et(()=>{"use strict";cn();ho();xCt();Ns();GK();MN="select 1 as coalesce_test",P6i="SELECT name FROM sys.databases;",xN={None:null,sysCreateDate:"isSystemCreateDate",sysUpdateDate:"isSystemUpdateDate",sysStartDate:"isSystemStartDate",sysEndDate:"isSystemEndDate",sysVersion:"isSystemVersion",sysCurrentFlag:"isSystemCurrentFlag"},k6i={[xN.sysCreateDate]:"sysCreateDate",[xN.sysUpdateDate]:"sysUpdateDate",[xN.sysStartDate]:"sysStartDate",[xN.sysEndDate]:"sysEndDate",[xN.sysVersion]:"sysVersion",[xN.sysCurrentFlag]:"sysCurrentFlag"},Q6i={isChangeTracking:"isChangeTracking",isSurrogateKey:"isSurrogateKey",isBusinessKey:"isBusinessKey",none:"None"},vRr={isBusinessKey:"primaryBusinessKey",isSurrogateKey:"surrogateKey"},L6i=r=>!!(typeof r=="object"&&r!==null&&"items"in r&&Array.isArray(r.items)),F6i=r=>r.hasOwnProperty("stepCounter"),WK=I6r.merge(BCt),z6i=I6r.merge(yRr),JRl=w.object({templateString:w.string(),macrosString:w.string(),runTimeParameters:nCt.optional(),packages:B6r,renderDepth:w.number().optional(),formatSQL:w.boolean().optional(),nodeMetadata:w.union([WK.strict(),z6i.strict()])}).strict(),_ap=Ir("RenderNodeParams",JRl),XRl=w.union([WK.merge(wce),WK.merge(CRr),WK.merge(bRr),WK.merge(ERr),WK.merge(IRr),WK.merge(fCt),WK.merge(w.object({})),z6i]),Oap=Ir("RenderDeployNodeMetadata",XRl),MCt=r=>r.toWorkspaceID!==void 0,q6i=r=>MCt(r)&&(!("version"in r)||r.version===1)&&!("phasedDependencies"in r),SRr=r=>MCt(r)&&r.version===2&&"phasedDependencies"in r&&!("dependencies"in r),$Rl=r=>r.environmentID!==void 0&&!ZRl(r),ZRl=r=>r.operationType!==void 0,DCt=r=>{if(!r?.runType||!r?.runDetails)throw new Error("Run info has invalid run type or run details!");let t=r.runType==="refresh";if(t&&!$Rl(r.runDetails))throw new Error(`Refresh run ${r.id||r.reRunID} info has invalid run details!`);return t},NCt=r=>!!r.reRunID});var eBl,DN,Mc,_Rr,U6i,tBl,PCt,ORr,Yw,Fd=et(()=>{"use strict";pr();Vu();B4();({TIMING_UTILS:eBl}=rt),DN=r=>new Promise(t=>setTimeout(t,r)),Mc=async(r,t,n,i,o="debugContext",...s)=>{let a=rt[n];a[o](t,r,"starting");let l=performance.now();try{return await i()}catch(c){let{error:{errorString:u,errorDetail:d}}=zl(c);throw a.errorContext(t,r,`
|
|
274
274
|
rejected with an error: `,u,d),c}finally{let u=performance.now()-l;a[o](t,r,`
|
|
275
275
|
completed in ${u}ms`,{name:r,"time-ms":u,params:s})}},_Rr=async(r,t,n)=>{let i=`Back-end: ${r}`;try{return await Mc(i,n,"PERFORMANCE",()=>t(r))}catch(o){let s=o;throw o.message==="Cannot read property 'currentSecretID' of undefined"&&(s=new Error("Missing password or client secret - please update your environment settings")),s}},U6i=r=>r.hasOwnProperty("seconds")&&r.hasOwnProperty("nanoseconds"),tBl=r=>!r||typeof r!="object"?(eBl.assert("invalid time in GetMsFromQueryResultTime: ",r,"typeof time:",typeof r),0):U6i(r)?r.seconds*1e3+r.nanoseconds/1e6:r.getTime(),PCt=r=>{if(U6i(r)){let t=tBl(r);return new Date(t)}else return typeof r.toDate=="function"?r.toDate():r},ORr=r=>+((performance.now()-r)/1e3).toFixed(3),Yw=(r,t)=>{let n="[performanceSummary]",i=[],o=performance.now(),s=(u,d)=>`${u}: ${ORr(d)} seconds`,a=(u,d)=>i.push(`
|
|
276
276
|
${s(u,d)};`);return{measure:async(u,d,p=!1)=>{let f=performance.now(),A=await d();return a(p?`${u} (${A})`:u,f),A},printSummary:()=>{let u=`(${s("total runtime",o)})`;rt.PERFORMANCE.infoContext(t,n,r,u,...i)}}}});var Nap,Pap,rBl,nBl,Kw,iBl,SU,_U=et(()=>{Nap=new Error("timeout while waiting for mutex to become available"),Pap=new Error("mutex already locked"),rBl=new Error("request for lock canceled"),nBl=function(r,t,n,i){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(d){try{u(i.next(d))}catch(p){a(p)}}function c(d){try{u(i.throw(d))}catch(p){a(p)}}function u(d){d.done?s(d.value):o(d.value).then(l,c)}u((i=i.apply(r,t||[])).next())})},Kw=class{constructor(t,n=rBl){this._value=t,this._cancelError=n,this._weightedQueues=[],this._weightedWaiters=[]}acquire(t=1){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return new Promise((n,i)=>{this._weightedQueues[t-1]||(this._weightedQueues[t-1]=[]),this._weightedQueues[t-1].push({resolve:n,reject:i}),this._dispatch()})}runExclusive(t,n=1){return nBl(this,void 0,void 0,function*(){let[i,o]=yield this.acquire(n);try{return yield t(i)}finally{o()}})}waitForUnlock(t=1){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return new Promise(n=>{this._weightedWaiters[t-1]||(this._weightedWaiters[t-1]=[]),this._weightedWaiters[t-1].push(n),this._dispatch()})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(t){this._value=t,this._dispatch()}release(t=1){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);this._value+=t,this._dispatch()}cancel(){this._weightedQueues.forEach(t=>t.forEach(n=>n.reject(this._cancelError))),this._weightedQueues=[]}_dispatch(){var t;for(let n=this._value;n>0;n--){let i=(t=this._weightedQueues[n-1])===null||t===void 0?void 0:t.shift();if(!i)continue;let o=this._value,s=n;this._value-=n,n=this._value+1,i.resolve([o,this._newReleaser(s)])}this._drainUnlockWaiters()}_newReleaser(t){let n=!1;return()=>{n||(n=!0,this.release(t))}}_drainUnlockWaiters(){for(let t=this._value;t>0;t--)this._weightedWaiters[t-1]&&(this._weightedWaiters[t-1].forEach(n=>n()),this._weightedWaiters[t-1]=[])}},iBl=function(r,t,n,i){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(d){try{u(i.next(d))}catch(p){a(p)}}function c(d){try{u(i.throw(d))}catch(p){a(p)}}function u(d){d.done?s(d.value):o(d.value).then(l,c)}u((i=i.apply(r,t||[])).next())})},SU=class{constructor(t){this._semaphore=new Kw(1,t)}acquire(){return iBl(this,void 0,void 0,function*(){let[,t]=yield this._semaphore.acquire();return t})}runExclusive(t){return this._semaphore.runExclusive(()=>t())}isLocked(){return this._semaphore.isLocked()}waitForUnlock(){return this._semaphore.waitForUnlock()}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}}});var G6i=I((Qap,j6i)=>{j6i.exports=require("crypto").randomBytes});var W6i=I((Lap,kCt)=>{"use strict";function oBl(r){for(var t=[],n=0;n<r.length;n++)t.indexOf(r[n])===-1&&t.push(r[n]);return t}function sBl(r){var t=new Set;return r.filter(function(n){if(!t.has(n))return t.add(n),!0})}function aBl(r){var t=[];return new Set(r).forEach(function(n){t.push(n)}),t}function lBl(){var r=!1;return new Set([!0]).forEach(function(t){r=t}),r===!0}"Set"in global?typeof Set.prototype.forEach=="function"&&lBl()?kCt.exports=aBl:kCt.exports=sBl:kCt.exports=oBl});var Y6i=I((H6i,V6i)=>{var uBl=W6i();function aje(){this.chars=""}aje.prototype.setType=function(r){var t,n="0123456789",i="abcdefghijklmnopqrstuvwxyz",o=i.toUpperCase(),s="abcdef",a="01",l="01234567";r==="alphanumeric"?t=n+i+o:r==="numeric"?t=n:r==="alphabetic"?t=i+o:r==="hex"?t=n+s:r==="binary"?t=a:r==="octal"?t=l:t=r,this.chars=t};aje.prototype.removeUnreadable=function(){var r=/[0OIl]/g;this.chars=this.chars.replace(r,"")};aje.prototype.setcapitalization=function(r){r==="uppercase"?this.chars=this.chars.toUpperCase():r==="lowercase"&&(this.chars=this.chars.toLowerCase())};aje.prototype.removeDuplicates=function(){var r=this.chars.split("");r=uBl(r),this.chars=r.join("")};V6i.exports=H6i=aje});var Z6i=I($6i=>{"use strict";var K6i=G6i(),cBl=Y6i();function dBl(r){for(;;)try{return K6i(r)}catch{continue}}function J6i(r,t,n,i,o){for(var s=t,a=0;a<r.length&&s.length<i;a++){var l=r.readUInt8(a);l<o&&(s+=n.charAt(l%n.length))}return s}function X6i(r,t,n,i,o){K6i(n,function(s,a){s&&o(s);var l=J6i(a,r,t,n,i);l.length<n?X6i(l,t,n,i,o):o(null,l)})}$6i.generate=function(r,t){var n=new cBl,i,o,s,a="";typeof r=="object"?(i=r.length||32,r.charset?n.setType(r.charset):n.setType("alphanumeric"),r.capitalization&&n.setcapitalization(r.capitalization),r.readable&&n.removeUnreadable(),n.removeDuplicates()):typeof r=="number"?(i=r,n.setType("alphanumeric")):(i=32,n.setType("alphanumeric"));var l=n.chars.length,c=256-256%l;if(!t){for(;a.length<i;){var u=dBl(Math.ceil(i*256/c));a=J6i(u,a,n.chars,i,c)}return a}X6i(a,n.chars,i,c,t)}});var tRi=I((zap,eRi)=>{eRi.exports=Z6i()});function jg(r,t,n){return(0,QCt.has)(r,t)?(0,QCt.get)(r,t):n}function Qm(r,t,n,i={},...o){if(!r){let s=rt[n],a=`ASSERTION FAILED: ${t}`;throw s.assertContext(i,a,...o),new mt(a)}}function BRr(r,t,n){if(r==null){let i=`Non-nullish assertion failed; More info: ${n}`;throw uje.assertContext(t,i),new Error(i)}else return}var rRi,QCt,pBl,fBl,uje,BCe,wRr,nRi,wa,Nu,iRi,RRr,TRr,oRi,hx,Rce,sRi,xCe,Nb,aRi,lRi,lje,uRi,xRr,cRi,MRr,dRi,pRi,Jw,fRi,ARi,hRi,gRi,mRi,Bce,yRi,LCt,Bi=et(()=>{"use strict";_U();rRi=require("child_process"),QCt=Ct(us()),pBl=Ct(tRi());wu();wr();pr();uje=rt.COMMON;BCe=(r,t,n)=>({statusCode:r,error:{errorString:t,errorDetail:n},toString:()=>`${t} DETAIL:${n} STATUS CODE:${r}`}),wRr=(c=>(c.AG_Tree_Node="ag-tree-node",c.AG_Tree_Subgraph="ag-tree-subgraph",c.AG_Tree_Job="ag-tree-job",c.AG_Tree_Parent="ag-tree-parent",c.AG_SQL_Step_Menu_Column="ag-SQL-step-menu-column",c.AG_Column_Viewer_Column="ag-column-viewer-column",c.Node_Test="node-test",c.Tabular_Config="tabular-config",c))(wRr||{}),nRi=()=>{let r=new Error().stack;if(r)return r.split(`
|
|
@@ -7202,7 +7202,7 @@ Total objects from all schemas: `,a)}catch(s){KAe.errorContext(n,i,"failed to lo
|
|
|
7202
7202
|
SELECT "${r.name}", COUNT(*)
|
|
7203
7203
|
FROM {{ ref(node.location.name, node.name)}}
|
|
7204
7204
|
GROUP BY "${r.name}"
|
|
7205
|
-
HAVING COUNT(*) > 1`,columnTestDefinitionID:"isDistinct",continueOnFailure:!0,attributes:{},runOrder:"After"}};var OMs=r=>r==="sqlTest",ent=r=>r.type.toLowerCase().includes("test"),TMs=r=>(wa("RUNNER",ent(r),`Query result type is invalid: ${r.type}`),r.rows.length>0),$Kr=r=>jg(r,["metadata","appliedNodeTests"],[]);var hNs=r=>{let t=r.appliedColumnTests||{};return Object.values(nB0).filter(n=>Object.keys(t).includes(n.columnTestDefinitionID)&&t[n.columnTestDefinitionID]===!0)};uM();Vu();ho();pr();wr();B4();var uF=rt.METADATA_HYDRATION,VN1=rt.DEPLOY,mNs=(r,t)=>r.operation.metadata?.sourceMapping?.[t]?.customSQL?.customSQL??"",oB0=r=>typeof r=="object"&&!!r?.hasOwnProperty("stepCounter")&&r.hasOwnProperty("columnCounter"),yNs=(r,t,n)=>{if(!r||!r.columnReferences)return{};{let i=r.columnReferences[0]?.stepCounter??null,o=r.columnReferences[0]?.columnCounter??null;if(!i||!o)return{};let s=t[i];if(!s)return{};let a=X_o(s.operation,o);return a?{node:bIn(s.operation,i),column:wW(a,n,s.operation.name)}:{}}},sB0=(r,t,n,i,o,s,a,l)=>{if(YMe(t))return uF.debugContext(l,`in formatHydratedMetadataMultiSources: source node ${r} does not need to be formatted for multisource`),null;{let c;return uF.debugContext(l,`in formatHydratedMetadataMultiSources: formatting for ${t.name} at specifiedIndex: ${o}`),o!==null?c=[gNs(r,t,n,i,o,s,a,l)]:c=t.metadata.sourceMapping.map((u,d)=>(uF.debug(`in formatHydratedMetadataMultiSources: formatting at index ${d}. (multisource)`),gNs(r,t,n,i,d,s,a,l))),c}},gNs=(r,t,n,i,o,s,a,l)=>{let c=kI(t.sqlType,i,"[formatHydratedSourceMetadata]"),u=gKt(t,o,s),d=t.metadata.sourceMapping[o];if(!d)throw new Ide(r,"Cannot format hydrated source metadata");return{name:d.name,columns:t.metadata.columns.map(f=>{let A=f.sourceColumnReferences?.[o],h=wW(f,c,t.name),y=dB0(t,f,n,o,c),C={...h,id:f.columnReference.columnCounter,transform:A?A.transform:"",sourceColumns:[yNs(A,n,c)]};return y!==null&&(C.hashDetails=y),C}),join:d.join.joinCondition,dependencies:xxo(r,u,n,i,a,l),customSQL:mNs({operation:t},o)}},xxo=(r,t,n,i,o,s)=>{let a=`[FormatHydratedSourceNodes]: For node ${r}: `,l=[],c=[];uF.debugContext(s,a,`Formatting source dependencies for node ${r} with ${t.length} dependencies: `,t);let u=t.map(d=>{let p=n[d];if(p){let f=i[p.operation.sqlType];return f||(uF.debugContext(s,a,`Node ${d} was listed as a source dependency, but it's node type ${p.operation.sqlType} was not found`),c.push(`[${d}: ${p.operation.sqlType}]`)),{node:bIn(p.operation,d),columns:p.operation.metadata.columns.map(A=>wW(A,f,p.operation.name))}}else return uF.debugContext(s,a,`Node ${d} was listed as a source dependency, but was not found in the nodes collection`),l.push(d),{}});if(o&&(l.length||c.length))throw new mt(`Could not format source dependencies data for node ${r}. Missing node data for the following dependencies: ${l.length?l.toString():"n/a"}. Missing node types for the following dependencies: ${c.length?c.toString():"n/a"}.`);return u},BDt=(r,t={})=>{if(!r)return{};try{return JSON.parse(r)}catch(n){uF.errorContext(t,"Failed to parse runTime parameters. Error: ",n);let{message:i}=n;throw new Error(`${mTi}: ${i}`)}},rKt=r=>typeof r=="string"?BDt(r):r,bIn=(r,t)=>{let n={operation:r},i=Ap(n,{});return i||uF.debugContext({nodeID:t},`FormatHydratedSQLNodeMetadata: Node ${t} is not a SQL node`),{id:t,name:r.name,nodeType:r.sqlType,location:{name:r.locationName},description:r.description||"",materializationType:i?n.operation.materializationType:"table",isMultisource:i?n.operation.isMultisource:!1,override:{create:{enabled:i?n.operation.overrideSQL??!1:!1,script:i?mNs(n,0):""}},tests:i?pB0(r):[]}},wW=(r,t,n)=>{let i=aB0(r);return lB0(r,i),uB0(r,i),cB0(r,i,t,n),i},aB0=r=>({id:r.columnReference.columnCounter,name:r.name,dataType:r.dataType,description:r.description,nullable:r.nullable,defaultValue:r.defaultValue??"",tests:fB0(r)}),lB0=(r,t)=>{Object.entries(Q6i).forEach(([n,i])=>{(r[n]||r.keyColumnType&&n in vRr&&r.keyColumnType===vRr[n])&&(t[i]=!0)})},uB0=(r,t)=>{for(let n in xN){let i=xN[n];i!==null&&(i in r&&r[i]||r.systemColumnType&&r.systemColumnType===k6i[i])&&(t[i]=!0)}},cB0=(r,t,n,i)=>{let o=n?.metadata?.nodeMetadataSpec?.systemColumns??null;if(o){let a=Object.fromEntries(o.map(l=>[pNs(l.displayName,i),l.attributeName]))[r.name]??null;a&&(t[a]=!0)}r.config&&Object.entries(r.config).forEach(s=>{t[s[0]]=s[1]})},dB0=(r,t,n,i,o)=>{if(!t.hashedColumns||!t.hashedColumns?.length)return null;let s=t.hashedColumns.filter(l=>!!l.columnCounter),a=[];return s.forEach(l=>{let c=r.metadata.columns.find(u=>dO(u.columnReference.columnCounter,l.columnCounter));if(c){let u=wW(c,o,r.name),d=c.sourceColumnReferences?.[i];a.push({...u,transform:d?.transform||"",sourceColumns:[yNs(d,n,o)]})}}),t.hashDetails?.hashAlgorithm?{columns:a,algorithm:t.hashDetails?.hashAlgorithm}:(uF.debugContext({columnID:t.columnReference.columnCounter},`hydrateHashColumn: Column ${t.columnReference.columnCounter} has hashDetails but no hash algorithm. This is unexpected. Returning null.`),null)},ENs=(r,t)=>{let{name:n,description:i,continueOnFailure:o,runOrder:s}=r;return{name:n,description:i,continueOnFailure:o,runOrder:s,templateString:t}},pB0=r=>$Kr(r).map(n=>ENs(n,n.templateString)),fB0=r=>hNs(r).map(n=>{let i=n.getTemplateString(r);return ENs(n,i)}),AB0=(r,t,n)=>{let o=t.metadata.columns.find(s=>dO(s.columnReference.columnCounter,r.columnCounter));return o?wW(o,n,t.name):{}},hB0=(r,t,n)=>{let i=o=>Object.fromEntries(Object.entries(o).map(([s,a])=>{if(oB0(a))return[s,AB0(a,t,n)];if(L6i(a)){let l=a.items.map(c=>i(c));return[s,{items:l}]}else return[s,a]}));return i(r)},yE=(r,t,n,i,o,s,a,l,c,u=!1)=>{let d="[hydrateMetadata]";uF.debugContext(c,`Hydrating metadata for step ${t} ${s?`at specified index ${s}`:""}`);let p=kI(r.sqlType,i,d),f=r.metadata.columns.map(R=>wW(R,p,r.name)),A=[];o&&(A=Object.values(o).map(R=>({database:R.database,schema:R.schema,name:R.locationName})));let h=r.config||{},y=hB0(h,r,p),C=sB0(t,r,n,i,s,l,u,c),v=bIn(r,t);return{columns:f,storageLocations:A,config:y,sources:C,node:v,this:"{{ ref_no_link(node.location.name, node.name) }}",parameters:a}};var qDt=(r,t)=>({operationName:r.name,destinationName:r.locationName,mapping:t});xCt();uM();var YMe=r=>r.sqlType==="Source",RKr=r=>{if(r.scratch){let{scratch:t,...n}=r;return n}return r},ANs=r=>jg(r,["operation","locationName"],"");var CNs=(r,t)=>{let n=[];if(!Ap(r,void 0))return n;let i=r?.operation?.metadata?.sourceMapping||[];for(let o of i){let s=o[t]||[];n.push(...s)}return n},yB0=r=>CNs(r,"dependencies"),EB0=r=>CNs(r,"noLinkRefs");var SDs=r=>{let t={},n=RKr(r);for(let[i,o]of Object.entries(n)){let s=yB0(o),a=EB0(o),l=Cde(o);BRr(l,zg,`Node name not found for stepCounter ${i}`);let c=ANs(o),u={nodeName:l,locationName:c};t[i]={dependencies:s,nodeRefLink:u,noLinkDependencies:a}}return t},_Ds=r=>{let t=Object.keys(r),n={};for(let o of t){let s=r[o].nodeRefLink;n[s.locationName]||(n[s.locationName]=new Set),n[s.locationName].add(s.nodeName)}let i={};return t.forEach(o=>{if(!r[o].dependencies.every(l=>n[l.locationName]?n[l.locationName].has(l.nodeName):!1)){let{nodeName:l}=r[o].nodeRefLink;i[o]=l}}),i};var bB0=rt.GRAPH;var CB0=r=>{let t={},{scratch:n,...i}=r,o=Mie(i);POe(r,(a,l)=>{switch(l.operation.type){case"sourceInput":break;case"sql":{gKt(l.operation,null,o).forEach(u=>{t[u]||(t[u]=new Set),t[u].add(a)});break}default:wa("GRAPH",!1,"Unknown step type in get edges lookup")}}),POe(r,a=>{t[a]||(t[a]=new Set)});let s={};return Object.keys(t).forEach(a=>{s[a]=Array.from(t[a]??[])}),s};var UDt=(r,t)=>{let n=[],i=[];for(let o of r){let s=t.getRef(o);s===void 0?i.push(o):n.push(s)}return{nodeIDsToAdd:n,nonExistentRefs:i}},qAe=class{constructor(t){this.allNodes=t;for(let[n,i]of Object.entries(t)){let{locationName:o,name:s}=i.operation;this.locationMap(o).set(s,n)}}locations=new Map;locationMap(t){let n=this.locations.get(t);if(n)return n;let i=new Map;return this.locations.set(t,i),i}get(t,n){return this.locationMap(t).get(n)}getRef(t){return this.get(t.locationName,t.nodeName)}getDependenciesLookup(){return(0,pit.mapValues)(this.allNodes,t=>gKt(t.operation,null,this))}},Mie=r=>new qAe(r),IB0=(r,t)=>{let n=t!==null,i=[];return r===null||YMe(r)?i:r.metadata.sourceMapping?(r.metadata.sourceMapping.forEach((s,a)=>{n&&t===a?s.dependencies.forEach(l=>{i.push(l)}):n||s.dependencies.forEach(l=>{i.push(l)})}),nS(i)):(bB0.warn("No source mapping found for sql step",r.name),nS(i))},gKt=(r,t,n)=>{let i=[],o=IB0(r,t);if(!o.length)return[];let{nodeIDsToAdd:s}=UDt(o,n);return s.forEach(a=>{!i.includes(a)&&a&&i.push(a)}),i},vB0=(r,t,n,i)=>{POe(t,o=>{let{widthOfNode:s,heightOfNode:a}=n(o);return r.setNode(o,{label:"",width:s,height:a}),!0});for(let[o,s]of(0,pit.toPairs)(i))for(let a of s)a in t&&o in t&&r.setEdge(o,a);return r};var SB0=(r,t,n,i)=>{let o=new INs.graphlib.Graph({});return o.setGraph({...r}),o.setDefaultEdgeLabel(function(){return{}}),vB0(o,n,t,i)},vNs=r=>{let t=CB0(r);return SB0({},()=>({widthOfNode:1,heightOfNode:1}),r,t)};var dDe=rt.SEARCH,_B0=new RegExp(/([\+]?){([\s\S]+)}([\+](?![\+]))?\s*/g),OB0=new RegExp(/((\w+):\s*((?:["])((([^\"\+\r\n\[/\\]+))(?:["]))|(([^\"\ \+\r\n\[/\\]+))))/g),TB0=new RegExp(/((?:[^\+\ \r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+)\s*/g),fit=(r,t)=>!!Ejr(r,t).length,SNs={name:{MatchFunction:fit,MatchList:r=>[r.operation.name]},location:{MatchFunction:fit,MatchList:r=>[r.operation.locationName]},nodeType:{MatchFunction:fit,MatchList:r=>[r.operation.sqlType]},subgraph:{MatchFunction:fit,MatchList:r=>[r?.folderCounter?.toString(),r.name]},nodeID:{MatchFunction:fit,MatchList:r=>[r]}},_Ns=r=>{let t=[];return r.forEach((n,i)=>{if(n==="+{"||n==="{"||n==="}"||n==="}+")return;let o=n,s=n.split(""),a=s[s.length-1],l=s[0];a!=="}"&&a!=="+"&&(o=o+r[i+1]),l!=="{"&&l!=="+"&&(o=r[i-1]+o),t.push(o)}),t},wB0=2,RB0=1,BB0=3,xB0=2,MB0=5,DB0=8,ONs=(r,t,n)=>{let{steps:i,gFinal:o,allSubgraphs:s,allStepTypesYAML:a}=n,l={},c=Xf()?Date.now():performance.now(),u=r;u||(u=t);let d=u.split(/(\}\+?)\s*(or|OR|\|\|)\s*(\+?\{)/).filter(A=>!(A==="OR"||A==="or"||A==="||")),p=_Ns(d);p.length||(p=[t]),dDe.debug("got unions",p,"searchStringTouse",u,"defaultSearchString",t,"steps",i),p.forEach(A=>{let h=A.split(/(\}\+?)\s*(and|AND|\,)\s*(\+?\{)/).filter(T=>!(T==="AND"||T==="and"||T===",")),y=_Ns(h),C=[];y.forEach(T=>{let R={};dDe.debug("Got intersection:",T);let N=[...T.matchAll(_B0)];if(dDe.debug("Got matches:",T,N),!N[0])return;let z=N[0][wB0],W={prefix:N[0][RB0]||"",postfix:N[0][BB0]||""};if(z.indexOf(":")>-1)[...z.trim().matchAll(OB0)].forEach(F=>{let J=F[xB0],Y=F[MB0]||F[DB0];W[J]=Y});else{let F=[...z.trim().matchAll(TB0)][0];F&&(W.name=F[0])}Nb(W);let V=W;dDe.debug("Got groups ",T,V);let $=new Set;if(V.subgraph?Object.values(s).forEach(K=>{let F=SNs.subgraph,J=F.MatchList(K);if(F.MatchFunction(J,V.subgraph)){let{steps:L}=K;L.forEach(X=>{$.add(X.toString())})}else return}):$=new Set(Object.keys(i)),V.nodeType){let{nodeType:K}=V;if(!a[K]){let F=K;Object.entries(a).forEach(([J,Y])=>{Y.name===K&&(F=J)}),V.nodeType=F}}Object.keys(i).forEach(K=>{if(!V){dDe.emerg("got an unexpected undefined value for match",u,V,T);return}let F=$.has(K);if(Object.entries(V).forEach(([J,Y])=>{let L=i[K];if(J==="nodeID"&&(L=K),J==="subgraph"){F=$.has(K);return}let X=SNs[J];if(X){let te=X.MatchList(L).filter(ne=>ne!=null);F=F&&X.MatchFunction(te,Y)}}),F){if(R[K]=!0,V.prefix&&o){let J=GKr(o,K,"predecessors");Object.values(J).forEach(Y=>[...Y.keys()].forEach(L=>R[L]=!0))}if(V.postfix&&o){let J=GKr(o,K,"successors");Object.values(J).forEach(Y=>[...Y.keys()].forEach(L=>R[L]=!0))}}}),C.push(R)}),C.length||C.push({});let v={};Object.keys(i).forEach(T=>{v[T]=!0});let O=C.reduce((T,R)=>Object.fromEntries(sRi(T,R).map(N=>[N,!0])),v);l={...l,...O}});let f=Xf()?Date.now():performance.now();return dDe.debug("Time that search took: ",f-c),l},TNs=(r,t,n)=>{let i=ONs(`${r}`,"{ * }",n),o=ONs(`${t}`,"!*",n),s=i;return Object.keys(o).forEach(a=>{delete s[a]}),{stepsResult:s}};var NP1=rt.GRAPH,mKt=async(r,t,n)=>{let i=await NB0(r,t);return pDe(t.runDetails,n,i)},NB0=async(r,t)=>{let n=new Set,i=await bDs(t.reRunID,r);for(let o of i){let s=await r.run(o).runResults.select();for(let{id:a,runState:l}of s)l==="complete"&&n.add(a)}return n},pDe=(r,t,n)=>kB0(r,t,n||new Set)||new Set(Object.keys(t.steps)),PB0=(r,t,n,i)=>({steps:r,allStepTypesYAML:dYt(n,t),allSubgraphs:i}),kB0=(r,t,n)=>{let i=null,o="",s="";if(r.jobID?{includeSelector:o,excludeSelector:s}=Pmo(t,+r.jobID):(r.includeNodesSelector||r.excludeNodesSelector)&&(o=r.includeNodesSelector||"",s=r.excludeNodesSelector||""),o||s||n.size){let a=PB0(t.steps,t.stepTypes,t.installedPackages??{},t.folders);i=new Set(QB0(o,s,a).filter(l=>!n.has(l)))}return i},QB0=(r,t,n)=>{let i=vNs(n.steps);n.gFinal=i;let o=TNs(r,t,n);return Object.keys(o.stepsResult)},Nie=r=>{let t=new Set;for(let n of Object.values(r))for(let i in n)t.add(i);return t};pr();var n$s=Ct(eKt()),i$s=Ct(us()),o$s=Ct(dte());Fs();wr();Bi();Vu();pr();wr();up();wr();Vu();B4();pr();Vu();wr();var wNs="Invalid connection: Couldn't get a valid token for Databricks user. Update user credentials in Coalesce.";cn();Ns();var LB0=w.object({table_catalog:w.string(),table_schema:w.string(),table_name:w.string(),table_type:w.string(),is_insertable_into:w.string(),commit_action:w.string(),table_owner:w.string(),comment:w.string().nullable(),created:w.string(),created_by:w.string(),last_altered:w.string(),last_altered_by:w.string(),data_source_format:w.string(),storage_sub_directory:w.string().nullable()}),yKt=class extends Lie{validator=Ir("DatabricksInformationSchemaTablesType",LB0);query(t){return`SELECT * FROM ${$g([t.database],"databricks")}.information_schema.tables where table_schema = '${t.schema}'`}convert(t){let n=t.table_type;(t.table_type==="MANAGED"||t.table_type==="MANAGED_SHALLOW_CLONE"||t.table_type==="BASE TABLE")&&(n="TABLE");let{table_name:i,...o}=t;return{kind:n,name:i,extra:o,comment:""}}},FB0=w.object({table_catalog:w.string(),table_schema:w.string(),table_name:w.string(),column_name:w.string(),ordinal_position:w.number(),column_default:w.string().nullable(),is_nullable:w.union([w.literal("YES"),w.literal("NO")]),full_data_type:w.string(),data_type:w.string(),character_maximum_length:w.number().nullable(),comment:w.string().nullable()}),EKt=class extends Fie{validator=Ir("DatabricksInformationSchemaColumnsType",FB0);query(t){return`SELECT * FROM ${$g([t.database],"databricks")}.INFORMATION_SCHEMA.COLUMNS where table_schema = "${t.schema}"`}convert(t){let{table_catalog:n,table_schema:i,table_name:o,column_name:s,comment:a,...l}=t;return{objectName:o,name:s,comment:a??"",extra:l}}queryForObject(t,n){return`${this.query(t)} and table_name = "${n}"`}},zB0=w.object({databaseName:w.string()}),bKt=class extends zie{validator=Ir("DatabricksShowSchemaRow",zB0);query(t){return`SHOW SCHEMAS IN ${$g([t.database],"databricks")}`}convert(t){return{name:t.databaseName,extra:{}}}};var qB0=rt.PLATFORM,Ait=class extends qie{constructor(n){super("databricks");this.userContext=n}getObjectsImplementation=new yKt;getColumnsImplementation=new EKt;getSchemasImplementation=new bKt;async getDatabaseNames(){return(await this.getRows("SHOW CATALOGS")).map(i=>i.catalog)}async getSchemaNames(n){let i=$g([n],"databricks");return(await this.getRows(`SHOW SCHEMAS IN ${i}`)).map(s=>s.databaseName)}async getVariantRows(n,i,o,s){let a=this.getName(s,o),l=`SELECT "${n}" FROM ${a} TABLESAMPLE (${i} ROWS)`;return this.getSQLQueryResult(l)}async getObjectRows(n,i,o){let s=`SELECT * FROM ${this.getName(n,i)} LIMIT 100`;return o&&(s=this.wrapSQLWithExplain(s)),this.getSQLQueryResult(s)}createColumnMetadata(n,i){return{name:n.name,dataType:n.extra.data_type,transform:"",nullable:n.extra.is_nullable==="YES",defaultValue:"",columnReference:{columnCounter:Ua(),stepCounter:i},description:n.comment||"",appliedColumnTests:{},acceptedValues:{strictMatch:!0,values:[]},config:{},sourceColumnReferences:[{transform:"",columnReferences:[]}]}}async describeObject(n,i,o,s){let a=Tj(i.locationName,n,"[DatabricksBasePlatform.describeObject()]"),l=this.getColumnsImplementation.queryForObject(a,i.name);return(await this.runSQL(l,Ua())).data.rows.map(u=>this.createColumnMetadata(this.getColumnsImplementation.validateAndConvert(u),s))}async testConnection(){try{await this.runSQL(MN,void 0)}catch(n){let i;throw sp(n)?n.message===wNs?i=n:i=new mt(`Could not validate connection to ${this.name}: ${n.message}`,n.detail):i=new mt(`Could not validate connection to ${this.name}`,zl(n).error.errorDetail),i}}getQueryResultFromTemplateRunResult(n,i){let o=n.runDetails.compiledSQL,s={error:null,fields:[],rows:[],success:!0,sql:o,exportedRefs:[],invalidExportedRefs:[],startTime:i,endTime:new Date,isRunning:!1,name:"",status:n?.data?.status||"Success",type:"sql",queryID:n.runDetails.queryID,warehouse:n.runDetails.warehouse};if(n.data){let a=n.data.rows.map(l=>({values:Object.values(l)}));if(n.data.rows.length){let l=Object.keys(n.data.rows[0]??{}).map(c=>({name:c,type:""}));s.fields=l}s.rows=a}if(n?.runDetails?.exported_refs.length){let a=n.runDetails.exported_refs.map(l=>({locationName:l.location_name,nodeName:l.node_name}));s.exportedRefs=nS(a)}if(n?.runDetails?.invalid_exported_refs.length){let a=n.runDetails.invalid_exported_refs.map(l=>({locationName:l.location_name,nodeName:l.node_name}));s.invalidExportedRefs=nS(a)}return s}convertObjectRowsToMaterializationKinds(n){let i="convertObjectRowsToMaterializationKinds:",o=[],s=[];for(let a of n){let l=a.name.toLowerCase();a.kind==="TABLE"?o.push(l):a.kind==="VIEW"?s.push(l):qB0.errorContext({workspaceID:this.userContext.environmentID?+this.userContext.environmentID:void 0},i,`table ${l} is of unexpected table type ${a.kind} - skipping it`)}return{tables:o,views:s}}createState(n,i,o,s){return new cKt(s,o,i,n)}wrapSQLWithExplain(n){return`EXPLAIN COST ${n}`}};var CKt=class r extends Ait{constructor(n,i){super(i);this.connection=n}async runSQL(n,i){let o=await this.connection.execute({statement:n});return vMs(o,n)}usingConnection=n=>new r(n,this.userContext);teardown(){return this.connection.teardown()}},RNs=async(r,t,n,i,o)=>{let s=await JHt.New(r,t,o,n);i&&await s.test();let a=new CKt(s.getConnection(),r);return{connectionManager:s,platform:a}},BNs=async(r,t)=>{let n=await dUo(r,t);return new CKt(n,r)};up();var IKt=class r extends dit{constructor(n,i){super(i);this.connection=n}async runSQL(n,i){let o=await this.connection.execute({sqlText:n,requestId:i||Ua()});return r.GetTemplateResultFromExecutionResult(n,o)}static GetTemplateResultFromExecutionResult(n,i){let o=i.stmt.getColumns().map(a=>({Name:a.getName(),DataType:a.getType()}));return{runDetails:{compiledSQL:n,exported_refs:[],invalid_exported_refs:[],ref_usage:{invalid_ref:[],invalid_ref_link:[],invalid_ref_no_link:[],ref:[],ref_link:[],ref_no_link:[]},queryID:i.queryID,warehouse:i.warehouse},data:{columns:o,rows:i.rows,status:i.status}}}usingConnection=n=>new r(n,this.userContext);teardown(){return this.connection.teardown()}},xNs=async(r,t,n,i,o)=>{let s=await $Ht.New(r,t,o,n);i&&await s.test();let a=new IKt(s.getConnection(),r);return{connectionManager:s,platform:a}},MNs=async(r,t,n)=>{let i=await Kws(r,t,n);return new IKt(i,r)};up();up();Ww();Fd();hf();pr();wr();var UB0=rt.RUNNER,CIn=class extends mt{constructor(){super("No current user, cannot run SQL!")}},hit=async(r,t)=>{if(!t){let n=dx().currentUser;if(!n)throw new CIn;t=await n.getIdToken(!1)}return jB0(r,t)},jB0=(r,t)=>{let n=r.userContext?.orgID,i=r.userContext.environmentID?+r.userContext.environmentID:void 0;return Mc(`Front-end/runSQL/API: ${r.templateString}`,{orgID:n,workspaceID:i},"RUNNER_BACKEND",async()=>{try{let o=await qk("/scheduler/run",r,t);if(o.data.error)throw new Error(o.data.error);return o.data}catch(o){throw UB0.error("got error on run sql with token",o),o}})};pr();wu();var IIn=rt.TESTING;async function DNs(r,t,n,i,o){let s=r.includes(ljr)?r:`${r}${ljr}`,a={clientID:n.clientID,clientSecret:n.clientSecret,connectionString:s,query:t};try{let l=await BK,c=process.env.JAVA_SERVICE_BASE_URL,u=process.env.JAVA_SERVICE_PORT;if(!c&&!Tu().isTest){let d=process.env.COALESCE_COA_CLOUD_TOKEN??null;return await hit({userContext:{connectionString:a.connectionString,kind:"fabric",credentials:n,authenticator:"oauth",environmentID:o},templateString:t,requestId:Ua()},d)}else{let d=`${c}:${u}/api/sql/v1/execute`;IIn.infoContext(i,"Fabric request sending query to JDBC");let p=await l.post(d,a);return IIn.infoContext(i,"Fabric request response received from JDBC"),HVt(p.data,a.query)}}catch(l){let c=xVe(l);throw IIn.errorContext(i,"error querying the java service",c),c}}wr();var git=class extends bre{name="fabric";userContext;constructor(t,n){super(void 0,n,Ua(),0,null,void 0),this.userContext=t}async makePendingQuery(t){let{credentials:n,connectionString:i,environmentID:o}=this.userContext,s=async()=>{if(!o)throw new mt("Missing environmentID","makePendingQuery");if(!n)throw new mt("Failed to load secrets");if(!i)throw new mt("Connection string not found");return{rows:(await DNs(i,t.statement,n,this.logContext,o.toString())).data.rows}},a={Cancel:async()=>{},coalesceQueryID:Ua(),sqlText:t.statement,promise:s(),attachThen:()=>{}};return this.runningQueries.set(a.coalesceQueryID,a),a}async teardown(){return Promise.resolve()}async resetConnection(){throw new Nd("resetConnection() is not supported in FabricConnection.")}setQueryTag=async t=>{}},vKt=async(r,t)=>new git(r,t);up();wr();Vu();B4();cn();wr();Ns();var GB0=w.object({TABLE_CATALOG:w.string(),TABLE_SCHEMA:w.string(),TABLE_NAME:w.string(),TABLE_TYPE:w.string()}),SKt=class extends Lie{validator=Ir("FabricInformationSchemaTablesType",GB0);query(t){return`SELECT * FROM ${$g([t.database],"fabric")}.INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '${t.schema}'`}convert(t){let{TABLE_TYPE:n,TABLE_NAME:i}=t;return{kind:n,name:i,comment:"",extra:t}}},WB0=w.object({table_catalog:w.string(),table_schema:w.string(),table_name:w.string(),column_name:w.string(),ordinal_position:w.number(),column_default:w.string().nullable(),is_nullable:w.union([w.literal("YES"),w.literal("NO")]),data_type:w.string(),character_maximum_length:w.number().nullable()}),_Kt=class extends Fie{validator=Ir("FabricInformationSchemaColumnsType",WB0);query(t){return`SELECT * FROM ${$g([t.database],"fabric")}.INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '${t.schema}'`}convert(t){throw new Nd("Fabric is not implemented","FabricInformationSchemaColumnsImplementation - convert")}queryForObject(t,n){return`${this.query(t)} and table_name = "${n}"`}},HB0=w.object({name:w.string()}),OKt=class extends zie{validator=Ir("FabricShowSchemaRow",HB0);query(t){return`SELECT name FROM ${$g([t.database],"fabric")}.sys.schemas;`}convert(t){return{name:t.name,extra:{}}}};var mit=class extends qie{constructor(n){super("fabric");this.userContext=n}getObjectsImplementation=new SKt;getColumnsImplementation=new _Kt;getSchemasImplementation=new OKt;async getDatabaseNames(){return(await this.getRows(P6i)).map(i=>i.name)}async getSchemaNames(n){let i=$g([n],"fabric");return(await this.getRows(`SELECT name FROM ${i}.sys.schemas;`)).map(s=>s.name)}async getVariantRows(n,i,o,s){throw new Nd("Fabric is not implemented","getVariantRows")}async getObjectRows(n,i,o){let s=`SELECT TOP 100 * FROM ${this.getName(n,i)}`;return o&&(s=this.wrapSQLWithExplain(s)),this.getSQLQueryResult(s)}mapDataTypePrecision(n){let i=n.DATA_TYPE,o="";switch(i){case"varchar":case"char":o=n.CHARACTER_MAXIMUM_LENGTH?.toString()||"8000";break;case"nvarchar":case"nchar":o=n.CHARACTER_MAXIMUM_LENGTH?.toString()||"4000";break;case"decimal":case"numeric":o=`${n.NUMERIC_PRECISION?.toString()||"38"},${n.NUMERIC_SCALE?.toString()||"0"}`;break;case"datetime2":case"datetimeoffset":case"time":o=n.DATETIME_PRECISION?.toString()||"7";break;default:return i.toUpperCase()}return`${i.toUpperCase()}(${o})`}createColumnMetadata(n,i){let o=this.mapDataTypePrecision(n);return{name:n.COLUMN_NAME,dataType:o,transform:"",nullable:n.IS_NULLABLE==="YES",defaultValue:"",columnReference:{columnCounter:Ua(),stepCounter:i},description:"",appliedColumnTests:{},acceptedValues:{strictMatch:!0,values:[]},config:{},sourceColumnReferences:[{transform:"",columnReferences:[]}]}}async describeObject(n,i,o,s){let{database:a,schema:l}=Tj(i.locationName,n,"[FabricBasePlatform.describeObject()]"),u=`SELECT COLUMN_NAME, DATA_TYPE, IS_NULLABLE, CHARACTER_MAXIMUM_LENGTH, NUMERIC_PRECISION, NUMERIC_SCALE, DATETIME_PRECISION FROM ${$g([a],"fabric")}.INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '${i.name}' AND TABLE_SCHEMA = '${l}'`;return(await this.runSQL(u,Ua())).data.rows.map(p=>this.createColumnMetadata(p,s))}async testConnection(){try{await this.runSQL(MN,void 0)}catch(n){throw sp(n)?new mt(`Could not validate connection to ${this.name}: ${n.message}`,n.detail):new mt(`Could not validate connection to ${this.name}`,w4(n).detail)}}getQueryResultFromTemplateRunResult(n,i){let o=n.runDetails.compiledSQL,s={error:null,fields:[],rows:[],success:!0,sql:o,exportedRefs:[],invalidExportedRefs:[],startTime:i,endTime:new Date,isRunning:!1,name:"",status:n.data.status??"Success",type:"sql",queryID:n.runDetails.queryID,warehouse:n.runDetails.warehouse};if(n.data.rows.length){let a=n.data.rows.map(c=>({values:Object.values(c)})),l=Object.keys(n.data.rows[0]??{}).map(c=>({name:c,type:""}));s.fields=l,s.rows=a}if(n?.runDetails?.exported_refs.length){let a=n.runDetails.exported_refs.map(l=>({locationName:l.location_name,nodeName:l.node_name}));s.exportedRefs=nS(a)}if(n?.runDetails?.invalid_exported_refs.length){let a=n.runDetails.invalid_exported_refs.map(l=>({locationName:l.location_name,nodeName:l.node_name}));s.invalidExportedRefs=nS(a)}return s}convertObjectRowsToMaterializationKinds(n){throw new Nd("Fabric is not implemented","convertObjectRowsToMaterializationKinds")}createState(n,i,o,s){return new dKt(s,o,i,n)}wrapSQLWithExplain(n){return`SELECT TOP 0 * FROM (${n}) as CoalesceWrapped`}};wr();var vIn=class extends _ie{async createConnection(){return await vKt(this.userContext,this.logContext)}async updateFromResult(t){}async assertConnected(){}async setup(){this.newConnection()}newConnection(){return new git(this.userContext,this.logContext)}},TKt=class r extends Oie{static async New(t,n,i,o){let s=new r(t,n,i,o);return await s.setup(),s}NewSlotMember(t,n){return new vIn(t,n,{...this.userContext},this.teamInfo,this.logContext)}test(){throw new Nd("test() is not implemented in FabricConnectionManager.")}};var wKt=class r extends mit{constructor(n,i){super(i);this.connection=n}async runSQL(n,i){let o=await this.connection.execute({statement:n});return HVt(o,n)}usingConnection=n=>new r(n,this.userContext);teardown(){return Promise.resolve()}},NNs=async(r,t,n,i)=>{let o=await TKt.New(r,t,i,n),s=new wKt(o.getConnection(),r);return{connectionManager:o,platform:s}},PNs=async(r,t)=>{let n=await vKt(r,t);return new wKt(n,r)};var RKt=(r,t,n)=>{switch(r.kind){case"snowflake":return MNs(r,t,n);case"databricks":return BNs(r,t);case"fabric":return PNs(r,t);default:throw new mt(`Cannot create backend for '${r.kind}' connection kind`)}},NW=(r,t,n,i,o)=>{switch(r.kind){case"snowflake":return xNs(r,t,n,i,o);case"databricks":return RNs(r,t,n,i,o);case"fabric":return NNs(r,t,n,o);default:throw new mt(`Cannot create backend for '${r.kind}' connection kind`)}};wr();rS();pr();_U();rEe();var Urd=Ct(us());wr();aK();XY();aK();Lg();wu();var z90=Ct(rFs());_U();XY();aK();Lg();tbe();Ww();Bi();wu();EU();hf();EUe();wr();cn();var q90=w.enum(["org-settings-read","org-settings-write","org-users-read","org-users-write","org-users-create","org-users-delete","org-userRoles-read","org-userRoles-write","org-projects-create"]),U90=w.enum(["project-settings-read","project-summary-read","project-settings-write","project-delete","project-members-read","project-members-add","project-members-write","project-members-remove","project-workspaces-create","project-documentation-read","project-environments-create","project-workspace-settings-read","project-workspace-settings-write","project-workspaces-delete","project-workspace-jobs-create","project-workspace-jobs-read","project-workspace-jobs-write","project-workspace-jobs-delete","project-workspace-macros-create","project-workspace-macros-read","project-workspace-macros-write","project-workspace-macros-delete","project-workspace-node-types-create","project-workspace-node-types-read","project-workspace-node-types-write","project-workspace-node-types-delete","project-workspace-nodes-create","project-workspace-nodes-read","project-workspace-nodes-write","project-workspace-nodes-delete","project-workspace-packages-create","project-workspace-packages-read","project-workspace-packages-write","project-workspace-packages-delete","project-workspace-sql-run","project-workspace-subgraphs-create","project-workspace-subgraphs-read","project-workspace-subgraphs-write","project-workspace-subgraphs-delete"]),j90=w.enum(["env-run-results-read","env-run-job","env-delete","env-deploy","env-refresh","env-settings-read","env-summary-read","env-settings-write","env-documentation-read","env-members-read","env-members-add","env-members-write","env-members-remove","env-job-schedule-write","env-job-schedule-read"]),k_n={reader:{permissions:["env-run-results-read","env-summary-read","env-documentation-read","env-job-schedule-read"],inheritedEnvironmentRoles:[]},admin:{permissions:[...j90.options],inheritedEnvironmentRoles:["reader"]}},Q_n={member:{permissions:["project-summary-read","project-members-read","project-workspace-sql-run"],inheritedProjectRoles:[],inheritedEnvironmentRoles:[]},contributor:{permissions:["project-settings-read","project-members-read","project-workspaces-create","project-workspace-settings-read","project-workspace-settings-write","project-workspaces-delete","project-workspace-jobs-read","project-workspace-macros-read","project-workspace-node-types-read","project-workspace-nodes-create","project-workspace-nodes-read","project-workspace-nodes-write","project-workspace-nodes-delete","project-workspace-packages-read","project-workspace-subgraphs-read","project-documentation-read","env-delete","env-documentation-read"],inheritedProjectRoles:["member"],inheritedEnvironmentRoles:["reader"]},architect:{permissions:["project-workspace-jobs-create","project-workspace-jobs-write","project-workspace-jobs-delete","project-workspace-macros-create","project-workspace-macros-write","project-workspace-macros-delete","project-workspace-node-types-create","project-workspace-node-types-write","project-workspace-node-types-delete","project-workspace-packages-create","project-workspace-packages-write","project-workspace-packages-delete","project-workspace-subgraphs-create","project-workspace-subgraphs-write","project-workspace-subgraphs-delete"],inheritedProjectRoles:["contributor"],inheritedEnvironmentRoles:["reader"]},admin:{permissions:[...U90.options],inheritedProjectRoles:["architect"],inheritedEnvironmentRoles:["admin"]}},L_n={member:{permissions:["org-users-read"],inheritedOrganizationRoles:[],inheritedProjectRoles:[]},contributor:{permissions:["org-projects-create"],inheritedOrganizationRoles:["member"],inheritedProjectRoles:[]},admin:{permissions:[...q90.options],inheritedOrganizationRoles:["contributor"],inheritedProjectRoles:["admin"]}},CJt=r=>{let t=k_n[r],n=new Set(t.permissions);for(let i of t.inheritedEnvironmentRoles)CJt(i).forEach(o=>n.add(o));return Array.from(n)},RDe=r=>{let t=Q_n[r],n=new Set(t.permissions);for(let i of t.inheritedProjectRoles)RDe(i).forEach(o=>n.add(o));for(let i of t.inheritedEnvironmentRoles)CJt(i).forEach(o=>n.add(o));return Array.from(n)},bJt=r=>{let t=L_n[r],n=new Set(t.permissions);for(let i of t.inheritedOrganizationRoles)bJt(i).forEach(o=>n.add(o));for(let i of t.inheritedProjectRoles)RDe(i).forEach(o=>n.add(o));return Array.from(n)},nFs={admin:bJt("admin"),contributor:bJt("contributor"),member:bJt("member")},iFs={admin:RDe("admin"),architect:RDe("architect"),contributor:RDe("contributor"),member:RDe("member")},oFs={admin:CJt("admin"),reader:CJt("reader")};var Nit=class{throwIfOrgPermissionDenied(t,n=!1){if(!this.hasOrgPermission(t))throw n?new Wu("The requested resource is unavailable"):new P3("Permission denied",`Permission '${t}' is required to perform this operation.`)}throwIfProjectPermissionDenied(t,n,i=!1){if(!this.hasProjectPermission(t,n))throw i?new Wu("The requested resource is unavailable"):new P3("Permission denied",`Permission '${t}' is required to perform this operation.`)}throwIfEnvironmentPermissionDenied(t,n,i,o=!1){if(!this.hasEnvironmentPermission(t,n,i))throw o?new Wu("The requested resource is unavailable"):new P3("Permission denied",`'Permission ${t}' is required to perform this operation.`)}},IJt=class r extends Nit{constructor(n,i){super();this.userRoles=n;this.hasSuperUserAccess=i;this.userPermissions=this.ConstructPermissionsFromRoles(n)}userPermissions;hasOrgPermissionInternal(n){return this.userPermissions.organizationPermissions?.has(n)}hasOrgPermission(n){return this.hasSuperUserAccess||this.hasOrgPermissionInternal(n)}hasProjectPermissionInternal(n,i){return this.userPermissions.projects[i]?.projectPermissions?.has(n)}hasProjectPermission(n,i){return this.hasSuperUserAccess||this.hasOrgPermissionInternal(n)||this.hasProjectPermissionInternal(n,i)}hasEnvironmentPermissionInternal(n,i,o){return this.userPermissions.projects[i]?.environments[o]?.environmentPermissions?.has(n)}hasEnvironmentPermission(n,i,o){return this.hasSuperUserAccess||this.hasOrgPermissionInternal(n)||this.hasProjectPermissionInternal(n,i)||this.hasEnvironmentPermissionInternal(n,i,o)}ConstructPermissionsFromRoles(n){return n?{organizationPermissions:r.ConstructOrgPermissionsFromRoles(n.organizationRoles),projects:r.ConstructProjectsPermissionsFromRoles(n.projects)}:{organizationPermissions:new Set,projects:{}}}static ConstructEnvironmentPermissionsFromRoles(n){let i=new Set;return n.environmentRoles.forEach(o=>{oFs[o].forEach(s=>{i.add(s)})}),i}static ConstructEnvironmentPermissionObjectsFromRoles(n){let i={};return Object.entries(n).forEach(([o,s])=>{i[o]={environmentPermissions:r.ConstructEnvironmentPermissionsFromRoles(s)}}),i}static ConstructProjectPermissionsFromRoles(n){let i=new Set;return n.projectRoles.forEach(s=>{iFs[s].forEach(a=>{i.add(a)})}),{projectPermissions:i,environments:r.ConstructEnvironmentPermissionObjectsFromRoles(n.environments)}}static ConstructProjectsPermissionsFromRoles(n){let i={};return Object.keys(n).forEach(o=>{i[o]=this.ConstructProjectPermissionsFromRoles(n[o])}),i}static ConstructOrgPermissionsFromRoles(n){let i=new Set;return n.forEach(o=>{nFs[o].forEach(s=>{i.add(s)})}),i}};var vJt=class extends Nit{constructor(n,i){super();this.userRole=n;this.hasSuperUserAccess=i}hasOrgPermission(n){if(this.hasSuperUserAccess||this.userRole==="Admin")return!0;{let i=["org-settings-read","org-settings-write","org-users-read","org-users-write","org-users-delete"];return this.userRole==="User"&&!i.includes(n)}}hasProjectPermission(n,i){return!!this.userRole||this.hasSuperUserAccess}hasEnvironmentPermission(n,i,o){return!!this.userRole||this.hasSuperUserAccess}};rS();Bi();var G90=(r,t)=>{if(t=t===void 0?ARi:t,r<=1||t<=1)return 1;let s=r<=4?r:Math.floor((r-4)/2)+4;return Math.min(s,t)},qW=(r,t)=>{let n=G90(r,t),i=hRi,o=i<n?i:n;return o>0?o:1};B4();Fd();hf();Bi();pr();tx();var Qq1=rt.FIREBASE;var sFs=(r,t)=>A4r(r.collection("users").doc(t)).then(n=>({fbEmail:"",fbRole:n.data()?.role,fbUserID:t,fbTeamID:n.data()?.currentTeam,fbOrg:n.data()?.organization,fbFullName:`${n.data()?.firstName} ${n.data()?.lastName}`,fbFirstName:n.data()?.firstName,fbLastName:n.data()?.lastName,fbHasSuperUserAccess:n.data()?.hasSuperUserAccess,fbActivated:n.data()?.activated??!0,hasProvisioningAccess:n.data()?.hasProvisioningAccess}));var aFs=async(r,t)=>(await r.org(t).fetch()).superDebugEnabled;pr();Bi();hf();cn();ho();var zq1=xp({firstName:Ka(),lastName:Ka(),role:Ka(),currentTeam:Ka(),email:Ka(),password:Ka().optional(),accountType:Ka(),hasSuperUserAccess:A8().optional(),hasProvisioningAccess:A8().optional(),activated:A8().optional(),authDisabled:A8().optional(),multiFactorIsEnabled:A8().optional(),deleted:A8().optional()}),qq1=TCe.pick({firstName:!0,lastName:!0,role:!0,currentTeam:!0,email:!0,activated:!0,password:!0,accountType:!0,version:!0}).extend({rbacRole:sje.optional()}).strict(),Uq1=TCe.partial({firstName:!0,lastName:!0,role:!0,activated:!0,authDisabled:!0,deleted:!0,phoneNumber:!0,currentTeam:!0,email:!0,accountType:!0}).strict();var lFs=Ct(us());ho();wu();ho();pr();var H90=Ct(us()),Jq1=rt.FIREBASE,V90=()=>{let r={organization:{},project:{},environment:{}},t=(n,i,o)=>{for(let s of o(n))i.add(s),t(s,i,o);return Array.from(i)};for(let n of sje.options)r.organization[n]=t(n,new Set,i=>L_n[i].inheritedOrganizationRoles);for(let n of uRr.options)r.project[n]=t(n,new Set,i=>Q_n[i].inheritedProjectRoles);for(let n of cRr.options)r.environment[n]=t(n,new Set,i=>k_n[i].inheritedEnvironmentRoles);return r},Xq1=V90();tx();var hU1=rt.FIREBASE,gU1=rt.USER_ACTIVATION;var mU1=new RegExp("(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[!\"#$%&'()*+,-.\\/:;<=>?@[\\]\\^_`{|}~]).{8,}");var uFs=r=>{let t={canUpdateUser:["Admin"],canUpdateSuperUser:[],canResetPassword:["Admin"]};return n=>t[n].includes(r)};ho();pr();var SFs=Ct(P4(),1);K3();var ohe=Ct(z_n(),1),bFs=Ct(nGt(),1),H_n=Ct(P4(),1),V_n=Ct(H_t(),1),CFs=require("stream"),Y_n=Ct(j_n(),1);K3();var AFs=Ct(require("querystring"),1),hFs=require("stream");var gFs=Ct(NDe(),1);var l70=!0;function EB(r,t){return{options:typeof r=="object"?r:{},callback:typeof r=="function"?r:t}}function W_n(r){return Object.keys(r).map(t=>[t,r[t]])}function u70(r){return encodeURIComponent(r).replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())}function kit(r,t){return r.split("/").map(u70).join(t?"%2F":"/")}function mFs(r){return AFs.stringify(r,"&","=",{encodeURIComponent:t=>kit(t,!0)})}function yFs(r){let t={};for(let n of Object.keys(r)){let i=r[n];n=n.toLowerCase(),t[n]=i}return t}function EFs(r){return JSON.stringify(r).replace(/[\u0080-\uFFFF]/g,t=>"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4))}function wJt(r){return r instanceof Date||r instanceof RegExp?r:Array.isArray(r)?r.map(wJt):r instanceof Object?Object.keys(r).reduce((t,n)=>{let i=n[0].toLocaleLowerCase()+n.slice(1).replace(/([A-Z]+)/g,(o,s)=>`_${s.toLowerCase()}`);return t[i]=wJt(r[n]),t},Object()):r}function ihe(r,t=!1,n="",i=""){let o=r.getUTCFullYear(),s=r.getUTCMonth()+1,a=r.getUTCDate(),l=r.getUTCHours(),c=r.getUTCMinutes(),u=r.getUTCSeconds(),d=`${o.toString().padStart(4,"0")}${n}${s.toString().padStart(2,"0")}${n}${a.toString().padStart(2,"0")}`;return t&&(d=`${d}T${l.toString().padStart(2,"0")}${i}${c.toString().padStart(2,"0")}${i}${u.toString().padStart(2,"0")}Z`),d}function EF(){return globalThis.Deno&&globalThis.Deno.version&&globalThis.Deno.version.deno?`gl-deno/${globalThis.Deno.version.deno}`:`gl-node/${process.versions.node}`}function bF(){let r=(0,gFs.getPackageJSON)();return r.name.replace("@google-cloud","gcloud-node").replace("/","-")+"/"+r.version}function eoe(){return l70?"ESM":"CJS"}var Pit=class extends hFs.PassThrough{constructor(){super(...arguments),this.shouldEmitReading=!0,this.shouldEmitWriting=!0}_read(t){this.shouldEmitReading&&(this.emit("reading"),this.shouldEmitReading=!1),super._read(t)}_write(t,n,i){this.shouldEmitWriting&&(this.emit("writing"),this.shouldEmitWriting=!1),process.nextTick(()=>{super._write(t,n,i)})}_final(t){this.shouldEmitReading&&(this.emit("reading"),this.shouldEmitReading=!1),this.shouldEmitWriting&&(this.emit("writing"),this.shouldEmitWriting=!1),t(null)}};var IFs=Ct($J(),1),vFs=Ct(NDe(),1);var c70=(0,vFs.getPackageJSON)(),n3=Symbol.for("GCCL_GCS_CMD"),RJt={timeout:6e4,gzip:!0,forever:!0,pool:{maxSockets:1/0}},d70=!0,p70=3,jW=class r extends Error{constructor(t){if(super(),typeof t!="object"){this.message=t||"";return}let n=t;this.code=n.code,this.errors=n.errors,this.response=n.response;try{this.errors=JSON.parse(this.response.body).error.errors}catch{this.errors=n.errors}this.message=r.createMultiErrorMessage(n,this.errors),Error.captureStackTrace(this)}static createMultiErrorMessage(t,n){let i=new Set;t.message&&i.add(t.message),n&&n.length?n.forEach(({message:s})=>i.add(s)):t.response&&t.response.body?i.add(bFs.decode(t.response.body.toString())):t.message||i.add("A failure occurred during this request.");let o=Array.from(i);return o.length>1&&(o=o.map((s,a)=>` ${a+1}. ${s}`),o.unshift("Multiple errors occurred during the request. Please see the `errors` array for complete details.\n"),o.push(`
|
|
7205
|
+
HAVING COUNT(*) > 1`,columnTestDefinitionID:"isDistinct",continueOnFailure:!0,attributes:{},runOrder:"After"}};var OMs=r=>r==="sqlTest",ent=r=>r.type.toLowerCase().includes("test"),TMs=r=>(wa("RUNNER",ent(r),`Query result type is invalid: ${r.type}`),r.rows.length>0),$Kr=r=>jg(r,["metadata","appliedNodeTests"],[]);var hNs=r=>{let t=r.appliedColumnTests||{};return Object.values(nB0).filter(n=>Object.keys(t).includes(n.columnTestDefinitionID)&&t[n.columnTestDefinitionID]===!0)};uM();Vu();ho();pr();wr();B4();var uF=rt.METADATA_HYDRATION,VN1=rt.DEPLOY,mNs=(r,t)=>r.operation.metadata?.sourceMapping?.[t]?.customSQL?.customSQL??"",oB0=r=>typeof r=="object"&&!!r?.hasOwnProperty("stepCounter")&&r.hasOwnProperty("columnCounter"),yNs=(r,t,n)=>{if(!r||!r.columnReferences)return{};{let i=r.columnReferences[0]?.stepCounter??null,o=r.columnReferences[0]?.columnCounter??null;if(!i||!o)return{};let s=t[i];if(!s)return{};let a=X_o(s.operation,o);return a?{node:bIn(s.operation,i),column:wW(a,n,s.operation.name)}:{}}},sB0=(r,t,n,i,o,s,a,l)=>{if(YMe(t))return uF.debugContext(l,`in formatHydratedMetadataMultiSources: source node ${r} does not need to be formatted for multisource`),null;{let c;return uF.debugContext(l,`in formatHydratedMetadataMultiSources: formatting for ${t.name} at specifiedIndex: ${o}`),o!==null?c=[gNs(r,t,n,i,o,s,a,l)]:c=(t.isMultisource?t.metadata.sourceMapping:[t.metadata.sourceMapping[0]]).map((d,p)=>(uF.debug(`in formatHydratedMetadataMultiSources: formatting at index ${p}. (multisource)`),gNs(r,t,n,i,p,s,a,l))),c}},gNs=(r,t,n,i,o,s,a,l)=>{let c=kI(t.sqlType,i,"[formatHydratedSourceMetadata]"),u=gKt(t,o,s),d=t.metadata.sourceMapping[o];if(!d)throw new Ide(r,"Cannot format hydrated source metadata");return{name:d.name,columns:t.metadata.columns.map(f=>{let A=f.sourceColumnReferences?.[o],h=wW(f,c,t.name),y=dB0(t,f,n,o,c),C={...h,id:f.columnReference.columnCounter,transform:A?A.transform:"",sourceColumns:[yNs(A,n,c)]};return y!==null&&(C.hashDetails=y),C}),join:d.join.joinCondition,dependencies:xxo(r,u,n,i,a,l),customSQL:mNs({operation:t},o)}},xxo=(r,t,n,i,o,s)=>{let a=`[FormatHydratedSourceNodes]: For node ${r}: `,l=[],c=[];uF.debugContext(s,a,`Formatting source dependencies for node ${r} with ${t.length} dependencies: `,t);let u=t.map(d=>{let p=n[d];if(p){let f=i[p.operation.sqlType];return f||(uF.debugContext(s,a,`Node ${d} was listed as a source dependency, but it's node type ${p.operation.sqlType} was not found`),c.push(`[${d}: ${p.operation.sqlType}]`)),{node:bIn(p.operation,d),columns:p.operation.metadata.columns.map(A=>wW(A,f,p.operation.name))}}else return uF.debugContext(s,a,`Node ${d} was listed as a source dependency, but was not found in the nodes collection`),l.push(d),{}});if(o&&(l.length||c.length))throw new mt(`Could not format source dependencies data for node ${r}. Missing node data for the following dependencies: ${l.length?l.toString():"n/a"}. Missing node types for the following dependencies: ${c.length?c.toString():"n/a"}.`);return u},BDt=(r,t={})=>{if(!r)return{};try{return JSON.parse(r)}catch(n){uF.errorContext(t,"Failed to parse runTime parameters. Error: ",n);let{message:i}=n;throw new Error(`${mTi}: ${i}`)}},rKt=r=>typeof r=="string"?BDt(r):r,bIn=(r,t)=>{let n={operation:r},i=Ap(n,{});return i||uF.debugContext({nodeID:t},`FormatHydratedSQLNodeMetadata: Node ${t} is not a SQL node`),{id:t,name:r.name,nodeType:r.sqlType,location:{name:r.locationName},description:r.description||"",materializationType:i?n.operation.materializationType:"table",isMultisource:i?n.operation.isMultisource:!1,override:{create:{enabled:i?n.operation.overrideSQL??!1:!1,script:i?mNs(n,0):""}},tests:i?pB0(r):[]}},wW=(r,t,n)=>{let i=aB0(r);return lB0(r,i),uB0(r,i),cB0(r,i,t,n),i},aB0=r=>({id:r.columnReference.columnCounter,name:r.name,dataType:r.dataType,description:r.description,nullable:r.nullable,defaultValue:r.defaultValue??"",tests:fB0(r)}),lB0=(r,t)=>{Object.entries(Q6i).forEach(([n,i])=>{(r[n]||r.keyColumnType&&n in vRr&&r.keyColumnType===vRr[n])&&(t[i]=!0)})},uB0=(r,t)=>{for(let n in xN){let i=xN[n];i!==null&&(i in r&&r[i]||r.systemColumnType&&r.systemColumnType===k6i[i])&&(t[i]=!0)}},cB0=(r,t,n,i)=>{let o=n?.metadata?.nodeMetadataSpec?.systemColumns??null;if(o){let a=Object.fromEntries(o.map(l=>[pNs(l.displayName,i),l.attributeName]))[r.name]??null;a&&(t[a]=!0)}r.config&&Object.entries(r.config).forEach(s=>{t[s[0]]=s[1]})},dB0=(r,t,n,i,o)=>{if(!t.hashedColumns||!t.hashedColumns?.length)return null;let s=t.hashedColumns.filter(l=>!!l.columnCounter),a=[];return s.forEach(l=>{let c=r.metadata.columns.find(u=>dO(u.columnReference.columnCounter,l.columnCounter));if(c){let u=wW(c,o,r.name),d=c.sourceColumnReferences?.[i];a.push({...u,transform:d?.transform||"",sourceColumns:[yNs(d,n,o)]})}}),t.hashDetails?.hashAlgorithm?{columns:a,algorithm:t.hashDetails?.hashAlgorithm}:(uF.debugContext({columnID:t.columnReference.columnCounter},`hydrateHashColumn: Column ${t.columnReference.columnCounter} has hashDetails but no hash algorithm. This is unexpected. Returning null.`),null)},ENs=(r,t)=>{let{name:n,description:i,continueOnFailure:o,runOrder:s}=r;return{name:n,description:i,continueOnFailure:o,runOrder:s,templateString:t}},pB0=r=>$Kr(r).map(n=>ENs(n,n.templateString)),fB0=r=>hNs(r).map(n=>{let i=n.getTemplateString(r);return ENs(n,i)}),AB0=(r,t,n)=>{let o=t.metadata.columns.find(s=>dO(s.columnReference.columnCounter,r.columnCounter));return o?wW(o,n,t.name):{}},hB0=(r,t,n)=>{let i=o=>Object.fromEntries(Object.entries(o).map(([s,a])=>{if(oB0(a))return[s,AB0(a,t,n)];if(L6i(a)){let l=a.items.map(c=>i(c));return[s,{items:l}]}else return[s,a]}));return i(r)},yE=(r,t,n,i,o,s,a,l,c,u=!1)=>{let d="[hydrateMetadata]";uF.debugContext(c,`Hydrating metadata for step ${t} ${s?`at specified index ${s}`:""}`);let p=kI(r.sqlType,i,d),f=r.metadata.columns.map(R=>wW(R,p,r.name)),A=[];o&&(A=Object.values(o).map(R=>({database:R.database,schema:R.schema,name:R.locationName})));let h=r.config||{},y=hB0(h,r,p),C=sB0(t,r,n,i,s,l,u,c),v=bIn(r,t);return{columns:f,storageLocations:A,config:y,sources:C,node:v,this:"{{ ref_no_link(node.location.name, node.name) }}",parameters:a}};var qDt=(r,t)=>({operationName:r.name,destinationName:r.locationName,mapping:t});xCt();uM();var YMe=r=>r.sqlType==="Source",RKr=r=>{if(r.scratch){let{scratch:t,...n}=r;return n}return r},ANs=r=>jg(r,["operation","locationName"],"");var CNs=(r,t)=>{let n=[];if(!Ap(r,void 0))return n;let i=r?.operation?.metadata?.sourceMapping||[];for(let o of i){let s=o[t]||[];n.push(...s)}return n},yB0=r=>CNs(r,"dependencies"),EB0=r=>CNs(r,"noLinkRefs");var SDs=r=>{let t={},n=RKr(r);for(let[i,o]of Object.entries(n)){let s=yB0(o),a=EB0(o),l=Cde(o);BRr(l,zg,`Node name not found for stepCounter ${i}`);let c=ANs(o),u={nodeName:l,locationName:c};t[i]={dependencies:s,nodeRefLink:u,noLinkDependencies:a}}return t},_Ds=r=>{let t=Object.keys(r),n={};for(let o of t){let s=r[o].nodeRefLink;n[s.locationName]||(n[s.locationName]=new Set),n[s.locationName].add(s.nodeName)}let i={};return t.forEach(o=>{if(!r[o].dependencies.every(l=>n[l.locationName]?n[l.locationName].has(l.nodeName):!1)){let{nodeName:l}=r[o].nodeRefLink;i[o]=l}}),i};var bB0=rt.GRAPH;var CB0=r=>{let t={},{scratch:n,...i}=r,o=Mie(i);POe(r,(a,l)=>{switch(l.operation.type){case"sourceInput":break;case"sql":{gKt(l.operation,null,o).forEach(u=>{t[u]||(t[u]=new Set),t[u].add(a)});break}default:wa("GRAPH",!1,"Unknown step type in get edges lookup")}}),POe(r,a=>{t[a]||(t[a]=new Set)});let s={};return Object.keys(t).forEach(a=>{s[a]=Array.from(t[a]??[])}),s};var UDt=(r,t)=>{let n=[],i=[];for(let o of r){let s=t.getRef(o);s===void 0?i.push(o):n.push(s)}return{nodeIDsToAdd:n,nonExistentRefs:i}},qAe=class{constructor(t){this.allNodes=t;for(let[n,i]of Object.entries(t)){let{locationName:o,name:s}=i.operation;this.locationMap(o).set(s,n)}}locations=new Map;locationMap(t){let n=this.locations.get(t);if(n)return n;let i=new Map;return this.locations.set(t,i),i}get(t,n){return this.locationMap(t).get(n)}getRef(t){return this.get(t.locationName,t.nodeName)}getDependenciesLookup(){return(0,pit.mapValues)(this.allNodes,t=>gKt(t.operation,null,this))}},Mie=r=>new qAe(r),IB0=(r,t)=>{let n=t!==null,i=[];return r===null||YMe(r)?i:r.metadata.sourceMapping?(r.metadata.sourceMapping.forEach((s,a)=>{n&&t===a?s.dependencies.forEach(l=>{i.push(l)}):n||s.dependencies.forEach(l=>{i.push(l)})}),nS(i)):(bB0.warn("No source mapping found for sql step",r.name),nS(i))},gKt=(r,t,n)=>{let i=[],o=IB0(r,t);if(!o.length)return[];let{nodeIDsToAdd:s}=UDt(o,n);return s.forEach(a=>{!i.includes(a)&&a&&i.push(a)}),i},vB0=(r,t,n,i)=>{POe(t,o=>{let{widthOfNode:s,heightOfNode:a}=n(o);return r.setNode(o,{label:"",width:s,height:a}),!0});for(let[o,s]of(0,pit.toPairs)(i))for(let a of s)a in t&&o in t&&r.setEdge(o,a);return r};var SB0=(r,t,n,i)=>{let o=new INs.graphlib.Graph({});return o.setGraph({...r}),o.setDefaultEdgeLabel(function(){return{}}),vB0(o,n,t,i)},vNs=r=>{let t=CB0(r);return SB0({},()=>({widthOfNode:1,heightOfNode:1}),r,t)};var dDe=rt.SEARCH,_B0=new RegExp(/([\+]?){([\s\S]+)}([\+](?![\+]))?\s*/g),OB0=new RegExp(/((\w+):\s*((?:["])((([^\"\+\r\n\[/\\]+))(?:["]))|(([^\"\ \+\r\n\[/\\]+))))/g),TB0=new RegExp(/((?:[^\+\ \r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+)\s*/g),fit=(r,t)=>!!Ejr(r,t).length,SNs={name:{MatchFunction:fit,MatchList:r=>[r.operation.name]},location:{MatchFunction:fit,MatchList:r=>[r.operation.locationName]},nodeType:{MatchFunction:fit,MatchList:r=>[r.operation.sqlType]},subgraph:{MatchFunction:fit,MatchList:r=>[r?.folderCounter?.toString(),r.name]},nodeID:{MatchFunction:fit,MatchList:r=>[r]}},_Ns=r=>{let t=[];return r.forEach((n,i)=>{if(n==="+{"||n==="{"||n==="}"||n==="}+")return;let o=n,s=n.split(""),a=s[s.length-1],l=s[0];a!=="}"&&a!=="+"&&(o=o+r[i+1]),l!=="{"&&l!=="+"&&(o=r[i-1]+o),t.push(o)}),t},wB0=2,RB0=1,BB0=3,xB0=2,MB0=5,DB0=8,ONs=(r,t,n)=>{let{steps:i,gFinal:o,allSubgraphs:s,allStepTypesYAML:a}=n,l={},c=Xf()?Date.now():performance.now(),u=r;u||(u=t);let d=u.split(/(\}\+?)\s*(or|OR|\|\|)\s*(\+?\{)/).filter(A=>!(A==="OR"||A==="or"||A==="||")),p=_Ns(d);p.length||(p=[t]),dDe.debug("got unions",p,"searchStringTouse",u,"defaultSearchString",t,"steps",i),p.forEach(A=>{let h=A.split(/(\}\+?)\s*(and|AND|\,)\s*(\+?\{)/).filter(T=>!(T==="AND"||T==="and"||T===",")),y=_Ns(h),C=[];y.forEach(T=>{let R={};dDe.debug("Got intersection:",T);let N=[...T.matchAll(_B0)];if(dDe.debug("Got matches:",T,N),!N[0])return;let z=N[0][wB0],W={prefix:N[0][RB0]||"",postfix:N[0][BB0]||""};if(z.indexOf(":")>-1)[...z.trim().matchAll(OB0)].forEach(F=>{let J=F[xB0],Y=F[MB0]||F[DB0];W[J]=Y});else{let F=[...z.trim().matchAll(TB0)][0];F&&(W.name=F[0])}Nb(W);let V=W;dDe.debug("Got groups ",T,V);let $=new Set;if(V.subgraph?Object.values(s).forEach(K=>{let F=SNs.subgraph,J=F.MatchList(K);if(F.MatchFunction(J,V.subgraph)){let{steps:L}=K;L.forEach(X=>{$.add(X.toString())})}else return}):$=new Set(Object.keys(i)),V.nodeType){let{nodeType:K}=V;if(!a[K]){let F=K;Object.entries(a).forEach(([J,Y])=>{Y.name===K&&(F=J)}),V.nodeType=F}}Object.keys(i).forEach(K=>{if(!V){dDe.emerg("got an unexpected undefined value for match",u,V,T);return}let F=$.has(K);if(Object.entries(V).forEach(([J,Y])=>{let L=i[K];if(J==="nodeID"&&(L=K),J==="subgraph"){F=$.has(K);return}let X=SNs[J];if(X){let te=X.MatchList(L).filter(ne=>ne!=null);F=F&&X.MatchFunction(te,Y)}}),F){if(R[K]=!0,V.prefix&&o){let J=GKr(o,K,"predecessors");Object.values(J).forEach(Y=>[...Y.keys()].forEach(L=>R[L]=!0))}if(V.postfix&&o){let J=GKr(o,K,"successors");Object.values(J).forEach(Y=>[...Y.keys()].forEach(L=>R[L]=!0))}}}),C.push(R)}),C.length||C.push({});let v={};Object.keys(i).forEach(T=>{v[T]=!0});let O=C.reduce((T,R)=>Object.fromEntries(sRi(T,R).map(N=>[N,!0])),v);l={...l,...O}});let f=Xf()?Date.now():performance.now();return dDe.debug("Time that search took: ",f-c),l},TNs=(r,t,n)=>{let i=ONs(`${r}`,"{ * }",n),o=ONs(`${t}`,"!*",n),s=i;return Object.keys(o).forEach(a=>{delete s[a]}),{stepsResult:s}};var NP1=rt.GRAPH,mKt=async(r,t,n)=>{let i=await NB0(r,t);return pDe(t.runDetails,n,i)},NB0=async(r,t)=>{let n=new Set,i=await bDs(t.reRunID,r);for(let o of i){let s=await r.run(o).runResults.select();for(let{id:a,runState:l}of s)l==="complete"&&n.add(a)}return n},pDe=(r,t,n)=>kB0(r,t,n||new Set)||new Set(Object.keys(t.steps)),PB0=(r,t,n,i)=>({steps:r,allStepTypesYAML:dYt(n,t),allSubgraphs:i}),kB0=(r,t,n)=>{let i=null,o="",s="";if(r.jobID?{includeSelector:o,excludeSelector:s}=Pmo(t,+r.jobID):(r.includeNodesSelector||r.excludeNodesSelector)&&(o=r.includeNodesSelector||"",s=r.excludeNodesSelector||""),o||s||n.size){let a=PB0(t.steps,t.stepTypes,t.installedPackages??{},t.folders);i=new Set(QB0(o,s,a).filter(l=>!n.has(l)))}return i},QB0=(r,t,n)=>{let i=vNs(n.steps);n.gFinal=i;let o=TNs(r,t,n);return Object.keys(o.stepsResult)},Nie=r=>{let t=new Set;for(let n of Object.values(r))for(let i in n)t.add(i);return t};pr();var n$s=Ct(eKt()),i$s=Ct(us()),o$s=Ct(dte());Fs();wr();Bi();Vu();pr();wr();up();wr();Vu();B4();pr();Vu();wr();var wNs="Invalid connection: Couldn't get a valid token for Databricks user. Update user credentials in Coalesce.";cn();Ns();var LB0=w.object({table_catalog:w.string(),table_schema:w.string(),table_name:w.string(),table_type:w.string(),is_insertable_into:w.string(),commit_action:w.string(),table_owner:w.string(),comment:w.string().nullable(),created:w.string(),created_by:w.string(),last_altered:w.string(),last_altered_by:w.string(),data_source_format:w.string(),storage_sub_directory:w.string().nullable()}),yKt=class extends Lie{validator=Ir("DatabricksInformationSchemaTablesType",LB0);query(t){return`SELECT * FROM ${$g([t.database],"databricks")}.information_schema.tables where table_schema = '${t.schema}'`}convert(t){let n=t.table_type;(t.table_type==="MANAGED"||t.table_type==="MANAGED_SHALLOW_CLONE"||t.table_type==="BASE TABLE")&&(n="TABLE");let{table_name:i,...o}=t;return{kind:n,name:i,extra:o,comment:""}}},FB0=w.object({table_catalog:w.string(),table_schema:w.string(),table_name:w.string(),column_name:w.string(),ordinal_position:w.number(),column_default:w.string().nullable(),is_nullable:w.union([w.literal("YES"),w.literal("NO")]),full_data_type:w.string(),data_type:w.string(),character_maximum_length:w.number().nullable(),comment:w.string().nullable()}),EKt=class extends Fie{validator=Ir("DatabricksInformationSchemaColumnsType",FB0);query(t){return`SELECT * FROM ${$g([t.database],"databricks")}.INFORMATION_SCHEMA.COLUMNS where table_schema = "${t.schema}"`}convert(t){let{table_catalog:n,table_schema:i,table_name:o,column_name:s,comment:a,...l}=t;return{objectName:o,name:s,comment:a??"",extra:l}}queryForObject(t,n){return`${this.query(t)} and table_name = "${n}"`}},zB0=w.object({databaseName:w.string()}),bKt=class extends zie{validator=Ir("DatabricksShowSchemaRow",zB0);query(t){return`SHOW SCHEMAS IN ${$g([t.database],"databricks")}`}convert(t){return{name:t.databaseName,extra:{}}}};var qB0=rt.PLATFORM,Ait=class extends qie{constructor(n){super("databricks");this.userContext=n}getObjectsImplementation=new yKt;getColumnsImplementation=new EKt;getSchemasImplementation=new bKt;async getDatabaseNames(){return(await this.getRows("SHOW CATALOGS")).map(i=>i.catalog)}async getSchemaNames(n){let i=$g([n],"databricks");return(await this.getRows(`SHOW SCHEMAS IN ${i}`)).map(s=>s.databaseName)}async getVariantRows(n,i,o,s){let a=this.getName(s,o),l=`SELECT "${n}" FROM ${a} TABLESAMPLE (${i} ROWS)`;return this.getSQLQueryResult(l)}async getObjectRows(n,i,o){let s=`SELECT * FROM ${this.getName(n,i)} LIMIT 100`;return o&&(s=this.wrapSQLWithExplain(s)),this.getSQLQueryResult(s)}createColumnMetadata(n,i){return{name:n.name,dataType:n.extra.data_type,transform:"",nullable:n.extra.is_nullable==="YES",defaultValue:"",columnReference:{columnCounter:Ua(),stepCounter:i},description:n.comment||"",appliedColumnTests:{},acceptedValues:{strictMatch:!0,values:[]},config:{},sourceColumnReferences:[{transform:"",columnReferences:[]}]}}async describeObject(n,i,o,s){let a=Tj(i.locationName,n,"[DatabricksBasePlatform.describeObject()]"),l=this.getColumnsImplementation.queryForObject(a,i.name);return(await this.runSQL(l,Ua())).data.rows.map(u=>this.createColumnMetadata(this.getColumnsImplementation.validateAndConvert(u),s))}async testConnection(){try{await this.runSQL(MN,void 0)}catch(n){let i;throw sp(n)?n.message===wNs?i=n:i=new mt(`Could not validate connection to ${this.name}: ${n.message}`,n.detail):i=new mt(`Could not validate connection to ${this.name}`,zl(n).error.errorDetail),i}}getQueryResultFromTemplateRunResult(n,i){let o=n.runDetails.compiledSQL,s={error:null,fields:[],rows:[],success:!0,sql:o,exportedRefs:[],invalidExportedRefs:[],startTime:i,endTime:new Date,isRunning:!1,name:"",status:n?.data?.status||"Success",type:"sql",queryID:n.runDetails.queryID,warehouse:n.runDetails.warehouse};if(n.data){let a=n.data.rows.map(l=>({values:Object.values(l)}));if(n.data.rows.length){let l=Object.keys(n.data.rows[0]??{}).map(c=>({name:c,type:""}));s.fields=l}s.rows=a}if(n?.runDetails?.exported_refs.length){let a=n.runDetails.exported_refs.map(l=>({locationName:l.location_name,nodeName:l.node_name}));s.exportedRefs=nS(a)}if(n?.runDetails?.invalid_exported_refs.length){let a=n.runDetails.invalid_exported_refs.map(l=>({locationName:l.location_name,nodeName:l.node_name}));s.invalidExportedRefs=nS(a)}return s}convertObjectRowsToMaterializationKinds(n){let i="convertObjectRowsToMaterializationKinds:",o=[],s=[];for(let a of n){let l=a.name.toLowerCase();a.kind==="TABLE"?o.push(l):a.kind==="VIEW"?s.push(l):qB0.errorContext({workspaceID:this.userContext.environmentID?+this.userContext.environmentID:void 0},i,`table ${l} is of unexpected table type ${a.kind} - skipping it`)}return{tables:o,views:s}}createState(n,i,o,s){return new cKt(s,o,i,n)}wrapSQLWithExplain(n){return`EXPLAIN COST ${n}`}};var CKt=class r extends Ait{constructor(n,i){super(i);this.connection=n}async runSQL(n,i){let o=await this.connection.execute({statement:n});return vMs(o,n)}usingConnection=n=>new r(n,this.userContext);teardown(){return this.connection.teardown()}},RNs=async(r,t,n,i,o)=>{let s=await JHt.New(r,t,o,n);i&&await s.test();let a=new CKt(s.getConnection(),r);return{connectionManager:s,platform:a}},BNs=async(r,t)=>{let n=await dUo(r,t);return new CKt(n,r)};up();var IKt=class r extends dit{constructor(n,i){super(i);this.connection=n}async runSQL(n,i){let o=await this.connection.execute({sqlText:n,requestId:i||Ua()});return r.GetTemplateResultFromExecutionResult(n,o)}static GetTemplateResultFromExecutionResult(n,i){let o=i.stmt.getColumns().map(a=>({Name:a.getName(),DataType:a.getType()}));return{runDetails:{compiledSQL:n,exported_refs:[],invalid_exported_refs:[],ref_usage:{invalid_ref:[],invalid_ref_link:[],invalid_ref_no_link:[],ref:[],ref_link:[],ref_no_link:[]},queryID:i.queryID,warehouse:i.warehouse},data:{columns:o,rows:i.rows,status:i.status}}}usingConnection=n=>new r(n,this.userContext);teardown(){return this.connection.teardown()}},xNs=async(r,t,n,i,o)=>{let s=await $Ht.New(r,t,o,n);i&&await s.test();let a=new IKt(s.getConnection(),r);return{connectionManager:s,platform:a}},MNs=async(r,t,n)=>{let i=await Kws(r,t,n);return new IKt(i,r)};up();up();Ww();Fd();hf();pr();wr();var UB0=rt.RUNNER,CIn=class extends mt{constructor(){super("No current user, cannot run SQL!")}},hit=async(r,t)=>{if(!t){let n=dx().currentUser;if(!n)throw new CIn;t=await n.getIdToken(!1)}return jB0(r,t)},jB0=(r,t)=>{let n=r.userContext?.orgID,i=r.userContext.environmentID?+r.userContext.environmentID:void 0;return Mc(`Front-end/runSQL/API: ${r.templateString}`,{orgID:n,workspaceID:i},"RUNNER_BACKEND",async()=>{try{let o=await qk("/scheduler/run",r,t);if(o.data.error)throw new Error(o.data.error);return o.data}catch(o){throw UB0.error("got error on run sql with token",o),o}})};pr();wu();var IIn=rt.TESTING;async function DNs(r,t,n,i,o){let s=r.includes(ljr)?r:`${r}${ljr}`,a={clientID:n.clientID,clientSecret:n.clientSecret,connectionString:s,query:t};try{let l=await BK,c=process.env.JAVA_SERVICE_BASE_URL,u=process.env.JAVA_SERVICE_PORT;if(!c&&!Tu().isTest){let d=process.env.COALESCE_COA_CLOUD_TOKEN??null;return await hit({userContext:{connectionString:a.connectionString,kind:"fabric",credentials:n,authenticator:"oauth",environmentID:o},templateString:t,requestId:Ua()},d)}else{let d=`${c}:${u}/api/sql/v1/execute`;IIn.infoContext(i,"Fabric request sending query to JDBC");let p=await l.post(d,a);return IIn.infoContext(i,"Fabric request response received from JDBC"),HVt(p.data,a.query)}}catch(l){let c=xVe(l);throw IIn.errorContext(i,"error querying the java service",c),c}}wr();var git=class extends bre{name="fabric";userContext;constructor(t,n){super(void 0,n,Ua(),0,null,void 0),this.userContext=t}async makePendingQuery(t){let{credentials:n,connectionString:i,environmentID:o}=this.userContext,s=async()=>{if(!o)throw new mt("Missing environmentID","makePendingQuery");if(!n)throw new mt("Failed to load secrets");if(!i)throw new mt("Connection string not found");return{rows:(await DNs(i,t.statement,n,this.logContext,o.toString())).data.rows}},a={Cancel:async()=>{},coalesceQueryID:Ua(),sqlText:t.statement,promise:s(),attachThen:()=>{}};return this.runningQueries.set(a.coalesceQueryID,a),a}async teardown(){return Promise.resolve()}async resetConnection(){throw new Nd("resetConnection() is not supported in FabricConnection.")}setQueryTag=async t=>{}},vKt=async(r,t)=>new git(r,t);up();wr();Vu();B4();cn();wr();Ns();var GB0=w.object({TABLE_CATALOG:w.string(),TABLE_SCHEMA:w.string(),TABLE_NAME:w.string(),TABLE_TYPE:w.string()}),SKt=class extends Lie{validator=Ir("FabricInformationSchemaTablesType",GB0);query(t){return`SELECT * FROM ${$g([t.database],"fabric")}.INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '${t.schema}'`}convert(t){let{TABLE_TYPE:n,TABLE_NAME:i}=t;return{kind:n,name:i,comment:"",extra:t}}},WB0=w.object({table_catalog:w.string(),table_schema:w.string(),table_name:w.string(),column_name:w.string(),ordinal_position:w.number(),column_default:w.string().nullable(),is_nullable:w.union([w.literal("YES"),w.literal("NO")]),data_type:w.string(),character_maximum_length:w.number().nullable()}),_Kt=class extends Fie{validator=Ir("FabricInformationSchemaColumnsType",WB0);query(t){return`SELECT * FROM ${$g([t.database],"fabric")}.INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '${t.schema}'`}convert(t){throw new Nd("Fabric is not implemented","FabricInformationSchemaColumnsImplementation - convert")}queryForObject(t,n){return`${this.query(t)} and table_name = "${n}"`}},HB0=w.object({name:w.string()}),OKt=class extends zie{validator=Ir("FabricShowSchemaRow",HB0);query(t){return`SELECT name FROM ${$g([t.database],"fabric")}.sys.schemas;`}convert(t){return{name:t.name,extra:{}}}};var mit=class extends qie{constructor(n){super("fabric");this.userContext=n}getObjectsImplementation=new SKt;getColumnsImplementation=new _Kt;getSchemasImplementation=new OKt;async getDatabaseNames(){return(await this.getRows(P6i)).map(i=>i.name)}async getSchemaNames(n){let i=$g([n],"fabric");return(await this.getRows(`SELECT name FROM ${i}.sys.schemas;`)).map(s=>s.name)}async getVariantRows(n,i,o,s){throw new Nd("Fabric is not implemented","getVariantRows")}async getObjectRows(n,i,o){let s=`SELECT TOP 100 * FROM ${this.getName(n,i)}`;return o&&(s=this.wrapSQLWithExplain(s)),this.getSQLQueryResult(s)}mapDataTypePrecision(n){let i=n.DATA_TYPE,o="";switch(i){case"varchar":case"char":o=n.CHARACTER_MAXIMUM_LENGTH?.toString()||"8000";break;case"nvarchar":case"nchar":o=n.CHARACTER_MAXIMUM_LENGTH?.toString()||"4000";break;case"decimal":case"numeric":o=`${n.NUMERIC_PRECISION?.toString()||"38"},${n.NUMERIC_SCALE?.toString()||"0"}`;break;case"datetime2":case"datetimeoffset":case"time":o=n.DATETIME_PRECISION?.toString()||"7";break;default:return i.toUpperCase()}return`${i.toUpperCase()}(${o})`}createColumnMetadata(n,i){let o=this.mapDataTypePrecision(n);return{name:n.COLUMN_NAME,dataType:o,transform:"",nullable:n.IS_NULLABLE==="YES",defaultValue:"",columnReference:{columnCounter:Ua(),stepCounter:i},description:"",appliedColumnTests:{},acceptedValues:{strictMatch:!0,values:[]},config:{},sourceColumnReferences:[{transform:"",columnReferences:[]}]}}async describeObject(n,i,o,s){let{database:a,schema:l}=Tj(i.locationName,n,"[FabricBasePlatform.describeObject()]"),u=`SELECT COLUMN_NAME, DATA_TYPE, IS_NULLABLE, CHARACTER_MAXIMUM_LENGTH, NUMERIC_PRECISION, NUMERIC_SCALE, DATETIME_PRECISION FROM ${$g([a],"fabric")}.INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '${i.name}' AND TABLE_SCHEMA = '${l}'`;return(await this.runSQL(u,Ua())).data.rows.map(p=>this.createColumnMetadata(p,s))}async testConnection(){try{await this.runSQL(MN,void 0)}catch(n){throw sp(n)?new mt(`Could not validate connection to ${this.name}: ${n.message}`,n.detail):new mt(`Could not validate connection to ${this.name}`,w4(n).detail)}}getQueryResultFromTemplateRunResult(n,i){let o=n.runDetails.compiledSQL,s={error:null,fields:[],rows:[],success:!0,sql:o,exportedRefs:[],invalidExportedRefs:[],startTime:i,endTime:new Date,isRunning:!1,name:"",status:n.data.status??"Success",type:"sql",queryID:n.runDetails.queryID,warehouse:n.runDetails.warehouse};if(n.data.rows.length){let a=n.data.rows.map(c=>({values:Object.values(c)})),l=Object.keys(n.data.rows[0]??{}).map(c=>({name:c,type:""}));s.fields=l,s.rows=a}if(n?.runDetails?.exported_refs.length){let a=n.runDetails.exported_refs.map(l=>({locationName:l.location_name,nodeName:l.node_name}));s.exportedRefs=nS(a)}if(n?.runDetails?.invalid_exported_refs.length){let a=n.runDetails.invalid_exported_refs.map(l=>({locationName:l.location_name,nodeName:l.node_name}));s.invalidExportedRefs=nS(a)}return s}convertObjectRowsToMaterializationKinds(n){throw new Nd("Fabric is not implemented","convertObjectRowsToMaterializationKinds")}createState(n,i,o,s){return new dKt(s,o,i,n)}wrapSQLWithExplain(n){return`SELECT TOP 0 * FROM (${n}) as CoalesceWrapped`}};wr();var vIn=class extends _ie{async createConnection(){return await vKt(this.userContext,this.logContext)}async updateFromResult(t){}async assertConnected(){}async setup(){this.newConnection()}newConnection(){return new git(this.userContext,this.logContext)}},TKt=class r extends Oie{static async New(t,n,i,o){let s=new r(t,n,i,o);return await s.setup(),s}NewSlotMember(t,n){return new vIn(t,n,{...this.userContext},this.teamInfo,this.logContext)}test(){throw new Nd("test() is not implemented in FabricConnectionManager.")}};var wKt=class r extends mit{constructor(n,i){super(i);this.connection=n}async runSQL(n,i){let o=await this.connection.execute({statement:n});return HVt(o,n)}usingConnection=n=>new r(n,this.userContext);teardown(){return Promise.resolve()}},NNs=async(r,t,n,i)=>{let o=await TKt.New(r,t,i,n),s=new wKt(o.getConnection(),r);return{connectionManager:o,platform:s}},PNs=async(r,t)=>{let n=await vKt(r,t);return new wKt(n,r)};var RKt=(r,t,n)=>{switch(r.kind){case"snowflake":return MNs(r,t,n);case"databricks":return BNs(r,t);case"fabric":return PNs(r,t);default:throw new mt(`Cannot create backend for '${r.kind}' connection kind`)}},NW=(r,t,n,i,o)=>{switch(r.kind){case"snowflake":return xNs(r,t,n,i,o);case"databricks":return RNs(r,t,n,i,o);case"fabric":return NNs(r,t,n,o);default:throw new mt(`Cannot create backend for '${r.kind}' connection kind`)}};wr();rS();pr();_U();rEe();var Urd=Ct(us());wr();aK();XY();aK();Lg();wu();var z90=Ct(rFs());_U();XY();aK();Lg();tbe();Ww();Bi();wu();EU();hf();EUe();wr();cn();var q90=w.enum(["org-settings-read","org-settings-write","org-users-read","org-users-write","org-users-create","org-users-delete","org-userRoles-read","org-userRoles-write","org-projects-create"]),U90=w.enum(["project-settings-read","project-summary-read","project-settings-write","project-delete","project-members-read","project-members-add","project-members-write","project-members-remove","project-workspaces-create","project-documentation-read","project-environments-create","project-workspace-settings-read","project-workspace-settings-write","project-workspaces-delete","project-workspace-jobs-create","project-workspace-jobs-read","project-workspace-jobs-write","project-workspace-jobs-delete","project-workspace-macros-create","project-workspace-macros-read","project-workspace-macros-write","project-workspace-macros-delete","project-workspace-node-types-create","project-workspace-node-types-read","project-workspace-node-types-write","project-workspace-node-types-delete","project-workspace-nodes-create","project-workspace-nodes-read","project-workspace-nodes-write","project-workspace-nodes-delete","project-workspace-packages-create","project-workspace-packages-read","project-workspace-packages-write","project-workspace-packages-delete","project-workspace-sql-run","project-workspace-subgraphs-create","project-workspace-subgraphs-read","project-workspace-subgraphs-write","project-workspace-subgraphs-delete"]),j90=w.enum(["env-run-results-read","env-run-job","env-delete","env-deploy","env-refresh","env-settings-read","env-summary-read","env-settings-write","env-documentation-read","env-members-read","env-members-add","env-members-write","env-members-remove","env-job-schedule-write","env-job-schedule-read"]),k_n={reader:{permissions:["env-run-results-read","env-summary-read","env-documentation-read","env-job-schedule-read"],inheritedEnvironmentRoles:[]},admin:{permissions:[...j90.options],inheritedEnvironmentRoles:["reader"]}},Q_n={member:{permissions:["project-summary-read","project-members-read","project-workspace-sql-run"],inheritedProjectRoles:[],inheritedEnvironmentRoles:[]},contributor:{permissions:["project-settings-read","project-members-read","project-workspaces-create","project-workspace-settings-read","project-workspace-settings-write","project-workspaces-delete","project-workspace-jobs-read","project-workspace-macros-read","project-workspace-node-types-read","project-workspace-nodes-create","project-workspace-nodes-read","project-workspace-nodes-write","project-workspace-nodes-delete","project-workspace-packages-read","project-workspace-subgraphs-read","project-documentation-read","env-delete","env-documentation-read"],inheritedProjectRoles:["member"],inheritedEnvironmentRoles:["reader"]},architect:{permissions:["project-workspace-jobs-create","project-workspace-jobs-write","project-workspace-jobs-delete","project-workspace-macros-create","project-workspace-macros-write","project-workspace-macros-delete","project-workspace-node-types-create","project-workspace-node-types-write","project-workspace-node-types-delete","project-workspace-packages-create","project-workspace-packages-write","project-workspace-packages-delete","project-workspace-subgraphs-create","project-workspace-subgraphs-write","project-workspace-subgraphs-delete"],inheritedProjectRoles:["contributor"],inheritedEnvironmentRoles:["reader"]},admin:{permissions:[...U90.options],inheritedProjectRoles:["architect"],inheritedEnvironmentRoles:["admin"]}},L_n={member:{permissions:["org-users-read"],inheritedOrganizationRoles:[],inheritedProjectRoles:[]},contributor:{permissions:["org-projects-create"],inheritedOrganizationRoles:["member"],inheritedProjectRoles:[]},admin:{permissions:[...q90.options],inheritedOrganizationRoles:["contributor"],inheritedProjectRoles:["admin"]}},CJt=r=>{let t=k_n[r],n=new Set(t.permissions);for(let i of t.inheritedEnvironmentRoles)CJt(i).forEach(o=>n.add(o));return Array.from(n)},RDe=r=>{let t=Q_n[r],n=new Set(t.permissions);for(let i of t.inheritedProjectRoles)RDe(i).forEach(o=>n.add(o));for(let i of t.inheritedEnvironmentRoles)CJt(i).forEach(o=>n.add(o));return Array.from(n)},bJt=r=>{let t=L_n[r],n=new Set(t.permissions);for(let i of t.inheritedOrganizationRoles)bJt(i).forEach(o=>n.add(o));for(let i of t.inheritedProjectRoles)RDe(i).forEach(o=>n.add(o));return Array.from(n)},nFs={admin:bJt("admin"),contributor:bJt("contributor"),member:bJt("member")},iFs={admin:RDe("admin"),architect:RDe("architect"),contributor:RDe("contributor"),member:RDe("member")},oFs={admin:CJt("admin"),reader:CJt("reader")};var Nit=class{throwIfOrgPermissionDenied(t,n=!1){if(!this.hasOrgPermission(t))throw n?new Wu("The requested resource is unavailable"):new P3("Permission denied",`Permission '${t}' is required to perform this operation.`)}throwIfProjectPermissionDenied(t,n,i=!1){if(!this.hasProjectPermission(t,n))throw i?new Wu("The requested resource is unavailable"):new P3("Permission denied",`Permission '${t}' is required to perform this operation.`)}throwIfEnvironmentPermissionDenied(t,n,i,o=!1){if(!this.hasEnvironmentPermission(t,n,i))throw o?new Wu("The requested resource is unavailable"):new P3("Permission denied",`'Permission ${t}' is required to perform this operation.`)}},IJt=class r extends Nit{constructor(n,i){super();this.userRoles=n;this.hasSuperUserAccess=i;this.userPermissions=this.ConstructPermissionsFromRoles(n)}userPermissions;hasOrgPermissionInternal(n){return this.userPermissions.organizationPermissions?.has(n)}hasOrgPermission(n){return this.hasSuperUserAccess||this.hasOrgPermissionInternal(n)}hasProjectPermissionInternal(n,i){return this.userPermissions.projects[i]?.projectPermissions?.has(n)}hasProjectPermission(n,i){return this.hasSuperUserAccess||this.hasOrgPermissionInternal(n)||this.hasProjectPermissionInternal(n,i)}hasEnvironmentPermissionInternal(n,i,o){return this.userPermissions.projects[i]?.environments[o]?.environmentPermissions?.has(n)}hasEnvironmentPermission(n,i,o){return this.hasSuperUserAccess||this.hasOrgPermissionInternal(n)||this.hasProjectPermissionInternal(n,i)||this.hasEnvironmentPermissionInternal(n,i,o)}ConstructPermissionsFromRoles(n){return n?{organizationPermissions:r.ConstructOrgPermissionsFromRoles(n.organizationRoles),projects:r.ConstructProjectsPermissionsFromRoles(n.projects)}:{organizationPermissions:new Set,projects:{}}}static ConstructEnvironmentPermissionsFromRoles(n){let i=new Set;return n.environmentRoles.forEach(o=>{oFs[o].forEach(s=>{i.add(s)})}),i}static ConstructEnvironmentPermissionObjectsFromRoles(n){let i={};return Object.entries(n).forEach(([o,s])=>{i[o]={environmentPermissions:r.ConstructEnvironmentPermissionsFromRoles(s)}}),i}static ConstructProjectPermissionsFromRoles(n){let i=new Set;return n.projectRoles.forEach(s=>{iFs[s].forEach(a=>{i.add(a)})}),{projectPermissions:i,environments:r.ConstructEnvironmentPermissionObjectsFromRoles(n.environments)}}static ConstructProjectsPermissionsFromRoles(n){let i={};return Object.keys(n).forEach(o=>{i[o]=this.ConstructProjectPermissionsFromRoles(n[o])}),i}static ConstructOrgPermissionsFromRoles(n){let i=new Set;return n.forEach(o=>{nFs[o].forEach(s=>{i.add(s)})}),i}};var vJt=class extends Nit{constructor(n,i){super();this.userRole=n;this.hasSuperUserAccess=i}hasOrgPermission(n){if(this.hasSuperUserAccess||this.userRole==="Admin")return!0;{let i=["org-settings-read","org-settings-write","org-users-read","org-users-write","org-users-delete"];return this.userRole==="User"&&!i.includes(n)}}hasProjectPermission(n,i){return!!this.userRole||this.hasSuperUserAccess}hasEnvironmentPermission(n,i,o){return!!this.userRole||this.hasSuperUserAccess}};rS();Bi();var G90=(r,t)=>{if(t=t===void 0?ARi:t,r<=1||t<=1)return 1;let s=r<=4?r:Math.floor((r-4)/2)+4;return Math.min(s,t)},qW=(r,t)=>{let n=G90(r,t),i=hRi,o=i<n?i:n;return o>0?o:1};B4();Fd();hf();Bi();pr();tx();var Qq1=rt.FIREBASE;var sFs=(r,t)=>A4r(r.collection("users").doc(t)).then(n=>({fbEmail:"",fbRole:n.data()?.role,fbUserID:t,fbTeamID:n.data()?.currentTeam,fbOrg:n.data()?.organization,fbFullName:`${n.data()?.firstName} ${n.data()?.lastName}`,fbFirstName:n.data()?.firstName,fbLastName:n.data()?.lastName,fbHasSuperUserAccess:n.data()?.hasSuperUserAccess,fbActivated:n.data()?.activated??!0,hasProvisioningAccess:n.data()?.hasProvisioningAccess}));var aFs=async(r,t)=>(await r.org(t).fetch()).superDebugEnabled;pr();Bi();hf();cn();ho();var zq1=xp({firstName:Ka(),lastName:Ka(),role:Ka(),currentTeam:Ka(),email:Ka(),password:Ka().optional(),accountType:Ka(),hasSuperUserAccess:A8().optional(),hasProvisioningAccess:A8().optional(),activated:A8().optional(),authDisabled:A8().optional(),multiFactorIsEnabled:A8().optional(),deleted:A8().optional()}),qq1=TCe.pick({firstName:!0,lastName:!0,role:!0,currentTeam:!0,email:!0,activated:!0,password:!0,accountType:!0,version:!0}).extend({rbacRole:sje.optional()}).strict(),Uq1=TCe.partial({firstName:!0,lastName:!0,role:!0,activated:!0,authDisabled:!0,deleted:!0,phoneNumber:!0,currentTeam:!0,email:!0,accountType:!0}).strict();var lFs=Ct(us());ho();wu();ho();pr();var H90=Ct(us()),Jq1=rt.FIREBASE,V90=()=>{let r={organization:{},project:{},environment:{}},t=(n,i,o)=>{for(let s of o(n))i.add(s),t(s,i,o);return Array.from(i)};for(let n of sje.options)r.organization[n]=t(n,new Set,i=>L_n[i].inheritedOrganizationRoles);for(let n of uRr.options)r.project[n]=t(n,new Set,i=>Q_n[i].inheritedProjectRoles);for(let n of cRr.options)r.environment[n]=t(n,new Set,i=>k_n[i].inheritedEnvironmentRoles);return r},Xq1=V90();tx();var hU1=rt.FIREBASE,gU1=rt.USER_ACTIVATION;var mU1=new RegExp("(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[!\"#$%&'()*+,-.\\/:;<=>?@[\\]\\^_`{|}~]).{8,}");var uFs=r=>{let t={canUpdateUser:["Admin"],canUpdateSuperUser:[],canResetPassword:["Admin"]};return n=>t[n].includes(r)};ho();pr();var SFs=Ct(P4(),1);K3();var ohe=Ct(z_n(),1),bFs=Ct(nGt(),1),H_n=Ct(P4(),1),V_n=Ct(H_t(),1),CFs=require("stream"),Y_n=Ct(j_n(),1);K3();var AFs=Ct(require("querystring"),1),hFs=require("stream");var gFs=Ct(NDe(),1);var l70=!0;function EB(r,t){return{options:typeof r=="object"?r:{},callback:typeof r=="function"?r:t}}function W_n(r){return Object.keys(r).map(t=>[t,r[t]])}function u70(r){return encodeURIComponent(r).replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())}function kit(r,t){return r.split("/").map(u70).join(t?"%2F":"/")}function mFs(r){return AFs.stringify(r,"&","=",{encodeURIComponent:t=>kit(t,!0)})}function yFs(r){let t={};for(let n of Object.keys(r)){let i=r[n];n=n.toLowerCase(),t[n]=i}return t}function EFs(r){return JSON.stringify(r).replace(/[\u0080-\uFFFF]/g,t=>"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4))}function wJt(r){return r instanceof Date||r instanceof RegExp?r:Array.isArray(r)?r.map(wJt):r instanceof Object?Object.keys(r).reduce((t,n)=>{let i=n[0].toLocaleLowerCase()+n.slice(1).replace(/([A-Z]+)/g,(o,s)=>`_${s.toLowerCase()}`);return t[i]=wJt(r[n]),t},Object()):r}function ihe(r,t=!1,n="",i=""){let o=r.getUTCFullYear(),s=r.getUTCMonth()+1,a=r.getUTCDate(),l=r.getUTCHours(),c=r.getUTCMinutes(),u=r.getUTCSeconds(),d=`${o.toString().padStart(4,"0")}${n}${s.toString().padStart(2,"0")}${n}${a.toString().padStart(2,"0")}`;return t&&(d=`${d}T${l.toString().padStart(2,"0")}${i}${c.toString().padStart(2,"0")}${i}${u.toString().padStart(2,"0")}Z`),d}function EF(){return globalThis.Deno&&globalThis.Deno.version&&globalThis.Deno.version.deno?`gl-deno/${globalThis.Deno.version.deno}`:`gl-node/${process.versions.node}`}function bF(){let r=(0,gFs.getPackageJSON)();return r.name.replace("@google-cloud","gcloud-node").replace("/","-")+"/"+r.version}function eoe(){return l70?"ESM":"CJS"}var Pit=class extends hFs.PassThrough{constructor(){super(...arguments),this.shouldEmitReading=!0,this.shouldEmitWriting=!0}_read(t){this.shouldEmitReading&&(this.emit("reading"),this.shouldEmitReading=!1),super._read(t)}_write(t,n,i){this.shouldEmitWriting&&(this.emit("writing"),this.shouldEmitWriting=!1),process.nextTick(()=>{super._write(t,n,i)})}_final(t){this.shouldEmitReading&&(this.emit("reading"),this.shouldEmitReading=!1),this.shouldEmitWriting&&(this.emit("writing"),this.shouldEmitWriting=!1),t(null)}};var IFs=Ct($J(),1),vFs=Ct(NDe(),1);var c70=(0,vFs.getPackageJSON)(),n3=Symbol.for("GCCL_GCS_CMD"),RJt={timeout:6e4,gzip:!0,forever:!0,pool:{maxSockets:1/0}},d70=!0,p70=3,jW=class r extends Error{constructor(t){if(super(),typeof t!="object"){this.message=t||"";return}let n=t;this.code=n.code,this.errors=n.errors,this.response=n.response;try{this.errors=JSON.parse(this.response.body).error.errors}catch{this.errors=n.errors}this.message=r.createMultiErrorMessage(n,this.errors),Error.captureStackTrace(this)}static createMultiErrorMessage(t,n){let i=new Set;t.message&&i.add(t.message),n&&n.length?n.forEach(({message:s})=>i.add(s)):t.response&&t.response.body?i.add(bFs.decode(t.response.body.toString())):t.message||i.add("A failure occurred during this request.");let o=Array.from(i);return o.length>1&&(o=o.map((s,a)=>` ${a+1}. ${s}`),o.unshift("Multiple errors occurred during the request. Please see the `errors` array for complete details.\n"),o.push(`
|
|
7206
7206
|
`)),o.join(`
|
|
7207
7207
|
`)}},K_n=class extends Error{constructor(t){super();let n=t;this.errors=n.errors,this.name="PartialFailureError",this.response=n.response,this.message=jW.createMultiErrorMessage(n,this.errors)}},J_n=class{constructor(){this.ApiError=jW,this.PartialFailureError=K_n}noop(){}handleResp(t,n,i,o){o=o||vc.noop;let s={err:t||null,...n&&vc.parseHttpRespMessage(n),...i&&vc.parseHttpRespBody(i)};!s.err&&n&&typeof s.body=="object"&&(s.resp.body=s.body),s.err&&n&&(s.err.response=n),o(s.err,s.body,s.resp)}parseHttpRespMessage(t){let n={resp:t};return(t.statusCode<200||t.statusCode>299)&&(n.err=new jW({errors:new Array,code:t.statusCode,message:t.statusMessage,response:t})),n}parseHttpRespBody(t){let n={body:t};if(typeof t=="string")try{n.body=JSON.parse(t)}catch{n.body=t}return n.body&&n.body.error&&(n.err=new jW(n.body.error)),n}makeWritableStream(t,n,i){var o;i=i||vc.noop;let s=new X_n;s.on("progress",u=>t.emit("progress",u)),t.setWritable(s);let a={method:"POST",qs:{uploadType:"multipart"},timeout:0,maxRetries:0},l=n.metadata||{},c={...a,...n.request,qs:{...a.qs,...(o=n.request)===null||o===void 0?void 0:o.qs},multipart:[{"Content-Type":"application/json",body:JSON.stringify(l)},{"Content-Type":l.contentType||"application/octet-stream",body:s}]};n.makeAuthenticatedRequest(c,{onAuthenticated(u,d){if(u){t.destroy(u);return}RJt.headers=vc._getDefaultHeaders(c[n3]),Y_n.teenyRequest.defaults(RJt)(d,(f,A,h)=>{vc.handleResp(f,A,h,(y,C)=>{if(y){t.destroy(y);return}t.emit("response",A),i(C)})})}})}shouldRetryRequest(t){if(t){if([408,429,500,502,503,504].indexOf(t.code)!==-1)return!0;if(t.errors)for(let n of t.errors){let i=n.reason;if(i==="rateLimitExceeded"||i==="userRateLimitExceeded"||i&&i.includes("EAI_AGAIN"))return!0}}return!1}makeAuthenticatedRequestFactory(t){let n={...t};n.projectId===PDe&&delete n.projectId;let i;n.authClient instanceof H_n.GoogleAuth?i=n.authClient:i=new H_n.GoogleAuth({...n,authClient:n.authClient,clientOptions:n.clientOptions});function o(a,l){let c,u,d={...t},p;l||(c=(0,IFs.default)(),d.stream=c);let f=typeof l=="object"?l:void 0,A=typeof l=="function"?l:void 0;async function h(){u=await i.getProjectId()}let y=async(v,O)=>{let T=v,R=v&&typeof v.message=="string"&&v.message.indexOf("Could not load the default credentials")>-1;if(R&&(O=a),!v||R)try{O=vc.decorateRequest(O,u),v=null}catch(N){if(N instanceof ohe.MissingProjectIdError)try{await h(),O=vc.decorateRequest(O,u),v=null}catch(z){v=v||z}else v=v||N}if(v){c?c.destroy(v):(f&&f.onAuthenticated?f.onAuthenticated:A)(v);return}f&&f.onAuthenticated?f.onAuthenticated(null,O):p=vc.makeRequest(O,d,(N,...z)=>{N&&N.code===401&&T&&(N=T),A(N,...z)})};return(async()=>{try{let v=async()=>t.projectId&&t.projectId!==PDe?t.projectId:t.projectIdRequired===!1?PDe:h(),O=async()=>d.customEndpoint&&!d.useAuthWithCustomEndpoint?a:i.authorizeRequest(a),[T,R]=await Promise.all([v(),O()]);return T&&(u=T),y(null,R)}catch(v){return y(v)}})(),c||{abort(){setImmediate(()=>{p&&(p.abort(),p=null)})}}}let s=o;return s.getCredentials=i.getCredentials.bind(i),s.authClient=i,s}makeRequest(t,n,i){var o,s,a,l,c;let u=d70;n.autoRetry!==void 0?u=n.autoRetry:((o=n.retryOptions)===null||o===void 0?void 0:o.autoRetry)!==void 0&&(u=n.retryOptions.autoRetry);let d=p70;n.maxRetries!==void 0?d=n.maxRetries:((s=n.retryOptions)===null||s===void 0?void 0:s.maxRetries)!==void 0&&(d=n.retryOptions.maxRetries),RJt.headers=this._getDefaultHeaders(t[n3]);let p={request:Y_n.teenyRequest.defaults(RJt),retries:u!==!1?d:0,noResponseRetries:u!==!1?d:0,shouldRetryFn(y){var C,v;let O=vc.parseHttpRespMessage(y).err;return!((C=n.retryOptions)===null||C===void 0)&&C.retryableErrorFn?O&&((v=n.retryOptions)===null||v===void 0?void 0:v.retryableErrorFn(O)):O&&vc.shouldRetryRequest(O)},maxRetryDelay:(a=n.retryOptions)===null||a===void 0?void 0:a.maxRetryDelay,retryDelayMultiplier:(l=n.retryOptions)===null||l===void 0?void 0:l.retryDelayMultiplier,totalTimeout:(c=n.retryOptions)===null||c===void 0?void 0:c.totalTimeout};if(typeof t.maxRetries=="number"&&(p.retries=t.maxRetries,p.noResponseRetries=t.maxRetries),!n.stream)return(0,V_n.default)(t,p,(y,C,v)=>{vc.handleResp(y,C,v,i)});let f=n.stream,A;return(t.method||"GET").toUpperCase()==="GET"?(A=(0,V_n.default)(t,p),f.setReadable(A)):(A=p.request(t),f.setWritable(A)),A.on("error",f.destroy.bind(f)).on("response",f.emit.bind(f,"response")).on("complete",f.emit.bind(f,"complete")),f.abort=A.abort,f}decorateRequest(t,n){return delete t.autoPaginate,delete t.autoPaginateVal,delete t.objectMode,t.qs!==null&&typeof t.qs=="object"&&(delete t.qs.autoPaginate,delete t.qs.autoPaginateVal,t.qs=(0,ohe.replaceProjectIdToken)(t.qs,n)),Array.isArray(t.multipart)&&(t.multipart=t.multipart.map(i=>(0,ohe.replaceProjectIdToken)(i,n))),t.json!==null&&typeof t.json=="object"&&(delete t.json.autoPaginate,delete t.json.autoPaginateVal,t.json=(0,ohe.replaceProjectIdToken)(t.json,n)),t.uri=(0,ohe.replaceProjectIdToken)(t.uri,n),t}isCustomType(t,n){function i(c){return c.constructor&&c.constructor.name.toLowerCase()}let o=n.split("/"),s=o[0]&&o[0].toLowerCase(),a=o[1]&&o[1].toLowerCase();if(a&&i(t)!==a)return!1;let l=t;for(;;){if(i(l)===s)return!0;if(l=l.parent,!l)return!1}}maybeOptionsOrCallback(t,n){return typeof t=="function"?[{},t]:[t,n]}_getDefaultHeaders(t){let n={"User-Agent":bF(),"x-goog-api-client":`${EF()} gccl/${c70.version}-${eoe()} gccl-invocation-id/${k5()}`};return t&&(n["x-goog-api-client"]+=` gccl-gcs-cmd/${t}`),n}},X_n=class extends CFs.Transform{constructor(){super(...arguments),this.bytesRead=0}_transform(t,n,i){this.bytesRead+=t.length,this.emit("progress",{bytesWritten:this.bytesRead,contentLength:"*"}),this.push(t),i()}},vc=new J_n;var PDe="{{projectId}}",Qit=class r{constructor(t,n={}){this.baseUrl=t.baseUrl,this.apiEndpoint=t.apiEndpoint,this.timeout=n.timeout,this.globalInterceptors=Array.isArray(n.interceptors_)?n.interceptors_:[],this.interceptors=[],this.packageJson=t.packageJson,this.projectId=n.projectId||PDe,this.projectIdRequired=t.projectIdRequired!==!1,this.providedUserAgent=n.userAgent,this.universeDomain=n.universeDomain||SFs.DEFAULT_UNIVERSE,this.customEndpoint=t.customEndpoint||!1,this.makeAuthenticatedRequest=vc.makeAuthenticatedRequestFactory({...t,projectIdRequired:this.projectIdRequired,projectId:this.projectId,authClient:n.authClient||t.authClient,credentials:n.credentials,keyFile:n.keyFilename,email:n.email,clientOptions:{universeDomain:n.universeDomain,...n.clientOptions}}),this.authClient=this.makeAuthenticatedRequest.authClient,!!process.env.FUNCTION_NAME&&this.interceptors.push({request(o){return o.forever=!1,o}})}getRequestInterceptors(){return[].slice.call(this.globalInterceptors).concat(this.interceptors).filter(t=>typeof t.request=="function").map(t=>t.request)}getProjectId(t){if(!t)return this.getProjectIdAsync();this.getProjectIdAsync().then(n=>t(null,n),t)}async getProjectIdAsync(){let t=await this.authClient.getProjectId();return this.projectId===PDe&&t&&(this.projectId=t),this.projectId}request_(t,n){t={...t,timeout:this.timeout};let i=t.uri.indexOf("http")===0,o=[this.baseUrl];this.projectIdRequired&&(t.projectId?(o.push("projects"),o.push(t.projectId)):(o.push("projects"),o.push(this.projectId))),o.push(t.uri),i&&o.splice(0,o.indexOf(t.uri)),t.uri=o.map(u=>{let d=/^\/*|\/*$/g;return u.replace(d,"")}).join("/").replace(/\/:/g,":");let s=this.getRequestInterceptors();(Array.isArray(t.interceptors_)?t.interceptors_:[]).forEach(u=>{typeof u.request=="function"&&s.push(u.request)}),s.forEach(u=>{t=u(t)}),delete t.interceptors_;let l=this.packageJson,c=bF();if(this.providedUserAgent&&(c=`${this.providedUserAgent} ${c}`),t.headers={...t.headers,"User-Agent":c,"x-goog-api-client":`${EF()} gccl/${l.version}-${eoe()} gccl-invocation-id/${k5()}`},t[n3]&&(t.headers["x-goog-api-client"]+=` gccl-gcs-cmd/${t[n3]}`),t.shouldReturnStream)return this.makeAuthenticatedRequest(t);this.makeAuthenticatedRequest(t,n)}request(t,n){r.prototype.request_.call(this,t,n)}requestStream(t){let n={...t,shouldReturnStream:!0};return r.prototype.request_.call(this,n)}};var _Fs=Ct(I2(),1),OFs=require("events");var r_=class r extends OFs.EventEmitter{constructor(t){super(),this.metadata={},this.baseUrl=t.baseUrl,this.parent=t.parent,this.id=t.id,this.createMethod=t.createMethod,this.methods=t.methods||{},this.interceptors=[],this.projectId=t.projectId,t.methods&&Object.getOwnPropertyNames(r.prototype).filter(n=>!/^request/.test(n)&&!/^getRequestInterceptors/.test(n)&&this[n]===r.prototype[n]&&!t.methods[n]).forEach(n=>{this[n]=void 0})}create(t,n){let i=this,o=[this.id];typeof t=="function"&&(n=t),typeof t=="object"&&o.push(t);function s(...a){let[l,c]=a;l||(i.metadata=c.metadata,i.id&&c.metadata&&(i.id=c.metadata.id),a[1]=i),n(...a)}o.push(s),this.createMethod.apply(null,o)}delete(t,n){var i;let[o,s]=vc.maybeOptionsOrCallback(t,n),a=o.ignoreNotFound;delete o.ignoreNotFound;let l=typeof this.methods.delete=="object"&&this.methods.delete||{},c={method:"DELETE",uri:"",...l.reqOpts,qs:{...(i=l.reqOpts)===null||i===void 0?void 0:i.qs,...o}};r.prototype.request.call(this,c,(u,d,p)=>{u&&u.code===404&&a&&(u=null),s(u,p)})}exists(t,n){let[i,o]=vc.maybeOptionsOrCallback(t,n);this.get(i,s=>{if(s){s.code===404?o(null,!1):o(s);return}o(null,!0)})}get(t,n){let i=this,[o,s]=vc.maybeOptionsOrCallback(t,n),a=Object.assign({},o),l=a.autoCreate&&typeof this.create=="function";delete a.autoCreate;function c(u,d,p){if(u){if(u.code===409){i.get(a,s);return}s(u,null,p);return}s(null,d,p)}this.getMetadata(a,(u,d)=>{if(u){if(u.code===404&&l){let p=[];Object.keys(a).length>0&&p.push(a),p.push(c),i.create(...p);return}s(u,null,d);return}s(null,i,d)})}getMetadata(t,n){var i;let[o,s]=vc.maybeOptionsOrCallback(t,n),a=typeof this.methods.getMetadata=="object"&&this.methods.getMetadata||{},l={uri:"",...a.reqOpts,qs:{...(i=a.reqOpts)===null||i===void 0?void 0:i.qs,...o}};r.prototype.request.call(this,l,(c,u,d)=>{this.metadata=u,s(c,this.metadata,d)})}getRequestInterceptors(){let t=this.interceptors.filter(n=>typeof n.request=="function").map(n=>n.request);return this.parent.getRequestInterceptors().concat(t)}setMetadata(t,n,i){var o,s;let[a,l]=vc.maybeOptionsOrCallback(n,i),c=typeof this.methods.setMetadata=="object"&&this.methods.setMetadata||{},u={method:"PATCH",uri:"",...c.reqOpts,json:{...(o=c.reqOpts)===null||o===void 0?void 0:o.json,...t},qs:{...(s=c.reqOpts)===null||s===void 0?void 0:s.qs,...a}};r.prototype.request.call(this,u,(d,p,f)=>{this.metadata=p,l(d,this.metadata,f)})}request_(t,n){t={...t},this.projectId&&(t.projectId=this.projectId);let i=t.uri.indexOf("http")===0,o=[this.baseUrl,this.id||"",t.uri];i&&o.splice(0,o.indexOf(t.uri)),t.uri=o.filter(l=>l.trim()).map(l=>{let c=/^\/*|\/*$/g;return l.replace(c,"")}).join("/");let s=Array.isArray(t.interceptors_)?t.interceptors_:[],a=[].slice.call(this.interceptors);if(t.interceptors_=s.concat(a),t.shouldReturnStream)return this.parent.requestStream(t);this.parent.request(t,n)}request(t,n){this.request_(t,n)}requestStream(t){let n={...t,shouldReturnStream:!0};return this.request_(n)}};(0,_Fs.promisifyAll)(r_,{exclude:["getRequestInterceptors"]});var jJt=Ct(Lit(),1),uzs=Ct(I2(),1),l5n=require("stream");var a5n=Ct(Lit(),1),ezs=Ct(I2(),1),tzs=Ct(require("fs"),1),rzs=Ct($Y(),1),nzs=Ct(require("path"),1),i5n=Ct(AAe(),1),o5n=require("util"),izs=Ct(tT(),1);var BFs=Ct(I2(),1),QDe=class r{constructor(){this.owners={},this.readers={},this.writers={},this.owners={},this.readers={},this.writers={},r.roles.forEach(this._assignAccessMethods.bind(this))}_assignAccessMethods(t){let n=r.accessMethods,i=r.entities,o=t.toLowerCase()+"s";this[o]=i.reduce((s,a)=>{let l=a.charAt(a.length-1)==="-";return n.forEach(c=>{let u=c+a[0].toUpperCase()+a.substring(1);l&&(u=u.replace("-","")),s[u]=(d,p,f)=>{let A;typeof p=="function"&&(f=p,p={}),l?A=a+d:(A=a,f=d),p=Object.assign({entity:A,role:t},p);let h=[p];return typeof f=="function"&&h.push(f),this[c].apply(this,h)}}),s},{})}};QDe.accessMethods=["add","delete"];QDe.entities=["allAuthenticatedUsers","allUsers","domain-","group-","project-","user-"];QDe.roles=["OWNER","READER","WRITER"];var roe=class extends QDe{constructor(t){super(),this.pathPrefix=t.pathPrefix,this.request_=t.request}add(t,n){let i={};t.generation&&(i.generation=t.generation),t.userProject&&(i.userProject=t.userProject),this.request({method:"POST",uri:"",qs:i,maxRetries:0,json:{entity:t.entity,role:t.role.toUpperCase()}},(o,s)=>{if(o){n(o,null,s);return}n(null,this.makeAclObject_(s),s)})}delete(t,n){let i={};t.generation&&(i.generation=t.generation),t.userProject&&(i.userProject=t.userProject),this.request({method:"DELETE",uri:"/"+encodeURIComponent(t.entity),qs:i},(o,s)=>{n(o,s)})}get(t,n){let i=typeof t=="object"?t:null,o=typeof t=="function"?t:n,s="",a={};i&&(s="/"+encodeURIComponent(i.entity),i.generation&&(a.generation=i.generation),i.userProject&&(a.userProject=i.userProject)),this.request({uri:s,qs:a},(l,c)=>{if(l){o(l,null,c);return}let u;c.items?u=c.items.map(this.makeAclObject_):u=this.makeAclObject_(c),o(null,u,c)})}update(t,n){let i={};t.generation&&(i.generation=t.generation),t.userProject&&(i.userProject=t.userProject),this.request({method:"PUT",uri:"/"+encodeURIComponent(t.entity),qs:i,json:{role:t.role.toUpperCase()}},(o,s)=>{if(o){n(o,null,s);return}n(null,this.makeAclObject_(s),s)})}makeAclObject_(t){let n={entity:t.entity,role:t.role};return t.projectTeam&&(n.projectTeam=t.projectTeam),n}request(t,n){t.uri=this.pathPrefix+t.uri,this.request_(t,n)}};(0,BFs.promisifyAll)(roe,{exclude:["request"]});var HFs=Ct(I2(),1),VFs=Ct(LWt(),1),YFs=Ct(require("crypto"),1),zJt=Ct(require("fs"),1),KFs=Ct(zWt(),1);var xFs=Ct(pve(),1),MFs=require("crypto"),b70=Ct(wx(),1),she=Ct(P4(),1),PJt=require("stream"),DFs=Ct(tT(),1);K3();var NFs=Ct(NDe(),1),E70=function(r,t,n,i,o){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?r!==t||!o:!t.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?o.call(r,n):o?o.value=n:t.set(r,n),n},AT=function(r,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?r!==t||!i:!t.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(r):i?i.value:t.get(r)},GW,WW,Fit,DJt,C70=404,MJt=308,Z_n=(0,NFs.getPackageJSON)(),I70=/^(\w*):\/\//,NJt=class extends PJt.Writable{constructor(t){var n;if(super(t),GW.add(this),this.numBytesWritten=0,this.numRetries=0,this.currentInvocationId={checkUploadStatus:k5(),chunk:k5(),uri:k5()},this.writeBuffers=[],this.numChunksReadInRequest=0,this.localWriteCache=[],this.localWriteCacheByteLength=0,this.upstreamEnded=!1,WW.set(this,void 0),t=t||{},!t.bucket||!t.file)throw new Error("A bucket and file name are required");if(t.offset&&!t.uri)throw new RangeError("Cannot provide an `offset` without providing a `uri`");if(t.isPartialUpload&&!t.chunkSize)throw new RangeError("Cannot set `isPartialUpload` without providing a `chunkSize`");t.authConfig=t.authConfig||{},t.authConfig.scopes=["https://www.googleapis.com/auth/devstorage.full_control"],this.authClient=t.authClient||new she.GoogleAuth(t.authConfig);let i=t.universeDomain||she.DEFAULT_UNIVERSE;if(this.apiEndpoint=`https://storage.${i}`,t.apiEndpoint&&t.apiEndpoint!==this.apiEndpoint){this.apiEndpoint=this.sanitizeEndpoint(t.apiEndpoint);let l=new URL(this.apiEndpoint).hostname,c=l===i,u=l===she.DEFAULT_UNIVERSE,d=l.slice(-(i.length+1))===`.${i}`,p=l.slice(-(she.DEFAULT_UNIVERSE.length+1))===`.${she.DEFAULT_UNIVERSE}`;!c&&!u&&!d&&!p&&(this.authClient=b70)}this.baseURI=`${this.apiEndpoint}/upload/storage/v1/b`,this.bucket=t.bucket;let o=[t.bucket,t.file];if(typeof t.generation=="number"&&o.push(`${t.generation}`),this.cacheKey=o.join("/"),this.customRequestOptions=t.customRequestOptions||{},this.file=t.file,this.generation=t.generation,this.kmsKeyName=t.kmsKeyName,this.metadata=t.metadata||{},this.offset=t.offset,this.origin=t.origin,this.params=t.params||{},this.userProject=t.userProject,this.chunkSize=t.chunkSize,this.retryOptions=t.retryOptions,this.isPartialUpload=(n=t.isPartialUpload)!==null&&n!==void 0?n:!1,t.key){let l=Buffer.from(t.key).toString("base64");this.encryption={key:l,hash:(0,MFs.createHash)("sha256").update(t.key).digest("base64")}}this.predefinedAcl=t.predefinedAcl,t.private&&(this.predefinedAcl="private"),t.public&&(this.predefinedAcl="publicRead");let s=t.retryOptions.autoRetry;this.uriProvidedManually=!!t.uri,this.uri=t.uri,this.offset&&(this.numBytesWritten=this.offset),this.numRetries=0,s||(t.retryOptions.maxRetries=0),this.timeOfFirstRequest=Date.now();let a=t.metadata?Number(t.metadata.contentLength):NaN;this.contentLength=isNaN(a)?"*":a,E70(this,WW,t[n3],"f"),this.once("writing",()=>{this.uri?this.continueUploading():this.createURI(l=>{if(l)return this.destroy(l);this.startUploading()})})}_final(t=()=>{}){this.upstreamEnded=!0,this.once("uploadFinished",t),process.nextTick(()=>{this.emit("upstreamFinished"),this.emit("writing")})}_write(t,n,i=()=>{}){this.emit("writing"),this.writeBuffers.push(typeof t=="string"?Buffer.from(t,n):t),this.once("readFromChunkBuffer",i),process.nextTick(()=>this.emit("wroteToChunkBuffer"))}prependLocalBufferToUpstream(t){let n=[];if(t){let o=0;for(;t>o;){let s=this.localWriteCache.pop();if(!s)break;if(o+=s.byteLength,o>t){let a=o-t;s=s.subarray(a),o-=a}n.unshift(s)}}else n=this.localWriteCache;let i=this.writeBuffers;this.writeBuffers=n;for(let o of i)this.writeBuffers.push(o);AT(this,GW,"m",Fit).call(this)}*pullFromChunkBuffer(t){for(;t;){let n=this.writeBuffers.shift();if(!n)break;let i=n;n.byteLength>t?(i=n.subarray(0,t),this.writeBuffers.unshift(n.subarray(t)),t=0):t-=n.byteLength,yield i,this.emit("readFromChunkBuffer")}}async waitForNextChunk(){return await new Promise(n=>{if(this.writeBuffers.length)return n(!0);if(this.upstreamEnded)return n(!1);let i=()=>(s(),n(!0)),o=()=>(s(),this.writeBuffers.length?n(!0):n(!1)),s=()=>{this.removeListener("wroteToChunkBuffer",i),this.removeListener("upstreamFinished",o)};this.once("wroteToChunkBuffer",i),this.once("upstreamFinished",o)})}async*upstreamIterator(t=1/0){for(;t&&await this.waitForNextChunk();)for(let n of this.pullFromChunkBuffer(t))t-=n.byteLength,yield n}createURI(t){if(!t)return this.createURIAsync();this.createURIAsync().then(n=>t(null,n),t)}async createURIAsync(){let t={...this.metadata},n={};t.contentLength&&(n["X-Upload-Content-Length"]=t.contentLength.toString(),delete t.contentLength),t.contentType&&(n["X-Upload-Content-Type"]=t.contentType,delete t.contentType);let i=`${EF()} gccl/${Z_n.version}-${eoe()} gccl-invocation-id/${this.currentInvocationId.uri}`;AT(this,WW,"f")&&(i+=` gccl-gcs-cmd/${AT(this,WW,"f")}`);let o={method:"POST",url:[this.baseURI,this.bucket,"o"].join("/"),params:Object.assign({name:this.file,uploadType:"resumable"},this.params),data:t,headers:{"User-Agent":bF(),"x-goog-api-client":i,...n}};t.contentLength&&(o.headers["X-Upload-Content-Length"]=t.contentLength.toString()),t.contentType&&(o.headers["X-Upload-Content-Type"]=t.contentType),typeof this.generation<"u"&&(o.params.ifGenerationMatch=this.generation),this.kmsKeyName&&(o.params.kmsKeyName=this.kmsKeyName),this.predefinedAcl&&(o.params.predefinedAcl=this.predefinedAcl),this.origin&&(o.headers.Origin=this.origin);let s=await(0,DFs.default)(async a=>{var l,c,u;try{let d=await this.makeRequest(o);return this.currentInvocationId.uri=k5(),d.headers.location}catch(d){let p=d,f={code:(l=p.response)===null||l===void 0?void 0:l.status,name:(c=p.response)===null||c===void 0?void 0:c.statusText,message:(u=p.response)===null||u===void 0?void 0:u.statusText,errors:[{reason:p.code}]};if(this.retryOptions.maxRetries>0&&this.retryOptions.retryableErrorFn(f))throw p;return a(p)}},{retries:this.retryOptions.maxRetries,factor:this.retryOptions.retryDelayMultiplier,maxTimeout:this.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.retryOptions.totalTimeout*1e3});return this.uri=s,this.offset=0,this.emit("uri",s),s}async continueUploading(){var t;return(t=this.offset)!==null&&t!==void 0||await this.getAndSetOffset(),this.startUploading()}async startUploading(){let t=!!this.chunkSize,n=!1;if(this.numChunksReadInRequest=0,this.offset||(this.offset=0),this.offset<this.numBytesWritten){let u=this.numBytesWritten-this.offset,d=`The offset is lower than the number of bytes written. The server has ${this.offset} bytes and while ${this.numBytesWritten} bytes has been uploaded - thus ${u} bytes are missing. Stopping as this could result in data loss. Initiate a new upload to continue.`;this.emit("error",new RangeError(d));return}if(this.numBytesWritten<this.offset){let u=this.offset-this.numBytesWritten;for await(let d of this.upstreamIterator(u));this.numBytesWritten=this.offset}let i;typeof this.contentLength=="number"&&(i=this.contentLength-this.numBytesWritten),this.chunkSize&&(i=i?Math.min(this.chunkSize,i):this.chunkSize);let o=this.upstreamIterator(i),s=new PJt.Readable({read:async()=>{n&&s.push(null);let u=await o.next();u.value&&(this.numChunksReadInRequest++,t?AT(this,GW,"m",DJt).call(this,u.value):(AT(this,GW,"m",Fit).call(this),AT(this,GW,"m",DJt).call(this,u.value)),this.numBytesWritten+=u.value.byteLength,this.emit("progress",{bytesWritten:this.numBytesWritten,contentLength:this.contentLength}),s.push(u.value)),u.done&&s.push(null)}}),a=`${EF()} gccl/${Z_n.version}-${eoe()} gccl-invocation-id/${this.currentInvocationId.chunk}`;AT(this,WW,"f")&&(a+=` gccl-gcs-cmd/${AT(this,WW,"f")}`);let l={"User-Agent":bF(),"x-goog-api-client":a};if(t){for await(let A of this.upstreamIterator(i))AT(this,GW,"m",DJt).call(this,A);let u=this.localWriteCacheByteLength,d=!await this.waitForNextChunk();this.prependLocalBufferToUpstream();let p=this.contentLength;typeof this.contentLength!="number"&&d&&!this.isPartialUpload&&(p=u+this.numBytesWritten);let f=u+this.numBytesWritten-1;l["Content-Length"]=u,l["Content-Range"]=`bytes ${this.offset}-${f}/${p}`}else l["Content-Range"]=`bytes ${this.offset}-*/${this.contentLength}`;let c={method:"PUT",url:this.uri,headers:l,body:s};try{let u=await this.makeRequestStream(c);u&&(n=!0,await this.responseHandler(u))}catch(u){let d=u;if(this.retryOptions.retryableErrorFn(d)){this.attemptDelayedRetry({status:NaN,data:d});return}this.destroy(d)}}async responseHandler(t){if(t.data.error){this.destroy(t.data.error);return}this.currentInvocationId.chunk=k5();let n=await this.waitForNextChunk(),i=this.chunkSize&&t.status===MJt&&t.headers.range&&n,o=this.isPartialUpload&&t.status===MJt&&!n;if(i){let s=t.headers.range;this.offset=Number(s.split("-")[1])+1;let a=this.numBytesWritten-this.offset;a?(this.prependLocalBufferToUpstream(a),this.numBytesWritten-=a):AT(this,GW,"m",Fit).call(this),this.continueUploading()}else if(!this.isSuccessfulResponse(t.status)&&!o){let s=new Error("Upload failed");s.code=t.status,s.name="Upload failed",t?.data&&(s.errors=[t?.data]),this.destroy(s)}else AT(this,GW,"m",Fit).call(this),t&&t.data&&(t.data.size=Number(t.data.size)),this.emit("metadata",t.data),this.emit("uploadFinished")}async checkUploadStatus(t={}){let n=`${EF()} gccl/${Z_n.version}-${eoe()} gccl-invocation-id/${this.currentInvocationId.checkUploadStatus}`;AT(this,WW,"f")&&(n+=` gccl-gcs-cmd/${AT(this,WW,"f")}`);let i={method:"PUT",url:this.uri,headers:{"Content-Length":0,"Content-Range":"bytes */*","User-Agent":bF(),"x-goog-api-client":n}};try{let o=await this.makeRequest(i);return this.currentInvocationId.checkUploadStatus=k5(),o}catch(o){if(t.retry===!1||!(o instanceof Error)||!this.retryOptions.retryableErrorFn(o))throw o;let s=this.getRetryDelay();if(s<=0)throw o;return await new Promise(a=>setTimeout(a,s)),this.checkUploadStatus(t)}}async getAndSetOffset(){try{let t=await this.checkUploadStatus({retry:!1});if(t.status===MJt&&typeof t.headers.range=="string"){this.offset=Number(t.headers.range.split("-")[1])+1;return}this.offset=0}catch(t){let n=t;if(this.retryOptions.retryableErrorFn(n)){this.attemptDelayedRetry({status:NaN,data:n});return}this.destroy(n)}}async makeRequest(t){this.encryption&&(t.headers=t.headers||{},t.headers["x-goog-encryption-algorithm"]="AES256",t.headers["x-goog-encryption-key"]=this.encryption.key.toString(),t.headers["x-goog-encryption-key-sha256"]=this.encryption.hash.toString()),this.userProject&&(t.params=t.params||{},t.params.userProject=this.userProject),t.validateStatus=o=>this.isSuccessfulResponse(o)||o===MJt;let n={...this.customRequestOptions,...t,headers:{...this.customRequestOptions.headers,...t.headers}},i=await this.authClient.request(n);if(i.data&&i.data.error)throw i.data.error;return i}async makeRequestStream(t){let n=new xFs.default,i=()=>n.abort();this.once("error",i),this.userProject&&(t.params=t.params||{},t.params.userProject=this.userProject),t.signal=n.signal,t.validateStatus=()=>!0;let o={...this.customRequestOptions,...t,headers:{...this.customRequestOptions.headers,...t.headers}},s=await this.authClient.request(o),a=this.onResponse(s);return this.removeListener("error",i),a?s:null}onResponse(t){return t.status!==200&&this.retryOptions.retryableErrorFn({code:t.status,message:t.statusText,name:t.statusText})?(this.attemptDelayedRetry(t),!1):(this.emit("response",t),!0)}attemptDelayedRetry(t){if(this.numRetries<this.retryOptions.maxRetries){if(t.status===C70&&this.numChunksReadInRequest===0)this.startUploading();else{let n=this.getRetryDelay();if(n<=0){this.destroy(new Error(`Retry total time limit exceeded - ${t.data}`));return}this.numBytesWritten-=this.localWriteCacheByteLength,this.prependLocalBufferToUpstream(),this.offset=void 0,setTimeout(this.continueUploading.bind(this),n)}this.numRetries++}else this.destroy(new Error("Retry limit exceeded - "+t.data))}getRetryDelay(){let t=Math.round(Math.random()*1e3),n=Math.pow(this.retryOptions.retryDelayMultiplier,this.numRetries)*1e3+t,i=this.retryOptions.totalTimeout*1e3-(Date.now()-this.timeOfFirstRequest),o=this.retryOptions.maxRetryDelay*1e3;return Math.min(n,o,i)}sanitizeEndpoint(t){return I70.test(t)||(t=`https://${t}`),t.replace(/\/+$/,"")}isSuccessfulResponse(t){return t>=200&&t<300}};WW=new WeakMap,GW=new WeakSet,Fit=function(){this.localWriteCache=[],this.localWriteCacheByteLength=0},DJt=function(t){this.localWriteCache.push(t),this.localWriteCacheByteLength+=t.byteLength};function PFs(r){return new NJt(r)}function kFs(r,t){let n=new NJt(r);if(!t)return n.createURI();n.createURI().then(i=>t(null,i),t)}var FDe=require("stream"),qJt=Ct(require("zlib"),1);var LFs=Ct(require("crypto"),1),e5n=Ct(require("url"),1);var zit;(function(r){r.ACCESSIBLE_DATE_INVALID="The accessible at date provided was invalid.",r.EXPIRATION_BEFORE_ACCESSIBLE_DATE="An expiration date cannot be before accessible date.",r.X_GOOG_CONTENT_SHA256="The header X-Goog-Content-SHA256 must be a hexadecimal string."})(zit||(zit={}));var S70="v2",QFs=7*24*60*60;var LDe=class{constructor(t,n,i,o=new CB){this.auth=t,this.bucket=n,this.file=i,this.storage=o}getSignedUrl(t){let n=this.parseExpires(t.expires),i=t.method,o=this.parseAccessibleAt(t.accessibleAt);if(n<o)throw new Error(zit.EXPIRATION_BEFORE_ACCESSIBLE_DATE);let s,a=t.virtualHostedStyle||!1;t.cname?s=t.cname:a&&(s=`https://${this.bucket.name}.storage.${this.storage.universeDomain}`);let l=1e3,c=Object.assign({},t,{method:i,expiration:n,accessibleAt:new Date(l*o),bucket:this.bucket.name,file:this.file?kit(this.file.name,!1):void 0});s&&(c.cname=s);let u=t.version||S70,d;if(u==="v2")d=this.getSignedUrlV2(c);else if(u==="v4")d=this.getSignedUrlV4(c);else throw new Error(`Invalid signed URL version: ${u}. Supported versions are 'v2' and 'v4'.`);return d.then(p=>{var f;p=Object.assign(p,t.queryParams);let A=new e5n.URL(((f=t.host)===null||f===void 0?void 0:f.toString())||c.cname||this.storage.apiEndpoint);return A.pathname=this.getResourcePath(!!c.cname,this.bucket.name,c.file),A.search=mFs(p),A.href})}getSignedUrlV2(t){let n=this.getCanonicalHeaders(t.extensionHeaders||{}),i=this.getResourcePath(!1,t.bucket,t.file),o=[t.method,t.contentMd5||"",t.contentType||"",t.expiration,n+i].join(`
|
|
7208
7208
|
`);return(async()=>{var a;let l=this.auth;try{let c=await l.sign(o,(a=t.signingEndpoint)===null||a===void 0?void 0:a.toString());return{GoogleAccessId:(await l.getCredentials()).client_email,Expires:t.expiration,Signature:c}}catch(c){let u=c,d=new ahe(u.message);throw d.stack=u.stack,d}})()}getSignedUrlV4(t){var n;t.accessibleAt=t.accessibleAt?t.accessibleAt:new Date;let i=1/1e3,o=t.expiration-t.accessibleAt.valueOf()*i;if(o>QFs)throw new Error(`Max allowed expiration is seven days (${QFs} seconds).`);let s=Object.assign({},t.extensionHeaders),a=new e5n.URL(((n=t.host)===null||n===void 0?void 0:n.toString())||t.cname||this.storage.apiEndpoint);s.host=a.hostname,t.contentMd5&&(s["content-md5"]=t.contentMd5),t.contentType&&(s["content-type"]=t.contentType);let l,c=s["x-goog-content-sha256"];if(c){if(typeof c!="string"||!/[A-Fa-f0-9]{40}/.test(c))throw new Error(zit.X_GOOG_CONTENT_SHA256);l=c}let u=Object.keys(s).map(h=>h.toLowerCase()).sort().join(";"),d=this.getCanonicalHeaders(s),f=`${ihe(t.accessibleAt)}/auto/storage/goog4_request`;return(async()=>{var h;let C=`${(await this.auth.getCredentials()).client_email}/${f}`,v=ihe(t.accessibleAt?t.accessibleAt:new Date,!0),O={"X-Goog-Algorithm":"GOOG4-RSA-SHA256","X-Goog-Credential":C,"X-Goog-Date":v,"X-Goog-Expires":o.toString(10),"X-Goog-SignedHeaders":u,...t.queryParams||{}},T=this.getCanonicalQueryParams(O),R=this.getCanonicalRequest(t.method,this.getResourcePath(!!t.cname,t.bucket,t.file),T,d,u,l),N=LFs.createHash("sha256").update(R).digest("hex"),z=["GOOG4-RSA-SHA256",v,f,N].join(`
|