@spinnaker/titus 0.5.44 → 2025.0.0
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/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/help/titus.help.ts","../src/instance/details/TitusInstanceDns.tsx","../src/instance/details/TitusInstanceInformation.tsx","../src/reactShims/titus.react.injector.ts","../src/serverGroup/details/TitusSecurityGroups.tsx","../src/instance/details/titusInstanceDetailsUtils.ts","../src/instance/details/TitusInstanceDetails.tsx","../src/pipeline/stages/cloneServerGroup/cloneServerGroupExecutionDetails.controller.js","../src/pipeline/stages/cloneServerGroup/titusCloneServerGroupStage.js","../src/pipeline/stages/destroyAsg/titusDestroyAsgStage.js","../src/pipeline/stages/disableAsg/titusDisableAsgStage.js","../src/pipeline/stages/disableCluster/titusDisableClusterStage.js","../src/pipeline/stages/enableAsg/titusEnableAsgStage.js","../src/pipeline/stages/findAmi/titusFindAmiStage.js","../src/pipeline/stages/resizeAsg/titusResizeAsgStage.js","../src/pipeline/stages/runJob/RunJobExecutionDetails.tsx","../src/pipeline/stages/runJob/TitusSecurityGroupPicker.tsx","../src/titus.settings.ts","../src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx","../src/serverGroup/configure/wizard/pages/ServerGroupResources.tsx","../../../node_modules/style-inject/dist/style-inject.es.js","../src/serverGroup/configure/wizard/pages/TitusMapLayout.tsx","../src/serverGroup/details/serviceJobProcesses/ServiceJobProcesses.ts","../src/serverGroup/configure/wizard/pages/ServerGroupParameters.tsx","../src/serverGroup/configure/serverGroupConfiguration.service.ts","../src/serverGroup/configure/wizard/pages/disruptionBudget/PolicyOptions.tsx","../src/serverGroup/configure/wizard/pages/disruptionBudget/RateOptions.tsx","../src/serverGroup/configure/wizard/pages/disruptionBudget/WindowPicker.tsx","../src/serverGroup/configure/wizard/pages/disruptionBudget/JobDisruptionBudget.tsx","../src/pipeline/stages/runJob/TitusRunJobStageConfig.tsx","../src/pipeline/stages/runJob/titusRunJobStage.ts","../src/pipeline/stages/scaleDownCluster/titusScaleDownClusterStage.js","../src/pipeline/stages/shrinkCluster/titusShrinkClusterStage.js","../src/reactShims/titus.react.module.ts","../src/securityGroup/securityGroup.read.service.js","../src/serverGroup/configure/ServerGroupCommandBuilder.js","../src/serverGroup/configure/serverGroup.configure.titus.module.js","../src/serverGroup/configure/wizard/TitusCloneServerGroupModal.tsx","../src/serverGroup/details/resize/useTaskMonitor.ts","../src/serverGroup/details/resize/TitusResizeServerGroupModal.tsx","../../../node_modules/luxon/src/errors.js","../../../node_modules/luxon/src/impl/formats.js","../../../node_modules/luxon/src/impl/util.js","../../../node_modules/luxon/src/impl/english.js","../../../node_modules/luxon/src/impl/formatter.js","../../../node_modules/luxon/src/impl/invalid.js","../../../node_modules/luxon/src/zone.js","../../../node_modules/luxon/src/zones/localZone.js","../../../node_modules/luxon/src/zones/IANAZone.js","../../../node_modules/luxon/src/zones/fixedOffsetZone.js","../../../node_modules/luxon/src/zones/invalidZone.js","../../../node_modules/luxon/src/impl/zoneUtil.js","../../../node_modules/luxon/src/settings.js","../../../node_modules/luxon/src/impl/locale.js","../../../node_modules/luxon/src/impl/regexParser.js","../../../node_modules/luxon/src/duration.js","../../../node_modules/luxon/src/interval.js","../../../node_modules/luxon/src/info.js","../../../node_modules/luxon/src/impl/diff.js","../../../node_modules/luxon/src/impl/digits.js","../../../node_modules/luxon/src/impl/tokenParser.js","../../../node_modules/luxon/src/impl/conversions.js","../../../node_modules/luxon/src/datetime.js","../src/serverGroup/details/scalingActivity/TitusScalingActivitiesModal.tsx","../src/serverGroup/details/TitusCapacityDetailsSection.tsx","../src/serverGroup/details/scalingPolicy/targetTracking/TitusTargetTrackingChart.tsx","../src/serverGroup/details/scalingPolicy/upsert/TitusScalingPolicyCommandBuilderService.ts","../src/serverGroup/details/scalingPolicy/targetTracking/UpsertTargetTrackingModal.tsx","../src/serverGroup/details/scalingPolicy/upsert/UpsertScalingPolicyModal.tsx","../src/serverGroup/details/capacityDetailsSection.component.ts","../src/serverGroup/details/TitusLaunchConfigSection.tsx","../src/serverGroup/details/launchConfigSection.component.ts","../src/serverGroup/details/disruptionBudget/EditDisruptionBudgetModal.tsx","../src/serverGroup/details/disruptionBudget/DisruptionBudgetSection.tsx","../src/serverGroup/details/rollback/rollbackServerGroup.controller.js","../src/serverGroup/details/scalingPolicy/CreateScalingPolicyButton.tsx","../src/serverGroup/details/scalingPolicy/createScalingPolicyButton.component.ts","../src/serverGroup/details/scalingPolicy/TitusCustomScalingPolicy.tsx","../src/serverGroup/details/scalingPolicy/titusCustomScalingPolicy.component.ts","../src/serverGroup/details/scalingPolicy/scalingPolicy.module.ts","../src/serverGroup/details/serviceJobProcesses/ServiceJobProcessesSection.tsx","../src/serverGroup/details/titusPackageDetailsSection.component.ts","../src/serverGroup/details/TitusPackageDetailsSection.tsx","../src/serverGroup/details/titusSecurityGroups.component.ts","../src/serverGroup/details/serverGroupDetails.titus.controller.js","../src/serverGroup/serverGroup.transformer.js","../src/validation/ApplicationNameValidator.ts","../src/titus.module.ts","../src/logo/titus.logo.png"],"sourcesContent":["import { HelpContentsRegistry } from '@spinnaker/core';\n\nconst helpContents: { [key: string]: string } = {\n 'titus.deploy.runtimeLimitSecs': '<p>Maximum amount of time (in seconds) a batch job is allowed to run</p>',\n 'titus.deploy.retries': '<p>Number of times to retry this job</p>',\n 'titus.deploy.propertyFile':\n '<p>(Optional) Configures the name to the file used to pass in properties to later stages in the Spinnaker pipeline. The file must be saved into the /logs directory during execution</p>',\n 'titus.deploy.iamProfile': 'AWS IAM instance profile to assign to this service',\n 'titus.deploy.capacityGroup':\n 'Used by Titus to ensure capacity guarantees, defaults to the application name if not provided',\n 'titus.deploy.command':\n '<p>(Optional) Defines one or more custom commands. If multiple commands are defined, they must be comma delimited with no spaces: <b>cmd1,cmd2</b></p>',\n 'titus.deploy.entrypoint':\n '<p>(Optional) Defines one or more entrypoints. If multiple entrypoints are defined, they must be comma delimited with no spaces: <b>entry1,entry2</b></p>',\n 'titus.deploy.migrationPolicy': 'Defines how the tasks for this job will be migrated during an infrastructure change',\n 'titus.deploy.network': 'Amount of networking bandwidth to allocate in Mbps',\n 'titus.deploy.gpu': 'Number of GPUs to use. WARNING: only use if directed by Titus team, otherwise leave at 0',\n 'titus.deploy.softConstraints':\n 'Soft constraints are enforced on a best efforts basis. For example, if tasks can’t be perfectly balanced across zones, the best available balance is achieved without keeping the tasks pending for execution.',\n 'titus.deploy.hardConstraints':\n 'Constraints must be met and tasks will not be launched if constraint can’t be perfectly met',\n 'titus.deploy.efs':\n 'if completed, allows you to specify an EFS volume to attach to each Task that gets created for the Job',\n 'titus.deploy.mountPoint':\n '(Required) A valid directory to mount the volume, e.g, <samp>/efs</samp>. Invalid locations are <samp>/</samp>, <samp>/data</samp>, and <samp>/logs</samp> as these are reserved directories.',\n 'titus.deploy.efsId': '(Required) The EFS file system ID, e.g. <samp> fs-0208c74b</samp>.',\n 'titus.deploy.efsRelativeMountPoint': '(Optional) Relative dir within FS ID, e.g. <samp>/dirInVol</samp>',\n 'titus.job.waitForCompletion':\n 'if unchecked, marks the stage as successful right away without waiting for the job to complete',\n 'titus.bake.fromGitTrigger': 'If checked, gets git details from the specified git trigger.',\n 'titus.bake.repositoryUrl':\n 'Url to the git repository containing the code to create the Docker image from, <samp>ssh://git@stash.corp.netflix.com:7999/SPKR/orca.git</samp> or <samp>ssh://git@github.com/spinnaker/orca.git</samp>',\n 'titus.bake.repositoryHash': '(Optional) The hashcode to the git commit for the image',\n 'titus.bake.repositoryBranch': '(Optional) The branch in git to build the image from',\n 'titus.bake.repositoryDirectory':\n '(Optional) If specified, will build the image from the Dockerfile contained in this directory. Default to project root.',\n 'titus.bake.imageOrganization':\n '(Optional) The organization to which this image belongs to, e.g. <samp>spinnaker</samp> for <samp>spinnaker/igor</samp>Defaults to none.',\n 'titus.bake.imageName':\n '(Optional) The name for the image, e.g. <samp>igor</samp> for <samp>spinnaker/igor</samp>Defaults to [git project name].[git repo name].',\n 'titus.bake.tags':\n '(Optional) Comma separated. By default, the <samp>latest</samp> tag is updated. Adds additional tags to label this image <samp>1.0.0-unstable,1.0.0-rc1</samp>',\n 'titus.bake.buildParameters':\n '(Optional) Build time variables to be passed to the Docker image. These are the set of values passed to --build-args in the command line.',\n 'titus.serverGroup.subnet': `The subnet selection determines the VPC in which your container will run. Options vary by account and region. The most common are: \n <ul>\n <li><b>titus</b>: instances will be restricted to internal clients with their own NAT gateways</li>\n <li><b>internal</b> instances will be restricted to internal clients (i.e. require VPN access)</li>\n <li><b>external</b> instances will be publicly accessible and running in VPC</li>\n </ul>\n `,\n 'titus.serverGroup.traffic': `\n <p>Enables the \"inService\" scaling process, which is used by Spinnaker and discovery services to determine if the server group is enabled.</p>\n <p>Will be automatically enabled when any non \"custom\" deployment strategy is selected.</p>`,\n 'titus.deploy.imageId':\n 'This value has been manually overridden. To edit this value, please update the <b><i>imageId</i></b> attribute in the stage JSON. Spinnaker expects this to follow the <b><i>name:tag</i></b> format, or the <b><i>imageName</i></b> directly from Jenkins',\n 'titus.deploy.securityGroups':\n 'AWS Security Groups to assign to this service. Security groups are set only if <samp>Allocate IP?</samp> has been selected and are assigned to the Titus AWS Elastic Network Interface.',\n 'titus.job.capacityGroup': 'Capacity Group will default to application name if not specified.',\n 'titus.job.securityGroups': 'AWS Security Groups to assign to this job',\n 'titus.autoscaling.cooldown': `\n <p>The amount of time, in seconds, after a scaling activity completes where previous trigger-related scaling\n activities can influence future scaling events.</p>\n <p>For scale out policies, while the cooldown period is in effect, the capacity that has been added by the\n previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next\n scale out. The intention is to continuously (but not excessively) scale out. For example, an alarm triggers a\n step scaling policy to scale out an Amazon ECS service by 2 tasks, the scaling activity completes successfully,\n and a cooldown period of 5 minutes starts. During the Cooldown period, if the alarm triggers the same policy\n again but at a more aggressive step adjustment to scale out the service by 3 tasks, the 2 tasks that were added\n in the previous scale out event are considered part of that capacity and only 1 additional task is added to the desired count.</p>\n <p>For scale in policies, the cooldown period is used to block subsequent scale in requests until it has expired.\n The intention is to scale in conservatively to protect your application's availability. However, if another\n alarm triggers a scale out policy during the cooldown period after a scale in, Application Auto Scaling scales\n out your scalable target immediately.</p>\n `,\n 'titus.autoscaling.scaleIn.cooldown': `\n <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start.</p>\n <p>The cooldown period is used to block subsequent scale in requests until it has expired. The intention is to scale\n in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy\n during the cooldown period after a scale in, Application Auto Scaling scales out your scalable target immediately.</p>\n `,\n 'titus.autoscaling.scaleOut.cooldown': `\n <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start.</p>\n <p>While the cooldown period is in effect, the capacity that has been added by the previous scale out event that\n initiated the cooldown is calculated as part of the desired capacity for the next scale out. The intention is to\n continuously (but not excessively) scale out.</p>\n `,\n 'titus.disruptionbudget.description': `\n <p>\n The Job Disruption Budget is part of the job descriptor, and defines the behavior of how containers of the\n job can be relocated.\n <a href=\"http://manuals.test.netflix.net/view/titus-docs/mkdocs/master/disruption_budget/\" target=\"_blank\">\n Read the full documentation\n </a>\n </p>\n `,\n};\n\nObject.keys(helpContents).forEach((key) => HelpContentsRegistry.register(key, helpContents[key]));\n","import * as React from 'react';\nimport {\n CollapsibleSection,\n CopyToClipboard,\n LabeledValue,\n LabeledValueList,\n LinkWithClipboard,\n} from '@spinnaker/core';\n\nexport interface ITitusInstanceDnsProps {\n containerIp: string;\n host: string;\n instancePort: string;\n ipv6Address: string;\n}\n\nexport const TitusInstanceDns = ({ containerIp, host, instancePort, ipv6Address }: ITitusInstanceDnsProps) => (\n <CollapsibleSection heading=\"DNS\" defaultExpanded={true}>\n <LabeledValueList className=\"dl-horizontal dl-narrow\">\n {containerIp && (\n <LabeledValue\n label=\"Container IP\"\n value={\n <>\n {containerIp}\n <CopyToClipboard text={containerIp} toolTip=\"Copy container IP to clipboard\" />\n </>\n }\n />\n )}\n {ipv6Address && (\n <LabeledValue\n label=\"Container IPv6\"\n value={<LinkWithClipboard text={ipv6Address} url={`http://${ipv6Address}:${instancePort}`} />}\n />\n )}\n <LabeledValue label=\"Host IP\" value={host} />\n </LabeledValueList>\n </CollapsibleSection>\n);\n","import React from 'react';\n\nimport { InstanceInformation } from '@spinnaker/amazon';\nimport { CollapsibleSection, LabeledValue, LinkWithClipboard } from '@spinnaker/core';\n\nimport type { ITitusInstance } from '../../domain';\n\nexport interface ITitusInstanceInformationProps {\n instance: ITitusInstance;\n titusUiEndpoint: string;\n}\n\nexport const TitusInstanceInformation = ({ instance, titusUiEndpoint }: ITitusInstanceInformationProps) => {\n const { id, jobId } = instance;\n return (\n <CollapsibleSection heading=\"Instance Information\" defaultExpanded={true}>\n <dl className=\"dl-horizontal dl-narrow\">\n <InstanceInformation\n account={instance.account}\n availabilityZone={instance.availabilityZone}\n instanceType={instance.instanceType}\n launchTime={instance.launchTime}\n provider={instance.provider}\n region={instance.region}\n serverGroup={instance.serverGroup}\n />\n <LabeledValue\n label=\"Job Id\"\n value={\n <a href={`${titusUiEndpoint}jobs/${jobId}`} target=\"_blank\">\n {jobId}\n </a>\n }\n />\n <LabeledValue\n label=\"Instance Id\"\n value={<LinkWithClipboard text={id} url={`${titusUiEndpoint}jobs/${jobId}/tasks/${id}`} />}\n />\n </dl>\n </CollapsibleSection>\n );\n};\n","import IInjectorService = angular.auto.IInjectorService;\n\nimport { ReactInject } from '@spinnaker/core';\n\n// prettier-ignore\nexport class TitusReactInject extends ReactInject {\n public get titusServerGroupTransformer() { return this.$injector.get('titusServerGroupTransformer') as any; }\n public get titusServerGroupCommandBuilder() { return this.$injector.get('titusServerGroupCommandBuilder') as any; }\n public get titusServerGroupConfigurationService() { return this.$injector.get('titusServerGroupConfigurationService') as any; }\n public get titusSecurityGroupReader() { return this.$injector.get('titusSecurityGroupReader') as any; }\n\n public initialize($injector: IInjectorService) {\n this.$injector = $injector;\n }\n}\n\nexport const TitusReactInjector: TitusReactInject = new TitusReactInject();\n","import { UISref } from '@uirouter/react';\nimport { UIRouterContextComponent } from '@uirouter/react-hybrid';\nimport { sortBy } from 'lodash';\nimport React from 'react';\n\nimport type { Application, ISecurityGroup } from '@spinnaker/core';\nimport { AccountService, CollapsibleSection, FirewallLabels, ReactInjector } from '@spinnaker/core';\nimport type { ITitusServerGroupView } from '../../domain';\nimport { TitusReactInjector } from '../../reactShims';\n\nexport interface ITitusServerGroupDetailsSectionProps {\n app: Application;\n serverGroup: ITitusServerGroupView;\n}\n\nexport interface ISecurityGroupsDetailsSectionState {\n securityGroups?: ISecurityGroup[];\n}\n\nexport class TitusSecurityGroupsDetailsSection extends React.Component<\n ITitusServerGroupDetailsSectionProps,\n ISecurityGroupsDetailsSectionState\n> {\n constructor(props: ITitusServerGroupDetailsSectionProps) {\n super(props);\n this.state = {};\n }\n\n public componentDidMount() {\n this.configureSecurityGroups(this.props);\n }\n\n private configureSecurityGroups(props: ITitusServerGroupDetailsSectionProps): void {\n const { app, serverGroup } = props;\n const { region } = serverGroup;\n if (app.securityGroupsIndex && serverGroup.accountDetails) {\n const securityGroups = serverGroup.securityGroups.map((sgId) =>\n TitusReactInjector.titusSecurityGroupReader.resolveIndexedSecurityGroup(\n app.securityGroupsIndex,\n { account: serverGroup.accountDetails.awsAccount, region },\n sgId,\n ),\n );\n this.setState({ securityGroups });\n } else {\n AccountService.listAllAccounts('titus').then((accounts) => {\n const titusAccount = accounts.find((a) => a.name === serverGroup.account);\n if (titusAccount && titusAccount.awsAccount) {\n ReactInjector.securityGroupReader.getAllSecurityGroups().then((allSecurityGroups) => {\n const regionalGroups = allSecurityGroups[titusAccount.awsAccount]['aws'][region];\n const securityGroups = serverGroup.securityGroups\n .map((sgId) => regionalGroups.find((rg) => rg.id === sgId))\n .filter((g) => g)\n .map((sg) => ({\n account: titusAccount.awsAccount,\n name: sg.name,\n id: sg.id,\n vpcId: sg.vpcId,\n }));\n this.setState({ securityGroups });\n });\n }\n });\n }\n }\n\n public componentWillReceiveProps(nextProps: ITitusServerGroupDetailsSectionProps): void {\n this.configureSecurityGroups(nextProps);\n }\n\n public render(): JSX.Element {\n const { serverGroup } = this.props;\n const { securityGroups } = this.state;\n // prevent a reflow of the details panel when the security groups actually load by rendering a placeholder\n const initializing = !securityGroups && (serverGroup.securityGroups || []).length;\n\n return (\n <CollapsibleSection heading={FirewallLabels.get('Firewalls')} outerDivClassName=\"\">\n <ul>\n {initializing && serverGroup.securityGroups.map((sgId) => <li key={sgId}>...</li>)}\n <UIRouterContextComponent>\n <>\n {sortBy(securityGroups, 'name').map((securityGroup) => (\n <li key={securityGroup.name}>\n <UISref\n to=\"^.firewallDetails\"\n params={{\n name: securityGroup.name,\n accountId: securityGroup.account,\n region: serverGroup.region,\n vpcId: securityGroup.vpcId,\n provider: 'aws',\n }}\n >\n <a>\n {securityGroup.name} ({securityGroup.id})\n </a>\n </UISref>\n </li>\n ))}\n </>\n </UIRouterContextComponent>\n </ul>\n </CollapsibleSection>\n );\n }\n}\n","import type {\n IAmazonApplicationLoadBalancer,\n IAmazonHealth,\n IAmazonNetworkLoadBalancer,\n IAmazonTargetGroupHealth,\n ITargetGroup,\n} from '@spinnaker/amazon';\nimport { getAllTargetGroups } from '@spinnaker/amazon';\nimport type { Action, Application, IInstance, IJob } from '@spinnaker/core';\nimport { ConfirmationModalService, InstanceWriter, ReactInjector } from '@spinnaker/core';\n\nexport const applyTargetGroupInfoToHealthMetric = (\n metricGroups: IAmazonTargetGroupHealth[],\n targetGroups: ITargetGroup[],\n account: string,\n) => {\n return metricGroups.map((tg) => {\n const group = targetGroups.find(\n (g) => (g.name === tg.name || g.name === tg.targetGroupName) && g.account === account,\n );\n const useTrafficPort = group?.healthCheckPort === 'traffic-port' || !group?.healthCheckPort;\n return {\n ...tg,\n name: group?.name,\n healthCheckPath: group\n ? `:${useTrafficPort ? group?.port : group.healthCheckPort}${group?.healthCheckPath || ''}`\n : undefined,\n healthCheckProtocol: group?.healthCheckProtocol?.toLowerCase(),\n };\n });\n};\n\nexport const extractHealthMetrics = (\n health: IAmazonHealth[],\n loadBalancers: IAmazonApplicationLoadBalancer[] | IAmazonNetworkLoadBalancer[],\n account: string,\n): IAmazonHealth[] => {\n const displayableMetrics = (health || []).filter((m) => m.state !== 'Unknown');\n const allTargetGroups = getAllTargetGroups(loadBalancers);\n\n return displayableMetrics.map((metric) => {\n if (metric.type === 'TargetGroup') {\n const augmentedGroups = applyTargetGroupInfoToHealthMetric(metric.targetGroups, allTargetGroups, account);\n return { ...metric, targetGroups: augmentedGroups } as IAmazonHealth;\n }\n\n return metric;\n });\n};\n\nconst terminateInstance = (instance: IInstance, app: Application) => {\n return () => {\n const taskMonitorConfig = {\n application: app,\n title: `Terminating ${instance.id}`,\n onTaskComplete: () => {\n if (ReactInjector.$state.includes('**.instanceDetails', { id: instance.id })) {\n ReactInjector.$state.go('^');\n }\n },\n };\n\n const submitMethod = () => {\n const params: IJob = { cloudProvider: 'titus' };\n if (instance.serverGroup) {\n params.serverGroupName = instance.serverGroup;\n }\n return InstanceWriter.terminateInstance(instance, app, params);\n };\n\n ConfirmationModalService.confirm({\n header: `Really terminate ${instance.id}?`,\n buttonText: `Terminate ${instance.id}`,\n account: instance.account,\n taskMonitorConfig,\n submitMethod,\n });\n };\n};\n\nconst terminateInstanceAndShrinkServerGroup = (instance: IInstance, app: Application) => {\n return () => {\n const taskMonitorConfig = {\n application: app,\n title: `Terminating ${instance.id} and shrinking server group`,\n onTaskComplete: () => {\n if (ReactInjector.$state.includes('**.instanceDetails', { instanceId: instance.id })) {\n ReactInjector.$state.go('^');\n }\n },\n };\n\n const submitMethod = () => {\n return InstanceWriter.terminateInstancesAndShrinkServerGroups(\n [\n {\n cloudProvider: instance.cloudProvider,\n instanceIds: [instance.id],\n account: instance.account,\n region: instance.region,\n serverGroup: instance.serverGroup,\n instances: [instance],\n },\n ],\n app,\n );\n };\n\n ConfirmationModalService.confirm({\n header: `Really terminate ${instance.id} and shrink ${instance.serverGroup}?`,\n buttonText: `Terminate ${instance.id} and shrink ${instance.serverGroup}`,\n account: instance.account,\n taskMonitorConfig,\n submitMethod,\n });\n };\n};\n\nconst enableInstanceInDiscovery = (instance: IInstance, app: Application) => {\n return () => {\n const taskMonitorConfig = {\n application: app,\n title: `Enabling ${instance.id} in discovery`,\n };\n\n const submitMethod = () => InstanceWriter.enableInstanceInDiscovery(instance, app);\n\n ConfirmationModalService.confirm({\n header: `Really enable ${instance.id} in discovery?`,\n buttonText: `Enable ${instance.id}`,\n account: instance.account,\n taskMonitorConfig,\n submitMethod,\n });\n };\n};\n\nconst disableInstanceInDiscovery = (instance: IInstance, app: Application) => {\n return () => {\n const taskMonitorConfig = {\n application: app,\n title: `Disabling ${instance.id} in discovery`,\n };\n\n const submitMethod = () => InstanceWriter.disableInstanceInDiscovery(instance, app);\n\n ConfirmationModalService.confirm({\n header: `Really disable ${instance.id} in discovery?`,\n buttonText: `Disable ${instance.id}`,\n account: instance.account,\n taskMonitorConfig,\n submitMethod,\n });\n };\n};\n\nexport const buildTaskActions = (instance: IInstance, app: Application): Action[] => {\n const taskActions = [\n { label: 'Terminate', triggerAction: terminateInstance(instance, app) },\n { label: 'Terminate and Shrink Server Group', triggerAction: terminateInstanceAndShrinkServerGroup(instance, app) },\n ];\n\n const discoveryHealth = (instance.health || []).filter((h) => h.type === 'Discovery');\n\n if (discoveryHealth.length && discoveryHealth[0].state === 'OutOfService') {\n taskActions.push({\n label: 'Enable in Discovery',\n triggerAction: enableInstanceInDiscovery(instance, app),\n });\n }\n\n const hasHealthState = (discoveryHealth || []).some((h) => h.state === 'Up' || h.state === 'Down');\n if (hasHealthState) {\n taskActions.push({\n label: 'Disable in Discovery',\n triggerAction: disableInstanceInDiscovery(instance, app),\n });\n }\n\n return taskActions;\n};\n","import * as React from 'react';\n\nimport type { IAmazonHealth } from '@spinnaker/amazon';\nimport { InstanceStatus } from '@spinnaker/amazon';\nimport type {\n Action,\n Application,\n IAccountDetails,\n IInstanceDetailsProps,\n IMoniker,\n IOverridableProps,\n} from '@spinnaker/core';\nimport {\n AccountService,\n CollapsibleSection,\n ConsoleOutputLink,\n InstanceActions,\n InstanceDetailsHeader,\n InstanceDetailsPane,\n InstanceInsights,\n InstanceLinks,\n InstanceReader,\n overridableComponent,\n RecentHistoryService,\n SETTINGS,\n Spinner,\n useData,\n} from '@spinnaker/core';\n\nimport { TitusInstanceDns } from './TitusInstanceDns';\nimport { TitusInstanceInformation } from './TitusInstanceInformation';\nimport type { ITitusInstance, ITitusServerGroup, ITitusServerGroupView } from '../../domain';\nimport { TitusSecurityGroupsDetailsSection } from '../../serverGroup/details/TitusSecurityGroups';\nimport { buildTaskActions, extractHealthMetrics } from './titusInstanceDetailsUtils';\n\nexport interface ITitusInstanceDetailsProps extends IInstanceDetailsProps {\n instance: { instanceId: string };\n}\n\nexport interface ITitusInstanceDetailsContentProps {\n account: IAccountDetails;\n actions: Action[];\n app: Application;\n baseIpAddress: string;\n environment: string;\n healthMetrics: IAmazonHealth[];\n instance: ITitusInstance;\n instanceId: string;\n instancePort: string;\n loading: boolean;\n moniker: IMoniker;\n serverGroup: ITitusServerGroup;\n region: string;\n}\n\nconst TitusInstanceDetailsContent = ({\n account,\n actions,\n app,\n baseIpAddress,\n environment,\n healthMetrics,\n instance,\n instanceId,\n instancePort,\n loading,\n moniker,\n serverGroup,\n region,\n}: ITitusInstanceDetailsContentProps) => {\n const defaultSshLink = `ssh -t ${account?.bastionHost} 'titus-ssh -region ${region} ${instanceId}'`;\n return (\n <div className=\"details-panel\">\n <div className=\"header\">\n <InstanceDetailsHeader\n healthState={instance.healthState}\n instanceId={instanceId}\n loading={loading}\n sshLink={defaultSshLink}\n standalone={app.isStandalone}\n />\n <div className=\"actions\">\n <InstanceActions actions={actions} />\n {Boolean(instance?.insightActions?.length) && (\n <InstanceInsights analytics={true} insights={instance.insightActions} instance={instance} />\n )}\n </div>\n </div>\n <div className=\"content\">\n <TitusInstanceInformation instance={instance} titusUiEndpoint={instance.titusUiEndpoint} />\n <InstanceStatus\n healthMetrics={healthMetrics}\n healthState={instance.healthState}\n metricTypes={['TargetGroup']}\n privateIpAddress={instance.privateIpAddress}\n />\n <TitusInstanceDns\n containerIp={instance.placement?.containerIp}\n host={instance.placement?.host}\n instancePort={instancePort}\n ipv6Address={instance.ipv6Address}\n />\n <div className=\"collapsible-section\">\n <TitusSecurityGroupsDetailsSection app={app} serverGroup={serverGroup as ITitusServerGroupView} />\n </div>\n <CollapsibleSection heading=\"Console Output\">\n <ConsoleOutputLink instance={instance} />\n </CollapsibleSection>\n <InstanceLinks\n address={baseIpAddress}\n application={app}\n instance={instance}\n environment={environment}\n moniker={moniker}\n />\n </div>\n </div>\n );\n};\n\nconst OverridableTitusInstanceDetailsContent = overridableComponent<\n ITitusInstanceDetailsContentProps & IOverridableProps,\n typeof TitusInstanceDetailsContent\n>(TitusInstanceDetailsContent, 'titus.instance.details.content');\n\nexport const TitusInstanceDetails = ({ app, environment, instance, moniker }: ITitusInstanceDetailsProps) => {\n const { instanceId } = instance;\n const serverGroup = app.serverGroups.data.find((sg: ITitusServerGroup) =>\n sg.instances.some((possibleMatch) => possibleMatch.id === instanceId),\n );\n const { account, region } = serverGroup;\n\n const retrieveInstance = () => {\n RecentHistoryService.addExtraDataToLatest('instances', {\n account,\n region,\n serverGroup: serverGroup.name,\n });\n\n return Promise.all([\n InstanceReader.getInstanceDetails(account, region, instanceId).then((instance) => ({\n ...instance,\n account,\n region,\n })),\n AccountService.getAccountDetails(account),\n ]);\n };\n\n const addTitusUiEndpoint = (result: [ITitusInstance, IAccountDetails]) => {\n const [instance, account] = result;\n const regionDetails = (account?.regions || []).find((r) => r.name === region);\n\n return [{ titusUiEndpoint: regionDetails?.endpoint, ...instance }, account];\n };\n\n const {\n result: [currentInstance, currentAccount],\n status,\n } = useData(\n () => {\n if (app.isStandalone) {\n return retrieveInstance().then((result) => addTitusUiEndpoint(result as [ITitusInstance, IAccountDetails]));\n } else {\n return app.serverGroups\n .ready()\n .then(retrieveInstance)\n .then((result: [ITitusInstance, IAccountDetails]) => addTitusUiEndpoint(result));\n }\n },\n [{} as ITitusInstance, {} as IAccountDetails],\n [instanceId, serverGroup],\n );\n\n const taskActions = buildTaskActions(currentInstance, app);\n const healthMetrics = extractHealthMetrics(\n currentInstance.health as IAmazonHealth[],\n app.loadBalancers.data,\n currentAccount.awsAccount,\n );\n\n const isLoading = status === 'PENDING';\n const instancePort = app.attributes?.instancePort || SETTINGS.defaultInstancePort || '80';\n const baseIpAddress = currentInstance.placement?.containerIp || currentInstance?.placement?.host;\n\n if (isLoading) {\n return (\n <InstanceDetailsPane>\n <div className=\"horizontal center middle\">\n <Spinner size=\"small\" />\n </div>\n </InstanceDetailsPane>\n );\n }\n\n if (!currentInstance?.id) {\n return (\n <div className=\"details-panel\">\n <div className=\"header\">\n <InstanceDetailsPane>\n <div className=\"header-text horizontal middle\">\n <h3 className=\"horizontal middle space-between flex-1\">{instance.instanceId}</h3>\n </div>\n </InstanceDetailsPane>\n </div>\n <div className=\"content\">\n <div className=\"content-section\">\n <div className=\"content-body text-center\">\n <h3>Instance not found.</h3>\n </div>\n </div>\n </div>\n </div>\n );\n }\n\n return (\n <OverridableTitusInstanceDetailsContent\n account={currentAccount}\n actions={taskActions}\n app={app}\n baseIpAddress={baseIpAddress}\n environment={environment}\n healthMetrics={healthMetrics}\n instance={currentInstance as ITitusInstance}\n instanceId={instance.instanceId}\n instancePort={instancePort}\n moniker={moniker}\n loading={isLoading}\n serverGroup={serverGroup}\n region={region}\n />\n );\n};\n","'use strict';\n\nimport UIROUTER_ANGULARJS from '@uirouter/angularjs';\nimport { module } from 'angular';\nimport _ from 'lodash';\n\nimport { ClusterState, UrlBuilder } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_CLONESERVERGROUP_CLONESERVERGROUPEXECUTIONDETAILS_CONTROLLER =\n 'spinnaker.titus.pipeline.stage.cloneServerGroup.executionDetails.controller';\nexport const name = TITUS_PIPELINE_STAGES_CLONESERVERGROUP_CLONESERVERGROUPEXECUTIONDETAILS_CONTROLLER; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_CLONESERVERGROUP_CLONESERVERGROUPEXECUTIONDETAILS_CONTROLLER, [\n UIROUTER_ANGULARJS,\n]).controller('titusCloneServerGroupExecutionDetailsCtrl', [\n '$scope',\n '$stateParams',\n 'executionDetailsSectionService',\n function ($scope, $stateParams, executionDetailsSectionService) {\n $scope.configSections = ['cloneServerGroupConfig', 'taskStatus'];\n\n const initialized = () => {\n const resultObjects = context['kato.tasks'][0].resultObjects;\n $scope.detailsSection = $stateParams.details;\n\n const context = $scope.stage.context || {};\n const results = [];\n\n function addDeployedArtifacts(key) {\n const deployedArtifacts = _.find(resultObjects, key);\n if (deployedArtifacts) {\n _.forEach(deployedArtifacts[key], (serverGroupNameAndRegion) => {\n if (serverGroupNameAndRegion.includes(':')) {\n const [region, serverGroupName] = serverGroupNameAndRegion.split(':');\n const result = {\n type: 'serverGroups',\n application: context.application,\n serverGroup: serverGroupName,\n account: context.credentials,\n region: region,\n provider: 'titus',\n project: $stateParams.project,\n };\n result.href = UrlBuilder.buildFromMetadata(result);\n results.push(result);\n }\n });\n }\n }\n\n if (context && context['kato.tasks'] && context['kato.tasks'].length) {\n if (resultObjects && resultObjects.length) {\n addDeployedArtifacts('serverGroupNames');\n }\n }\n $scope.deployed = results;\n };\n\n this.overrideFiltersForUrl = (r) => ClusterState.filterService.overrideFiltersForUrl(r);\n\n const initialize = () => executionDetailsSectionService.synchronizeSection($scope.configSections, initialized);\n\n initialize();\n\n $scope.$on('$stateChangeSuccess', initialize);\n },\n]);\n","'use strict';\n\nimport { module } from 'angular';\nimport _ from 'lodash';\n\nimport { AccountService, NameUtils, Registry, StageConstants } from '@spinnaker/core';\nimport { TITUS_PIPELINE_STAGES_CLONESERVERGROUP_CLONESERVERGROUPEXECUTIONDETAILS_CONTROLLER } from './cloneServerGroupExecutionDetails.controller';\n\nexport const TITUS_PIPELINE_STAGES_CLONESERVERGROUP_TITUSCLONESERVERGROUPSTAGE =\n 'spinnaker.titus.pipeline.stage.cloneServerGroupStage';\nexport const name = TITUS_PIPELINE_STAGES_CLONESERVERGROUP_TITUSCLONESERVERGROUPSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_CLONESERVERGROUP_TITUSCLONESERVERGROUPSTAGE, [\n TITUS_PIPELINE_STAGES_CLONESERVERGROUP_CLONESERVERGROUPEXECUTIONDETAILS_CONTROLLER,\n])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'cloneServerGroup',\n cloudProvider: 'titus',\n templateUrl: require('./cloneServerGroupStage.html'),\n executionDetailsUrl: require('./cloneServerGroupExecutionDetails.html'),\n executionStepLabelUrl: require('./cloneServerGroupStepLabel.html'),\n validators: [\n { type: 'requiredField', fieldName: 'targetCluster', fieldLabel: 'cluster' },\n { type: 'requiredField', fieldName: 'target' },\n { type: 'requiredField', fieldName: 'region' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusCloneServerGroupStageCtrl', [\n '$scope',\n function ($scope) {\n const stage = $scope.stage;\n\n $scope.viewState = {\n accountsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then((accounts) => {\n $scope.accounts = accounts;\n $scope.viewState.accountsLoaded = true;\n });\n\n this.cloneTargets = StageConstants.TARGET_LIST;\n stage.target = stage.target || this.cloneTargets[0].val;\n stage.application = $scope.application.name;\n stage.cloudProvider = 'titus';\n stage.cloudProviderType = 'titus';\n stage.viewState = {\n mode: 'editPipeline',\n };\n\n if (\n stage.isNew &&\n $scope.application.attributes.platformHealthOnlyShowOverride &&\n $scope.application.attributes.platformHealthOnly\n ) {\n stage.interestingHealthProviderNames = ['Titus'];\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n\n this.targetClusterUpdated = () => {\n if (stage.targetCluster) {\n const clusterName = NameUtils.parseServerGroupName(stage.targetCluster);\n stage.stack = clusterName.stack;\n stage.freeFormDetails = clusterName.freeFormDetails;\n } else {\n stage.stack = '';\n stage.freeFormDetails = '';\n }\n };\n\n $scope.$watch('stage.targetCluster', this.targetClusterUpdated);\n\n this.removeCapacity = () => {\n delete stage.capacity;\n };\n\n if (!_.has(stage, 'useSourceCapacity')) {\n stage.useSourceCapacity = true;\n }\n\n this.toggleSuspendedProcess = (process) => {\n stage.suspendedProcesses = stage.suspendedProcesses || [];\n const processIndex = stage.suspendedProcesses.indexOf(process);\n if (processIndex === -1) {\n stage.suspendedProcesses.push(process);\n } else {\n stage.suspendedProcesses.splice(processIndex, 1);\n }\n };\n\n this.processIsSuspended = (process) => {\n return stage.suspendedProcesses && stage.suspendedProcesses.includes(process);\n };\n\n this.onRedBlackFieldChange = (key, value) => {\n _.set(stage, key, value);\n };\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry, StageConstants } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_DESTROYASG_TITUSDESTROYASGSTAGE = 'spinnaker.titus.pipeline.stage.destroyAsgStage';\nexport const name = TITUS_PIPELINE_STAGES_DESTROYASG_TITUSDESTROYASGSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_DESTROYASG_TITUSDESTROYASGSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'destroyServerGroup',\n alias: 'destroyAsg',\n cloudProvider: 'titus',\n templateUrl: require('./destroyAsgStage.html'),\n executionStepLabelUrl: require('./destroyAsgStepLabel.html'),\n accountExtractor: (stage) => [stage.context.credentials],\n configAccountExtractor: (stage) => [stage.credentials],\n validators: [\n {\n type: 'targetImpedance',\n message:\n 'This pipeline will attempt to destroy a server group without deploying a new version into the same cluster.',\n },\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'target' },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusDestroyAsgStageCtrl', [\n '$scope',\n function ($scope) {\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n $scope.regions = ['us-east-1', 'us-west-1', 'eu-west-1', 'us-west-2'];\n\n $scope.targets = StageConstants.TARGET_LIST;\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (!stage.target) {\n stage.target = $scope.targets[0].val;\n }\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry, StageConstants } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_DISABLEASG_TITUSDISABLEASGSTAGE = 'spinnaker.titus.pipeline.stage.disableAsgStage';\nexport const name = TITUS_PIPELINE_STAGES_DISABLEASG_TITUSDISABLEASGSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_DISABLEASG_TITUSDISABLEASGSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'disableServerGroup',\n alias: 'disableAsg',\n cloudProvider: 'titus',\n templateUrl: require('./disableAsgStage.html'),\n executionStepLabelUrl: require('./disableAsgStepLabel.html'),\n validators: [\n {\n type: 'targetImpedance',\n message:\n 'This pipeline will attempt to disable a server group without deploying a new version into the same cluster.',\n },\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'target' },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusDisableAsgStageCtrl', [\n '$scope',\n function ($scope) {\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n $scope.targets = StageConstants.TARGET_LIST;\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (\n stage.isNew &&\n $scope.application.attributes.platformHealthOnlyShowOverride &&\n $scope.application.attributes.platformHealthOnly\n ) {\n stage.interestingHealthProviderNames = ['Titus'];\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (!stage.target) {\n stage.target = $scope.targets[0].val;\n }\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_DISABLECLUSTER_TITUSDISABLECLUSTERSTAGE =\n 'spinnaker.titus.pipeline.stage.disableClusterStage';\nexport const name = TITUS_PIPELINE_STAGES_DISABLECLUSTER_TITUSDISABLECLUSTERSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_DISABLECLUSTER_TITUSDISABLECLUSTERSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'disableCluster',\n cloudProvider: 'titus',\n templateUrl: require('./disableClusterStage.html'),\n executionConfigSections: ['disableClusterConfig', 'taskStatus'],\n validators: [\n { type: 'requiredField', fieldName: 'cluster' },\n {\n type: 'requiredField',\n fieldName: 'remainingEnabledServerGroups',\n fieldLabel: 'Keep [X] enabled Server Groups',\n },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusDisableClusterStageCtrl', [\n '$scope',\n function ($scope) {\n const ctrl = this;\n\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n ctrl.reset = () => {\n ctrl.accountUpdated();\n ctrl.resetSelectedCluster();\n };\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (\n stage.isNew &&\n $scope.application.attributes.platformHealthOnlyShowOverride &&\n $scope.application.attributes.platformHealthOnly\n ) {\n stage.interestingHealthProviderNames = ['Titus'];\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (stage.remainingEnabledServerGroups === undefined) {\n stage.remainingEnabledServerGroups = 1;\n }\n\n ctrl.pluralize = function (str, val) {\n if (val === 1) {\n return str;\n }\n return str + 's';\n };\n\n if (stage.preferLargerOverNewer === undefined) {\n stage.preferLargerOverNewer = 'false';\n }\n stage.preferLargerOverNewer = stage.preferLargerOverNewer.toString();\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry, StageConstants } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_ENABLEASG_TITUSENABLEASGSTAGE = 'spinnaker.titus.pipeline.stage.enableAsgStage';\nexport const name = TITUS_PIPELINE_STAGES_ENABLEASG_TITUSENABLEASGSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_ENABLEASG_TITUSENABLEASGSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'enableServerGroup',\n alias: 'enableAsg',\n cloudProvider: 'titus',\n templateUrl: require('./enableAsgStage.html'),\n executionStepLabelUrl: require('./enableAsgStepLabel.html'),\n validators: [\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'target' },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusEnableAsgStageCtrl', [\n '$scope',\n function ($scope) {\n const ctrl = this;\n\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n ctrl.reset = () => {\n ctrl.accountUpdated();\n ctrl.resetSelectedCluster();\n };\n\n $scope.targets = StageConstants.TARGET_LIST;\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (\n stage.isNew &&\n $scope.application.attributes.platformHealthOnlyShowOverride &&\n $scope.application.attributes.platformHealthOnly\n ) {\n stage.interestingHealthProviderNames = ['Titus'];\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (!stage.target) {\n stage.target = $scope.targets[0].val;\n }\n\n $scope.$watch('stage.credentials', $scope.accountUpdated);\n },\n ]);\n","'use strict';\n\nimport * as angular from 'angular';\n\nimport { AccountService, Registry } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_FINDAMI_TITUSFINDAMISTAGE = 'spinnaker.titus.pipeline.stage.findAmiStage';\nexport const name = TITUS_PIPELINE_STAGES_FINDAMI_TITUSFINDAMISTAGE; // for backwards compatibility\nangular\n .module(TITUS_PIPELINE_STAGES_FINDAMI_TITUSFINDAMISTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'findImage',\n alias: 'findAmi',\n cloudProvider: 'titus',\n templateUrl: require('./findAmiStage.html'),\n validators: [\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'selectionStrategy', fieldLabel: 'Server Group Selection' },\n { type: 'requiredField', fieldName: 'credentials' },\n ],\n });\n })\n .controller('titusFindAmiStageCtrl', [\n '$scope',\n function ($scope) {\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n $scope.selectionStrategies = [\n {\n label: 'Largest',\n val: 'LARGEST',\n description: 'When multiple server groups exist, prefer the server group with the most instances',\n },\n {\n label: 'Newest',\n val: 'NEWEST',\n description: 'When multiple server groups exist, prefer the newest',\n },\n {\n label: 'Oldest',\n val: 'OLDEST',\n description: 'When multiple server groups exist, prefer the oldest',\n },\n {\n label: 'Fail',\n val: 'FAIL',\n description: 'When multiple server groups exist, fail',\n },\n ];\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n stage.selectionStrategy = stage.selectionStrategy || $scope.selectionStrategies[0].val;\n\n if (angular.isUndefined(stage.onlyEnabled)) {\n stage.onlyEnabled = true;\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n $scope.$watch('stage.credentials', $scope.accountUpdated);\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry, StageConstants } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_RESIZEASG_TITUSRESIZEASGSTAGE = 'spinnaker.titus.pipeline.stage.resizeAsgStage';\nexport const name = TITUS_PIPELINE_STAGES_RESIZEASG_TITUSRESIZEASGSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_RESIZEASG_TITUSRESIZEASGSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'resizeServerGroup',\n alias: 'resizeAsg',\n cloudProvider: 'titus',\n templateUrl: require('./resizeAsgStage.html'),\n executionConfigSections: ['resizeServerGroupConfig', 'taskStatus'],\n executionStepLabelUrl: require('./resizeAsgStepLabel.html'),\n accountExtractor: (stage) => [stage.context.credentials],\n configAccountExtractor: (stage) => [stage.credentials],\n validators: [\n {\n type: 'targetImpedance',\n message:\n 'This pipeline will attempt to resize a server group without deploying a new version into the same cluster.',\n },\n { type: 'requiredField', fieldName: 'target' },\n { type: 'requiredField', fieldName: 'action' },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusResizeAsgStageCtrl', [\n '$scope',\n function ($scope) {\n const ctrl = this;\n\n const stage = $scope.stage;\n\n $scope.viewState = {\n accountsLoaded: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.viewState.accountsLoaded = true;\n });\n\n $scope.resizeTargets = StageConstants.TARGET_LIST;\n\n $scope.scaleActions = [\n {\n label: 'Scale Up',\n val: 'scale_up',\n },\n {\n label: 'Scale Down',\n val: 'scale_down',\n },\n {\n label: 'Scale to Cluster Size',\n val: 'scale_to_cluster',\n },\n {\n label: 'Scale to Exact Size',\n val: 'scale_exact',\n },\n ];\n\n $scope.resizeTypes = [\n {\n label: 'Percentage',\n val: 'pct',\n },\n {\n label: 'Incremental',\n val: 'incr',\n },\n ];\n\n stage.capacity = stage.capacity || {};\n stage.regions = stage.regions || [];\n stage.target = stage.target || $scope.resizeTargets[0].val;\n stage.action = stage.action || $scope.scaleActions[0].val;\n stage.resizeType = stage.resizeType || $scope.resizeTypes[0].val;\n if (!stage.action && stage.resizeType === 'exact') {\n stage.action = 'scale_exact';\n }\n stage.cloudProvider = 'titus';\n\n if (\n stage.isNew &&\n $scope.application.attributes.platformHealthOnlyShowOverride &&\n $scope.application.attributes.platformHealthOnly\n ) {\n stage.interestingHealthProviderNames = ['Titus'];\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n ctrl.updateResizeType = function () {\n if (stage.action === 'scale_exact') {\n stage.resizeType = 'exact';\n delete stage.scalePct;\n delete stage.scaleNum;\n } else {\n stage.capacity = {};\n if (stage.resizeType === 'pct') {\n delete stage.scaleNum;\n } else {\n stage.resizeType = 'incr';\n delete stage.scalePct;\n stage.scaleNum = stage.scaleNum || 0;\n }\n }\n };\n },\n ]);\n","import { get } from 'lodash';\nimport React from 'react';\n\nimport type { IExecutionDetailsSectionProps } from '@spinnaker/core';\nimport {\n AccountService,\n AccountTag,\n ExecutionDetailsSection,\n LabeledValue,\n LabeledValueList,\n Markdown,\n RenderOutputFile,\n StageFailureMessage,\n} from '@spinnaker/core';\n\nexport interface IRunJobExecutionDetailsState {\n titusUiEndpoint?: string;\n}\n\nexport class RunJobExecutionDetails extends React.Component<\n IExecutionDetailsSectionProps,\n IRunJobExecutionDetailsState\n> {\n public static title = 'runJobConfig';\n private mounted = false;\n\n constructor(props: IExecutionDetailsSectionProps) {\n super(props);\n this.state = {};\n }\n\n public componentDidMount() {\n this.mounted = true;\n this.setEndpoint();\n }\n\n private setEndpoint(): void {\n const { context } = this.props.stage;\n AccountService.getAccountDetails(context.credentials).then((details) => {\n const titusUiEndpoint = details.regions.find((r) => r.name === context.cluster.region).endpoint;\n this.mounted && this.setState({ titusUiEndpoint });\n });\n }\n\n private formatEntryPoint(entryPointList: string[], entryPoint: string): string {\n if (entryPointList && Array.isArray(entryPointList) && entryPointList.length > 0) {\n return entryPointList.length === 1 ? entryPointList[0] : JSON.stringify(entryPointList);\n }\n return entryPoint;\n }\n\n public componentWillUnmount() {\n this.mounted = false;\n }\n\n public componentWillReceiveProps() {\n this.setEndpoint();\n }\n\n public render() {\n const { stage, current, name } = this.props;\n const { titusUiEndpoint } = this.state;\n const { context } = stage;\n const { cluster } = context;\n const { resources, env, entryPoint, entryPointList } = cluster;\n const jobId = cluster ? get(context['deploy.jobs'], cluster.region, [])[0] : null;\n const taskId = get(context, 'jobStatus.completionDetails.taskId');\n\n const normalizedEntryPoint = this.formatEntryPoint(entryPointList, entryPoint);\n\n return (\n <ExecutionDetailsSection name={name} current={current}>\n <div className=\"row\">\n <div className=\"col-md-9\">\n <LabeledValueList className=\"dl-narrow dl-horizontal\">\n <LabeledValue label=\"Account\" value={<AccountTag account={context.credentials} />} />\n {cluster && (\n <>\n <LabeledValue label=\"Image\" value={cluster.imageId} />\n {normalizedEntryPoint && <LabeledValue label=\"Entrypoint\" value={normalizedEntryPoint} />}\n </>\n )}\n {jobId && (\n <LabeledValue\n label=\"Titus Job Id\"\n value={<Markdown message={`[${jobId}](${titusUiEndpoint}jobs/${jobId})`} />}\n />\n )}\n {taskId && (\n <LabeledValue\n label=\"Titus Task Id\"\n value={<Markdown message={`[${taskId}](${titusUiEndpoint}jobs/${jobId}/tasks/${taskId})`} />}\n />\n )}\n {resources && Object.keys(resources) && (\n <LabeledValue\n label=\"Resources\"\n value={\n <ul className=\"nostyle\">\n {Object.keys(resources).map((key) => (\n <li key={key}>\n {key}: {resources[key]}\n </li>\n ))}\n </ul>\n }\n />\n )}\n </LabeledValueList>\n </div>\n </div>\n {env && Object.keys(env) && (\n <div className=\"row\">\n <div className=\"col-md-12\">\n <h5 style={{ marginBottom: 0, paddingBottom: '5px' }}>Environment Variables</h5>\n <LabeledValueList>\n {Object.keys(env).map((key) => (\n <LabeledValue key={key} label={key} value={env[key]} />\n ))}\n </LabeledValueList>\n </div>\n </div>\n )}\n {context.propertyFileContents && (\n <div className=\"row\">\n <div className=\"col-md-12\">\n <h5 style={{ marginBottom: '0px', paddingBottom: '5px' }}>Property File</h5>\n <RenderOutputFile outputFileObject={context.propertyFileContents} />\n </div>\n </div>\n )}\n <StageFailureMessage\n stage={stage}\n message={stage.failureMessage || get(context, 'completionDetails.message')}\n />\n\n {taskId && (\n <div className=\"row\">\n <div className=\"col-md-12\">\n <div className=\"well alert alert-info\">\n <a target=\"_blank\" href={`${titusUiEndpoint}jobs/${jobId}/tasks/${taskId}/logs`}>\n View Execution Logs\n </a>\n <br />\n <a\n target=\"_blank\"\n href={`${titusUiEndpoint}jobs/${jobId}/tasks/${taskId}/logs/archived?file=stdout&view=Finished&open=true`}\n >\n Stdout\n </a>\n <br />\n <a\n target=\"_blank\"\n href={`${titusUiEndpoint}jobs/${jobId}/tasks/${taskId}/logs/archived?file=stderr&view=Finished&open=true`}\n >\n Stderr\n </a>\n </div>\n </div>\n </div>\n )}\n </ExecutionDetailsSection>\n );\n }\n}\n","import { chain, xor } from 'lodash';\nimport { $q } from 'ngimport';\nimport React from 'react';\n\nimport { SecurityGroupSelector, ServerGroupSecurityGroupsRemoved, VpcReader } from '@spinnaker/amazon';\nimport type { IAccountDetails, IAggregatedAccounts, ISecurityGroup, IVpc } from '@spinnaker/core';\nimport { AccountService, AccountTag, FirewallLabels, ReactInjector } from '@spinnaker/core';\n\nexport interface ITitusSecurityGroupPickerProps {\n account: string;\n region: string;\n command: any;\n groupsToEdit: string[];\n hideLabel: boolean;\n amazonAccount: string;\n onChange: (groups: string[]) => void;\n}\n\nexport interface ITitusSecurityGroupPickerState {\n availableGroups: ISecurityGroup[];\n removedGroups: string[];\n loaded: boolean;\n}\n\nexport class TitusSecurityGroupPicker extends React.Component<\n ITitusSecurityGroupPickerProps,\n ITitusSecurityGroupPickerState\n> {\n public state: ITitusSecurityGroupPickerState = {\n availableGroups: [],\n removedGroups: [],\n loaded: false,\n };\n\n private credentials: IAggregatedAccounts = {};\n private vpcs: IVpc[] = [];\n private securityGroups: any = {};\n\n constructor(props: ITitusSecurityGroupPickerProps) {\n super(props);\n }\n\n private getCredentials(): IAccountDetails {\n return this.credentials[this.props.command.credentials];\n }\n\n private getAwsAccount(): string {\n return this.getCredentials().awsAccount;\n }\n\n private getRegion(): string {\n return this.props.command.region || (this.props.command.cluster ? this.props.command.cluster.region : null);\n }\n\n private getVpcId(): string {\n const credentials = this.getCredentials();\n const match = this.vpcs.find(\n (vpc) =>\n vpc.name === credentials.awsVpc &&\n vpc.account === credentials.awsAccount &&\n vpc.region === this.getRegion() &&\n vpc.cloudProvider === 'aws',\n );\n return match ? match.id : null;\n }\n\n private getRegionalSecurityGroups(): ISecurityGroup[] {\n const newSecurityGroups: any = this.securityGroups[this.getAwsAccount()] || { aws: {} };\n return chain<ISecurityGroup>(newSecurityGroups.aws[this.getRegion()])\n .filter({ vpcId: this.getVpcId() })\n .sortBy('name')\n .value();\n }\n\n public refreshSecurityGroups(skipCommandReconfiguration?: boolean) {\n return ReactInjector.cacheInitializer.refreshCache('securityGroups').then(() => {\n return ReactInjector.securityGroupReader.getAllSecurityGroups().then((securityGroups) => {\n this.securityGroups = securityGroups;\n if (!skipCommandReconfiguration) {\n this.configureSecurityGroupOptions();\n }\n });\n });\n }\n\n private configureSecurityGroupOptions(): void {\n let availableGroups = this.getRegionalSecurityGroups();\n const oldAvailableGroups = this.state.availableGroups.length ? this.state.availableGroups : availableGroups;\n let removedGroups: string[];\n\n let groupsToEdit = this.props.groupsToEdit;\n if (availableGroups && this.props.groupsToEdit) {\n // not initializing - we are actually changing groups\n const oldGroupNames: string[] = groupsToEdit.map((groupId: string) => {\n const match = oldAvailableGroups.find((o) => o.id === groupId);\n return match ? match.name : groupId;\n });\n\n const matchedGroups: ISecurityGroup[] = oldGroupNames\n .map((groupId: string) => {\n const securityGroup: any = availableGroups.find((o) => o.id === groupId || o.name === groupId);\n return securityGroup ? securityGroup.name : null;\n })\n .map((groupName: string) => availableGroups.find((g) => g.name === groupName))\n .filter((group: any) => group);\n\n const matchedGroupNames: string[] = matchedGroups.map((g) => g.name);\n removedGroups = xor(oldGroupNames, matchedGroupNames);\n groupsToEdit = matchedGroups.map((g) => g.id);\n this.props.onChange(groupsToEdit);\n }\n availableGroups = availableGroups.sort((a, b) => a.name.localeCompare(b.name));\n this.setState({ availableGroups, loaded: true, removedGroups });\n }\n\n private clearRemoved = () => {\n this.setState({ removedGroups: [] });\n };\n\n public componentDidMount() {\n const credentialLoader = AccountService.getCredentialsKeyedByAccount('titus').then(\n (credentials: IAggregatedAccounts) => {\n this.credentials = credentials;\n },\n );\n const groupLoader = ReactInjector.securityGroupReader.getAllSecurityGroups().then((groups) => {\n this.securityGroups = groups;\n });\n const vpcLoader = VpcReader.listVpcs().then((vpcs: IVpc[]) => (this.vpcs = vpcs));\n $q.all([credentialLoader, groupLoader, vpcLoader]).then(() => this.configureSecurityGroupOptions());\n }\n\n public componentWillReceiveProps(nextProps: ITitusSecurityGroupPickerProps) {\n if (this.props.account !== nextProps.account || this.props.region !== nextProps.region) {\n this.configureSecurityGroupOptions();\n }\n }\n\n public render() {\n const { command, hideLabel, groupsToEdit, amazonAccount } = this.props;\n const { availableGroups, loaded, removedGroups } = this.state;\n\n const firewallsLabel = FirewallLabels.get('firewalls');\n\n if (loaded) {\n return (\n <div className=\"clearfix\">\n <ServerGroupSecurityGroupsRemoved removed={removedGroups} onClear={this.clearRemoved} />\n <SecurityGroupSelector\n command={command}\n hideLabel={hideLabel}\n availableGroups={availableGroups}\n groupsToEdit={groupsToEdit}\n refresh={() => this.refreshSecurityGroups() as any}\n onChange={this.props.onChange}\n helpKey=\"titus.deploy.securityGroups\"\n />\n\n {amazonAccount && command.credentials !== undefined && (\n <div className={`small ${!hideLabel ? 'col-md-offset-3 col-md-9' : ''}`}>\n Uses {firewallsLabel} from the Amazon account <AccountTag account={amazonAccount} />\n </div>\n )}\n </div>\n );\n }\n\n return null;\n }\n}\n","import type { IProviderSettings } from '@spinnaker/core';\nimport { SETTINGS } from '@spinnaker/core';\n\nexport interface ITitusProviderSettings extends IProviderSettings {\n defaults: {\n account?: string;\n region?: string;\n subnetType?: string;\n iamProfile?: string;\n };\n serverGroups?: {\n recommendedSubnets?: string[];\n };\n scalingActivities?: string[];\n}\n\nexport const TitusProviderSettings: ITitusProviderSettings = (SETTINGS.providers.titus as ITitusProviderSettings) || {\n defaults: {},\n};\nif (TitusProviderSettings) {\n TitusProviderSettings.resetToOriginal = SETTINGS.resetToOriginal;\n}\n","import type { FormikErrors, FormikProps } from 'formik';\nimport { Field } from 'formik';\nimport React from 'react';\n\nimport { AWSProviderSettings, SubnetSelectField } from '@spinnaker/amazon';\nimport type { Application, IServerGroup, IWizardPageComponent } from '@spinnaker/core';\nimport {\n AccountSelectInput,\n AccountTag,\n DeployingIntoManagedClusterWarning,\n DeploymentStrategySelector,\n HelpField,\n NameUtils,\n ReactInjector,\n RegionSelectField,\n ServerGroupDetailsField,\n ServerGroupNamePreview,\n} from '@spinnaker/core';\nimport { DockerImageAndTagSelector, DockerImageUtils } from '@spinnaker/docker';\n\nimport type { ITitusServerGroupCommand } from '../../../configure/serverGroupConfiguration.service';\nimport { TitusProviderSettings } from '../../../../titus.settings';\n\nconst isNotExpressionLanguage = (field: string) => field && !field.includes('${');\n\n// Allow dot, underscore, and spel\nconst isStackPattern = (stack: string) => (isNotExpressionLanguage(stack) ? /^([\\w.]+|\\${[^}]+})*$/.test(stack) : true);\n\n// Allow dot, underscore, caret, tilde, dash and spel\nconst isDetailPattern = (detail: string) =>\n isNotExpressionLanguage(detail) ? /^([\\w.^~-]+|\\${[^}]+})*$/.test(detail) : true;\n\nexport interface IServerGroupBasicSettingsProps {\n app: Application;\n formik: FormikProps<ITitusServerGroupCommand>;\n}\n\nexport interface IServerGroupBasicSettingsState {\n namePreview: string;\n createsNewCluster: boolean;\n latestServerGroup: IServerGroup;\n}\n\nexport class ServerGroupBasicSettings\n extends React.Component<IServerGroupBasicSettingsProps, IServerGroupBasicSettingsState>\n implements IWizardPageComponent<ITitusServerGroupCommand> {\n constructor(props: IServerGroupBasicSettingsProps) {\n super(props);\n\n const { values, setFieldValue } = this.props.formik;\n if (values.imageId && !values.imageId.includes('${')) {\n const { digest, organization, repository, tag } = DockerImageUtils.splitImageId(values.imageId);\n setFieldValue('digest', digest);\n setFieldValue('organization', organization);\n setFieldValue('repository', repository);\n setFieldValue('tag', tag);\n }\n\n this.state = {\n ...this.getStateFromProps(props),\n };\n }\n\n private getStateFromProps(props: IServerGroupBasicSettingsProps) {\n const { app } = props;\n const { values } = props.formik;\n const namePreview = NameUtils.getClusterName(app.name, values.stack, values.freeFormDetails);\n const createsNewCluster = !app.clusters.find((c) => c.name === namePreview);\n\n const inCluster = (app.serverGroups.data as IServerGroup[])\n .filter((serverGroup) => {\n return (\n serverGroup.cluster === namePreview &&\n serverGroup.account === values.credentials &&\n serverGroup.region === values.region\n );\n })\n .sort((a, b) => a.createdTime - b.createdTime);\n const latestServerGroup = inCluster.length ? inCluster.pop() : null;\n\n return { namePreview, createsNewCluster, latestServerGroup };\n }\n\n private accountUpdated = (account: string): void => {\n const { setFieldValue, values } = this.props.formik;\n values.credentials = account;\n values.credentialsChanged(values);\n setFieldValue('account', account);\n setFieldValue('credentials', account);\n\n const accountDetails = values.backingData.credentialsKeyedByAccount[account];\n\n const newAttr = {\n ...values.containerAttributes,\n 'titusParameter.agent.assignIPv6Address': accountDetails.environment === 'test' ? 'true' : 'false',\n };\n setFieldValue('containerAttributes', newAttr);\n };\n\n private regionUpdated = (region: string): void => {\n const { values, setFieldValue } = this.props.formik;\n values.region = region;\n values.regionChanged(values);\n setFieldValue('region', region);\n };\n\n public validate(values: ITitusServerGroupCommand) {\n const errors: FormikErrors<ITitusServerGroupCommand> = {};\n\n if (!isStackPattern(values.stack)) {\n errors.stack = 'Only dot(.) and underscore(_) special characters are allowed in the Stack field.';\n }\n\n if (!isDetailPattern(values.freeFormDetails)) {\n errors.freeFormDetails =\n 'Only dot(.), underscore(_), caret (^), tilde (~), and dash(-) special characters are allowed in the Detail field.';\n }\n\n if (!values.viewState.disableImageSelection) {\n if (!values.imageId) {\n errors.imageId = 'Image is required.';\n }\n }\n\n // this error is added exclusively to disable the \"create/clone\" button - it is not visible aside from the warning\n // rendered by the DeployingIntoManagedClusterWarning component\n if (values.resourceSummary) {\n errors.resourceSummary = { id: 'Cluster is managed' };\n }\n\n return errors;\n }\n\n private navigateToLatestServerGroup = () => {\n const { values } = this.props.formik;\n const { latestServerGroup } = this.state;\n\n const params = {\n provider: values.selectedProvider,\n accountId: latestServerGroup.account,\n region: latestServerGroup.region,\n serverGroup: latestServerGroup.name,\n };\n\n const { $state } = ReactInjector;\n if ($state.is('home.applications.application.insight.clusters')) {\n $state.go('.serverGroup', params);\n } else {\n $state.go('^.serverGroup', params);\n }\n };\n\n private stackChanged = (stack: string) => {\n const { formik } = this.props;\n formik.setFieldValue('stack', stack);\n formik.values.clusterChanged(formik.values);\n };\n\n public componentWillReceiveProps(nextProps: IServerGroupBasicSettingsProps) {\n this.setState(this.getStateFromProps(nextProps));\n }\n\n private strategyChanged = (values: ITitusServerGroupCommand, strategy: any) => {\n values.onStrategyChange(values, strategy);\n this.props.formik.setFieldValue('strategy', strategy.key);\n };\n\n private dockerValuesChanged = (dockerValues: any) => {\n Object.keys(dockerValues).forEach((key) => {\n this.props.formik.setFieldValue(key, dockerValues[key]);\n });\n };\n\n private onStrategyFieldChange = (key: string, value: any) => {\n this.props.formik.setFieldValue(key, value);\n };\n\n private onSubnetChange = () => {\n const { setFieldValue, values } = this.props.formik;\n values.subnetChanged(values);\n setFieldValue('subnetType', values.subnetType);\n };\n\n public render() {\n const { app, formik } = this.props;\n const { errors, setFieldValue, values } = formik;\n const { createsNewCluster, latestServerGroup, namePreview } = this.state;\n\n const accounts = values.backingData.accounts;\n const readOnlyFields = values.viewState.readOnlyFields || {};\n\n const customImage = values.imageId && values.imageId !== '${trigger.properties.imageName}';\n\n const defaultSubnetTypes = []\n .concat(TitusProviderSettings.defaults?.subnetType)\n .concat(AWSProviderSettings.defaults?.subnetType)\n .filter((x) => !!x);\n\n return (\n <div className=\"container-fluid form-horizontal\">\n <DeployingIntoManagedClusterWarning app={app} formik={formik} />\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Account</div>\n <div className=\"col-md-7\">\n <AccountSelectInput\n value={values.credentials}\n onChange={(evt: any) => this.accountUpdated(evt.target.value)}\n readOnly={readOnlyFields.credentials}\n accounts={accounts}\n provider=\"titus\"\n />\n {values.credentials !== undefined && (\n <div className=\"small\">\n Uses resources from the Amazon account{' '}\n <AccountTag\n account={\n values.backingData.credentialsKeyedByAccount[values.credentials] &&\n values.backingData.credentialsKeyedByAccount[values.credentials].awsAccount\n }\n />\n </div>\n )}\n </div>\n </div>\n <RegionSelectField\n readOnly={readOnlyFields.region}\n labelColumns={3}\n component={values}\n field=\"region\"\n account={values.credentials}\n regions={values.backingData.filtered.regions}\n onChange={this.regionUpdated}\n />\n <SubnetSelectField\n application={app}\n component={values}\n field=\"subnetType\"\n helpKey=\"titus.serverGroup.subnet\"\n labelColumns={3}\n onChange={this.onSubnetChange}\n region={values.region}\n subnets={values.backingData.filtered.subnetPurposes}\n defaultSubnetTypes={defaultSubnetTypes}\n recommendedSubnetTypes={TitusProviderSettings.serverGroups?.recommendedSubnets}\n showSubnetWarning={true}\n />\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n Stack <HelpField id=\"aws.serverGroup.stack\" />\n </div>\n <div className=\"col-md-7\">\n <input\n type=\"text\"\n className=\"form-control input-sm no-spel\"\n value={values.stack || ''}\n onChange={(e) => this.stackChanged(e.target.value)}\n />\n </div>\n </div>\n {errors.stack && (\n <div className=\"form-group row slide-in\">\n <div className=\"col-sm-9 col-sm-offset-2 error-message\">\n <span>{errors.stack}</span>\n </div>\n </div>\n )}\n\n <ServerGroupDetailsField app={app} formik={formik} />\n\n {!values.viewState.disableImageSelection && (\n <DockerImageAndTagSelector\n specifyTagByRegex={false}\n account={values.credentials}\n digest={values.digest}\n imageId={values.imageId}\n organization={values.organization}\n registry={values.registry}\n repository={values.repository}\n tag={values.tag}\n showRegistry={false}\n deferInitialization={values.deferredInitialization}\n onChange={this.dockerValuesChanged}\n />\n )}\n {values.viewState.disableImageSelection && customImage && (\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Image</b> <HelpField id=\"titus.deploy.imageId\" />\n </div>\n <div className=\"col-md-7 sp-padding-xs-yaxis\">{values.imageId}</div>\n </div>\n )}\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Entrypoint</b>\n </div>\n <div className=\"col-md-7\">\n <Field type=\"text\" className=\"form-control input-sm no-spel\" name=\"entryPoint\" />\n </div>\n </div>\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n Traffic <HelpField id=\"titus.serverGroup.traffic\" />\n </div>\n <div className=\"col-md-7\">\n <div className=\"checkbox\">\n <label>\n <input\n type=\"checkbox\"\n checked={values.inService}\n onChange={(e) => setFieldValue('inService', e.target.checked)}\n disabled={values.strategy !== '' && values.strategy !== 'custom'}\n />{' '}\n Send client requests to new instances\n </label>\n </div>\n </div>\n </div>\n {!values.viewState.disableStrategySelection && values.selectedProvider && (\n <DeploymentStrategySelector\n command={values}\n onFieldChange={this.onStrategyFieldChange}\n onStrategyChange={this.strategyChanged}\n />\n )}\n {!values.viewState.hideClusterNamePreview && (\n <ServerGroupNamePreview\n createsNewCluster={createsNewCluster}\n latestServerGroupName={latestServerGroup?.name}\n mode={values.viewState.mode}\n namePreview={namePreview}\n navigateToLatestServerGroup={this.navigateToLatestServerGroup}\n />\n )}\n </div>\n );\n }\n}\n","import type { FormikProps } from 'formik';\nimport React from 'react';\nimport type { Option } from 'react-select';\nimport Select from 'react-select';\n\nimport type { IWizardPageComponent } from '@spinnaker/core';\nimport { HelpField, SpelNumberInput } from '@spinnaker/core';\n\nimport type { ITitusServerGroupCommand } from '../../../configure/serverGroupConfiguration.service';\n\nconst mountPermOptions = [\n { label: 'Read and Write', value: 'RW' },\n { label: 'Read Only', value: 'RO' },\n { label: 'Write Only', value: 'WO' },\n];\n\nexport interface IServerGroupResourcesProps {\n formik: FormikProps<ITitusServerGroupCommand>;\n}\n\nexport class ServerGroupResources\n extends React.Component<IServerGroupResourcesProps>\n implements IWizardPageComponent<ITitusServerGroupCommand> {\n public validate(values: ITitusServerGroupCommand) {\n const errors = {} as any;\n\n if (!values.resources) {\n errors.resources = 'CPU is required.';\n }\n if (!values.resources) {\n errors.resources = 'Memory is required.';\n }\n if (!values.resources) {\n errors.resources = 'Disk is required.';\n }\n if (!values.resources) {\n errors.resources = 'Network is required.';\n }\n\n return errors;\n }\n\n public render() {\n const { setFieldValue, values } = this.props.formik;\n return (\n <div className=\"clearfix\">\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>CPU(s)</b>\n </div>\n <div className=\"col-md-8\">\n <SpelNumberInput\n value={values.resources.cpu}\n onChange={(value) =>\n setFieldValue('resources', {\n ...values.resources,\n ...{ cpu: value },\n })\n }\n required={true}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Memory (MB)</b>\n </div>\n <div className=\"col-md-8\">\n <SpelNumberInput\n value={values.resources.memory}\n onChange={(value) =>\n setFieldValue('resources', {\n ...values.resources,\n ...{ memory: value },\n })\n }\n required={true}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Disk (MB)</b>\n </div>\n <div className=\"col-md-8\">\n <SpelNumberInput\n value={values.resources.disk}\n onChange={(value) =>\n setFieldValue('resources', {\n ...values.resources,\n ...{ disk: value },\n })\n }\n required={true}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Network (Mbps)</b>\n <HelpField id=\"titus.deploy.network\" />\n </div>\n <div className=\"col-md-8\">\n <SpelNumberInput\n value={values.resources.networkMbps}\n onChange={(value) =>\n setFieldValue('resources', {\n ...values.resources,\n ...{ networkMbps: value },\n })\n }\n required={true}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Gpu</b>\n <HelpField id=\"titus.deploy.gpu\" />\n </div>\n <div className=\"col-md-8\">\n <SpelNumberInput\n value={values.resources.gpu}\n onChange={(value) =>\n setFieldValue('resources', {\n ...values.resources,\n ...{ gpu: value },\n })\n }\n />\n </div>\n </div>\n <hr />\n\n <h4>\n <b>\n Elastic File System Options <HelpField id=\"titus.deploy.efs\" />\n </b>\n </h4>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Mount Permission </b>\n <HelpField id=\"titus.deploy.mountPermissions\" />\n </div>\n <div className=\"col-md-8\">\n <Select\n value={values.efs.mountPerm}\n clearable={false}\n options={mountPermOptions}\n onChange={(option: Option) => setFieldValue('efs', { ...values.efs, ...{ mountPerm: option.value } })}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Mount Point </b>\n <HelpField id=\"titus.deploy.mountPoint\" />\n </div>\n <div className=\"col-md-8\">\n <input\n type=\"text\"\n className=\"form-control input-sm no-spel\"\n value={values.efs.mountPoint}\n onChange={(e) => setFieldValue('efs', { ...values.efs, ...{ mountPoint: e.target.value } })}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>EFS ID </b>\n <HelpField id=\"titus.deploy.efsId\" />\n </div>\n <div className=\"col-md-8\">\n <input\n type=\"text\"\n className=\"form-control input-sm no-spel\"\n value={values.efs.efsId}\n onChange={(e) => setFieldValue('efs', { ...values.efs, ...{ efsId: e.target.value } })}\n />\n </div>\n <div className=\"col-md-offset-3 col-md-8\" />\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>EFS Relative Mount Point </b>\n <HelpField id=\"titus.deploy.efsRelativeMountPoint\" />\n </div>\n <div className=\"col-md-8\">\n <input\n type=\"text\"\n className=\"form-control input-sm no-spel\"\n value={values.efs.efsRelativeMountPoint}\n onChange={(e) => setFieldValue('efs', { ...values.efs, ...{ efsRelativeMountPoint: e.target.value } })}\n />\n </div>\n </div>\n </div>\n );\n }\n}\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import { isUndefined } from 'lodash';\nimport React from 'react';\n\nimport type { IFormInputValidation } from '@spinnaker/core';\nimport { ValidationMessage } from '@spinnaker/core';\nimport type { ILayoutProps } from '@spinnaker/core';\nimport './TitusMapLayout.less';\n\nexport function TitusMapLayout(props: ILayoutProps) {\n const { label, help, input, actions, validation = {} as IFormInputValidation } = props;\n const { hidden, messageNode, category } = validation;\n const showLabel = !isUndefined(label) || !isUndefined(help);\n\n return (\n <div className=\"TitusMapLayout flex-container-v\">\n {showLabel && (\n <h4>\n {label} {help}\n </h4>\n )}\n\n <div className=\"flex-container-h baseline margin-between-lg TitusMapLayout_Contents\">\n {input} {actions}\n </div>\n\n {!hidden && <ValidationMessage message={messageNode} type={category} />}\n </div>\n );\n}\n","import type { ITitusServiceJobProcesses } from '../../../domain/ITitusServiceJobProcesses';\n\nexport const processesList = ['disableIncreaseDesired', 'disableDecreaseDesired'];\n\nexport const enabledProcesses = (processesMap: ITitusServiceJobProcesses): string[] => {\n return Object.keys(processesMap).reduce((enabled, process) => {\n if (processesMap[process]) {\n enabled.push(process);\n }\n return enabled;\n }, []);\n};\n","import type { FormikProps } from 'formik';\nimport { intersection, set, union } from 'lodash';\nimport React from 'react';\n\nimport type { Application, IFormInputProps, IWizardPageComponent } from '@spinnaker/core';\nimport {\n AccountTag,\n CheckboxInput,\n ChecklistInput,\n FormikFormField,\n FormValidator,\n HelpField,\n LayoutProvider,\n MapEditorInput,\n PlatformHealthOverrideInput,\n robotToHuman,\n SelectInput,\n TextInput,\n useFormInputValueMapper,\n} from '@spinnaker/core';\n\nimport { TitusMapLayout } from './TitusMapLayout';\nimport type { ITitusServerGroupCommand } from '../../../configure/serverGroupConfiguration.service';\nimport { processesList } from '../../../details/serviceJobProcesses/ServiceJobProcesses';\n\nimport './ServerGroupParameters.less';\n\nexport interface IServerGroupParametersProps {\n app: Application;\n formik: FormikProps<ITitusServerGroupCommand>;\n}\n\nconst migrationPolicyOptions = [\n { label: 'System Default', value: 'systemDefault' },\n { label: 'Self Managed', value: 'selfManaged' },\n];\n\nfunction ServiceJobProcessesInput(props: IFormInputProps) {\n const allProcesses = union(processesList, Object.keys(props.value));\n // Map to a list of strings (formik -> input)\n const mapToInputValue = (value: Record<string, boolean>) =>\n Object.entries(value)\n .filter(([_key, val]) => val === true)\n .map(([key, _val]) => key);\n\n // Map to an Object, but include all known processes (input -> formik)\n const mapFromInputValue = (value: string[]): Record<string, boolean> =>\n allProcesses.reduce((acc, process) => {\n acc[process] = value.includes(process);\n return acc;\n }, {} as Record<string, boolean>);\n\n const mappedProps = useFormInputValueMapper(props, mapToInputValue, mapFromInputValue);\n\n const options = allProcesses.map((process) => {\n return { label: robotToHuman(process), value: process };\n });\n\n return <ChecklistInput {...mappedProps} options={options} />;\n}\n\nexport function IPv6CheckboxInput(props: IFormInputProps) {\n const mappedProps = useFormInputValueMapper(\n props,\n (val: string) => val === 'true', // formik -> checkbox\n (_val, e) => (e.target.checked ? 'true' : 'false'), // checkbox -> formik\n );\n return <CheckboxInput {...mappedProps} />;\n}\n\nconst IamInstanceProfileInput = (props: IFormInputProps & { awsAccount: string; setDefaultIamProfile: () => void }) => {\n const { awsAccount, setDefaultIamProfile, ...inputProps } = props;\n return (\n <div className=\"flex-container-h baseline margin-between-md\">\n <TextInput {...inputProps} />\n {props.value ? (\n <>\n <span>in</span>\n <AccountTag account={awsAccount} />\n </>\n ) : (\n <button className=\"link\" style={{ whiteSpace: 'nowrap' }} onClick={setDefaultIamProfile}>\n Apply default value\n </button>\n )}\n </div>\n );\n};\n\nexport class ServerGroupParameters\n extends React.Component<IServerGroupParametersProps>\n implements IWizardPageComponent<ITitusServerGroupCommand> {\n constructor(props: IServerGroupParametersProps) {\n super(props);\n }\n\n public validate(_values: ITitusServerGroupCommand) {\n const validator = new FormValidator(_values);\n validator.field('iamProfile', 'IAM Instance Profile').required();\n\n const errors = validator.validateForm();\n\n const duplicates = intersection(Object.keys(_values.constraints.soft), Object.keys(_values.constraints.hard));\n duplicates.forEach((key) => {\n set(errors, `constraints.soft.${key}`, `Constraint '${key}' must be either soft or hard, not both.`);\n set(errors, `constraints.hard.${key}`, `Constraint '${key}' must be either soft or hard, not both.`);\n });\n\n Object.keys(_values.env || {})\n .filter((key) => !key.startsWith('__MapEditorDuplicateKey'))\n .forEach((key) => {\n if (!key.match(/^[A-Za-z_].*/)) {\n set(errors, `env.${key}`, 'Environment variable names must start with a letter or underscore');\n } else if (!key.match(/[A-Za-z_][a-zA-Z0-9_]*$/)) {\n set(errors, `env.${key}`, 'Environment variable names must contain only letter, numbers, or underscores');\n }\n });\n\n return errors;\n }\n\n public render() {\n const { app } = this.props;\n const { setFieldValue, values } = this.props.formik;\n\n const setDefaultIamProfile = () => setFieldValue('iamProfile', values.viewState.defaultIamProfile);\n return (\n <div className=\"ServerGroupParameters\">\n <FormikFormField\n name=\"iamProfile\"\n label=\"IAM Instance Profile\"\n help={<HelpField id=\"titus.deploy.iamProfile\" />}\n input={(props) => (\n <IamInstanceProfileInput\n {...props}\n awsAccount={values.backingData.credentialsKeyedByAccount[values.credentials]?.awsAccount}\n setDefaultIamProfile={setDefaultIamProfile}\n />\n )}\n />\n\n <FormikFormField\n name=\"capacityGroup\"\n label=\"Capacity Group\"\n help={<HelpField id=\"titus.deploy.capacityGroup\" />}\n input={(props) => <TextInput {...props} />}\n />\n\n <FormikFormField\n name=\"migrationPolicy.type\"\n label=\"Migration Policy\"\n help={<HelpField id=\"titus.deploy.migrationPolicy\" />}\n input={(props) => <SelectInput options={migrationPolicyOptions} {...props} />}\n />\n\n <FormikFormField\n name=\"serviceJobProcesses\"\n label=\"Service Job Processes\"\n input={(props) => <ServiceJobProcessesInput {...props} />}\n />\n\n <FormikFormField\n name=\"containerAttributes['titusParameter.agent.assignIPv6Address']\"\n label=\"Associate IPv6 Address (Recommended)\"\n help={<HelpField id=\"serverGroup.ipv6\" />}\n input={(props) => <IPv6CheckboxInput {...props} />}\n />\n\n <hr />\n\n <LayoutProvider value={TitusMapLayout}>\n <FormikFormField\n name=\"constraints.soft\"\n label=\"Soft Constraints \"\n help={<HelpField id=\"titus.deploy.softConstraints\" />}\n input={(props) => <MapEditorInput allowEmptyValues={true} {...props} />}\n />\n\n <FormikFormField\n name=\"constraints.hard\"\n label=\"Hard Constraints\"\n help={<HelpField id=\"titus.deploy.hardConstraints\" />}\n input={(props) => <MapEditorInput allowEmptyValues={true} {...props} />}\n />\n\n <hr />\n\n <FormikFormField\n name=\"labels\"\n label=\"Job Attributes\"\n input={(props) => <MapEditorInput allowEmptyValues={true} {...props} />}\n />\n\n <FormikFormField\n name=\"containerAttributes\"\n label=\"Container Attributes\"\n input={(props) => <MapEditorInput allowEmptyValues={true} {...props} />}\n />\n\n <FormikFormField\n name=\"env\"\n label=\"Environment Variables\"\n input={(props) => <MapEditorInput allowEmptyValues={true} {...props} />}\n />\n </LayoutProvider>\n\n {app.attributes.platformHealthOnlyShowOverride && (\n <FormikFormField\n name=\"interestingHealthProviderNames\"\n label=\"Task Completion\"\n input={(props) => <PlatformHealthOverrideInput {...props} platformHealthType=\"Titus\" />}\n />\n )}\n </div>\n );\n }\n}\n","import { module } from 'angular';\nimport { chain, cloneDeep, flatten, intersection, xor } from 'lodash';\nimport { $q } from 'ngimport';\nimport { Subject } from 'rxjs';\n\nimport type {\n IAmazonApplicationLoadBalancer,\n IAmazonLoadBalancer,\n IAmazonServerGroupCommandDirty,\n} from '@spinnaker/amazon';\nimport { VpcReader } from '@spinnaker/amazon';\nimport type {\n Application,\n CacheInitializerService,\n IAccountDetails,\n ICluster,\n IDeploymentStrategy,\n ISecurityGroup,\n IServerGroupCommand,\n IServerGroupCommandBackingData,\n IServerGroupCommandViewState,\n IVpc,\n LoadBalancerReader,\n SecurityGroupReader,\n} from '@spinnaker/core';\nimport {\n AccountService,\n CACHE_INITIALIZER_SERVICE,\n LOAD_BALANCER_READ_SERVICE,\n NameUtils,\n SECURITY_GROUP_READER,\n setMatchingResourceSummary,\n SubnetReader,\n} from '@spinnaker/core';\nimport type { IJobDisruptionBudget, ITitusResources } from '../../domain';\nimport type { ITitusServiceJobProcesses } from '../../domain/ITitusServiceJobProcesses';\n\nexport interface ITitusServerGroupCommandBackingData extends IServerGroupCommandBackingData {\n accounts: string[];\n vpcs: IVpc[];\n}\n\nexport interface ITitusServerGroupCommandViewState extends IServerGroupCommandViewState {\n accountChangedStream: Subject<{}>;\n regionChangedStream: Subject<{}>;\n groupsRemovedStream: Subject<{}>;\n dirty: IAmazonServerGroupCommandDirty;\n defaultIamProfile: string;\n}\n\nexport const defaultJobDisruptionBudget: IJobDisruptionBudget = {\n availabilityPercentageLimit: {\n percentageOfHealthyContainers: 95,\n },\n ratePercentagePerInterval: {\n intervalMs: 600000,\n percentageLimitPerInterval: 5,\n },\n containerHealthProviders: [{ name: 'eureka' }],\n timeWindows: [\n {\n days: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],\n hourlyTimeWindows: [{ startHour: 10, endHour: 16 }],\n timeZone: 'PST',\n },\n ],\n};\n\nexport const getDefaultJobDisruptionBudgetForApp = (application: Application): IJobDisruptionBudget => {\n const budget = cloneDeep(defaultJobDisruptionBudget);\n if (application.attributes && application.attributes.platformHealthOnly) {\n budget.containerHealthProviders = [];\n }\n return budget;\n};\n\nexport interface ITitusServerGroupCommand extends IServerGroupCommand {\n cluster?: ICluster;\n disruptionBudget?: IJobDisruptionBudget;\n deferredInitialization?: boolean;\n registry: string;\n imageId: string;\n organization: string;\n repository: string;\n tag?: string;\n digest?: string;\n image: string;\n inService: boolean;\n resources: ITitusResources;\n efs: {\n efsId: string;\n mountPoint: string;\n mountPerm: string;\n efsRelativeMountPoint: string;\n };\n viewState: ITitusServerGroupCommandViewState;\n targetGroups: string[];\n removedTargetGroups: string[];\n backingData: ITitusServerGroupCommandBackingData;\n labels: { [key: string]: string };\n containerAttributes: { [key: string]: string };\n env: { [key: string]: string };\n iamProfile: string;\n migrationPolicy: {\n type: string;\n };\n constraints: {\n hard: { [key: string]: string };\n soft: { [key: string]: string };\n };\n serviceJobProcesses: ITitusServiceJobProcesses;\n}\n\nexport class TitusServerGroupConfigurationService {\n public static $inject = ['cacheInitializer', 'loadBalancerReader', 'securityGroupReader'];\n constructor(\n private cacheInitializer: CacheInitializerService,\n private loadBalancerReader: LoadBalancerReader,\n private securityGroupReader: SecurityGroupReader,\n ) {}\n\n public configureZones(command: ITitusServerGroupCommand) {\n command.backingData.filtered.regions = command.backingData.credentialsKeyedByAccount[command.credentials].regions;\n }\n\n public configureSubnets(command: ITitusServerGroupCommand) {\n const result = { dirty: {} };\n const filteredData = command.backingData.filtered;\n if (command.region === null) {\n return result;\n }\n\n const accountDetails = this.getCredentials(command);\n filteredData.subnetPurposes = chain(command.backingData.subnets)\n .filter({ account: accountDetails.awsAccount, region: command.region })\n .reject({ target: 'elb' })\n .reject({ purpose: null })\n .uniqBy('purpose')\n .value();\n\n const subnetType = command.subnetType || 'titus (vpc0)';\n const subnetIds = chain(command.backingData.subnets)\n .filter({ account: accountDetails.awsAccount, region: command.region, purpose: subnetType })\n .map((subnet) => subnet.id)\n .value();\n command.containerAttributes['titusParameter.agent.subnets'] = subnetIds.join(',');\n\n return result;\n }\n\n private attachEventHandlers(cmd: ITitusServerGroupCommand) {\n cmd.credentialsChanged = (command: ITitusServerGroupCommand) => {\n const result = { dirty: {} };\n const backingData = command.backingData;\n this.configureZones(command);\n if (command.credentials) {\n command.registry = (backingData.credentialsKeyedByAccount[command.credentials] as any).registry;\n backingData.filtered.regions = backingData.credentialsKeyedByAccount[command.credentials].regions;\n\n const accountId = backingData.credentialsKeyedByAccount[command.credentials].accountId;\n command.containerAttributes['titusParameter.agent.accountId'] = accountId;\n if (!backingData.filtered.regions.some((r) => r.name === command.region)) {\n command.region = null;\n command.regionChanged(command);\n }\n } else {\n command.region = null;\n }\n command.viewState.dirty = { ...(command.viewState.dirty || {}), ...result.dirty };\n this.configureLoadBalancerOptions(command);\n this.configureSecurityGroupOptions(command);\n this.configureSubnets(command);\n setMatchingResourceSummary(command);\n return result;\n };\n\n cmd.regionChanged = (command: ITitusServerGroupCommand) => {\n this.configureLoadBalancerOptions(command);\n this.configureSecurityGroupOptions(command);\n this.configureSubnets(command);\n setMatchingResourceSummary(command);\n return {};\n };\n\n cmd.clusterChanged = (command: ITitusServerGroupCommand): void => {\n command.moniker = NameUtils.getMoniker(command.application, command.stack, command.freeFormDetails);\n setMatchingResourceSummary(command);\n };\n\n cmd.subnetChanged = (command: ITitusServerGroupCommand) => {\n return this.configureSubnets(command);\n };\n }\n\n public configureCommand(cmd: ITitusServerGroupCommand): PromiseLike<void> {\n cmd.viewState.accountChangedStream = new Subject();\n cmd.viewState.regionChangedStream = new Subject();\n cmd.viewState.groupsRemovedStream = new Subject();\n cmd.viewState.dirty = {};\n cmd.onStrategyChange = (command: ITitusServerGroupCommand, strategy: IDeploymentStrategy) => {\n // Any strategy other than None or Custom should force traffic to be enabled\n if (strategy.key !== '' && strategy.key !== 'custom') {\n command.inService = true;\n }\n };\n cmd.image = cmd.viewState.imageId;\n return $q\n .all([\n AccountService.getCredentialsKeyedByAccount('titus'),\n this.securityGroupReader.getAllSecurityGroups(),\n VpcReader.listVpcs(),\n SubnetReader.listSubnets(),\n AccountService.getCredentialsKeyedByAccount('aws'),\n ])\n .then(([credentialsKeyedByAccount, securityGroups, vpcs, subnets, awsCredentials]) => {\n const backingData: any = {\n credentialsKeyedByAccount,\n securityGroups,\n vpcs,\n };\n\n // add the AWS accountId to the credentialsKeyedByAccount to easily set container attributes\n Object.keys(credentialsKeyedByAccount).forEach((acc) => {\n const awsAccount = credentialsKeyedByAccount[acc].awsAccount;\n const awsAccountId = awsCredentials[awsAccount].accountId;\n credentialsKeyedByAccount[acc].accountId = awsAccountId;\n });\n backingData.credentialsKeyedByAccount = credentialsKeyedByAccount;\n\n if (cmd.credentials) {\n cmd.containerAttributes['titusParameter.agent.accountId'] =\n backingData.credentialsKeyedByAccount[cmd.credentials].accountId;\n }\n\n backingData.images = [];\n backingData.accounts = Object.keys(credentialsKeyedByAccount);\n backingData.subnets = subnets;\n backingData.filtered = {};\n if (cmd.credentials.includes('${')) {\n // If our dependency is an expression, the only thing we can really do is to just preserve current selections\n backingData.filtered.regions = [{ name: cmd.region }];\n } else {\n backingData.filtered.regions = credentialsKeyedByAccount[cmd.credentials]?.regions ?? [];\n }\n cmd.backingData = backingData;\n backingData.filtered.securityGroups = this.getRegionalSecurityGroups(cmd);\n\n let securityGroupRefresher: PromiseLike<any> = $q.when();\n if (cmd.securityGroups && cmd.securityGroups.length) {\n const regionalSecurityGroupIds = backingData.filtered.securityGroups.map((g: ISecurityGroup) => g.id);\n if (intersection(cmd.securityGroups, regionalSecurityGroupIds).length < cmd.securityGroups.length) {\n securityGroupRefresher = this.refreshSecurityGroups(cmd, false);\n }\n }\n\n return $q.all([this.refreshLoadBalancers(cmd), securityGroupRefresher]).then(() => {\n this.attachEventHandlers(cmd);\n });\n });\n }\n\n private getVpcId(command: ITitusServerGroupCommand): string {\n const credentials = this.getCredentials(command);\n const match = command.backingData.vpcs.find(\n (vpc) =>\n vpc.name === credentials.awsVpc &&\n vpc.account === credentials.awsAccount &&\n vpc.region === this.getRegion(command) &&\n vpc.cloudProvider === 'aws',\n );\n return match ? match.id : null;\n }\n\n private getRegionalSecurityGroups(command: ITitusServerGroupCommand): ISecurityGroup[] {\n const newSecurityGroups: any = command.backingData.securityGroups[this.getAwsAccount(command)] || { aws: {} };\n return chain<ISecurityGroup>(newSecurityGroups.aws[this.getRegion(command)])\n .filter({ vpcId: this.getVpcId(command) })\n .sortBy('name')\n .value();\n }\n\n private configureSecurityGroupOptions(command: ITitusServerGroupCommand): void {\n const currentOptions = command.backingData.filtered.securityGroups;\n if (command.credentials.includes('${') || (command.region && command.region.includes('${'))) {\n // If any of our dependencies are expressions, the only thing we can do is preserve current values\n command.backingData.filtered.securityGroups = command.securityGroups.map((group) => ({ name: group, id: group }));\n } else {\n const newRegionalSecurityGroups = this.getRegionalSecurityGroups(command);\n const isExpression =\n typeof command.securityGroups === 'string' && (command.securityGroups as string).includes('${');\n if (currentOptions && command.securityGroups && !isExpression) {\n // not initializing - we are actually changing groups\n const currentGroupNames: string[] = command.securityGroups.map((groupId: string) => {\n const match = currentOptions.find((o) => o.id === groupId);\n return match ? match.name : groupId;\n });\n\n const matchedGroups = command.securityGroups\n .map((groupId: string) => {\n const securityGroup: any = currentOptions.find((o) => o.id === groupId || o.name === groupId);\n return securityGroup ? securityGroup.name : null;\n })\n .map((groupName: string) => newRegionalSecurityGroups.find((g) => g.name === groupName))\n .filter((group: any) => group);\n\n const matchedGroupNames: string[] = matchedGroups.map((g) => g.name);\n const removed: string[] = xor(currentGroupNames, matchedGroupNames);\n command.securityGroups = matchedGroups.map((g) => g.id);\n if (removed.length) {\n command.viewState.dirty.securityGroups = removed;\n }\n }\n command.backingData.filtered.securityGroups = newRegionalSecurityGroups.sort((a, b) => {\n if (command.securityGroups.includes(a.id)) {\n return -1;\n }\n if (command.securityGroups.includes(b.id)) {\n return 1;\n }\n return a.name.localeCompare(b.name);\n });\n }\n }\n\n public refreshSecurityGroups(\n command: ITitusServerGroupCommand,\n skipCommandReconfiguration: boolean,\n ): PromiseLike<void> {\n return this.cacheInitializer.refreshCache('securityGroups').then(() => {\n return this.securityGroupReader.getAllSecurityGroups().then((securityGroups: any) => {\n command.backingData.securityGroups = securityGroups;\n if (!skipCommandReconfiguration) {\n this.configureSecurityGroupOptions(command);\n }\n });\n });\n }\n\n private getCredentials(command: ITitusServerGroupCommand): IAccountDetails {\n return command.backingData.credentialsKeyedByAccount[command.credentials];\n }\n\n private getAwsAccount(command: ITitusServerGroupCommand): string {\n return this.getCredentials(command).awsAccount;\n }\n\n private getRegion(command: ITitusServerGroupCommand): string {\n return command.region || (command.cluster ? command.cluster.region : null);\n }\n\n public getTargetGroupNames(command: ITitusServerGroupCommand): string[] {\n const loadBalancersV2 = this.getLoadBalancerMap(command).filter(\n (lb) => lb.loadBalancerType !== 'classic',\n ) as IAmazonApplicationLoadBalancer[];\n const instanceTargetGroups = flatten(\n loadBalancersV2.map<any>((lb) => lb.targetGroups.filter((tg) => tg.targetType === 'ip')),\n );\n return instanceTargetGroups.map((tg) => tg.name).sort();\n }\n\n private getLoadBalancerMap(command: ITitusServerGroupCommand): IAmazonLoadBalancer[] {\n return chain(command.backingData.loadBalancers)\n .map('accounts')\n .flattenDeep()\n .filter({ name: this.getAwsAccount(command) })\n .map('regions')\n .flattenDeep()\n .filter({ name: this.getRegion(command) })\n .map<IAmazonLoadBalancer>('loadBalancers')\n .flattenDeep<IAmazonLoadBalancer>()\n .value();\n }\n\n public configureLoadBalancerOptions(command: ITitusServerGroupCommand) {\n const currentTargetGroups = command.targetGroups || [];\n if (command.credentials.includes('${') || (command.region && command.region.includes('${'))) {\n // If any of our dependencies are expressions, the only thing we can do is preserve current values\n command.targetGroups = currentTargetGroups;\n (command.backingData.filtered as any).targetGroups = currentTargetGroups;\n } else {\n const allTargetGroups = this.getTargetGroupNames(command);\n\n if (currentTargetGroups && command.targetGroups) {\n const matched = intersection(allTargetGroups, currentTargetGroups);\n const removedTargetGroups = xor(matched, currentTargetGroups);\n command.targetGroups = intersection(allTargetGroups, matched);\n if (removedTargetGroups && removedTargetGroups.length > 0) {\n command.viewState.dirty.targetGroups = removedTargetGroups;\n } else {\n delete command.viewState.dirty.targetGroups;\n }\n }\n (command.backingData.filtered as any).targetGroups = allTargetGroups;\n }\n }\n\n public refreshLoadBalancers(command: ITitusServerGroupCommand) {\n return this.loadBalancerReader.listLoadBalancers('aws').then((loadBalancers) => {\n command.backingData.loadBalancers = loadBalancers;\n this.configureLoadBalancerOptions(command);\n });\n }\n}\n\nexport const TITUS_SERVER_GROUP_CONFIGURATION_SERVICE = 'spinnaker.titus.serverGroup.configure.service';\nmodule(TITUS_SERVER_GROUP_CONFIGURATION_SERVICE, [\n CACHE_INITIALIZER_SERVICE,\n LOAD_BALANCER_READ_SERVICE,\n SECURITY_GROUP_READER,\n]).service('titusServerGroupConfigurationService', TitusServerGroupConfigurationService);\n","import React from 'react';\n\nimport { FormikFormField, HelpField, NumberInput } from '@spinnaker/core';\n\nimport type { IFieldOption, IFieldOptionComponentProps } from './JobDisruptionBudget';\nimport { defaultJobDisruptionBudget } from '../../../serverGroupConfiguration.service';\n\nconst SelfManagedField = () => (\n <FormikFormField\n name=\"disruptionBudget.selfManaged.relocationTimeMs\"\n label=\"Relocation Time\"\n input={(props) => (\n <div>\n <NumberInput {...props} />\n <HelpField expand={true} content=\"(milliseconds)\" />\n </div>\n )}\n />\n);\n\nconst UnhealthyTasksLimitsField = () => (\n <FormikFormField\n name=\"disruptionBudget.unhealthyTasksLimit.limitOfUnhealthyContainers\"\n label=\"Limit of Unhealthy Containers\"\n input={(props) => (\n <div>\n <NumberInput {...props} />\n <HelpField expand={true} content=\"(integer)\" />\n </div>\n )}\n />\n);\n\nconst AvailabilityPercentageLimit = (componentProps: IFieldOptionComponentProps) => (\n <FormikFormField\n name=\"disruptionBudget.availabilityPercentageLimit.percentageOfHealthyContainers\"\n label=\"Percentage of Healthy Containers\"\n input={(props) => (\n <div>\n <NumberInput {...props} disabled={componentProps.isDisabled} />\n <HelpField expand={true} content=\"0.0-100.0 (double)\" />\n </div>\n )}\n />\n);\n\nconst RelocationLimit = () => (\n <FormikFormField\n name=\"disruptionBudget.relocationLimit.limit\"\n label=\"Limit\"\n input={(props) => (\n <div>\n <NumberInput {...props} />\n <HelpField expand={true} content=\"(tasks)\" />\n </div>\n )}\n />\n);\n\nexport const policyOptions: IFieldOption[] = [\n {\n field: 'availabilityPercentageLimit',\n label: 'Availability Percentage Limit',\n value: 0,\n description: `\n Lets you specify the required percentage of tasks in a healthy state.\n Tasks will not be terminated by the eviction service if this limit would be violated.\n `,\n defaultValues: defaultJobDisruptionBudget.availabilityPercentageLimit,\n fieldComponent: AvailabilityPercentageLimit,\n },\n {\n field: 'relocationLimit',\n label: 'Relocation Limit',\n value: 1,\n description: `\n Lets you specify the maximum number of times a task can be relocated.\n Should only be used with batch tasks, which have a maximum execution time.\n `,\n defaultValues: {\n limit: 1,\n },\n fieldComponent: RelocationLimit,\n },\n {\n field: 'unhealthyTasksLimit',\n label: 'Unhealthy Tasks Limit',\n value: 2,\n description: `\n Lets you specify the maximum allowed amount of tasks in an unhealthy state.\n Tasks will not be terminated by the eviction service if this limit would be violated.\n `,\n defaultValues: {\n limitOfUnhealthyContainers: 1,\n },\n fieldComponent: UnhealthyTasksLimitsField,\n },\n {\n field: 'selfManaged',\n label: 'Self Managed',\n value: 3,\n description: `\n Requires that you orchestrate custom termination logic.\n If the containers are not terminated within the configured amount of time,\n the system default migration policy is used instead.\n `,\n defaultValues: {\n relocationTimeMs: 24 * 60 * 60 * 1000,\n },\n fieldComponent: SelfManagedField,\n },\n];\n","import React from 'react';\n\nimport { FormikFormField, HelpField, NumberInput } from '@spinnaker/core';\n\nimport type { IFieldOption, IFieldOptionComponentProps } from './JobDisruptionBudget';\nimport { defaultJobDisruptionBudget } from '../../../serverGroupConfiguration.service';\n\nconst RatePercentagePerInterval = (componentProps: IFieldOptionComponentProps) => (\n <>\n <FormikFormField\n name=\"disruptionBudget.ratePercentagePerInterval.intervalMs\"\n label=\"Interval\"\n input={(props) => (\n <div>\n <NumberInput {...props} disabled={componentProps.isDisabled} />\n <HelpField expand={true} content=\"(milliseconds)\" />\n </div>\n )}\n />\n <FormikFormField\n name=\"disruptionBudget.ratePercentagePerInterval.percentageLimitPerInterval\"\n label=\"Percentage Per Interval\"\n input={(props) => (\n <div>\n <NumberInput {...props} disabled={componentProps.isDisabled} />\n <HelpField expand={true} content=\"0.0-100.0 (double)\" />\n </div>\n )}\n />\n </>\n);\n\nconst RatePerInterval = () => (\n <>\n <FormikFormField\n name=\"disruptionBudget.ratePerInterval.intervalMs\"\n label=\"Interval\"\n input={(props) => (\n <div>\n <NumberInput {...props} />\n <HelpField expand={true} content=\"(milliseconds)\" />\n </div>\n )}\n />\n <FormikFormField\n name=\"disruptionBudget.ratePerInterval.limitPerInterval\"\n label=\"Limit Per Interval\"\n input={(props) => (\n <div>\n <NumberInput {...props} />\n <HelpField expand={true} content=\"(tasks)\" />\n </div>\n )}\n />\n </>\n);\n\nexport const rateOptions: IFieldOption[] = [\n {\n field: 'rateUnlimited',\n label: 'Unlimited',\n value: 0,\n description: `\n No limits on how many containers in a job may be relocated, provided the other disruption budget constraints\n are not violated.\n `,\n defaultValues: true,\n },\n {\n field: 'ratePercentagePerInterval',\n label: 'Rate Percentage Per Interval',\n value: 1,\n description: `\n Percentage of containers that can be relocated within a time interval.\n `,\n defaultValues: defaultJobDisruptionBudget.ratePercentagePerInterval,\n fieldComponent: RatePercentagePerInterval,\n },\n {\n field: 'ratePerInterval',\n label: 'Rate Per Interval',\n value: 2,\n description: `\n Limit number of relocations within a given time interval.\n `,\n defaultValues: { intervalMs: 60000, limitPerInterval: 2 },\n fieldComponent: RatePerInterval,\n },\n];\n","import type { FormikProps } from 'formik';\nimport { get } from 'lodash';\nimport React from 'react';\n\nimport { ChecklistInput, FormikFormField, HelpField, NumberInput, ReactSelectInput, SpinFormik } from '@spinnaker/core';\nimport type { IJobTimeWindow } from '../../../../../domain';\n\nimport type { ITitusServerGroupCommand } from '../../../serverGroupConfiguration.service';\n\nexport interface IWindowPickerProps {\n formik: FormikProps<ITitusServerGroupCommand>;\n isDisabled: boolean;\n}\n\nexport interface IWindowPickerState {\n addingNewWindow?: boolean;\n}\n\nconst DAYS = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];\n\ninterface IJobTimeWindowForm {\n days: string[];\n startHour: number;\n endHour: number;\n timeZone: string;\n}\n\nexport class WindowPicker extends React.Component<IWindowPickerProps, IWindowPickerState> {\n constructor(props: IWindowPickerProps) {\n super(props);\n this.state = {\n addingNewWindow: false,\n };\n }\n\n private removeWindow(index: number, subIndex: number) {\n const { values, setFieldValue } = this.props.formik;\n const { timeWindows } = values.disruptionBudget;\n const toRemove = timeWindows[index];\n if (toRemove.hourlyTimeWindows.length === 1) {\n setFieldValue(\n 'disruptionBudget.timeWindows',\n timeWindows.filter((w) => w !== toRemove),\n );\n } else {\n const subWindowToRemove = toRemove.hourlyTimeWindows[subIndex];\n const newWindows = toRemove.hourlyTimeWindows.filter((w) => w !== subWindowToRemove);\n setFieldValue(`disruptionBudget.timeWindows[${index}].hourlyTimeWindows`, newWindows);\n }\n }\n\n /**\n * The Budget API allows multiple hourly windows for a set of days; however, the UI is not really supportive of this,\n * so we'll add them as a single window for a single set of days. It's fine!\n */\n private configureNewWindow = () => {\n this.setState({ addingNewWindow: true });\n };\n\n private addNewWindow = (form: IJobTimeWindowForm) => {\n const { values, setFieldValue } = this.props.formik;\n const { days, startHour, endHour, timeZone } = form;\n const newWindow: IJobTimeWindow = {\n days,\n hourlyTimeWindows: [{ startHour, endHour }],\n timeZone,\n };\n setFieldValue('disruptionBudget.timeWindows', values.disruptionBudget.timeWindows.concat(newWindow));\n this.setState({ addingNewWindow: false });\n };\n\n private CurrentWindows = () => {\n const { disruptionBudget } = this.props.formik.values;\n const { isDisabled } = this.props;\n if (!disruptionBudget) {\n return null;\n }\n const { timeWindows } = disruptionBudget;\n return (\n <div className=\"sp-formItem\">\n <div className=\"sp-formItem__left\" />\n <div className=\"sp-formItem__right\">\n {timeWindows.map((timeWindow, i) => {\n return timeWindow.hourlyTimeWindows.map((w, i2) => (\n <div\n className=\"sp-margin-l-yaxis sp-margin-m-right\"\n style={{ display: 'inline-block' }}\n key={`${i}.${i2}`}\n >\n <div\n key={`${i}.${i2}`}\n className=\"horizontal center top sp-padding-m-yaxis sp-padding-s-xaxis\"\n style={{ backgroundColor: 'var(--color-dovegray)', borderRadius: '4px' }}\n >\n <div className=\"sp-padding-m-right\" style={{ color: 'var(--color-text-on-dark)', fontSize: '12px' }}>\n <div>\n <b>{timeWindow.days.map((d) => d.substr(0, 3)).join(', ')}</b>\n </div>\n <div>\n <em>\n {w.startHour}:00 - {w.endHour}:00 {timeWindow.timeZone}\n </em>\n </div>\n </div>\n {!isDisabled && (\n <a\n className=\"clickable\"\n style={{ color: 'var(--color-text-on-dark)' }}\n onClick={() => this.removeWindow(i, i2)}\n >\n <span className=\"glyphicon glyphicon-remove\" />\n </a>\n )}\n </div>\n </div>\n ));\n })}\n </div>\n </div>\n );\n };\n\n private NewWindowComponent = () => {\n if (!this.state.addingNewWindow) {\n return (\n <div className=\"sp-formItem\">\n <div className=\"sp-formItem__left\" />\n <div className=\"sp-formItem__right sp-margin-l-bottom\">\n <a className=\"button primary\" onClick={this.configureNewWindow}>\n <i className=\"fas fa-plus-circle\" /> Define New Window\n </a>\n </div>\n </div>\n );\n }\n return (\n <SpinFormik<IJobTimeWindowForm>\n initialValues={{\n days: [],\n startHour: 10,\n endHour: 16,\n timeZone: get(this.props.formik.values.disruptionBudget, 'timeWindows[0].timeZone', 'PST'),\n }}\n onSubmit={this.addNewWindow}\n render={(formik) => (\n <>\n <FormikFormField\n name=\"days\"\n label=\"Define a New Window\"\n input={(props) => <ChecklistInput {...props} stringOptions={DAYS} />}\n />\n <FormikFormField\n name=\"startHour\"\n label=\"Start\"\n input={(props) => (\n <div>\n <NumberInput {...props} min={0} max={formik.values.endHour} />\n <HelpField expand={true} content=\"hour (0-24)\" />\n </div>\n )}\n />\n <FormikFormField\n name=\"endHour\"\n label=\"End\"\n input={(props) => (\n <div>\n <NumberInput {...props} min={formik.values.startHour} max={23} />\n <HelpField expand={true} content=\"hour (0-24)\" />\n </div>\n )}\n />\n <FormikFormField\n name=\"timeZone\"\n label=\"Timezone\"\n input={(props) => <ReactSelectInput {...props} clearable={false} stringOptions={['PST', 'UTC']} />}\n />\n <div className=\"sp-formItem\">\n <div className=\"sp-formItem__left\" />\n <div className=\"sp-formItem__right sp-margin-l-bottom\">\n <button className=\"primary\" type=\"submit\" onClick={() => this.addNewWindow(formik.values)}>\n {' '}\n Add Window\n </button>\n </div>\n </div>\n </>\n )}\n />\n );\n };\n\n public render() {\n const { CurrentWindows, NewWindowComponent } = this;\n const { isDisabled } = this.props;\n return (\n <>\n <CurrentWindows />\n {!isDisabled && <NewWindowComponent />}\n </>\n );\n }\n}\n","import type { FormikProps } from 'formik';\nimport { get, isEqual } from 'lodash';\nimport React from 'react';\nimport type { Option } from 'react-select';\n\nimport type { Application } from '@spinnaker/core';\nimport {\n CheckboxInput,\n FormikFormField,\n HelpField,\n LayoutProvider,\n ResponsiveFieldLayout,\n TetheredSelect,\n} from '@spinnaker/core';\n\nimport { policyOptions } from './PolicyOptions';\nimport { rateOptions } from './RateOptions';\nimport { WindowPicker } from './WindowPicker';\nimport type { IJobDisruptionBudget } from '../../../../../domain';\nimport type { ITitusServerGroupCommand } from '../../../serverGroupConfiguration.service';\nimport {\n defaultJobDisruptionBudget,\n getDefaultJobDisruptionBudgetForApp,\n} from '../../../serverGroupConfiguration.service';\n\nexport interface IJobDisruptionBudgetProps {\n formik: FormikProps<ITitusServerGroupCommand>;\n app: Application;\n runJobView?: boolean;\n onStageChange?: (values: IJobDisruptionBudget) => void;\n}\n\nexport interface IJobDisruptionBudgetState {\n usingDefault: boolean;\n}\n\nexport interface IFieldOption extends Option {\n field: keyof IJobDisruptionBudget;\n description?: string;\n defaultValues: any;\n fieldComponent?: (props: IFieldOptionComponentProps) => JSX.Element;\n}\n\nexport interface IFieldOptionComponentProps {\n isDisabled: boolean;\n}\n\nexport const DisruptionBudgetDescription = () => (\n <p>\n The Job Disruption Budget is part of the job descriptor, and defines the behavior of how containers of the job can\n be relocated.{' '}\n <a href=\"http://manuals.test.netflix.net/view/titus-docs/mkdocs/master/disruption_budget/\" target=\"_blank\">\n Read the full documentation\n </a>\n </p>\n);\n\nexport class JobDisruptionBudget extends React.Component<IJobDisruptionBudgetProps, IJobDisruptionBudgetState> {\n private timeWindowOptions: IFieldOption[] = [\n {\n field: 'timeWindows',\n label: 'Anytime',\n value: 0,\n defaultValues: undefined,\n },\n {\n field: 'timeWindows',\n label: 'Specific Time Windows',\n value: 1,\n defaultValues: defaultJobDisruptionBudget.timeWindows,\n },\n ];\n\n constructor(props: IJobDisruptionBudgetProps) {\n super(props);\n const { disruptionBudget } = props.formik.values;\n this.state = {\n usingDefault: !disruptionBudget || isEqual(disruptionBudget, getDefaultJobDisruptionBudgetForApp(props.app)),\n };\n if (this.state.usingDefault) {\n this.setToDefaultBudget();\n }\n }\n\n private setToDefaultBudget(): void {\n this.props.formik.setFieldValue('disruptionBudget', getDefaultJobDisruptionBudgetForApp(this.props.app));\n }\n\n private toggleUseDefault = (): void => {\n if (!this.state.usingDefault) {\n this.setToDefaultBudget();\n }\n this.setState({ usingDefault: !this.state.usingDefault });\n };\n\n private getSelectionFromFields(options: IFieldOption[]): IFieldOption {\n const { disruptionBudget } = this.props.formik.values;\n if (!disruptionBudget) {\n return options[0];\n }\n return options.find((o) => !!disruptionBudget[o.field]);\n }\n\n componentDidUpdate = (oldProps: IJobDisruptionBudgetProps) => {\n if (\n this.props.onStageChange &&\n !isEqual(oldProps.formik.values.disruptionBudget, this.props.formik.values.disruptionBudget)\n ) {\n this.props.onStageChange(this.props.formik.values.disruptionBudget);\n }\n };\n\n private optionTypeChanged = (e: IFieldOption, options: IFieldOption[]) => {\n const deselected = options.filter((o) => o !== e);\n deselected.forEach((o) => this.props.formik.setFieldValue('disruptionBudget.' + o.field, undefined));\n this.props.formik.setFieldValue('disruptionBudget.' + e.field, e.defaultValues);\n };\n\n private policyTypeChanged = (e: IFieldOption) => this.optionTypeChanged(e, policyOptions);\n\n private rateTypeChanged = (e: IFieldOption) => this.optionTypeChanged(e, rateOptions);\n\n private timeWindowsChanged = (e: IFieldOption) => {\n this.props.formik.setFieldValue('disruptionBudget.' + e.field, e.defaultValues);\n };\n\n private getTimeWindowSelection(): IFieldOption {\n const windows = get(this.props.formik.values, 'disruptionBudget.timeWindows');\n if (windows) {\n return this.timeWindowOptions.find((o) => o.defaultValues);\n }\n return this.timeWindowOptions.find((o) => !o.defaultValues);\n }\n\n private toggleHealthProvider(provider: string) {\n const { values, setFieldValue } = this.props.formik;\n const providers = values.disruptionBudget.containerHealthProviders;\n const existing = providers.find((p) => p.name === provider);\n if (existing) {\n setFieldValue(\n 'disruptionBudget.containerHealthProviders',\n providers.filter((p) => p !== existing),\n );\n } else {\n setFieldValue('disruptionBudget.containerHealthProviders', providers.concat({ name: provider }));\n }\n }\n\n public render() {\n const { runJobView } = this.props;\n const { usingDefault } = this.state;\n const budget = this.props.formik.values.disruptionBudget || getDefaultJobDisruptionBudgetForApp(this.props.app);\n\n const policyType = this.getSelectionFromFields(policyOptions);\n const PolicyFields = policyType.fieldComponent;\n\n const rateType = this.getSelectionFromFields(rateOptions);\n const RateFields = rateType?.fieldComponent;\n\n const windowType = this.getTimeWindowSelection();\n\n const selectedProviders = (budget.containerHealthProviders ?? []).map((p) => p.name);\n\n const isSelfManaged = !!budget.selfManaged;\n const showConfig = !runJobView || (runJobView && !usingDefault);\n\n return (\n <LayoutProvider value={ResponsiveFieldLayout}>\n <div className=\"form-horizontal sp-margin-l-xaxis\">\n {!runJobView && <DisruptionBudgetDescription />}\n\n <FormikFormField\n name=\"usingDefault\"\n input={() => (\n <CheckboxInput\n checked={usingDefault}\n onChange={this.toggleUseDefault}\n text={<b>Use Netflix Defaults</b>}\n />\n )}\n layout={runJobView ? ({ input }) => <>{input}</> : undefined}\n />\n\n {showConfig && (\n <div style={{ opacity: usingDefault ? 0.5 : 1 }}>\n <div className=\"sp-formGroup\">\n <div className=\"groupHeader\">\n <FormikFormField\n name=\"policyType\"\n label=\"Policy\"\n input={(props) => (\n <div>\n <TetheredSelect\n {...props}\n menuContainerStyle={{ height: '300px' }}\n className=\"Select-menu-long\"\n style={{ width: '300px' }}\n disabled={usingDefault}\n clearable={false}\n onChange={this.policyTypeChanged}\n value={policyType}\n options={policyOptions}\n />\n <HelpField\n expand={true}\n content=\"A job policy defines container relocation rules and constraints\"\n />\n </div>\n )}\n />\n </div>\n <div className=\"sp-formItem\">\n <p>{policyType.description}</p>\n </div>\n {PolicyFields && <PolicyFields isDisabled={usingDefault} />}\n </div>\n {!isSelfManaged && (\n <div>\n <div className={`${budget.rateUnlimited ? '' : 'sp-formGroup'}`}>\n <div className={`${budget.rateUnlimited ? '' : 'groupHeader'}`}>\n <FormikFormField\n name=\"rates\"\n label=\"Rates\"\n input={(props) => (\n <TetheredSelect\n {...props}\n style={{ width: '300px' }}\n disabled={usingDefault}\n clearable={false}\n onChange={this.rateTypeChanged}\n value={rateType}\n options={rateOptions}\n />\n )}\n />\n </div>\n <div className=\"sp-formItem\">\n <p>{rateType.description}</p>\n </div>\n {RateFields && <RateFields isDisabled={usingDefault} />}\n </div>\n\n <div className={`${budget.timeWindows ? 'sp-formGroup' : ''}`}>\n <div className={`${budget.timeWindows ? 'groupHeader' : ''}`}>\n <FormikFormField\n name=\"timeWindows\"\n label=\"When Can Disruption Occur?\"\n input={(props) => (\n <TetheredSelect\n {...props}\n style={{ width: '300px' }}\n disabled={usingDefault}\n clearable={false}\n onChange={this.timeWindowsChanged}\n value={windowType}\n options={this.timeWindowOptions}\n />\n )}\n />\n </div>\n {budget.timeWindows && <WindowPicker isDisabled={usingDefault} formik={this.props.formik} />}\n </div>\n <FormikFormField\n name=\"healthProviders\"\n label=\"Container Health Provider\"\n input={() => (\n <div>\n <CheckboxInput\n checked={selectedProviders.includes('eureka')}\n onChange={() => this.toggleHealthProvider('eureka')}\n text=\"Discovery\"\n disabled={usingDefault}\n />\n </div>\n )}\n />\n </div>\n )}\n </div>\n )}\n </div>\n </LayoutProvider>\n );\n }\n}\n","import { defaultsDeep, set } from 'lodash';\nimport React from 'react';\n\nimport type { IAggregatedAccounts, IRegion, IStageConfigProps } from '@spinnaker/core';\nimport {\n AccountSelectInput,\n AccountService,\n AccountTag,\n FirewallLabels,\n HelpField,\n MapEditor,\n RegionSelectField,\n SpelNumberInput,\n SpinFormik,\n StageConfigField,\n} from '@spinnaker/core';\nimport type { IDockerImageAndTagChanges } from '@spinnaker/docker';\nimport { DockerImageAndTagSelector, DockerImageUtils } from '@spinnaker/docker';\n\nimport { TitusSecurityGroupPicker } from './TitusSecurityGroupPicker';\nimport type { IJobDisruptionBudget, ITitusResources } from '../../../domain';\nimport { IPv6CheckboxInput, JobDisruptionBudget } from '../../../serverGroup/configure/wizard/pages';\nimport { TitusProviderSettings } from '../../../titus.settings';\n\nexport interface ITitusRunJobStageConfigState {\n credentials: string[];\n regions: IRegion[];\n loaded: boolean;\n}\n\ninterface IClusterDefaults {\n application: string;\n containerAttributes: object;\n env: object;\n labels: object;\n resources: ITitusResources;\n retries: number;\n runtimeLimitSecs: number;\n securityGroups: string[];\n iamProfile?: string;\n}\n\nexport class TitusRunJobStageConfig extends React.Component<IStageConfigProps, ITitusRunJobStageConfigState> {\n private credentialsKeyedByAccount: IAggregatedAccounts = {};\n private defaultIamProfile = '';\n\n public state: ITitusRunJobStageConfigState = {\n credentials: [],\n regions: [],\n loaded: false,\n };\n\n public constructor(props: IStageConfigProps) {\n super(props);\n const { application, stage } = props;\n stage.cluster = stage.cluster || {};\n stage.waitForCompletion = stage.waitForCompletion === undefined ? true : stage.waitForCompletion;\n\n if (stage.cluster.imageId && !stage.cluster.imageId.includes('${')) {\n Object.assign(stage, DockerImageUtils.splitImageId(stage.cluster.imageId));\n }\n\n if (!stage.credentials && application.defaultCredentials.titus) {\n stage.credentials = application.defaultCredentials.titus;\n }\n\n if (!stage.cluster.capacity) {\n stage.cluster.capacity = {\n min: 1,\n max: 1,\n desired: 1,\n };\n }\n\n const defaultIamProfile = TitusProviderSettings.defaults.iamProfile || '{{application}}InstanceProfile';\n this.defaultIamProfile = defaultIamProfile.replace('{{application}}', application.name);\n\n const clusterDefaults: IClusterDefaults = {\n application: application.name,\n containerAttributes: {},\n env: {},\n labels: {},\n resources: {\n cpu: 1,\n disk: 10000,\n gpu: 0,\n memory: 512,\n networkMbps: 128,\n },\n retries: 0,\n runtimeLimitSecs: 3600,\n securityGroups: [] as string[],\n };\n\n if (stage.isNew) {\n clusterDefaults.iamProfile = this.defaultIamProfile;\n }\n\n defaultsDeep(stage.cluster, clusterDefaults);\n\n stage.cloudProvider = stage.cloudProvider || 'titus';\n stage.deferredInitialization = true;\n }\n\n private setRegistry(account: string) {\n if (account) {\n this.props.stage.registry = this.credentialsKeyedByAccount[account].registry;\n }\n }\n\n private updateRegions(account: string) {\n let regions: IRegion[];\n if (account) {\n regions = this.credentialsKeyedByAccount[account].regions;\n if (regions.map((r) => r.name).every((r) => r !== this.props.stage.cluster.region)) {\n delete this.props.stage.cluster.region;\n this.props.stageFieldUpdated();\n }\n } else {\n regions = [];\n }\n this.setState({ regions });\n }\n\n private accountChanged = (account: string) => {\n set(this.props.stage, 'account', account);\n this.stageFieldChanged('credentials', account);\n this.setRegistry(account);\n this.updateRegions(account);\n\n const accountDetails = this.credentialsKeyedByAccount[account];\n const ipv6Default = accountDetails.environment === 'test' ? 'true' : 'false';\n this.associateIPv6AddressChanged(ipv6Default);\n };\n\n private dockerChanged = (changes: IDockerImageAndTagChanges) => {\n // Temporary until stage config section is no longer angular\n const { imageId, ...rest } = changes;\n Object.assign(this.props.stage, rest);\n if (imageId) {\n this.props.stage.cluster.imageId = imageId;\n } else {\n delete this.props.stage.cluster.imageId;\n }\n this.props.stageFieldUpdated();\n this.forceUpdate();\n };\n\n private stageFieldChanged = (fieldIndex: string, value: any) => {\n set(this.props.stage, fieldIndex, value);\n this.props.stageFieldUpdated();\n this.forceUpdate();\n };\n\n public componentDidMount() {\n const { stage } = this.props;\n AccountService.getCredentialsKeyedByAccount('titus').then((credentialsKeyedByAccount) => {\n this.credentialsKeyedByAccount = credentialsKeyedByAccount;\n const credentials = Object.keys(credentialsKeyedByAccount);\n stage.credentials = stage.credentials || credentials[0];\n\n this.setRegistry(stage.credentials);\n this.updateRegions(stage.credentials);\n this.setState({ credentials, loaded: true });\n\n const account = this.credentialsKeyedByAccount[stage.credentials];\n const defaultIPv6Address =\n account.environment === 'test' &&\n stage.cluster.containerAttributes['titusParameter.agent.assignIPv6Address'] === undefined\n ? 'true'\n : 'false';\n this.associateIPv6AddressChanged(defaultIPv6Address);\n });\n }\n\n private mapChanged = (key: string, values: { [key: string]: string }) => {\n this.stageFieldChanged(key, values);\n };\n\n private groupsChanged = (groups: string[]) => {\n this.stageFieldChanged('cluster.securityGroups', groups);\n this.forceUpdate();\n };\n\n private associateIPv6AddressChanged = (value: string) => {\n const oldAttributes = this.props.stage.cluster.containerAttributes || {};\n const updatedAttributes = {\n ...oldAttributes,\n 'titusParameter.agent.assignIPv6Address': value,\n };\n this.mapChanged('cluster.containerAttributes', updatedAttributes);\n };\n\n public disruptionBudgetChanged = (values: IJobDisruptionBudget) => {\n const { stage, stageFieldUpdated } = this.props;\n stage.cluster.disruptionBudget = values;\n stageFieldUpdated();\n };\n\n public render() {\n const { application, stage } = this.props;\n const { credentials, loaded, regions } = this.state;\n const awsAccount = (this.credentialsKeyedByAccount[stage.credentials] || { awsAccount: '' }).awsAccount;\n\n const entryPointList = stage.cluster.entryPointList?.length\n ? stage.cluster.entryPointList.join(',')\n : stage.cluster.entryPoint;\n const cmdList = stage.cluster.cmdList?.length ? stage.cluster.cmdList.join(',') : stage.cluster.cmd;\n\n return (\n <div className=\"form-horizontal\">\n <div className=\"form-group\">\n <label className=\"col-md-3 sm-label-right\">\n <span className=\"label-text\">Account</span>\n </label>\n <div className=\"col-md-5\">\n <AccountSelectInput\n value={stage.credentials}\n onChange={(evt: any) => this.accountChanged(evt.target.value)}\n accounts={credentials}\n provider=\"titus\"\n />\n {stage.credentials !== undefined && (\n <div className=\"small\">\n Uses resources from the Amazon account <AccountTag account={awsAccount} />\n </div>\n )}\n </div>\n </div>\n\n <RegionSelectField\n labelColumns={3}\n fieldColumns={5}\n component={stage.cluster}\n field=\"region\"\n account={stage.credentials}\n regions={regions}\n onChange={(region) => this.stageFieldChanged('region', region)}\n />\n\n <DockerImageAndTagSelector\n specifyTagByRegex={false}\n account={stage.credentials}\n digest={stage.digest}\n imageId={stage.cluster.imageId}\n organization={stage.organization}\n registry={stage.registry}\n repository={stage.repository}\n tag={stage.tag}\n showRegistry={false}\n onChange={this.dockerChanged}\n deferInitialization={stage.deferredInitialization}\n />\n\n <StageConfigField label=\"CPU(s)\">\n <SpelNumberInput\n value={stage.cluster.resources.cpu}\n onChange={(value) => this.stageFieldChanged('cluster.resources.cpu', value)}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Memory (MB)\">\n <SpelNumberInput\n onChange={(value) => this.stageFieldChanged('cluster.resources.memory', value)}\n value={stage.cluster.resources.memory}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Disk (MB)\">\n <SpelNumberInput\n onChange={(value) => this.stageFieldChanged('cluster.resources.disk', value)}\n value={stage.cluster.resources.disk}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Network (Mbps)\" helpKey=\"titus.deploy.network\">\n <SpelNumberInput\n onChange={(value) => this.stageFieldChanged('cluster.resources.networkMbps', value)}\n value={stage.cluster.resources.networkMbps}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"GPU(s)\" helpKey=\"titus.deploy.gpu\">\n <SpelNumberInput\n onChange={(value) => this.stageFieldChanged('cluster.resources.gpu', value)}\n value={stage.cluster.resources.gpu}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Entrypoint(s)\" helpKey=\"titus.deploy.entrypoint\">\n <input\n type=\"text\"\n className=\"form-control input-sm\"\n value={entryPointList}\n onChange={(e) => this.stageFieldChanged('cluster.entryPointList', e.target.value.split(','))}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Command(s)\" helpKey=\"titus.deploy.command\">\n <input\n type=\"text\"\n className=\"form-control input-sm\"\n value={cmdList}\n onChange={(e) => this.stageFieldChanged('cluster.cmdList', e.target.value.split(','))}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Runtime Limit (Seconds)\" helpKey=\"titus.deploy.runtimeLimitSecs\">\n <SpelNumberInput\n value={stage.cluster.runtimeLimitSecs}\n onChange={(value) => this.stageFieldChanged('cluster.runtimeLimitSecs', value)}\n min={1}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Retries\" helpKey=\"titus.deploy.retries\">\n <SpelNumberInput\n onChange={(value) => this.stageFieldChanged('cluster.retries', value)}\n value={stage.cluster.retries}\n min={0}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Property File\" helpKey=\"titus.deploy.propertyFile\">\n <input\n type=\"text\"\n className=\"form-control input-sm\"\n onChange={(e) => this.stageFieldChanged('propertyFile', e.target.value)}\n value={stage.propertyFile}\n />\n </StageConfigField>\n\n <div className=\"form-group\">\n <div className=\"col-md-9 col-md-offset-1\">\n <div className=\"checkbox\">\n <label>\n <input\n type=\"checkbox\"\n checked={stage.showAdvancedOptions}\n onChange={(e) => this.stageFieldChanged('showAdvancedOptions', e.target.checked)}\n />\n <strong>Show Advanced Options</strong>\n </label>\n </div>\n </div>\n </div>\n\n <div className={`${stage.showAdvancedOptions === true ? 'collapse.in' : 'collapse'}`}>\n <div className=\"form-group\">\n <label className=\"col-md-3 sm-label-right\">\n <span className=\"label-text\">IAM Instance Profile</span> <HelpField id=\"titus.deploy.iamProfile\" />\n </label>\n <div className=\"col-md-4\">\n <input\n type=\"text\"\n className=\"form-control input-sm\"\n value={stage.cluster.iamProfile}\n placeholder={this.defaultIamProfile}\n required={true}\n onChange={(e) => this.stageFieldChanged('cluster.iamProfile', e.target.value)}\n />\n {!stage.isNew && !stage.cluster.iamProfile && (\n <a\n className=\"small clickable\"\n onClick={() => this.stageFieldChanged('cluster.iamProfile', this.defaultIamProfile)}\n >\n Use suggested default\n </a>\n )}\n </div>\n <div className=\"col-md-1 small\" style={{ whiteSpace: 'nowrap', paddingLeft: '0px', paddingTop: '7px' }}>\n in <AccountTag account={awsAccount} />\n </div>\n </div>\n\n <StageConfigField label=\"Capacity Group\" fieldColumns={4} helpKey=\"titus.job.capacityGroup\">\n <input\n type=\"text\"\n className=\"form-control input-sm\"\n value={stage.cluster.capacityGroup || ''}\n onChange={(e) => this.stageFieldChanged('cluster.capacityGroup', e.target.value)}\n />\n </StageConfigField>\n\n <StageConfigField label={FirewallLabels.get('Firewalls')} helpKey=\"titus.job.securityGroups\">\n {(!stage.credentials || !stage.cluster.region) && (\n <div>Account and region must be selected before {FirewallLabels.get('firewalls')} can be added</div>\n )}\n {loaded && stage.credentials && stage.cluster.region && (\n <TitusSecurityGroupPicker\n account={stage.credentials}\n region={stage.cluster.region}\n command={stage}\n amazonAccount={awsAccount}\n hideLabel={true}\n groupsToEdit={stage.cluster.securityGroups}\n onChange={this.groupsChanged}\n />\n )}\n </StageConfigField>\n\n <StageConfigField label=\"Associate IPv6 Address (Recommended)\" helpKey=\"serverGroup.ipv6\">\n <IPv6CheckboxInput\n value={stage.cluster.containerAttributes['titusParameter.agent.assignIPv6Address']}\n onChange={(e) => this.associateIPv6AddressChanged(e.target.value)}\n />\n </StageConfigField>\n\n <StageConfigField label={'Disruption Budget'} helpKey=\"titus.disruptionbudget.description\">\n <SpinFormik\n initialValues={stage.cluster}\n onSubmit={() => {}}\n render={(formik) => (\n <JobDisruptionBudget\n formik={formik}\n app={application}\n runJobView={true}\n onStageChange={this.disruptionBudgetChanged}\n />\n )}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Job Attributes (optional)\">\n <MapEditor\n model={stage.cluster.labels}\n allowEmpty={true}\n onChange={(v: any) => this.mapChanged('cluster.labels', v)}\n />\n </StageConfigField>\n <StageConfigField label=\"Container Attributes (optional)\">\n <MapEditor\n model={stage.cluster.containerAttributes}\n allowEmpty={true}\n onChange={(v: any) => this.mapChanged('cluster.containerAttributes', v)}\n />\n </StageConfigField>\n <StageConfigField label=\"Environment Variables (optional)\">\n <MapEditor\n model={stage.cluster.env}\n allowEmpty={true}\n onChange={(v: any) => this.mapChanged('cluster.env', v)}\n />\n </StageConfigField>\n </div>\n\n <StageConfigField label=\"Wait for results\" helpKey=\"titus.job.waitForCompletion\">\n <input\n type=\"checkbox\"\n className=\"input-sm\"\n name=\"waitForCompletion\"\n checked={stage.waitForCompletion}\n onChange={(e) => this.stageFieldChanged('waitForCompletion', e.target.checked)}\n />\n </StageConfigField>\n </div>\n );\n }\n}\n","import type { IStage } from '@spinnaker/core';\nimport { ExecutionDetailsTasks, Registry } from '@spinnaker/core';\n\nimport { RunJobExecutionDetails } from './RunJobExecutionDetails';\nimport { TitusRunJobStageConfig } from './TitusRunJobStageConfig';\n\nRegistry.pipeline.registerStage({\n provides: 'runJob',\n useBaseProvider: true,\n restartable: true,\n key: 'runJob',\n cloudProvider: 'titus',\n providesFor: ['aws', 'titus'],\n component: TitusRunJobStageConfig,\n executionDetailsSections: [RunJobExecutionDetails, ExecutionDetailsTasks],\n accountExtractor: (stage: IStage) => [stage.context.credentials],\n configAccountExtractor: (stage: IStage) => [stage.credentials],\n supportsCustomTimeout: true,\n validators: [\n { type: 'requiredField', fieldName: 'cluster.iamProfile' },\n { type: 'requiredField', fieldName: 'cluster.imageId' },\n { type: 'requiredField', fieldName: 'credentials' },\n { type: 'requiredField', fieldName: 'cluster.region' },\n { type: 'requiredField', fieldName: 'cluster.resources.cpu' },\n { type: 'requiredField', fieldName: 'cluster.resources.gpu' },\n { type: 'requiredField', fieldName: 'cluster.resources.memory' },\n { type: 'requiredField', fieldName: 'cluster.resources.disk' },\n { type: 'requiredField', fieldName: 'cluster.runtimeLimitSecs' },\n ],\n});\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_SCALEDOWNCLUSTER_TITUSSCALEDOWNCLUSTERSTAGE =\n 'spinnaker.titus.pipeline.stage.scaleDownClusterStage';\nexport const name = TITUS_PIPELINE_STAGES_SCALEDOWNCLUSTER_TITUSSCALEDOWNCLUSTERSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_SCALEDOWNCLUSTER_TITUSSCALEDOWNCLUSTERSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'scaleDownCluster',\n cloudProvider: 'titus',\n templateUrl: require('./scaleDownClusterStage.html'),\n executionConfigSections: ['scaleDownClusterConfig', 'taskStatus'],\n accountExtractor: (stage) => [stage.context.credentials],\n configAccountExtractor: (stage) => [stage.credentials],\n validators: [\n { type: 'requiredField', fieldName: 'cluster' },\n {\n type: 'requiredField',\n fieldName: 'remainingFullSizeServerGroups',\n fieldLabel: 'Keep [X] full size Server Groups',\n },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n strategy: true,\n });\n })\n .controller('titusScaleDownClusterStageCtrl', [\n '$scope',\n function ($scope) {\n const ctrl = this;\n\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (stage.remainingFullSizeServerGroups === undefined) {\n stage.remainingFullSizeServerGroups = 1;\n }\n\n if (stage.allowScaleDownActive === undefined) {\n stage.allowScaleDownActive = false;\n }\n\n ctrl.pluralize = function (str, val) {\n if (val === 1) {\n return str;\n }\n return str + 's';\n };\n\n if (stage.preferLargerOverNewer === undefined) {\n stage.preferLargerOverNewer = 'false';\n }\n stage.preferLargerOverNewer = stage.preferLargerOverNewer.toString();\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_SHRINKCLUSTER_TITUSSHRINKCLUSTERSTAGE =\n 'spinnaker.titus.pipeline.stage.shrinkClusterStage';\nexport const name = TITUS_PIPELINE_STAGES_SHRINKCLUSTER_TITUSSHRINKCLUSTERSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_SHRINKCLUSTER_TITUSSHRINKCLUSTERSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'shrinkCluster',\n cloudProvider: 'titus',\n templateUrl: require('./shrinkClusterStage.html'),\n accountExtractor: (stage) => [stage.context.credentials],\n configAccountExtractor: (stage) => [stage.credentials],\n validators: [\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'shrinkToSize', fieldLabel: 'shrink to [X] Server Groups' },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusShrinkClusterStageCtrl', [\n '$scope',\n function ($scope) {\n const ctrl = this;\n\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (stage.shrinkToSize === undefined) {\n stage.shrinkToSize = 1;\n }\n\n if (stage.allowDeleteActive === undefined) {\n stage.allowDeleteActive = false;\n }\n\n ctrl.pluralize = function (str, val) {\n if (val === 1) {\n return str;\n }\n return str + 's';\n };\n\n if (stage.retainLargerOverNewer === undefined) {\n stage.retainLargerOverNewer = 'false';\n }\n stage.retainLargerOverNewer = stage.retainLargerOverNewer.toString();\n },\n ]);\n","import { module } from 'angular';\nimport { TitusReactInjector } from './titus.react.injector';\n\nexport const TITUS_REACT_MODULE = 'spinnaker.titus.react';\nmodule(TITUS_REACT_MODULE, []).run([\n '$injector',\n function ($injector: any) {\n TitusReactInjector.initialize($injector);\n },\n]);\n","'use strict';\n\nimport { module } from 'angular';\n\nexport const TITUS_SECURITYGROUP_SECURITYGROUP_READ_SERVICE = 'spinnaker.titus.securityGroup.reader';\nexport const name = TITUS_SECURITYGROUP_SECURITYGROUP_READ_SERVICE; // for backwards compatibility\nmodule(TITUS_SECURITYGROUP_SECURITYGROUP_READ_SERVICE, []).factory('titusSecurityGroupReader', function () {\n function resolveIndexedSecurityGroup(indexedSecurityGroups, container, securityGroupId) {\n return indexedSecurityGroups[container.awsAccount][container.region][securityGroupId];\n }\n\n return {\n resolveIndexedSecurityGroup: resolveIndexedSecurityGroup,\n };\n});\n","'use strict';\n\nimport * as angular from 'angular';\n\nimport { cloneDeep, set } from 'lodash';\nimport { NameUtils } from '@spinnaker/core';\nimport { TitusProviderSettings } from '../../titus.settings';\n\nexport const TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER =\n 'spinnaker.titus.serverGroupCommandBuilder.service';\nexport const name = TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER; // for backwards compatibility\nangular.module(TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER, []).factory('titusServerGroupCommandBuilder', [\n '$q',\n function ($q) {\n function getDefaultIamProfile(application) {\n const defaultIamProfile = TitusProviderSettings.defaults.iamProfile || '{{application}}InstanceProfile';\n return defaultIamProfile.replace('{{application}}', application.name);\n }\n\n function buildNewServerGroupCommand(application, defaults) {\n defaults = defaults || {};\n\n const defaultCredentials = defaults.account || TitusProviderSettings.defaults.account;\n const defaultRegion = defaults.region || TitusProviderSettings.defaults.region;\n const defaultZone = defaults.zone || TitusProviderSettings.defaults.zone;\n const defaultIamProfile = getDefaultIamProfile(application);\n\n const command = {\n application: application.name,\n credentials: defaultCredentials,\n region: defaultRegion,\n zone: defaultZone,\n network: 'default',\n inService: true,\n resources: {\n cpu: 1,\n networkMbps: 128,\n disk: 10000,\n memory: 512,\n gpu: 0,\n },\n efs: {\n mountPerm: 'RW',\n },\n strategy: '',\n capacity: {\n min: 1,\n max: 1,\n desired: 1,\n },\n targetHealthyDeployPercentage: 100,\n env: {},\n labels: {},\n containerAttributes: {\n 'titusParameter.agent.assignIPv6Address': 'true',\n },\n cloudProvider: 'titus',\n selectedProvider: 'titus',\n iamProfile: defaultIamProfile,\n constraints: {\n hard: {},\n soft: {},\n },\n serviceJobProcesses: {},\n viewState: {\n defaultIamProfile,\n useSimpleCapacity: true,\n usePreferredZones: true,\n mode: defaults.mode || 'create',\n },\n securityGroups: [],\n imageId: defaults.imageId,\n migrationPolicy: { type: 'systemDefault' },\n digest: '',\n organization: '',\n tag: '',\n registry: '',\n repository: '',\n };\n\n return $q.when(command);\n }\n\n // Only used to prepare view requiring template selecting\n function buildNewServerGroupCommandForPipeline() {\n return $q.when({\n viewState: {\n requiresTemplateSelection: true,\n },\n });\n }\n\n function buildServerGroupCommandFromExisting(application, serverGroup, mode) {\n mode = mode || 'clone';\n\n const serverGroupName = NameUtils.parseServerGroupName(serverGroup.name);\n\n const isTestEnv = serverGroup.awsAccount === 'test';\n const isIPv6Set =\n serverGroup.containerAttributes &&\n serverGroup.containerAttributes['titusParameter.agent.assignIPv6Address'] !== undefined;\n\n // If IPv6 hasn't been explicitly set by the user, auto-assign based on the environment.\n const assignIPv6Address = isIPv6Set\n ? serverGroup.containerAttributes['titusParameter.agent.assignIPv6Address']\n : isTestEnv\n ? 'true'\n : 'false';\n\n const containerAttributes = {\n ...serverGroup.containerAttributes,\n 'titusParameter.agent.assignIPv6Address': assignIPv6Address,\n };\n\n const command = {\n application: application.name,\n disruptionBudget: serverGroup.disruptionBudget,\n strategy: '',\n stack: serverGroupName.stack,\n freeFormDetails: serverGroupName.freeFormDetails,\n account: serverGroup.account,\n credentials: serverGroup.account,\n region: serverGroup.region,\n env: serverGroup.env,\n labels: serverGroup.labels,\n containerAttributes,\n entryPoint: serverGroup.entryPoint,\n iamProfile: serverGroup.iamProfile,\n capacityGroup: serverGroup.capacityGroup,\n migrationPolicy: serverGroup.migrationPolicy ? serverGroup.migrationPolicy : { type: 'systemDefault' },\n securityGroups: serverGroup.securityGroups || [],\n constraints: {\n hard: (serverGroup.constraints && serverGroup.constraints.hard) || {},\n soft: (serverGroup.constraints && serverGroup.constraints.soft) || {},\n },\n serviceJobProcesses: Object.assign({}, serverGroup.serviceJobProcesses),\n inService: serverGroup.disabled ? false : true,\n source: {\n account: serverGroup.account,\n region: serverGroup.region,\n asgName: serverGroup.name,\n },\n resources: {\n cpu: serverGroup.resources.cpu,\n gpu: serverGroup.resources.gpu,\n memory: serverGroup.resources.memory,\n disk: serverGroup.resources.disk,\n networkMbps: serverGroup.resources.networkMbps,\n },\n targetGroups: serverGroup.targetGroups,\n capacity: {\n min: serverGroup.capacity.min,\n max: serverGroup.capacity.max,\n desired: serverGroup.capacity.desired,\n },\n targetHealthyDeployPercentage: 100,\n cloudProvider: 'titus',\n selectedProvider: 'titus',\n viewState: {\n defaultIamProfile: getDefaultIamProfile(application),\n useSimpleCapacity: serverGroup.capacity.min === serverGroup.capacity.max,\n mode: mode,\n },\n organization: '',\n tag: '',\n digest: '',\n registry: '',\n repository: '',\n };\n\n if (serverGroup.efs) {\n command.efs = {\n mountPoint: serverGroup.efs.mountPoint,\n mountPerm: serverGroup.efs.mountPerm,\n efsId: serverGroup.efs.efsId,\n };\n } else {\n command.efs = {\n mountPerm: 'RW',\n };\n }\n\n if (mode !== 'editPipeline') {\n command.imageId =\n serverGroup.image.dockerImageName +\n ':' +\n (serverGroup.image.dockerImageVersion\n ? serverGroup.image.dockerImageVersion\n : serverGroup.image.dockerImageDigest);\n }\n\n return $q.when(command);\n }\n\n function buildServerGroupCommandFromPipeline(application, originalCluster) {\n const pipelineCluster = cloneDeep(originalCluster);\n const commandOptions = {\n account: pipelineCluster.account,\n imageId: pipelineCluster.imageId,\n region: pipelineCluster.region,\n };\n\n return buildNewServerGroupCommand(application, commandOptions).then(function (command) {\n command.constraints = {\n hard:\n (originalCluster.constraints && originalCluster.constraints.hard) ||\n (originalCluster.hardConstraints &&\n originalCluster.hardConstraints.reduce((a, c) => set(a, c, 'true'), {})) ||\n {},\n soft:\n (originalCluster.constraints && originalCluster.constraints.soft) ||\n (originalCluster.softConstraints &&\n originalCluster.softConstraints.reduce((a, c) => set(a, c, 'true'), {})) ||\n {},\n };\n delete pipelineCluster.hardConstraints;\n delete pipelineCluster.softConstraints;\n\n const viewState = {\n disableImageSelection: true,\n useSimpleCapacity: originalCluster.capacity.min === originalCluster.capacity.max,\n mode: 'editPipeline',\n submitButtonLabel: 'Done',\n defaultIamProfile: getDefaultIamProfile(application),\n };\n\n const viewOverrides = {\n region: pipelineCluster.region,\n credentials: pipelineCluster.account,\n iamProfile: pipelineCluster.iamProfile,\n viewState: viewState,\n };\n\n pipelineCluster.strategy = pipelineCluster.strategy || '';\n const extendedCommand = angular.extend({}, command, pipelineCluster, viewOverrides);\n return extendedCommand;\n });\n }\n\n return {\n buildNewServerGroupCommand,\n buildNewServerGroupCommandForPipeline,\n buildServerGroupCommandFromExisting,\n buildServerGroupCommandFromPipeline,\n };\n },\n]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { TITUS_SERVER_GROUP_CONFIGURATION_SERVICE } from './serverGroupConfiguration.service';\n\nexport const TITUS_SERVERGROUP_CONFIGURE_SERVERGROUP_CONFIGURE_TITUS_MODULE = 'spinnaker.serverGroup.configure.titus';\nexport const name = TITUS_SERVERGROUP_CONFIGURE_SERVERGROUP_CONFIGURE_TITUS_MODULE; // for backwards compatibility\nmodule(TITUS_SERVERGROUP_CONFIGURE_SERVERGROUP_CONFIGURE_TITUS_MODULE, [TITUS_SERVER_GROUP_CONFIGURATION_SERVICE]);\n","import { get, isEqual } from 'lodash';\nimport React from 'react';\n\nimport { ServerGroupCapacity, ServerGroupLoadBalancers, ServerGroupSecurityGroups } from '@spinnaker/amazon';\nimport type { Application, IModalComponentProps, IStage } from '@spinnaker/core';\nimport {\n AccountTag,\n DeployInitializer,\n FirewallLabels,\n noop,\n ReactInjector,\n ReactModal,\n TaskMonitor,\n WizardModal,\n WizardPage,\n} from '@spinnaker/core';\n\nimport { ServerGroupBasicSettings, ServerGroupParameters, ServerGroupResources } from './pages';\nimport { JobDisruptionBudget } from './pages/disruptionBudget/JobDisruptionBudget';\nimport { TitusReactInjector } from '../../../reactShims';\nimport type { ITitusServerGroupCommand } from '../serverGroupConfiguration.service';\nimport { getDefaultJobDisruptionBudgetForApp } from '../serverGroupConfiguration.service';\n\nexport interface ITitusCloneServerGroupModalProps extends IModalComponentProps {\n title: string;\n application: Application;\n command: ITitusServerGroupCommand;\n}\n\nexport interface ITitusCloneServerGroupModalState {\n firewallsLabel: string;\n loaded: boolean;\n requiresTemplateSelection: boolean;\n taskMonitor: TaskMonitor;\n}\n\nexport class TitusCloneServerGroupModal extends React.Component<\n ITitusCloneServerGroupModalProps,\n ITitusCloneServerGroupModalState\n> {\n public static defaultProps: Partial<ITitusCloneServerGroupModalProps> = {\n closeModal: noop,\n dismissModal: noop,\n };\n\n private _isUnmounted = false;\n private refreshUnsubscribe: () => void;\n\n public static show(props: ITitusCloneServerGroupModalProps): Promise<ITitusServerGroupCommand> {\n const modalProps = { dialogClassName: 'wizard-modal modal-lg' };\n return ReactModal.show(TitusCloneServerGroupModal, props, modalProps);\n }\n\n constructor(props: ITitusCloneServerGroupModalProps) {\n super(props);\n\n const requiresTemplateSelection = get(props, 'command.viewState.requiresTemplateSelection', false);\n if (!requiresTemplateSelection) {\n this.configureCommand();\n }\n\n this.state = {\n firewallsLabel: FirewallLabels.get('Firewalls'),\n loaded: false,\n requiresTemplateSelection,\n taskMonitor: new TaskMonitor({\n application: props.application,\n title: 'Creating your server group',\n modalInstance: TaskMonitor.modalInstanceEmulation(() => this.props.dismissModal()),\n onTaskComplete: this.onTaskComplete,\n }),\n };\n }\n\n private templateSelected = () => {\n this.setState({ requiresTemplateSelection: false });\n this.configureCommand();\n };\n\n private onTaskComplete = () => {\n this.props.application.serverGroups.refresh();\n this.props.application.serverGroups.onNextRefresh(null, this.onApplicationRefresh);\n };\n\n protected onApplicationRefresh = (): void => {\n if (this._isUnmounted) {\n return;\n }\n\n const { command } = this.props;\n const { taskMonitor } = this.state;\n const cloneStage = taskMonitor.task.execution.stages.find((stage: IStage) => stage.type === 'cloneServerGroup');\n if (cloneStage && cloneStage.context['deploy.server.groups']) {\n const newServerGroupName = cloneStage.context['deploy.server.groups'][command.region];\n if (newServerGroupName) {\n const newStateParams = {\n serverGroup: newServerGroupName,\n accountId: command.credentials,\n region: command.region,\n provider: 'titus',\n };\n let transitionTo = '^.^.^.clusters.serverGroup';\n if (ReactInjector.$state.includes('**.clusters.serverGroup')) {\n // clone via details, all view\n transitionTo = '^.serverGroup';\n }\n if (ReactInjector.$state.includes('**.clusters.cluster.serverGroup')) {\n // clone or create with details open\n transitionTo = '^.^.serverGroup';\n }\n if (ReactInjector.$state.includes('**.clusters')) {\n // create new, no details open\n transitionTo = '.serverGroup';\n }\n ReactInjector.$state.go(transitionTo, newStateParams);\n }\n }\n };\n\n private configureCommand = () => {\n const { command } = this.props;\n TitusReactInjector.titusServerGroupConfigurationService.configureCommand(command).then(() => {\n TitusReactInjector.titusServerGroupConfigurationService.configureSubnets(command);\n if (!command.credentials.includes('${')) {\n // so as to not erase registry when account is a spel expression\n command.registry = ((command.backingData.credentialsKeyedByAccount[command.credentials] as any) || {}).registry;\n }\n this.setState({ loaded: true, requiresTemplateSelection: false });\n });\n };\n\n public componentWillUnmount(): void {\n this._isUnmounted = true;\n if (this.refreshUnsubscribe) {\n this.refreshUnsubscribe();\n }\n }\n\n private submit = (command: ITitusServerGroupCommand): void => {\n const forPipelineConfig = command.viewState.mode === 'editPipeline' || command.viewState.mode === 'createPipeline';\n // never persist the default budget\n let toSubmit = command;\n // TODO: see if this is needed\n if (command.disruptionBudget.timeWindows && !command.disruptionBudget.timeWindows.length) {\n delete command.disruptionBudget.timeWindows;\n }\n if (isEqual(getDefaultJobDisruptionBudgetForApp(this.props.application), command.disruptionBudget)) {\n toSubmit = { ...command, disruptionBudget: undefined };\n }\n if (forPipelineConfig) {\n this.props.closeModal && this.props.closeModal(toSubmit);\n } else {\n this.state.taskMonitor.submit(() =>\n ReactInjector.serverGroupWriter.cloneServerGroup(toSubmit, this.props.application),\n );\n }\n };\n\n private getLoadBalancerNote = (command: ITitusServerGroupCommand) => {\n return (\n <div className=\"form-group small\" style={{ marginTop: '20px' }}>\n <div className=\"col-md-8 col-md-offset-3\">\n <p>\n Only target groups with target type <em>ip</em> are supported in Titus. It is not possible to re-use target\n groups of target type <em>instance</em> used by Amazon instances.{' '}\n </p>\n {command.backingData !== undefined &&\n command.backingData.credentialsKeyedByAccount !== undefined &&\n command.credentials !== undefined && (\n <p>\n Uses target groups from the Amazon account{' '}\n <AccountTag\n account={\n command.backingData.credentialsKeyedByAccount[command.credentials] &&\n command.backingData.credentialsKeyedByAccount[command.credentials].awsAccount\n }\n />\n </p>\n )}\n </div>\n </div>\n );\n };\n\n private getSecurityGroupNote = (command: ITitusServerGroupCommand) => {\n const amazonAccount =\n command.backingData &&\n command.backingData.credentialsKeyedByAccount &&\n command.backingData.credentialsKeyedByAccount[command.credentials] &&\n command.backingData.credentialsKeyedByAccount[command.credentials].awsAccount;\n if (!amazonAccount || command.credentials === undefined) {\n return null;\n }\n\n return (\n <div className=\"form-group small\">\n <div className=\"col-md-9 col-md-offset-3\">\n Uses {FirewallLabels.get('firewalls')} from the Amazon account <AccountTag account={amazonAccount} />\n </div>\n </div>\n );\n };\n\n public render() {\n const { application, command, dismissModal, title } = this.props;\n const { loaded, taskMonitor, requiresTemplateSelection } = this.state;\n\n if (requiresTemplateSelection) {\n return (\n <DeployInitializer\n application={application}\n cloudProvider=\"titus\"\n command={command}\n onDismiss={dismissModal}\n onTemplateSelected={this.templateSelected}\n />\n );\n }\n\n return (\n <WizardModal<ITitusServerGroupCommand>\n heading={title}\n initialValues={command}\n loading={!loaded}\n taskMonitor={taskMonitor}\n dismissModal={dismissModal}\n closeModal={this.submit}\n submitButtonLabel={command.viewState.submitButtonLabel}\n render={({ formik, nextIdx, wizard }) => (\n <>\n <WizardPage\n label=\"Basic Settings\"\n wizard={wizard}\n order={nextIdx()}\n render={({ innerRef }) => <ServerGroupBasicSettings ref={innerRef} formik={formik} app={application} />}\n />\n\n <WizardPage\n label=\"Resources\"\n wizard={wizard}\n order={nextIdx()}\n render={({ innerRef }) => <ServerGroupResources ref={innerRef} formik={formik} />}\n />\n\n <WizardPage\n label=\"Capacity\"\n wizard={wizard}\n order={nextIdx()}\n render={({ innerRef }) => <ServerGroupCapacity ref={innerRef} formik={formik} />}\n />\n\n <WizardPage\n label=\"Load Balancers\"\n wizard={wizard}\n order={nextIdx()}\n note={this.getLoadBalancerNote(formik.values)}\n render={({ innerRef }) => (\n <ServerGroupLoadBalancers\n ref={innerRef}\n formik={formik as any}\n hideLoadBalancers={true}\n targetGroupTypeHelpText={'ip'}\n />\n )}\n />\n\n <WizardPage\n label={FirewallLabels.get('Firewalls')}\n wizard={wizard}\n order={nextIdx()}\n note={this.getSecurityGroupNote(formik.values)}\n render={({ innerRef }) => <ServerGroupSecurityGroups ref={innerRef} formik={formik as any} />}\n />\n\n <WizardPage\n label=\"Job Disruption Budget\"\n wizard={wizard}\n order={nextIdx()}\n render={({ innerRef }) => <JobDisruptionBudget ref={innerRef} formik={formik} app={application} />}\n />\n\n <WizardPage\n label=\"Advanced Settings\"\n wizard={wizard}\n order={nextIdx()}\n render={({ innerRef }) => <ServerGroupParameters ref={innerRef} formik={formik} app={application} />}\n />\n </>\n )}\n />\n );\n }\n}\n","import { useMemo } from 'react';\nimport type { ITaskMonitorConfig } from '@spinnaker/core';\nimport { TaskMonitor } from '@spinnaker/core';\n\n/**\n * React hook that returns a TaskMonitor\n *\n * @param config a ITaskMonitorConfig\n * @param dismissModal a function that closes the modal enclosing the task monitor\n *\n * Example:\n *\n * function MyComponent(props) {\n * const { application, serverGroup } = props;\n * const title = `Resize ${serverGroup.name}`;\n * const taskMonitor = useTaskMonitor({ application, title });\n *\n * return (\n * <>\n * <TaskMonitorWrapper taskMonitor={taskMonitor}>\n * <form onSubmit={() => taskMonitor.submit(() => API.runSomeTask())}>\n * </>\n * )\n * }\n *\n */\nexport const useTaskMonitor = (config: ITaskMonitorConfig, dismissModal: () => void) => {\n const modalInstance = TaskMonitor.modalInstanceEmulation(() => dismissModal());\n return useMemo(() => new TaskMonitor({ modalInstance, ...config }), [config.application, config.title]);\n};\n","import type { FormikContext } from 'formik';\nimport { Form } from 'formik';\nimport React from 'react';\nimport { Modal } from 'react-bootstrap';\n\nimport type { Application, ICapacity, IModalComponentProps } from '@spinnaker/core';\nimport {\n FormikFormField,\n MinMaxDesiredChanges,\n ModalClose,\n NumberInput,\n PlatformHealthOverride,\n ReactInjector,\n SpinFormik,\n TaskMonitorWrapper,\n UserVerification,\n ValidationMessage,\n} from '@spinnaker/core';\nimport type { ITitusServerGroup } from '../../../domain';\n\nimport { useTaskMonitor } from './useTaskMonitor';\n\nconst { useState, useEffect, useMemo } = React;\n\nexport interface ITitusResizeServerGroupModalProps extends IModalComponentProps {\n application: Application;\n serverGroup: ITitusServerGroup;\n}\n\ninterface ITitusResizeServerGroupCommand {\n capacity: ICapacity;\n serverGroupName: string;\n instances: number;\n interestingHealthProviderNames: string[];\n region: string;\n}\n\nfunction surfacedErrorMessage(formik: FormikContext<ITitusResizeServerGroupCommand>) {\n const capacityErrors = formik.errors.capacity || ({} as any);\n const { min, max, desired } = capacityErrors;\n return [min, max, desired].find((x) => !!x);\n}\n\nfunction SimpleMode({ formik, serverGroup, toggleMode }: IAdvancedModeProps) {\n useEffect(() => {\n formik.setFieldValue('capacity.min', formik.values.capacity.desired);\n formik.setFieldValue('capacity.max', formik.values.capacity.desired);\n }, [formik.values.capacity.desired]);\n\n const errorMessage = surfacedErrorMessage(formik);\n\n return (\n <div>\n <p>Sets min, max, and desired instance counts to the same value.</p>\n\n <p>\n To allow autoscaling, use the{' '}\n <a className=\"clickable\" onClick={toggleMode}>\n Advanced Mode\n </a>\n .\n </p>\n\n <div className=\"form-group row\">\n <div className=\"col-md-3 sm-label-right\">Current size</div>\n <div className=\"col-md-4\">\n <div className=\"horizontal middle\">\n <input\n type=\"number\"\n className=\"NumberInput form-control\"\n value={serverGroup.capacity.desired}\n disabled={true}\n />\n <div className=\"sp-padding-xs-xaxis\">instances</div>\n </div>\n </div>\n </div>\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Resize to</div>\n <div className=\"col-md-4\">\n <div className=\"horizontal middle\">\n <FormikFormField\n name=\"capacity.desired\"\n input={(props) => <NumberInput {...props} min={0} />}\n layout={({ input }) => <>{input}</>}\n touched={true}\n onChange={() => {}}\n />\n <div className=\"sp-padding-xs-xaxis\">instances</div>\n </div>\n </div>\n </div>\n\n {!!errorMessage && (\n <div className=\"col-md-offset-3 col-md-9\">\n <ValidationMessage message={errorMessage} type=\"error\" />\n </div>\n )}\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Changes</div>\n <div className=\"col-md-9 sm-control-field\">\n <MinMaxDesiredChanges current={serverGroup.capacity} next={formik.values.capacity} />\n </div>\n </div>\n </div>\n );\n}\n\ninterface IAdvancedModeProps {\n formik: FormikContext<ITitusResizeServerGroupCommand>;\n serverGroup: ITitusServerGroup;\n toggleMode: () => void;\n}\n\nfunction AdvancedMode({ formik, serverGroup, toggleMode }: IAdvancedModeProps) {\n const { min, max } = formik.values.capacity || ({} as any);\n\n const DisabledNumberField = ({ value }: { value: string | number }) => (\n <div className=\"col-md-2\">\n <input className=\"NumberInput form-control\" type=\"number\" disabled={true} value={value} />\n </div>\n );\n const errorMessage = surfacedErrorMessage(formik);\n\n return (\n <div>\n <p>Sets up auto-scaling for this server group.</p>\n <p>\n To disable auto-scaling, use the{' '}\n <a className=\"clickable\" onClick={toggleMode}>\n Simple Mode\n </a>\n .\n </p>\n\n <div className=\"form-group bold\">\n <div className=\"col-md-2 col-md-offset-3\">Min</div>\n <div className=\"col-md-2\">Max</div>\n <div className=\"col-md-2\">Desired</div>\n </div>\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Current</div>\n <DisabledNumberField value={serverGroup.capacity.min} />\n <DisabledNumberField value={serverGroup.capacity.max} />\n <DisabledNumberField value={serverGroup.capacity.desired} />\n </div>\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Resize to</div>\n <div className=\"col-md-2\">\n <FormikFormField\n name=\"capacity.min\"\n input={(props) => <NumberInput {...props} min={0} max={max} />}\n layout={({ input }) => <>{input}</>}\n touched={true}\n />\n </div>\n\n <div className=\"col-md-2\">\n <FormikFormField\n name=\"capacity.max\"\n input={(props) => <NumberInput {...props} min={min} />}\n layout={({ input }) => <>{input}</>}\n touched={true}\n />\n </div>\n\n <div className=\"col-md-2\">\n <FormikFormField\n name=\"capacity.desired\"\n input={(props) => <NumberInput {...props} min={min} max={max} />}\n layout={({ input }) => <>{input}</>}\n touched={true}\n />\n </div>\n </div>\n\n {!!errorMessage && (\n <div className=\"col-md-offset-3 col-md-9\">\n <ValidationMessage message={errorMessage} type=\"error\" />\n </div>\n )}\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Changes</div>\n <div className=\"col-md-9 sm-control-field\">\n <MinMaxDesiredChanges current={serverGroup.capacity} next={formik.values.capacity} />\n </div>\n </div>\n </div>\n );\n}\n\nfunction validateResizeCommand(values: ITitusResizeServerGroupCommand) {\n const { min, max, desired } = values.capacity;\n const capacityErrors = {} as any;\n\n // try to only show one error message at a time\n if (min > max) {\n capacityErrors.min = capacityErrors.max = 'Min cannot be larger than Max';\n } else if (desired < min) {\n capacityErrors.desired = capacityErrors.min = 'Desired cannot be smaller than Min';\n } else if (desired > max) {\n capacityErrors.desired = capacityErrors.max = 'Desired cannot be larger than Max';\n }\n\n if (Object.keys(capacityErrors).length) {\n return { capacity: capacityErrors };\n }\n\n return {};\n}\n\nexport function TitusResizeServerGroupModal(props: ITitusResizeServerGroupModalProps) {\n const { serverGroup, application, dismissModal } = props;\n\n const initialAdvancedMode = useMemo(() => {\n const { min, max, desired } = serverGroup.capacity;\n return desired !== max || desired !== min;\n }, []);\n const [advancedMode, setAdvancedMode] = useState(initialAdvancedMode);\n\n const platformHealthOnlyShowOverride =\n application.attributes && application.attributes.platformHealthOnlyShowOverride;\n const [verified, setVerified] = useState<boolean>();\n\n const taskMonitor = useTaskMonitor(\n {\n application,\n title: `Resizing ${serverGroup.name}`,\n onTaskComplete: () => application.getDataSource('serverGroups').refresh(true),\n },\n dismissModal,\n );\n const submit = (command: ITitusResizeServerGroupCommand) =>\n taskMonitor.submit(() => ReactInjector.serverGroupWriter.resizeServerGroup(serverGroup, application, command));\n\n const initialValues = { capacity: serverGroup.capacity } as ITitusResizeServerGroupCommand;\n\n return (\n <>\n <TaskMonitorWrapper monitor={taskMonitor} />\n\n <SpinFormik<ITitusResizeServerGroupCommand>\n initialValues={initialValues}\n validate={validateResizeCommand}\n onSubmit={submit}\n render={(formik) => {\n return (\n <>\n <ModalClose dismiss={dismissModal} />\n <Modal.Header>\n <Modal.Title>Resize {serverGroup.name}</Modal.Title>\n </Modal.Header>\n\n <Modal.Body>\n <Form className=\"form-horizontal\">\n {advancedMode ? (\n <AdvancedMode formik={formik} serverGroup={serverGroup} toggleMode={() => setAdvancedMode(false)} />\n ) : (\n <SimpleMode formik={formik} serverGroup={serverGroup} toggleMode={() => setAdvancedMode(true)} />\n )}\n\n {platformHealthOnlyShowOverride && (\n <PlatformHealthOverride\n interestingHealthProviderNames={formik.values.interestingHealthProviderNames}\n platformHealthType=\"Titus\"\n showHelpDetails={true}\n onChange={(names) =>\n formik.setFieldValue('interestingHealthProviderNames', names ? names : undefined)\n }\n />\n )}\n </Form>\n </Modal.Body>\n\n <Modal.Footer>\n <UserVerification account={serverGroup.account} onValidChange={setVerified} />\n\n <button className=\"btn btn-default\" onClick={dismissModal}>\n Cancel\n </button>\n\n <button\n type=\"submit\"\n disabled={!verified || !formik.isValid}\n className=\"btn btn-primary\"\n onClick={() => submit(formik.values)}\n >\n Submit\n </button>\n </Modal.Footer>\n </>\n );\n }}\n />\n </>\n );\n}\n","// these aren't really private, but nor are they really useful to document\n\n/**\n * @private\n */\nclass LuxonError extends Error {}\n\n/**\n * @private\n */\nexport class InvalidDateTimeError extends LuxonError {\n constructor(reason) {\n super(`Invalid DateTime: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidIntervalError extends LuxonError {\n constructor(reason) {\n super(`Invalid Interval: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidDurationError extends LuxonError {\n constructor(reason) {\n super(`Invalid Duration: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class ConflictingSpecificationError extends LuxonError {}\n\n/**\n * @private\n */\nexport class InvalidUnitError extends LuxonError {\n constructor(unit) {\n super(`Invalid unit ${unit}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidArgumentError extends LuxonError {}\n\n/**\n * @private\n */\nexport class ZoneIsAbstractError extends LuxonError {\n constructor() {\n super(\"Zone is an abstract class\");\n }\n}\n","/**\n * @private\n */\n\nconst n = \"numeric\",\n s = \"short\",\n l = \"long\";\n\nexport const DATE_SHORT = {\n year: n,\n month: n,\n day: n\n};\n\nexport const DATE_MED = {\n year: n,\n month: s,\n day: n\n};\n\nexport const DATE_FULL = {\n year: n,\n month: l,\n day: n\n};\n\nexport const DATE_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l\n};\n\nexport const TIME_SIMPLE = {\n hour: n,\n minute: n\n};\n\nexport const TIME_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n\n};\n\nexport const TIME_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s\n};\n\nexport const TIME_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l\n};\n\nexport const TIME_24_SIMPLE = {\n hour: n,\n minute: n,\n hour12: false\n};\n\n/**\n * {@link toLocaleString}; format like '09:30:23', always 24-hour.\n */\nexport const TIME_24_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n hour12: false\n};\n\n/**\n * {@link toLocaleString}; format like '09:30:23 EDT', always 24-hour.\n */\nexport const TIME_24_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hour12: false,\n timeZoneName: s\n};\n\n/**\n * {@link toLocaleString}; format like '09:30:23 Eastern Daylight Time', always 24-hour.\n */\nexport const TIME_24_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hour12: false,\n timeZoneName: l\n};\n\n/**\n * {@link toLocaleString}; format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n */\nexport const DATETIME_SHORT = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n\n};\n\n/**\n * {@link toLocaleString}; format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n */\nexport const DATETIME_SHORT_WITH_SECONDS = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n second: n\n};\n\nexport const DATETIME_MED = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n\n};\n\nexport const DATETIME_MED_WITH_SECONDS = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n second: n\n};\n\nexport const DATETIME_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n hour: n,\n minute: n\n};\n\nexport const DATETIME_FULL = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n timeZoneName: s\n};\n\nexport const DATETIME_FULL_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s\n};\n\nexport const DATETIME_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n timeZoneName: l\n};\n\nexport const DATETIME_HUGE_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l\n};\n","/*\n This is just a junk drawer, containing anything used across multiple classes.\n Because Luxon is small(ish), this should stay small and we won't worry about splitting\n it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature area.\n*/\n\nimport { InvalidArgumentError } from \"../errors.js\";\n\n/**\n * @private\n */\n\n// TYPES\n\nexport function isUndefined(o) {\n return typeof o === \"undefined\";\n}\n\nexport function isNumber(o) {\n return typeof o === \"number\";\n}\n\nexport function isInteger(o) {\n return typeof o === \"number\" && o % 1 === 0;\n}\n\nexport function isString(o) {\n return typeof o === \"string\";\n}\n\nexport function isDate(o) {\n return Object.prototype.toString.call(o) === \"[object Date]\";\n}\n\n// CAPABILITIES\n\nexport function hasIntl() {\n try {\n return typeof Intl !== \"undefined\" && Intl.DateTimeFormat;\n } catch (e) {\n return false;\n }\n}\n\nexport function hasFormatToParts() {\n return !isUndefined(Intl.DateTimeFormat.prototype.formatToParts);\n}\n\nexport function hasRelative() {\n try {\n return typeof Intl !== \"undefined\" && !!Intl.RelativeTimeFormat;\n } catch (e) {\n return false;\n }\n}\n\n// OBJECTS AND ARRAYS\n\nexport function maybeArray(thing) {\n return Array.isArray(thing) ? thing : [thing];\n}\n\nexport function bestBy(arr, by, compare) {\n if (arr.length === 0) {\n return undefined;\n }\n return arr.reduce((best, next) => {\n const pair = [by(next), next];\n if (!best) {\n return pair;\n } else if (compare(best[0], pair[0]) === best[0]) {\n return best;\n } else {\n return pair;\n }\n }, null)[1];\n}\n\nexport function pick(obj, keys) {\n return keys.reduce((a, k) => {\n a[k] = obj[k];\n return a;\n }, {});\n}\n\nexport function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n// NUMBERS AND STRINGS\n\nexport function integerBetween(thing, bottom, top) {\n return isInteger(thing) && thing >= bottom && thing <= top;\n}\n\n// x % n but takes the sign of n instead of x\nexport function floorMod(x, n) {\n return x - n * Math.floor(x / n);\n}\n\nexport function padStart(input, n = 2) {\n if (input.toString().length < n) {\n return (\"0\".repeat(n) + input).slice(-n);\n } else {\n return input.toString();\n }\n}\n\nexport function parseInteger(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseInt(string, 10);\n }\n}\n\nexport function parseMillis(fraction) {\n // Return undefined (instead of 0) in these cases, where fraction is not set\n if (isUndefined(fraction) || fraction === null || fraction === \"\") {\n return undefined;\n } else {\n const f = parseFloat(\"0.\" + fraction) * 1000;\n return Math.floor(f);\n }\n}\n\nexport function roundTo(number, digits, towardZero = false) {\n const factor = 10 ** digits,\n rounder = towardZero ? Math.trunc : Math.round;\n return rounder(number * factor) / factor;\n}\n\n// DATE BASICS\n\nexport function isLeapYear(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\nexport function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\n\nexport function daysInMonth(year, month) {\n const modMonth = floorMod(month - 1, 12) + 1,\n modYear = year + (month - modMonth) / 12;\n\n if (modMonth === 2) {\n return isLeapYear(modYear) ? 29 : 28;\n } else {\n return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];\n }\n}\n\n// covert a calendar object to a local timestamp (epoch, but with the offset baked in)\nexport function objToLocalTS(obj) {\n let d = Date.UTC(\n obj.year,\n obj.month - 1,\n obj.day,\n obj.hour,\n obj.minute,\n obj.second,\n obj.millisecond\n );\n\n // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that\n if (obj.year < 100 && obj.year >= 0) {\n d = new Date(d);\n d.setUTCFullYear(d.getUTCFullYear() - 1900);\n }\n return +d;\n}\n\nexport function weeksInWeekYear(weekYear) {\n const p1 =\n (weekYear +\n Math.floor(weekYear / 4) -\n Math.floor(weekYear / 100) +\n Math.floor(weekYear / 400)) %\n 7,\n last = weekYear - 1,\n p2 = (last + Math.floor(last / 4) - Math.floor(last / 100) + Math.floor(last / 400)) % 7;\n return p1 === 4 || p2 === 3 ? 53 : 52;\n}\n\nexport function untruncateYear(year) {\n if (year > 99) {\n return year;\n } else return year > 60 ? 1900 + year : 2000 + year;\n}\n\n// PARSING\n\nexport function parseZoneInfo(ts, offsetFormat, locale, timeZone = null) {\n const date = new Date(ts),\n intlOpts = {\n hour12: false,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\"\n };\n\n if (timeZone) {\n intlOpts.timeZone = timeZone;\n }\n\n const modified = Object.assign({ timeZoneName: offsetFormat }, intlOpts),\n intl = hasIntl();\n\n if (intl && hasFormatToParts()) {\n const parsed = new Intl.DateTimeFormat(locale, modified)\n .formatToParts(date)\n .find(m => m.type.toLowerCase() === \"timezonename\");\n return parsed ? parsed.value : null;\n } else if (intl) {\n // this probably doesn't work for all locales\n const without = new Intl.DateTimeFormat(locale, intlOpts).format(date),\n included = new Intl.DateTimeFormat(locale, modified).format(date),\n diffed = included.substring(without.length),\n trimmed = diffed.replace(/^[, \\u200e]+/, \"\");\n return trimmed;\n } else {\n return null;\n }\n}\n\n// signedOffset('-5', '30') -> -330\nexport function signedOffset(offHourStr, offMinuteStr) {\n let offHour = parseInt(offHourStr, 10);\n\n // don't || this because we want to preserve -0\n if (Number.isNaN(offHour)) {\n offHour = 0;\n }\n\n const offMin = parseInt(offMinuteStr, 10) || 0,\n offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;\n return offHour * 60 + offMinSigned;\n}\n\n// COERCION\n\nexport function asNumber(value) {\n const numericValue = Number(value);\n if (typeof value === \"boolean\" || value === \"\" || Number.isNaN(numericValue))\n throw new InvalidArgumentError(`Invalid unit value ${value}`);\n return numericValue;\n}\n\nexport function normalizeObject(obj, normalizer, nonUnitKeys) {\n const normalized = {};\n for (const u in obj) {\n if (hasOwnProperty(obj, u)) {\n if (nonUnitKeys.indexOf(u) >= 0) continue;\n const v = obj[u];\n if (v === undefined || v === null) continue;\n normalized[normalizer(u)] = asNumber(v);\n }\n }\n return normalized;\n}\n\nexport function formatOffset(offset, format) {\n const hours = Math.trunc(offset / 60),\n minutes = Math.abs(offset % 60),\n sign = hours >= 0 && !Object.is(hours, -0) ? \"+\" : \"-\",\n base = `${sign}${Math.abs(hours)}`;\n\n switch (format) {\n case \"short\":\n return `${sign}${padStart(Math.abs(hours), 2)}:${padStart(minutes, 2)}`;\n case \"narrow\":\n return minutes > 0 ? `${base}:${minutes}` : base;\n case \"techie\":\n return `${sign}${padStart(Math.abs(hours), 2)}${padStart(minutes, 2)}`;\n default:\n throw new RangeError(`Value format ${format} is out of range for property format`);\n }\n}\n\nexport function timeObject(obj) {\n return pick(obj, [\"hour\", \"minute\", \"second\", \"millisecond\"]);\n}\n\nexport const ianaRegex = /[A-Za-z_+-]{1,256}(:?\\/[A-Za-z_+-]{1,256}(\\/[A-Za-z_+-]{1,256})?)?/;\n","import * as Formats from \"./formats.js\";\nimport { pick } from \"./util.js\";\n\nfunction stringify(obj) {\n return JSON.stringify(obj, Object.keys(obj).sort());\n}\n\n/**\n * @private\n */\n\nexport const monthsLong = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\"\n];\n\nexport const monthsShort = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\"\n];\n\nexport const monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\n\nexport function months(length) {\n switch (length) {\n case \"narrow\":\n return monthsNarrow;\n case \"short\":\n return monthsShort;\n case \"long\":\n return monthsLong;\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\"];\n case \"2-digit\":\n return [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\"];\n default:\n return null;\n }\n}\n\nexport const weekdaysLong = [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n \"Sunday\"\n];\n\nexport const weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\nexport const weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\n\nexport function weekdays(length) {\n switch (length) {\n case \"narrow\":\n return weekdaysNarrow;\n case \"short\":\n return weekdaysShort;\n case \"long\":\n return weekdaysLong;\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"];\n default:\n return null;\n }\n}\n\nexport const meridiems = [\"AM\", \"PM\"];\n\nexport const erasLong = [\"Before Christ\", \"Anno Domini\"];\n\nexport const erasShort = [\"BC\", \"AD\"];\n\nexport const erasNarrow = [\"B\", \"A\"];\n\nexport function eras(length) {\n switch (length) {\n case \"narrow\":\n return erasNarrow;\n case \"short\":\n return erasShort;\n case \"long\":\n return erasLong;\n default:\n return null;\n }\n}\n\nexport function meridiemForDateTime(dt) {\n return meridiems[dt.hour < 12 ? 0 : 1];\n}\n\nexport function weekdayForDateTime(dt, length) {\n return weekdays(length)[dt.weekday - 1];\n}\n\nexport function monthForDateTime(dt, length) {\n return months(length)[dt.month - 1];\n}\n\nexport function eraForDateTime(dt, length) {\n return eras(length)[dt.year < 0 ? 0 : 1];\n}\n\nexport function formatRelativeTime(unit, count, numeric = \"always\", narrow = false) {\n const units = {\n years: [\"year\", \"yr.\"],\n quarters: [\"quarter\", \"qtr.\"],\n months: [\"month\", \"mo.\"],\n weeks: [\"week\", \"wk.\"],\n days: [\"day\", \"day\", \"days\"],\n hours: [\"hour\", \"hr.\"],\n minutes: [\"minute\", \"min.\"],\n seconds: [\"second\", \"sec.\"]\n };\n\n const lastable = [\"hours\", \"minutes\", \"seconds\"].indexOf(unit) === -1;\n\n if (numeric === \"auto\" && lastable) {\n const isDay = unit === \"days\";\n switch (count) {\n case 1:\n return isDay ? \"tomorrow\" : `next ${units[unit][0]}`;\n case -1:\n return isDay ? \"yesterday\" : `last ${units[unit][0]}`;\n case 0:\n return isDay ? \"today\" : `this ${units[unit][0]}`;\n default: // fall through\n }\n }\n\n const isInPast = Object.is(count, -0) || count < 0,\n fmtValue = Math.abs(count),\n singular = fmtValue === 1,\n lilUnits = units[unit],\n fmtUnit = narrow\n ? singular\n ? lilUnits[1]\n : lilUnits[2] || lilUnits[1]\n : singular\n ? units[unit][0]\n : unit;\n return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`;\n}\n\nexport function formatString(knownFormat) {\n // these all have the offsets removed because we don't have access to them\n // without all the intl stuff this is backfilling\n const filtered = pick(knownFormat, [\n \"weekday\",\n \"era\",\n \"year\",\n \"month\",\n \"day\",\n \"hour\",\n \"minute\",\n \"second\",\n \"timeZoneName\",\n \"hour12\"\n ]),\n key = stringify(filtered),\n dateTimeHuge = \"EEEE, LLLL d, yyyy, h:mm a\";\n switch (key) {\n case stringify(Formats.DATE_SHORT):\n return \"M/d/yyyy\";\n case stringify(Formats.DATE_MED):\n return \"LLL d, yyyy\";\n case stringify(Formats.DATE_FULL):\n return \"LLLL d, yyyy\";\n case stringify(Formats.DATE_HUGE):\n return \"EEEE, LLLL d, yyyy\";\n case stringify(Formats.TIME_SIMPLE):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_SECONDS):\n return \"h:mm:ss a\";\n case stringify(Formats.TIME_WITH_SHORT_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_LONG_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_24_SIMPLE):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_SECONDS):\n return \"HH:mm:ss\";\n case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_LONG_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.DATETIME_SHORT):\n return \"M/d/yyyy, h:mm a\";\n case stringify(Formats.DATETIME_MED):\n return \"LLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL):\n return \"LLLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_HUGE):\n return dateTimeHuge;\n case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):\n return \"M/d/yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_SECONDS):\n return \"LLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):\n return \"EEE, d LLL yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL_WITH_SECONDS):\n return \"LLLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):\n return \"EEEE, LLLL d, yyyy, h:mm:ss a\";\n default:\n return dateTimeHuge;\n }\n}\n","import * as English from \"./english.js\";\nimport * as Formats from \"./formats.js\";\nimport { hasFormatToParts, padStart } from \"./util.js\";\n\nfunction stringifyTokens(splits, tokenToString) {\n let s = \"\";\n for (const token of splits) {\n if (token.literal) {\n s += token.val;\n } else {\n s += tokenToString(token.val);\n }\n }\n return s;\n}\n\nconst macroTokenToFormatOpts = {\n D: Formats.DATE_SHORT,\n DD: Formats.DATE_MED,\n DDD: Formats.DATE_FULL,\n DDDD: Formats.DATE_HUGE,\n t: Formats.TIME_SIMPLE,\n tt: Formats.TIME_WITH_SECONDS,\n ttt: Formats.TIME_WITH_SHORT_OFFSET,\n tttt: Formats.TIME_WITH_LONG_OFFSET,\n T: Formats.TIME_24_SIMPLE,\n TT: Formats.TIME_24_WITH_SECONDS,\n TTT: Formats.TIME_24_WITH_SHORT_OFFSET,\n TTTT: Formats.TIME_24_WITH_LONG_OFFSET,\n f: Formats.DATETIME_SHORT,\n ff: Formats.DATETIME_MED,\n fff: Formats.DATETIME_FULL,\n ffff: Formats.DATETIME_HUGE,\n F: Formats.DATETIME_SHORT_WITH_SECONDS,\n FF: Formats.DATETIME_MED_WITH_SECONDS,\n FFF: Formats.DATETIME_FULL_WITH_SECONDS,\n FFFF: Formats.DATETIME_HUGE_WITH_SECONDS\n};\n\n/**\n * @private\n */\n\nexport default class Formatter {\n static create(locale, opts = {}) {\n return new Formatter(locale, opts);\n }\n\n static parseFormat(fmt) {\n let current = null,\n currentFull = \"\",\n bracketed = false;\n const splits = [];\n for (let i = 0; i < fmt.length; i++) {\n const c = fmt.charAt(i);\n if (c === \"'\") {\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed, val: currentFull });\n }\n current = null;\n currentFull = \"\";\n bracketed = !bracketed;\n } else if (bracketed) {\n currentFull += c;\n } else if (c === current) {\n currentFull += c;\n } else {\n if (currentFull.length > 0) {\n splits.push({ literal: false, val: currentFull });\n }\n currentFull = c;\n current = c;\n }\n }\n\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed, val: currentFull });\n }\n\n return splits;\n }\n\n static macroTokenToFormatOpts(token) {\n return macroTokenToFormatOpts[token];\n }\n\n constructor(locale, formatOpts) {\n this.opts = formatOpts;\n this.loc = locale;\n this.systemLoc = null;\n }\n\n formatWithSystemDefault(dt, opts) {\n if (this.systemLoc === null) {\n this.systemLoc = this.loc.redefaultToSystem();\n }\n const df = this.systemLoc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.format();\n }\n\n formatDateTime(dt, opts = {}) {\n const df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.format();\n }\n\n formatDateTimeParts(dt, opts = {}) {\n const df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.formatToParts();\n }\n\n resolvedOptions(dt, opts = {}) {\n const df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.resolvedOptions();\n }\n\n num(n, p = 0) {\n // we get some perf out of doing this here, annoyingly\n if (this.opts.forceSimple) {\n return padStart(n, p);\n }\n\n const opts = Object.assign({}, this.opts);\n\n if (p > 0) {\n opts.padTo = p;\n }\n\n return this.loc.numberFormatter(opts).format(n);\n }\n\n formatDateTimeFromString(dt, fmt) {\n const knownEnglish = this.loc.listingMode() === \"en\",\n useDateTimeFormatter =\n this.loc.outputCalendar && this.loc.outputCalendar !== \"gregory\" && hasFormatToParts(),\n string = (opts, extract) => this.loc.extract(dt, opts, extract),\n formatOffset = opts => {\n if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {\n return \"Z\";\n }\n\n return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : \"\";\n },\n meridiem = () =>\n knownEnglish\n ? English.meridiemForDateTime(dt)\n : string({ hour: \"numeric\", hour12: true }, \"dayperiod\"),\n month = (length, standalone) =>\n knownEnglish\n ? English.monthForDateTime(dt, length)\n : string(standalone ? { month: length } : { month: length, day: \"numeric\" }, \"month\"),\n weekday = (length, standalone) =>\n knownEnglish\n ? English.weekdayForDateTime(dt, length)\n : string(\n standalone ? { weekday: length } : { weekday: length, month: \"long\", day: \"numeric\" },\n \"weekday\"\n ),\n maybeMacro = token => {\n const formatOpts = Formatter.macroTokenToFormatOpts(token);\n if (formatOpts) {\n return this.formatWithSystemDefault(dt, formatOpts);\n } else {\n return token;\n }\n },\n era = length =>\n knownEnglish ? English.eraForDateTime(dt, length) : string({ era: length }, \"era\"),\n tokenToString = token => {\n // Where possible: http://cldr.unicode.org/translation/date-time#TOC-Stand-Alone-vs.-Format-Styles\n switch (token) {\n // ms\n case \"S\":\n return this.num(dt.millisecond);\n case \"u\":\n // falls through\n case \"SSS\":\n return this.num(dt.millisecond, 3);\n // seconds\n case \"s\":\n return this.num(dt.second);\n case \"ss\":\n return this.num(dt.second, 2);\n // minutes\n case \"m\":\n return this.num(dt.minute);\n case \"mm\":\n return this.num(dt.minute, 2);\n // hours\n case \"h\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);\n case \"hh\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);\n case \"H\":\n return this.num(dt.hour);\n case \"HH\":\n return this.num(dt.hour, 2);\n // offset\n case \"Z\":\n // like +6\n return formatOffset({ format: \"narrow\", allowZ: this.opts.allowZ });\n case \"ZZ\":\n // like +06:00\n return formatOffset({ format: \"short\", allowZ: this.opts.allowZ });\n case \"ZZZ\":\n // like +0600\n return formatOffset({ format: \"techie\", allowZ: this.opts.allowZ });\n case \"ZZZZ\":\n // like EST\n return dt.zone.offsetName(dt.ts, { format: \"short\", locale: this.loc.locale });\n case \"ZZZZZ\":\n // like Eastern Standard Time\n return dt.zone.offsetName(dt.ts, { format: \"long\", locale: this.loc.locale });\n // zone\n case \"z\":\n // like America/New_York\n return dt.zoneName;\n // meridiems\n case \"a\":\n return meridiem();\n // dates\n case \"d\":\n return useDateTimeFormatter ? string({ day: \"numeric\" }, \"day\") : this.num(dt.day);\n case \"dd\":\n return useDateTimeFormatter ? string({ day: \"2-digit\" }, \"day\") : this.num(dt.day, 2);\n // weekdays - standalone\n case \"c\":\n // like 1\n return this.num(dt.weekday);\n case \"ccc\":\n // like 'Tues'\n return weekday(\"short\", true);\n case \"cccc\":\n // like 'Tuesday'\n return weekday(\"long\", true);\n case \"ccccc\":\n // like 'T'\n return weekday(\"narrow\", true);\n // weekdays - format\n case \"E\":\n // like 1\n return this.num(dt.weekday);\n case \"EEE\":\n // like 'Tues'\n return weekday(\"short\", false);\n case \"EEEE\":\n // like 'Tuesday'\n return weekday(\"long\", false);\n case \"EEEEE\":\n // like 'T'\n return weekday(\"narrow\", false);\n // months - standalone\n case \"L\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\", day: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"LL\":\n // like 01, doesn't seem to work\n return useDateTimeFormatter\n ? string({ month: \"2-digit\", day: \"numeric\" }, \"month\")\n : this.num(dt.month, 2);\n case \"LLL\":\n // like Jan\n return month(\"short\", true);\n case \"LLLL\":\n // like January\n return month(\"long\", true);\n case \"LLLLL\":\n // like J\n return month(\"narrow\", true);\n // months - format\n case \"M\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"MM\":\n // like 01\n return useDateTimeFormatter\n ? string({ month: \"2-digit\" }, \"month\")\n : this.num(dt.month, 2);\n case \"MMM\":\n // like Jan\n return month(\"short\", false);\n case \"MMMM\":\n // like January\n return month(\"long\", false);\n case \"MMMMM\":\n // like J\n return month(\"narrow\", false);\n // years\n case \"y\":\n // like 2014\n return useDateTimeFormatter ? string({ year: \"numeric\" }, \"year\") : this.num(dt.year);\n case \"yy\":\n // like 14\n return useDateTimeFormatter\n ? string({ year: \"2-digit\" }, \"year\")\n : this.num(dt.year.toString().slice(-2), 2);\n case \"yyyy\":\n // like 0012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 4);\n case \"yyyyyy\":\n // like 000012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 6);\n // eras\n case \"G\":\n // like AD\n return era(\"short\");\n case \"GG\":\n // like Anno Domini\n return era(\"long\");\n case \"GGGGG\":\n return era(\"narrow\");\n case \"kk\":\n return this.num(dt.weekYear.toString().slice(-2), 2);\n case \"kkkk\":\n return this.num(dt.weekYear, 4);\n case \"W\":\n return this.num(dt.weekNumber);\n case \"WW\":\n return this.num(dt.weekNumber, 2);\n case \"o\":\n return this.num(dt.ordinal);\n case \"ooo\":\n return this.num(dt.ordinal, 3);\n case \"q\":\n // like 1\n return this.num(dt.quarter);\n case \"qq\":\n // like 01\n return this.num(dt.quarter, 2);\n case \"X\":\n return this.num(Math.floor(dt.ts / 1000));\n case \"x\":\n return this.num(dt.ts);\n default:\n return maybeMacro(token);\n }\n };\n\n return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);\n }\n\n formatDurationFromString(dur, fmt) {\n const tokenToField = token => {\n switch (token[0]) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n default:\n return null;\n }\n },\n tokenToString = lildur => token => {\n const mapped = tokenToField(token);\n if (mapped) {\n return this.num(lildur.get(mapped), token.length);\n } else {\n return token;\n }\n },\n tokens = Formatter.parseFormat(fmt),\n realTokens = tokens.reduce(\n (found, { literal, val }) => (literal ? found : found.concat(val)),\n []\n ),\n collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter(t => t));\n return stringifyTokens(tokens, tokenToString(collapsed));\n }\n}\n","export default class Invalid {\n constructor(reason, explanation) {\n this.reason = reason;\n this.explanation = explanation;\n }\n\n toMessage() {\n if (this.explanation) {\n return `${this.reason}: ${this.explanation}`;\n } else {\n return this.reason;\n }\n }\n}\n","/* eslint no-unused-vars: \"off\" */\nimport { ZoneIsAbstractError } from \"./errors.js\";\n\n/**\n * @interface\n */\nexport default class Zone {\n /**\n * The type of zone\n * @abstract\n * @type {string}\n */\n get type() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The name of this zone.\n * @abstract\n * @type {string}\n */\n get name() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year.\n * @abstract\n * @type {boolean}\n */\n get universal() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, opts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's value as a string\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @abstract\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is valid.\n * @abstract\n * @type {boolean}\n */\n get isValid() {\n throw new ZoneIsAbstractError();\n }\n}\n","import { formatOffset, parseZoneInfo, hasIntl } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet singleton = null;\n\n/**\n * Represents the local zone for this Javascript environment.\n * @implements {Zone}\n */\nexport default class LocalZone extends Zone {\n /**\n * Get a singleton instance of the local zone\n * @return {LocalZone}\n */\n static get instance() {\n if (singleton === null) {\n singleton = new LocalZone();\n }\n return singleton;\n }\n\n /** @override **/\n get type() {\n return \"local\";\n }\n\n /** @override **/\n get name() {\n if (hasIntl()) {\n return new Intl.DateTimeFormat().resolvedOptions().timeZone;\n } else return \"local\";\n }\n\n /** @override **/\n get universal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n return -new Date(ts).getTimezoneOffset();\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"local\";\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\n","import { formatOffset, parseZoneInfo, isUndefined, ianaRegex, objToLocalTS } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nconst matchingRegex = RegExp(`^${ianaRegex.source}$`);\n\nlet dtfCache = {};\nfunction makeDTF(zone) {\n if (!dtfCache[zone]) {\n dtfCache[zone] = new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone: zone,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\"\n });\n }\n return dtfCache[zone];\n}\n\nconst typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n hour: 3,\n minute: 4,\n second: 5\n};\n\nfunction hackyOffset(dtf, date) {\n const formatted = dtf.format(date).replace(/\\u200E/g, \"\"),\n parsed = /(\\d+)\\/(\\d+)\\/(\\d+),? (\\d+):(\\d+):(\\d+)/.exec(formatted),\n [, fMonth, fDay, fYear, fHour, fMinute, fSecond] = parsed;\n return [fYear, fMonth, fDay, fHour, fMinute, fSecond];\n}\n\nfunction partsOffset(dtf, date) {\n const formatted = dtf.formatToParts(date),\n filled = [];\n for (let i = 0; i < formatted.length; i++) {\n const { type, value } = formatted[i],\n pos = typeToPos[type];\n\n if (!isUndefined(pos)) {\n filled[pos] = parseInt(value, 10);\n }\n }\n return filled;\n}\n\nlet ianaZoneCache = {};\n/**\n * A zone identified by an IANA identifier, like America/New_York\n * @implements {Zone}\n */\nexport default class IANAZone extends Zone {\n /**\n * @param {string} name - Zone name\n * @return {IANAZone}\n */\n static create(name) {\n if (!ianaZoneCache[name]) {\n ianaZoneCache[name] = new IANAZone(name);\n }\n return ianaZoneCache[name];\n }\n\n /**\n * Reset local caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCache() {\n ianaZoneCache = {};\n dtfCache = {};\n }\n\n /**\n * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.\n * @param {string} s - The string to check validity on\n * @example IANAZone.isValidSpecifier(\"America/New_York\") //=> true\n * @example IANAZone.isValidSpecifier(\"Fantasia/Castle\") //=> true\n * @example IANAZone.isValidSpecifier(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */\n static isValidSpecifier(s) {\n return !!(s && s.match(matchingRegex));\n }\n\n /**\n * Returns whether the provided string identifies a real zone\n * @param {string} zone - The string to check\n * @example IANAZone.isValidZone(\"America/New_York\") //=> true\n * @example IANAZone.isValidZone(\"Fantasia/Castle\") //=> false\n * @example IANAZone.isValidZone(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */\n static isValidZone(zone) {\n try {\n new Intl.DateTimeFormat(\"en-US\", { timeZone: zone }).format();\n return true;\n } catch (e) {\n return false;\n }\n }\n\n // Etc/GMT+8 -> -480\n /** @ignore */\n static parseGMTOffset(specifier) {\n if (specifier) {\n const match = specifier.match(/^Etc\\/GMT([+-]\\d{1,2})$/i);\n if (match) {\n return -60 * parseInt(match[1]);\n }\n }\n return null;\n }\n\n constructor(name) {\n super();\n /** @private **/\n this.zoneName = name;\n /** @private **/\n this.valid = IANAZone.isValidZone(name);\n }\n\n /** @override **/\n get type() {\n return \"iana\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get universal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale, this.name);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n const date = new Date(ts),\n dtf = makeDTF(this.name),\n [year, month, day, hour, minute, second] = dtf.formatToParts\n ? partsOffset(dtf, date)\n : hackyOffset(dtf, date),\n // work around https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat\n adjustedHour = hour === 24 ? 0 : hour;\n\n const asUTC = objToLocalTS({\n year,\n month,\n day,\n hour: adjustedHour,\n minute,\n second,\n millisecond: 0\n });\n\n let asTS = +date;\n const over = asTS % 1000;\n asTS -= over >= 0 ? over : 1000 + over;\n return (asUTC - asTS) / (60 * 1000);\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"iana\" && otherZone.name === this.name;\n }\n\n /** @override **/\n get isValid() {\n return this.valid;\n }\n}\n","import { formatOffset, signedOffset } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet singleton = null;\n\n/**\n * A zone with a fixed offset (meaning no DST)\n * @implements {Zone}\n */\nexport default class FixedOffsetZone extends Zone {\n /**\n * Get a singleton instance of UTC\n * @return {FixedOffsetZone}\n */\n static get utcInstance() {\n if (singleton === null) {\n singleton = new FixedOffsetZone(0);\n }\n return singleton;\n }\n\n /**\n * Get an instance with a specified offset\n * @param {number} offset - The offset in minutes\n * @return {FixedOffsetZone}\n */\n static instance(offset) {\n return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);\n }\n\n /**\n * Get an instance of FixedOffsetZone from a UTC offset string, like \"UTC+6\"\n * @param {string} s - The offset string to parse\n * @example FixedOffsetZone.parseSpecifier(\"UTC+6\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC+06\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC-6:00\")\n * @return {FixedOffsetZone}\n */\n static parseSpecifier(s) {\n if (s) {\n const r = s.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);\n if (r) {\n return new FixedOffsetZone(signedOffset(r[1], r[2]));\n }\n }\n return null;\n }\n\n constructor(offset) {\n super();\n /** @private **/\n this.fixed = offset;\n }\n\n /** @override **/\n get type() {\n return \"fixed\";\n }\n\n /** @override **/\n get name() {\n return this.fixed === 0 ? \"UTC\" : `UTC${formatOffset(this.fixed, \"narrow\")}`;\n }\n\n /** @override **/\n offsetName() {\n return this.name;\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.fixed, format);\n }\n\n /** @override **/\n get universal() {\n return true;\n }\n\n /** @override **/\n offset() {\n return this.fixed;\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"fixed\" && otherZone.fixed === this.fixed;\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\n","import Zone from \"../zone.js\";\n\n/**\n * A zone that failed to parse. You should never need to instantiate this.\n * @implements {Zone}\n */\nexport default class InvalidZone extends Zone {\n constructor(zoneName) {\n super();\n /** @private */\n this.zoneName = zoneName;\n }\n\n /** @override **/\n get type() {\n return \"invalid\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get universal() {\n return false;\n }\n\n /** @override **/\n offsetName() {\n return null;\n }\n\n /** @override **/\n formatOffset() {\n return \"\";\n }\n\n /** @override **/\n offset() {\n return NaN;\n }\n\n /** @override **/\n equals() {\n return false;\n }\n\n /** @override **/\n get isValid() {\n return false;\n }\n}\n","/**\n * @private\n */\n\nimport Zone from \"../zone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport InvalidZone from \"../zones/invalidZone.js\";\n\nimport { isUndefined, isString, isNumber } from \"./util.js\";\n\nexport function normalizeZone(input, defaultZone) {\n let offset;\n if (isUndefined(input) || input === null) {\n return defaultZone;\n } else if (input instanceof Zone) {\n return input;\n } else if (isString(input)) {\n const lowered = input.toLowerCase();\n if (lowered === \"local\") return defaultZone;\n else if (lowered === \"utc\" || lowered === \"gmt\") return FixedOffsetZone.utcInstance;\n else if ((offset = IANAZone.parseGMTOffset(input)) != null) {\n // handle Etc/GMT-4, which V8 chokes on\n return FixedOffsetZone.instance(offset);\n } else if (IANAZone.isValidSpecifier(lowered)) return IANAZone.create(input);\n else return FixedOffsetZone.parseSpecifier(lowered) || new InvalidZone(input);\n } else if (isNumber(input)) {\n return FixedOffsetZone.instance(input);\n } else if (typeof input === \"object\" && input.offset && typeof input.offset === \"number\") {\n // This is dumb, but the instanceof check above doesn't seem to really work\n // so we're duck checking it\n return input;\n } else {\n return new InvalidZone(input);\n }\n}\n","import LocalZone from \"./zones/localZone.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport Locale from \"./impl/locale.js\";\n\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\n\nlet now = () => Date.now(),\n defaultZone = null, // not setting this directly to LocalZone.instance bc loading order issues\n defaultLocale = null,\n defaultNumberingSystem = null,\n defaultOutputCalendar = null,\n throwOnInvalid = false;\n\n/**\n * Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.\n */\nexport default class Settings {\n /**\n * Get the callback for returning the current timestamp.\n * @type {function}\n */\n static get now() {\n return now;\n }\n\n /**\n * Set the callback for returning the current timestamp.\n * The function should return a number, which will be interpreted as an Epoch millisecond count\n * @type {function}\n * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future\n * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time\n */\n static set now(n) {\n now = n;\n }\n\n /**\n * Get the default time zone to create DateTimes in.\n * @type {string}\n */\n static get defaultZoneName() {\n return Settings.defaultZone.name;\n }\n\n /**\n * Set the default time zone to create DateTimes in. Does not affect existing instances.\n * @type {string}\n */\n static set defaultZoneName(z) {\n if (!z) {\n defaultZone = null;\n } else {\n defaultZone = normalizeZone(z);\n }\n }\n\n /**\n * Get the default time zone object to create DateTimes in. Does not affect existing instances.\n * @type {Zone}\n */\n static get defaultZone() {\n return defaultZone || LocalZone.instance;\n }\n\n /**\n * Get the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultLocale() {\n return defaultLocale;\n }\n\n /**\n * Set the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultLocale(locale) {\n defaultLocale = locale;\n }\n\n /**\n * Get the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultNumberingSystem() {\n return defaultNumberingSystem;\n }\n\n /**\n * Set the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultNumberingSystem(numberingSystem) {\n defaultNumberingSystem = numberingSystem;\n }\n\n /**\n * Get the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultOutputCalendar() {\n return defaultOutputCalendar;\n }\n\n /**\n * Set the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultOutputCalendar(outputCalendar) {\n defaultOutputCalendar = outputCalendar;\n }\n\n /**\n * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static get throwOnInvalid() {\n return throwOnInvalid;\n }\n\n /**\n * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static set throwOnInvalid(t) {\n throwOnInvalid = t;\n }\n\n /**\n * Reset Luxon's global caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCaches() {\n Locale.resetCache();\n IANAZone.resetCache();\n }\n}\n","import { hasFormatToParts, hasIntl, padStart, roundTo, hasRelative } from \"./util.js\";\nimport * as English from \"./english.js\";\nimport Settings from \"../settings.js\";\nimport DateTime from \"../datetime.js\";\nimport Formatter from \"./formatter.js\";\n\nlet intlDTCache = {};\nfunction getCachedDTF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlDTCache[key];\n if (!dtf) {\n dtf = new Intl.DateTimeFormat(locString, opts);\n intlDTCache[key] = dtf;\n }\n return dtf;\n}\n\nlet intlNumCache = {};\nfunction getCachedINF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let inf = intlNumCache[key];\n if (!inf) {\n inf = new Intl.NumberFormat(locString, opts);\n intlNumCache[key] = inf;\n }\n return inf;\n}\n\nlet intlRelCache = {};\nfunction getCachedRTF(locString, opts = {}) {\n const { base, ...cacheKeyOpts } = opts; // exclude `base` from the options\n const key = JSON.stringify([locString, cacheKeyOpts]);\n let inf = intlRelCache[key];\n if (!inf) {\n inf = new Intl.RelativeTimeFormat(locString, opts);\n intlRelCache[key] = inf;\n }\n return inf;\n}\n\nlet sysLocaleCache = null;\nfunction systemLocale() {\n if (sysLocaleCache) {\n return sysLocaleCache;\n } else if (hasIntl()) {\n const computedSys = new Intl.DateTimeFormat().resolvedOptions().locale;\n // node sometimes defaults to \"und\". Override that because that is dumb\n sysLocaleCache = !computedSys || computedSys === \"und\" ? \"en-US\" : computedSys;\n return sysLocaleCache;\n } else {\n sysLocaleCache = \"en-US\";\n return sysLocaleCache;\n }\n}\n\nfunction parseLocaleString(localeStr) {\n // I really want to avoid writing a BCP 47 parser\n // see, e.g. https://github.com/wooorm/bcp-47\n // Instead, we'll do this:\n\n // a) if the string has no -u extensions, just leave it alone\n // b) if it does, use Intl to resolve everything\n // c) if Intl fails, try again without the -u\n\n const uIndex = localeStr.indexOf(\"-u-\");\n if (uIndex === -1) {\n return [localeStr];\n } else {\n let options;\n const smaller = localeStr.substring(0, uIndex);\n try {\n options = getCachedDTF(localeStr).resolvedOptions();\n } catch (e) {\n options = getCachedDTF(smaller).resolvedOptions();\n }\n\n const { numberingSystem, calendar } = options;\n // return the smaller one so that we can append the calendar and numbering overrides to it\n return [smaller, numberingSystem, calendar];\n }\n}\n\nfunction intlConfigString(localeStr, numberingSystem, outputCalendar) {\n if (hasIntl()) {\n if (outputCalendar || numberingSystem) {\n localeStr += \"-u\";\n\n if (outputCalendar) {\n localeStr += `-ca-${outputCalendar}`;\n }\n\n if (numberingSystem) {\n localeStr += `-nu-${numberingSystem}`;\n }\n return localeStr;\n } else {\n return localeStr;\n }\n } else {\n return [];\n }\n}\n\nfunction mapMonths(f) {\n const ms = [];\n for (let i = 1; i <= 12; i++) {\n const dt = DateTime.utc(2016, i, 1);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction mapWeekdays(f) {\n const ms = [];\n for (let i = 1; i <= 7; i++) {\n const dt = DateTime.utc(2016, 11, 13 + i);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction listStuff(loc, length, defaultOK, englishFn, intlFn) {\n const mode = loc.listingMode(defaultOK);\n\n if (mode === \"error\") {\n return null;\n } else if (mode === \"en\") {\n return englishFn(length);\n } else {\n return intlFn(length);\n }\n}\n\nfunction supportsFastNumbers(loc) {\n if (loc.numberingSystem && loc.numberingSystem !== \"latn\") {\n return false;\n } else {\n return (\n loc.numberingSystem === \"latn\" ||\n !loc.locale ||\n loc.locale.startsWith(\"en\") ||\n (hasIntl() && new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === \"latn\")\n );\n }\n}\n\n/**\n * @private\n */\n\nclass PolyNumberFormatter {\n constructor(intl, forceSimple, opts) {\n this.padTo = opts.padTo || 0;\n this.floor = opts.floor || false;\n\n if (!forceSimple && hasIntl()) {\n const intlOpts = { useGrouping: false };\n if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;\n this.inf = getCachedINF(intl, intlOpts);\n }\n }\n\n format(i) {\n if (this.inf) {\n const fixed = this.floor ? Math.floor(i) : i;\n return this.inf.format(fixed);\n } else {\n // to match the browser's numberformatter defaults\n const fixed = this.floor ? Math.floor(i) : roundTo(i, 3);\n return padStart(fixed, this.padTo);\n }\n }\n}\n\n/**\n * @private\n */\n\nclass PolyDateFormatter {\n constructor(dt, intl, opts) {\n this.opts = opts;\n this.hasIntl = hasIntl();\n\n let z;\n if (dt.zone.universal && this.hasIntl) {\n // Chromium doesn't support fixed-offset zones like Etc/GMT+8 in its formatter,\n // See https://bugs.chromium.org/p/chromium/issues/detail?id=364374.\n // So we have to make do. Two cases:\n // 1. The format options tell us to show the zone. We can't do that, so the best\n // we can do is format the date in UTC.\n // 2. The format options don't tell us to show the zone. Then we can adjust them\n // the time and tell the formatter to show it to us in UTC, so that the time is right\n // and the bad zone doesn't show up.\n // We can clean all this up when Chrome fixes this.\n z = \"UTC\";\n if (opts.timeZoneName) {\n this.dt = dt;\n } else {\n this.dt = dt.offset === 0 ? dt : DateTime.fromMillis(dt.ts + dt.offset * 60 * 1000);\n }\n } else if (dt.zone.type === \"local\") {\n this.dt = dt;\n } else {\n this.dt = dt;\n z = dt.zone.name;\n }\n\n if (this.hasIntl) {\n const intlOpts = Object.assign({}, this.opts);\n if (z) {\n intlOpts.timeZone = z;\n }\n this.dtf = getCachedDTF(intl, intlOpts);\n }\n }\n\n format() {\n if (this.hasIntl) {\n return this.dtf.format(this.dt.toJSDate());\n } else {\n const tokenFormat = English.formatString(this.opts),\n loc = Locale.create(\"en-US\");\n return Formatter.create(loc).formatDateTimeFromString(this.dt, tokenFormat);\n }\n }\n\n formatToParts() {\n if (this.hasIntl && hasFormatToParts()) {\n return this.dtf.formatToParts(this.dt.toJSDate());\n } else {\n // This is kind of a cop out. We actually could do this for English. However, we couldn't do it for intl strings\n // and IMO it's too weird to have an uncanny valley like that\n return [];\n }\n }\n\n resolvedOptions() {\n if (this.hasIntl) {\n return this.dtf.resolvedOptions();\n } else {\n return {\n locale: \"en-US\",\n numberingSystem: \"latn\",\n outputCalendar: \"gregory\"\n };\n }\n }\n}\n\n/**\n * @private\n */\nclass PolyRelFormatter {\n constructor(intl, isEnglish, opts) {\n this.opts = Object.assign({ style: \"long\" }, opts);\n if (!isEnglish && hasRelative()) {\n this.rtf = getCachedRTF(intl, opts);\n }\n }\n\n format(count, unit) {\n if (this.rtf) {\n return this.rtf.format(count, unit);\n } else {\n return English.formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== \"long\");\n }\n }\n\n formatToParts(count, unit) {\n if (this.rtf) {\n return this.rtf.formatToParts(count, unit);\n } else {\n return [];\n }\n }\n}\n\n/**\n * @private\n */\n\nexport default class Locale {\n static fromOpts(opts) {\n return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN);\n }\n\n static create(locale, numberingSystem, outputCalendar, defaultToEN = false) {\n const specifiedLocale = locale || Settings.defaultLocale,\n // the system locale is useful for human readable strings but annoying for parsing/formatting known formats\n localeR = specifiedLocale || (defaultToEN ? \"en-US\" : systemLocale()),\n numberingSystemR = numberingSystem || Settings.defaultNumberingSystem,\n outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;\n return new Locale(localeR, numberingSystemR, outputCalendarR, specifiedLocale);\n }\n\n static resetCache() {\n sysLocaleCache = null;\n intlDTCache = {};\n intlNumCache = {};\n intlRelCache = {};\n }\n\n static fromObject({ locale, numberingSystem, outputCalendar } = {}) {\n return Locale.create(locale, numberingSystem, outputCalendar);\n }\n\n constructor(locale, numbering, outputCalendar, specifiedLocale) {\n const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString(locale);\n\n this.locale = parsedLocale;\n this.numberingSystem = numbering || parsedNumberingSystem || null;\n this.outputCalendar = outputCalendar || parsedOutputCalendar || null;\n this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);\n\n this.weekdaysCache = { format: {}, standalone: {} };\n this.monthsCache = { format: {}, standalone: {} };\n this.meridiemCache = null;\n this.eraCache = {};\n\n this.specifiedLocale = specifiedLocale;\n this.fastNumbersCached = null;\n }\n\n get fastNumbers() {\n if (this.fastNumbersCached == null) {\n this.fastNumbersCached = supportsFastNumbers(this);\n }\n\n return this.fastNumbersCached;\n }\n\n listingMode(defaultOK = true) {\n const intl = hasIntl(),\n hasFTP = intl && hasFormatToParts(),\n isActuallyEn = this.isEnglish(),\n hasNoWeirdness =\n (this.numberingSystem === null || this.numberingSystem === \"latn\") &&\n (this.outputCalendar === null || this.outputCalendar === \"gregory\");\n\n if (!hasFTP && !(isActuallyEn && hasNoWeirdness) && !defaultOK) {\n return \"error\";\n } else if (!hasFTP || (isActuallyEn && hasNoWeirdness)) {\n return \"en\";\n } else {\n return \"intl\";\n }\n }\n\n clone(alts) {\n if (!alts || Object.getOwnPropertyNames(alts).length === 0) {\n return this;\n } else {\n return Locale.create(\n alts.locale || this.specifiedLocale,\n alts.numberingSystem || this.numberingSystem,\n alts.outputCalendar || this.outputCalendar,\n alts.defaultToEN || false\n );\n }\n }\n\n redefaultToEN(alts = {}) {\n return this.clone(Object.assign({}, alts, { defaultToEN: true }));\n }\n\n redefaultToSystem(alts = {}) {\n return this.clone(Object.assign({}, alts, { defaultToEN: false }));\n }\n\n months(length, format = false, defaultOK = true) {\n return listStuff(this, length, defaultOK, English.months, () => {\n const intl = format ? { month: length, day: \"numeric\" } : { month: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.monthsCache[formatStr][length]) {\n this.monthsCache[formatStr][length] = mapMonths(dt => this.extract(dt, intl, \"month\"));\n }\n return this.monthsCache[formatStr][length];\n });\n }\n\n weekdays(length, format = false, defaultOK = true) {\n return listStuff(this, length, defaultOK, English.weekdays, () => {\n const intl = format\n ? { weekday: length, year: \"numeric\", month: \"long\", day: \"numeric\" }\n : { weekday: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.weekdaysCache[formatStr][length]) {\n this.weekdaysCache[formatStr][length] = mapWeekdays(dt =>\n this.extract(dt, intl, \"weekday\")\n );\n }\n return this.weekdaysCache[formatStr][length];\n });\n }\n\n meridiems(defaultOK = true) {\n return listStuff(\n this,\n undefined,\n defaultOK,\n () => English.meridiems,\n () => {\n // In theory there could be aribitrary day periods. We're gonna assume there are exactly two\n // for AM and PM. This is probably wrong, but it's makes parsing way easier.\n if (!this.meridiemCache) {\n const intl = { hour: \"numeric\", hour12: true };\n this.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(\n dt => this.extract(dt, intl, \"dayperiod\")\n );\n }\n\n return this.meridiemCache;\n }\n );\n }\n\n eras(length, defaultOK = true) {\n return listStuff(this, length, defaultOK, English.eras, () => {\n const intl = { era: length };\n\n // This is utter bullshit. Different calendars are going to define eras totally differently. What I need is the minimum set of dates\n // to definitely enumerate them.\n if (!this.eraCache[length]) {\n this.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map(dt =>\n this.extract(dt, intl, \"era\")\n );\n }\n\n return this.eraCache[length];\n });\n }\n\n extract(dt, intlOpts, field) {\n const df = this.dtFormatter(dt, intlOpts),\n results = df.formatToParts(),\n matching = results.find(m => m.type.toLowerCase() === field);\n return matching ? matching.value : null;\n }\n\n numberFormatter(opts = {}) {\n // this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)\n // (in contrast, the rest of the condition is used heavily)\n return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);\n }\n\n dtFormatter(dt, intlOpts = {}) {\n return new PolyDateFormatter(dt, this.intl, intlOpts);\n }\n\n relFormatter(opts = {}) {\n return new PolyRelFormatter(this.intl, this.isEnglish(), opts);\n }\n\n isEnglish() {\n return (\n this.locale === \"en\" ||\n this.locale.toLowerCase() === \"en-us\" ||\n (hasIntl() && new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith(\"en-us\"))\n );\n }\n\n equals(other) {\n return (\n this.locale === other.locale &&\n this.numberingSystem === other.numberingSystem &&\n this.outputCalendar === other.outputCalendar\n );\n }\n}\n","import {\n untruncateYear,\n signedOffset,\n parseInteger,\n parseMillis,\n ianaRegex,\n isUndefined\n} from \"./util.js\";\nimport * as English from \"./english.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\n\n/*\n * This file handles parsing for well-specified formats. Here's how it works:\n * Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.\n * An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object\n * parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.\n * Extractors can take a \"cursor\" representing the offset in the match to look at. This makes it easy to combine extractors.\n * combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.\n * Some extractions are super dumb and simpleParse and fromStrings help DRY them.\n */\n\nfunction combineRegexes(...regexes) {\n const full = regexes.reduce((f, r) => f + r.source, \"\");\n return RegExp(`^${full}$`);\n}\n\nfunction combineExtractors(...extractors) {\n return m =>\n extractors\n .reduce(\n ([mergedVals, mergedZone, cursor], ex) => {\n const [val, zone, next] = ex(m, cursor);\n return [Object.assign(mergedVals, val), mergedZone || zone, next];\n },\n [{}, null, 1]\n )\n .slice(0, 2);\n}\n\nfunction parse(s, ...patterns) {\n if (s == null) {\n return [null, null];\n }\n\n for (const [regex, extractor] of patterns) {\n const m = regex.exec(s);\n if (m) {\n return extractor(m);\n }\n }\n return [null, null];\n}\n\nfunction simpleParse(...keys) {\n return (match, cursor) => {\n const ret = {};\n let i;\n\n for (i = 0; i < keys.length; i++) {\n ret[keys[i]] = parseInteger(match[cursor + i]);\n }\n return [ret, null, cursor + i];\n };\n}\n\n// ISO and SQL parsing\nconst offsetRegex = /(?:(Z)|([+-]\\d\\d)(?::?(\\d\\d))?)/,\n isoTimeBaseRegex = /(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,9}))?)?)?/,\n isoTimeRegex = RegExp(`${isoTimeBaseRegex.source}${offsetRegex.source}?`),\n isoTimeExtensionRegex = RegExp(`(?:T${isoTimeRegex.source})?`),\n isoYmdRegex = /([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/,\n isoWeekRegex = /(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/,\n isoOrdinalRegex = /(\\d{4})-?(\\d{3})/,\n extractISOWeekData = simpleParse(\"weekYear\", \"weekNumber\", \"weekDay\"),\n extractISOOrdinalData = simpleParse(\"year\", \"ordinal\"),\n sqlYmdRegex = /(\\d{4})-(\\d\\d)-(\\d\\d)/, // dumbed-down version of the ISO one\n sqlTimeRegex = RegExp(\n `${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`\n ),\n sqlTimeExtensionRegex = RegExp(`(?: ${sqlTimeRegex.source})?`);\n\nfunction int(match, pos, fallback) {\n const m = match[pos];\n return isUndefined(m) ? fallback : parseInteger(m);\n}\n\nfunction extractISOYmd(match, cursor) {\n const item = {\n year: int(match, cursor),\n month: int(match, cursor + 1, 1),\n day: int(match, cursor + 2, 1)\n };\n\n return [item, null, cursor + 3];\n}\n\nfunction extractISOTime(match, cursor) {\n const item = {\n hour: int(match, cursor, 0),\n minute: int(match, cursor + 1, 0),\n second: int(match, cursor + 2, 0),\n millisecond: parseMillis(match[cursor + 3])\n };\n\n return [item, null, cursor + 4];\n}\n\nfunction extractISOOffset(match, cursor) {\n const local = !match[cursor] && !match[cursor + 1],\n fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),\n zone = local ? null : FixedOffsetZone.instance(fullOffset);\n return [{}, zone, cursor + 3];\n}\n\nfunction extractIANAZone(match, cursor) {\n const zone = match[cursor] ? IANAZone.create(match[cursor]) : null;\n return [{}, zone, cursor + 1];\n}\n\n// ISO duration parsing\n\nconst isoDuration = /^-?P(?:(?:(-?\\d{1,9})Y)?(?:(-?\\d{1,9})M)?(?:(-?\\d{1,9})W)?(?:(-?\\d{1,9})D)?(?:T(?:(-?\\d{1,9})H)?(?:(-?\\d{1,9})M)?(?:(-?\\d{1,9})(?:[.,](-?\\d{1,9}))?S)?)?)$/;\n\nfunction extractISODuration(match) {\n const [\n s,\n yearStr,\n monthStr,\n weekStr,\n dayStr,\n hourStr,\n minuteStr,\n secondStr,\n millisecondsStr\n ] = match;\n\n const hasNegativePrefix = s[0] === \"-\";\n\n const maybeNegate = num => (num && hasNegativePrefix ? -num : num);\n\n return [\n {\n years: maybeNegate(parseInteger(yearStr)),\n months: maybeNegate(parseInteger(monthStr)),\n weeks: maybeNegate(parseInteger(weekStr)),\n days: maybeNegate(parseInteger(dayStr)),\n hours: maybeNegate(parseInteger(hourStr)),\n minutes: maybeNegate(parseInteger(minuteStr)),\n seconds: maybeNegate(parseInteger(secondStr)),\n milliseconds: maybeNegate(parseMillis(millisecondsStr))\n }\n ];\n}\n\n// These are a little braindead. EDT *should* tell us that we're in, say, America/New_York\n// and not just that we're in -240 *right now*. But since I don't think these are used that often\n// I'm just going to ignore that\nconst obsOffsets = {\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60\n};\n\nfunction fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n const result = {\n year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),\n month: English.monthsShort.indexOf(monthStr) + 1,\n day: parseInteger(dayStr),\n hour: parseInteger(hourStr),\n minute: parseInteger(minuteStr)\n };\n\n if (secondStr) result.second = parseInteger(secondStr);\n if (weekdayStr) {\n result.weekday =\n weekdayStr.length > 3\n ? English.weekdaysLong.indexOf(weekdayStr) + 1\n : English.weekdaysShort.indexOf(weekdayStr) + 1;\n }\n\n return result;\n}\n\n// RFC 2822/5322\nconst rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\\d\\d)(\\d\\d)))$/;\n\nfunction extractRFC2822(match) {\n const [\n ,\n weekdayStr,\n dayStr,\n monthStr,\n yearStr,\n hourStr,\n minuteStr,\n secondStr,\n obsOffset,\n milOffset,\n offHourStr,\n offMinuteStr\n ] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n\n let offset;\n if (obsOffset) {\n offset = obsOffsets[obsOffset];\n } else if (milOffset) {\n offset = 0;\n } else {\n offset = signedOffset(offHourStr, offMinuteStr);\n }\n\n return [result, new FixedOffsetZone(offset)];\n}\n\nfunction preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^)]*\\)|[\\n\\t]/g, \" \")\n .replace(/(\\s\\s+)/g, \" \")\n .trim();\n}\n\n// http date\n\nconst rfc1123 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n rfc850 = /^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n ascii = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;\n\nfunction extractRFC1123Or850(match) {\n const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nfunction extractASCII(match) {\n const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nconst isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);\nconst isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);\nconst isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);\nconst isoTimeCombinedRegex = combineRegexes(isoTimeRegex);\n\nconst extractISOYmdTimeAndOffset = combineExtractors(\n extractISOYmd,\n extractISOTime,\n extractISOOffset\n);\nconst extractISOWeekTimeAndOffset = combineExtractors(\n extractISOWeekData,\n extractISOTime,\n extractISOOffset\n);\nconst extractISOOrdinalDataAndTime = combineExtractors(extractISOOrdinalData, extractISOTime);\nconst extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset);\n\n/**\n * @private\n */\n\nexport function parseISODate(s) {\n return parse(\n s,\n [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset],\n [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDataAndTime],\n [isoTimeCombinedRegex, extractISOTimeAndOffset]\n );\n}\n\nexport function parseRFC2822Date(s) {\n return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);\n}\n\nexport function parseHTTPDate(s) {\n return parse(\n s,\n [rfc1123, extractRFC1123Or850],\n [rfc850, extractRFC1123Or850],\n [ascii, extractASCII]\n );\n}\n\nexport function parseISODuration(s) {\n return parse(s, [isoDuration, extractISODuration]);\n}\n\nconst sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);\nconst sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);\n\nconst extractISOYmdTimeOffsetAndIANAZone = combineExtractors(\n extractISOYmd,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOTimeOffsetAndIANAZone = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\nexport function parseSQL(s) {\n return parse(\n s,\n [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeOffsetAndIANAZone],\n [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]\n );\n}\n","import { InvalidArgumentError, InvalidDurationError, InvalidUnitError } from \"./errors.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport Invalid from \"./impl/invalid.js\";\nimport Locale from \"./impl/locale.js\";\nimport { parseISODuration } from \"./impl/regexParser.js\";\nimport {\n asNumber,\n hasOwnProperty,\n isNumber,\n isUndefined,\n normalizeObject,\n roundTo\n} from \"./impl/util.js\";\nimport Settings from \"./settings.js\";\n\nconst INVALID = \"Invalid Duration\";\n\n// unit conversion constants\nconst lowOrderMatrix = {\n weeks: {\n days: 7,\n hours: 7 * 24,\n minutes: 7 * 24 * 60,\n seconds: 7 * 24 * 60 * 60,\n milliseconds: 7 * 24 * 60 * 60 * 1000\n },\n days: {\n hours: 24,\n minutes: 24 * 60,\n seconds: 24 * 60 * 60,\n milliseconds: 24 * 60 * 60 * 1000\n },\n hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1000 },\n minutes: { seconds: 60, milliseconds: 60 * 1000 },\n seconds: { milliseconds: 1000 }\n },\n casualMatrix = Object.assign(\n {\n years: {\n months: 12,\n weeks: 52,\n days: 365,\n hours: 365 * 24,\n minutes: 365 * 24 * 60,\n seconds: 365 * 24 * 60 * 60,\n milliseconds: 365 * 24 * 60 * 60 * 1000\n },\n quarters: {\n months: 3,\n weeks: 13,\n days: 91,\n hours: 91 * 24,\n minutes: 91 * 24 * 60,\n milliseconds: 91 * 24 * 60 * 60 * 1000\n },\n months: {\n weeks: 4,\n days: 30,\n hours: 30 * 24,\n minutes: 30 * 24 * 60,\n seconds: 30 * 24 * 60 * 60,\n milliseconds: 30 * 24 * 60 * 60 * 1000\n }\n },\n lowOrderMatrix\n ),\n daysInYearAccurate = 146097.0 / 400,\n daysInMonthAccurate = 146097.0 / 4800,\n accurateMatrix = Object.assign(\n {\n years: {\n months: 12,\n weeks: daysInYearAccurate / 7,\n days: daysInYearAccurate,\n hours: daysInYearAccurate * 24,\n minutes: daysInYearAccurate * 24 * 60,\n seconds: daysInYearAccurate * 24 * 60 * 60,\n milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000\n },\n quarters: {\n months: 3,\n weeks: daysInYearAccurate / 28,\n days: daysInYearAccurate / 4,\n hours: (daysInYearAccurate * 24) / 4,\n minutes: (daysInYearAccurate * 24 * 60) / 4,\n seconds: (daysInYearAccurate * 24 * 60 * 60) / 4,\n milliseconds: (daysInYearAccurate * 24 * 60 * 60 * 1000) / 4\n },\n months: {\n weeks: daysInMonthAccurate / 7,\n days: daysInMonthAccurate,\n hours: daysInMonthAccurate * 24,\n minutes: daysInMonthAccurate * 24 * 60,\n seconds: daysInMonthAccurate * 24 * 60 * 60,\n milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000\n }\n },\n lowOrderMatrix\n );\n\n// units ordered by size\nconst orderedUnits = [\n \"years\",\n \"quarters\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\"\n];\n\nconst reverseUnits = orderedUnits.slice(0).reverse();\n\n// clone really means \"create another instance just like this one, but with these changes\"\nfunction clone(dur, alts, clear = false) {\n // deep merge for vals\n const conf = {\n values: clear ? alts.values : Object.assign({}, dur.values, alts.values || {}),\n loc: dur.loc.clone(alts.loc),\n conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy\n };\n return new Duration(conf);\n}\n\nfunction antiTrunc(n) {\n return n < 0 ? Math.floor(n) : Math.ceil(n);\n}\n\n// NB: mutates parameters\nfunction convert(matrix, fromMap, fromUnit, toMap, toUnit) {\n const conv = matrix[toUnit][fromUnit],\n raw = fromMap[fromUnit] / conv,\n sameSign = Math.sign(raw) === Math.sign(toMap[toUnit]),\n // ok, so this is wild, but see the matrix in the tests\n added =\n !sameSign && toMap[toUnit] !== 0 && Math.abs(raw) <= 1 ? antiTrunc(raw) : Math.trunc(raw);\n toMap[toUnit] += added;\n fromMap[fromUnit] -= added * conv;\n}\n\n// NB: mutates parameters\nfunction normalizeValues(matrix, vals) {\n reverseUnits.reduce((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n convert(matrix, vals, previous, vals, current);\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n}\n\n/**\n * A Duration object represents a period of time, like \"2 months\" or \"1 day, 1 hour\". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime.plus} to add a Duration object to a DateTime, producing another DateTime.\n *\n * Here is a brief overview of commonly used methods and getters in Duration:\n *\n * * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.\n * * **Unit values** See the {@link Duration.years}, {@link Duration.months}, {@link Duration.weeks}, {@link Duration.days}, {@link Duration.hours}, {@link Duration.minutes}, {@link Duration.seconds}, {@link Duration.milliseconds} accessors.\n * * **Configuration** See {@link Duration.locale} and {@link Duration.numberingSystem} accessors.\n * * **Transformation** To create new Durations out of old ones use {@link Duration.plus}, {@link Duration.minus}, {@link Duration.normalize}, {@link Duration.set}, {@link Duration.reconfigure}, {@link Duration.shiftTo}, and {@link Duration.negate}.\n * * **Output** To convert the Duration into other representations, see {@link Duration.as}, {@link Duration.toISO}, {@link Duration.toFormat}, and {@link Duration.toJSON}\n *\n * There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.\n */\nexport default class Duration {\n /**\n * @private\n */\n constructor(config) {\n const accurate = config.conversionAccuracy === \"longterm\" || false;\n /**\n * @access private\n */\n this.values = config.values;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.conversionAccuracy = accurate ? \"longterm\" : \"casual\";\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.matrix = accurate ? accurateMatrix : casualMatrix;\n /**\n * @access private\n */\n this.isLuxonDuration = true;\n }\n\n /**\n * Create Duration from a number of milliseconds.\n * @param {number} count of milliseconds\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n static fromMillis(count, opts) {\n return Duration.fromObject(Object.assign({ milliseconds: count }, opts));\n }\n\n /**\n * Create a Duration from a Javascript object with keys like 'years' and 'hours.\n * If this object is empty then a zero milliseconds duration is returned.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.years\n * @param {number} obj.quarters\n * @param {number} obj.months\n * @param {number} obj.weeks\n * @param {number} obj.days\n * @param {number} obj.hours\n * @param {number} obj.minutes\n * @param {number} obj.seconds\n * @param {number} obj.milliseconds\n * @param {string} [obj.locale='en-US'] - the locale to use\n * @param {string} obj.numberingSystem - the numbering system to use\n * @param {string} [obj.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n static fromObject(obj) {\n if (obj == null || typeof obj !== \"object\") {\n throw new InvalidArgumentError(\n `Duration.fromObject: argument expected to be an object, got ${\n obj === null ? \"null\" : typeof obj\n }`\n );\n }\n return new Duration({\n values: normalizeObject(obj, Duration.normalizeUnit, [\n \"locale\",\n \"numberingSystem\",\n \"conversionAccuracy\",\n \"zone\" // a bit of debt; it's super inconvenient internally not to be able to blindly pass this\n ]),\n loc: Locale.fromObject(obj),\n conversionAccuracy: obj.conversionAccuracy\n });\n }\n\n /**\n * Create a Duration from an ISO 8601 duration string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }\n * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }\n * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }\n * @return {Duration}\n */\n static fromISO(text, opts) {\n const [parsed] = parseISODuration(text);\n if (parsed) {\n const obj = Object.assign(parsed, opts);\n return Duration.fromObject(obj);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create an invalid Duration.\n * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Duration}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Duration is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDurationError(invalid);\n } else {\n return new Duration({ invalid });\n }\n }\n\n /**\n * @private\n */\n static normalizeUnit(unit) {\n const normalized = {\n year: \"years\",\n years: \"years\",\n quarter: \"quarters\",\n quarters: \"quarters\",\n month: \"months\",\n months: \"months\",\n week: \"weeks\",\n weeks: \"weeks\",\n day: \"days\",\n days: \"days\",\n hour: \"hours\",\n hours: \"hours\",\n minute: \"minutes\",\n minutes: \"minutes\",\n second: \"seconds\",\n seconds: \"seconds\",\n millisecond: \"milliseconds\",\n milliseconds: \"milliseconds\"\n }[unit ? unit.toLowerCase() : unit];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n }\n\n /**\n * Check if an object is a Duration. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDuration(o) {\n return (o && o.isLuxonDuration) || false;\n }\n\n /**\n * Get the locale of a Duration, such 'en-GB'\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:\n * * `S` for milliseconds\n * * `s` for seconds\n * * `m` for minutes\n * * `h` for hours\n * * `d` for days\n * * `M` for months\n * * `y` for years\n * Notes:\n * * Add padding by repeating the token, e.g. \"yy\" pads the years to two digits, \"hhhh\" pads the hours out to four digits\n * * The duration will be converted to the set of units in the format string using {@link Duration.shiftTo} and the Durations's conversion accuracy setting.\n * @param {string} fmt - the format string\n * @param {Object} opts - options\n * @param {boolean} [opts.floor=true] - floor numerical values\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"y d s\") //=> \"1 6 2\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"yy dd sss\") //=> \"01 06 002\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"M S\") //=> \"12 518402000\"\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n // reverse-compat since 1.2; we always round down now, never up, and we do it by default\n const fmtOpts = Object.assign({}, opts, {\n floor: opts.round !== false && opts.floor !== false\n });\n return this.isValid\n ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a Javascript object with this Duration's values.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }\n * @return {Object}\n */\n toObject(opts = {}) {\n if (!this.isValid) return {};\n\n const base = Object.assign({}, this.values);\n\n if (opts.includeConfig) {\n base.conversionAccuracy = this.conversionAccuracy;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'\n * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'\n * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'\n * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'\n * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'\n * @return {string}\n */\n toISO() {\n // we could use the formatter, but this is an easier way to get the minimum string\n if (!this.isValid) return null;\n\n let s = \"P\";\n if (this.years !== 0) s += this.years + \"Y\";\n if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + \"M\";\n if (this.weeks !== 0) s += this.weeks + \"W\";\n if (this.days !== 0) s += this.days + \"D\";\n if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0)\n s += \"T\";\n if (this.hours !== 0) s += this.hours + \"H\";\n if (this.minutes !== 0) s += this.minutes + \"M\";\n if (this.seconds !== 0 || this.milliseconds !== 0)\n // this will handle \"floating point madness\" by removing extra decimal places\n // https://stackoverflow.com/questions/588004/is-floating-point-math-broken\n s += roundTo(this.seconds + this.milliseconds / 1000, 3) + \"S\";\n if (s === \"P\") s += \"T0S\";\n return s;\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in debugging.\n * @return {string}\n */\n toString() {\n return this.toISO();\n }\n\n /**\n * Returns an milliseconds value of this Duration.\n * @return {number}\n */\n valueOf() {\n return this.as(\"milliseconds\");\n }\n\n /**\n * Make this Duration longer by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n plus(duration) {\n if (!this.isValid) return this;\n\n const dur = friendlyDuration(duration),\n result = {};\n\n for (const k of orderedUnits) {\n if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {\n result[k] = dur.get(k) + this.get(k);\n }\n }\n\n return clone(this, { values: result }, true);\n }\n\n /**\n * Make this Duration shorter by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n minus(duration) {\n if (!this.isValid) return this;\n\n const dur = friendlyDuration(duration);\n return this.plus(dur.negate());\n }\n\n /**\n * Scale this Duration by the specified amount. Return a newly-constructed Duration.\n * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnit(x => x * 2) //=> { hours: 2, minutes: 60 }\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnit((x, u) => u === \"hour\" ? x * 2 : x) //=> { hours: 2, minutes: 30 }\n * @return {Duration}\n */\n mapUnits(fn) {\n if (!this.isValid) return this;\n const result = {};\n for (const k of Object.keys(this.values)) {\n result[k] = asNumber(fn(this.values[k], k));\n }\n return clone(this, { values: result }, true);\n }\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example Duration.fromObject({years: 2, days: 3}).years //=> 2\n * @example Duration.fromObject({years: 2, days: 3}).months //=> 0\n * @example Duration.fromObject({years: 2, days: 3}).days //=> 3\n * @return {number}\n */\n get(unit) {\n return this[Duration.normalizeUnit(unit)];\n }\n\n /**\n * \"Set\" the values of specified units. Return a newly-constructed Duration.\n * @param {Object} values - a mapping of units to numbers\n * @example dur.set({ years: 2017 })\n * @example dur.set({ hours: 8, minutes: 30 })\n * @return {Duration}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const mixed = Object.assign(this.values, normalizeObject(values, Duration.normalizeUnit, []));\n return clone(this, { values: mixed });\n }\n\n /**\n * \"Set\" the locale and/or numberingSystem. Returns a newly-constructed Duration.\n * @example dur.reconfigure({ locale: 'en-GB' })\n * @return {Duration}\n */\n reconfigure({ locale, numberingSystem, conversionAccuracy } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem }),\n opts = { loc };\n\n if (conversionAccuracy) {\n opts.conversionAccuracy = conversionAccuracy;\n }\n\n return clone(this, opts);\n }\n\n /**\n * Return the length of the duration in the specified unit.\n * @param {string} unit - a unit such as 'minutes' or 'days'\n * @example Duration.fromObject({years: 1}).as('days') //=> 365\n * @example Duration.fromObject({years: 1}).as('months') //=> 12\n * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5\n * @return {number}\n */\n as(unit) {\n return this.isValid ? this.shiftTo(unit).get(unit) : NaN;\n }\n\n /**\n * Reduce this Duration to its canonical representation in its current units.\n * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }\n * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }\n * @return {Duration}\n */\n normalize() {\n if (!this.isValid) return this;\n const vals = this.toObject();\n normalizeValues(this.matrix, vals);\n return clone(this, { values: vals }, true);\n }\n\n /**\n * Convert this Duration into its representation in a different set of units.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }\n * @return {Duration}\n */\n shiftTo(...units) {\n if (!this.isValid) return this;\n\n if (units.length === 0) {\n return this;\n }\n\n units = units.map(u => Duration.normalizeUnit(u));\n\n const built = {},\n accumulated = {},\n vals = this.toObject();\n let lastUnit;\n\n normalizeValues(this.matrix, vals);\n\n for (const k of orderedUnits) {\n if (units.indexOf(k) >= 0) {\n lastUnit = k;\n\n let own = 0;\n\n // anything we haven't boiled down yet should get boiled to this unit\n for (const ak in accumulated) {\n own += this.matrix[ak][k] * accumulated[ak];\n accumulated[ak] = 0;\n }\n\n // plus anything that's already in this unit\n if (isNumber(vals[k])) {\n own += vals[k];\n }\n\n const i = Math.trunc(own);\n built[k] = i;\n accumulated[k] = own - i; // we'd like to absorb these fractions in another unit\n\n // plus anything further down the chain that should be rolled up in to this\n for (const down in vals) {\n if (orderedUnits.indexOf(down) > orderedUnits.indexOf(k)) {\n convert(this.matrix, vals, down, built, k);\n }\n }\n // otherwise, keep it in the wings to boil it later\n } else if (isNumber(vals[k])) {\n accumulated[k] = vals[k];\n }\n }\n\n // anything leftover becomes the decimal for the last unit\n // lastUnit must be defined since units is not empty\n for (const key in accumulated) {\n if (accumulated[key] !== 0) {\n built[lastUnit] +=\n key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];\n }\n }\n\n return clone(this, { values: built }, true).normalize();\n }\n\n /**\n * Return the negative of this Duration.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }\n * @return {Duration}\n */\n negate() {\n if (!this.isValid) return this;\n const negated = {};\n for (const k of Object.keys(this.values)) {\n negated[k] = -this.values[k];\n }\n return clone(this, { values: negated }, true);\n }\n\n /**\n * Get the years.\n * @type {number}\n */\n get years() {\n return this.isValid ? this.values.years || 0 : NaN;\n }\n\n /**\n * Get the quarters.\n * @type {number}\n */\n get quarters() {\n return this.isValid ? this.values.quarters || 0 : NaN;\n }\n\n /**\n * Get the months.\n * @type {number}\n */\n get months() {\n return this.isValid ? this.values.months || 0 : NaN;\n }\n\n /**\n * Get the weeks\n * @type {number}\n */\n get weeks() {\n return this.isValid ? this.values.weeks || 0 : NaN;\n }\n\n /**\n * Get the days.\n * @type {number}\n */\n get days() {\n return this.isValid ? this.values.days || 0 : NaN;\n }\n\n /**\n * Get the hours.\n * @type {number}\n */\n get hours() {\n return this.isValid ? this.values.hours || 0 : NaN;\n }\n\n /**\n * Get the minutes.\n * @type {number}\n */\n get minutes() {\n return this.isValid ? this.values.minutes || 0 : NaN;\n }\n\n /**\n * Get the seconds.\n * @return {number}\n */\n get seconds() {\n return this.isValid ? this.values.seconds || 0 : NaN;\n }\n\n /**\n * Get the milliseconds.\n * @return {number}\n */\n get milliseconds() {\n return this.isValid ? this.values.milliseconds || 0 : NaN;\n }\n\n /**\n * Returns whether the Duration is invalid. Invalid durations are returned by diff operations\n * on invalid DateTimes or Intervals.\n * @return {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this Duration became invalid, or null if the Duration is valid\n * @return {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Duration became invalid, or null if the Duration is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Equality check\n * Two Durations are equal iff they have the same units and the same values for each unit.\n * @param {Duration} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n if (!this.loc.equals(other.loc)) {\n return false;\n }\n\n for (const u of orderedUnits) {\n if (this.values[u] !== other.values[u]) {\n return false;\n }\n }\n return true;\n }\n}\n\n/**\n * @private\n */\nexport function friendlyDuration(durationish) {\n if (isNumber(durationish)) {\n return Duration.fromMillis(durationish);\n } else if (Duration.isDuration(durationish)) {\n return durationish;\n } else if (typeof durationish === \"object\") {\n return Duration.fromObject(durationish);\n } else {\n throw new InvalidArgumentError(\n `Unknown duration argument ${durationish} of type ${typeof durationish}`\n );\n }\n}\n","import DateTime, { friendlyDateTime } from \"./datetime.js\";\nimport Duration, { friendlyDuration } from \"./duration.js\";\nimport Settings from \"./settings.js\";\nimport { InvalidArgumentError, InvalidIntervalError } from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\n\nconst INVALID = \"Invalid Interval\";\n\n// checks if the start is equal to or before the end\nfunction validateStartEnd(start, end) {\n if (!start || !start.isValid) {\n return Interval.invalid(\"missing or invalid start\");\n } else if (!end || !end.isValid) {\n return Interval.invalid(\"missing or invalid end\");\n } else if (end < start) {\n return Interval.invalid(\n \"end before start\",\n `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`\n );\n } else {\n return null;\n }\n}\n\n/**\n * An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.\n *\n * Here is a brief overview of the most commonly used methods and getters in Interval:\n *\n * * **Creation** To create an Interval, use {@link fromDateTimes}, {@link after}, {@link before}, or {@link fromISO}.\n * * **Accessors** Use {@link start} and {@link end} to get the start and end.\n * * **Interrogation** To analyze the Interval, use {@link count}, {@link length}, {@link hasSame}, {@link contains}, {@link isAfter}, or {@link isBefore}.\n * * **Transformation** To create other Intervals out of this one, use {@link set}, {@link splitAt}, {@link splitBy}, {@link divideEqually}, {@link merge}, {@link xor}, {@link union}, {@link intersection}, or {@link difference}.\n * * **Comparison** To compare this Interval to another one, use {@link equals}, {@link overlaps}, {@link abutsStart}, {@link abutsEnd}, {@link engulfs}\n * * **Output** To convert the Interval into other representations, see {@link toString}, {@link toISO}, {@link toISODate}, {@link toISOTime}, {@link toFormat}, and {@link toDuration}.\n */\nexport default class Interval {\n /**\n * @private\n */\n constructor(config) {\n /**\n * @access private\n */\n this.s = config.start;\n /**\n * @access private\n */\n this.e = config.end;\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.isLuxonInterval = true;\n }\n\n /**\n * Create an invalid Interval.\n * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Interval}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Interval is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidIntervalError(invalid);\n } else {\n return new Interval({ invalid });\n }\n }\n\n /**\n * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.\n * @param {DateTime|Date|Object} start\n * @param {DateTime|Date|Object} end\n * @return {Interval}\n */\n static fromDateTimes(start, end) {\n const builtStart = friendlyDateTime(start),\n builtEnd = friendlyDateTime(end);\n\n const validateError = validateStartEnd(builtStart, builtEnd);\n\n if (validateError == null) {\n return new Interval({\n start: builtStart,\n end: builtEnd\n });\n } else {\n return validateError;\n }\n }\n\n /**\n * Create an Interval from a start DateTime and a Duration to extend to.\n * @param {DateTime|Date|Object} start\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static after(start, duration) {\n const dur = friendlyDuration(duration),\n dt = friendlyDateTime(start);\n return Interval.fromDateTimes(dt, dt.plus(dur));\n }\n\n /**\n * Create an Interval from an end DateTime and a Duration to extend backwards to.\n * @param {DateTime|Date|Object} end\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static before(end, duration) {\n const dur = friendlyDuration(duration),\n dt = friendlyDateTime(end);\n return Interval.fromDateTimes(dt.minus(dur), dt);\n }\n\n /**\n * Create an Interval from an ISO 8601 string.\n * Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.\n * @param {string} text - the ISO string to parse\n * @param {Object} [opts] - options to pass {@link DateTime.fromISO} and optionally {@link Duration.fromISO}\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {Interval}\n */\n static fromISO(text, opts) {\n const [s, e] = (text || \"\").split(\"/\", 2);\n if (s && e) {\n const start = DateTime.fromISO(s, opts),\n end = DateTime.fromISO(e, opts);\n\n if (start.isValid && end.isValid) {\n return Interval.fromDateTimes(start, end);\n }\n\n if (start.isValid) {\n const dur = Duration.fromISO(e, opts);\n if (dur.isValid) {\n return Interval.after(start, dur);\n }\n } else if (end.isValid) {\n const dur = Duration.fromISO(s, opts);\n if (dur.isValid) {\n return Interval.before(end, dur);\n }\n }\n }\n return Interval.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n\n /**\n * Check if an object is an Interval. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isInterval(o) {\n return (o && o.isLuxonInterval) || false;\n }\n\n /**\n * Returns the start of the Interval\n * @type {DateTime}\n */\n get start() {\n return this.isValid ? this.s : null;\n }\n\n /**\n * Returns the end of the Interval\n * @type {DateTime}\n */\n get end() {\n return this.isValid ? this.e : null;\n }\n\n /**\n * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.\n * @type {boolean}\n */\n get isValid() {\n return this.invalidReason === null;\n }\n\n /**\n * Returns an error code if this Interval is invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Interval became invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Returns the length of the Interval in the specified unit.\n * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.\n * @return {number}\n */\n length(unit = \"milliseconds\") {\n return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN;\n }\n\n /**\n * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.\n * Unlike {@link length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'\n * asks 'what dates are included in this interval?', not 'how many days long is this interval?'\n * @param {string} [unit='milliseconds'] - the unit of time to count.\n * @return {number}\n */\n count(unit = \"milliseconds\") {\n if (!this.isValid) return NaN;\n const start = this.start.startOf(unit),\n end = this.end.startOf(unit);\n return Math.floor(end.diff(start, unit).get(unit)) + 1;\n }\n\n /**\n * Returns whether this Interval's start and end are both in the same unit of time\n * @param {string} unit - the unit of time to check sameness on\n * @return {boolean}\n */\n hasSame(unit) {\n return this.isValid ? this.e.minus(1).hasSame(this.s, unit) : false;\n }\n\n /**\n * Return whether this Interval has the same start and end DateTimes.\n * @return {boolean}\n */\n isEmpty() {\n return this.s.valueOf() === this.e.valueOf();\n }\n\n /**\n * Return whether this Interval's start is after the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isAfter(dateTime) {\n if (!this.isValid) return false;\n return this.s > dateTime;\n }\n\n /**\n * Return whether this Interval's end is before the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isBefore(dateTime) {\n if (!this.isValid) return false;\n return this.e <= dateTime;\n }\n\n /**\n * Return whether this Interval contains the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n contains(dateTime) {\n if (!this.isValid) return false;\n return this.s <= dateTime && this.e > dateTime;\n }\n\n /**\n * \"Sets\" the start and/or end dates. Returns a newly-constructed Interval.\n * @param {Object} values - the values to set\n * @param {DateTime} values.start - the starting DateTime\n * @param {DateTime} values.end - the ending DateTime\n * @return {Interval}\n */\n set({ start, end } = {}) {\n if (!this.isValid) return this;\n return Interval.fromDateTimes(start || this.s, end || this.e);\n }\n\n /**\n * Split this Interval at each of the specified DateTimes\n * @param {...[DateTime]} dateTimes - the unit of time to count.\n * @return {[Interval]}\n */\n splitAt(...dateTimes) {\n if (!this.isValid) return [];\n const sorted = dateTimes\n .map(friendlyDateTime)\n .filter(d => this.contains(d))\n .sort(),\n results = [];\n let { s } = this,\n i = 0;\n\n while (s < this.e) {\n const added = sorted[i] || this.e,\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n i += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into smaller Intervals, each of the specified length.\n * Left over time is grouped into a smaller interval\n * @param {Duration|Object|number} duration - The length of each resulting interval.\n * @return {[Interval]}\n */\n splitBy(duration) {\n const dur = friendlyDuration(duration);\n\n if (!this.isValid || !dur.isValid || dur.as(\"milliseconds\") === 0) {\n return [];\n }\n\n let { s } = this,\n added,\n next;\n\n const results = [];\n while (s < this.e) {\n added = s.plus(dur);\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into the specified number of smaller intervals.\n * @param {number} numberOfParts - The number of Intervals to divide the Interval into.\n * @return {[Interval]}\n */\n divideEqually(numberOfParts) {\n if (!this.isValid) return [];\n return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);\n }\n\n /**\n * Return whether this Interval overlaps with the specified Interval\n * @param {Interval} other\n * @return {boolean}\n */\n overlaps(other) {\n return this.e > other.s && this.s < other.e;\n }\n\n /**\n * Return whether this Interval's end is adjacent to the specified Interval's start.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsStart(other) {\n if (!this.isValid) return false;\n return +this.e === +other.s;\n }\n\n /**\n * Return whether this Interval's start is adjacent to the specified Interval's end.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsEnd(other) {\n if (!this.isValid) return false;\n return +other.e === +this.s;\n }\n\n /**\n * Return whether this Interval engulfs the start and end of the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n engulfs(other) {\n if (!this.isValid) return false;\n return this.s <= other.s && this.e >= other.e;\n }\n\n /**\n * Return whether this Interval has the same start and end as the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n return this.s.equals(other.s) && this.e.equals(other.e);\n }\n\n /**\n * Return an Interval representing the intersection of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.\n * Returns null if the intersection is empty, meaning, the intervals don't intersect.\n * @param {Interval} other\n * @return {Interval}\n */\n intersection(other) {\n if (!this.isValid) return this;\n const s = this.s > other.s ? this.s : other.s,\n e = this.e < other.e ? this.e : other.e;\n\n if (s > e) {\n return null;\n } else {\n return Interval.fromDateTimes(s, e);\n }\n }\n\n /**\n * Return an Interval representing the union of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.\n * @param {Interval} other\n * @return {Interval}\n */\n union(other) {\n if (!this.isValid) return this;\n const s = this.s < other.s ? this.s : other.s,\n e = this.e > other.e ? this.e : other.e;\n return Interval.fromDateTimes(s, e);\n }\n\n /**\n * Merge an array of Intervals into a equivalent minimal set of Intervals.\n * Combines overlapping and adjacent Intervals.\n * @param {[Interval]} intervals\n * @return {[Interval]}\n */\n static merge(intervals) {\n const [found, final] = intervals.sort((a, b) => a.s - b.s).reduce(\n ([sofar, current], item) => {\n if (!current) {\n return [sofar, item];\n } else if (current.overlaps(item) || current.abutsStart(item)) {\n return [sofar, current.union(item)];\n } else {\n return [sofar.concat([current]), item];\n }\n },\n [[], null]\n );\n if (final) {\n found.push(final);\n }\n return found;\n }\n\n /**\n * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.\n * @param {[Interval]} intervals\n * @return {[Interval]}\n */\n static xor(intervals) {\n let start = null,\n currentCount = 0;\n const results = [],\n ends = intervals.map(i => [{ time: i.s, type: \"s\" }, { time: i.e, type: \"e\" }]),\n flattened = Array.prototype.concat(...ends),\n arr = flattened.sort((a, b) => a.time - b.time);\n\n for (const i of arr) {\n currentCount += i.type === \"s\" ? 1 : -1;\n\n if (currentCount === 1) {\n start = i.time;\n } else {\n if (start && +start !== +i.time) {\n results.push(Interval.fromDateTimes(start, i.time));\n }\n\n start = null;\n }\n }\n\n return Interval.merge(results);\n }\n\n /**\n * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.\n * @param {...Interval} intervals\n * @return {[Interval]}\n */\n difference(...intervals) {\n return Interval.xor([this].concat(intervals))\n .map(i => this.intersection(i))\n .filter(i => i && !i.isEmpty());\n }\n\n /**\n * Returns a string representation of this Interval appropriate for debugging.\n * @return {string}\n */\n toString() {\n if (!this.isValid) return INVALID;\n return `[${this.s.toISO()} – ${this.e.toISO()})`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Interval.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime.toISO}\n * @return {string}\n */\n toISO(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of date of this Interval.\n * The time components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {string}\n */\n toISODate() {\n if (!this.isValid) return INVALID;\n return `${this.s.toISODate()}/${this.e.toISODate()}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of time of this Interval.\n * The date components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime.toISO}\n * @return {string}\n */\n toISOTime(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this Interval formatted according to the specified format string.\n * @param {string} dateFormat - the format string. This string formats the start and end time. See {@link DateTime.toFormat} for details.\n * @param {Object} opts - options\n * @param {string} [opts.separator = ' – '] - a separator to place between the start and end representations\n * @return {string}\n */\n toFormat(dateFormat, { separator = \" – \" } = {}) {\n if (!this.isValid) return INVALID;\n return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`;\n }\n\n /**\n * Return a Duration representing the time spanned by this interval.\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }\n * @return {Duration}\n */\n toDuration(unit, opts) {\n if (!this.isValid) {\n return Duration.invalid(this.invalidReason);\n }\n return this.e.diff(this.s, unit, opts);\n }\n\n /**\n * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes\n * @param {function} mapFn\n * @return {Interval}\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))\n */\n mapEndpoints(mapFn) {\n return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));\n }\n}\n","import DateTime from \"./datetime.js\";\nimport Settings from \"./settings.js\";\nimport Locale from \"./impl/locale.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\n\nimport { hasFormatToParts, hasIntl, hasRelative } from \"./impl/util.js\";\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\nexport default class Info {\n /**\n * Return whether the specified zone contains a DST.\n * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n * @return {boolean}\n */\n static hasDST(zone = Settings.defaultZone) {\n const proto = DateTime.local()\n .setZone(zone)\n .set({ month: 12 });\n\n return !zone.universal && proto.offset !== proto.set({ month: 6 }).offset;\n }\n\n /**\n * Return whether the specified zone is a valid IANA specifier.\n * @param {string} zone - Zone to check\n * @return {boolean}\n */\n static isValidIANAZone(zone) {\n return IANAZone.isValidSpecifier(zone) && IANAZone.isValidZone(zone);\n }\n\n /**\n * Converts the input into a {@link Zone} instance.\n *\n * * If `input` is already a Zone instance, it is returned unchanged.\n * * If `input` is a string containing a valid time zone name, a Zone instance\n * with that name is returned.\n * * If `input` is a string that doesn't refer to a known time zone, a Zone\n * instance with {@link Zone.isValid} == false is returned.\n * * If `input is a number, a Zone instance with the specified fixed offset\n * in minutes is returned.\n * * If `input` is `null` or `undefined`, the default zone is returned.\n * @param {string|Zone|number} [input] - the value to be converted\n * @return {Zone}\n */\n static normalizeZone(input) {\n return normalizeZone(input, Settings.defaultZone);\n }\n\n /**\n * Return an array of standalone month names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @example Info.months()[0] //=> 'January'\n * @example Info.months('short')[0] //=> 'Jan'\n * @example Info.months('numeric')[0] //=> '1'\n * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'\n * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'\n * @return {[string]}\n */\n static months(\n length = \"long\",\n { locale = null, numberingSystem = null, outputCalendar = \"gregory\" } = {}\n ) {\n return Locale.create(locale, numberingSystem, outputCalendar).months(length);\n }\n\n /**\n * Return an array of format month names.\n * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n * changes the string.\n * See {@link months}\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @return {[string]}\n */\n static monthsFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, outputCalendar = \"gregory\" } = {}\n ) {\n return Locale.create(locale, numberingSystem, outputCalendar).months(length, true);\n }\n\n /**\n * Return an array of standalone week names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @example Info.weekdays()[0] //=> 'Monday'\n * @example Info.weekdays('short')[0] //=> 'Mon'\n * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n * @return {[string]}\n */\n static weekdays(length = \"long\", { locale = null, numberingSystem = null } = {}) {\n return Locale.create(locale, numberingSystem, null).weekdays(length);\n }\n\n /**\n * Return an array of format week names.\n * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n * changes the string.\n * See {@link weekdays}\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale=null] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @return {[string]}\n */\n static weekdaysFormat(length = \"long\", { locale = null, numberingSystem = null } = {}) {\n return Locale.create(locale, numberingSystem, null).weekdays(length, true);\n }\n\n /**\n * Return an array of meridiems.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n * @return {[string]}\n */\n static meridiems({ locale = null } = {}) {\n return Locale.create(locale).meridiems();\n }\n\n /**\n * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.eras() //=> [ 'BC', 'AD' ]\n * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n * @return {[string]}\n */\n static eras(length = \"short\", { locale = null } = {}) {\n return Locale.create(locale, null, \"gregory\").eras(length);\n }\n\n /**\n * Return the set of available features in this environment.\n * Some features of Luxon are not available in all environments. For example, on older browsers, timezone support is not available. Use this function to figure out if that's the case.\n * Keys:\n * * `zones`: whether this environment supports IANA timezones\n * * `intlTokens`: whether this environment supports internationalized token-based formatting/parsing\n * * `intl`: whether this environment supports general internationalization\n * * `relative`: whether this environment supports relative time formatting\n * @example Info.features() //=> { intl: true, intlTokens: false, zones: true, relative: false }\n * @return {Object}\n */\n static features() {\n let intl = false,\n intlTokens = false,\n zones = false,\n relative = false;\n\n if (hasIntl()) {\n intl = true;\n intlTokens = hasFormatToParts();\n relative = hasRelative();\n\n try {\n zones =\n new Intl.DateTimeFormat(\"en\", { timeZone: \"America/New_York\" }).resolvedOptions()\n .timeZone === \"America/New_York\";\n } catch (e) {\n zones = false;\n }\n }\n\n return { intl, intlTokens, zones, relative };\n }\n}\n","import Duration from \"../duration.js\";\n\nfunction dayDiff(earlier, later) {\n const utcDayStart = dt =>\n dt\n .toUTC(0, { keepLocalTime: true })\n .startOf(\"day\")\n .valueOf(),\n ms = utcDayStart(later) - utcDayStart(earlier);\n return Math.floor(Duration.fromMillis(ms).as(\"days\"));\n}\n\nfunction highOrderDiffs(cursor, later, units) {\n const differs = [\n [\"years\", (a, b) => b.year - a.year],\n [\"months\", (a, b) => b.month - a.month + (b.year - a.year) * 12],\n [\n \"weeks\",\n (a, b) => {\n const days = dayDiff(a, b);\n return (days - (days % 7)) / 7;\n }\n ],\n [\"days\", dayDiff]\n ];\n\n const results = {};\n let lowestOrder, highWater;\n\n for (const [unit, differ] of differs) {\n if (units.indexOf(unit) >= 0) {\n lowestOrder = unit;\n\n let delta = differ(cursor, later);\n highWater = cursor.plus({ [unit]: delta });\n\n if (highWater > later) {\n cursor = cursor.plus({ [unit]: delta - 1 });\n delta -= 1;\n } else {\n cursor = highWater;\n }\n\n results[unit] = delta;\n }\n }\n\n return [cursor, results, highWater, lowestOrder];\n}\n\nexport default function(earlier, later, units, opts) {\n let [cursor, results, highWater, lowestOrder] = highOrderDiffs(earlier, later, units);\n\n const remainingMillis = later - cursor;\n\n const lowerOrderUnits = units.filter(\n u => [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"].indexOf(u) >= 0\n );\n\n if (lowerOrderUnits.length === 0) {\n if (highWater < later) {\n highWater = cursor.plus({ [lowestOrder]: 1 });\n }\n\n if (highWater !== cursor) {\n results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);\n }\n }\n\n const duration = Duration.fromObject(Object.assign(results, opts));\n\n if (lowerOrderUnits.length > 0) {\n return Duration.fromMillis(remainingMillis, opts)\n .shiftTo(...lowerOrderUnits)\n .plus(duration);\n } else {\n return duration;\n }\n}\n","const numberingSystems = {\n arab: \"[\\u0660-\\u0669]\",\n arabext: \"[\\u06F0-\\u06F9]\",\n bali: \"[\\u1B50-\\u1B59]\",\n beng: \"[\\u09E6-\\u09EF]\",\n deva: \"[\\u0966-\\u096F]\",\n fullwide: \"[\\uFF10-\\uFF19]\",\n gujr: \"[\\u0AE6-\\u0AEF]\",\n hanidec: \"[〇|一|二|三|四|五|六|七|八|九]\",\n khmr: \"[\\u17E0-\\u17E9]\",\n knda: \"[\\u0CE6-\\u0CEF]\",\n laoo: \"[\\u0ED0-\\u0ED9]\",\n limb: \"[\\u1946-\\u194F]\",\n mlym: \"[\\u0D66-\\u0D6F]\",\n mong: \"[\\u1810-\\u1819]\",\n mymr: \"[\\u1040-\\u1049]\",\n orya: \"[\\u0B66-\\u0B6F]\",\n tamldec: \"[\\u0BE6-\\u0BEF]\",\n telu: \"[\\u0C66-\\u0C6F]\",\n thai: \"[\\u0E50-\\u0E59]\",\n tibt: \"[\\u0F20-\\u0F29]\",\n latn: \"\\\\d\"\n};\n\nconst numberingSystemsUTF16 = {\n arab: [1632, 1641],\n arabext: [1776, 1785],\n bali: [6992, 7001],\n beng: [2534, 2543],\n deva: [2406, 2415],\n fullwide: [65296, 65303],\n gujr: [2790, 2799],\n khmr: [6112, 6121],\n knda: [3302, 3311],\n laoo: [3792, 3801],\n limb: [6470, 6479],\n mlym: [3430, 3439],\n mong: [6160, 6169],\n mymr: [4160, 4169],\n orya: [2918, 2927],\n tamldec: [3046, 3055],\n telu: [3174, 3183],\n thai: [3664, 3673],\n tibt: [3872, 3881]\n};\n\n// eslint-disable-next-line\nconst hanidecChars = numberingSystems.hanidec.replace(/[\\[|\\]]/g, \"\").split(\"\");\n\nexport function parseDigits(str) {\n let value = parseInt(str, 10);\n if (isNaN(value)) {\n value = \"\";\n for (let i = 0; i < str.length; i++) {\n const code = str.charCodeAt(i);\n\n if (str[i].search(numberingSystems.hanidec) !== -1) {\n value += hanidecChars.indexOf(str[i]);\n } else {\n for (const key in numberingSystemsUTF16) {\n const [min, max] = numberingSystemsUTF16[key];\n if (code >= min && code <= max) {\n value += code - min;\n }\n }\n }\n }\n return parseInt(value, 10);\n } else {\n return value;\n }\n}\n\nexport function digitRegex({ numberingSystem }, append = \"\") {\n return new RegExp(`${numberingSystems[numberingSystem || \"latn\"]}${append}`);\n}\n","import { parseMillis, isUndefined, untruncateYear, signedOffset, hasOwnProperty } from \"./util.js\";\nimport Formatter from \"./formatter.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport DateTime from \"../datetime.js\";\nimport { digitRegex, parseDigits } from \"./digits.js\";\nimport { ConflictingSpecificationError } from \"../errors.js\";\n\nconst MISSING_FTP = \"missing Intl.DateTimeFormat.formatToParts support\";\n\nfunction intUnit(regex, post = i => i) {\n return { regex, deser: ([s]) => post(parseDigits(s)) };\n}\n\nfunction fixListRegex(s) {\n // make dots optional and also make them literal\n return s.replace(/\\./, \"\\\\.?\");\n}\n\nfunction stripInsensitivities(s) {\n return s.replace(/\\./, \"\").toLowerCase();\n}\n\nfunction oneOf(strings, startIndex) {\n if (strings === null) {\n return null;\n } else {\n return {\n regex: RegExp(strings.map(fixListRegex).join(\"|\")),\n deser: ([s]) =>\n strings.findIndex(i => stripInsensitivities(s) === stripInsensitivities(i)) + startIndex\n };\n }\n}\n\nfunction offset(regex, groups) {\n return { regex, deser: ([, h, m]) => signedOffset(h, m), groups };\n}\n\nfunction simple(regex) {\n return { regex, deser: ([s]) => s };\n}\n\nfunction escapeToken(value) {\n // eslint-disable-next-line no-useless-escape\n return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g, \"\\\\$&\");\n}\n\nfunction unitForToken(token, loc) {\n const one = digitRegex(loc),\n two = digitRegex(loc, \"{2}\"),\n three = digitRegex(loc, \"{3}\"),\n four = digitRegex(loc, \"{4}\"),\n six = digitRegex(loc, \"{6}\"),\n oneOrTwo = digitRegex(loc, \"{1,2}\"),\n oneToThree = digitRegex(loc, \"{1,3}\"),\n oneToSix = digitRegex(loc, \"{1,6}\"),\n oneToNine = digitRegex(loc, \"{1,9}\"),\n twoToFour = digitRegex(loc, \"{2,4}\"),\n fourToSix = digitRegex(loc, \"{4,6}\"),\n literal = t => ({ regex: RegExp(escapeToken(t.val)), deser: ([s]) => s, literal: true }),\n unitate = t => {\n if (token.literal) {\n return literal(t);\n }\n switch (t.val) {\n // era\n case \"G\":\n return oneOf(loc.eras(\"short\", false), 0);\n case \"GG\":\n return oneOf(loc.eras(\"long\", false), 0);\n // years\n case \"y\":\n return intUnit(oneToSix);\n case \"yy\":\n return intUnit(twoToFour, untruncateYear);\n case \"yyyy\":\n return intUnit(four);\n case \"yyyyy\":\n return intUnit(fourToSix);\n case \"yyyyyy\":\n return intUnit(six);\n // months\n case \"M\":\n return intUnit(oneOrTwo);\n case \"MM\":\n return intUnit(two);\n case \"MMM\":\n return oneOf(loc.months(\"short\", true, false), 1);\n case \"MMMM\":\n return oneOf(loc.months(\"long\", true, false), 1);\n case \"L\":\n return intUnit(oneOrTwo);\n case \"LL\":\n return intUnit(two);\n case \"LLL\":\n return oneOf(loc.months(\"short\", false, false), 1);\n case \"LLLL\":\n return oneOf(loc.months(\"long\", false, false), 1);\n // dates\n case \"d\":\n return intUnit(oneOrTwo);\n case \"dd\":\n return intUnit(two);\n // ordinals\n case \"o\":\n return intUnit(oneToThree);\n case \"ooo\":\n return intUnit(three);\n // time\n case \"HH\":\n return intUnit(two);\n case \"H\":\n return intUnit(oneOrTwo);\n case \"hh\":\n return intUnit(two);\n case \"h\":\n return intUnit(oneOrTwo);\n case \"mm\":\n return intUnit(two);\n case \"m\":\n return intUnit(oneOrTwo);\n case \"q\":\n return intUnit(oneOrTwo);\n case \"qq\":\n return intUnit(two);\n case \"s\":\n return intUnit(oneOrTwo);\n case \"ss\":\n return intUnit(two);\n case \"S\":\n return intUnit(oneToThree);\n case \"SSS\":\n return intUnit(three);\n case \"u\":\n return simple(oneToNine);\n // meridiem\n case \"a\":\n return oneOf(loc.meridiems(), 0);\n // weekYear (k)\n case \"kkkk\":\n return intUnit(four);\n case \"kk\":\n return intUnit(twoToFour, untruncateYear);\n // weekNumber (W)\n case \"W\":\n return intUnit(oneOrTwo);\n case \"WW\":\n return intUnit(two);\n // weekdays\n case \"E\":\n case \"c\":\n return intUnit(one);\n case \"EEE\":\n return oneOf(loc.weekdays(\"short\", false, false), 1);\n case \"EEEE\":\n return oneOf(loc.weekdays(\"long\", false, false), 1);\n case \"ccc\":\n return oneOf(loc.weekdays(\"short\", true, false), 1);\n case \"cccc\":\n return oneOf(loc.weekdays(\"long\", true, false), 1);\n // offset/zone\n case \"Z\":\n case \"ZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2);\n case \"ZZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2);\n // we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing\n // because we don't have any way to figure out what they are\n case \"z\":\n return simple(/[a-z_+-/]{1,256}?/i);\n default:\n return literal(t);\n }\n };\n\n const unit = unitate(token) || {\n invalidReason: MISSING_FTP\n };\n\n unit.token = token;\n\n return unit;\n}\n\nconst partTypeStyleToTokenVal = {\n year: {\n \"2-digit\": \"yy\",\n numeric: \"yyyyy\"\n },\n month: {\n numeric: \"M\",\n \"2-digit\": \"MM\",\n short: \"MMM\",\n long: \"MMMM\"\n },\n day: {\n numeric: \"d\",\n \"2-digit\": \"dd\"\n },\n weekday: {\n short: \"EEE\",\n long: \"EEEE\"\n },\n dayperiod: \"a\",\n dayPeriod: \"a\",\n hour: {\n numeric: \"h\",\n \"2-digit\": \"hh\"\n },\n minute: {\n numeric: \"m\",\n \"2-digit\": \"mm\"\n },\n second: {\n numeric: \"s\",\n \"2-digit\": \"ss\"\n }\n};\n\nfunction tokenForPart(part, locale, formatOpts) {\n const { type, value } = part;\n\n if (type === \"literal\") {\n return {\n literal: true,\n val: value\n };\n }\n\n const style = formatOpts[type];\n\n let val = partTypeStyleToTokenVal[type];\n if (typeof val === \"object\") {\n val = val[style];\n }\n\n if (val) {\n return {\n literal: false,\n val\n };\n }\n\n return undefined;\n}\n\nfunction buildRegex(units) {\n const re = units.map(u => u.regex).reduce((f, r) => `${f}(${r.source})`, \"\");\n return [`^${re}$`, units];\n}\n\nfunction match(input, regex, handlers) {\n const matches = input.match(regex);\n\n if (matches) {\n const all = {};\n let matchIndex = 1;\n for (const i in handlers) {\n if (hasOwnProperty(handlers, i)) {\n const h = handlers[i],\n groups = h.groups ? h.groups + 1 : 1;\n if (!h.literal && h.token) {\n all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));\n }\n matchIndex += groups;\n }\n }\n return [matches, all];\n } else {\n return [matches, {}];\n }\n}\n\nfunction dateTimeFromMatches(matches) {\n const toField = token => {\n switch (token) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n case \"H\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"o\":\n return \"ordinal\";\n case \"L\":\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n case \"E\":\n case \"c\":\n return \"weekday\";\n case \"W\":\n return \"weekNumber\";\n case \"k\":\n return \"weekYear\";\n case \"q\":\n return \"quarter\";\n default:\n return null;\n }\n };\n\n let zone;\n if (!isUndefined(matches.Z)) {\n zone = new FixedOffsetZone(matches.Z);\n } else if (!isUndefined(matches.z)) {\n zone = IANAZone.create(matches.z);\n } else {\n zone = null;\n }\n\n if (!isUndefined(matches.q)) {\n matches.M = (matches.q - 1) * 3 + 1;\n }\n\n if (!isUndefined(matches.h)) {\n if (matches.h < 12 && matches.a === 1) {\n matches.h += 12;\n } else if (matches.h === 12 && matches.a === 0) {\n matches.h = 0;\n }\n }\n\n if (matches.G === 0 && matches.y) {\n matches.y = -matches.y;\n }\n\n if (!isUndefined(matches.u)) {\n matches.S = parseMillis(matches.u);\n }\n\n const vals = Object.keys(matches).reduce((r, k) => {\n const f = toField(k);\n if (f) {\n r[f] = matches[k];\n }\n\n return r;\n }, {});\n\n return [vals, zone];\n}\n\nlet dummyDateTimeCache = null;\n\nfunction getDummyDateTime() {\n if (!dummyDateTimeCache) {\n dummyDateTimeCache = DateTime.fromMillis(1555555555555);\n }\n\n return dummyDateTimeCache;\n}\n\nfunction maybeExpandMacroToken(token, locale) {\n if (token.literal) {\n return token;\n }\n\n const formatOpts = Formatter.macroTokenToFormatOpts(token.val);\n\n if (!formatOpts) {\n return token;\n }\n\n const formatter = Formatter.create(locale, formatOpts);\n const parts = formatter.formatDateTimeParts(getDummyDateTime());\n\n const tokens = parts.map(p => tokenForPart(p, locale, formatOpts));\n\n if (tokens.includes(undefined)) {\n return token;\n }\n\n return tokens;\n}\n\nfunction expandMacroTokens(tokens, locale) {\n return Array.prototype.concat(...tokens.map(t => maybeExpandMacroToken(t, locale)));\n}\n\n/**\n * @private\n */\n\nexport function explainFromTokens(locale, input, format) {\n const tokens = expandMacroTokens(Formatter.parseFormat(format), locale),\n units = tokens.map(t => unitForToken(t, locale)),\n disqualifyingUnit = units.find(t => t.invalidReason);\n\n if (disqualifyingUnit) {\n return { input, tokens, invalidReason: disqualifyingUnit.invalidReason };\n } else {\n const [regexString, handlers] = buildRegex(units),\n regex = RegExp(regexString, \"i\"),\n [rawMatches, matches] = match(input, regex, handlers),\n [result, zone] = matches ? dateTimeFromMatches(matches) : [null, null];\n if (hasOwnProperty(matches, \"a\") && hasOwnProperty(matches, \"H\")) {\n throw new ConflictingSpecificationError(\n \"Can't include meridiem when specifying 24-hour format\"\n );\n }\n return { input, tokens, regex, rawMatches, matches, result, zone };\n }\n}\n\nexport function parseFromTokens(locale, input, format) {\n const { result, zone, invalidReason } = explainFromTokens(locale, input, format);\n return [result, zone, invalidReason];\n}\n","import {\n integerBetween,\n isLeapYear,\n timeObject,\n daysInYear,\n daysInMonth,\n weeksInWeekYear,\n isInteger\n} from \"./util.js\";\nimport Invalid from \"./invalid.js\";\n\nconst nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],\n leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];\n\nfunction unitOutOfRange(unit, value) {\n return new Invalid(\n \"unit out of range\",\n `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`\n );\n}\n\nfunction dayOfWeek(year, month, day) {\n const js = new Date(Date.UTC(year, month - 1, day)).getUTCDay();\n return js === 0 ? 7 : js;\n}\n\nfunction computeOrdinal(year, month, day) {\n return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];\n}\n\nfunction uncomputeOrdinal(year, ordinal) {\n const table = isLeapYear(year) ? leapLadder : nonLeapLadder,\n month0 = table.findIndex(i => i < ordinal),\n day = ordinal - table[month0];\n return { month: month0 + 1, day };\n}\n\n/**\n * @private\n */\n\nexport function gregorianToWeek(gregObj) {\n const { year, month, day } = gregObj,\n ordinal = computeOrdinal(year, month, day),\n weekday = dayOfWeek(year, month, day);\n\n let weekNumber = Math.floor((ordinal - weekday + 10) / 7),\n weekYear;\n\n if (weekNumber < 1) {\n weekYear = year - 1;\n weekNumber = weeksInWeekYear(weekYear);\n } else if (weekNumber > weeksInWeekYear(year)) {\n weekYear = year + 1;\n weekNumber = 1;\n } else {\n weekYear = year;\n }\n\n return Object.assign({ weekYear, weekNumber, weekday }, timeObject(gregObj));\n}\n\nexport function weekToGregorian(weekData) {\n const { weekYear, weekNumber, weekday } = weekData,\n weekdayOfJan4 = dayOfWeek(weekYear, 1, 4),\n yearInDays = daysInYear(weekYear);\n\n let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 3,\n year;\n\n if (ordinal < 1) {\n year = weekYear - 1;\n ordinal += daysInYear(year);\n } else if (ordinal > yearInDays) {\n year = weekYear + 1;\n ordinal -= daysInYear(weekYear);\n } else {\n year = weekYear;\n }\n\n const { month, day } = uncomputeOrdinal(year, ordinal);\n\n return Object.assign({ year, month, day }, timeObject(weekData));\n}\n\nexport function gregorianToOrdinal(gregData) {\n const { year, month, day } = gregData,\n ordinal = computeOrdinal(year, month, day);\n\n return Object.assign({ year, ordinal }, timeObject(gregData));\n}\n\nexport function ordinalToGregorian(ordinalData) {\n const { year, ordinal } = ordinalData,\n { month, day } = uncomputeOrdinal(year, ordinal);\n\n return Object.assign({ year, month, day }, timeObject(ordinalData));\n}\n\nexport function hasInvalidWeekData(obj) {\n const validYear = isInteger(obj.weekYear),\n validWeek = integerBetween(obj.weekNumber, 1, weeksInWeekYear(obj.weekYear)),\n validWeekday = integerBetween(obj.weekday, 1, 7);\n\n if (!validYear) {\n return unitOutOfRange(\"weekYear\", obj.weekYear);\n } else if (!validWeek) {\n return unitOutOfRange(\"week\", obj.week);\n } else if (!validWeekday) {\n return unitOutOfRange(\"weekday\", obj.weekday);\n } else return false;\n}\n\nexport function hasInvalidOrdinalData(obj) {\n const validYear = isInteger(obj.year),\n validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validOrdinal) {\n return unitOutOfRange(\"ordinal\", obj.ordinal);\n } else return false;\n}\n\nexport function hasInvalidGregorianData(obj) {\n const validYear = isInteger(obj.year),\n validMonth = integerBetween(obj.month, 1, 12),\n validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validMonth) {\n return unitOutOfRange(\"month\", obj.month);\n } else if (!validDay) {\n return unitOutOfRange(\"day\", obj.day);\n } else return false;\n}\n\nexport function hasInvalidTimeData(obj) {\n const { hour, minute, second, millisecond } = obj;\n const validHour =\n integerBetween(hour, 0, 23) ||\n (hour === 24 && minute === 0 && second === 0 && millisecond === 0),\n validMinute = integerBetween(minute, 0, 59),\n validSecond = integerBetween(second, 0, 59),\n validMillisecond = integerBetween(millisecond, 0, 999);\n\n if (!validHour) {\n return unitOutOfRange(\"hour\", hour);\n } else if (!validMinute) {\n return unitOutOfRange(\"minute\", minute);\n } else if (!validSecond) {\n return unitOutOfRange(\"second\", second);\n } else if (!validMillisecond) {\n return unitOutOfRange(\"millisecond\", millisecond);\n } else return false;\n}\n","import Duration, { friendlyDuration } from \"./duration.js\";\nimport Interval from \"./interval.js\";\nimport Settings from \"./settings.js\";\nimport Info from \"./info.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport FixedOffsetZone from \"./zones/fixedOffsetZone.js\";\nimport Locale from \"./impl/locale.js\";\nimport {\n isUndefined,\n maybeArray,\n isDate,\n isNumber,\n bestBy,\n daysInMonth,\n daysInYear,\n isLeapYear,\n weeksInWeekYear,\n normalizeObject,\n roundTo,\n objToLocalTS\n} from \"./impl/util.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\nimport diff from \"./impl/diff.js\";\nimport { parseRFC2822Date, parseISODate, parseHTTPDate, parseSQL } from \"./impl/regexParser.js\";\nimport { parseFromTokens, explainFromTokens } from \"./impl/tokenParser.js\";\nimport {\n gregorianToWeek,\n weekToGregorian,\n gregorianToOrdinal,\n ordinalToGregorian,\n hasInvalidGregorianData,\n hasInvalidWeekData,\n hasInvalidOrdinalData,\n hasInvalidTimeData\n} from \"./impl/conversions.js\";\nimport * as Formats from \"./impl/formats.js\";\nimport {\n InvalidArgumentError,\n ConflictingSpecificationError,\n InvalidUnitError,\n InvalidDateTimeError\n} from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\n\nconst INVALID = \"Invalid DateTime\";\nconst MAX_DATE = 8.64e15;\n\nfunction unsupportedZone(zone) {\n return new Invalid(\"unsupported zone\", `the zone \"${zone.name}\" is not supported`);\n}\n\n// we cache week data on the DT object and this intermediates the cache\nfunction possiblyCachedWeekData(dt) {\n if (dt.weekData === null) {\n dt.weekData = gregorianToWeek(dt.c);\n }\n return dt.weekData;\n}\n\n// clone really means, \"make a new object with these modifications\". all \"setters\" really use this\n// to create a new object while only changing some of the properties\nfunction clone(inst, alts) {\n const current = {\n ts: inst.ts,\n zone: inst.zone,\n c: inst.c,\n o: inst.o,\n loc: inst.loc,\n invalid: inst.invalid\n };\n return new DateTime(Object.assign({}, current, alts, { old: current }));\n}\n\n// find the right offset a given local time. The o input is our guess, which determines which\n// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)\nfunction fixOffset(localTS, o, tz) {\n // Our UTC time is just a guess because our offset is just a guess\n let utcGuess = localTS - o * 60 * 1000;\n\n // Test whether the zone matches the offset for this ts\n const o2 = tz.offset(utcGuess);\n\n // If so, offset didn't change and we're done\n if (o === o2) {\n return [utcGuess, o];\n }\n\n // If not, change the ts by the difference in the offset\n utcGuess -= (o2 - o) * 60 * 1000;\n\n // If that gives us the local time we want, we're done\n const o3 = tz.offset(utcGuess);\n if (o2 === o3) {\n return [utcGuess, o2];\n }\n\n // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time\n return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];\n}\n\n// convert an epoch timestamp into a calendar object with the given offset\nfunction tsToObj(ts, offset) {\n ts += offset * 60 * 1000;\n\n const d = new Date(ts);\n\n return {\n year: d.getUTCFullYear(),\n month: d.getUTCMonth() + 1,\n day: d.getUTCDate(),\n hour: d.getUTCHours(),\n minute: d.getUTCMinutes(),\n second: d.getUTCSeconds(),\n millisecond: d.getUTCMilliseconds()\n };\n}\n\n// convert a calendar object to a epoch timestamp\nfunction objToTS(obj, offset, zone) {\n return fixOffset(objToLocalTS(obj), offset, zone);\n}\n\n// create a new DT instance by adding a duration, adjusting for DSTs\nfunction adjustTime(inst, dur) {\n const keys = Object.keys(dur.values);\n if (keys.indexOf(\"milliseconds\") === -1) {\n keys.push(\"milliseconds\");\n }\n\n dur = dur.shiftTo(...keys);\n\n const oPre = inst.o,\n year = inst.c.year + dur.years,\n month = inst.c.month + dur.months + dur.quarters * 3,\n c = Object.assign({}, inst.c, {\n year,\n month,\n day: Math.min(inst.c.day, daysInMonth(year, month)) + dur.days + dur.weeks * 7\n }),\n millisToAdd = Duration.fromObject({\n hours: dur.hours,\n minutes: dur.minutes,\n seconds: dur.seconds,\n milliseconds: dur.milliseconds\n }).as(\"milliseconds\"),\n localTS = objToLocalTS(c);\n\n let [ts, o] = fixOffset(localTS, oPre, inst.zone);\n\n if (millisToAdd !== 0) {\n ts += millisToAdd;\n // that could have changed the offset by going over a DST, but we want to keep the ts the same\n o = inst.zone.offset(ts);\n }\n\n return { ts, o };\n}\n\n// helper useful in turning the results of parsing into real dates\n// by handling the zone options\nfunction parseDataToDateTime(parsed, parsedZone, opts, format, text) {\n const { setZone, zone } = opts;\n if (parsed && Object.keys(parsed).length !== 0) {\n const interpretationZone = parsedZone || zone,\n inst = DateTime.fromObject(\n Object.assign(parsed, opts, {\n zone: interpretationZone,\n // setZone is a valid option in the calling methods, but not in fromObject\n setZone: undefined\n })\n );\n return setZone ? inst : inst.setZone(zone);\n } else {\n return DateTime.invalid(\n new Invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ${format}`)\n );\n }\n}\n\n// if you want to output a technical format (e.g. RFC 2822), this helper\n// helps handle the details\nfunction toTechFormat(dt, format, allowZ = true) {\n return dt.isValid\n ? Formatter.create(Locale.create(\"en-US\"), {\n allowZ,\n forceSimple: true\n }).formatDateTimeFromString(dt, format)\n : null;\n}\n\n// technical time formats (e.g. the time part of ISO 8601), take some options\n// and this commonizes their handling\nfunction toTechTimeFormat(\n dt,\n {\n suppressSeconds = false,\n suppressMilliseconds = false,\n includeOffset,\n includeZone = false,\n spaceZone = false,\n format = \"extended\"\n }\n) {\n let fmt = format === \"basic\" ? \"HHmm\" : \"HH:mm\";\n\n if (!suppressSeconds || dt.second !== 0 || dt.millisecond !== 0) {\n fmt += format === \"basic\" ? \"ss\" : \":ss\";\n if (!suppressMilliseconds || dt.millisecond !== 0) {\n fmt += \".SSS\";\n }\n }\n\n if ((includeZone || includeOffset) && spaceZone) {\n fmt += \" \";\n }\n\n if (includeZone) {\n fmt += \"z\";\n } else if (includeOffset) {\n fmt += format === \"basic\" ? \"ZZZ\" : \"ZZ\";\n }\n\n return toTechFormat(dt, fmt);\n}\n\n// defaults for unspecified units in the supported calendars\nconst defaultUnitValues = {\n month: 1,\n day: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n },\n defaultWeekUnitValues = {\n weekNumber: 1,\n weekday: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n },\n defaultOrdinalUnitValues = {\n ordinal: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n };\n\n// Units in the supported calendars, sorted by bigness\nconst orderedUnits = [\"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n orderedWeekUnits = [\n \"weekYear\",\n \"weekNumber\",\n \"weekday\",\n \"hour\",\n \"minute\",\n \"second\",\n \"millisecond\"\n ],\n orderedOrdinalUnits = [\"year\", \"ordinal\", \"hour\", \"minute\", \"second\", \"millisecond\"];\n\n// standardize case and plurality in units\nfunction normalizeUnit(unit) {\n const normalized = {\n year: \"year\",\n years: \"year\",\n month: \"month\",\n months: \"month\",\n day: \"day\",\n days: \"day\",\n hour: \"hour\",\n hours: \"hour\",\n minute: \"minute\",\n minutes: \"minute\",\n quarter: \"quarter\",\n quarters: \"quarter\",\n second: \"second\",\n seconds: \"second\",\n millisecond: \"millisecond\",\n milliseconds: \"millisecond\",\n weekday: \"weekday\",\n weekdays: \"weekday\",\n weeknumber: \"weekNumber\",\n weeksnumber: \"weekNumber\",\n weeknumbers: \"weekNumber\",\n weekyear: \"weekYear\",\n weekyears: \"weekYear\",\n ordinal: \"ordinal\"\n }[unit.toLowerCase()];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n}\n\n// this is a dumbed down version of fromObject() that runs about 60% faster\n// but doesn't do any validation, makes a bunch of assumptions about what units\n// are present, and so on.\nfunction quickDT(obj, zone) {\n // assume we have the higher-order units\n for (const u of orderedUnits) {\n if (isUndefined(obj[u])) {\n obj[u] = defaultUnitValues[u];\n }\n }\n\n const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n const tsNow = Settings.now(),\n offsetProvis = zone.offset(tsNow),\n [ts, o] = objToTS(obj, offsetProvis, zone);\n\n return new DateTime({\n ts,\n zone,\n o\n });\n}\n\nfunction diffRelative(start, end, opts) {\n const round = isUndefined(opts.round) ? true : opts.round,\n format = (c, unit) => {\n c = roundTo(c, round || opts.calendary ? 0 : 2, true);\n const formatter = end.loc.clone(opts).relFormatter(opts);\n return formatter.format(c, unit);\n },\n differ = unit => {\n if (opts.calendary) {\n if (!end.hasSame(start, unit)) {\n return end\n .startOf(unit)\n .diff(start.startOf(unit), unit)\n .get(unit);\n } else return 0;\n } else {\n return end.diff(start, unit).get(unit);\n }\n };\n\n if (opts.unit) {\n return format(differ(opts.unit), opts.unit);\n }\n\n for (const unit of opts.units) {\n const count = differ(unit);\n if (Math.abs(count) >= 1) {\n return format(count, unit);\n }\n }\n return format(0, opts.units[opts.units.length - 1]);\n}\n\n/**\n * A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.\n *\n * A DateTime comprises of:\n * * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.\n * * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).\n * * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.\n *\n * Here is a brief overview of the most commonly used functionality it provides:\n *\n * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link local}, {@link utc}, and (most flexibly) {@link fromObject}. To create one from a standard string format, use {@link fromISO}, {@link fromHTTP}, and {@link fromRFC2822}. To create one from a custom string format, use {@link fromFormat}. To create one from a native JS date, use {@link fromJSDate}.\n * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link toObject}), use the {@link year}, {@link month},\n * {@link day}, {@link hour}, {@link minute}, {@link second}, {@link millisecond} accessors.\n * * **Week calendar**: For ISO week calendar attributes, see the {@link weekYear}, {@link weekNumber}, and {@link weekday} accessors.\n * * **Configuration** See the {@link locale} and {@link numberingSystem} accessors.\n * * **Transformation**: To transform the DateTime into other DateTimes, use {@link set}, {@link reconfigure}, {@link setZone}, {@link setLocale}, {@link plus}, {@link minus}, {@link endOf}, {@link startOf}, {@link toUTC}, and {@link toLocal}.\n * * **Output**: To convert the DateTime to other representations, use the {@link toRelative}, {@link toRelativeCalendar}, {@link toJSON}, {@link toISO}, {@link toHTTP}, {@link toObject}, {@link toRFC2822}, {@link toString}, {@link toLocaleString}, {@link toFormat}, {@link toMillis} and {@link toJSDate}.\n *\n * There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.\n */\nexport default class DateTime {\n /**\n * @access private\n */\n constructor(config) {\n const zone = config.zone || Settings.defaultZone;\n\n let invalid =\n config.invalid ||\n (Number.isNaN(config.ts) ? new Invalid(\"invalid input\") : null) ||\n (!zone.isValid ? unsupportedZone(zone) : null);\n /**\n * @access private\n */\n this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;\n\n let c = null,\n o = null;\n if (!invalid) {\n const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);\n\n if (unchanged) {\n [c, o] = [config.old.c, config.old.o];\n } else {\n const ot = zone.offset(this.ts);\n c = tsToObj(this.ts, ot);\n invalid = Number.isNaN(c.year) ? new Invalid(\"invalid input\") : null;\n c = invalid ? null : c;\n o = invalid ? null : ot;\n }\n }\n\n /**\n * @access private\n */\n this._zone = zone;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.invalid = invalid;\n /**\n * @access private\n */\n this.weekData = null;\n /**\n * @access private\n */\n this.c = c;\n /**\n * @access private\n */\n this.o = o;\n /**\n * @access private\n */\n this.isLuxonDateTime = true;\n }\n\n // CONSTRUCT\n\n /**\n * Create a local DateTime\n * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.local() //~> now\n * @example DateTime.local(2017) //~> 2017-01-01T00:00:00\n * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00\n * @example DateTime.local(2017, 3, 12) //~> 2017-03-12T00:00:00\n * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00\n * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00\n * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10\n * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765\n * @return {DateTime}\n */\n static local(year, month, day, hour, minute, second, millisecond) {\n if (isUndefined(year)) {\n return new DateTime({ ts: Settings.now() });\n } else {\n return quickDT(\n {\n year,\n month,\n day,\n hour,\n minute,\n second,\n millisecond\n },\n Settings.defaultZone\n );\n }\n }\n\n /**\n * Create a DateTime in UTC\n * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.utc() //~> now\n * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z\n * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z\n * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765Z\n * @return {DateTime}\n */\n static utc(year, month, day, hour, minute, second, millisecond) {\n if (isUndefined(year)) {\n return new DateTime({\n ts: Settings.now(),\n zone: FixedOffsetZone.utcInstance\n });\n } else {\n return quickDT(\n {\n year,\n month,\n day,\n hour,\n minute,\n second,\n millisecond\n },\n FixedOffsetZone.utcInstance\n );\n }\n }\n\n /**\n * Create a DateTime from a Javascript Date object. Uses the default zone.\n * @param {Date} date - a Javascript Date object\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @return {DateTime}\n */\n static fromJSDate(date, options = {}) {\n const ts = isDate(date) ? date.valueOf() : NaN;\n if (Number.isNaN(ts)) {\n return DateTime.invalid(\"invalid input\");\n }\n\n const zoneToUse = normalizeZone(options.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n return new DateTime({\n ts: ts,\n zone: zoneToUse,\n loc: Locale.fromObject(options)\n });\n }\n\n /**\n * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} milliseconds - a number of milliseconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromMillis(milliseconds, options = {}) {\n if (!isNumber(milliseconds)) {\n throw new InvalidArgumentError(\n `fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`\n );\n } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {\n // this isn't perfect because because we can still end up out of range because of additional shifting, but it's a start\n return DateTime.invalid(\"Timestamp out of range\");\n } else {\n return new DateTime({\n ts: milliseconds,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options)\n });\n }\n }\n\n /**\n * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} seconds - a number of seconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromSeconds(seconds, options = {}) {\n if (!isNumber(seconds)) {\n throw new InvalidArgumentError(\"fromSeconds requires a numerical input\");\n } else {\n return new DateTime({\n ts: seconds * 1000,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options)\n });\n }\n }\n\n /**\n * Create a DateTime from a Javascript object with keys like 'year' and 'hour' with reasonable defaults.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.year - a year, such as 1987\n * @param {number} obj.month - a month, 1-12\n * @param {number} obj.day - a day of the month, 1-31, depending on the month\n * @param {number} obj.ordinal - day of the year, 1-365 or 366\n * @param {number} obj.weekYear - an ISO week year\n * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year\n * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday\n * @param {number} obj.hour - hour of the day, 0-23\n * @param {number} obj.minute - minute of the hour, 0-59\n * @param {number} obj.second - second of the minute, 0-59\n * @param {number} obj.millisecond - millisecond of the second, 0-999\n * @param {string|Zone} [obj.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()\n * @param {string} [obj.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} obj.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} obj.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'\n * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'utc' }),\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'local' })\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'America/New_York' })\n * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'\n * @return {DateTime}\n */\n static fromObject(obj) {\n const zoneToUse = normalizeZone(obj.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n const tsNow = Settings.now(),\n offsetProvis = zoneToUse.offset(tsNow),\n normalized = normalizeObject(obj, normalizeUnit, [\n \"zone\",\n \"locale\",\n \"outputCalendar\",\n \"numberingSystem\"\n ]),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber,\n loc = Locale.fromObject(obj);\n\n // cases:\n // just a weekday -> this week's instance of that weekday, no worries\n // (gregorian data or ordinal) + (weekYear or weekNumber) -> error\n // (gregorian month or day) + ordinal -> error\n // otherwise just use weeks or ordinals or gregorian, depending on what's specified\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n const useWeekData = definiteWeekDef || (normalized.weekday && !containsGregor);\n\n // configure ourselves to deal with gregorian dates or week stuff\n let units,\n defaultValues,\n objNow = tsToObj(tsNow, offsetProvis);\n if (useWeekData) {\n units = orderedWeekUnits;\n defaultValues = defaultWeekUnitValues;\n objNow = gregorianToWeek(objNow);\n } else if (containsOrdinal) {\n units = orderedOrdinalUnits;\n defaultValues = defaultOrdinalUnitValues;\n objNow = gregorianToOrdinal(objNow);\n } else {\n units = orderedUnits;\n defaultValues = defaultUnitValues;\n }\n\n // set default values for missing stuff\n let foundFirst = false;\n for (const u of units) {\n const v = normalized[u];\n if (!isUndefined(v)) {\n foundFirst = true;\n } else if (foundFirst) {\n normalized[u] = defaultValues[u];\n } else {\n normalized[u] = objNow[u];\n }\n }\n\n // make sure the values we have are in range\n const higherOrderInvalid = useWeekData\n ? hasInvalidWeekData(normalized)\n : containsOrdinal\n ? hasInvalidOrdinalData(normalized)\n : hasInvalidGregorianData(normalized),\n invalid = higherOrderInvalid || hasInvalidTimeData(normalized);\n\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n // compute the actual time\n const gregorian = useWeekData\n ? weekToGregorian(normalized)\n : containsOrdinal\n ? ordinalToGregorian(normalized)\n : normalized,\n [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse),\n inst = new DateTime({\n ts: tsFinal,\n zone: zoneToUse,\n o: offsetFinal,\n loc\n });\n\n // gregorian data + weekday serves only to validate\n if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {\n return DateTime.invalid(\n \"mismatched weekday\",\n `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`\n );\n }\n\n return inst;\n }\n\n /**\n * Create a DateTime from an ISO 8601 string\n * @param {string} text - the ISO string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromISO('2016-05-25T09:08:34.123')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})\n * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})\n * @example DateTime.fromISO('2016-W05-4')\n * @return {DateTime}\n */\n static fromISO(text, opts = {}) {\n const [vals, parsedZone] = parseISODate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"ISO 8601\", text);\n }\n\n /**\n * Create a DateTime from an RFC 2822 string\n * @param {string} text - the RFC 2822 string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')\n * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')\n * @return {DateTime}\n */\n static fromRFC2822(text, opts = {}) {\n const [vals, parsedZone] = parseRFC2822Date(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"RFC 2822\", text);\n }\n\n /**\n * Create a DateTime from an HTTP header date\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @param {string} text - the HTTP header date\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')\n * @return {DateTime}\n */\n static fromHTTP(text, opts = {}) {\n const [vals, parsedZone] = parseHTTPDate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"HTTP\", opts);\n }\n\n /**\n * Create a DateTime from an input string and format string.\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @see https://moment.github.io/luxon/docs/manual/parsing.html#table-of-tokens\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromFormat(text, fmt, opts = {}) {\n if (isUndefined(text) || isUndefined(fmt)) {\n throw new InvalidArgumentError(\"fromFormat requires an input string and a format\");\n }\n\n const { locale = null, numberingSystem = null } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true\n }),\n [vals, parsedZone, invalid] = parseFromTokens(localeToUse, text, fmt);\n if (invalid) {\n return DateTime.invalid(invalid);\n } else {\n return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text);\n }\n }\n\n /**\n * @deprecated use fromFormat instead\n */\n static fromString(text, fmt, opts = {}) {\n return DateTime.fromFormat(text, fmt, opts);\n }\n\n /**\n * Create a DateTime from a SQL date, time, or datetime\n * Defaults to en-US if no locale has been specified, regardless of the system's locale\n * @param {string} text - the string to parse\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @example DateTime.fromSQL('2017-05-15')\n * @example DateTime.fromSQL('2017-05-15 09:12:34')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })\n * @example DateTime.fromSQL('09:12:34.342')\n * @return {DateTime}\n */\n static fromSQL(text, opts = {}) {\n const [vals, parsedZone] = parseSQL(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"SQL\", text);\n }\n\n /**\n * Create an invalid DateTime.\n * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {DateTime}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the DateTime is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDateTimeError(invalid);\n } else {\n return new DateTime({ invalid });\n }\n }\n\n /**\n * Check if an object is a DateTime. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDateTime(o) {\n return (o && o.isLuxonDateTime) || false;\n }\n\n // INFO\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example DateTime.local(2017, 7, 4).get('month'); //=> 7\n * @example DateTime.local(2017, 7, 4).get('day'); //=> 4\n * @return {number}\n */\n get(unit) {\n return this[unit];\n }\n\n /**\n * Returns whether the DateTime is valid. Invalid DateTimes occur when:\n * * The DateTime was created from invalid calendar information, such as the 13th month or February 30\n * * The DateTime was created by an operation on another invalid date\n * @type {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this DateTime is invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime\n *\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime\n *\n * @type {string}\n */\n get outputCalendar() {\n return this.isValid ? this.loc.outputCalendar : null;\n }\n\n /**\n * Get the time zone associated with this DateTime.\n * @type {Zone}\n */\n get zone() {\n return this._zone;\n }\n\n /**\n * Get the name of the time zone.\n * @type {string}\n */\n get zoneName() {\n return this.isValid ? this.zone.name : null;\n }\n\n /**\n * Get the year\n * @example DateTime.local(2017, 5, 25).year //=> 2017\n * @type {number}\n */\n get year() {\n return this.isValid ? this.c.year : NaN;\n }\n\n /**\n * Get the quarter\n * @example DateTime.local(2017, 5, 25).quarter //=> 2\n * @type {number}\n */\n get quarter() {\n return this.isValid ? Math.ceil(this.c.month / 3) : NaN;\n }\n\n /**\n * Get the month (1-12).\n * @example DateTime.local(2017, 5, 25).month //=> 5\n * @type {number}\n */\n get month() {\n return this.isValid ? this.c.month : NaN;\n }\n\n /**\n * Get the day of the month (1-30ish).\n * @example DateTime.local(2017, 5, 25).day //=> 25\n * @type {number}\n */\n get day() {\n return this.isValid ? this.c.day : NaN;\n }\n\n /**\n * Get the hour of the day (0-23).\n * @example DateTime.local(2017, 5, 25, 9).hour //=> 9\n * @type {number}\n */\n get hour() {\n return this.isValid ? this.c.hour : NaN;\n }\n\n /**\n * Get the minute of the hour (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30\n * @type {number}\n */\n get minute() {\n return this.isValid ? this.c.minute : NaN;\n }\n\n /**\n * Get the second of the minute (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52\n * @type {number}\n */\n get second() {\n return this.isValid ? this.c.second : NaN;\n }\n\n /**\n * Get the millisecond of the second (0-999).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654\n * @type {number}\n */\n get millisecond() {\n return this.isValid ? this.c.millisecond : NaN;\n }\n\n /**\n * Get the week year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 11, 31).weekYear //=> 2015\n * @type {number}\n */\n get weekYear() {\n return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the week number of the week year (1-52ish).\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2017, 5, 25).weekNumber //=> 21\n * @type {number}\n */\n get weekNumber() {\n return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the day of the week.\n * 1 is Monday and 7 is Sunday\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 11, 31).weekday //=> 4\n * @type {number}\n */\n get weekday() {\n return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;\n }\n\n /**\n * Get the ordinal (meaning the day of the year)\n * @example DateTime.local(2017, 5, 25).ordinal //=> 145\n * @type {number|DateTime}\n */\n get ordinal() {\n return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;\n }\n\n /**\n * Get the human readable short month name, such as 'Oct'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthShort //=> Oct\n * @type {string}\n */\n get monthShort() {\n return this.isValid ? Info.months(\"short\", { locale: this.locale })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable long month name, such as 'October'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthLong //=> October\n * @type {string}\n */\n get monthLong() {\n return this.isValid ? Info.months(\"long\", { locale: this.locale })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable short weekday, such as 'Mon'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon\n * @type {string}\n */\n get weekdayShort() {\n return this.isValid ? Info.weekdays(\"short\", { locale: this.locale })[this.weekday - 1] : null;\n }\n\n /**\n * Get the human readable long weekday, such as 'Monday'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday\n * @type {string}\n */\n get weekdayLong() {\n return this.isValid ? Info.weekdays(\"long\", { locale: this.locale })[this.weekday - 1] : null;\n }\n\n /**\n * Get the UTC offset of this DateTime in minutes\n * @example DateTime.local().offset //=> -240\n * @example DateTime.utc().offset //=> 0\n * @type {number}\n */\n get offset() {\n return this.isValid ? +this.o : NaN;\n }\n\n /**\n * Get the short human name for the zone's current offset, for example \"EST\" or \"EDT\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameShort() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"short\",\n locale: this.locale\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get the long human name for the zone's current offset, for example \"Eastern Standard Time\" or \"Eastern Daylight Time\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameLong() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"long\",\n locale: this.locale\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get whether this zone's offset ever changes, as in a DST.\n * @type {boolean}\n */\n get isOffsetFixed() {\n return this.isValid ? this.zone.universal : null;\n }\n\n /**\n * Get whether the DateTime is in a DST.\n * @type {boolean}\n */\n get isInDST() {\n if (this.isOffsetFixed) {\n return false;\n } else {\n return (\n this.offset > this.set({ month: 1 }).offset || this.offset > this.set({ month: 5 }).offset\n );\n }\n }\n\n /**\n * Returns true if this DateTime is in a leap year, false otherwise\n * @example DateTime.local(2016).isInLeapYear //=> true\n * @example DateTime.local(2013).isInLeapYear //=> false\n * @type {boolean}\n */\n get isInLeapYear() {\n return isLeapYear(this.year);\n }\n\n /**\n * Returns the number of days in this DateTime's month\n * @example DateTime.local(2016, 2).daysInMonth //=> 29\n * @example DateTime.local(2016, 3).daysInMonth //=> 31\n * @type {number}\n */\n get daysInMonth() {\n return daysInMonth(this.year, this.month);\n }\n\n /**\n * Returns the number of days in this DateTime's year\n * @example DateTime.local(2016).daysInYear //=> 366\n * @example DateTime.local(2013).daysInYear //=> 365\n * @type {number}\n */\n get daysInYear() {\n return this.isValid ? daysInYear(this.year) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2004).weeksInWeekYear //=> 53\n * @example DateTime.local(2013).weeksInWeekYear //=> 52\n * @type {number}\n */\n get weeksInWeekYear() {\n return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;\n }\n\n /**\n * Returns the resolved Intl options for this DateTime.\n * This is useful in understanding the behavior of formatting methods\n * @param {Object} opts - the same options as toLocaleString\n * @return {Object}\n */\n resolvedLocaleOpts(opts = {}) {\n const { locale, numberingSystem, calendar } = Formatter.create(\n this.loc.clone(opts),\n opts\n ).resolvedOptions(this);\n return { locale, numberingSystem, outputCalendar: calendar };\n }\n\n // TRANSFORM\n\n /**\n * \"Set\" the DateTime's zone to UTC. Returns a newly-constructed DateTime.\n *\n * Equivalent to {@link setZone}('utc')\n * @param {number} [offset=0] - optionally, an offset from UTC in minutes\n * @param {Object} [opts={}] - options to pass to `setZone()`\n * @return {DateTime}\n */\n toUTC(offset = 0, opts = {}) {\n return this.setZone(FixedOffsetZone.instance(offset), opts);\n }\n\n /**\n * \"Set\" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.\n *\n * Equivalent to `setZone('local')`\n * @return {DateTime}\n */\n toLocal() {\n return this.setZone(Settings.defaultZone);\n }\n\n /**\n * \"Set\" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.\n *\n * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link plus}. You may wish to use {@link toLocal} and {@link toUTC} which provide simple convenience wrappers for commonly used zones.\n * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link Zone} class.\n * @param {Object} opts - options\n * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.\n * @return {DateTime}\n */\n setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) {\n zone = normalizeZone(zone, Settings.defaultZone);\n if (zone.equals(this.zone)) {\n return this;\n } else if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n } else {\n let newTS = this.ts;\n if (keepLocalTime || keepCalendarTime) {\n const offsetGuess = zone.offset(this.ts);\n const asObj = this.toObject();\n [newTS] = objToTS(asObj, offsetGuess, zone);\n }\n return clone(this, { ts: newTS, zone });\n }\n }\n\n /**\n * \"Set\" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.\n * @param {Object} properties - the properties to set\n * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })\n * @return {DateTime}\n */\n reconfigure({ locale, numberingSystem, outputCalendar } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem, outputCalendar });\n return clone(this, { loc });\n }\n\n /**\n * \"Set\" the locale. Returns a newly-constructed DateTime.\n * Just a convenient alias for reconfigure({ locale })\n * @example DateTime.local(2017, 5, 25).setLocale('en-GB')\n * @return {DateTime}\n */\n setLocale(locale) {\n return this.reconfigure({ locale });\n }\n\n /**\n * \"Set\" the values of specified units. Returns a newly-constructed DateTime.\n * You can only set units with this method; for \"setting\" metadata, see {@link reconfigure} and {@link setZone}.\n * @param {Object} values - a mapping of units to numbers\n * @example dt.set({ year: 2017 })\n * @example dt.set({ hour: 8, minute: 30 })\n * @example dt.set({ weekday: 5 })\n * @example dt.set({ year: 2005, ordinal: 234 })\n * @return {DateTime}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const normalized = normalizeObject(values, normalizeUnit, []),\n settingWeekStuff =\n !isUndefined(normalized.weekYear) ||\n !isUndefined(normalized.weekNumber) ||\n !isUndefined(normalized.weekday);\n\n let mixed;\n if (settingWeekStuff) {\n mixed = weekToGregorian(Object.assign(gregorianToWeek(this.c), normalized));\n } else if (!isUndefined(normalized.ordinal)) {\n mixed = ordinalToGregorian(Object.assign(gregorianToOrdinal(this.c), normalized));\n } else {\n mixed = Object.assign(this.toObject(), normalized);\n\n // if we didn't set the day but we ended up on an overflow date,\n // use the last day of the right month\n if (isUndefined(normalized.day)) {\n mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);\n }\n }\n\n const [ts, o] = objToTS(mixed, this.o, this.zone);\n return clone(this, { ts, o });\n }\n\n /**\n * Add a period of time to this DateTime and return the resulting DateTime\n *\n * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @example DateTime.local().plus(123) //~> in 123 milliseconds\n * @example DateTime.local().plus({ minutes: 15 }) //~> in 15 minutes\n * @example DateTime.local().plus({ days: 1 }) //~> this time tomorrow\n * @example DateTime.local().plus({ days: -1 }) //~> this time yesterday\n * @example DateTime.local().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min\n * @example DateTime.local().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min\n * @return {DateTime}\n */\n plus(duration) {\n if (!this.isValid) return this;\n const dur = friendlyDuration(duration);\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * Subtract a period of time to this DateTime and return the resulting DateTime\n * See {@link plus}\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n @return {DateTime}\n */\n minus(duration) {\n if (!this.isValid) return this;\n const dur = friendlyDuration(duration).negate();\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * \"Set\" this DateTime to the beginning of a unit of time.\n * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'\n * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'\n * @return {DateTime}\n */\n startOf(unit) {\n if (!this.isValid) return this;\n const o = {},\n normalizedUnit = Duration.normalizeUnit(unit);\n switch (normalizedUnit) {\n case \"years\":\n o.month = 1;\n // falls through\n case \"quarters\":\n case \"months\":\n o.day = 1;\n // falls through\n case \"weeks\":\n case \"days\":\n o.hour = 0;\n // falls through\n case \"hours\":\n o.minute = 0;\n // falls through\n case \"minutes\":\n o.second = 0;\n // falls through\n case \"seconds\":\n o.millisecond = 0;\n break;\n case \"milliseconds\":\n break;\n // no default, invalid units throw in normalizeUnit()\n }\n\n if (normalizedUnit === \"weeks\") {\n o.weekday = 1;\n }\n\n if (normalizedUnit === \"quarters\") {\n const q = Math.ceil(this.month / 3);\n o.month = (q - 1) * 3 + 1;\n }\n\n return this.set(o);\n }\n\n /**\n * \"Set\" this DateTime to the end (meaning the last millisecond) of a unit of time\n * @param {string} unit - The unit to go to the end of. Can be 'year', 'month', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'\n * @return {DateTime}\n */\n endOf(unit) {\n return this.isValid\n ? this.plus({ [unit]: 1 })\n .startOf(unit)\n .minus(1)\n : this;\n }\n\n // OUTPUT\n\n /**\n * Returns a string representation of this DateTime formatted according to the specified format string.\n * **You may not want this.** See {@link toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens).\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @see https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens\n * @param {string} fmt - the format string\n * @param {Object} opts - opts to override the configuration options\n * @example DateTime.local().toFormat('yyyy LLL dd') //=> '2017 Apr 22'\n * @example DateTime.local().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'\n * @example DateTime.local().toFormat('yyyy LLL dd', { locale: \"fr\" }) //=> '2017 avr. 22'\n * @example DateTime.local().toFormat(\"HH 'hours and' mm 'minutes'\") //=> '20 hours and 55 minutes'\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.\n * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation\n * of the DateTime in the assigned locale.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param opts {Object} - Intl.DateTimeFormat constructor options and configuration options\n * @example DateTime.local().toLocaleString(); //=> 4/20/2017\n * @example DateTime.local().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'\n * @example DateTime.local().toLocaleString({ locale: 'en-gb' }); //=> '20/04/2017'\n * @example DateTime.local().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'\n * @example DateTime.local().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'\n * @example DateTime.local().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'\n * @example DateTime.local().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'\n * @example DateTime.local().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'\n * @example DateTime.local().toLocaleString({ hour: '2-digit', minute: '2-digit', hour12: false }); //=> '11:32'\n * @return {string}\n */\n toLocaleString(opts = Formats.DATE_SHORT) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), opts).formatDateTime(this)\n : INVALID;\n }\n\n /**\n * Returns an array of format \"parts\", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts\n * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.\n * @example DateTime.local().toLocaleParts(); //=> [\n * //=> { type: 'day', value: '25' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'month', value: '05' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'year', value: '1982' }\n * //=> ]\n */\n toLocaleParts(opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this)\n : [];\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1982, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'\n * @example DateTime.local().toISO() //=> '2017-04-22T20:47:05.335-04:00'\n * @example DateTime.local().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'\n * @example DateTime.local().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'\n * @return {string}\n */\n toISO(opts = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return `${this.toISODate(opts)}T${this.toISOTime(opts)}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's date component\n * @param {Object} opts - options\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'\n * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'\n * @return {string}\n */\n toISODate({ format = \"extended\" } = {}) {\n let fmt = format === \"basic\" ? \"yyyyMMdd\" : \"yyyy-MM-dd\";\n if (this.year > 9999) {\n fmt = \"+\" + fmt;\n }\n\n return toTechFormat(this, fmt);\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's week date\n * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'\n * @return {string}\n */\n toISOWeekDate() {\n return toTechFormat(this, \"kkkk-'W'WW-c\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's time component\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'\n * @return {string}\n */\n toISOTime({\n suppressMilliseconds = false,\n suppressSeconds = false,\n includeOffset = true,\n format = \"extended\"\n } = {}) {\n return toTechTimeFormat(this, {\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n format\n });\n }\n\n /**\n * Returns an RFC 2822-compatible string representation of this DateTime, always in UTC\n * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'\n * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'\n * @return {string}\n */\n toRFC2822() {\n return toTechFormat(this, \"EEE, dd LLL yyyy HH:mm:ss ZZZ\", false);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in HTTP headers.\n * Specifically, the string conforms to RFC 1123.\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'\n * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'\n * @return {string}\n */\n toHTTP() {\n return toTechFormat(this.toUTC(), \"EEE, dd LLL yyyy HH:mm:ss 'GMT'\");\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Date\n * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'\n * @return {string}\n */\n toSQLDate() {\n return toTechFormat(this, \"yyyy-MM-dd\");\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Time\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @example DateTime.utc().toSQL() //=> '05:15:16.345'\n * @example DateTime.local().toSQL() //=> '05:15:16.345 -04:00'\n * @example DateTime.local().toSQL({ includeOffset: false }) //=> '05:15:16.345'\n * @example DateTime.local().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'\n * @return {string}\n */\n toSQLTime({ includeOffset = true, includeZone = false } = {}) {\n return toTechTimeFormat(this, {\n includeOffset,\n includeZone,\n spaceZone: true\n });\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'\n * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'\n * @return {string}\n */\n toSQL(opts = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return `${this.toSQLDate()} ${this.toSQLTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for debugging\n * @return {string}\n */\n toString() {\n return this.isValid ? this.toISO() : INVALID;\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime. Alias of {@link toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime.\n * @return {number}\n */\n toMillis() {\n return this.isValid ? this.ts : NaN;\n }\n\n /**\n * Returns the epoch seconds of this DateTime.\n * @return {number}\n */\n toSeconds() {\n return this.isValid ? this.ts / 1000 : NaN;\n }\n\n /**\n * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns a BSON serializable equivalent to this DateTime.\n * @return {Date}\n */\n toBSON() {\n return this.toJSDate();\n }\n\n /**\n * Returns a Javascript object with this DateTime's year, month, day, and so on.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example DateTime.local().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }\n * @return {Object}\n */\n toObject(opts = {}) {\n if (!this.isValid) return {};\n\n const base = Object.assign({}, this.c);\n\n if (opts.includeConfig) {\n base.outputCalendar = this.outputCalendar;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n\n /**\n * Returns a Javascript Date equivalent to this DateTime.\n * @return {Date}\n */\n toJSDate() {\n return new Date(this.isValid ? this.ts : NaN);\n }\n\n // COMPARE\n\n /**\n * Return the difference between two DateTimes as a Duration.\n * @param {DateTime} otherDateTime - the DateTime to compare this one to\n * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example\n * var i1 = DateTime.fromISO('1982-05-25T09:45'),\n * i2 = DateTime.fromISO('1983-10-14T10:30');\n * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }\n * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }\n * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }\n * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }\n * @return {Duration}\n */\n diff(otherDateTime, unit = \"milliseconds\", opts = {}) {\n if (!this.isValid || !otherDateTime.isValid) {\n return Duration.invalid(\n this.invalid || otherDateTime.invalid,\n \"created by diffing an invalid DateTime\"\n );\n }\n\n const durOpts = Object.assign(\n { locale: this.locale, numberingSystem: this.numberingSystem },\n opts\n );\n\n const units = maybeArray(unit).map(Duration.normalizeUnit),\n otherIsLater = otherDateTime.valueOf() > this.valueOf(),\n earlier = otherIsLater ? this : otherDateTime,\n later = otherIsLater ? otherDateTime : this,\n diffed = diff(earlier, later, units, durOpts);\n\n return otherIsLater ? diffed.negate() : diffed;\n }\n\n /**\n * Return the difference between this DateTime and right now.\n * See {@link diff}\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n diffNow(unit = \"milliseconds\", opts = {}) {\n return this.diff(DateTime.local(), unit, opts);\n }\n\n /**\n * Return an Interval spanning between this DateTime and another DateTime\n * @param {DateTime} otherDateTime - the other end point of the Interval\n * @return {Interval}\n */\n until(otherDateTime) {\n return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;\n }\n\n /**\n * Return whether this DateTime is in the same unit of time as another DateTime\n * @param {DateTime} otherDateTime - the other DateTime\n * @param {string} unit - the unit of time to check sameness on\n * @example DateTime.local().hasSame(otherDT, 'day'); //~> true if both the same calendar day\n * @return {boolean}\n */\n hasSame(otherDateTime, unit) {\n if (!this.isValid) return false;\n if (unit === \"millisecond\") {\n return this.valueOf() === otherDateTime.valueOf();\n } else {\n const inputMs = otherDateTime.valueOf();\n return this.startOf(unit) <= inputMs && inputMs <= this.endOf(unit);\n }\n }\n\n /**\n * Equality check\n * Two DateTimes are equal iff they represent the same millisecond, have the same zone and location, and are both valid.\n * To compare just the millisecond values, use `+dt1 === +dt2`.\n * @param {DateTime} other - the other DateTime\n * @return {boolean}\n */\n equals(other) {\n return (\n this.isValid &&\n other.isValid &&\n this.valueOf() === other.valueOf() &&\n this.zone.equals(other.zone) &&\n this.loc.equals(other.loc)\n );\n }\n\n /**\n * Returns a string representation of a this time relative to now, such as \"in two days\". Can only internationalize if your\n * platform supports Intl.RelativeTimeFormat. Rounds down by default.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.local()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} [options.style=\"long\"] - the style of units, must be \"long\", \"short\", or \"narrow\"\n * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", or \"seconds\"\n * @param {boolean} [options.round=true] - whether to round the numbers in the output.\n * @param {boolean} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.local().plus({ days: 1 }).toRelative() //=> \"in 1 day\"\n * @example DateTime.local().setLocale(\"es\").toRelative({ days: 1 }) //=> \"dentro de 1 día\"\n * @example DateTime.local().plus({ days: 1 }).toRelative({ locale: \"fr\" }) //=> \"dans 23 heures\"\n * @example DateTime.local().minus({ days: 2 }).toRelative() //=> \"2 days ago\"\n * @example DateTime.local().minus({ days: 2 }).toRelative({ unit: \"hours\" }) //=> \"48 hours ago\"\n * @example DateTime.local().minus({ hours: 36 }).toRelative({ round: false }) //=> \"1.5 days ago\"\n */\n toRelative(options = {}) {\n if (!this.isValid) return null;\n const base = options.base || DateTime.fromObject({ zone: this.zone }),\n padding = options.padding ? (this < base ? -options.padding : options.padding) : 0;\n return diffRelative(\n base,\n this.plus(padding),\n Object.assign(options, {\n numeric: \"always\",\n units: [\"years\", \"months\", \"days\", \"hours\", \"minutes\", \"seconds\"]\n })\n );\n }\n\n /**\n * Returns a string representation of this date relative to today, such as \"yesterday\" or \"next month\".\n * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.local()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", or \"days\"\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.local().plus({ days: 1 }).toRelativeCalendar() //=> \"tomorrow\"\n * @example DateTime.local().setLocale(\"es\").plus({ days: 1 }).toRelative() //=> \"\"mañana\"\n * @example DateTime.local().plus({ days: 1 }).toRelativeCalendar({ locale: \"fr\" }) //=> \"demain\"\n * @example DateTime.local().minus({ days: 2 }).toRelativeCalendar() //=> \"2 days ago\"\n */\n toRelativeCalendar(options = {}) {\n if (!this.isValid) return null;\n\n return diffRelative(\n options.base || DateTime.fromObject({ zone: this.zone }),\n this,\n Object.assign(options, {\n numeric: \"auto\",\n units: [\"years\", \"months\", \"days\"],\n calendary: true\n })\n );\n }\n\n /**\n * Return the min of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum\n * @return {DateTime} the min DateTime, or undefined if called with no argument\n */\n static min(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"min requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, i => i.valueOf(), Math.min);\n }\n\n /**\n * Return the max of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum\n * @return {DateTime} the max DateTime, or undefined if called with no argument\n */\n static max(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"max requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, i => i.valueOf(), Math.max);\n }\n\n // MISC\n\n /**\n * Explain how a string would be parsed by fromFormat()\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see description)\n * @param {Object} options - options taken by fromFormat()\n * @return {Object}\n */\n static fromFormatExplain(text, fmt, options = {}) {\n const { locale = null, numberingSystem = null } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true\n });\n return explainFromTokens(localeToUse, text, fmt);\n }\n\n /**\n * @deprecated use fromFormatExplain instead\n */\n static fromStringExplain(text, fmt, options = {}) {\n return DateTime.fromFormatExplain(text, fmt, options);\n }\n\n // FORMAT PRESETS\n\n /**\n * {@link toLocaleString} format like 10/14/1983\n * @type {Object}\n */\n static get DATE_SHORT() {\n return Formats.DATE_SHORT;\n }\n\n /**\n * {@link toLocaleString} format like 'Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED() {\n return Formats.DATE_MED;\n }\n\n /**\n * {@link toLocaleString} format like 'October 14, 1983'\n * @type {Object}\n */\n static get DATE_FULL() {\n return Formats.DATE_FULL;\n }\n\n /**\n * {@link toLocaleString} format like 'Tuesday, October 14, 1983'\n * @type {Object}\n */\n static get DATE_HUGE() {\n return Formats.DATE_HUGE;\n }\n\n /**\n * {@link toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_SIMPLE() {\n return Formats.TIME_SIMPLE;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SECONDS() {\n return Formats.TIME_WITH_SECONDS;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SHORT_OFFSET() {\n return Formats.TIME_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_LONG_OFFSET() {\n return Formats.TIME_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link toLocaleString} format like '09:30', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_SIMPLE() {\n return Formats.TIME_24_SIMPLE;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SECONDS() {\n return Formats.TIME_24_WITH_SECONDS;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23 EDT', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SHORT_OFFSET() {\n return Formats.TIME_24_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_LONG_OFFSET() {\n return Formats.TIME_24_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT() {\n return Formats.DATETIME_SHORT;\n }\n\n /**\n * {@link toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT_WITH_SECONDS() {\n return Formats.DATETIME_SHORT_WITH_SECONDS;\n }\n\n /**\n * {@link toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED() {\n return Formats.DATETIME_MED;\n }\n\n /**\n * {@link toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_SECONDS() {\n return Formats.DATETIME_MED_WITH_SECONDS;\n }\n\n /**\n * {@link toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_WEEKDAY() {\n return Formats.DATETIME_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL() {\n return Formats.DATETIME_FULL;\n }\n\n /**\n * {@link toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL_WITH_SECONDS() {\n return Formats.DATETIME_FULL_WITH_SECONDS;\n }\n\n /**\n * {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE() {\n return Formats.DATETIME_HUGE;\n }\n\n /**\n * {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE_WITH_SECONDS() {\n return Formats.DATETIME_HUGE_WITH_SECONDS;\n }\n}\n\n/**\n * @private\n */\nexport function friendlyDateTime(dateTimeish) {\n if (DateTime.isDateTime(dateTimeish)) {\n return dateTimeish;\n } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {\n return DateTime.fromJSDate(dateTimeish);\n } else if (dateTimeish && typeof dateTimeish === \"object\") {\n return DateTime.fromObject(dateTimeish);\n } else {\n throw new InvalidArgumentError(\n `Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`\n );\n }\n}\n","import { DateTime } from 'luxon';\nimport * as React from 'react';\n\nimport type { ICapacity, IModalComponentProps } from '@spinnaker/core';\nimport { ModalBody, ModalFooter, ModalHeader, ServerGroupReader, Spinner, useData } from '@spinnaker/core';\n\nimport type { ITitusServerGroup } from '../../../domain';\n\nexport interface ITitusScalingActivitiesProps extends IModalComponentProps {\n serverGroup: ITitusServerGroup;\n}\n\ntype JobState = 'Accepted' | 'KillInitiated' | 'Finished';\n\ninterface ITitusScalingEvent {\n capacity: ICapacity;\n date: string;\n jobId: string;\n jobState: JobState;\n reasonCode: string;\n reasonMessage: string;\n}\n\nexport const TitusScalingActivitiesModal = ({ dismissModal, serverGroup }: ITitusScalingActivitiesProps) => {\n const fetchScalingActivities = () => ServerGroupReader.getScalingActivities(serverGroup);\n\n const { result: scalingActivities, status, error } = useData(fetchScalingActivities, [], [serverGroup.id]);\n const loading = status === 'PENDING';\n\n const formatDate = (date: string) => {\n const newDate = new Date(date);\n return DateTime.fromJSDate(newDate).toFormat('yyyy-MM-dd HH:mm:ss ZZZZ');\n };\n\n return (\n <>\n <ModalHeader>{`Scaling activities for ${serverGroup.name}`}</ModalHeader>\n <ModalBody>\n <div className=\"flex-1 heading-3\">\n {loading && (\n <div className=\"horizontal center sp-margin-xl-yaxis\">\n <Spinner />\n </div>\n )}\n {!loading && Boolean(error) && (\n <div className=\"horizontal center sp-margin-xl-yaxis\">\n <h4>{`There was an error loading scaling activities for ${serverGroup.name}. Please try again later.`}</h4>\n </div>\n )}\n {!loading && !error && !Boolean(scalingActivities.length) && (\n <div className=\"horizontal center sp-margin-xl-yaxis\">\n <h4>{`No scaling activities found for ${serverGroup.name}.`}</h4>\n </div>\n )}\n {!loading && !error && Boolean(scalingActivities.length) && (\n <div className=\"middle sp-margin-xl-yaxis\">\n {scalingActivities.map((a: ITitusScalingEvent, i) => (\n <div key={`${i}-${a.jobId}`} className=\"sp-margin-xl-yaxis\">\n <p className=\"clearfix\">\n <span className={`label label-${a.jobState !== 'KillInitiated' ? 'success' : 'danger'} pull-left`}>\n {a.jobState}\n </span>\n <span className=\"label label-default pull-right\">{formatDate(a.date)}</span>\n </p>\n <p>{`${a.reasonMessage} Desired capacity is ${a.capacity?.desired || 'unknown'}.`}</p>\n </div>\n ))}\n </div>\n )}\n </div>\n </ModalBody>\n <ModalFooter\n primaryActions={\n <button className=\"btn btn-primary\" onClick={dismissModal}>\n Close\n </button>\n }\n />\n </>\n );\n};\n","import React from 'react';\n\nimport type { Application } from '@spinnaker/core';\nimport {\n confirmNotManaged,\n CurrentCapacity,\n DesiredCapacity,\n Overridable,\n ReactModal,\n showModal,\n} from '@spinnaker/core';\n\nimport type { ITitusServerGroup } from '../../domain';\nimport type { ITitusResizeServerGroupModalProps } from './resize/TitusResizeServerGroupModal';\nimport { TitusResizeServerGroupModal } from './resize/TitusResizeServerGroupModal';\nimport { TitusScalingActivitiesModal } from './scalingActivity/TitusScalingActivitiesModal';\n\ninterface ICapacityDetailsSectionProps {\n app: Application;\n serverGroup: ITitusServerGroup;\n}\n\n@Overridable('titus.serverGroup.CapacityDetailsSection')\nexport class TitusCapacityDetailsSection extends React.Component<ICapacityDetailsSectionProps> {\n public render(): JSX.Element {\n const { serverGroup, app: application } = this.props;\n const { capacity } = serverGroup;\n const current = serverGroup.instances.length;\n const simpleMode = capacity.min === capacity.max;\n\n const resizeServerGroup = () =>\n confirmNotManaged(serverGroup, application).then((notManaged) => {\n notManaged &&\n ReactModal.show<ITitusResizeServerGroupModalProps>(TitusResizeServerGroupModal, { serverGroup, application });\n });\n\n return (\n <>\n <dl className=\"dl-horizontal dl-narrow\">\n <DesiredCapacity capacity={capacity} simpleMode={simpleMode} />\n <CurrentCapacity currentCapacity={current} />\n {serverGroup.capacityGroup && (\n <>\n <dt>Cap. Group</dt>\n <dd>{serverGroup.capacityGroup}</dd>\n </>\n )}\n </dl>\n\n <div>\n <a className=\"clickable\" onClick={resizeServerGroup}>\n Resize Server Group\n </a>\n </div>\n <div>\n <a\n className=\"clickable\"\n onClick={() => showModal(TitusScalingActivitiesModal, { serverGroup }, { maxWidth: '1000px' })}\n >\n View Scaling Activities\n </a>\n </div>\n </>\n );\n }\n}\n","import * as React from 'react';\n\nimport type { IAmazonServerGroup, IScalingPolicyAlarm, ITargetTrackingConfiguration } from '@spinnaker/amazon';\nimport { MetricAlarmChart } from '@spinnaker/amazon';\nimport type { ICloudMetricStatistics } from '@spinnaker/core';\n\nexport interface ITitusTargetTrackingChartProps {\n config: ITargetTrackingConfiguration;\n serverGroup: IAmazonServerGroup;\n unit?: string;\n updateUnit?: (unit: string) => void;\n}\n\nexport const TitusTargetTrackingChart = ({ config, serverGroup, unit, updateUnit }: ITitusTargetTrackingChartProps) => {\n const [alarm, setAlarm] = React.useState<IScalingPolicyAlarm>({\n alarmName: null,\n alarmArn: null,\n metricName: null,\n namespace: null,\n statistic: 'Average',\n dimensions: [],\n period: 60,\n threshold: config.targetValue,\n comparisonOperator: 'GreaterThanThreshold',\n okactions: [],\n insufficientDataActions: [],\n alarmActions: [],\n evaluationPeriods: null,\n alarmDescription: null,\n unit: null,\n });\n\n const synchronizeAlarm = () => {\n const customMetric = config?.customizedMetricSpecification;\n const updatedAlarm = {\n ...alarm,\n dimensions: customMetric?.dimensions,\n metricName: customMetric?.metricName,\n namespace: customMetric?.namespace,\n statistic: customMetric?.statistic,\n threshold: config?.targetValue,\n };\n setAlarm(updatedAlarm);\n };\n\n React.useEffect(() => {\n synchronizeAlarm();\n }, [config]);\n\n const onChartLoaded = (stats: ICloudMetricStatistics) => {\n if (unit) {\n updateUnit(stats.unit);\n }\n };\n\n return <MetricAlarmChart alarm={alarm} onChartLoaded={onChartLoaded} serverGroup={serverGroup} />;\n};\n","import { cloneDeep } from 'lodash';\n\nimport type {\n IScalingPolicy,\n IScalingPolicyAlarmView,\n IStepAdjustment,\n IStepPolicyDescription,\n ITargetTrackingPolicy,\n IUpsertAlarmDescription,\n IUpsertScalingPolicyCommand,\n} from '@spinnaker/amazon';\nimport type { ITitusServerGroup } from '../../../../domain';\n\ntype PolicyType = 'Step' | 'TargetTracking';\n\nexport const TitusScalingPolicyCommandBuilder = {\n buildAlarm: (policy: IScalingPolicy, region: string): IUpsertAlarmDescription => {\n const alarm = policy?.alarms[0] as IScalingPolicyAlarmView;\n return {\n comparisonOperator: alarm.comparisonOperator,\n region,\n dimensions: alarm.dimensions,\n disableEditingDimensions: alarm.disableEditingDimensions,\n evaluationPeriods: alarm.evaluationPeriods,\n metricName: alarm.metricName,\n namespace: alarm.namespace,\n period: alarm.period,\n statistic: alarm.statistic,\n threshold: alarm.threshold,\n unit: alarm.unit,\n } as IUpsertAlarmDescription;\n },\n\n buildStepPolicy: (policy: IScalingPolicy, threshold: number, cooldown: number): IStepPolicyDescription => {\n const stepAdjustments = policy.stepAdjustments.map((adjustment) => {\n const step = {\n scalingAdjustment: Math.abs(adjustment.scalingAdjustment),\n } as IStepAdjustment;\n\n if (adjustment.metricIntervalUpperBound !== undefined) {\n step.metricIntervalUpperBound = adjustment.metricIntervalUpperBound + threshold;\n }\n if (adjustment.metricIntervalLowerBound !== undefined) {\n step.metricIntervalLowerBound = adjustment.metricIntervalLowerBound + threshold;\n }\n\n return step;\n });\n\n return {\n cooldown: cooldown || 600,\n estimatedInstanceWarmup: null,\n metricAggregationType: 'Average',\n stepAdjustments,\n };\n },\n\n buildNewCommand: (\n type: PolicyType,\n serverGroup: ITitusServerGroup,\n policy: ITargetTrackingPolicy,\n ): IUpsertScalingPolicyCommand => {\n const command = {\n adjustmentType: type === 'Step' ? policy.adjustmentType : null,\n cloudProvider: serverGroup.cloudProvider,\n credentials: serverGroup.account,\n jobId: serverGroup.id,\n name: policy.id,\n region: serverGroup.region,\n scalingPolicyID: policy.id,\n serverGroupName: serverGroup.name,\n } as IUpsertScalingPolicyCommand;\n\n if (type === 'Step') {\n command.alarm = TitusScalingPolicyCommandBuilder.buildAlarm(policy, serverGroup.region);\n command.minAdjustmentMagnitude = policy.minAdjustmentMagnitude || 1;\n command.step = TitusScalingPolicyCommandBuilder.buildStepPolicy(policy, command.alarm.threshold, policy.cooldown);\n }\n\n if (type === 'TargetTracking') {\n command.targetTrackingConfiguration = { ...policy.targetTrackingConfiguration };\n }\n\n return command;\n },\n\n prepareCommandForUpsert: (command: IUpsertScalingPolicyCommand, isRemove: boolean): IUpsertScalingPolicyCommand => {\n const commandToSubmit = cloneDeep(command);\n\n if (commandToSubmit.adjustmentType !== 'PercentChangeInCapacity') {\n delete commandToSubmit.minAdjustmentMagnitude;\n }\n\n if (commandToSubmit.step) {\n // adjust metricIntervalLowerBound/UpperBound for each step based on alarm threshold\n commandToSubmit.step.stepAdjustments.forEach((step) => {\n if (isRemove) {\n step.scalingAdjustment = 0 - step.scalingAdjustment;\n delete commandToSubmit.step.estimatedInstanceWarmup;\n }\n if (step.metricIntervalLowerBound !== undefined) {\n step.metricIntervalLowerBound -= commandToSubmit.alarm.threshold;\n }\n if (step.metricIntervalUpperBound !== undefined) {\n step.metricIntervalUpperBound -= commandToSubmit.alarm.threshold;\n }\n });\n } else {\n if (isRemove) {\n command.simple.scalingAdjustment = 0 - command.simple.scalingAdjustment;\n }\n }\n return commandToSubmit;\n },\n};\n","import * as React from 'react';\n\nimport type {\n IAmazonServerGroup,\n ITargetTrackingPolicy,\n ITargetTrackingPolicyCommand,\n IUpsertScalingPolicyCommand,\n} from '@spinnaker/amazon';\nimport { TargetMetricFields, TargetTrackingAdditionalSettings } from '@spinnaker/amazon';\nimport type { Application, IModalComponentProps } from '@spinnaker/core';\nimport { TaskMonitorModal } from '@spinnaker/core';\n\nimport type { ITitusServerGroup } from '../../../../domain';\nimport { TitusScalingPolicyCommandBuilder } from '../upsert/TitusScalingPolicyCommandBuilderService';\n\nexport interface IUpsertTargetTrackingModalProps extends IModalComponentProps {\n app: Application;\n policy: ITargetTrackingPolicy;\n serverGroup: ITitusServerGroup;\n}\n\nexport const UpsertTargetTrackingModal = ({\n app,\n closeModal,\n dismissModal,\n policy,\n serverGroup,\n}: IUpsertTargetTrackingModalProps) => {\n const [isCustom, setIsCustom] = React.useState<boolean>(\n Boolean(policy.targetTrackingConfiguration?.customizedMetricSpecification),\n );\n\n const [command, setCommand] = React.useState<IUpsertScalingPolicyCommand>({} as IUpsertScalingPolicyCommand);\n React.useEffect(() => {\n const baseCommand = TitusScalingPolicyCommandBuilder.buildNewCommand('TargetTracking', serverGroup, policy);\n setCommand(baseCommand);\n }, []);\n\n const mode = policy.id ? 'Update' : 'Create';\n\n return (\n <TaskMonitorModal<IUpsertScalingPolicyCommand>\n closeModal={closeModal}\n dismissModal={dismissModal}\n title={`${mode} scaling policy`}\n application={app}\n description={`${mode} scaling policy for ${serverGroup.name}`}\n initialValues={command}\n mapValuesToTask={() => ({\n application: app,\n job: [\n {\n type: 'upsertScalingPolicy',\n ...command,\n },\n ],\n })}\n render={() => (\n <div className=\"modal-body\">\n <h4 className=\"section-heading\">Target Metric</h4>\n <TargetMetricFields\n allowDualMode={false}\n cloudwatch={true}\n command={command as ITargetTrackingPolicyCommand}\n isCustomMetric={isCustom}\n serverGroup={(serverGroup as unknown) as IAmazonServerGroup}\n toggleMetricType={(t) => setIsCustom(t === 'custom')}\n updateCommand={setCommand}\n />\n <h4 className=\"section-heading\">Additional Settings</h4>\n <TargetTrackingAdditionalSettings\n command={command}\n cooldowns={true}\n policyName={policy.policyName}\n updateCommand={setCommand}\n />\n </div>\n )}\n />\n );\n};\n","import { cloneDeep } from 'lodash';\nimport * as React from 'react';\n\nimport type {\n IScalingPolicy,\n IStepAdjustment,\n IStepPolicyDescription,\n ITargetTrackingPolicy,\n IUpsertScalingPolicyCommand,\n} from '@spinnaker/amazon';\nimport { AlarmConfigurer, ScalingPolicyAdditionalSettings, StepPolicyAction } from '@spinnaker/amazon';\nimport type { IAmazonServerGroup, IScalingPolicyAlarm } from '@spinnaker/amazon/src/domain';\nimport type { Application, IModalComponentProps } from '@spinnaker/core';\nimport { TaskMonitorModal } from '@spinnaker/core';\n\nimport { TitusScalingPolicyCommandBuilder } from './TitusScalingPolicyCommandBuilderService';\nimport type { ITitusServerGroup } from '../../../../domain';\n\ntype Operator = 'Add' | 'Remove' | 'Set to';\ntype AdjustmentTypeView = 'instances' | 'percent of group';\n\nexport interface IUpsertScalingPolicyModalProps extends IModalComponentProps {\n app: Application;\n policy: IScalingPolicy;\n serverGroup: ITitusServerGroup;\n}\n\nexport const UpsertScalingPolicyModal = ({\n app,\n closeModal,\n dismissModal,\n policy,\n serverGroup,\n}: IUpsertScalingPolicyModalProps) => {\n const [command, setCommand] = React.useState<IUpsertScalingPolicyCommand>({} as IUpsertScalingPolicyCommand);\n React.useEffect(() => {\n const baseCommand = TitusScalingPolicyCommandBuilder.buildNewCommand(\n 'Step',\n serverGroup,\n policy as ITargetTrackingPolicy,\n );\n setCommand(baseCommand);\n }, []);\n\n const adjustmentBasis = policy.stepAdjustments?.length\n ? policy.stepAdjustments[0].scalingAdjustment\n : policy.scalingAdjustment;\n const [action, setAction] = React.useState<Operator>(\n command.adjustmentType === 'ExactCapacity' ? 'Set to' : adjustmentBasis > 0 ? 'Add' : 'Remove',\n );\n const adjustmentTypeView =\n command.adjustmentType === 'ExactCapacity' || command.adjustmentType === 'ChangeInCapacity'\n ? 'instances'\n : 'percent of group';\n\n const mode = !policy.id ? 'Create' : 'Edit';\n const comparatorBound = command?.alarm?.comparisonOperator?.indexOf('Greater') === 0 ? 'max' : 'min';\n\n const boundsChanged = (step: IStepPolicyDescription) => {\n const source = comparatorBound === 'min' ? 'metricIntervalLowerBound' : 'metricIntervalUpperBound';\n const target = source === 'metricIntervalLowerBound' ? 'metricIntervalUpperBound' : 'metricIntervalLowerBound';\n\n const adjustments = step.stepAdjustments;\n (adjustments || []).forEach((a, index) => {\n if (adjustments.length > index + 1) {\n adjustments[index + 1][target] = a[source];\n }\n });\n // Remove the source boundary from the last step\n delete adjustments[adjustments.length - 1][source];\n };\n\n const stepsChanged = (newSteps: IStepAdjustment[]) => {\n const newCommand = cloneDeep(command);\n newCommand.step.stepAdjustments = newSteps;\n boundsChanged(newCommand.step);\n setCommand(newCommand);\n };\n\n const adjustmentTypeChanged = (action: Operator, type: AdjustmentTypeView) => {\n setAction(action);\n\n const newType =\n type !== 'instances' ? 'PercentChangeInCapacity' : action === 'Set to' ? 'ExactCapacity' : 'ChangeInCapacity';\n setCommand({\n ...command,\n adjustmentType: newType,\n });\n };\n\n return (\n <TaskMonitorModal<IUpsertScalingPolicyCommand>\n closeModal={closeModal}\n dismissModal={dismissModal}\n title={`${mode} scaling policy`}\n application={app}\n description={`${mode} scaling policy for ${serverGroup.name}`}\n initialValues={command}\n mapValuesToTask={() => {\n const preppedValues = TitusScalingPolicyCommandBuilder.prepareCommandForUpsert(command, action === 'Remove');\n return {\n application: app,\n job: [\n {\n type: preppedValues.type || 'upsertScalingPolicy',\n ...preppedValues,\n },\n ],\n };\n }}\n render={() => (\n <div>\n <h4 className=\"section-heading\">Conditions</h4>\n <div className=\"section-body\">\n <p>\n <b>Note:</b> metrics must be sent to Amazon CloudWatch before they can be used in auto scaling. If you do\n not see a metric below, click \"Configure available metrics\" in the server group details to set up\n forwarding from Atlas to CloudWatch.\n </p>\n <AlarmConfigurer\n alarm={command.alarm}\n multipleAlarms={Boolean(policy?.alarms?.length > 1)}\n serverGroup={(serverGroup as unknown) as IAmazonServerGroup}\n stepAdjustments={command.step.stepAdjustments}\n stepsChanged={stepsChanged}\n updateAlarm={(alarm: IScalingPolicyAlarm) =>\n setCommand({ ...command, alarm } as IUpsertScalingPolicyCommand)\n }\n />\n </div>\n <h4 className=\"section-heading\">Actions</h4>\n <div className=\"section-body\">\n {!command.alarm?.metricName && <h4 className=\"text-center\">Select a metric</h4>}\n {command.alarm?.metricName && (\n <StepPolicyAction\n adjustmentType={adjustmentTypeView}\n adjustmentTypeChanged={adjustmentTypeChanged}\n alarm={command.alarm}\n isMin={comparatorBound === 'min'}\n operator={action}\n step={command.step}\n stepsChanged={stepsChanged}\n />\n )}\n </div>\n <ScalingPolicyAdditionalSettings\n command={command}\n isInstanceType={adjustmentTypeView === 'instances'}\n isNew={Boolean(!policy.policyARN)}\n operator={action}\n updateCommand={setCommand}\n />\n </div>\n )}\n />\n );\n};\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { TitusCapacityDetailsSection } from './TitusCapacityDetailsSection';\n\nexport const TITUS_SERVERGROUP_DETAILS_CAPACITYDETAILSSECTION = 'titus.servergroup.details.capacitydetailssection';\nmodule(TITUS_SERVERGROUP_DETAILS_CAPACITYDETAILSSECTION, []).component(\n 'titusCapacityDetailsSection',\n react2angular(withErrorBoundary(TitusCapacityDetailsSection, 'titusCapacityDetailsSection'), ['serverGroup', 'app']),\n);\n","import React from 'react';\n\nimport { LabeledValue, LabeledValueList, Overridable } from '@spinnaker/core';\nimport type { ITitusServerGroup } from '../../domain';\n\ninterface ILaunchConfigSectionProps {\n serverGroup: ITitusServerGroup;\n}\n\n@Overridable('titus.serverGroup.launchConfigSection')\nexport class TitusLaunchConfigSection extends React.Component<ILaunchConfigSectionProps> {\n public render() {\n if (!this.props.serverGroup || !this.props.serverGroup.image) {\n return null;\n }\n\n const {\n serverGroup: { image, entryPoint, iamProfile, resources },\n } = this.props;\n\n return (\n <LabeledValueList className=\"horizontal-when-filters-collapsed\">\n {image.dockerImageName && <LabeledValue label=\"Image Name\" value={image.dockerImageName} />}\n {image.dockerImageVersion && <LabeledValue label=\"Image Version\" value={image.dockerImageVersion} />}\n {entryPoint && <LabeledValue label=\"Entrypoint\" value={entryPoint} />}\n {iamProfile && <LabeledValue label=\"IAM Profile\" value={iamProfile} />}\n <LabeledValue label=\"CPU(s)\" value={resources.cpu} />\n <LabeledValue label=\"Memory\" value={`${resources.memory} MB`} />\n <LabeledValue label=\"Disk\" value={`${resources.disk} MB`} />\n <LabeledValue label=\"Network\" value={`${resources.networkMbps} Mbps`} />\n <LabeledValue label=\"GPU(s)\" value={resources.gpu} />\n </LabeledValueList>\n );\n }\n}\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { TitusLaunchConfigSection } from './TitusLaunchConfigSection';\n\nexport const TITUS_SERVERGROUP_DETAILS_LAUNCHCONFIGSECTION = 'titus.servergroup.details.launchConfigSection';\nmodule(TITUS_SERVERGROUP_DETAILS_LAUNCHCONFIGSECTION, []).component(\n 'titusLaunchConfigSection',\n react2angular(withErrorBoundary(TitusLaunchConfigSection, 'titusLaunchConfigSection'), ['serverGroup']),\n);\n","import React from 'react';\nimport { Modal } from 'react-bootstrap';\n\nimport type { Application, IJob, IModalComponentProps } from '@spinnaker/core';\nimport {\n ModalClose,\n ReactModal,\n SpinFormik,\n SubmitButton,\n TaskExecutor,\n TaskMonitor,\n TaskMonitorWrapper,\n} from '@spinnaker/core';\n\nimport type { ITitusServerGroupCommand } from '../../configure/serverGroupConfiguration.service';\nimport { JobDisruptionBudget } from '../../configure/wizard/pages/disruptionBudget/JobDisruptionBudget';\nimport type { ITitusServerGroup } from '../../../domain';\n\nexport interface IEditDisruptionBudgetModalProps extends IModalComponentProps {\n application: Application;\n command: ITitusServerGroupCommand;\n serverGroup: ITitusServerGroup;\n}\n\nexport class EditDisruptionBudgetModal extends React.Component<IEditDisruptionBudgetModalProps> {\n public static show(props: IEditDisruptionBudgetModalProps): Promise<void> {\n return ReactModal.show(EditDisruptionBudgetModal, props);\n }\n\n private submit(values: ITitusServerGroupCommand, taskMonitor: TaskMonitor): void {\n const { application, serverGroup } = this.props;\n const job: IJob = {\n type: 'upsertDisruptionBudget',\n cloudProvider: 'titus',\n credentials: serverGroup.account,\n region: serverGroup.region,\n jobId: serverGroup.id,\n disruptionBudget: values.disruptionBudget,\n };\n\n taskMonitor.submit(() =>\n TaskExecutor.executeTask({\n job: [job],\n application,\n description: `Update Disruption Budget for ${serverGroup.name}`,\n }),\n );\n }\n\n public render() {\n const { application, command, dismissModal } = this.props;\n const taskMonitor = new TaskMonitor({\n application,\n title: 'Updating Job Disruption Budget',\n modalInstance: TaskMonitor.modalInstanceEmulation(() => dismissModal()),\n onTaskComplete: () => application.serverGroups.refresh(),\n });\n\n return (\n <>\n <TaskMonitorWrapper monitor={taskMonitor} />\n <SpinFormik<ITitusServerGroupCommand>\n initialValues={command}\n onSubmit={(values: ITitusServerGroupCommand) => this.submit(values, taskMonitor)}\n render={(formik) => (\n <>\n <ModalClose dismiss={dismissModal} />\n <Modal.Header>\n <Modal.Title>Update Disruption Budget</Modal.Title>\n </Modal.Header>\n <Modal.Body>\n <JobDisruptionBudget formik={formik} app={application} />\n </Modal.Body>\n <Modal.Footer>\n <button className=\"btn btn-default\" onClick={dismissModal} type=\"button\">\n Cancel\n </button>\n <SubmitButton\n onClick={() => this.submit(formik.values, taskMonitor)}\n isDisabled={!formik.isValid}\n isFormSubmit={true}\n submitting={false}\n label=\"Update Budget\"\n />\n </Modal.Footer>\n </>\n )}\n />\n </>\n );\n }\n}\n","import { module } from 'angular';\nimport { isEqual } from 'lodash';\nimport prettyMilliseconds from 'pretty-ms';\nimport React from 'react';\nimport { react2angular } from 'react2angular';\n\nimport type { IServerGroupDetailsSectionProps } from '@spinnaker/core';\nimport { HelpField, withErrorBoundary } from '@spinnaker/core';\n\nimport { EditDisruptionBudgetModal } from './EditDisruptionBudgetModal';\nimport type { ITitusServerGroupCommand } from '../../configure/serverGroupConfiguration.service';\nimport { getDefaultJobDisruptionBudgetForApp } from '../../configure/serverGroupConfiguration.service';\nimport type { IFieldOption } from '../../configure/wizard/pages/disruptionBudget/JobDisruptionBudget';\nimport { DisruptionBudgetDescription } from '../../configure/wizard/pages/disruptionBudget/JobDisruptionBudget';\nimport { policyOptions } from '../../configure/wizard/pages/disruptionBudget/PolicyOptions';\nimport { rateOptions } from '../../configure/wizard/pages/disruptionBudget/RateOptions';\nimport type { IJobDisruptionBudget, ITitusServerGroup } from '../../../domain';\nimport { TitusReactInjector } from '../../../reactShims';\n\ninterface IDisruptionBudgetSection extends IServerGroupDetailsSectionProps {\n serverGroup: ITitusServerGroup;\n}\n\nexport class DisruptionBudgetSection extends React.Component<IDisruptionBudgetSection> {\n private SectionHeading = ({\n budget,\n options,\n label,\n }: {\n budget: IJobDisruptionBudget;\n options: IFieldOption[];\n label: string;\n }): JSX.Element => {\n const selected = options.find((o) => !!budget[o.field]);\n if (!selected) {\n return null;\n }\n return (\n <div>\n <div className=\"bold\">{label}</div>\n {selected.label} <HelpField content={selected.description} />\n </div>\n );\n };\n\n private Policy = ({ budget }: { budget: IJobDisruptionBudget }): JSX.Element => {\n const { ParentheticalDuration } = this;\n if (budget.availabilityPercentageLimit) {\n return (\n <div>\n <div className=\"bold\">Percentage of Healthy Containers</div>\n {budget.availabilityPercentageLimit.percentageOfHealthyContainers} percent\n </div>\n );\n }\n if (budget.relocationLimit) {\n return (\n <div>\n <div className=\"bold\">Limit</div>\n {budget.relocationLimit.limit} task{budget.relocationLimit.limit !== 1 && 's'}\n </div>\n );\n }\n if (budget.unhealthyTasksLimit) {\n return (\n <div>\n <div className=\"bold\">Limit of Unhealthy Containers</div>\n {budget.unhealthyTasksLimit.limitOfUnhealthyContainers} container\n {budget.unhealthyTasksLimit.limitOfUnhealthyContainers !== 1 && 's'}\n </div>\n );\n }\n if (budget.selfManaged) {\n return (\n <div>\n <div className=\"bold\">Relocation Time</div>\n {budget.selfManaged.relocationTimeMs > 0 && (\n <ParentheticalDuration durationMs={budget.selfManaged.relocationTimeMs} />\n )}\n {budget.selfManaged.relocationTimeMs === 0 && '0 ms (immediate)'}\n </div>\n );\n }\n return null;\n };\n\n // it's bad enough that we make users enter these values as milliseconds; let's not make them translate it\n private ParentheticalDuration = ({ durationMs }: { durationMs: number }) => (\n <span>\n {durationMs} ms\n {durationMs > 1000 && ` (${prettyMilliseconds(durationMs)})`}\n </span>\n );\n\n private Rate = ({ budget }: { budget: IJobDisruptionBudget }): JSX.Element => {\n const { ParentheticalDuration } = this;\n if (budget.ratePerInterval) {\n return (\n <>\n <div>\n <div className=\"bold\">Interval</div>\n <ParentheticalDuration durationMs={budget.ratePerInterval.intervalMs} />\n </div>\n <div>\n <div className=\"bold\">Limit</div>\n {budget.ratePerInterval.limitPerInterval} task{budget.ratePerInterval.limitPerInterval !== 1 && 's'}\n </div>\n </>\n );\n }\n if (budget.ratePercentagePerInterval) {\n return (\n <>\n <div>\n <div className=\"bold\">Interval</div>\n <ParentheticalDuration durationMs={budget.ratePercentagePerInterval.intervalMs} />\n </div>\n <div>\n <div className=\"bold\">Percentage per Interval</div>\n {budget.ratePercentagePerInterval.percentageLimitPerInterval} percent\n </div>\n </>\n );\n }\n return null;\n };\n\n // given a collection of days, e.g. ['Monday', 'Tuesday', 'Wednesday', 'Saturday'], return 'Mon-Wed, Sat'\n private groupedDays = (days: string[]): string => {\n const allDays = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];\n const sortedDays = days.sort((d1, d2) => allDays.indexOf(d1) - allDays.indexOf(d2));\n const groups: string[] = [];\n const currentGroup: string[] = [];\n allDays.slice(allDays.indexOf(sortedDays[0])).forEach((d) => {\n if (sortedDays.includes(d)) {\n currentGroup.push(d);\n } else {\n if (currentGroup.length) {\n groups.push(this.toDayRangeString(currentGroup));\n currentGroup.length = 0;\n }\n }\n });\n if (currentGroup.length) {\n groups.push(this.toDayRangeString(currentGroup));\n }\n return groups.join(', ');\n };\n\n private toDayRangeString(days: string[]) {\n if (!days.length) {\n return null;\n }\n if (days.length === 1) {\n return days[0].substr(0, 3);\n }\n return `${days[0].substr(0, 3)}-${days[days.length - 1].substr(0, 3)}`;\n }\n\n private TimeWindows = ({ budget }: { budget: IJobDisruptionBudget }): JSX.Element => {\n const { groupedDays } = this;\n const hasWindows = budget.timeWindows && budget.timeWindows.length > 0;\n return (\n <>\n <div className=\"bold\">When can disruption occur?</div>\n <div>\n {hasWindows &&\n budget.timeWindows.map((tw1, i1) => {\n return tw1.hourlyTimeWindows.map((tw2, i2) => (\n <div key={`${i1}.${i2}`}>\n {groupedDays(tw1.days)}, {tw2.startHour}:00 - {tw2.endHour}:00 {tw1.timeZone}\n </div>\n ));\n })}\n {!hasWindows && 'Any time'}\n </div>\n </>\n );\n };\n\n private editBudget = (): void => {\n const { app, serverGroup } = this.props;\n TitusReactInjector.titusServerGroupCommandBuilder\n .buildServerGroupCommandFromExisting(app, serverGroup)\n .then((command: ITitusServerGroupCommand) => {\n EditDisruptionBudgetModal.show({ command, application: app, serverGroup });\n });\n };\n\n public render() {\n const { Policy, SectionHeading, Rate, TimeWindows } = this;\n const serverGroup: ITitusServerGroup = this.props.serverGroup;\n const hasDefaultMigrationPolicy =\n !serverGroup.migrationPolicy || serverGroup.migrationPolicy.type === 'SystemDefault';\n const defaultBudget = getDefaultJobDisruptionBudgetForApp(this.props.app);\n const budget = serverGroup.disruptionBudget || defaultBudget;\n const usingDefault = !hasDefaultMigrationPolicy && isEqual(budget, defaultBudget);\n return (\n <>\n <DisruptionBudgetDescription />\n {usingDefault && <div>(default policy)</div>}\n <div className=\"bottom-border\">\n <SectionHeading budget={budget} options={policyOptions} label=\"Policy\" />\n <Policy budget={budget} />\n </div>\n <div className=\"bottom-border\">\n <SectionHeading budget={budget} options={rateOptions} label=\"Rate\" />\n <Rate budget={budget} />\n </div>\n <TimeWindows budget={budget} />\n <div className=\"sp-margin-l-top\">\n <a className=\"clickable\" onClick={this.editBudget}>\n Edit Disruption Budget\n </a>\n </div>\n </>\n );\n }\n}\n\nexport const DISRUPTION_BUDGET_DETAILS_SECTION = 'spinnaker.titus.disruptionbudget.section';\n\nmodule(DISRUPTION_BUDGET_DETAILS_SECTION, []).component(\n 'titusDisruptionBudgetSection',\n react2angular(withErrorBoundary(DisruptionBudgetSection, 'titusDisruptionBudgetSection'), ['serverGroup', 'app']),\n);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { get } from 'lodash';\nimport { SERVER_GROUP_WRITER, TaskMonitor } from '@spinnaker/core';\n\nexport const TITUS_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER =\n 'spinnaker.titus.serverGroup.details.rollback.controller';\nexport const name = TITUS_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER; // for backwards compatibility\nmodule(TITUS_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER, [SERVER_GROUP_WRITER]).controller(\n 'titusRollbackServerGroupCtrl',\n [\n '$scope',\n '$uibModalInstance',\n 'serverGroupWriter',\n 'application',\n 'serverGroup',\n 'previousServerGroup',\n 'disabledServerGroups',\n 'allServerGroups',\n function (\n $scope,\n $uibModalInstance,\n serverGroupWriter,\n application,\n serverGroup,\n previousServerGroup,\n disabledServerGroups,\n allServerGroups,\n ) {\n $scope.serverGroup = serverGroup;\n $scope.disabledServerGroups = disabledServerGroups.sort((a, b) => b.name.localeCompare(a.name));\n $scope.allServerGroups = allServerGroups.sort((a, b) => b.name.localeCompare(a.name));\n $scope.verification = {};\n\n const desired = serverGroup.capacity.desired;\n\n let rollbackType = 'EXPLICIT';\n\n if (allServerGroups.length === 0 && serverGroup.entityTags) {\n const previousServerGroup = get(serverGroup, 'entityTags.creationMetadata.value.previousServerGroup');\n if (previousServerGroup) {\n rollbackType = 'PREVIOUS_IMAGE';\n $scope.previousServerGroup = {\n name: previousServerGroup.name,\n imageName: previousServerGroup.imageName,\n };\n\n if (previousServerGroup.imageId && previousServerGroup.imageId !== previousServerGroup.imageName) {\n $scope.previousServerGroup.imageId = previousServerGroup.imageId;\n }\n }\n }\n\n let healthyPercent;\n if (desired < 10) {\n healthyPercent = 100;\n } else if (desired < 20) {\n // accept 1 instance in an unknown state during rollback\n healthyPercent = 90;\n } else {\n healthyPercent = 95;\n }\n\n $scope.command = {\n rollbackType: rollbackType,\n rollbackContext: {\n imageId: previousServerGroup ? previousServerGroup.imageId : undefined,\n rollbackServerGroupName: serverGroup.name,\n restoreServerGroupName: previousServerGroup ? previousServerGroup.name : undefined,\n targetHealthyRollbackPercentage: healthyPercent,\n delayBeforeDisableSeconds: 0,\n },\n targetGroups: serverGroup.targetGroups,\n securityGroups: serverGroup.securityGroups,\n };\n\n $scope.minHealthy = function (percent) {\n return Math.ceil((desired * percent) / 100);\n };\n\n if (application && application.attributes) {\n if (application.attributes.platformHealthOnlyShowOverride && application.attributes.platformHealthOnly) {\n $scope.command.interestingHealthProviderNames = ['Titus'];\n }\n\n $scope.command.platformHealthOnlyShowOverride = application.attributes.platformHealthOnlyShowOverride;\n }\n\n this.isValid = function () {\n const command = $scope.command;\n if (!$scope.verification.verified) {\n return false;\n }\n\n if (rollbackType === 'PREVIOUS_IMAGE') {\n // no need to validate when using an explicit image\n return true;\n }\n\n return command.rollbackContext.restoreServerGroupName !== undefined;\n };\n\n $scope.taskMonitor = new TaskMonitor({\n application: application,\n title: 'Rollback ' + serverGroup.name,\n modalInstance: $uibModalInstance,\n });\n\n this.rollback = function () {\n if (!this.isValid()) {\n return;\n }\n\n const submitMethod = function () {\n return serverGroupWriter.rollbackServerGroup(serverGroup, application, $scope.command);\n };\n\n $scope.taskMonitor.submit(submitMethod);\n };\n\n this.cancel = function () {\n $uibModalInstance.dismiss();\n };\n\n this.label = function (serverGroup) {\n if (!serverGroup) {\n return '';\n }\n\n if (!serverGroup.buildInfo || !serverGroup.buildInfo.images) {\n return serverGroup.name;\n }\n\n let imageName = serverGroup.buildInfo.images[0];\n if (imageName.indexOf('/') > 0) {\n imageName = imageName.substring(imageName.indexOf('/') + 1);\n }\n\n return serverGroup.name + ' (' + imageName + ')';\n };\n\n this.group = function (serverGroup) {\n return serverGroup.isDisabled ? 'Disabled Server Groups' : 'Enabled Server Groups';\n };\n },\n ],\n);\n","import React from 'react';\n\nimport { PolicyTypeSelectionModal } from '@spinnaker/amazon';\nimport type { Application, IServerGroup } from '@spinnaker/core';\nimport { AccountService, ReactModal } from '@spinnaker/core';\n\nimport { TitusReactInjector } from '../../../reactShims';\nimport type { IUpsertTargetTrackingModalProps } from './targetTracking/UpsertTargetTrackingModal';\nimport { UpsertTargetTrackingModal } from './targetTracking/UpsertTargetTrackingModal';\nimport type { IUpsertScalingPolicyModalProps } from './upsert/UpsertScalingPolicyModal';\nimport { UpsertScalingPolicyModal } from './upsert/UpsertScalingPolicyModal';\n\nexport interface ICreateScalingPolicyButtonProps {\n application: Application;\n serverGroup: IServerGroup;\n}\n\nexport interface ICreateScalingPolicyButtonState {\n showSelection: boolean;\n showModal: boolean;\n typeSelection: string;\n awsAccount: string;\n}\n\nexport class CreateScalingPolicyButton extends React.Component<\n ICreateScalingPolicyButtonProps,\n ICreateScalingPolicyButtonState\n> {\n constructor(props: ICreateScalingPolicyButtonProps) {\n super(props);\n this.state = {\n showSelection: false,\n showModal: false,\n typeSelection: null,\n awsAccount: null,\n };\n AccountService.getAccountDetails(props.serverGroup.account).then((details) => {\n this.setState({ awsAccount: details.awsAccount });\n });\n }\n\n public handleClick = (): void => {\n this.setState({ showSelection: true });\n };\n\n public createStepPolicy(): void {\n const { serverGroup, application } = this.props;\n\n const upsertProps = {\n app: application,\n policy: TitusReactInjector.titusServerGroupTransformer.constructNewStepScalingPolicyTemplate(serverGroup),\n serverGroup,\n } as IUpsertScalingPolicyModalProps;\n const modalProps = { dialogClassName: 'wizard-modal modal-lg' };\n ReactModal.show(UpsertScalingPolicyModal, upsertProps, modalProps);\n }\n\n public createTargetTrackingPolicy(): void {\n const { serverGroup, application } = this.props;\n const upsertProps = {\n app: application,\n policy: TitusReactInjector.titusServerGroupTransformer.constructNewTargetTrackingPolicyTemplate(serverGroup),\n serverGroup,\n } as IUpsertTargetTrackingModalProps;\n const modalProps = { dialogClassName: 'wizard-modal modal-lg' };\n ReactModal.show(UpsertTargetTrackingModal, upsertProps, modalProps);\n }\n\n public typeSelected = (typeSelection: string): void => {\n this.setState({ typeSelection, showSelection: false, showModal: true });\n if (typeSelection === 'step') {\n this.createStepPolicy();\n }\n if (typeSelection === 'targetTracking') {\n this.createTargetTrackingPolicy();\n }\n };\n\n public showModalCallback = (): void => {\n this.setState({ showSelection: false, showModal: false, typeSelection: null });\n };\n\n public render() {\n const { min, max } = this.props.serverGroup.capacity;\n return (\n <div>\n {this.state.awsAccount ? (\n <a className=\"clickable\" onClick={this.handleClick}>\n Create new scaling policy\n </a>\n ) : null}\n {this.state.showSelection && (\n <PolicyTypeSelectionModal\n warnOnMinMaxCapacity={min === max}\n typeSelectedCallback={this.typeSelected}\n showCallback={this.showModalCallback}\n />\n )}\n </div>\n );\n }\n}\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { CreateScalingPolicyButton } from './CreateScalingPolicyButton';\n\nexport const TITUS_CREATE_SCALING_POLICY_BUTTON = 'spinnaker.titus.serverGroup.details.scaling.policy.button';\nmodule(TITUS_CREATE_SCALING_POLICY_BUTTON, []).component(\n 'titusCreateScalingPolicyButton',\n react2angular(withErrorBoundary(CreateScalingPolicyButton, 'titusCreateScalingPolicyButton'), [\n 'application',\n 'serverGroup',\n ]),\n);\n","import type * as React from 'react';\nimport type { Application, IServerGroup } from '@spinnaker/core';\nimport { overridableComponent } from '@spinnaker/core';\n\nexport interface ITitusCustomScalingPolicyProps {\n application: Application;\n serverGroup: IServerGroup;\n}\n\nexport const TitusCustomScalingPolicy: React.ComponentType<ITitusCustomScalingPolicyProps> = overridableComponent(\n () => null,\n 'titus.serverGroup.details.customScaling',\n);\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { TitusCustomScalingPolicy } from './TitusCustomScalingPolicy';\n\nexport const TITUS_SERVERGROUP_CUSTOM_SCALING_COMPONENT =\n 'spinnaker.application.titus.serverGroup.customScaling.component';\n\nmodule(TITUS_SERVERGROUP_CUSTOM_SCALING_COMPONENT, []).component(\n 'titusCustomScalingPolicy',\n react2angular(withErrorBoundary(TitusCustomScalingPolicy, 'titusCustomScalingPolicy'), [\n 'application',\n 'serverGroup',\n ]),\n);\n","import { module } from 'angular';\n\nimport { TITUS_CREATE_SCALING_POLICY_BUTTON } from './createScalingPolicyButton.component';\nimport { TITUS_SERVERGROUP_CUSTOM_SCALING_COMPONENT } from './titusCustomScalingPolicy.component';\n\nexport const SCALING_POLICY_MODULE = 'spinnaker.titus.scalingPolicy.module';\nmodule(SCALING_POLICY_MODULE, [TITUS_CREATE_SCALING_POLICY_BUTTON, TITUS_SERVERGROUP_CUSTOM_SCALING_COMPONENT]);\n","import { module } from 'angular';\nimport React from 'react';\nimport { react2angular } from 'react2angular';\n\nimport type { Application, IModalComponentProps } from '@spinnaker/core';\nimport {\n ChecklistInput,\n FormikFormField,\n ReactModal,\n robotToHuman,\n TaskMonitorModal,\n TextAreaInput,\n withErrorBoundary,\n} from '@spinnaker/core';\n\nimport { enabledProcesses } from './ServiceJobProcesses';\nimport type { ITitusServerGroup } from '../../../domain';\nimport type { ITitusServiceJobProcesses } from '../../../domain/ITitusServiceJobProcesses';\nimport type { ITitusServerGroupDetailsSectionProps } from '../sections/ITitusServerGroupDetailsSectionProps';\n\ninterface IEditTitusServiceJobProcessesValues {\n serviceJobProcesses: string[];\n reason?: string;\n}\n\ninterface IEditTitusServiceJobProcessesModalProps extends IModalComponentProps {\n application: Application;\n serverGroup: ITitusServerGroup;\n}\n\nconst EditTitusServiceJobProcessesModal: React.SFC<IEditTitusServiceJobProcessesModalProps> = (modalProps) => {\n const { application, serverGroup } = modalProps;\n const { region, id: jobId, account: credentials, cloudProvider } = serverGroup;\n const enabledServiceJobProcesses = enabledProcesses(serverGroup.serviceJobProcesses);\n\n return (\n <TaskMonitorModal<IEditTitusServiceJobProcessesValues>\n {...modalProps}\n title={`Modify Service Job Processes for ${serverGroup.name}`}\n description={`Update Service Job Processes for ${serverGroup.name}`}\n initialValues={{ serviceJobProcesses: enabledServiceJobProcesses }}\n render={() => (\n <>\n <FormikFormField\n label=\"Service Job Processes\"\n name=\"serviceJobProcesses\"\n input={(props) => (\n <ChecklistInput\n {...props}\n options={Object.keys(serverGroup.serviceJobProcesses).map((value: string) => ({\n value,\n label: robotToHuman(value),\n }))}\n />\n )}\n />\n\n <FormikFormField\n label=\"Reason\"\n name=\"reason\"\n input={(props) => (\n <TextAreaInput\n {...props}\n rows={3}\n placeholder=\"(Optional) anything that might be helpful to explain the reason for this change; HTML is okay\"\n />\n )}\n />\n </>\n )}\n mapValuesToTask={({\n serviceJobProcesses: checkedServiceJobProcesses,\n reason,\n }: IEditTitusServiceJobProcessesValues) => ({\n job: [\n {\n type: 'updateJobProcesses',\n serviceJobProcesses: Object.keys(serverGroup.serviceJobProcesses).reduce((result, process) => {\n result[process] = checkedServiceJobProcesses.includes(process) ? true : false;\n return result;\n }, {} as ITitusServiceJobProcesses),\n reason,\n region,\n jobId,\n credentials,\n cloudProvider,\n },\n ],\n application: application.name,\n })}\n />\n );\n};\n\nexport class ServiceJobProcessesSection extends React.Component<ITitusServerGroupDetailsSectionProps> {\n private toggleServiceJobProcesses = (): void => {\n const { app: application, serverGroup } = this.props;\n\n ReactModal.show(EditTitusServiceJobProcessesModal, {\n application,\n serverGroup,\n } as IEditTitusServiceJobProcessesModalProps);\n };\n\n public render() {\n const { serviceJobProcesses } = this.props.serverGroup;\n return (\n <>\n <ul className=\"scaling-processes\">\n {Object.keys(serviceJobProcesses).map((process) => (\n <li key={process}>\n <span\n style={{ visibility: serviceJobProcesses[process] ? 'visible' : 'hidden' }}\n className=\"fa fa-check small\"\n />\n <span className={!serviceJobProcesses[process] ? 'text-disabled' : ''}>{robotToHuman(process)} </span>\n </li>\n ))}\n </ul>\n <a className=\"clickable\" onClick={this.toggleServiceJobProcesses}>\n Edit Service Job Processes\n </a>\n </>\n );\n }\n}\n\nexport const SERVICE_JOB_PROCESSES_DETAILS_SECTION = 'spinnaker.titus.servicejobprocesses.section';\n\nmodule(SERVICE_JOB_PROCESSES_DETAILS_SECTION, []).component(\n 'titusServiceJobProcessesSection',\n react2angular(withErrorBoundary(ServiceJobProcessesSection, 'titusServiceJobProcessesSection'), [\n 'serverGroup',\n 'app',\n ]),\n);\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { TitusPackageDetailsSection } from './TitusPackageDetailsSection';\n\nexport const TITUS_PACKAGE_DETAILS_SECTION = 'spinnaker.titus.serverGroup.details.packageDetails.component';\nmodule(TITUS_PACKAGE_DETAILS_SECTION, []).component(\n 'titusPackageDetailsSection',\n react2angular(withErrorBoundary(TitusPackageDetailsSection, 'titusPackageDetailsSection'), ['buildInfo']),\n);\n","import * as React from 'react';\nimport { CollapsibleSection, LabeledValue, LabeledValueList } from '@spinnaker/core';\nimport type { ITitusBuildInfo } from '../../domain';\n\nexport interface ITitusPackageDetailsSectionProps {\n buildInfo: ITitusBuildInfo;\n}\n\nexport const TitusPackageDetailsSection = ({ buildInfo }: ITitusPackageDetailsSectionProps) => {\n const packageInfo = buildInfo.jenkins || {};\n const hasPackageInfo = Boolean(Object.keys(packageInfo).length);\n\n const { commitId, host, name, number, version } = packageInfo;\n const jenkinsLink = `${host}job/${name}/${number}`;\n\n return (\n <CollapsibleSection heading=\"Package\">\n {!hasPackageInfo && <div>No package information available.</div>}\n {hasPackageInfo && (\n <LabeledValueList className=\"horizontal-when-filters-collapsed\">\n {name && <LabeledValue label=\"Job\" value={name} />}\n {buildInfo.docker?.image && <LabeledValue label=\"Image Name\" value={buildInfo.docker?.image} />}\n {number && <LabeledValue label=\"Build\" value={number} />}\n {commitId && <LabeledValue label=\"Commit\" value={commitId.substring(0, 8)} />}\n {version && <LabeledValue label=\"Version\" value={version} />}\n {host && (\n <LabeledValue\n label=\"Build Link\"\n value={\n <a target=\"_blank\" href={jenkinsLink}>\n {jenkinsLink}\n </a>\n }\n />\n )}\n </LabeledValueList>\n )}\n </CollapsibleSection>\n );\n};\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { TitusSecurityGroupsDetailsSection } from './TitusSecurityGroups';\n\nexport const TITUS_SECURITY_GROUPS_DETAILS = 'spinnaker.titus.serverGroup.details.securityGroups.component';\nmodule(TITUS_SECURITY_GROUPS_DETAILS, []).component(\n 'titusSecurityGroups',\n react2angular(withErrorBoundary(TitusSecurityGroupsDetailsSection, 'titusSecurityGroups'), ['app', 'serverGroup']),\n);\n","'use strict';\n\nimport UIROUTER_ANGULARJS from '@uirouter/angularjs';\nimport * as angular from 'angular';\nimport _ from 'lodash';\n\nimport {\n AccountService,\n ClusterTargetBuilder,\n ConfirmationModalService,\n confirmNotManaged,\n ReactModal,\n SERVER_GROUP_WRITER,\n ServerGroupReader,\n ServerGroupWarningMessageService,\n SETTINGS,\n} from '@spinnaker/core';\n\nimport { TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER } from '../configure/ServerGroupCommandBuilder';\nimport { TitusCloneServerGroupModal } from '../configure/wizard/TitusCloneServerGroupModal';\nimport { DISRUPTION_BUDGET_DETAILS_SECTION } from './disruptionBudget/DisruptionBudgetSection';\nimport { TitusReactInjector } from '../../reactShims';\nimport { TitusResizeServerGroupModal } from './resize/TitusResizeServerGroupModal';\nimport { TITUS_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER } from './rollback/rollbackServerGroup.controller';\nimport { SCALING_POLICY_MODULE } from './scalingPolicy/scalingPolicy.module';\nimport { SERVICE_JOB_PROCESSES_DETAILS_SECTION } from './serviceJobProcesses/ServiceJobProcessesSection';\nimport { TITUS_PACKAGE_DETAILS_SECTION } from './titusPackageDetailsSection.component';\nimport { TITUS_SECURITY_GROUPS_DETAILS } from './titusSecurityGroups.component';\n\nexport const TITUS_SERVERGROUP_DETAILS_SERVERGROUPDETAILS_TITUS_CONTROLLER =\n 'spinnaker.serverGroup.details.titus.controller';\nexport const name = TITUS_SERVERGROUP_DETAILS_SERVERGROUPDETAILS_TITUS_CONTROLLER; // for backwards compatibility\nangular\n .module(TITUS_SERVERGROUP_DETAILS_SERVERGROUPDETAILS_TITUS_CONTROLLER, [\n UIROUTER_ANGULARJS,\n TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER,\n DISRUPTION_BUDGET_DETAILS_SECTION,\n SERVER_GROUP_WRITER,\n TITUS_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER,\n SERVICE_JOB_PROCESSES_DETAILS_SECTION,\n SCALING_POLICY_MODULE,\n TITUS_SECURITY_GROUPS_DETAILS,\n TITUS_PACKAGE_DETAILS_SECTION,\n ])\n .controller('titusServerGroupDetailsCtrl', [\n '$scope',\n '$state',\n '$templateCache',\n '$interpolate',\n 'app',\n 'serverGroup',\n 'titusServerGroupCommandBuilder',\n '$uibModal',\n 'serverGroupWriter',\n 'awsServerGroupTransformer',\n function (\n $scope,\n $state,\n $templateCache,\n $interpolate,\n app,\n serverGroup,\n titusServerGroupCommandBuilder,\n $uibModal,\n serverGroupWriter,\n awsServerGroupTransformer,\n ) {\n const application = app;\n this.application = app;\n\n $scope.gateUrl = SETTINGS.gateUrl;\n\n $scope.state = {\n loading: true,\n };\n\n function extractServerGroupSummary() {\n const summary = _.find(application.serverGroups.data, function (toCheck) {\n return (\n toCheck.name === serverGroup.name &&\n toCheck.account === serverGroup.accountId &&\n toCheck.region === serverGroup.region\n );\n });\n return summary;\n }\n\n function retrieveServerGroup() {\n const summary = extractServerGroupSummary();\n return ServerGroupReader.getServerGroup(\n application.name,\n serverGroup.accountId,\n serverGroup.region,\n serverGroup.name,\n ).then(function (details) {\n cancelLoader();\n\n // it's possible the summary was not found because the clusters are still loading\n details.account = serverGroup.accountId;\n\n AccountService.getAccountDetails(details.account).then((accountDetails) => {\n details.apiEndpoint = _.filter(accountDetails.regions, { name: details.region })[0].endpoint;\n });\n\n $scope.buildInfo = details.buildInfo;\n\n angular.extend(details, summary);\n\n $scope.serverGroup = details;\n const labels = $scope.serverGroup.labels;\n delete labels['name'];\n delete labels['source'];\n delete labels['spinnakerAccount'];\n\n delete labels[''];\n\n Object.keys(labels).forEach((key) => {\n if (key.startsWith('titus.')) {\n delete labels[key];\n }\n });\n\n $scope.labels = labels;\n\n transformScalingPolicies(details);\n\n if (!_.isEmpty($scope.serverGroup)) {\n configureEntityTagTargets();\n } else {\n autoClose();\n }\n }, autoClose);\n }\n\n function transformScalingPolicies(serverGroup) {\n serverGroup.scalingPolicies = (serverGroup.scalingPolicies || [])\n .map((p) => {\n const { policy } = p;\n const { stepPolicyDescriptor, targetPolicyDescriptor } = policy;\n const policyType = stepPolicyDescriptor ? 'StepScaling' : 'TargetTrackingScaling';\n if (stepPolicyDescriptor) {\n const alarm = stepPolicyDescriptor.alarmConfig;\n alarm.period = alarm.periodSec;\n alarm.namespace = alarm.metricNamespace;\n alarm.disableEditingDimensions = true;\n if (alarm.metricNamespace === 'NFLX/EPIC' && !alarm.dimensions) {\n // NOTE: Titus creates the step scaling policy with these dimensions\n // TODO: Remove this once Titus supports configuring dimensions\n alarm.dimensions = [{ name: 'AutoScalingGroupName', value: serverGroup.name }];\n }\n if (!alarm.dimensions) {\n alarm.dimensions = [];\n }\n const policy = _.cloneDeep(stepPolicyDescriptor.scalingPolicy);\n policy.cooldown = policy.cooldownSec;\n policy.policyType = policyType;\n policy.alarms = [alarm];\n policy.id = p.id;\n if (policy.stepAdjustments) {\n policy.stepAdjustments.forEach((step) => {\n // gRPC currently returns these values in upper camel case\n step.metricIntervalUpperBound = _.get(\n step,\n 'metricIntervalUpperBound',\n step.MetricIntervalUpperBound,\n );\n step.metricIntervalLowerBound = _.get(\n step,\n 'metricIntervalLowerBound',\n step.MetricIntervalLowerBound,\n );\n });\n }\n return policy;\n } else {\n const { customizedMetricSpecification } = targetPolicyDescriptor;\n if (customizedMetricSpecification.dimensions === undefined) {\n customizedMetricSpecification.dimensions = [];\n }\n policy.id = p.id;\n policy.targetTrackingConfiguration = policy.targetPolicyDescriptor;\n policy.targetTrackingConfiguration.scaleOutCooldown =\n policy.targetTrackingConfiguration.scaleOutCooldownSec;\n policy.targetTrackingConfiguration.scaleInCooldown =\n policy.targetTrackingConfiguration.scaleInCooldownSec;\n return policy;\n }\n })\n .map((p) => awsServerGroupTransformer.transformScalingPolicy(p));\n }\n\n function autoClose() {\n if ($scope.$$destroyed) {\n return;\n }\n $state.go('^', { allowModalToStayOpen: true }, { location: 'replace' });\n }\n\n function cancelLoader() {\n $scope.state.loading = false;\n }\n\n retrieveServerGroup()\n .then(() => {\n // If the user navigates away from the view before the initial retrieveServerGroup call completes,\n // do not bother subscribing to the refresh\n if (!$scope.$$destroyed) {\n app.serverGroups.onRefresh($scope, retrieveServerGroup);\n }\n })\n .catch(() => {});\n\n AccountService.getAccountDetails(serverGroup.accountId).then((details) => {\n const awsAccount = details.awsAccount;\n $scope.titusUiEndpoint = _.filter(details.regions, { name: serverGroup.region })[0].endpoint;\n AccountService.getAccountDetails(awsAccount).then((awsDetails) => {\n this.awsAccountId = awsDetails.accountId;\n this.env = awsDetails.environment;\n });\n });\n\n const configureEntityTagTargets = () => {\n this.entityTagTargets = ClusterTargetBuilder.buildClusterTargets($scope.serverGroup);\n };\n\n this.destroyServerGroup = function destroyServerGroup() {\n const serverGroup = $scope.serverGroup;\n\n const taskMonitor = {\n application: application,\n title: 'Destroying ' + serverGroup.name,\n onTaskComplete: function () {\n if ($state.includes('**.serverGroup', stateParams)) {\n $state.go('^');\n }\n },\n };\n\n const submitMethod = function () {\n return serverGroupWriter.destroyServerGroup(serverGroup, application, {\n cloudProvider: 'titus',\n serverGroupName: serverGroup.name,\n region: serverGroup.region,\n });\n };\n\n const stateParams = {\n name: serverGroup.name,\n accountId: serverGroup.account,\n region: serverGroup.region,\n };\n\n const confirmationModalParams = {\n header: 'Really destroy ' + serverGroup.name + '?',\n buttonText: 'Destroy ' + serverGroup.name,\n account: serverGroup.account,\n taskMonitorConfig: taskMonitor,\n platformHealthOnlyShowOverride: app.attributes.platformHealthOnlyShowOverride,\n platformHealthType: 'Titus',\n submitMethod: submitMethod,\n };\n\n ServerGroupWarningMessageService.addDestroyWarningMessage(app, serverGroup, confirmationModalParams);\n\n confirmNotManaged(serverGroup, app).then(\n (notManaged) => notManaged && ConfirmationModalService.confirm(confirmationModalParams),\n );\n };\n\n this.disableServerGroup = function disableServerGroup() {\n const serverGroup = $scope.serverGroup;\n\n const taskMonitor = {\n application: application,\n title: 'Disabling ' + serverGroup.name,\n };\n\n const submitMethod = function () {\n return serverGroupWriter.disableServerGroup(serverGroup, application, {\n cloudProvider: 'titus',\n serverGroupName: serverGroup.name,\n region: serverGroup.region,\n zone: serverGroup.zones[0],\n });\n };\n\n const confirmationModalParams = {\n header: 'Really disable ' + serverGroup.name + '?',\n buttonText: 'Disable ' + serverGroup.name,\n account: serverGroup.account,\n taskMonitorConfig: taskMonitor,\n platformHealthOnlyShowOverride: app.attributes.platformHealthOnlyShowOverride,\n platformHealthType: 'Titus',\n submitMethod: submitMethod,\n };\n\n ServerGroupWarningMessageService.addDisableWarningMessage(app, serverGroup, confirmationModalParams);\n\n confirmNotManaged(serverGroup, app).then(\n (notManaged) => notManaged && ConfirmationModalService.confirm(confirmationModalParams),\n );\n };\n\n this.enableServerGroup = () => {\n confirmNotManaged(serverGroup, app).then((notManaged) => {\n if (!notManaged) {\n return;\n }\n if (!this.isRollbackEnabled()) {\n this.showEnableServerGroupModal();\n return;\n }\n\n const confirmationModalParams = {\n header: 'Rolling back?',\n body: `Spinnaker provides an orchestrated rollback feature to carefully restore a different version of this\n server group. Do you want to use the orchestrated rollback?`,\n buttonText: `Yes, take me to the rollback settings modal`,\n cancelButtonText: 'No, I just want to enable the server group',\n };\n\n ConfirmationModalService.confirm(confirmationModalParams)\n // Wait for the confirmation modal to go away first to avoid react/angular bootstrap fighting\n // over the body.modal-open class\n .then(() => new Promise((resolve) => setTimeout(resolve, 500)))\n .then(() => this.rollbackServerGroup())\n .catch(({ source }) => {\n // don't show the enable modal if the user cancels with the header button\n if (source === 'footer') {\n this.showEnableServerGroupModal();\n }\n });\n });\n };\n\n this.resizeServerGroup = () => {\n confirmNotManaged(serverGroup, app).then((notManaged) => {\n notManaged && ReactModal.show(TitusResizeServerGroupModal, { serverGroup: $scope.serverGroup, application });\n });\n };\n\n this.showEnableServerGroupModal = () => {\n const serverGroup = $scope.serverGroup;\n\n const taskMonitor = {\n application: application,\n title: 'Enabling ' + serverGroup.name,\n };\n\n const submitMethod = function () {\n return serverGroupWriter.enableServerGroup(serverGroup, application, {\n cloudProvider: 'titus',\n serverGroupName: serverGroup.name,\n region: serverGroup.region,\n zone: serverGroup.zones[0],\n });\n };\n\n const confirmationModalParams = {\n header: 'Really enable ' + serverGroup.name + '?',\n buttonText: 'Enable ' + serverGroup.name,\n account: serverGroup.account,\n taskMonitorConfig: taskMonitor,\n platformHealthOnlyShowOverride: app.attributes.platformHealthOnlyShowOverride,\n platformHealthType: 'Titus',\n submitMethod: submitMethod,\n };\n\n ConfirmationModalService.confirm(confirmationModalParams);\n };\n\n this.cloneServerGroup = function cloneServerGroup() {\n TitusReactInjector.titusServerGroupCommandBuilder\n .buildServerGroupCommandFromExisting(application, $scope.serverGroup)\n .then((command) => {\n const title = `Clone ${serverGroup.name}`;\n TitusCloneServerGroupModal.show({ title, application, command });\n });\n };\n\n this.isRollbackEnabled = function rollbackServerGroup() {\n const serverGroup = $scope.serverGroup;\n if (!serverGroup.isDisabled) {\n // enabled server groups are always a candidate for rollback\n return true;\n }\n\n // if the server group selected for rollback is disabled, ensure that at least one enabled server group exists\n return application\n .getDataSource('serverGroups')\n .data.some(\n (g) =>\n g.cluster === serverGroup.cluster &&\n g.region === serverGroup.region &&\n g.account === serverGroup.account &&\n g.isDisabled === false,\n );\n };\n\n this.rollbackServerGroup = function rollbackServerGroup() {\n let serverGroup = $scope.serverGroup;\n\n let previousServerGroup;\n let allServerGroups = app\n .getDataSource('serverGroups')\n .data.filter(\n (g) =>\n g.cluster === serverGroup.cluster && g.region === serverGroup.region && g.account === serverGroup.account,\n );\n\n if (serverGroup.isDisabled) {\n // if the selected server group is disabled, it represents the server group that should be _rolled back to_\n previousServerGroup = serverGroup;\n\n /*\n * Find an existing server group to rollback, prefer the largest enabled server group.\n *\n * isRollbackEnabled() ensures that at least one enabled server group exists.\n */\n serverGroup = _.orderBy(\n allServerGroups.filter((g) => g.name !== previousServerGroup.name && !g.isDisabled),\n ['instanceCounts.total', 'createdTime'],\n ['desc', 'desc'],\n )[0];\n }\n\n // the set of all server groups should not include the server group selected for rollback\n allServerGroups = allServerGroups.filter((g) => g.name !== serverGroup.name);\n\n if (allServerGroups.length === 1 && !previousServerGroup) {\n // if there is only one other server group, default to it being the rollback target\n previousServerGroup = allServerGroups[0];\n }\n\n confirmNotManaged(serverGroup, app).then((notManaged) => {\n notManaged &&\n $uibModal.open({\n templateUrl: require('./rollback/rollbackServerGroup.html'),\n controller: 'titusRollbackServerGroupCtrl as ctrl',\n resolve: {\n serverGroup: () => serverGroup,\n previousServerGroup: () => previousServerGroup,\n disabledServerGroups: () => {\n const cluster = _.find(application.clusters, {\n name: serverGroup.cluster,\n account: serverGroup.account,\n });\n return _.filter(cluster.serverGroups, { isDisabled: true, region: serverGroup.region });\n },\n allServerGroups: () => allServerGroups,\n application: () => application,\n },\n });\n });\n };\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\nimport _ from 'lodash';\n\nimport { AccountService } from '@spinnaker/core';\n\nexport const TITUS_SERVERGROUP_SERVERGROUP_TRANSFORMER = 'spinnaker.titus.serverGroup.transformer';\nexport const name = TITUS_SERVERGROUP_SERVERGROUP_TRANSFORMER; // for backwards compatibility\nmodule(TITUS_SERVERGROUP_SERVERGROUP_TRANSFORMER, []).factory('titusServerGroupTransformer', [\n '$q',\n function ($q) {\n function normalizeServerGroup(serverGroup) {\n return AccountService.getCredentialsKeyedByAccount('titus').then((credentialsKeyedByAccount) => {\n if (serverGroup.account && credentialsKeyedByAccount[serverGroup.account]) {\n serverGroup.awsAccount = credentialsKeyedByAccount[serverGroup.account].awsAccount;\n }\n return serverGroup;\n });\n }\n\n function convertServerGroupCommandToDeployConfiguration(base) {\n // use _.defaults to avoid copying the backingData, which is huge and expensive to copy over\n const command = _.defaults({ backingData: [], viewState: [] }, base);\n if (base.viewState.mode !== 'clone') {\n delete command.source;\n }\n command.account = command.credentials;\n\n if (!command.efs.mountPoint || !command.efs.efsId || !command.efs.mountPerm) {\n delete command.efs;\n }\n\n delete command.viewState;\n delete command.backingData;\n delete command.selectedProvider;\n return command;\n }\n\n function constructNewStepScalingPolicyTemplate(serverGroup) {\n return {\n alarms: [\n {\n namespace: 'NFLX/EPIC',\n metricName: '',\n threshold: 50,\n statistic: 'Average',\n comparisonOperator: 'GreaterThanThreshold',\n evaluationPeriods: 1,\n disableEditingDimensions: true,\n dimensions: [{ name: 'AutoScalingGroupName', value: serverGroup.name }],\n period: 60,\n },\n ],\n adjustmentType: 'ChangeInCapacity',\n stepAdjustments: [\n {\n scalingAdjustment: 1,\n metricIntervalLowerBound: 0,\n },\n ],\n cooldown: 300,\n };\n }\n\n function constructNewTargetTrackingPolicyTemplate(serverGroup) {\n return {\n alarms: [],\n targetTrackingConfiguration: {\n targetValue: null,\n disableScaleIn: false,\n customizedMetricSpecification: {\n namespace: 'NFLX/EPIC',\n metricName: '',\n dimensions: [{ name: 'AutoScalingGroupName', value: serverGroup.name }],\n },\n scaleInCooldown: 300,\n scaleOutCooldown: 300,\n },\n };\n }\n\n return {\n convertServerGroupCommandToDeployConfiguration,\n normalizeServerGroup,\n constructNewStepScalingPolicyTemplate,\n constructNewTargetTrackingPolicyTemplate,\n };\n },\n]);\n","import type { IApplicationNameValidator } from '@spinnaker/core';\nimport { ApplicationNameValidator, FirewallLabels } from '@spinnaker/core';\n\nclass TitusApplicationNameValidator implements IApplicationNameValidator {\n private validateSpecialCharacters(name: string, errors: string[]): void {\n const pattern = /^[a-zA-Z_0-9.]*$/g;\n if (!pattern.test(name)) {\n errors.push('Only dot(.) and underscore(_) special characters are allowed.');\n }\n }\n\n private validateLength(name: string, warnings: string[], errors: string[]): void {\n if (name.length > 250) {\n errors.push('The maximum length for an application in Titus is 250 characters.');\n return;\n }\n if (name.length > 240) {\n if (name.length >= 248) {\n warnings.push(\n `You will not be able to include a stack or detail field for clusters or ${FirewallLabels.get('firewalls')}.`,\n );\n } else {\n const remaining = 248 - name.length;\n warnings.push(`If you plan to include a stack or detail field for clusters, you will only\n have ~${remaining} characters to do so.`);\n }\n }\n }\n\n public validate(name = '') {\n const warnings: string[] = [];\n const errors: string[] = [];\n\n if (name && name.length) {\n this.validateSpecialCharacters(name, errors);\n this.validateLength(name, warnings, errors);\n }\n\n return { warnings, errors };\n }\n}\n\nApplicationNameValidator.registerValidator('titus', new TitusApplicationNameValidator());\n","import { module } from 'angular';\n\nimport { AmazonLoadBalancersTag } from '@spinnaker/amazon';\nimport { CloudProviderRegistry, DeploymentStrategyRegistry } from '@spinnaker/core';\n\nimport './help/titus.help';\nimport { TitusInstanceDetails } from './instance/details/TitusInstanceDetails';\nimport titusLogo from './logo/titus.logo.png';\nimport { TITUS_PIPELINE_STAGES_CLONESERVERGROUP_TITUSCLONESERVERGROUPSTAGE } from './pipeline/stages/cloneServerGroup/titusCloneServerGroupStage';\nimport { TITUS_PIPELINE_STAGES_DESTROYASG_TITUSDESTROYASGSTAGE } from './pipeline/stages/destroyAsg/titusDestroyAsgStage';\nimport { TITUS_PIPELINE_STAGES_DISABLEASG_TITUSDISABLEASGSTAGE } from './pipeline/stages/disableAsg/titusDisableAsgStage';\nimport { TITUS_PIPELINE_STAGES_DISABLECLUSTER_TITUSDISABLECLUSTERSTAGE } from './pipeline/stages/disableCluster/titusDisableClusterStage';\nimport { TITUS_PIPELINE_STAGES_ENABLEASG_TITUSENABLEASGSTAGE } from './pipeline/stages/enableAsg/titusEnableAsgStage';\nimport { TITUS_PIPELINE_STAGES_FINDAMI_TITUSFINDAMISTAGE } from './pipeline/stages/findAmi/titusFindAmiStage';\nimport { TITUS_PIPELINE_STAGES_RESIZEASG_TITUSRESIZEASGSTAGE } from './pipeline/stages/resizeAsg/titusResizeAsgStage';\nimport './pipeline/stages/runJob/titusRunJobStage';\nimport { TITUS_PIPELINE_STAGES_SCALEDOWNCLUSTER_TITUSSCALEDOWNCLUSTERSTAGE } from './pipeline/stages/scaleDownCluster/titusScaleDownClusterStage';\nimport { TITUS_PIPELINE_STAGES_SHRINKCLUSTER_TITUSSHRINKCLUSTERSTAGE } from './pipeline/stages/shrinkCluster/titusShrinkClusterStage';\nimport { TITUS_REACT_MODULE } from './reactShims/titus.react.module';\nimport { TITUS_SECURITYGROUP_SECURITYGROUP_READ_SERVICE } from './securityGroup/securityGroup.read.service';\nimport { TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER } from './serverGroup/configure/ServerGroupCommandBuilder';\nimport { TITUS_SERVERGROUP_CONFIGURE_SERVERGROUP_CONFIGURE_TITUS_MODULE } from './serverGroup/configure/serverGroup.configure.titus.module';\nimport { TitusCloneServerGroupModal } from './serverGroup/configure/wizard/TitusCloneServerGroupModal';\nimport {\n TitusTargetTrackingChart,\n TitusUpsertScalingPolicyModal,\n TitusUpsertTargetTrackingModal,\n} from './serverGroup/details';\nimport { TITUS_SERVERGROUP_DETAILS_CAPACITYDETAILSSECTION } from './serverGroup/details/capacityDetailsSection.component';\nimport { TITUS_SERVERGROUP_DETAILS_LAUNCHCONFIGSECTION } from './serverGroup/details/launchConfigSection.component';\nimport { TITUS_SERVERGROUP_DETAILS_SERVERGROUPDETAILS_TITUS_CONTROLLER } from './serverGroup/details/serverGroupDetails.titus.controller';\nimport { TITUS_SERVERGROUP_SERVERGROUP_TRANSFORMER } from './serverGroup/serverGroup.transformer';\nimport './validation/ApplicationNameValidator';\n\nimport './logo/titus.logo.less';\n\nexport const TITUS_MODULE = 'spinnaker.titus';\nmodule(TITUS_MODULE, [\n TITUS_REACT_MODULE,\n TITUS_SECURITYGROUP_SECURITYGROUP_READ_SERVICE,\n TITUS_SERVERGROUP_DETAILS_SERVERGROUPDETAILS_TITUS_CONTROLLER,\n TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER,\n TITUS_SERVERGROUP_CONFIGURE_SERVERGROUP_CONFIGURE_TITUS_MODULE,\n TITUS_SERVERGROUP_SERVERGROUP_TRANSFORMER,\n TITUS_PIPELINE_STAGES_FINDAMI_TITUSFINDAMISTAGE,\n TITUS_PIPELINE_STAGES_ENABLEASG_TITUSENABLEASGSTAGE,\n TITUS_PIPELINE_STAGES_DISABLEASG_TITUSDISABLEASGSTAGE,\n TITUS_PIPELINE_STAGES_DESTROYASG_TITUSDESTROYASGSTAGE,\n TITUS_PIPELINE_STAGES_RESIZEASG_TITUSRESIZEASGSTAGE,\n TITUS_PIPELINE_STAGES_CLONESERVERGROUP_TITUSCLONESERVERGROUPSTAGE,\n TITUS_PIPELINE_STAGES_DISABLECLUSTER_TITUSDISABLECLUSTERSTAGE,\n TITUS_PIPELINE_STAGES_SHRINKCLUSTER_TITUSSHRINKCLUSTERSTAGE,\n TITUS_PIPELINE_STAGES_SCALEDOWNCLUSTER_TITUSSCALEDOWNCLUSTERSTAGE,\n TITUS_SERVERGROUP_DETAILS_CAPACITYDETAILSSECTION,\n TITUS_SERVERGROUP_DETAILS_LAUNCHCONFIGSECTION,\n]).config(() => {\n CloudProviderRegistry.registerProvider('titus', {\n name: 'Titus',\n logo: {\n path: titusLogo,\n },\n serverGroup: {\n transformer: 'titusServerGroupTransformer',\n detailsTemplateUrl: require('./serverGroup/details/serverGroupDetails.html'),\n detailsController: 'titusServerGroupDetailsCtrl',\n CloneServerGroupModal: TitusCloneServerGroupModal,\n commandBuilder: 'titusServerGroupCommandBuilder',\n configurationService: 'titusServerGroupConfigurationService',\n skipUpstreamStageCheck: true,\n checkForImageProviders: true,\n TargetTrackingChart: TitusTargetTrackingChart,\n UpsertStepPolicyModal: TitusUpsertScalingPolicyModal,\n UpsertTargetTrackingModal: TitusUpsertTargetTrackingModal,\n },\n securityGroup: {\n reader: 'titusSecurityGroupReader',\n useProvider: 'aws',\n },\n loadBalancer: {\n LoadBalancersTag: AmazonLoadBalancersTag,\n incompatibleLoadBalancerTypes: [\n {\n type: 'classic',\n reason: 'Classic Load Balancers cannot be used with Titus as they do not have IP based target groups.',\n },\n ],\n useProvider: 'aws',\n },\n instance: {\n details: TitusInstanceDetails,\n },\n });\n});\n\nDeploymentStrategyRegistry.registerProvider('titus', ['custom', 'redblack', 'monitored']);\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABGCAYAAAB7Xo6TAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAALEwAACxMBAJqcGAAABCVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV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9AgpWxz9DDp+NQ//ryOkTXttBm0VcMXNPfDqGRR8lMQmcHdnE8A9rs9hEOQ6kGzN5pm5JNTLJa2gILm1k9lckrxPXU7uhxhcAJf22sTltZf4I2LQnsWJTuDGr3HPH+lLN9Gkpag2O64P4oS8gze1udD146D2wP8H5JyTFz+hnOcAAAAASUVORK5CYII=\""],"names":["helpContents","titus.deploy.runtimeLimitSecs","titus.deploy.retries","titus.deploy.propertyFile","titus.deploy.iamProfile","titus.deploy.capacityGroup","titus.deploy.command","titus.deploy.entrypoint","titus.deploy.migrationPolicy","titus.deploy.network","titus.deploy.gpu","titus.deploy.softConstraints","titus.deploy.hardConstraints","titus.deploy.efs","titus.deploy.mountPoint","titus.deploy.efsId","titus.deploy.efsRelativeMountPoint","titus.job.waitForCompletion","titus.bake.fromGitTrigger","titus.bake.repositoryUrl","titus.bake.repositoryHash","titus.bake.repositoryBranch","titus.bake.repositoryDirectory","titus.bake.imageOrganization","titus.bake.imageName","titus.bake.tags","titus.bake.buildParameters","titus.serverGroup.subnet","titus.serverGroup.traffic","titus.deploy.imageId","titus.deploy.securityGroups","titus.job.capacityGroup","titus.job.securityGroups","titus.autoscaling.cooldown","titus.autoscaling.scaleIn.cooldown","titus.autoscaling.scaleOut.cooldown","titus.disruptionbudget.description","Object","keys","forEach","key","HelpContentsRegistry","register","TitusInstanceDns","containerIp","host","instancePort","ipv6Address","React","createElement","CollapsibleSection","heading","defaultExpanded","LabeledValueList","className","LabeledValue","label","value","Fragment","CopyToClipboard","text","toolTip","LinkWithClipboard","url","TitusInstanceInformation","instance","titusUiEndpoint","id","jobId","InstanceInformation","account","availabilityZone","instanceType","launchTime","provider","region","serverGroup","href","target","TitusReactInject","ReactInject","titusServerGroupTransformer","this","$injector","get","titusServerGroupCommandBuilder","titusServerGroupConfigurationService","titusSecurityGroupReader","[object Object]","TitusReactInjector","TitusSecurityGroupsDetailsSection","Component","props","super","state","configureSecurityGroups","app","securityGroupsIndex","accountDetails","securityGroups","map","sgId","resolveIndexedSecurityGroup","awsAccount","setState","AccountService","listAllAccounts","then","accounts","titusAccount","find","a","name","ReactInjector","securityGroupReader","getAllSecurityGroups","allSecurityGroups","regionalGroups","rg","filter","g","sg","vpcId","nextProps","initializing","length","FirewallLabels","outerDivClassName","UIRouterContextComponent","sortBy","securityGroup","UISref","to","params","accountId","applyTargetGroupInfoToHealthMetric","metricGroups","targetGroups","tg","_a","group","targetGroupName","useTrafficPort","healthCheckPort","healthCheckPath","port","healthCheckProtocol","toLowerCase","extractHealthMetrics","health","loadBalancers","displayableMetrics","m","allTargetGroups","getAllTargetGroups","metric","type","augmentedGroups","terminateInstance","taskMonitorConfig","application","title","onTaskComplete","$state","includes","go","ConfirmationModalService","confirm","header","buttonText","submitMethod","cloudProvider","serverGroupName","InstanceWriter","terminateInstanceAndShrinkServerGroup","instanceId","terminateInstancesAndShrinkServerGroups","instanceIds","instances","enableInstanceInDiscovery","disableInstanceInDiscovery","buildTaskActions","taskActions","triggerAction","discoveryHealth","h","push","some","OverridableTitusInstanceDetailsContent","overridableComponent","actions","baseIpAddress","environment","healthMetrics","loading","moniker","_b","_c","defaultSshLink","bastionHost","InstanceDetailsHeader","healthState","sshLink","standalone","isStandalone","InstanceActions","Boolean","insightActions","InstanceInsights","analytics","insights","InstanceStatus","metricTypes","privateIpAddress","placement","ConsoleOutputLink","InstanceLinks","address","TitusInstanceDetails","serverGroups","data","possibleMatch","retrieveInstance","RecentHistoryService","addExtraDataToLatest","Promise","all","InstanceReader","getInstanceDetails","instance2","getAccountDetails","addTitusUiEndpoint","result","account2","regionDetails","regions","r","endpoint","currentInstance","currentAccount","status","useData","ready","isLoading","attributes","SETTINGS","defaultInstancePort","InstanceDetailsPane","Spinner","size","module","UIROUTER_ANGULARJS","controller","$scope","$stateParams","executionDetailsSectionService","configSections","initialized","resultObjects","context","detailsSection","details","stage","results","deployedArtifacts","_","serverGroupNameAndRegion","split","credentials","project","UrlBuilder","buildFromMetadata","addDeployedArtifacts","deployed","overrideFiltersForUrl","ClusterState","filterService","initialize","synchronizeSection","$on","config","Registry","pipeline","registerStage","provides","executionDetailsUrl","executionStepLabelUrl","validators","viewState","accountsLoaded","cloneTargets","StageConstants","cloudProviderType","mode","interestingHealthProviderNames","defaultCredentials","targetClusterUpdated","targetCluster","stack","freeFormDetails","capacity","toggleSuspendedProcess","suspendedProcesses","processIndex","splice","onRedBlackFieldChange","set","window","angular","run","templateCache","alias","templateUrl","accountExtractor","configAccountExtractor","message","fieldName","fieldLabel","regionsLoaded","listAccounts","targets","titus","val","put","executionConfigSections","ctrl","reset","accountUpdated","resetSelectedCluster","isNew","remainingEnabledServerGroups","pluralize","str","preferLargerOverNewer","toString","TARGET_LIST","defaultRegions","selectionStrategies","description","selectionStrategy","onlyEnabled","$watch","resizeTargets","scaleActions","resizeTypes","resizeType","action","updateResizeType","scalePct","scaleNum","RunJobExecutionDetails","mounted","setEndpoint","cluster","entryPointList","entryPoint","Array","isArray","JSON","stringify","current","resources","env","taskId","normalizedEntryPoint","formatEntryPoint","ExecutionDetailsSection","AccountTag","imageId","Markdown","style","marginBottom","paddingBottom","propertyFileContents","RenderOutputFile","outputFileObject","StageFailureMessage","failureMessage","TitusSecurityGroupPicker","availableGroups","removedGroups","loaded","vpcs","clearRemoved","command","getCredentials","match","vpc","awsVpc","getRegion","newSecurityGroups","getAwsAccount","aws","chain","getVpcId","skipCommandReconfiguration","cacheInitializer","refreshCache","configureSecurityGroupOptions","getRegionalSecurityGroups","oldAvailableGroups","groupsToEdit","oldGroupNames","groupId","o","matchedGroups","groupName","matchedGroupNames","xor","onChange","sort","b","localeCompare","credentialLoader","getCredentialsKeyedByAccount","groupLoader","groups","vpcLoader","VpcReader","listVpcs","$q","hideLabel","amazonAccount","firewallsLabel","ServerGroupSecurityGroupsRemoved","removed","onClear","SecurityGroupSelector","refresh","refreshSecurityGroups","helpKey","TitusProviderSettings","providers","defaults","resetToOriginal","isNotExpressionLanguage","field","ServerGroupBasicSettings","setFieldValue","values","formik","credentialsChanged","backingData","credentialsKeyedByAccount","containerAttributes","titusParameter.agent.assignIPv6Address","regionUpdated","regionChanged","navigateToLatestServerGroup","latestServerGroup","selectedProvider","is","stackChanged","clusterChanged","strategyChanged","strategy","onStrategyChange","dockerValuesChanged","dockerValues","onStrategyFieldChange","onSubnetChange","subnetChanged","subnetType","digest","organization","repository","tag","DockerImageUtils","splitImageId","getStateFromProps","namePreview","NameUtils","getClusterName","createsNewCluster","clusters","c","inCluster","createdTime","pop","errors","detail","test","disableImageSelection","resourceSummary","readOnlyFields","customImage","defaultSubnetTypes","concat","AWSProviderSettings","x","DeployingIntoManagedClusterWarning","AccountSelectInput","evt","readOnly","RegionSelectField","labelColumns","component","filtered","SubnetSelectField","subnets","subnetPurposes","recommendedSubnetTypes","recommendedSubnets","showSubnetWarning","HelpField","e","ServerGroupDetailsField","DockerImageAndTagSelector","specifyTagByRegex","registry","showRegistry","deferInitialization","deferredInitialization","Field","checked","inService","disabled","disableStrategySelection","DeploymentStrategySelector","onFieldChange","hideClusterNamePreview","ServerGroupNamePreview","latestServerGroupName","mountPermOptions","ServerGroupResources","SpelNumberInput","cpu","required","memory","disk","networkMbps","gpu","Select","efs","mountPerm","clearable","options","option","mountPoint","efsId","efsRelativeMountPoint","styleInject","css","ref","insertAt","document","head","getElementsByTagName","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","TitusMapLayout","help","input","validation","hidden","messageNode","category","showLabel","isUndefined","ValidationMessage","processesList","migrationPolicyOptions","ServiceJobProcessesInput","allProcesses","union","mappedProps","useFormInputValueMapper","entries","_key","_val","reduce","acc","process","robotToHuman","ChecklistInput","IPv6CheckboxInput","CheckboxInput","IamInstanceProfileInput","setDefaultIamProfile","inputProps","TextInput","whiteSpace","onClick","ServerGroupParameters","_values","validator","FormValidator","validateForm","intersection","constraints","soft","hard","startsWith","defaultIamProfile","FormikFormField","SelectInput","LayoutProvider","MapEditorInput","allowEmptyValues","platformHealthOnlyShowOverride","PlatformHealthOverrideInput","platformHealthType","defaultJobDisruptionBudget","availabilityPercentageLimit","percentageOfHealthyContainers","ratePercentagePerInterval","intervalMs","percentageLimitPerInterval","containerHealthProviders","timeWindows","days","hourlyTimeWindows","startHour","endHour","timeZone","getDefaultJobDisruptionBudgetForApp","budget","cloneDeep","platformHealthOnly","TitusServerGroupConfigurationService","loadBalancerReader","dirty","filteredData","reject","purpose","uniqBy","subnetIds","subnet","join","cmd","configureZones","configureLoadBalancerOptions","configureSubnets","setMatchingResourceSummary","getMoniker","accountChangedStream","Subject","regionChangedStream","groupsRemovedStream","image","SubnetReader","listSubnets","awsCredentials","awsAccountId","images","securityGroupRefresher","when","regionalSecurityGroupIds","refreshLoadBalancers","attachEventHandlers","currentOptions","newRegionalSecurityGroups","isExpression","currentGroupNames","loadBalancersV2","getLoadBalancerMap","lb","loadBalancerType","flatten","targetType","flattenDeep","currentTargetGroups","getTargetGroupNames","matched","removedTargetGroups","listLoadBalancers","$inject","CACHE_INITIALIZER_SERVICE","LOAD_BALANCER_READ_SERVICE","SECURITY_GROUP_READER","service","policyOptions","defaultValues","fieldComponent","componentProps","NumberInput","isDisabled","expand","content","limit","limitOfUnhealthyContainers","relocationTimeMs","rateOptions","limitPerInterval","DAYS","WindowPicker","configureNewWindow","addingNewWindow","addNewWindow","form","newWindow","disruptionBudget","CurrentWindows","timeWindow","i","w","i2","display","backgroundColor","borderRadius","color","fontSize","d","substr","removeWindow","NewWindowComponent","SpinFormik","initialValues","onSubmit","render","stringOptions","min","max","ReactSelectInput","index","subIndex","toRemove","subWindowToRemove","DisruptionBudgetDescription","JobDisruptionBudget","timeWindowOptions","toggleUseDefault","usingDefault","setToDefaultBudget","componentDidUpdate","oldProps","onStageChange","isEqual","optionTypeChanged","policyTypeChanged","rateTypeChanged","timeWindowsChanged","existing","p","runJobView","policyType","getSelectionFromFields","PolicyFields","rateType","RateFields","windowType","getTimeWindowSelection","selectedProviders","isSelfManaged","selfManaged","showConfig","ResponsiveFieldLayout","layout","opacity","TetheredSelect","menuContainerStyle","height","width","rateUnlimited","toggleHealthProvider","TitusRunJobStageConfig","accountChanged","stageFieldChanged","setRegistry","updateRegions","ipv6Default","associateIPv6AddressChanged","dockerChanged","changes","rest","assign","stageFieldUpdated","forceUpdate","fieldIndex","mapChanged","groupsChanged","updatedAttributes","disruptionBudgetChanged","waitForCompletion","desired","iamProfile","replace","clusterDefaults","labels","retries","runtimeLimitSecs","defaultsDeep","every","defaultIPv6Address","cmdList","fieldColumns","StageConfigField","propertyFile","showAdvancedOptions","placeholder","paddingLeft","paddingTop","capacityGroup","MapEditor","model","allowEmpty","v","useBaseProvider","restartable","providesFor","executionDetailsSections","ExecutionDetailsTasks","supportsCustomTimeout","allowScaleDownActive","allowDeleteActive","retainLargerOverNewer","factory","indexedSecurityGroups","container","securityGroupId","getDefaultIamProfile","buildNewServerGroupCommand","defaultRegion","defaultZone","zone","network","targetHealthyDeployPercentage","serviceJobProcesses","useSimpleCapacity","usePreferredZones","migrationPolicy","buildNewServerGroupCommandForPipeline","requiresTemplateSelection","buildServerGroupCommandFromExisting","parseServerGroupName","isTestEnv","assignIPv6Address","source","asgName","dockerImageName","dockerImageVersion","dockerImageDigest","buildServerGroupCommandFromPipeline","originalCluster","pipelineCluster","commandOptions","hardConstraints","softConstraints","submitButtonLabel","viewOverrides","extend","_TitusCloneServerGroupModal","_isUnmounted","templateSelected","configureCommand","onNextRefresh","onApplicationRefresh","taskMonitor","cloneStage","task","execution","stages","newServerGroupName","newStateParams","transitionTo","submit","forPipelineConfig","toSubmit","closeModal","serverGroupWriter","cloneServerGroup","getLoadBalancerNote","marginTop","getSecurityGroupNote","TaskMonitor","modalInstance","modalInstanceEmulation","dismissModal","ReactModal","show","dialogClassName","refreshUnsubscribe","DeployInitializer","onDismiss","onTemplateSelected","WizardModal","nextIdx","wizard","WizardPage","order","innerRef","ServerGroupCapacity","note","ServerGroupLoadBalancers","hideLoadBalancers","targetGroupTypeHelpText","ServerGroupSecurityGroups","TitusCloneServerGroupModal","defaultProps","noop","useState","useEffect","useMemo","surfacedErrorMessage","capacityErrors","SimpleMode","toggleMode","errorMessage","touched","MinMaxDesiredChanges","next","AdvancedMode","DisabledNumberField","validateResizeCommand","TitusResizeServerGroupModal","initialAdvancedMode","advancedMode","setAdvancedMode","verified","setVerified","useTaskMonitor","getDataSource","resizeServerGroup","TaskMonitorWrapper","monitor","validate","ModalClose","dismiss","Modal","Header","Title","Body","Form","PlatformHealthOverride","showHelpDetails","names","Footer","UserVerification","onValidChange","isValid","LuxonError","Error","InvalidDateTimeError","reason","toMessage","InvalidIntervalError","InvalidDurationError","ConflictingSpecificationError","InvalidUnitError","unit","InvalidArgumentError","ZoneIsAbstractError","n","s","l","DATE_SHORT","year","month","day","DATE_MED","DATE_FULL","DATE_HUGE","weekday","TIME_SIMPLE","hour","minute","TIME_WITH_SECONDS","second","TIME_WITH_SHORT_OFFSET","timeZoneName","TIME_WITH_LONG_OFFSET","TIME_24_SIMPLE","hour12","TIME_24_WITH_SECONDS","TIME_24_WITH_SHORT_OFFSET","TIME_24_WITH_LONG_OFFSET","DATETIME_SHORT","DATETIME_SHORT_WITH_SECONDS","DATETIME_MED","DATETIME_MED_WITH_SECONDS","DATETIME_MED_WITH_WEEKDAY","DATETIME_FULL","DATETIME_FULL_WITH_SECONDS","DATETIME_HUGE","DATETIME_HUGE_WITH_SECONDS","isNumber","isInteger","hasIntl","Intl","DateTimeFormat","hasFormatToParts","prototype","formatToParts","hasRelative","RelativeTimeFormat","bestBy","arr","by","compare","best","pair","pick","obj","k","hasOwnProperty","prop","call","integerBetween","thing","bottom","top","padStart","repeat","slice","parseInteger","string","parseInt","parseMillis","fraction","f","parseFloat","Math","floor","roundTo","number","digits","towardZero","factor","trunc","round","isLeapYear","daysInYear","daysInMonth","modMonth","floorMod","objToLocalTS","Date","UTC","millisecond","setUTCFullYear","getUTCFullYear","weeksInWeekYear","weekYear","p1","last","p2","untruncateYear","parseZoneInfo","ts","offsetFormat","locale","date","intlOpts","modified","intl","parsed","without","format","substring","signedOffset","offHourStr","offMinuteStr","offHour","Number","isNaN","offMin","asNumber","numericValue","normalizeObject","normalizer","nonUnitKeys","normalized","u","indexOf","formatOffset","offset","hours","minutes","abs","sign","base","RangeError","timeObject","ianaRegex","monthsLong","monthsShort","monthsNarrow","months","weekdaysLong","weekdaysShort","weekdaysNarrow","weekdays","meridiems","erasLong","erasShort","erasNarrow","eras","stringifyTokens","splits","tokenToString","token","literal","macroTokenToFormatOpts","D","Formats.DATE_SHORT","DD","Formats.DATE_MED","DDD","Formats.DATE_FULL","DDDD","Formats.DATE_HUGE","t","Formats.TIME_SIMPLE","tt","Formats.TIME_WITH_SECONDS","ttt","Formats.TIME_WITH_SHORT_OFFSET","tttt","Formats.TIME_WITH_LONG_OFFSET","T","Formats.TIME_24_SIMPLE","TT","Formats.TIME_24_WITH_SECONDS","TTT","Formats.TIME_24_WITH_SHORT_OFFSET","TTTT","Formats.TIME_24_WITH_LONG_OFFSET","Formats.DATETIME_SHORT","ff","Formats.DATETIME_MED","fff","Formats.DATETIME_FULL","ffff","Formats.DATETIME_HUGE","F","Formats.DATETIME_SHORT_WITH_SECONDS","FF","Formats.DATETIME_MED_WITH_SECONDS","FFF","Formats.DATETIME_FULL_WITH_SECONDS","FFFF","Formats.DATETIME_HUGE_WITH_SECONDS","Formatter","opts","fmt","currentFull","bracketed","charAt","formatOpts","loc","systemLoc","dt","redefaultToSystem","dtFormatter","resolvedOptions","forceSimple","padTo","numberFormatter","knownEnglish","listingMode","useDateTimeFormatter","outputCalendar","extract","isOffsetFixed","allowZ","meridiem","English.meridiemForDateTime","English.monthForDateTime","English.weekdayForDateTime","maybeMacro","formatWithSystemDefault","era","English.eraForDateTime","parseFormat","num","offsetName","zoneName","weekNumber","ordinal","quarter","dur","tokenToField","tokens","realTokens","found","lildur","mapped","shiftTo","Invalid","explanation","Zone","universal","otherZone","singleton","LocalZone","getTimezoneOffset","matchingRegex","RegExp","dtfCache","typeToPos","ianaZoneCache","IANAZone","specifier","valid","isValidZone","dtf","formatted","filled","pos","partsOffset","exec","fMonth","fDay","fYear","fHour","fMinute","fSecond","hackyOffset","asTS","over","FixedOffsetZone","utcInstance","fixed","InvalidZone","NaN","normalizeZone","lowered","parseGMTOffset","isValidSpecifier","create","parseSpecifier","now","defaultLocale","defaultNumberingSystem","defaultOutputCalendar","throwOnInvalid","Settings","defaultZoneName","z","numberingSystem","Locale","resetCache","intlDTCache","getCachedDTF","locString","intlNumCache","intlRelCache","sysLocaleCache","listStuff","defaultOK","englishFn","intlFn","PolyNumberFormatter","useGrouping","minimumIntegerDigits","inf","NumberFormat","getCachedINF","PolyDateFormatter","DateTime","fromMillis","toJSDate","tokenFormat","knownFormat","dateTimeHuge","Formats.DATETIME_MED_WITH_WEEKDAY","English.formatString","formatDateTimeFromString","PolyRelFormatter","isEnglish","rtf","cacheKeyOpts","getCachedRTF","count","numeric","narrow","units","years","quarters","weeks","seconds","lastable","isDay","isInPast","fmtValue","singular","lilUnits","fmtUnit","English.formatRelativeTime","defaultToEN","specifiedLocale","localeR","computedSys","systemLocale","numberingSystemR","outputCalendarR","numbering","parsedLocale","parsedNumberingSystem","parsedOutputCalendar","localeStr","uIndex","smaller","calendar","parseLocaleString","intlConfigString","weekdaysCache","monthsCache","meridiemCache","eraCache","fastNumbersCached","fastNumbers","hasFTP","isActuallyEn","hasNoWeirdness","alts","getOwnPropertyNames","clone","English.months","formatStr","ms","utc","mapMonths","English.weekdays","mapWeekdays","undefined","English.meridiems","English.eras","matching","other","combineRegexes","regexes","full","combineExtractors","extractors","mergedVals","mergedZone","cursor","ex","parse","patterns","regex","extractor","simpleParse","ret","offsetRegex","isoTimeBaseRegex","isoTimeRegex","isoTimeExtensionRegex","extractISOWeekData","extractISOOrdinalData","sqlTimeRegex","sqlTimeExtensionRegex","int","fallback","extractISOYmd","extractISOTime","extractISOOffset","local","fullOffset","extractIANAZone","isoDuration","extractISODuration","yearStr","monthStr","weekStr","dayStr","hourStr","minuteStr","secondStr","millisecondsStr","hasNegativePrefix","maybeNegate","milliseconds","obsOffsets","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","fromStrings","weekdayStr","English.monthsShort","English.weekdaysLong","English.weekdaysShort","rfc2822","extractRFC2822","obsOffset","milOffset","rfc1123","rfc850","ascii","extractRFC1123Or850","extractASCII","isoYmdWithTimeExtensionRegex","isoWeekWithTimeExtensionRegex","isoOrdinalWithTimeExtensionRegex","isoTimeCombinedRegex","extractISOYmdTimeAndOffset","extractISOWeekTimeAndOffset","extractISOOrdinalDataAndTime","extractISOTimeAndOffset","sqlYmdWithTimeExtensionRegex","sqlTimeCombinedRegex","extractISOYmdTimeOffsetAndIANAZone","extractISOTimeOffsetAndIANAZone","lowOrderMatrix","casualMatrix","accurateMatrix","daysInYearAccurate","daysInMonthAccurate","orderedUnits","reverseUnits","reverse","clear","conf","conversionAccuracy","Duration","convert","matrix","fromMap","fromUnit","toMap","toUnit","conv","raw","added","ceil","antiTrunc","normalizeValues","vals","previous","accurate","invalid","isLuxonDuration","fromObject","normalizeUnit","parseISODuration","week","fmtOpts","formatDurationFromString","includeConfig","toISO","as","duration","friendlyDuration","plus","negate","fn","toObject","built","accumulated","lastUnit","own","ak","down","normalize","negated","invalidReason","invalidExplanation","equals","durationish","isDuration","INVALID","Interval","start","end","isLuxonInterval","builtStart","friendlyDateTime","builtEnd","validateError","validateStartEnd","fromDateTimes","minus","fromISO","after","before","toDuration","startOf","diff","hasSame","valueOf","dateTime","dateTimes","sorted","contains","numberOfParts","splitBy","intervals","final","sofar","item","overlaps","abutsStart","currentCount","ends","time","merge","isEmpty","toISODate","toISOTime","dateFormat","separator","toFormat","mapFn","Info","proto","setZone","intlTokens","zones","relative","dayDiff","earlier","later","utcDayStart","toUTC","keepLocalTime","highWater","lowestOrder","differs","differ","delta","highOrderDiffs","remainingMillis","lowerOrderUnits","numberingSystems","arab","arabext","bali","beng","deva","fullwide","gujr","hanidec","khmr","knda","laoo","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt","latn","numberingSystemsUTF16","hanidecChars","digitRegex","append","intUnit","post","deser","code","charCodeAt","search","parseDigits","fixListRegex","stripInsensitivities","oneOf","strings","startIndex","findIndex","simple","partTypeStyleToTokenVal","2-digit","short","long","dayperiod","dayPeriod","dummyDateTimeCache","maybeExpandMacroToken","formatDateTimeParts","part","tokenForPart","explainFromTokens","expandMacroTokens","one","two","three","four","six","oneOrTwo","oneToThree","oneToSix","oneToNine","twoToFour","fourToSix","unitate","unitForToken","disqualifyingUnit","regexString","handlers","buildRegex","rawMatches","matches","matchIndex","Z","q","M","G","y","S","toField","dateTimeFromMatches","nonLeapLadder","leapLadder","unitOutOfRange","dayOfWeek","js","getUTCDay","computeOrdinal","uncomputeOrdinal","table","month0","gregorianToWeek","gregObj","weekToGregorian","weekData","weekdayOfJan4","yearInDays","gregorianToOrdinal","gregData","ordinalToGregorian","ordinalData","hasInvalidGregorianData","validYear","validMonth","validDay","hasInvalidTimeData","validHour","validMinute","validSecond","validMillisecond","unsupportedZone","possiblyCachedWeekData","inst","old","fixOffset","localTS","tz","utcGuess","o2","o3","tsToObj","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","objToTS","adjustTime","oPre","millisToAdd","parseDataToDateTime","parsedZone","interpretationZone","toTechFormat","toTechTimeFormat","suppressSeconds","suppressMilliseconds","includeOffset","includeZone","spaceZone","defaultUnitValues","defaultWeekUnitValues","defaultOrdinalUnitValues","orderedWeekUnits","orderedOrdinalUnits","weeknumber","weeksnumber","weeknumbers","weekyear","weekyears","quickDT","tsNow","offsetProvis","diffRelative","calendary","relFormatter","ot","_zone","isLuxonDateTime","zoneToUse","containsOrdinal","containsGregorYear","containsGregorMD","containsGregor","definiteWeekDef","useWeekData","objNow","foundFirst","validWeek","validWeekday","hasInvalidWeekData","validOrdinal","hasInvalidOrdinalData","gregorian","tsFinal","offsetFinal","parseISODate","trim","preprocessRFC2822","parseRFC2822Date","parseHTTPDate","localeToUse","fromOpts","parseFromTokens","fromFormat","parseSQL","monthShort","monthLong","weekdayShort","weekdayLong","offsetNameShort","offsetNameLong","isInDST","isInLeapYear","keepCalendarTime","newTS","offsetGuess","asObj","reconfigure","mixed","normalizedUnit","redefaultToEN","formatDateTime","toSQLDate","toSQLTime","toMillis","otherDateTime","durOpts","otherIsLater","diffed","inputMs","endOf","padding","isDateTime","fromFormatExplain","dateTimeish","fromJSDate","TitusScalingActivitiesModal","scalingActivities","error","ServerGroupReader","getScalingActivities","ModalHeader","ModalBody","jobState","newDate","formatDate","reasonMessage","ModalFooter","primaryActions","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","TitusCapacityDetailsSection","simpleMode","DesiredCapacity","CurrentCapacity","currentCapacity","confirmNotManaged","notManaged","showModal","maxWidth","decorators","kind","decorator","__decorateClass","Overridable","TitusTargetTrackingChart","updateUnit","alarm","setAlarm","alarmName","alarmArn","metricName","namespace","statistic","dimensions","period","threshold","targetValue","comparisonOperator","okactions","insufficientDataActions","alarmActions","evaluationPeriods","alarmDescription","customMetric","customizedMetricSpecification","updatedAlarm","synchronizeAlarm","MetricAlarmChart","onChartLoaded","stats","TitusScalingPolicyCommandBuilder","buildAlarm","policy","alarms","disableEditingDimensions","buildStepPolicy","cooldown","estimatedInstanceWarmup","metricAggregationType","stepAdjustments","adjustment","step","scalingAdjustment","metricIntervalUpperBound","metricIntervalLowerBound","buildNewCommand","adjustmentType","scalingPolicyID","minAdjustmentMagnitude","targetTrackingConfiguration","prepareCommandForUpsert","isRemove","commandToSubmit","UpsertTargetTrackingModal","isCustom","setIsCustom","setCommand","baseCommand","TaskMonitorModal","mapValuesToTask","job","TargetMetricFields","allowDualMode","cloudwatch","isCustomMetric","toggleMetricType","updateCommand","TargetTrackingAdditionalSettings","cooldowns","policyName","UpsertScalingPolicyModal","adjustmentBasis","setAction","adjustmentTypeView","comparatorBound","stepsChanged","newSteps","newCommand","adjustments","boundsChanged","adjustmentTypeChanged","action2","newType","preppedValues","_a2","_b2","_c2","AlarmConfigurer","multipleAlarms","updateAlarm","StepPolicyAction","isMin","operator","ScalingPolicyAdditionalSettings","isInstanceType","policyARN","react2angular","withErrorBoundary","TitusLaunchConfigSection","EditDisruptionBudgetModal","TaskExecutor","executeTask","SubmitButton","isFormSubmit","submitting","DisruptionBudgetSection","arguments","SectionHeading","selected","Policy","ParentheticalDuration","relocationLimit","unhealthyTasksLimit","durationMs","prettyMilliseconds","Rate","ratePerInterval","groupedDays","allDays","sortedDays","d1","d2","currentGroup","toDayRangeString","TimeWindows","hasWindows","tw1","i1","tw2","editBudget","hasDefaultMigrationPolicy","defaultBudget","SERVER_GROUP_WRITER","$uibModalInstance","previousServerGroup","disabledServerGroups","allServerGroups","verification","healthyPercent","rollbackType","entityTags","previousServerGroup2","imageName","rollbackContext","rollbackServerGroupName","restoreServerGroupName","targetHealthyRollbackPercentage","delayBeforeDisableSeconds","minHealthy","percent","rollback","rollbackServerGroup","cancel","serverGroup2","buildInfo","CreateScalingPolicyButton","handleClick","showSelection","typeSelected","typeSelection","createStepPolicy","createTargetTrackingPolicy","showModalCallback","upsertProps","constructNewStepScalingPolicyTemplate","constructNewTargetTrackingPolicyTemplate","PolicyTypeSelectionModal","warnOnMinMaxCapacity","typeSelectedCallback","showCallback","TitusCustomScalingPolicy","EditTitusServiceJobProcessesModal","modalProps","enabledServiceJobProcesses","processesMap","enabled","TextAreaInput","rows","checkedServiceJobProcesses","ServiceJobProcessesSection","toggleServiceJobProcesses","visibility","packageInfo","jenkins","hasPackageInfo","commitId","version","jenkinsLink","docker","retrieveServerGroup","summary","apiEndpoint","scalingPolicies","stepPolicyDescriptor","alarmConfig","periodSec","metricNamespace","policy2","cooldownSec","scaleOutCooldown","autoClose","allowModalToStayOpen","gateUrl","$$destroyed","onRefresh","catch","awsDetails","configureEntityTagTargets","entityTagTargets","ClusterTargetBuilder","destroyServerGroup","stateParams","confirmationModalParams","disableServerGroup","ServerGroupWarningMessageService","addDisableWarningMessage","enableServerGroup","showEnableServerGroupModal","body","cancelButtonText","isRollbackEnabled","orderBy","$uibModal","open","convertServerGroupCommandToDeployConfiguration","normalizeServerGroup","disableScaleIn","scaleInCooldown","ApplicationNameValidator","registerValidator","warnings","remaining","validateSpecialCharacters","validateLength","TITUS_MODULE","CloudProviderRegistry","registerProvider","logo","path","transformer","detailsTemplateUrl","detailsController","CloneServerGroupModal","commandBuilder","configurationService","skipUpstreamStageCheck","checkForImageProviders","TargetTrackingChart","UpsertStepPolicyModal","TitusUpsertScalingPolicyModal","TitusUpsertTargetTrackingModal","reader","useProvider","loadBalancer","LoadBalancersTag","AmazonLoadBalancersTag","incompatibleLoadBalancerTypes","DeploymentStrategyRegistry"],"mappings":"k+GACA,MAAMA,GAAe,CACnBC,gCAAiC,2EACjCC,uBAAwB,2CACxBC,4BAA6B,2LAC7BC,0BAA2B,qDAC3BC,6BAA8B,gGAC9BC,uBAAwB,yJACxBC,0BAA2B,4JAC3BC,+BAAgC,sFAChCC,uBAAwB,qDACxBC,mBAAoB,2FACpBC,+BAAgC,iNAChCC,+BAAgC,8FAChCC,mBAAoB,yGACpBC,0BAA2B,gMAC3BC,qBAAsB,qEACtBC,qCAAsC,oEACtCC,8BAA+B,iGAC/BC,4BAA6B,+DAC7BC,2BAA4B,0MAC5BC,4BAA6B,0DAC7BC,8BAA+B,uDAC/BC,iCAAkC,0HAClCC,+BAAgC,2IAChCC,uBAAwB,2IACxBC,kBAAmB,iKACnBC,6BAA8B,4IAC9BC,2BAA4B,8cAO5BC,4BAA6B,4PAG7BC,uBAAwB,6PACxBC,8BAA+B,0LAC/BC,0BAA2B,oEAC3BC,2BAA4B,4CAC5BC,6BAA8B,u6CAe9BC,qCAAsC,sfAMtCC,sCAAuC,4aAMvCC,qCAAsC,8UAUxCC,OAAOC,KAAKtC,IAAcuC,SAASC,GAAQC,EAAqBC,SAASF,EAAKxC,GAAawC,MCvE/E,MAACG,GAAmB,EAAGC,YAAAA,EAAaC,KAAAA,EAAMC,aAAAA,EAAcC,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X,MAACo/C,GAAe,kBAC5BztD,EAD4B,mBtD9BM,wBCA4B,uCkDuBe,iDjDpBR,oDCFS,wCiDCrB,0R7ECwB,uN6DDjB,mDEAH,kDgB+C1D8B,QAAO,KACR4rD,GAAsBC,iBAAiB,QAAS,CAC9Cr2D,KAAM,QACNs2D,KAAM,CACJC,KCvDS,kqpBDyDX34D,YAAa,CACX44D,0CACAC,2EACAC,gDACAC,yBACAC,eAAgB,iCAChBC,4DACAC,wBAAwB,EACxBC,wBAAwB,EACxBC,oBAAqBnP,GACrBoP,sBAAuBC,GACvBpM,0BAA2BqM,IAE7Bj2D,cAAe,CACbk2D,OAAQ,2BACRC,YAAa,OAEfC,aAAc,CACZC,iBAAkBC,EAClBC,gCAEI70D,KAAM,UACN6wB,OAAQ,iGAGZ4jC,YAAa,OAEfp6D,UACEoM,iBAINquD,GAA2BrB,4DAC3BlqD,8DACEG"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/help/titus.help.ts","../src/instance/details/TitusInstanceDns.tsx","../src/instance/details/TitusInstanceInformation.tsx","../src/reactShims/titus.react.injector.ts","../src/serverGroup/details/TitusSecurityGroups.tsx","../src/instance/details/titusInstanceDetailsUtils.ts","../src/instance/details/TitusInstanceDetails.tsx","../src/logo/titus.logo.png","../src/pipeline/stages/cloneServerGroup/cloneServerGroupExecutionDetails.controller.js","../src/pipeline/stages/cloneServerGroup/titusCloneServerGroupStage.js","../src/pipeline/stages/destroyAsg/titusDestroyAsgStage.js","../src/pipeline/stages/disableAsg/titusDisableAsgStage.js","../src/pipeline/stages/disableCluster/titusDisableClusterStage.js","../src/pipeline/stages/enableAsg/titusEnableAsgStage.js","../src/pipeline/stages/findAmi/titusFindAmiStage.js","../src/pipeline/stages/resizeAsg/titusResizeAsgStage.js","../src/pipeline/stages/runJob/RunJobExecutionDetails.tsx","../src/pipeline/stages/runJob/TitusSecurityGroupPicker.tsx","../src/titus.settings.ts","../src/serverGroup/configure/wizard/pages/ServerGroupBasicSettings.tsx","../src/serverGroup/configure/wizard/pages/ServerGroupResources.tsx","../../../node_modules/style-inject/dist/style-inject.es.js","../src/serverGroup/configure/wizard/pages/TitusMapLayout.tsx","../src/serverGroup/details/serviceJobProcesses/ServiceJobProcesses.ts","../src/serverGroup/configure/wizard/pages/ServerGroupParameters.tsx","../src/serverGroup/configure/serverGroupConfiguration.service.ts","../src/serverGroup/configure/wizard/pages/disruptionBudget/PolicyOptions.tsx","../src/serverGroup/configure/wizard/pages/disruptionBudget/RateOptions.tsx","../src/serverGroup/configure/wizard/pages/disruptionBudget/WindowPicker.tsx","../src/serverGroup/configure/wizard/pages/disruptionBudget/JobDisruptionBudget.tsx","../src/pipeline/stages/runJob/TitusRunJobStageConfig.tsx","../src/pipeline/stages/runJob/titusRunJobStage.ts","../src/pipeline/stages/scaleDownCluster/titusScaleDownClusterStage.js","../src/pipeline/stages/shrinkCluster/titusShrinkClusterStage.js","../src/reactShims/titus.react.module.ts","../src/securityGroup/securityGroup.read.service.js","../src/serverGroup/configure/ServerGroupCommandBuilder.js","../src/serverGroup/configure/serverGroup.configure.titus.module.js","../src/serverGroup/configure/wizard/TitusCloneServerGroupModal.tsx","../src/serverGroup/details/resize/useTaskMonitor.ts","../src/serverGroup/details/resize/TitusResizeServerGroupModal.tsx","../../../node_modules/luxon/src/errors.js","../../../node_modules/luxon/src/impl/formats.js","../../../node_modules/luxon/src/impl/util.js","../../../node_modules/luxon/src/impl/english.js","../../../node_modules/luxon/src/impl/formatter.js","../../../node_modules/luxon/src/impl/invalid.js","../../../node_modules/luxon/src/zone.js","../../../node_modules/luxon/src/zones/localZone.js","../../../node_modules/luxon/src/zones/IANAZone.js","../../../node_modules/luxon/src/zones/fixedOffsetZone.js","../../../node_modules/luxon/src/zones/invalidZone.js","../../../node_modules/luxon/src/impl/zoneUtil.js","../../../node_modules/luxon/src/settings.js","../../../node_modules/luxon/src/impl/locale.js","../../../node_modules/luxon/src/impl/regexParser.js","../../../node_modules/luxon/src/duration.js","../../../node_modules/luxon/src/interval.js","../../../node_modules/luxon/src/info.js","../../../node_modules/luxon/src/impl/diff.js","../../../node_modules/luxon/src/impl/digits.js","../../../node_modules/luxon/src/impl/tokenParser.js","../../../node_modules/luxon/src/impl/conversions.js","../../../node_modules/luxon/src/datetime.js","../src/serverGroup/details/scalingActivity/TitusScalingActivitiesModal.tsx","../src/serverGroup/details/TitusCapacityDetailsSection.tsx","../src/serverGroup/details/scalingPolicy/targetTracking/TitusTargetTrackingChart.tsx","../src/serverGroup/details/scalingPolicy/upsert/TitusScalingPolicyCommandBuilderService.ts","../src/serverGroup/details/scalingPolicy/targetTracking/UpsertTargetTrackingModal.tsx","../src/serverGroup/details/scalingPolicy/upsert/UpsertScalingPolicyModal.tsx","../src/serverGroup/details/capacityDetailsSection.component.ts","../src/serverGroup/details/TitusLaunchConfigSection.tsx","../src/serverGroup/details/launchConfigSection.component.ts","../src/serverGroup/details/disruptionBudget/EditDisruptionBudgetModal.tsx","../src/serverGroup/details/disruptionBudget/DisruptionBudgetSection.tsx","../src/serverGroup/details/rollback/rollbackServerGroup.controller.js","../src/serverGroup/details/scalingPolicy/CreateScalingPolicyButton.tsx","../src/serverGroup/details/scalingPolicy/createScalingPolicyButton.component.ts","../src/serverGroup/details/scalingPolicy/TitusCustomScalingPolicy.tsx","../src/serverGroup/details/scalingPolicy/titusCustomScalingPolicy.component.ts","../src/serverGroup/details/scalingPolicy/scalingPolicy.module.ts","../src/serverGroup/details/serviceJobProcesses/ServiceJobProcessesSection.tsx","../src/serverGroup/details/TitusPackageDetailsSection.tsx","../src/serverGroup/details/titusPackageDetailsSection.component.ts","../src/serverGroup/details/titusSecurityGroups.component.ts","../src/serverGroup/details/serverGroupDetails.titus.controller.js","../src/serverGroup/serverGroup.transformer.js","../src/validation/ApplicationNameValidator.ts","../src/titus.module.ts"],"sourcesContent":["import { HelpContentsRegistry } from '@spinnaker/core';\n\nconst helpContents: { [key: string]: string } = {\n 'titus.deploy.runtimeLimitSecs': '<p>Maximum amount of time (in seconds) a batch job is allowed to run</p>',\n 'titus.deploy.retries': '<p>Number of times to retry this job</p>',\n 'titus.deploy.propertyFile':\n '<p>(Optional) Configures the name to the file used to pass in properties to later stages in the Spinnaker pipeline. The file must be saved into the /logs directory during execution</p>',\n 'titus.deploy.iamProfile': 'AWS IAM instance profile to assign to this service',\n 'titus.deploy.capacityGroup':\n 'Used by Titus to ensure capacity guarantees, defaults to the application name if not provided',\n 'titus.deploy.command':\n '<p>(Optional) Defines one or more custom commands. If multiple commands are defined, they must be comma delimited with no spaces: <b>cmd1,cmd2</b></p>',\n 'titus.deploy.entrypoint':\n '<p>(Optional) Defines one or more entrypoints. If multiple entrypoints are defined, they must be comma delimited with no spaces: <b>entry1,entry2</b></p>',\n 'titus.deploy.migrationPolicy': 'Defines how the tasks for this job will be migrated during an infrastructure change',\n 'titus.deploy.network': 'Amount of networking bandwidth to allocate in Mbps',\n 'titus.deploy.gpu': 'Number of GPUs to use. WARNING: only use if directed by Titus team, otherwise leave at 0',\n 'titus.deploy.softConstraints':\n 'Soft constraints are enforced on a best efforts basis. For example, if tasks can’t be perfectly balanced across zones, the best available balance is achieved without keeping the tasks pending for execution.',\n 'titus.deploy.hardConstraints':\n 'Constraints must be met and tasks will not be launched if constraint can’t be perfectly met',\n 'titus.deploy.efs':\n 'if completed, allows you to specify an EFS volume to attach to each Task that gets created for the Job',\n 'titus.deploy.mountPoint':\n '(Required) A valid directory to mount the volume, e.g, <samp>/efs</samp>. Invalid locations are <samp>/</samp>, <samp>/data</samp>, and <samp>/logs</samp> as these are reserved directories.',\n 'titus.deploy.efsId': '(Required) The EFS file system ID, e.g. <samp> fs-0208c74b</samp>.',\n 'titus.deploy.efsRelativeMountPoint': '(Optional) Relative dir within FS ID, e.g. <samp>/dirInVol</samp>',\n 'titus.job.waitForCompletion':\n 'if unchecked, marks the stage as successful right away without waiting for the job to complete',\n 'titus.bake.fromGitTrigger': 'If checked, gets git details from the specified git trigger.',\n 'titus.bake.repositoryUrl':\n 'Url to the git repository containing the code to create the Docker image from, <samp>ssh://git@stash.corp.netflix.com:7999/SPKR/orca.git</samp> or <samp>ssh://git@github.com/spinnaker/orca.git</samp>',\n 'titus.bake.repositoryHash': '(Optional) The hashcode to the git commit for the image',\n 'titus.bake.repositoryBranch': '(Optional) The branch in git to build the image from',\n 'titus.bake.repositoryDirectory':\n '(Optional) If specified, will build the image from the Dockerfile contained in this directory. Default to project root.',\n 'titus.bake.imageOrganization':\n '(Optional) The organization to which this image belongs to, e.g. <samp>spinnaker</samp> for <samp>spinnaker/igor</samp>Defaults to none.',\n 'titus.bake.imageName':\n '(Optional) The name for the image, e.g. <samp>igor</samp> for <samp>spinnaker/igor</samp>Defaults to [git project name].[git repo name].',\n 'titus.bake.tags':\n '(Optional) Comma separated. By default, the <samp>latest</samp> tag is updated. Adds additional tags to label this image <samp>1.0.0-unstable,1.0.0-rc1</samp>',\n 'titus.bake.buildParameters':\n '(Optional) Build time variables to be passed to the Docker image. These are the set of values passed to --build-args in the command line.',\n 'titus.serverGroup.subnet': `The subnet selection determines the VPC in which your container will run. Options vary by account and region. The most common are: \n <ul>\n <li><b>titus</b>: instances will be restricted to internal clients with their own NAT gateways</li>\n <li><b>internal</b> instances will be restricted to internal clients (i.e. require VPN access)</li>\n <li><b>external</b> instances will be publicly accessible and running in VPC</li>\n </ul>\n `,\n 'titus.serverGroup.traffic': `\n <p>Enables the \"inService\" scaling process, which is used by Spinnaker and discovery services to determine if the server group is enabled.</p>\n <p>Will be automatically enabled when any non \"custom\" deployment strategy is selected.</p>`,\n 'titus.deploy.imageId':\n 'This value has been manually overridden. To edit this value, please update the <b><i>imageId</i></b> attribute in the stage JSON. Spinnaker expects this to follow the <b><i>name:tag</i></b> format, or the <b><i>imageName</i></b> directly from Jenkins',\n 'titus.deploy.securityGroups':\n 'AWS Security Groups to assign to this service. Security groups are set only if <samp>Allocate IP?</samp> has been selected and are assigned to the Titus AWS Elastic Network Interface.',\n 'titus.job.capacityGroup': 'Capacity Group will default to application name if not specified.',\n 'titus.job.securityGroups': 'AWS Security Groups to assign to this job',\n 'titus.autoscaling.cooldown': `\n <p>The amount of time, in seconds, after a scaling activity completes where previous trigger-related scaling\n activities can influence future scaling events.</p>\n <p>For scale out policies, while the cooldown period is in effect, the capacity that has been added by the\n previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next\n scale out. The intention is to continuously (but not excessively) scale out. For example, an alarm triggers a\n step scaling policy to scale out an Amazon ECS service by 2 tasks, the scaling activity completes successfully,\n and a cooldown period of 5 minutes starts. During the Cooldown period, if the alarm triggers the same policy\n again but at a more aggressive step adjustment to scale out the service by 3 tasks, the 2 tasks that were added\n in the previous scale out event are considered part of that capacity and only 1 additional task is added to the desired count.</p>\n <p>For scale in policies, the cooldown period is used to block subsequent scale in requests until it has expired.\n The intention is to scale in conservatively to protect your application's availability. However, if another\n alarm triggers a scale out policy during the cooldown period after a scale in, Application Auto Scaling scales\n out your scalable target immediately.</p>\n `,\n 'titus.autoscaling.scaleIn.cooldown': `\n <p>The amount of time, in seconds, after a scale in activity completes before another scale in activity can start.</p>\n <p>The cooldown period is used to block subsequent scale in requests until it has expired. The intention is to scale\n in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy\n during the cooldown period after a scale in, Application Auto Scaling scales out your scalable target immediately.</p>\n `,\n 'titus.autoscaling.scaleOut.cooldown': `\n <p>The amount of time, in seconds, after a scale out activity completes before another scale out activity can start.</p>\n <p>While the cooldown period is in effect, the capacity that has been added by the previous scale out event that\n initiated the cooldown is calculated as part of the desired capacity for the next scale out. The intention is to\n continuously (but not excessively) scale out.</p>\n `,\n 'titus.disruptionbudget.description': `\n <p>\n The Job Disruption Budget is part of the job descriptor, and defines the behavior of how containers of the\n job can be relocated.\n <a href=\"http://manuals.test.netflix.net/view/titus-docs/mkdocs/master/disruption_budget/\" target=\"_blank\">\n Read the full documentation\n </a>\n </p>\n `,\n};\n\nObject.keys(helpContents).forEach((key) => HelpContentsRegistry.register(key, helpContents[key]));\n","import * as React from 'react';\nimport {\n CollapsibleSection,\n CopyToClipboard,\n LabeledValue,\n LabeledValueList,\n LinkWithClipboard,\n} from '@spinnaker/core';\n\nexport interface ITitusInstanceDnsProps {\n containerIp: string;\n host: string;\n instancePort: string;\n ipv6Address: string;\n}\n\nexport const TitusInstanceDns = ({ containerIp, host, instancePort, ipv6Address }: ITitusInstanceDnsProps) => (\n <CollapsibleSection heading=\"DNS\" defaultExpanded={true}>\n <LabeledValueList className=\"dl-horizontal dl-narrow\">\n {containerIp && (\n <LabeledValue\n label=\"Container IP\"\n value={\n <>\n {containerIp}\n <CopyToClipboard text={containerIp} toolTip=\"Copy container IP to clipboard\" />\n </>\n }\n />\n )}\n {ipv6Address && (\n <LabeledValue\n label=\"Container IPv6\"\n value={<LinkWithClipboard text={ipv6Address} url={`http://${ipv6Address}:${instancePort}`} />}\n />\n )}\n <LabeledValue label=\"Host IP\" value={host} />\n </LabeledValueList>\n </CollapsibleSection>\n);\n","import React from 'react';\n\nimport { InstanceInformation } from '@spinnaker/amazon';\nimport { CollapsibleSection, LabeledValue, LinkWithClipboard } from '@spinnaker/core';\n\nimport type { ITitusInstance } from '../../domain';\n\nexport interface ITitusInstanceInformationProps {\n instance: ITitusInstance;\n titusUiEndpoint: string;\n}\n\nexport const TitusInstanceInformation = ({ instance, titusUiEndpoint }: ITitusInstanceInformationProps) => {\n const { id, jobId } = instance;\n return (\n <CollapsibleSection heading=\"Instance Information\" defaultExpanded={true}>\n <dl className=\"dl-horizontal dl-narrow\">\n <InstanceInformation\n account={instance.account}\n availabilityZone={instance.availabilityZone}\n instanceType={instance.instanceType}\n launchTime={instance.launchTime}\n provider={instance.provider}\n region={instance.region}\n serverGroup={instance.serverGroup}\n />\n <LabeledValue\n label=\"Job Id\"\n value={\n <a href={`${titusUiEndpoint}jobs/${jobId}`} target=\"_blank\">\n {jobId}\n </a>\n }\n />\n <LabeledValue\n label=\"Instance Id\"\n value={<LinkWithClipboard text={id} url={`${titusUiEndpoint}jobs/${jobId}/tasks/${id}`} />}\n />\n </dl>\n </CollapsibleSection>\n );\n};\n","import IInjectorService = angular.auto.IInjectorService;\n\nimport { ReactInject } from '@spinnaker/core';\n\n// prettier-ignore\nexport class TitusReactInject extends ReactInject {\n public get titusServerGroupTransformer() { return this.$injector.get('titusServerGroupTransformer') as any; }\n public get titusServerGroupCommandBuilder() { return this.$injector.get('titusServerGroupCommandBuilder') as any; }\n public get titusServerGroupConfigurationService() { return this.$injector.get('titusServerGroupConfigurationService') as any; }\n public get titusSecurityGroupReader() { return this.$injector.get('titusSecurityGroupReader') as any; }\n\n public initialize($injector: IInjectorService) {\n this.$injector = $injector;\n }\n}\n\nexport const TitusReactInjector: TitusReactInject = new TitusReactInject();\n","import { UISref } from '@uirouter/react';\nimport { UIRouterContextComponent } from '@uirouter/react-hybrid';\nimport { sortBy } from 'lodash';\nimport React from 'react';\n\nimport type { Application, ISecurityGroup } from '@spinnaker/core';\nimport { AccountService, CollapsibleSection, FirewallLabels, ReactInjector } from '@spinnaker/core';\nimport type { ITitusServerGroupView } from '../../domain';\nimport { TitusReactInjector } from '../../reactShims';\n\nexport interface ITitusServerGroupDetailsSectionProps {\n app: Application;\n serverGroup: ITitusServerGroupView;\n}\n\nexport interface ISecurityGroupsDetailsSectionState {\n securityGroups?: ISecurityGroup[];\n}\n\nexport class TitusSecurityGroupsDetailsSection extends React.Component<\n ITitusServerGroupDetailsSectionProps,\n ISecurityGroupsDetailsSectionState\n> {\n constructor(props: ITitusServerGroupDetailsSectionProps) {\n super(props);\n this.state = {};\n }\n\n public componentDidMount() {\n this.configureSecurityGroups(this.props);\n }\n\n private configureSecurityGroups(props: ITitusServerGroupDetailsSectionProps): void {\n const { app, serverGroup } = props;\n const { region } = serverGroup;\n if (app.securityGroupsIndex && serverGroup.accountDetails) {\n const securityGroups = serverGroup.securityGroups.map((sgId) =>\n TitusReactInjector.titusSecurityGroupReader.resolveIndexedSecurityGroup(\n app.securityGroupsIndex,\n { account: serverGroup.accountDetails.awsAccount, region },\n sgId,\n ),\n );\n this.setState({ securityGroups });\n } else {\n AccountService.listAllAccounts('titus').then((accounts) => {\n const titusAccount = accounts.find((a) => a.name === serverGroup.account);\n if (titusAccount && titusAccount.awsAccount) {\n ReactInjector.securityGroupReader.getAllSecurityGroups().then((allSecurityGroups) => {\n const regionalGroups = allSecurityGroups[titusAccount.awsAccount]['aws'][region];\n const securityGroups = serverGroup.securityGroups\n .map((sgId) => regionalGroups.find((rg) => rg.id === sgId))\n .filter((g) => g)\n .map((sg) => ({\n account: titusAccount.awsAccount,\n name: sg.name,\n id: sg.id,\n vpcId: sg.vpcId,\n }));\n this.setState({ securityGroups });\n });\n }\n });\n }\n }\n\n public componentWillReceiveProps(nextProps: ITitusServerGroupDetailsSectionProps): void {\n this.configureSecurityGroups(nextProps);\n }\n\n public render(): JSX.Element {\n const { serverGroup } = this.props;\n const { securityGroups } = this.state;\n // prevent a reflow of the details panel when the security groups actually load by rendering a placeholder\n const initializing = !securityGroups && (serverGroup.securityGroups || []).length;\n\n return (\n <CollapsibleSection heading={FirewallLabels.get('Firewalls')} outerDivClassName=\"\">\n <ul>\n {initializing && serverGroup.securityGroups.map((sgId) => <li key={sgId}>...</li>)}\n <UIRouterContextComponent>\n <>\n {sortBy(securityGroups, 'name').map((securityGroup) => (\n <li key={securityGroup.name}>\n <UISref\n to=\"^.firewallDetails\"\n params={{\n name: securityGroup.name,\n accountId: securityGroup.account,\n region: serverGroup.region,\n vpcId: securityGroup.vpcId,\n provider: 'aws',\n }}\n >\n <a>\n {securityGroup.name} ({securityGroup.id})\n </a>\n </UISref>\n </li>\n ))}\n </>\n </UIRouterContextComponent>\n </ul>\n </CollapsibleSection>\n );\n }\n}\n","import type {\n IAmazonApplicationLoadBalancer,\n IAmazonHealth,\n IAmazonNetworkLoadBalancer,\n IAmazonTargetGroupHealth,\n ITargetGroup,\n} from '@spinnaker/amazon';\nimport { getAllTargetGroups } from '@spinnaker/amazon';\nimport type { Action, Application, IInstance, IJob } from '@spinnaker/core';\nimport { ConfirmationModalService, InstanceWriter, ReactInjector } from '@spinnaker/core';\n\nexport const applyTargetGroupInfoToHealthMetric = (\n metricGroups: IAmazonTargetGroupHealth[],\n targetGroups: ITargetGroup[],\n account: string,\n) => {\n return metricGroups.map((tg) => {\n const group = targetGroups.find(\n (g) => (g.name === tg.name || g.name === tg.targetGroupName) && g.account === account,\n );\n const useTrafficPort = group?.healthCheckPort === 'traffic-port' || !group?.healthCheckPort;\n return {\n ...tg,\n name: group?.name,\n healthCheckPath: group\n ? `:${useTrafficPort ? group?.port : group.healthCheckPort}${group?.healthCheckPath || ''}`\n : undefined,\n healthCheckProtocol: group?.healthCheckProtocol?.toLowerCase(),\n };\n });\n};\n\nexport const extractHealthMetrics = (\n health: IAmazonHealth[],\n loadBalancers: IAmazonApplicationLoadBalancer[] | IAmazonNetworkLoadBalancer[],\n account: string,\n): IAmazonHealth[] => {\n const displayableMetrics = (health || []).filter((m) => m.state !== 'Unknown');\n const allTargetGroups = getAllTargetGroups(loadBalancers);\n\n return displayableMetrics.map((metric) => {\n if (metric.type === 'TargetGroup') {\n const augmentedGroups = applyTargetGroupInfoToHealthMetric(metric.targetGroups, allTargetGroups, account);\n return { ...metric, targetGroups: augmentedGroups } as IAmazonHealth;\n }\n\n return metric;\n });\n};\n\nconst terminateInstance = (instance: IInstance, app: Application) => {\n return () => {\n const taskMonitorConfig = {\n application: app,\n title: `Terminating ${instance.id}`,\n onTaskComplete: () => {\n if (ReactInjector.$state.includes('**.instanceDetails', { id: instance.id })) {\n ReactInjector.$state.go('^');\n }\n },\n };\n\n const submitMethod = () => {\n const params: IJob = { cloudProvider: 'titus' };\n if (instance.serverGroup) {\n params.serverGroupName = instance.serverGroup;\n }\n return InstanceWriter.terminateInstance(instance, app, params);\n };\n\n ConfirmationModalService.confirm({\n header: `Really terminate ${instance.id}?`,\n buttonText: `Terminate ${instance.id}`,\n account: instance.account,\n taskMonitorConfig,\n submitMethod,\n });\n };\n};\n\nconst terminateInstanceAndShrinkServerGroup = (instance: IInstance, app: Application) => {\n return () => {\n const taskMonitorConfig = {\n application: app,\n title: `Terminating ${instance.id} and shrinking server group`,\n onTaskComplete: () => {\n if (ReactInjector.$state.includes('**.instanceDetails', { instanceId: instance.id })) {\n ReactInjector.$state.go('^');\n }\n },\n };\n\n const submitMethod = () => {\n return InstanceWriter.terminateInstancesAndShrinkServerGroups(\n [\n {\n cloudProvider: instance.cloudProvider,\n instanceIds: [instance.id],\n account: instance.account,\n region: instance.region,\n serverGroup: instance.serverGroup,\n instances: [instance],\n },\n ],\n app,\n );\n };\n\n ConfirmationModalService.confirm({\n header: `Really terminate ${instance.id} and shrink ${instance.serverGroup}?`,\n buttonText: `Terminate ${instance.id} and shrink ${instance.serverGroup}`,\n account: instance.account,\n taskMonitorConfig,\n submitMethod,\n });\n };\n};\n\nconst enableInstanceInDiscovery = (instance: IInstance, app: Application) => {\n return () => {\n const taskMonitorConfig = {\n application: app,\n title: `Enabling ${instance.id} in discovery`,\n };\n\n const submitMethod = () => InstanceWriter.enableInstanceInDiscovery(instance, app);\n\n ConfirmationModalService.confirm({\n header: `Really enable ${instance.id} in discovery?`,\n buttonText: `Enable ${instance.id}`,\n account: instance.account,\n taskMonitorConfig,\n submitMethod,\n });\n };\n};\n\nconst disableInstanceInDiscovery = (instance: IInstance, app: Application) => {\n return () => {\n const taskMonitorConfig = {\n application: app,\n title: `Disabling ${instance.id} in discovery`,\n };\n\n const submitMethod = () => InstanceWriter.disableInstanceInDiscovery(instance, app);\n\n ConfirmationModalService.confirm({\n header: `Really disable ${instance.id} in discovery?`,\n buttonText: `Disable ${instance.id}`,\n account: instance.account,\n taskMonitorConfig,\n submitMethod,\n });\n };\n};\n\nexport const buildTaskActions = (instance: IInstance, app: Application): Action[] => {\n const taskActions = [\n { label: 'Terminate', triggerAction: terminateInstance(instance, app) },\n { label: 'Terminate and Shrink Server Group', triggerAction: terminateInstanceAndShrinkServerGroup(instance, app) },\n ];\n\n const discoveryHealth = (instance.health || []).filter((h) => h.type === 'Discovery');\n\n if (discoveryHealth.length && discoveryHealth[0].state === 'OutOfService') {\n taskActions.push({\n label: 'Enable in Discovery',\n triggerAction: enableInstanceInDiscovery(instance, app),\n });\n }\n\n const hasHealthState = (discoveryHealth || []).some((h) => h.state === 'Up' || h.state === 'Down');\n if (hasHealthState) {\n taskActions.push({\n label: 'Disable in Discovery',\n triggerAction: disableInstanceInDiscovery(instance, app),\n });\n }\n\n return taskActions;\n};\n","import * as React from 'react';\n\nimport type { IAmazonHealth } from '@spinnaker/amazon';\nimport { InstanceStatus } from '@spinnaker/amazon';\nimport type {\n Action,\n Application,\n IAccountDetails,\n IInstanceDetailsProps,\n IMoniker,\n IOverridableProps,\n} from '@spinnaker/core';\nimport {\n AccountService,\n CollapsibleSection,\n ConsoleOutputLink,\n InstanceActions,\n InstanceDetailsHeader,\n InstanceDetailsPane,\n InstanceInsights,\n InstanceLinks,\n InstanceReader,\n overridableComponent,\n RecentHistoryService,\n SETTINGS,\n Spinner,\n useData,\n} from '@spinnaker/core';\n\nimport { TitusInstanceDns } from './TitusInstanceDns';\nimport { TitusInstanceInformation } from './TitusInstanceInformation';\nimport type { ITitusInstance, ITitusServerGroup, ITitusServerGroupView } from '../../domain';\nimport { TitusSecurityGroupsDetailsSection } from '../../serverGroup/details/TitusSecurityGroups';\nimport { buildTaskActions, extractHealthMetrics } from './titusInstanceDetailsUtils';\n\nexport interface ITitusInstanceDetailsProps extends IInstanceDetailsProps {\n instance: { instanceId: string };\n}\n\nexport interface ITitusInstanceDetailsContentProps {\n account: IAccountDetails;\n actions: Action[];\n app: Application;\n baseIpAddress: string;\n environment: string;\n healthMetrics: IAmazonHealth[];\n instance: ITitusInstance;\n instanceId: string;\n instancePort: string;\n loading: boolean;\n moniker: IMoniker;\n serverGroup: ITitusServerGroup;\n region: string;\n}\n\nconst TitusInstanceDetailsContent = ({\n account,\n actions,\n app,\n baseIpAddress,\n environment,\n healthMetrics,\n instance,\n instanceId,\n instancePort,\n loading,\n moniker,\n serverGroup,\n region,\n}: ITitusInstanceDetailsContentProps) => {\n const defaultSshLink = `ssh -t ${account?.bastionHost} 'titus-ssh -region ${region} ${instanceId}'`;\n return (\n <div className=\"details-panel\">\n <div className=\"header\">\n <InstanceDetailsHeader\n healthState={instance.healthState}\n instanceId={instanceId}\n loading={loading}\n sshLink={defaultSshLink}\n standalone={app.isStandalone}\n />\n <div className=\"actions\">\n <InstanceActions actions={actions} />\n {Boolean(instance?.insightActions?.length) && (\n <InstanceInsights analytics={true} insights={instance.insightActions} instance={instance} />\n )}\n </div>\n </div>\n <div className=\"content\">\n <TitusInstanceInformation instance={instance} titusUiEndpoint={instance.titusUiEndpoint} />\n <InstanceStatus\n healthMetrics={healthMetrics}\n healthState={instance.healthState}\n metricTypes={['TargetGroup']}\n privateIpAddress={instance.privateIpAddress}\n />\n <TitusInstanceDns\n containerIp={instance.placement?.containerIp}\n host={instance.placement?.host}\n instancePort={instancePort}\n ipv6Address={instance.ipv6Address}\n />\n <div className=\"collapsible-section\">\n <TitusSecurityGroupsDetailsSection app={app} serverGroup={serverGroup as ITitusServerGroupView} />\n </div>\n <CollapsibleSection heading=\"Console Output\">\n <ConsoleOutputLink instance={instance} />\n </CollapsibleSection>\n <InstanceLinks\n address={baseIpAddress}\n application={app}\n instance={instance}\n environment={environment}\n moniker={moniker}\n />\n </div>\n </div>\n );\n};\n\nconst OverridableTitusInstanceDetailsContent = overridableComponent<\n ITitusInstanceDetailsContentProps & IOverridableProps,\n typeof TitusInstanceDetailsContent\n>(TitusInstanceDetailsContent, 'titus.instance.details.content');\n\nexport const TitusInstanceDetails = ({ app, environment, instance, moniker }: ITitusInstanceDetailsProps) => {\n const { instanceId } = instance;\n const serverGroup = app.serverGroups.data.find((sg: ITitusServerGroup) =>\n sg.instances.some((possibleMatch) => possibleMatch.id === instanceId),\n );\n const { account, region } = serverGroup;\n\n const retrieveInstance = () => {\n RecentHistoryService.addExtraDataToLatest('instances', {\n account,\n region,\n serverGroup: serverGroup.name,\n });\n\n return Promise.all([\n InstanceReader.getInstanceDetails(account, region, instanceId).then((instance) => ({\n ...instance,\n account,\n region,\n })),\n AccountService.getAccountDetails(account),\n ]);\n };\n\n const addTitusUiEndpoint = (result: [ITitusInstance, IAccountDetails]) => {\n const [instance, account] = result;\n const regionDetails = (account?.regions || []).find((r) => r.name === region);\n\n return [{ titusUiEndpoint: regionDetails?.endpoint, ...instance }, account];\n };\n\n const {\n result: [currentInstance, currentAccount],\n status,\n } = useData(\n () => {\n if (app.isStandalone) {\n return retrieveInstance().then((result) => addTitusUiEndpoint(result as [ITitusInstance, IAccountDetails]));\n } else {\n return app.serverGroups\n .ready()\n .then(retrieveInstance)\n .then((result: [ITitusInstance, IAccountDetails]) => addTitusUiEndpoint(result));\n }\n },\n [{} as ITitusInstance, {} as IAccountDetails],\n [instanceId, serverGroup],\n );\n\n const taskActions = buildTaskActions(currentInstance, app);\n const healthMetrics = extractHealthMetrics(\n currentInstance.health as IAmazonHealth[],\n app.loadBalancers.data,\n currentAccount.awsAccount,\n );\n\n const isLoading = status === 'PENDING';\n const instancePort = app.attributes?.instancePort || SETTINGS.defaultInstancePort || '80';\n const baseIpAddress = currentInstance.placement?.containerIp || currentInstance?.placement?.host;\n\n if (isLoading) {\n return (\n <InstanceDetailsPane>\n <div className=\"horizontal center middle\">\n <Spinner size=\"small\" />\n </div>\n </InstanceDetailsPane>\n );\n }\n\n if (!currentInstance?.id) {\n return (\n <div className=\"details-panel\">\n <div className=\"header\">\n <InstanceDetailsPane>\n <div className=\"header-text horizontal middle\">\n <h3 className=\"horizontal middle space-between flex-1\">{instance.instanceId}</h3>\n </div>\n </InstanceDetailsPane>\n </div>\n <div className=\"content\">\n <div className=\"content-section\">\n <div className=\"content-body text-center\">\n <h3>Instance not found.</h3>\n </div>\n </div>\n </div>\n </div>\n );\n }\n\n return (\n <OverridableTitusInstanceDetailsContent\n account={currentAccount}\n actions={taskActions}\n app={app}\n baseIpAddress={baseIpAddress}\n environment={environment}\n healthMetrics={healthMetrics}\n instance={currentInstance as ITitusInstance}\n instanceId={instance.instanceId}\n instancePort={instancePort}\n moniker={moniker}\n loading={isLoading}\n serverGroup={serverGroup}\n region={region}\n />\n );\n};\n","export default \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABGCAYAAAB7Xo6TAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAALEwAACxMBAJqcGAAABCVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjU8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjwvdG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nXeFnyqokjhcP5I+HkCXDYDAAtYhjC1h8u7ogCQEdCJGGMAmEaASCSMAgiTJ4+7o3nuHsL4TjCgEjc5BAIx0Ulcq9Xbad7cXrc5fvO2GkJh+aCB3L2sr0rVtnTug9NAw5RLRCyPLVtkha9/B4X7m9z9gj/QXtDQSVvoOLdc3kWeSW1yWmTzqavwcnNraHaqeoQQBhbOO7qCPYJbJkiDAhiMITiF/cH+E48kpikY4UVCPjaIBA3dU57jxhkWkRs6UX9SbRt9ywMKu0okW8Q+dZ2dO1gnqNOcXKJWpr7t3v+38Gs9AgpWxz9DDp+NQ//ryOkTXttBm0VcMXNPfDqGRR8lMQmcHdnE8A9rs9hEOQ6kGzN5pm5JNTLJa2gILm1k9lckrxPXU7uhxhcAJf22sTltZf4I2LQnsWJTuDGr3HPH+lLN9Gkpag2O64P4oS8gze1udD146D2wP8H5JyTFz+hnOcAAAAASUVORK5CYII=\"","'use strict';\n\nimport UIROUTER_ANGULARJS from '@uirouter/angularjs';\nimport { module } from 'angular';\nimport _ from 'lodash';\n\nimport { ClusterState, UrlBuilder } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_CLONESERVERGROUP_CLONESERVERGROUPEXECUTIONDETAILS_CONTROLLER =\n 'spinnaker.titus.pipeline.stage.cloneServerGroup.executionDetails.controller';\nexport const name = TITUS_PIPELINE_STAGES_CLONESERVERGROUP_CLONESERVERGROUPEXECUTIONDETAILS_CONTROLLER; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_CLONESERVERGROUP_CLONESERVERGROUPEXECUTIONDETAILS_CONTROLLER, [\n UIROUTER_ANGULARJS,\n]).controller('titusCloneServerGroupExecutionDetailsCtrl', [\n '$scope',\n '$stateParams',\n 'executionDetailsSectionService',\n function ($scope, $stateParams, executionDetailsSectionService) {\n $scope.configSections = ['cloneServerGroupConfig', 'taskStatus'];\n\n const initialized = () => {\n const resultObjects = context['kato.tasks'][0].resultObjects;\n $scope.detailsSection = $stateParams.details;\n\n const context = $scope.stage.context || {};\n const results = [];\n\n function addDeployedArtifacts(key) {\n const deployedArtifacts = _.find(resultObjects, key);\n if (deployedArtifacts) {\n _.forEach(deployedArtifacts[key], (serverGroupNameAndRegion) => {\n if (serverGroupNameAndRegion.includes(':')) {\n const [region, serverGroupName] = serverGroupNameAndRegion.split(':');\n const result = {\n type: 'serverGroups',\n application: context.application,\n serverGroup: serverGroupName,\n account: context.credentials,\n region: region,\n provider: 'titus',\n project: $stateParams.project,\n };\n result.href = UrlBuilder.buildFromMetadata(result);\n results.push(result);\n }\n });\n }\n }\n\n if (context && context['kato.tasks'] && context['kato.tasks'].length) {\n if (resultObjects && resultObjects.length) {\n addDeployedArtifacts('serverGroupNames');\n }\n }\n $scope.deployed = results;\n };\n\n this.overrideFiltersForUrl = (r) => ClusterState.filterService.overrideFiltersForUrl(r);\n\n const initialize = () => executionDetailsSectionService.synchronizeSection($scope.configSections, initialized);\n\n initialize();\n\n $scope.$on('$stateChangeSuccess', initialize);\n },\n]);\n","'use strict';\n\nimport { module } from 'angular';\nimport _ from 'lodash';\n\nimport { AccountService, NameUtils, Registry, StageConstants } from '@spinnaker/core';\nimport { TITUS_PIPELINE_STAGES_CLONESERVERGROUP_CLONESERVERGROUPEXECUTIONDETAILS_CONTROLLER } from './cloneServerGroupExecutionDetails.controller';\n\nexport const TITUS_PIPELINE_STAGES_CLONESERVERGROUP_TITUSCLONESERVERGROUPSTAGE =\n 'spinnaker.titus.pipeline.stage.cloneServerGroupStage';\nexport const name = TITUS_PIPELINE_STAGES_CLONESERVERGROUP_TITUSCLONESERVERGROUPSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_CLONESERVERGROUP_TITUSCLONESERVERGROUPSTAGE, [\n TITUS_PIPELINE_STAGES_CLONESERVERGROUP_CLONESERVERGROUPEXECUTIONDETAILS_CONTROLLER,\n])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'cloneServerGroup',\n cloudProvider: 'titus',\n templateUrl: require('./cloneServerGroupStage.html'),\n executionDetailsUrl: require('./cloneServerGroupExecutionDetails.html'),\n executionStepLabelUrl: require('./cloneServerGroupStepLabel.html'),\n validators: [\n { type: 'requiredField', fieldName: 'targetCluster', fieldLabel: 'cluster' },\n { type: 'requiredField', fieldName: 'target' },\n { type: 'requiredField', fieldName: 'region' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusCloneServerGroupStageCtrl', [\n '$scope',\n function ($scope) {\n const stage = $scope.stage;\n\n $scope.viewState = {\n accountsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then((accounts) => {\n $scope.accounts = accounts;\n $scope.viewState.accountsLoaded = true;\n });\n\n this.cloneTargets = StageConstants.TARGET_LIST;\n stage.target = stage.target || this.cloneTargets[0].val;\n stage.application = $scope.application.name;\n stage.cloudProvider = 'titus';\n stage.cloudProviderType = 'titus';\n stage.viewState = {\n mode: 'editPipeline',\n };\n\n if (\n stage.isNew &&\n $scope.application.attributes.platformHealthOnlyShowOverride &&\n $scope.application.attributes.platformHealthOnly\n ) {\n stage.interestingHealthProviderNames = ['Titus'];\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n\n this.targetClusterUpdated = () => {\n if (stage.targetCluster) {\n const clusterName = NameUtils.parseServerGroupName(stage.targetCluster);\n stage.stack = clusterName.stack;\n stage.freeFormDetails = clusterName.freeFormDetails;\n } else {\n stage.stack = '';\n stage.freeFormDetails = '';\n }\n };\n\n $scope.$watch('stage.targetCluster', this.targetClusterUpdated);\n\n this.removeCapacity = () => {\n delete stage.capacity;\n };\n\n if (!_.has(stage, 'useSourceCapacity')) {\n stage.useSourceCapacity = true;\n }\n\n this.toggleSuspendedProcess = (process) => {\n stage.suspendedProcesses = stage.suspendedProcesses || [];\n const processIndex = stage.suspendedProcesses.indexOf(process);\n if (processIndex === -1) {\n stage.suspendedProcesses.push(process);\n } else {\n stage.suspendedProcesses.splice(processIndex, 1);\n }\n };\n\n this.processIsSuspended = (process) => {\n return stage.suspendedProcesses && stage.suspendedProcesses.includes(process);\n };\n\n this.onRedBlackFieldChange = (key, value) => {\n _.set(stage, key, value);\n };\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry, StageConstants } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_DESTROYASG_TITUSDESTROYASGSTAGE = 'spinnaker.titus.pipeline.stage.destroyAsgStage';\nexport const name = TITUS_PIPELINE_STAGES_DESTROYASG_TITUSDESTROYASGSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_DESTROYASG_TITUSDESTROYASGSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'destroyServerGroup',\n alias: 'destroyAsg',\n cloudProvider: 'titus',\n templateUrl: require('./destroyAsgStage.html'),\n executionStepLabelUrl: require('./destroyAsgStepLabel.html'),\n accountExtractor: (stage) => [stage.context.credentials],\n configAccountExtractor: (stage) => [stage.credentials],\n validators: [\n {\n type: 'targetImpedance',\n message:\n 'This pipeline will attempt to destroy a server group without deploying a new version into the same cluster.',\n },\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'target' },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusDestroyAsgStageCtrl', [\n '$scope',\n function ($scope) {\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n $scope.regions = ['us-east-1', 'us-west-1', 'eu-west-1', 'us-west-2'];\n\n $scope.targets = StageConstants.TARGET_LIST;\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (!stage.target) {\n stage.target = $scope.targets[0].val;\n }\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry, StageConstants } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_DISABLEASG_TITUSDISABLEASGSTAGE = 'spinnaker.titus.pipeline.stage.disableAsgStage';\nexport const name = TITUS_PIPELINE_STAGES_DISABLEASG_TITUSDISABLEASGSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_DISABLEASG_TITUSDISABLEASGSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'disableServerGroup',\n alias: 'disableAsg',\n cloudProvider: 'titus',\n templateUrl: require('./disableAsgStage.html'),\n executionStepLabelUrl: require('./disableAsgStepLabel.html'),\n validators: [\n {\n type: 'targetImpedance',\n message:\n 'This pipeline will attempt to disable a server group without deploying a new version into the same cluster.',\n },\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'target' },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusDisableAsgStageCtrl', [\n '$scope',\n function ($scope) {\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n $scope.targets = StageConstants.TARGET_LIST;\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (\n stage.isNew &&\n $scope.application.attributes.platformHealthOnlyShowOverride &&\n $scope.application.attributes.platformHealthOnly\n ) {\n stage.interestingHealthProviderNames = ['Titus'];\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (!stage.target) {\n stage.target = $scope.targets[0].val;\n }\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_DISABLECLUSTER_TITUSDISABLECLUSTERSTAGE =\n 'spinnaker.titus.pipeline.stage.disableClusterStage';\nexport const name = TITUS_PIPELINE_STAGES_DISABLECLUSTER_TITUSDISABLECLUSTERSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_DISABLECLUSTER_TITUSDISABLECLUSTERSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'disableCluster',\n cloudProvider: 'titus',\n templateUrl: require('./disableClusterStage.html'),\n executionConfigSections: ['disableClusterConfig', 'taskStatus'],\n validators: [\n { type: 'requiredField', fieldName: 'cluster' },\n {\n type: 'requiredField',\n fieldName: 'remainingEnabledServerGroups',\n fieldLabel: 'Keep [X] enabled Server Groups',\n },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusDisableClusterStageCtrl', [\n '$scope',\n function ($scope) {\n const ctrl = this;\n\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n ctrl.reset = () => {\n ctrl.accountUpdated();\n ctrl.resetSelectedCluster();\n };\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (\n stage.isNew &&\n $scope.application.attributes.platformHealthOnlyShowOverride &&\n $scope.application.attributes.platformHealthOnly\n ) {\n stage.interestingHealthProviderNames = ['Titus'];\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (stage.remainingEnabledServerGroups === undefined) {\n stage.remainingEnabledServerGroups = 1;\n }\n\n ctrl.pluralize = function (str, val) {\n if (val === 1) {\n return str;\n }\n return str + 's';\n };\n\n if (stage.preferLargerOverNewer === undefined) {\n stage.preferLargerOverNewer = 'false';\n }\n stage.preferLargerOverNewer = stage.preferLargerOverNewer.toString();\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry, StageConstants } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_ENABLEASG_TITUSENABLEASGSTAGE = 'spinnaker.titus.pipeline.stage.enableAsgStage';\nexport const name = TITUS_PIPELINE_STAGES_ENABLEASG_TITUSENABLEASGSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_ENABLEASG_TITUSENABLEASGSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'enableServerGroup',\n alias: 'enableAsg',\n cloudProvider: 'titus',\n templateUrl: require('./enableAsgStage.html'),\n executionStepLabelUrl: require('./enableAsgStepLabel.html'),\n validators: [\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'target' },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusEnableAsgStageCtrl', [\n '$scope',\n function ($scope) {\n const ctrl = this;\n\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n ctrl.reset = () => {\n ctrl.accountUpdated();\n ctrl.resetSelectedCluster();\n };\n\n $scope.targets = StageConstants.TARGET_LIST;\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (\n stage.isNew &&\n $scope.application.attributes.platformHealthOnlyShowOverride &&\n $scope.application.attributes.platformHealthOnly\n ) {\n stage.interestingHealthProviderNames = ['Titus'];\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (!stage.target) {\n stage.target = $scope.targets[0].val;\n }\n\n $scope.$watch('stage.credentials', $scope.accountUpdated);\n },\n ]);\n","'use strict';\n\nimport * as angular from 'angular';\n\nimport { AccountService, Registry } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_FINDAMI_TITUSFINDAMISTAGE = 'spinnaker.titus.pipeline.stage.findAmiStage';\nexport const name = TITUS_PIPELINE_STAGES_FINDAMI_TITUSFINDAMISTAGE; // for backwards compatibility\nangular\n .module(TITUS_PIPELINE_STAGES_FINDAMI_TITUSFINDAMISTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'findImage',\n alias: 'findAmi',\n cloudProvider: 'titus',\n templateUrl: require('./findAmiStage.html'),\n validators: [\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'selectionStrategy', fieldLabel: 'Server Group Selection' },\n { type: 'requiredField', fieldName: 'credentials' },\n ],\n });\n })\n .controller('titusFindAmiStageCtrl', [\n '$scope',\n function ($scope) {\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n $scope.selectionStrategies = [\n {\n label: 'Largest',\n val: 'LARGEST',\n description: 'When multiple server groups exist, prefer the server group with the most instances',\n },\n {\n label: 'Newest',\n val: 'NEWEST',\n description: 'When multiple server groups exist, prefer the newest',\n },\n {\n label: 'Oldest',\n val: 'OLDEST',\n description: 'When multiple server groups exist, prefer the oldest',\n },\n {\n label: 'Fail',\n val: 'FAIL',\n description: 'When multiple server groups exist, fail',\n },\n ];\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n stage.selectionStrategy = stage.selectionStrategy || $scope.selectionStrategies[0].val;\n\n if (angular.isUndefined(stage.onlyEnabled)) {\n stage.onlyEnabled = true;\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n $scope.$watch('stage.credentials', $scope.accountUpdated);\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry, StageConstants } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_RESIZEASG_TITUSRESIZEASGSTAGE = 'spinnaker.titus.pipeline.stage.resizeAsgStage';\nexport const name = TITUS_PIPELINE_STAGES_RESIZEASG_TITUSRESIZEASGSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_RESIZEASG_TITUSRESIZEASGSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'resizeServerGroup',\n alias: 'resizeAsg',\n cloudProvider: 'titus',\n templateUrl: require('./resizeAsgStage.html'),\n executionConfigSections: ['resizeServerGroupConfig', 'taskStatus'],\n executionStepLabelUrl: require('./resizeAsgStepLabel.html'),\n accountExtractor: (stage) => [stage.context.credentials],\n configAccountExtractor: (stage) => [stage.credentials],\n validators: [\n {\n type: 'targetImpedance',\n message:\n 'This pipeline will attempt to resize a server group without deploying a new version into the same cluster.',\n },\n { type: 'requiredField', fieldName: 'target' },\n { type: 'requiredField', fieldName: 'action' },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusResizeAsgStageCtrl', [\n '$scope',\n function ($scope) {\n const ctrl = this;\n\n const stage = $scope.stage;\n\n $scope.viewState = {\n accountsLoaded: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.viewState.accountsLoaded = true;\n });\n\n $scope.resizeTargets = StageConstants.TARGET_LIST;\n\n $scope.scaleActions = [\n {\n label: 'Scale Up',\n val: 'scale_up',\n },\n {\n label: 'Scale Down',\n val: 'scale_down',\n },\n {\n label: 'Scale to Cluster Size',\n val: 'scale_to_cluster',\n },\n {\n label: 'Scale to Exact Size',\n val: 'scale_exact',\n },\n ];\n\n $scope.resizeTypes = [\n {\n label: 'Percentage',\n val: 'pct',\n },\n {\n label: 'Incremental',\n val: 'incr',\n },\n ];\n\n stage.capacity = stage.capacity || {};\n stage.regions = stage.regions || [];\n stage.target = stage.target || $scope.resizeTargets[0].val;\n stage.action = stage.action || $scope.scaleActions[0].val;\n stage.resizeType = stage.resizeType || $scope.resizeTypes[0].val;\n if (!stage.action && stage.resizeType === 'exact') {\n stage.action = 'scale_exact';\n }\n stage.cloudProvider = 'titus';\n\n if (\n stage.isNew &&\n $scope.application.attributes.platformHealthOnlyShowOverride &&\n $scope.application.attributes.platformHealthOnly\n ) {\n stage.interestingHealthProviderNames = ['Titus'];\n }\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n ctrl.updateResizeType = function () {\n if (stage.action === 'scale_exact') {\n stage.resizeType = 'exact';\n delete stage.scalePct;\n delete stage.scaleNum;\n } else {\n stage.capacity = {};\n if (stage.resizeType === 'pct') {\n delete stage.scaleNum;\n } else {\n stage.resizeType = 'incr';\n delete stage.scalePct;\n stage.scaleNum = stage.scaleNum || 0;\n }\n }\n };\n },\n ]);\n","import { get } from 'lodash';\nimport React from 'react';\n\nimport type { IExecutionDetailsSectionProps } from '@spinnaker/core';\nimport {\n AccountService,\n AccountTag,\n ExecutionDetailsSection,\n LabeledValue,\n LabeledValueList,\n Markdown,\n RenderOutputFile,\n StageFailureMessage,\n} from '@spinnaker/core';\n\nexport interface IRunJobExecutionDetailsState {\n titusUiEndpoint?: string;\n}\n\nexport class RunJobExecutionDetails extends React.Component<\n IExecutionDetailsSectionProps,\n IRunJobExecutionDetailsState\n> {\n public static title = 'runJobConfig';\n private mounted = false;\n\n constructor(props: IExecutionDetailsSectionProps) {\n super(props);\n this.state = {};\n }\n\n public componentDidMount() {\n this.mounted = true;\n this.setEndpoint();\n }\n\n private setEndpoint(): void {\n const { context } = this.props.stage;\n AccountService.getAccountDetails(context.credentials).then((details) => {\n const titusUiEndpoint = details.regions.find((r) => r.name === context.cluster.region).endpoint;\n this.mounted && this.setState({ titusUiEndpoint });\n });\n }\n\n private formatEntryPoint(entryPointList: string[], entryPoint: string): string {\n if (entryPointList && Array.isArray(entryPointList) && entryPointList.length > 0) {\n return entryPointList.length === 1 ? entryPointList[0] : JSON.stringify(entryPointList);\n }\n return entryPoint;\n }\n\n public componentWillUnmount() {\n this.mounted = false;\n }\n\n public componentWillReceiveProps() {\n this.setEndpoint();\n }\n\n public render() {\n const { stage, current, name } = this.props;\n const { titusUiEndpoint } = this.state;\n const { context } = stage;\n const { cluster } = context;\n const { resources, env, entryPoint, entryPointList } = cluster;\n const jobId = cluster ? get(context['deploy.jobs'], cluster.region, [])[0] : null;\n const taskId = get(context, 'jobStatus.completionDetails.taskId');\n\n const normalizedEntryPoint = this.formatEntryPoint(entryPointList, entryPoint);\n\n return (\n <ExecutionDetailsSection name={name} current={current}>\n <div className=\"row\">\n <div className=\"col-md-9\">\n <LabeledValueList className=\"dl-narrow dl-horizontal\">\n <LabeledValue label=\"Account\" value={<AccountTag account={context.credentials} />} />\n {cluster && (\n <>\n <LabeledValue label=\"Image\" value={cluster.imageId} />\n {normalizedEntryPoint && <LabeledValue label=\"Entrypoint\" value={normalizedEntryPoint} />}\n </>\n )}\n {jobId && (\n <LabeledValue\n label=\"Titus Job Id\"\n value={<Markdown message={`[${jobId}](${titusUiEndpoint}jobs/${jobId})`} />}\n />\n )}\n {taskId && (\n <LabeledValue\n label=\"Titus Task Id\"\n value={<Markdown message={`[${taskId}](${titusUiEndpoint}jobs/${jobId}/tasks/${taskId})`} />}\n />\n )}\n {resources && Object.keys(resources) && (\n <LabeledValue\n label=\"Resources\"\n value={\n <ul className=\"nostyle\">\n {Object.keys(resources).map((key) => (\n <li key={key}>\n {key}: {resources[key]}\n </li>\n ))}\n </ul>\n }\n />\n )}\n </LabeledValueList>\n </div>\n </div>\n {env && Object.keys(env) && (\n <div className=\"row\">\n <div className=\"col-md-12\">\n <h5 style={{ marginBottom: 0, paddingBottom: '5px' }}>Environment Variables</h5>\n <LabeledValueList>\n {Object.keys(env).map((key) => (\n <LabeledValue key={key} label={key} value={env[key]} />\n ))}\n </LabeledValueList>\n </div>\n </div>\n )}\n {context.propertyFileContents && (\n <div className=\"row\">\n <div className=\"col-md-12\">\n <h5 style={{ marginBottom: '0px', paddingBottom: '5px' }}>Property File</h5>\n <RenderOutputFile outputFileObject={context.propertyFileContents} />\n </div>\n </div>\n )}\n <StageFailureMessage\n stage={stage}\n message={stage.failureMessage || get(context, 'completionDetails.message')}\n />\n\n {taskId && (\n <div className=\"row\">\n <div className=\"col-md-12\">\n <div className=\"well alert alert-info\">\n <a target=\"_blank\" href={`${titusUiEndpoint}jobs/${jobId}/tasks/${taskId}/logs`}>\n View Execution Logs\n </a>\n <br />\n <a\n target=\"_blank\"\n href={`${titusUiEndpoint}jobs/${jobId}/tasks/${taskId}/logs/archived?file=stdout&view=Finished&open=true`}\n >\n Stdout\n </a>\n <br />\n <a\n target=\"_blank\"\n href={`${titusUiEndpoint}jobs/${jobId}/tasks/${taskId}/logs/archived?file=stderr&view=Finished&open=true`}\n >\n Stderr\n </a>\n </div>\n </div>\n </div>\n )}\n </ExecutionDetailsSection>\n );\n }\n}\n","import { chain, xor } from 'lodash';\nimport { $q } from 'ngimport';\nimport React from 'react';\n\nimport { SecurityGroupSelector, ServerGroupSecurityGroupsRemoved, VpcReader } from '@spinnaker/amazon';\nimport type { IAccountDetails, IAggregatedAccounts, ISecurityGroup, IVpc } from '@spinnaker/core';\nimport { AccountService, AccountTag, FirewallLabels, ReactInjector } from '@spinnaker/core';\n\nexport interface ITitusSecurityGroupPickerProps {\n account: string;\n region: string;\n command: any;\n groupsToEdit: string[];\n hideLabel: boolean;\n amazonAccount: string;\n onChange: (groups: string[]) => void;\n}\n\nexport interface ITitusSecurityGroupPickerState {\n availableGroups: ISecurityGroup[];\n removedGroups: string[];\n loaded: boolean;\n}\n\nexport class TitusSecurityGroupPicker extends React.Component<\n ITitusSecurityGroupPickerProps,\n ITitusSecurityGroupPickerState\n> {\n public state: ITitusSecurityGroupPickerState = {\n availableGroups: [],\n removedGroups: [],\n loaded: false,\n };\n\n private credentials: IAggregatedAccounts = {};\n private vpcs: IVpc[] = [];\n private securityGroups: any = {};\n\n constructor(props: ITitusSecurityGroupPickerProps) {\n super(props);\n }\n\n private getCredentials(): IAccountDetails {\n return this.credentials[this.props.command.credentials];\n }\n\n private getAwsAccount(): string {\n return this.getCredentials().awsAccount;\n }\n\n private getRegion(): string {\n return this.props.command.region || (this.props.command.cluster ? this.props.command.cluster.region : null);\n }\n\n private getVpcId(): string {\n const credentials = this.getCredentials();\n const match = this.vpcs.find(\n (vpc) =>\n vpc.name === credentials.awsVpc &&\n vpc.account === credentials.awsAccount &&\n vpc.region === this.getRegion() &&\n vpc.cloudProvider === 'aws',\n );\n return match ? match.id : null;\n }\n\n private getRegionalSecurityGroups(): ISecurityGroup[] {\n const newSecurityGroups: any = this.securityGroups[this.getAwsAccount()] || { aws: {} };\n return chain<ISecurityGroup>(newSecurityGroups.aws[this.getRegion()])\n .filter({ vpcId: this.getVpcId() })\n .sortBy('name')\n .value();\n }\n\n public refreshSecurityGroups(skipCommandReconfiguration?: boolean) {\n return ReactInjector.cacheInitializer.refreshCache('securityGroups').then(() => {\n return ReactInjector.securityGroupReader.getAllSecurityGroups().then((securityGroups) => {\n this.securityGroups = securityGroups;\n if (!skipCommandReconfiguration) {\n this.configureSecurityGroupOptions();\n }\n });\n });\n }\n\n private configureSecurityGroupOptions(): void {\n let availableGroups = this.getRegionalSecurityGroups();\n const oldAvailableGroups = this.state.availableGroups.length ? this.state.availableGroups : availableGroups;\n let removedGroups: string[];\n\n let groupsToEdit = this.props.groupsToEdit;\n if (availableGroups && this.props.groupsToEdit) {\n // not initializing - we are actually changing groups\n const oldGroupNames: string[] = groupsToEdit.map((groupId: string) => {\n const match = oldAvailableGroups.find((o) => o.id === groupId);\n return match ? match.name : groupId;\n });\n\n const matchedGroups: ISecurityGroup[] = oldGroupNames\n .map((groupId: string) => {\n const securityGroup: any = availableGroups.find((o) => o.id === groupId || o.name === groupId);\n return securityGroup ? securityGroup.name : null;\n })\n .map((groupName: string) => availableGroups.find((g) => g.name === groupName))\n .filter((group: any) => group);\n\n const matchedGroupNames: string[] = matchedGroups.map((g) => g.name);\n removedGroups = xor(oldGroupNames, matchedGroupNames);\n groupsToEdit = matchedGroups.map((g) => g.id);\n this.props.onChange(groupsToEdit);\n }\n availableGroups = availableGroups.sort((a, b) => a.name.localeCompare(b.name));\n this.setState({ availableGroups, loaded: true, removedGroups });\n }\n\n private clearRemoved = () => {\n this.setState({ removedGroups: [] });\n };\n\n public componentDidMount() {\n const credentialLoader = AccountService.getCredentialsKeyedByAccount('titus').then(\n (credentials: IAggregatedAccounts) => {\n this.credentials = credentials;\n },\n );\n const groupLoader = ReactInjector.securityGroupReader.getAllSecurityGroups().then((groups) => {\n this.securityGroups = groups;\n });\n const vpcLoader = VpcReader.listVpcs().then((vpcs: IVpc[]) => (this.vpcs = vpcs));\n $q.all([credentialLoader, groupLoader, vpcLoader]).then(() => this.configureSecurityGroupOptions());\n }\n\n public componentWillReceiveProps(nextProps: ITitusSecurityGroupPickerProps) {\n if (this.props.account !== nextProps.account || this.props.region !== nextProps.region) {\n this.configureSecurityGroupOptions();\n }\n }\n\n public render() {\n const { command, hideLabel, groupsToEdit, amazonAccount } = this.props;\n const { availableGroups, loaded, removedGroups } = this.state;\n\n const firewallsLabel = FirewallLabels.get('firewalls');\n\n if (loaded) {\n return (\n <div className=\"clearfix\">\n <ServerGroupSecurityGroupsRemoved removed={removedGroups} onClear={this.clearRemoved} />\n <SecurityGroupSelector\n command={command}\n hideLabel={hideLabel}\n availableGroups={availableGroups}\n groupsToEdit={groupsToEdit}\n refresh={() => this.refreshSecurityGroups() as any}\n onChange={this.props.onChange}\n helpKey=\"titus.deploy.securityGroups\"\n />\n\n {amazonAccount && command.credentials !== undefined && (\n <div className={`small ${!hideLabel ? 'col-md-offset-3 col-md-9' : ''}`}>\n Uses {firewallsLabel} from the Amazon account <AccountTag account={amazonAccount} />\n </div>\n )}\n </div>\n );\n }\n\n return null;\n }\n}\n","import type { IProviderSettings } from '@spinnaker/core';\nimport { SETTINGS } from '@spinnaker/core';\n\nexport interface ITitusProviderSettings extends IProviderSettings {\n defaults: {\n account?: string;\n region?: string;\n subnetType?: string;\n iamProfile?: string;\n };\n serverGroups?: {\n recommendedSubnets?: string[];\n };\n scalingActivities?: string[];\n}\n\nexport const TitusProviderSettings: ITitusProviderSettings = (SETTINGS.providers.titus as ITitusProviderSettings) || {\n defaults: {},\n};\nif (TitusProviderSettings) {\n TitusProviderSettings.resetToOriginal = SETTINGS.resetToOriginal;\n}\n","import type { FormikErrors, FormikProps } from 'formik';\nimport { Field } from 'formik';\nimport React from 'react';\n\nimport { AWSProviderSettings, SubnetSelectField } from '@spinnaker/amazon';\nimport type { Application, IServerGroup, IWizardPageComponent } from '@spinnaker/core';\nimport {\n AccountSelectInput,\n AccountTag,\n DeployingIntoManagedClusterWarning,\n DeploymentStrategySelector,\n HelpField,\n NameUtils,\n ReactInjector,\n RegionSelectField,\n ServerGroupDetailsField,\n ServerGroupNamePreview,\n} from '@spinnaker/core';\nimport { DockerImageAndTagSelector, DockerImageUtils } from '@spinnaker/docker';\n\nimport type { ITitusServerGroupCommand } from '../../../configure/serverGroupConfiguration.service';\nimport { TitusProviderSettings } from '../../../../titus.settings';\n\nconst isNotExpressionLanguage = (field: string) => field && !field.includes('${');\n\n// Allow dot, underscore, and spel\nconst isStackPattern = (stack: string) => (isNotExpressionLanguage(stack) ? /^([\\w.]+|\\${[^}]+})*$/.test(stack) : true);\n\n// Allow dot, underscore, caret, tilde, dash and spel\nconst isDetailPattern = (detail: string) =>\n isNotExpressionLanguage(detail) ? /^([\\w.^~-]+|\\${[^}]+})*$/.test(detail) : true;\n\nexport interface IServerGroupBasicSettingsProps {\n app: Application;\n formik: FormikProps<ITitusServerGroupCommand>;\n}\n\nexport interface IServerGroupBasicSettingsState {\n namePreview: string;\n createsNewCluster: boolean;\n latestServerGroup: IServerGroup;\n}\n\nexport class ServerGroupBasicSettings\n extends React.Component<IServerGroupBasicSettingsProps, IServerGroupBasicSettingsState>\n implements IWizardPageComponent<ITitusServerGroupCommand> {\n constructor(props: IServerGroupBasicSettingsProps) {\n super(props);\n\n const { values, setFieldValue } = this.props.formik;\n if (values.imageId && !values.imageId.includes('${')) {\n const { digest, organization, repository, tag } = DockerImageUtils.splitImageId(values.imageId);\n setFieldValue('digest', digest);\n setFieldValue('organization', organization);\n setFieldValue('repository', repository);\n setFieldValue('tag', tag);\n }\n\n this.state = {\n ...this.getStateFromProps(props),\n };\n }\n\n private getStateFromProps(props: IServerGroupBasicSettingsProps) {\n const { app } = props;\n const { values } = props.formik;\n const namePreview = NameUtils.getClusterName(app.name, values.stack, values.freeFormDetails);\n const createsNewCluster = !app.clusters.find((c) => c.name === namePreview);\n\n const inCluster = (app.serverGroups.data as IServerGroup[])\n .filter((serverGroup) => {\n return (\n serverGroup.cluster === namePreview &&\n serverGroup.account === values.credentials &&\n serverGroup.region === values.region\n );\n })\n .sort((a, b) => a.createdTime - b.createdTime);\n const latestServerGroup = inCluster.length ? inCluster.pop() : null;\n\n return { namePreview, createsNewCluster, latestServerGroup };\n }\n\n private accountUpdated = (account: string): void => {\n const { setFieldValue, values } = this.props.formik;\n values.credentials = account;\n values.credentialsChanged(values);\n setFieldValue('account', account);\n setFieldValue('credentials', account);\n\n const accountDetails = values.backingData.credentialsKeyedByAccount[account];\n\n const newAttr = {\n ...values.containerAttributes,\n 'titusParameter.agent.assignIPv6Address': accountDetails.environment === 'test' ? 'true' : 'false',\n };\n setFieldValue('containerAttributes', newAttr);\n };\n\n private regionUpdated = (region: string): void => {\n const { values, setFieldValue } = this.props.formik;\n values.region = region;\n values.regionChanged(values);\n setFieldValue('region', region);\n };\n\n public validate(values: ITitusServerGroupCommand) {\n const errors: FormikErrors<ITitusServerGroupCommand> = {};\n\n if (!isStackPattern(values.stack)) {\n errors.stack = 'Only dot(.) and underscore(_) special characters are allowed in the Stack field.';\n }\n\n if (!isDetailPattern(values.freeFormDetails)) {\n errors.freeFormDetails =\n 'Only dot(.), underscore(_), caret (^), tilde (~), and dash(-) special characters are allowed in the Detail field.';\n }\n\n if (!values.viewState.disableImageSelection) {\n if (!values.imageId) {\n errors.imageId = 'Image is required.';\n }\n }\n\n // this error is added exclusively to disable the \"create/clone\" button - it is not visible aside from the warning\n // rendered by the DeployingIntoManagedClusterWarning component\n if (values.resourceSummary) {\n errors.resourceSummary = { id: 'Cluster is managed' };\n }\n\n return errors;\n }\n\n private navigateToLatestServerGroup = () => {\n const { values } = this.props.formik;\n const { latestServerGroup } = this.state;\n\n const params = {\n provider: values.selectedProvider,\n accountId: latestServerGroup.account,\n region: latestServerGroup.region,\n serverGroup: latestServerGroup.name,\n };\n\n const { $state } = ReactInjector;\n if ($state.is('home.applications.application.insight.clusters')) {\n $state.go('.serverGroup', params);\n } else {\n $state.go('^.serverGroup', params);\n }\n };\n\n private stackChanged = (stack: string) => {\n const { formik } = this.props;\n formik.setFieldValue('stack', stack);\n formik.values.clusterChanged(formik.values);\n };\n\n public componentWillReceiveProps(nextProps: IServerGroupBasicSettingsProps) {\n this.setState(this.getStateFromProps(nextProps));\n }\n\n private strategyChanged = (values: ITitusServerGroupCommand, strategy: any) => {\n values.onStrategyChange(values, strategy);\n this.props.formik.setFieldValue('strategy', strategy.key);\n };\n\n private dockerValuesChanged = (dockerValues: any) => {\n Object.keys(dockerValues).forEach((key) => {\n this.props.formik.setFieldValue(key, dockerValues[key]);\n });\n };\n\n private onStrategyFieldChange = (key: string, value: any) => {\n this.props.formik.setFieldValue(key, value);\n };\n\n private onSubnetChange = () => {\n const { setFieldValue, values } = this.props.formik;\n values.subnetChanged(values);\n setFieldValue('subnetType', values.subnetType);\n };\n\n public render() {\n const { app, formik } = this.props;\n const { errors, setFieldValue, values } = formik;\n const { createsNewCluster, latestServerGroup, namePreview } = this.state;\n\n const accounts = values.backingData.accounts;\n const readOnlyFields = values.viewState.readOnlyFields || {};\n\n const customImage = values.imageId && values.imageId !== '${trigger.properties.imageName}';\n\n const defaultSubnetTypes = []\n .concat(TitusProviderSettings.defaults?.subnetType)\n .concat(AWSProviderSettings.defaults?.subnetType)\n .filter((x) => !!x);\n\n return (\n <div className=\"container-fluid form-horizontal\">\n <DeployingIntoManagedClusterWarning app={app} formik={formik} />\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Account</div>\n <div className=\"col-md-7\">\n <AccountSelectInput\n value={values.credentials}\n onChange={(evt: any) => this.accountUpdated(evt.target.value)}\n readOnly={readOnlyFields.credentials}\n accounts={accounts}\n provider=\"titus\"\n />\n {values.credentials !== undefined && (\n <div className=\"small\">\n Uses resources from the Amazon account{' '}\n <AccountTag\n account={\n values.backingData.credentialsKeyedByAccount[values.credentials] &&\n values.backingData.credentialsKeyedByAccount[values.credentials].awsAccount\n }\n />\n </div>\n )}\n </div>\n </div>\n <RegionSelectField\n readOnly={readOnlyFields.region}\n labelColumns={3}\n component={values}\n field=\"region\"\n account={values.credentials}\n regions={values.backingData.filtered.regions}\n onChange={this.regionUpdated}\n />\n <SubnetSelectField\n application={app}\n component={values}\n field=\"subnetType\"\n helpKey=\"titus.serverGroup.subnet\"\n labelColumns={3}\n onChange={this.onSubnetChange}\n region={values.region}\n subnets={values.backingData.filtered.subnetPurposes}\n defaultSubnetTypes={defaultSubnetTypes}\n recommendedSubnetTypes={TitusProviderSettings.serverGroups?.recommendedSubnets}\n showSubnetWarning={true}\n />\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n Stack <HelpField id=\"aws.serverGroup.stack\" />\n </div>\n <div className=\"col-md-7\">\n <input\n type=\"text\"\n className=\"form-control input-sm no-spel\"\n value={values.stack || ''}\n onChange={(e) => this.stackChanged(e.target.value)}\n />\n </div>\n </div>\n {errors.stack && (\n <div className=\"form-group row slide-in\">\n <div className=\"col-sm-9 col-sm-offset-2 error-message\">\n <span>{errors.stack}</span>\n </div>\n </div>\n )}\n\n <ServerGroupDetailsField app={app} formik={formik} />\n\n {!values.viewState.disableImageSelection && (\n <DockerImageAndTagSelector\n specifyTagByRegex={false}\n account={values.credentials}\n digest={values.digest}\n imageId={values.imageId}\n organization={values.organization}\n registry={values.registry}\n repository={values.repository}\n tag={values.tag}\n showRegistry={false}\n deferInitialization={values.deferredInitialization}\n onChange={this.dockerValuesChanged}\n />\n )}\n {values.viewState.disableImageSelection && customImage && (\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Image</b> <HelpField id=\"titus.deploy.imageId\" />\n </div>\n <div className=\"col-md-7 sp-padding-xs-yaxis\">{values.imageId}</div>\n </div>\n )}\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Entrypoint</b>\n </div>\n <div className=\"col-md-7\">\n <Field type=\"text\" className=\"form-control input-sm no-spel\" name=\"entryPoint\" />\n </div>\n </div>\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n Traffic <HelpField id=\"titus.serverGroup.traffic\" />\n </div>\n <div className=\"col-md-7\">\n <div className=\"checkbox\">\n <label>\n <input\n type=\"checkbox\"\n checked={values.inService}\n onChange={(e) => setFieldValue('inService', e.target.checked)}\n disabled={values.strategy !== '' && values.strategy !== 'custom'}\n />{' '}\n Send client requests to new instances\n </label>\n </div>\n </div>\n </div>\n {!values.viewState.disableStrategySelection && values.selectedProvider && (\n <DeploymentStrategySelector\n command={values}\n onFieldChange={this.onStrategyFieldChange}\n onStrategyChange={this.strategyChanged}\n />\n )}\n {!values.viewState.hideClusterNamePreview && (\n <ServerGroupNamePreview\n createsNewCluster={createsNewCluster}\n latestServerGroupName={latestServerGroup?.name}\n mode={values.viewState.mode}\n namePreview={namePreview}\n navigateToLatestServerGroup={this.navigateToLatestServerGroup}\n />\n )}\n </div>\n );\n }\n}\n","import type { FormikProps } from 'formik';\nimport React from 'react';\nimport type { Option } from 'react-select';\nimport Select from 'react-select';\n\nimport type { IWizardPageComponent } from '@spinnaker/core';\nimport { HelpField, SpelNumberInput } from '@spinnaker/core';\n\nimport type { ITitusServerGroupCommand } from '../../../configure/serverGroupConfiguration.service';\n\nconst mountPermOptions = [\n { label: 'Read and Write', value: 'RW' },\n { label: 'Read Only', value: 'RO' },\n { label: 'Write Only', value: 'WO' },\n];\n\nexport interface IServerGroupResourcesProps {\n formik: FormikProps<ITitusServerGroupCommand>;\n}\n\nexport class ServerGroupResources\n extends React.Component<IServerGroupResourcesProps>\n implements IWizardPageComponent<ITitusServerGroupCommand> {\n public validate(values: ITitusServerGroupCommand) {\n const errors = {} as any;\n\n if (!values.resources) {\n errors.resources = 'CPU is required.';\n }\n if (!values.resources) {\n errors.resources = 'Memory is required.';\n }\n if (!values.resources) {\n errors.resources = 'Disk is required.';\n }\n if (!values.resources) {\n errors.resources = 'Network is required.';\n }\n\n return errors;\n }\n\n public render() {\n const { setFieldValue, values } = this.props.formik;\n return (\n <div className=\"clearfix\">\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>CPU(s)</b>\n </div>\n <div className=\"col-md-8\">\n <SpelNumberInput\n value={values.resources.cpu}\n onChange={(value) =>\n setFieldValue('resources', {\n ...values.resources,\n ...{ cpu: value },\n })\n }\n required={true}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Memory (MB)</b>\n </div>\n <div className=\"col-md-8\">\n <SpelNumberInput\n value={values.resources.memory}\n onChange={(value) =>\n setFieldValue('resources', {\n ...values.resources,\n ...{ memory: value },\n })\n }\n required={true}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Disk (MB)</b>\n </div>\n <div className=\"col-md-8\">\n <SpelNumberInput\n value={values.resources.disk}\n onChange={(value) =>\n setFieldValue('resources', {\n ...values.resources,\n ...{ disk: value },\n })\n }\n required={true}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Network (Mbps)</b>\n <HelpField id=\"titus.deploy.network\" />\n </div>\n <div className=\"col-md-8\">\n <SpelNumberInput\n value={values.resources.networkMbps}\n onChange={(value) =>\n setFieldValue('resources', {\n ...values.resources,\n ...{ networkMbps: value },\n })\n }\n required={true}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Gpu</b>\n <HelpField id=\"titus.deploy.gpu\" />\n </div>\n <div className=\"col-md-8\">\n <SpelNumberInput\n value={values.resources.gpu}\n onChange={(value) =>\n setFieldValue('resources', {\n ...values.resources,\n ...{ gpu: value },\n })\n }\n />\n </div>\n </div>\n <hr />\n\n <h4>\n <b>\n Elastic File System Options <HelpField id=\"titus.deploy.efs\" />\n </b>\n </h4>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Mount Permission </b>\n <HelpField id=\"titus.deploy.mountPermissions\" />\n </div>\n <div className=\"col-md-8\">\n <Select\n value={values.efs.mountPerm}\n clearable={false}\n options={mountPermOptions}\n onChange={(option: Option) => setFieldValue('efs', { ...values.efs, ...{ mountPerm: option.value } })}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>Mount Point </b>\n <HelpField id=\"titus.deploy.mountPoint\" />\n </div>\n <div className=\"col-md-8\">\n <input\n type=\"text\"\n className=\"form-control input-sm no-spel\"\n value={values.efs.mountPoint}\n onChange={(e) => setFieldValue('efs', { ...values.efs, ...{ mountPoint: e.target.value } })}\n />\n </div>\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>EFS ID </b>\n <HelpField id=\"titus.deploy.efsId\" />\n </div>\n <div className=\"col-md-8\">\n <input\n type=\"text\"\n className=\"form-control input-sm no-spel\"\n value={values.efs.efsId}\n onChange={(e) => setFieldValue('efs', { ...values.efs, ...{ efsId: e.target.value } })}\n />\n </div>\n <div className=\"col-md-offset-3 col-md-8\" />\n </div>\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">\n <b>EFS Relative Mount Point </b>\n <HelpField id=\"titus.deploy.efsRelativeMountPoint\" />\n </div>\n <div className=\"col-md-8\">\n <input\n type=\"text\"\n className=\"form-control input-sm no-spel\"\n value={values.efs.efsRelativeMountPoint}\n onChange={(e) => setFieldValue('efs', { ...values.efs, ...{ efsRelativeMountPoint: e.target.value } })}\n />\n </div>\n </div>\n </div>\n );\n }\n}\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import { isUndefined } from 'lodash';\nimport React from 'react';\n\nimport type { IFormInputValidation } from '@spinnaker/core';\nimport { ValidationMessage } from '@spinnaker/core';\nimport type { ILayoutProps } from '@spinnaker/core';\nimport './TitusMapLayout.less';\n\nexport function TitusMapLayout(props: ILayoutProps) {\n const { label, help, input, actions, validation = {} as IFormInputValidation } = props;\n const { hidden, messageNode, category } = validation;\n const showLabel = !isUndefined(label) || !isUndefined(help);\n\n return (\n <div className=\"TitusMapLayout flex-container-v\">\n {showLabel && (\n <h4>\n {label} {help}\n </h4>\n )}\n\n <div className=\"flex-container-h baseline margin-between-lg TitusMapLayout_Contents\">\n {input} {actions}\n </div>\n\n {!hidden && <ValidationMessage message={messageNode} type={category} />}\n </div>\n );\n}\n","import type { ITitusServiceJobProcesses } from '../../../domain/ITitusServiceJobProcesses';\n\nexport const processesList = ['disableIncreaseDesired', 'disableDecreaseDesired'];\n\nexport const enabledProcesses = (processesMap: ITitusServiceJobProcesses): string[] => {\n return Object.keys(processesMap).reduce((enabled, process) => {\n if (processesMap[process]) {\n enabled.push(process);\n }\n return enabled;\n }, []);\n};\n","import type { FormikProps } from 'formik';\nimport { intersection, set, union } from 'lodash';\nimport React from 'react';\n\nimport type { Application, IFormInputProps, IWizardPageComponent } from '@spinnaker/core';\nimport {\n AccountTag,\n CheckboxInput,\n ChecklistInput,\n FormikFormField,\n FormValidator,\n HelpField,\n LayoutProvider,\n MapEditorInput,\n PlatformHealthOverrideInput,\n robotToHuman,\n SelectInput,\n TextInput,\n useFormInputValueMapper,\n} from '@spinnaker/core';\n\nimport { TitusMapLayout } from './TitusMapLayout';\nimport type { ITitusServerGroupCommand } from '../../../configure/serverGroupConfiguration.service';\nimport { processesList } from '../../../details/serviceJobProcesses/ServiceJobProcesses';\n\nimport './ServerGroupParameters.less';\n\nexport interface IServerGroupParametersProps {\n app: Application;\n formik: FormikProps<ITitusServerGroupCommand>;\n}\n\nconst migrationPolicyOptions = [\n { label: 'System Default', value: 'systemDefault' },\n { label: 'Self Managed', value: 'selfManaged' },\n];\n\nfunction ServiceJobProcessesInput(props: IFormInputProps) {\n const allProcesses = union(processesList, Object.keys(props.value));\n // Map to a list of strings (formik -> input)\n const mapToInputValue = (value: Record<string, boolean>) =>\n Object.entries(value)\n .filter(([_key, val]) => val === true)\n .map(([key, _val]) => key);\n\n // Map to an Object, but include all known processes (input -> formik)\n const mapFromInputValue = (value: string[]): Record<string, boolean> =>\n allProcesses.reduce((acc, process) => {\n acc[process] = value.includes(process);\n return acc;\n }, {} as Record<string, boolean>);\n\n const mappedProps = useFormInputValueMapper(props, mapToInputValue, mapFromInputValue);\n\n const options = allProcesses.map((process) => {\n return { label: robotToHuman(process), value: process };\n });\n\n return <ChecklistInput {...mappedProps} options={options} />;\n}\n\nexport function IPv6CheckboxInput(props: IFormInputProps) {\n const mappedProps = useFormInputValueMapper(\n props,\n (val: string) => val === 'true', // formik -> checkbox\n (_val, e) => (e.target.checked ? 'true' : 'false'), // checkbox -> formik\n );\n return <CheckboxInput {...mappedProps} />;\n}\n\nconst IamInstanceProfileInput = (props: IFormInputProps & { awsAccount: string; setDefaultIamProfile: () => void }) => {\n const { awsAccount, setDefaultIamProfile, ...inputProps } = props;\n return (\n <div className=\"flex-container-h baseline margin-between-md\">\n <TextInput {...inputProps} />\n {props.value ? (\n <>\n <span>in</span>\n <AccountTag account={awsAccount} />\n </>\n ) : (\n <button className=\"link\" style={{ whiteSpace: 'nowrap' }} onClick={setDefaultIamProfile}>\n Apply default value\n </button>\n )}\n </div>\n );\n};\n\nexport class ServerGroupParameters\n extends React.Component<IServerGroupParametersProps>\n implements IWizardPageComponent<ITitusServerGroupCommand> {\n constructor(props: IServerGroupParametersProps) {\n super(props);\n }\n\n public validate(_values: ITitusServerGroupCommand) {\n const validator = new FormValidator(_values);\n validator.field('iamProfile', 'IAM Instance Profile').required();\n\n const errors = validator.validateForm();\n\n const duplicates = intersection(Object.keys(_values.constraints.soft), Object.keys(_values.constraints.hard));\n duplicates.forEach((key) => {\n set(errors, `constraints.soft.${key}`, `Constraint '${key}' must be either soft or hard, not both.`);\n set(errors, `constraints.hard.${key}`, `Constraint '${key}' must be either soft or hard, not both.`);\n });\n\n Object.keys(_values.env || {})\n .filter((key) => !key.startsWith('__MapEditorDuplicateKey'))\n .forEach((key) => {\n if (!key.match(/^[A-Za-z_].*/)) {\n set(errors, `env.${key}`, 'Environment variable names must start with a letter or underscore');\n } else if (!key.match(/[A-Za-z_][a-zA-Z0-9_]*$/)) {\n set(errors, `env.${key}`, 'Environment variable names must contain only letter, numbers, or underscores');\n }\n });\n\n return errors;\n }\n\n public render() {\n const { app } = this.props;\n const { setFieldValue, values } = this.props.formik;\n\n const setDefaultIamProfile = () => setFieldValue('iamProfile', values.viewState.defaultIamProfile);\n return (\n <div className=\"ServerGroupParameters\">\n <FormikFormField\n name=\"iamProfile\"\n label=\"IAM Instance Profile\"\n help={<HelpField id=\"titus.deploy.iamProfile\" />}\n input={(props) => (\n <IamInstanceProfileInput\n {...props}\n awsAccount={values.backingData.credentialsKeyedByAccount[values.credentials]?.awsAccount}\n setDefaultIamProfile={setDefaultIamProfile}\n />\n )}\n />\n\n <FormikFormField\n name=\"capacityGroup\"\n label=\"Capacity Group\"\n help={<HelpField id=\"titus.deploy.capacityGroup\" />}\n input={(props) => <TextInput {...props} />}\n />\n\n <FormikFormField\n name=\"migrationPolicy.type\"\n label=\"Migration Policy\"\n help={<HelpField id=\"titus.deploy.migrationPolicy\" />}\n input={(props) => <SelectInput options={migrationPolicyOptions} {...props} />}\n />\n\n <FormikFormField\n name=\"serviceJobProcesses\"\n label=\"Service Job Processes\"\n input={(props) => <ServiceJobProcessesInput {...props} />}\n />\n\n <FormikFormField\n name=\"containerAttributes['titusParameter.agent.assignIPv6Address']\"\n label=\"Associate IPv6 Address (Recommended)\"\n help={<HelpField id=\"serverGroup.ipv6\" />}\n input={(props) => <IPv6CheckboxInput {...props} />}\n />\n\n <hr />\n\n <LayoutProvider value={TitusMapLayout}>\n <FormikFormField\n name=\"constraints.soft\"\n label=\"Soft Constraints \"\n help={<HelpField id=\"titus.deploy.softConstraints\" />}\n input={(props) => <MapEditorInput allowEmptyValues={true} {...props} />}\n />\n\n <FormikFormField\n name=\"constraints.hard\"\n label=\"Hard Constraints\"\n help={<HelpField id=\"titus.deploy.hardConstraints\" />}\n input={(props) => <MapEditorInput allowEmptyValues={true} {...props} />}\n />\n\n <hr />\n\n <FormikFormField\n name=\"labels\"\n label=\"Job Attributes\"\n input={(props) => <MapEditorInput allowEmptyValues={true} {...props} />}\n />\n\n <FormikFormField\n name=\"containerAttributes\"\n label=\"Container Attributes\"\n input={(props) => <MapEditorInput allowEmptyValues={true} {...props} />}\n />\n\n <FormikFormField\n name=\"env\"\n label=\"Environment Variables\"\n input={(props) => <MapEditorInput allowEmptyValues={true} {...props} />}\n />\n </LayoutProvider>\n\n {app.attributes.platformHealthOnlyShowOverride && (\n <FormikFormField\n name=\"interestingHealthProviderNames\"\n label=\"Task Completion\"\n input={(props) => <PlatformHealthOverrideInput {...props} platformHealthType=\"Titus\" />}\n />\n )}\n </div>\n );\n }\n}\n","import { module } from 'angular';\nimport { chain, cloneDeep, flatten, intersection, xor } from 'lodash';\nimport { $q } from 'ngimport';\nimport { Subject } from 'rxjs';\n\nimport type {\n IAmazonApplicationLoadBalancer,\n IAmazonLoadBalancer,\n IAmazonServerGroupCommandDirty,\n} from '@spinnaker/amazon';\nimport { VpcReader } from '@spinnaker/amazon';\nimport type {\n Application,\n CacheInitializerService,\n IAccountDetails,\n ICluster,\n IDeploymentStrategy,\n ISecurityGroup,\n IServerGroupCommand,\n IServerGroupCommandBackingData,\n IServerGroupCommandViewState,\n IVpc,\n LoadBalancerReader,\n SecurityGroupReader,\n} from '@spinnaker/core';\nimport {\n AccountService,\n CACHE_INITIALIZER_SERVICE,\n LOAD_BALANCER_READ_SERVICE,\n NameUtils,\n SECURITY_GROUP_READER,\n setMatchingResourceSummary,\n SubnetReader,\n} from '@spinnaker/core';\nimport type { IJobDisruptionBudget, ITitusResources } from '../../domain';\nimport type { ITitusServiceJobProcesses } from '../../domain/ITitusServiceJobProcesses';\n\nexport interface ITitusServerGroupCommandBackingData extends IServerGroupCommandBackingData {\n accounts: string[];\n vpcs: IVpc[];\n}\n\nexport interface ITitusServerGroupCommandViewState extends IServerGroupCommandViewState {\n accountChangedStream: Subject<{}>;\n regionChangedStream: Subject<{}>;\n groupsRemovedStream: Subject<{}>;\n dirty: IAmazonServerGroupCommandDirty;\n defaultIamProfile: string;\n}\n\nexport const defaultJobDisruptionBudget: IJobDisruptionBudget = {\n availabilityPercentageLimit: {\n percentageOfHealthyContainers: 95,\n },\n ratePercentagePerInterval: {\n intervalMs: 600000,\n percentageLimitPerInterval: 5,\n },\n containerHealthProviders: [{ name: 'eureka' }],\n timeWindows: [\n {\n days: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],\n hourlyTimeWindows: [{ startHour: 10, endHour: 16 }],\n timeZone: 'PST',\n },\n ],\n};\n\nexport const getDefaultJobDisruptionBudgetForApp = (application: Application): IJobDisruptionBudget => {\n const budget = cloneDeep(defaultJobDisruptionBudget);\n if (application.attributes && application.attributes.platformHealthOnly) {\n budget.containerHealthProviders = [];\n }\n return budget;\n};\n\nexport interface ITitusServerGroupCommand extends IServerGroupCommand {\n cluster?: ICluster;\n disruptionBudget?: IJobDisruptionBudget;\n deferredInitialization?: boolean;\n registry: string;\n imageId: string;\n organization: string;\n repository: string;\n tag?: string;\n digest?: string;\n image: string;\n inService: boolean;\n resources: ITitusResources;\n efs: {\n efsId: string;\n mountPoint: string;\n mountPerm: string;\n efsRelativeMountPoint: string;\n };\n viewState: ITitusServerGroupCommandViewState;\n targetGroups: string[];\n removedTargetGroups: string[];\n backingData: ITitusServerGroupCommandBackingData;\n labels: { [key: string]: string };\n containerAttributes: { [key: string]: string };\n env: { [key: string]: string };\n iamProfile: string;\n migrationPolicy: {\n type: string;\n };\n constraints: {\n hard: { [key: string]: string };\n soft: { [key: string]: string };\n };\n serviceJobProcesses: ITitusServiceJobProcesses;\n}\n\nexport class TitusServerGroupConfigurationService {\n public static $inject = ['cacheInitializer', 'loadBalancerReader', 'securityGroupReader'];\n constructor(\n private cacheInitializer: CacheInitializerService,\n private loadBalancerReader: LoadBalancerReader,\n private securityGroupReader: SecurityGroupReader,\n ) {}\n\n public configureZones(command: ITitusServerGroupCommand) {\n command.backingData.filtered.regions = command.backingData.credentialsKeyedByAccount[command.credentials].regions;\n }\n\n public configureSubnets(command: ITitusServerGroupCommand) {\n const result = { dirty: {} };\n const filteredData = command.backingData.filtered;\n if (command.region === null) {\n return result;\n }\n\n const accountDetails = this.getCredentials(command);\n filteredData.subnetPurposes = chain(command.backingData.subnets)\n .filter({ account: accountDetails.awsAccount, region: command.region })\n .reject({ target: 'elb' })\n .reject({ purpose: null })\n .uniqBy('purpose')\n .value();\n\n const subnetType = command.subnetType || 'titus (vpc0)';\n const subnetIds = chain(command.backingData.subnets)\n .filter({ account: accountDetails.awsAccount, region: command.region, purpose: subnetType })\n .map((subnet) => subnet.id)\n .value();\n command.containerAttributes['titusParameter.agent.subnets'] = subnetIds.join(',');\n\n return result;\n }\n\n private attachEventHandlers(cmd: ITitusServerGroupCommand) {\n cmd.credentialsChanged = (command: ITitusServerGroupCommand) => {\n const result = { dirty: {} };\n const backingData = command.backingData;\n this.configureZones(command);\n if (command.credentials) {\n command.registry = (backingData.credentialsKeyedByAccount[command.credentials] as any).registry;\n backingData.filtered.regions = backingData.credentialsKeyedByAccount[command.credentials].regions;\n\n const accountId = backingData.credentialsKeyedByAccount[command.credentials].accountId;\n command.containerAttributes['titusParameter.agent.accountId'] = accountId;\n if (!backingData.filtered.regions.some((r) => r.name === command.region)) {\n command.region = null;\n command.regionChanged(command);\n }\n } else {\n command.region = null;\n }\n command.viewState.dirty = { ...(command.viewState.dirty || {}), ...result.dirty };\n this.configureLoadBalancerOptions(command);\n this.configureSecurityGroupOptions(command);\n this.configureSubnets(command);\n setMatchingResourceSummary(command);\n return result;\n };\n\n cmd.regionChanged = (command: ITitusServerGroupCommand) => {\n this.configureLoadBalancerOptions(command);\n this.configureSecurityGroupOptions(command);\n this.configureSubnets(command);\n setMatchingResourceSummary(command);\n return {};\n };\n\n cmd.clusterChanged = (command: ITitusServerGroupCommand): void => {\n command.moniker = NameUtils.getMoniker(command.application, command.stack, command.freeFormDetails);\n setMatchingResourceSummary(command);\n };\n\n cmd.subnetChanged = (command: ITitusServerGroupCommand) => {\n return this.configureSubnets(command);\n };\n }\n\n public configureCommand(cmd: ITitusServerGroupCommand): PromiseLike<void> {\n cmd.viewState.accountChangedStream = new Subject();\n cmd.viewState.regionChangedStream = new Subject();\n cmd.viewState.groupsRemovedStream = new Subject();\n cmd.viewState.dirty = {};\n cmd.onStrategyChange = (command: ITitusServerGroupCommand, strategy: IDeploymentStrategy) => {\n // Any strategy other than None or Custom should force traffic to be enabled\n if (strategy.key !== '' && strategy.key !== 'custom') {\n command.inService = true;\n }\n };\n cmd.image = cmd.viewState.imageId;\n return $q\n .all([\n AccountService.getCredentialsKeyedByAccount('titus'),\n this.securityGroupReader.getAllSecurityGroups(),\n VpcReader.listVpcs(),\n SubnetReader.listSubnets(),\n AccountService.getCredentialsKeyedByAccount('aws'),\n ])\n .then(([credentialsKeyedByAccount, securityGroups, vpcs, subnets, awsCredentials]) => {\n const backingData: any = {\n credentialsKeyedByAccount,\n securityGroups,\n vpcs,\n };\n\n // add the AWS accountId to the credentialsKeyedByAccount to easily set container attributes\n Object.keys(credentialsKeyedByAccount).forEach((acc) => {\n const awsAccount = credentialsKeyedByAccount[acc].awsAccount;\n const awsAccountId = awsCredentials[awsAccount].accountId;\n credentialsKeyedByAccount[acc].accountId = awsAccountId;\n });\n backingData.credentialsKeyedByAccount = credentialsKeyedByAccount;\n\n if (cmd.credentials) {\n cmd.containerAttributes['titusParameter.agent.accountId'] =\n backingData.credentialsKeyedByAccount[cmd.credentials].accountId;\n }\n\n backingData.images = [];\n backingData.accounts = Object.keys(credentialsKeyedByAccount);\n backingData.subnets = subnets;\n backingData.filtered = {};\n if (cmd.credentials.includes('${')) {\n // If our dependency is an expression, the only thing we can really do is to just preserve current selections\n backingData.filtered.regions = [{ name: cmd.region }];\n } else {\n backingData.filtered.regions = credentialsKeyedByAccount[cmd.credentials]?.regions ?? [];\n }\n cmd.backingData = backingData;\n backingData.filtered.securityGroups = this.getRegionalSecurityGroups(cmd);\n\n let securityGroupRefresher: PromiseLike<any> = $q.when();\n if (cmd.securityGroups && cmd.securityGroups.length) {\n const regionalSecurityGroupIds = backingData.filtered.securityGroups.map((g: ISecurityGroup) => g.id);\n if (intersection(cmd.securityGroups, regionalSecurityGroupIds).length < cmd.securityGroups.length) {\n securityGroupRefresher = this.refreshSecurityGroups(cmd, false);\n }\n }\n\n return $q.all([this.refreshLoadBalancers(cmd), securityGroupRefresher]).then(() => {\n this.attachEventHandlers(cmd);\n });\n });\n }\n\n private getVpcId(command: ITitusServerGroupCommand): string {\n const credentials = this.getCredentials(command);\n const match = command.backingData.vpcs.find(\n (vpc) =>\n vpc.name === credentials.awsVpc &&\n vpc.account === credentials.awsAccount &&\n vpc.region === this.getRegion(command) &&\n vpc.cloudProvider === 'aws',\n );\n return match ? match.id : null;\n }\n\n private getRegionalSecurityGroups(command: ITitusServerGroupCommand): ISecurityGroup[] {\n const newSecurityGroups: any = command.backingData.securityGroups[this.getAwsAccount(command)] || { aws: {} };\n return chain<ISecurityGroup>(newSecurityGroups.aws[this.getRegion(command)])\n .filter({ vpcId: this.getVpcId(command) })\n .sortBy('name')\n .value();\n }\n\n private configureSecurityGroupOptions(command: ITitusServerGroupCommand): void {\n const currentOptions = command.backingData.filtered.securityGroups;\n if (command.credentials.includes('${') || (command.region && command.region.includes('${'))) {\n // If any of our dependencies are expressions, the only thing we can do is preserve current values\n command.backingData.filtered.securityGroups = command.securityGroups.map((group) => ({ name: group, id: group }));\n } else {\n const newRegionalSecurityGroups = this.getRegionalSecurityGroups(command);\n const isExpression =\n typeof command.securityGroups === 'string' && (command.securityGroups as string).includes('${');\n if (currentOptions && command.securityGroups && !isExpression) {\n // not initializing - we are actually changing groups\n const currentGroupNames: string[] = command.securityGroups.map((groupId: string) => {\n const match = currentOptions.find((o) => o.id === groupId);\n return match ? match.name : groupId;\n });\n\n const matchedGroups = command.securityGroups\n .map((groupId: string) => {\n const securityGroup: any = currentOptions.find((o) => o.id === groupId || o.name === groupId);\n return securityGroup ? securityGroup.name : null;\n })\n .map((groupName: string) => newRegionalSecurityGroups.find((g) => g.name === groupName))\n .filter((group: any) => group);\n\n const matchedGroupNames: string[] = matchedGroups.map((g) => g.name);\n const removed: string[] = xor(currentGroupNames, matchedGroupNames);\n command.securityGroups = matchedGroups.map((g) => g.id);\n if (removed.length) {\n command.viewState.dirty.securityGroups = removed;\n }\n }\n command.backingData.filtered.securityGroups = newRegionalSecurityGroups.sort((a, b) => {\n if (command.securityGroups.includes(a.id)) {\n return -1;\n }\n if (command.securityGroups.includes(b.id)) {\n return 1;\n }\n return a.name.localeCompare(b.name);\n });\n }\n }\n\n public refreshSecurityGroups(\n command: ITitusServerGroupCommand,\n skipCommandReconfiguration: boolean,\n ): PromiseLike<void> {\n return this.cacheInitializer.refreshCache('securityGroups').then(() => {\n return this.securityGroupReader.getAllSecurityGroups().then((securityGroups: any) => {\n command.backingData.securityGroups = securityGroups;\n if (!skipCommandReconfiguration) {\n this.configureSecurityGroupOptions(command);\n }\n });\n });\n }\n\n private getCredentials(command: ITitusServerGroupCommand): IAccountDetails {\n return command.backingData.credentialsKeyedByAccount[command.credentials];\n }\n\n private getAwsAccount(command: ITitusServerGroupCommand): string {\n return this.getCredentials(command).awsAccount;\n }\n\n private getRegion(command: ITitusServerGroupCommand): string {\n return command.region || (command.cluster ? command.cluster.region : null);\n }\n\n public getTargetGroupNames(command: ITitusServerGroupCommand): string[] {\n const loadBalancersV2 = this.getLoadBalancerMap(command).filter(\n (lb) => lb.loadBalancerType !== 'classic',\n ) as IAmazonApplicationLoadBalancer[];\n const instanceTargetGroups = flatten(\n loadBalancersV2.map<any>((lb) => lb.targetGroups.filter((tg) => tg.targetType === 'ip')),\n );\n return instanceTargetGroups.map((tg) => tg.name).sort();\n }\n\n private getLoadBalancerMap(command: ITitusServerGroupCommand): IAmazonLoadBalancer[] {\n return chain(command.backingData.loadBalancers)\n .map('accounts')\n .flattenDeep()\n .filter({ name: this.getAwsAccount(command) })\n .map('regions')\n .flattenDeep()\n .filter({ name: this.getRegion(command) })\n .map<IAmazonLoadBalancer>('loadBalancers')\n .flattenDeep<IAmazonLoadBalancer>()\n .value();\n }\n\n public configureLoadBalancerOptions(command: ITitusServerGroupCommand) {\n const currentTargetGroups = command.targetGroups || [];\n if (command.credentials.includes('${') || (command.region && command.region.includes('${'))) {\n // If any of our dependencies are expressions, the only thing we can do is preserve current values\n command.targetGroups = currentTargetGroups;\n (command.backingData.filtered as any).targetGroups = currentTargetGroups;\n } else {\n const allTargetGroups = this.getTargetGroupNames(command);\n\n if (currentTargetGroups && command.targetGroups) {\n const matched = intersection(allTargetGroups, currentTargetGroups);\n const removedTargetGroups = xor(matched, currentTargetGroups);\n command.targetGroups = intersection(allTargetGroups, matched);\n if (removedTargetGroups && removedTargetGroups.length > 0) {\n command.viewState.dirty.targetGroups = removedTargetGroups;\n } else {\n delete command.viewState.dirty.targetGroups;\n }\n }\n (command.backingData.filtered as any).targetGroups = allTargetGroups;\n }\n }\n\n public refreshLoadBalancers(command: ITitusServerGroupCommand) {\n return this.loadBalancerReader.listLoadBalancers('aws').then((loadBalancers) => {\n command.backingData.loadBalancers = loadBalancers;\n this.configureLoadBalancerOptions(command);\n });\n }\n}\n\nexport const TITUS_SERVER_GROUP_CONFIGURATION_SERVICE = 'spinnaker.titus.serverGroup.configure.service';\nmodule(TITUS_SERVER_GROUP_CONFIGURATION_SERVICE, [\n CACHE_INITIALIZER_SERVICE,\n LOAD_BALANCER_READ_SERVICE,\n SECURITY_GROUP_READER,\n]).service('titusServerGroupConfigurationService', TitusServerGroupConfigurationService);\n","import React from 'react';\n\nimport { FormikFormField, HelpField, NumberInput } from '@spinnaker/core';\n\nimport type { IFieldOption, IFieldOptionComponentProps } from './JobDisruptionBudget';\nimport { defaultJobDisruptionBudget } from '../../../serverGroupConfiguration.service';\n\nconst SelfManagedField = () => (\n <FormikFormField\n name=\"disruptionBudget.selfManaged.relocationTimeMs\"\n label=\"Relocation Time\"\n input={(props) => (\n <div>\n <NumberInput {...props} />\n <HelpField expand={true} content=\"(milliseconds)\" />\n </div>\n )}\n />\n);\n\nconst UnhealthyTasksLimitsField = () => (\n <FormikFormField\n name=\"disruptionBudget.unhealthyTasksLimit.limitOfUnhealthyContainers\"\n label=\"Limit of Unhealthy Containers\"\n input={(props) => (\n <div>\n <NumberInput {...props} />\n <HelpField expand={true} content=\"(integer)\" />\n </div>\n )}\n />\n);\n\nconst AvailabilityPercentageLimit = (componentProps: IFieldOptionComponentProps) => (\n <FormikFormField\n name=\"disruptionBudget.availabilityPercentageLimit.percentageOfHealthyContainers\"\n label=\"Percentage of Healthy Containers\"\n input={(props) => (\n <div>\n <NumberInput {...props} disabled={componentProps.isDisabled} />\n <HelpField expand={true} content=\"0.0-100.0 (double)\" />\n </div>\n )}\n />\n);\n\nconst RelocationLimit = () => (\n <FormikFormField\n name=\"disruptionBudget.relocationLimit.limit\"\n label=\"Limit\"\n input={(props) => (\n <div>\n <NumberInput {...props} />\n <HelpField expand={true} content=\"(tasks)\" />\n </div>\n )}\n />\n);\n\nexport const policyOptions: IFieldOption[] = [\n {\n field: 'availabilityPercentageLimit',\n label: 'Availability Percentage Limit',\n value: 0,\n description: `\n Lets you specify the required percentage of tasks in a healthy state.\n Tasks will not be terminated by the eviction service if this limit would be violated.\n `,\n defaultValues: defaultJobDisruptionBudget.availabilityPercentageLimit,\n fieldComponent: AvailabilityPercentageLimit,\n },\n {\n field: 'relocationLimit',\n label: 'Relocation Limit',\n value: 1,\n description: `\n Lets you specify the maximum number of times a task can be relocated.\n Should only be used with batch tasks, which have a maximum execution time.\n `,\n defaultValues: {\n limit: 1,\n },\n fieldComponent: RelocationLimit,\n },\n {\n field: 'unhealthyTasksLimit',\n label: 'Unhealthy Tasks Limit',\n value: 2,\n description: `\n Lets you specify the maximum allowed amount of tasks in an unhealthy state.\n Tasks will not be terminated by the eviction service if this limit would be violated.\n `,\n defaultValues: {\n limitOfUnhealthyContainers: 1,\n },\n fieldComponent: UnhealthyTasksLimitsField,\n },\n {\n field: 'selfManaged',\n label: 'Self Managed',\n value: 3,\n description: `\n Requires that you orchestrate custom termination logic.\n If the containers are not terminated within the configured amount of time,\n the system default migration policy is used instead.\n `,\n defaultValues: {\n relocationTimeMs: 24 * 60 * 60 * 1000,\n },\n fieldComponent: SelfManagedField,\n },\n];\n","import React from 'react';\n\nimport { FormikFormField, HelpField, NumberInput } from '@spinnaker/core';\n\nimport type { IFieldOption, IFieldOptionComponentProps } from './JobDisruptionBudget';\nimport { defaultJobDisruptionBudget } from '../../../serverGroupConfiguration.service';\n\nconst RatePercentagePerInterval = (componentProps: IFieldOptionComponentProps) => (\n <>\n <FormikFormField\n name=\"disruptionBudget.ratePercentagePerInterval.intervalMs\"\n label=\"Interval\"\n input={(props) => (\n <div>\n <NumberInput {...props} disabled={componentProps.isDisabled} />\n <HelpField expand={true} content=\"(milliseconds)\" />\n </div>\n )}\n />\n <FormikFormField\n name=\"disruptionBudget.ratePercentagePerInterval.percentageLimitPerInterval\"\n label=\"Percentage Per Interval\"\n input={(props) => (\n <div>\n <NumberInput {...props} disabled={componentProps.isDisabled} />\n <HelpField expand={true} content=\"0.0-100.0 (double)\" />\n </div>\n )}\n />\n </>\n);\n\nconst RatePerInterval = () => (\n <>\n <FormikFormField\n name=\"disruptionBudget.ratePerInterval.intervalMs\"\n label=\"Interval\"\n input={(props) => (\n <div>\n <NumberInput {...props} />\n <HelpField expand={true} content=\"(milliseconds)\" />\n </div>\n )}\n />\n <FormikFormField\n name=\"disruptionBudget.ratePerInterval.limitPerInterval\"\n label=\"Limit Per Interval\"\n input={(props) => (\n <div>\n <NumberInput {...props} />\n <HelpField expand={true} content=\"(tasks)\" />\n </div>\n )}\n />\n </>\n);\n\nexport const rateOptions: IFieldOption[] = [\n {\n field: 'rateUnlimited',\n label: 'Unlimited',\n value: 0,\n description: `\n No limits on how many containers in a job may be relocated, provided the other disruption budget constraints\n are not violated.\n `,\n defaultValues: true,\n },\n {\n field: 'ratePercentagePerInterval',\n label: 'Rate Percentage Per Interval',\n value: 1,\n description: `\n Percentage of containers that can be relocated within a time interval.\n `,\n defaultValues: defaultJobDisruptionBudget.ratePercentagePerInterval,\n fieldComponent: RatePercentagePerInterval,\n },\n {\n field: 'ratePerInterval',\n label: 'Rate Per Interval',\n value: 2,\n description: `\n Limit number of relocations within a given time interval.\n `,\n defaultValues: { intervalMs: 60000, limitPerInterval: 2 },\n fieldComponent: RatePerInterval,\n },\n];\n","import type { FormikProps } from 'formik';\nimport { get } from 'lodash';\nimport React from 'react';\n\nimport { ChecklistInput, FormikFormField, HelpField, NumberInput, ReactSelectInput, SpinFormik } from '@spinnaker/core';\nimport type { IJobTimeWindow } from '../../../../../domain';\n\nimport type { ITitusServerGroupCommand } from '../../../serverGroupConfiguration.service';\n\nexport interface IWindowPickerProps {\n formik: FormikProps<ITitusServerGroupCommand>;\n isDisabled: boolean;\n}\n\nexport interface IWindowPickerState {\n addingNewWindow?: boolean;\n}\n\nconst DAYS = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];\n\ninterface IJobTimeWindowForm {\n days: string[];\n startHour: number;\n endHour: number;\n timeZone: string;\n}\n\nexport class WindowPicker extends React.Component<IWindowPickerProps, IWindowPickerState> {\n constructor(props: IWindowPickerProps) {\n super(props);\n this.state = {\n addingNewWindow: false,\n };\n }\n\n private removeWindow(index: number, subIndex: number) {\n const { values, setFieldValue } = this.props.formik;\n const { timeWindows } = values.disruptionBudget;\n const toRemove = timeWindows[index];\n if (toRemove.hourlyTimeWindows.length === 1) {\n setFieldValue(\n 'disruptionBudget.timeWindows',\n timeWindows.filter((w) => w !== toRemove),\n );\n } else {\n const subWindowToRemove = toRemove.hourlyTimeWindows[subIndex];\n const newWindows = toRemove.hourlyTimeWindows.filter((w) => w !== subWindowToRemove);\n setFieldValue(`disruptionBudget.timeWindows[${index}].hourlyTimeWindows`, newWindows);\n }\n }\n\n /**\n * The Budget API allows multiple hourly windows for a set of days; however, the UI is not really supportive of this,\n * so we'll add them as a single window for a single set of days. It's fine!\n */\n private configureNewWindow = () => {\n this.setState({ addingNewWindow: true });\n };\n\n private addNewWindow = (form: IJobTimeWindowForm) => {\n const { values, setFieldValue } = this.props.formik;\n const { days, startHour, endHour, timeZone } = form;\n const newWindow: IJobTimeWindow = {\n days,\n hourlyTimeWindows: [{ startHour, endHour }],\n timeZone,\n };\n setFieldValue('disruptionBudget.timeWindows', values.disruptionBudget.timeWindows.concat(newWindow));\n this.setState({ addingNewWindow: false });\n };\n\n private CurrentWindows = () => {\n const { disruptionBudget } = this.props.formik.values;\n const { isDisabled } = this.props;\n if (!disruptionBudget) {\n return null;\n }\n const { timeWindows } = disruptionBudget;\n return (\n <div className=\"sp-formItem\">\n <div className=\"sp-formItem__left\" />\n <div className=\"sp-formItem__right\">\n {timeWindows.map((timeWindow, i) => {\n return timeWindow.hourlyTimeWindows.map((w, i2) => (\n <div\n className=\"sp-margin-l-yaxis sp-margin-m-right\"\n style={{ display: 'inline-block' }}\n key={`${i}.${i2}`}\n >\n <div\n key={`${i}.${i2}`}\n className=\"horizontal center top sp-padding-m-yaxis sp-padding-s-xaxis\"\n style={{ backgroundColor: 'var(--color-dovegray)', borderRadius: '4px' }}\n >\n <div className=\"sp-padding-m-right\" style={{ color: 'var(--color-text-on-dark)', fontSize: '12px' }}>\n <div>\n <b>{timeWindow.days.map((d) => d.substr(0, 3)).join(', ')}</b>\n </div>\n <div>\n <em>\n {w.startHour}:00 - {w.endHour}:00 {timeWindow.timeZone}\n </em>\n </div>\n </div>\n {!isDisabled && (\n <a\n className=\"clickable\"\n style={{ color: 'var(--color-text-on-dark)' }}\n onClick={() => this.removeWindow(i, i2)}\n >\n <span className=\"glyphicon glyphicon-remove\" />\n </a>\n )}\n </div>\n </div>\n ));\n })}\n </div>\n </div>\n );\n };\n\n private NewWindowComponent = () => {\n if (!this.state.addingNewWindow) {\n return (\n <div className=\"sp-formItem\">\n <div className=\"sp-formItem__left\" />\n <div className=\"sp-formItem__right sp-margin-l-bottom\">\n <a className=\"button primary\" onClick={this.configureNewWindow}>\n <i className=\"fas fa-plus-circle\" /> Define New Window\n </a>\n </div>\n </div>\n );\n }\n return (\n <SpinFormik<IJobTimeWindowForm>\n initialValues={{\n days: [],\n startHour: 10,\n endHour: 16,\n timeZone: get(this.props.formik.values.disruptionBudget, 'timeWindows[0].timeZone', 'PST'),\n }}\n onSubmit={this.addNewWindow}\n render={(formik) => (\n <>\n <FormikFormField\n name=\"days\"\n label=\"Define a New Window\"\n input={(props) => <ChecklistInput {...props} stringOptions={DAYS} />}\n />\n <FormikFormField\n name=\"startHour\"\n label=\"Start\"\n input={(props) => (\n <div>\n <NumberInput {...props} min={0} max={formik.values.endHour} />\n <HelpField expand={true} content=\"hour (0-24)\" />\n </div>\n )}\n />\n <FormikFormField\n name=\"endHour\"\n label=\"End\"\n input={(props) => (\n <div>\n <NumberInput {...props} min={formik.values.startHour} max={23} />\n <HelpField expand={true} content=\"hour (0-24)\" />\n </div>\n )}\n />\n <FormikFormField\n name=\"timeZone\"\n label=\"Timezone\"\n input={(props) => <ReactSelectInput {...props} clearable={false} stringOptions={['PST', 'UTC']} />}\n />\n <div className=\"sp-formItem\">\n <div className=\"sp-formItem__left\" />\n <div className=\"sp-formItem__right sp-margin-l-bottom\">\n <button className=\"primary\" type=\"submit\" onClick={() => this.addNewWindow(formik.values)}>\n {' '}\n Add Window\n </button>\n </div>\n </div>\n </>\n )}\n />\n );\n };\n\n public render() {\n const { CurrentWindows, NewWindowComponent } = this;\n const { isDisabled } = this.props;\n return (\n <>\n <CurrentWindows />\n {!isDisabled && <NewWindowComponent />}\n </>\n );\n }\n}\n","import type { FormikProps } from 'formik';\nimport { get, isEqual } from 'lodash';\nimport React from 'react';\nimport type { Option } from 'react-select';\n\nimport type { Application } from '@spinnaker/core';\nimport {\n CheckboxInput,\n FormikFormField,\n HelpField,\n LayoutProvider,\n ResponsiveFieldLayout,\n TetheredSelect,\n} from '@spinnaker/core';\n\nimport { policyOptions } from './PolicyOptions';\nimport { rateOptions } from './RateOptions';\nimport { WindowPicker } from './WindowPicker';\nimport type { IJobDisruptionBudget } from '../../../../../domain';\nimport type { ITitusServerGroupCommand } from '../../../serverGroupConfiguration.service';\nimport {\n defaultJobDisruptionBudget,\n getDefaultJobDisruptionBudgetForApp,\n} from '../../../serverGroupConfiguration.service';\n\nexport interface IJobDisruptionBudgetProps {\n formik: FormikProps<ITitusServerGroupCommand>;\n app: Application;\n runJobView?: boolean;\n onStageChange?: (values: IJobDisruptionBudget) => void;\n}\n\nexport interface IJobDisruptionBudgetState {\n usingDefault: boolean;\n}\n\nexport interface IFieldOption extends Option {\n field: keyof IJobDisruptionBudget;\n description?: string;\n defaultValues: any;\n fieldComponent?: (props: IFieldOptionComponentProps) => JSX.Element;\n}\n\nexport interface IFieldOptionComponentProps {\n isDisabled: boolean;\n}\n\nexport const DisruptionBudgetDescription = () => (\n <p>\n The Job Disruption Budget is part of the job descriptor, and defines the behavior of how containers of the job can\n be relocated.{' '}\n <a href=\"http://manuals.test.netflix.net/view/titus-docs/mkdocs/master/disruption_budget/\" target=\"_blank\">\n Read the full documentation\n </a>\n </p>\n);\n\nexport class JobDisruptionBudget extends React.Component<IJobDisruptionBudgetProps, IJobDisruptionBudgetState> {\n private timeWindowOptions: IFieldOption[] = [\n {\n field: 'timeWindows',\n label: 'Anytime',\n value: 0,\n defaultValues: undefined,\n },\n {\n field: 'timeWindows',\n label: 'Specific Time Windows',\n value: 1,\n defaultValues: defaultJobDisruptionBudget.timeWindows,\n },\n ];\n\n constructor(props: IJobDisruptionBudgetProps) {\n super(props);\n const { disruptionBudget } = props.formik.values;\n this.state = {\n usingDefault: !disruptionBudget || isEqual(disruptionBudget, getDefaultJobDisruptionBudgetForApp(props.app)),\n };\n if (this.state.usingDefault) {\n this.setToDefaultBudget();\n }\n }\n\n private setToDefaultBudget(): void {\n this.props.formik.setFieldValue('disruptionBudget', getDefaultJobDisruptionBudgetForApp(this.props.app));\n }\n\n private toggleUseDefault = (): void => {\n if (!this.state.usingDefault) {\n this.setToDefaultBudget();\n }\n this.setState({ usingDefault: !this.state.usingDefault });\n };\n\n private getSelectionFromFields(options: IFieldOption[]): IFieldOption {\n const { disruptionBudget } = this.props.formik.values;\n if (!disruptionBudget) {\n return options[0];\n }\n return options.find((o) => !!disruptionBudget[o.field]);\n }\n\n componentDidUpdate = (oldProps: IJobDisruptionBudgetProps) => {\n if (\n this.props.onStageChange &&\n !isEqual(oldProps.formik.values.disruptionBudget, this.props.formik.values.disruptionBudget)\n ) {\n this.props.onStageChange(this.props.formik.values.disruptionBudget);\n }\n };\n\n private optionTypeChanged = (e: IFieldOption, options: IFieldOption[]) => {\n const deselected = options.filter((o) => o !== e);\n deselected.forEach((o) => this.props.formik.setFieldValue('disruptionBudget.' + o.field, undefined));\n this.props.formik.setFieldValue('disruptionBudget.' + e.field, e.defaultValues);\n };\n\n private policyTypeChanged = (e: IFieldOption) => this.optionTypeChanged(e, policyOptions);\n\n private rateTypeChanged = (e: IFieldOption) => this.optionTypeChanged(e, rateOptions);\n\n private timeWindowsChanged = (e: IFieldOption) => {\n this.props.formik.setFieldValue('disruptionBudget.' + e.field, e.defaultValues);\n };\n\n private getTimeWindowSelection(): IFieldOption {\n const windows = get(this.props.formik.values, 'disruptionBudget.timeWindows');\n if (windows) {\n return this.timeWindowOptions.find((o) => o.defaultValues);\n }\n return this.timeWindowOptions.find((o) => !o.defaultValues);\n }\n\n private toggleHealthProvider(provider: string) {\n const { values, setFieldValue } = this.props.formik;\n const providers = values.disruptionBudget.containerHealthProviders;\n const existing = providers.find((p) => p.name === provider);\n if (existing) {\n setFieldValue(\n 'disruptionBudget.containerHealthProviders',\n providers.filter((p) => p !== existing),\n );\n } else {\n setFieldValue('disruptionBudget.containerHealthProviders', providers.concat({ name: provider }));\n }\n }\n\n public render() {\n const { runJobView } = this.props;\n const { usingDefault } = this.state;\n const budget = this.props.formik.values.disruptionBudget || getDefaultJobDisruptionBudgetForApp(this.props.app);\n\n const policyType = this.getSelectionFromFields(policyOptions);\n const PolicyFields = policyType.fieldComponent;\n\n const rateType = this.getSelectionFromFields(rateOptions);\n const RateFields = rateType?.fieldComponent;\n\n const windowType = this.getTimeWindowSelection();\n\n const selectedProviders = (budget.containerHealthProviders ?? []).map((p) => p.name);\n\n const isSelfManaged = !!budget.selfManaged;\n const showConfig = !runJobView || (runJobView && !usingDefault);\n\n return (\n <LayoutProvider value={ResponsiveFieldLayout}>\n <div className=\"form-horizontal sp-margin-l-xaxis\">\n {!runJobView && <DisruptionBudgetDescription />}\n\n <FormikFormField\n name=\"usingDefault\"\n input={() => (\n <CheckboxInput\n checked={usingDefault}\n onChange={this.toggleUseDefault}\n text={<b>Use Netflix Defaults</b>}\n />\n )}\n layout={runJobView ? ({ input }) => <>{input}</> : undefined}\n />\n\n {showConfig && (\n <div style={{ opacity: usingDefault ? 0.5 : 1 }}>\n <div className=\"sp-formGroup\">\n <div className=\"groupHeader\">\n <FormikFormField\n name=\"policyType\"\n label=\"Policy\"\n input={(props) => (\n <div>\n <TetheredSelect\n {...props}\n menuContainerStyle={{ height: '300px' }}\n className=\"Select-menu-long\"\n style={{ width: '300px' }}\n disabled={usingDefault}\n clearable={false}\n onChange={this.policyTypeChanged}\n value={policyType}\n options={policyOptions}\n />\n <HelpField\n expand={true}\n content=\"A job policy defines container relocation rules and constraints\"\n />\n </div>\n )}\n />\n </div>\n <div className=\"sp-formItem\">\n <p>{policyType.description}</p>\n </div>\n {PolicyFields && <PolicyFields isDisabled={usingDefault} />}\n </div>\n {!isSelfManaged && (\n <div>\n <div className={`${budget.rateUnlimited ? '' : 'sp-formGroup'}`}>\n <div className={`${budget.rateUnlimited ? '' : 'groupHeader'}`}>\n <FormikFormField\n name=\"rates\"\n label=\"Rates\"\n input={(props) => (\n <TetheredSelect\n {...props}\n style={{ width: '300px' }}\n disabled={usingDefault}\n clearable={false}\n onChange={this.rateTypeChanged}\n value={rateType}\n options={rateOptions}\n />\n )}\n />\n </div>\n <div className=\"sp-formItem\">\n <p>{rateType.description}</p>\n </div>\n {RateFields && <RateFields isDisabled={usingDefault} />}\n </div>\n\n <div className={`${budget.timeWindows ? 'sp-formGroup' : ''}`}>\n <div className={`${budget.timeWindows ? 'groupHeader' : ''}`}>\n <FormikFormField\n name=\"timeWindows\"\n label=\"When Can Disruption Occur?\"\n input={(props) => (\n <TetheredSelect\n {...props}\n style={{ width: '300px' }}\n disabled={usingDefault}\n clearable={false}\n onChange={this.timeWindowsChanged}\n value={windowType}\n options={this.timeWindowOptions}\n />\n )}\n />\n </div>\n {budget.timeWindows && <WindowPicker isDisabled={usingDefault} formik={this.props.formik} />}\n </div>\n <FormikFormField\n name=\"healthProviders\"\n label=\"Container Health Provider\"\n input={() => (\n <div>\n <CheckboxInput\n checked={selectedProviders.includes('eureka')}\n onChange={() => this.toggleHealthProvider('eureka')}\n text=\"Discovery\"\n disabled={usingDefault}\n />\n </div>\n )}\n />\n </div>\n )}\n </div>\n )}\n </div>\n </LayoutProvider>\n );\n }\n}\n","import { defaultsDeep, set } from 'lodash';\nimport React from 'react';\n\nimport type { IAggregatedAccounts, IRegion, IStageConfigProps } from '@spinnaker/core';\nimport {\n AccountSelectInput,\n AccountService,\n AccountTag,\n FirewallLabels,\n HelpField,\n MapEditor,\n RegionSelectField,\n SpelNumberInput,\n SpinFormik,\n StageConfigField,\n} from '@spinnaker/core';\nimport type { IDockerImageAndTagChanges } from '@spinnaker/docker';\nimport { DockerImageAndTagSelector, DockerImageUtils } from '@spinnaker/docker';\n\nimport { TitusSecurityGroupPicker } from './TitusSecurityGroupPicker';\nimport type { IJobDisruptionBudget, ITitusResources } from '../../../domain';\nimport { IPv6CheckboxInput, JobDisruptionBudget } from '../../../serverGroup/configure/wizard/pages';\nimport { TitusProviderSettings } from '../../../titus.settings';\n\nexport interface ITitusRunJobStageConfigState {\n credentials: string[];\n regions: IRegion[];\n loaded: boolean;\n}\n\ninterface IClusterDefaults {\n application: string;\n containerAttributes: object;\n env: object;\n labels: object;\n resources: ITitusResources;\n retries: number;\n runtimeLimitSecs: number;\n securityGroups: string[];\n iamProfile?: string;\n}\n\nexport class TitusRunJobStageConfig extends React.Component<IStageConfigProps, ITitusRunJobStageConfigState> {\n private credentialsKeyedByAccount: IAggregatedAccounts = {};\n private defaultIamProfile = '';\n\n public state: ITitusRunJobStageConfigState = {\n credentials: [],\n regions: [],\n loaded: false,\n };\n\n public constructor(props: IStageConfigProps) {\n super(props);\n const { application, stage } = props;\n stage.cluster = stage.cluster || {};\n stage.waitForCompletion = stage.waitForCompletion === undefined ? true : stage.waitForCompletion;\n\n if (stage.cluster.imageId && !stage.cluster.imageId.includes('${')) {\n Object.assign(stage, DockerImageUtils.splitImageId(stage.cluster.imageId));\n }\n\n if (!stage.credentials && application.defaultCredentials.titus) {\n stage.credentials = application.defaultCredentials.titus;\n }\n\n if (!stage.cluster.capacity) {\n stage.cluster.capacity = {\n min: 1,\n max: 1,\n desired: 1,\n };\n }\n\n const defaultIamProfile = TitusProviderSettings.defaults.iamProfile || '{{application}}InstanceProfile';\n this.defaultIamProfile = defaultIamProfile.replace('{{application}}', application.name);\n\n const clusterDefaults: IClusterDefaults = {\n application: application.name,\n containerAttributes: {},\n env: {},\n labels: {},\n resources: {\n cpu: 1,\n disk: 10000,\n gpu: 0,\n memory: 512,\n networkMbps: 128,\n },\n retries: 0,\n runtimeLimitSecs: 3600,\n securityGroups: [] as string[],\n };\n\n if (stage.isNew) {\n clusterDefaults.iamProfile = this.defaultIamProfile;\n }\n\n defaultsDeep(stage.cluster, clusterDefaults);\n\n stage.cloudProvider = stage.cloudProvider || 'titus';\n stage.deferredInitialization = true;\n }\n\n private setRegistry(account: string) {\n if (account) {\n this.props.stage.registry = this.credentialsKeyedByAccount[account].registry;\n }\n }\n\n private updateRegions(account: string) {\n let regions: IRegion[];\n if (account) {\n regions = this.credentialsKeyedByAccount[account].regions;\n if (regions.map((r) => r.name).every((r) => r !== this.props.stage.cluster.region)) {\n delete this.props.stage.cluster.region;\n this.props.stageFieldUpdated();\n }\n } else {\n regions = [];\n }\n this.setState({ regions });\n }\n\n private accountChanged = (account: string) => {\n set(this.props.stage, 'account', account);\n this.stageFieldChanged('credentials', account);\n this.setRegistry(account);\n this.updateRegions(account);\n\n const accountDetails = this.credentialsKeyedByAccount[account];\n const ipv6Default = accountDetails.environment === 'test' ? 'true' : 'false';\n this.associateIPv6AddressChanged(ipv6Default);\n };\n\n private dockerChanged = (changes: IDockerImageAndTagChanges) => {\n // Temporary until stage config section is no longer angular\n const { imageId, ...rest } = changes;\n Object.assign(this.props.stage, rest);\n if (imageId) {\n this.props.stage.cluster.imageId = imageId;\n } else {\n delete this.props.stage.cluster.imageId;\n }\n this.props.stageFieldUpdated();\n this.forceUpdate();\n };\n\n private stageFieldChanged = (fieldIndex: string, value: any) => {\n set(this.props.stage, fieldIndex, value);\n this.props.stageFieldUpdated();\n this.forceUpdate();\n };\n\n public componentDidMount() {\n const { stage } = this.props;\n AccountService.getCredentialsKeyedByAccount('titus').then((credentialsKeyedByAccount) => {\n this.credentialsKeyedByAccount = credentialsKeyedByAccount;\n const credentials = Object.keys(credentialsKeyedByAccount);\n stage.credentials = stage.credentials || credentials[0];\n\n this.setRegistry(stage.credentials);\n this.updateRegions(stage.credentials);\n this.setState({ credentials, loaded: true });\n\n const account = this.credentialsKeyedByAccount[stage.credentials];\n const defaultIPv6Address =\n account.environment === 'test' &&\n stage.cluster.containerAttributes['titusParameter.agent.assignIPv6Address'] === undefined\n ? 'true'\n : 'false';\n this.associateIPv6AddressChanged(defaultIPv6Address);\n });\n }\n\n private mapChanged = (key: string, values: { [key: string]: string }) => {\n this.stageFieldChanged(key, values);\n };\n\n private groupsChanged = (groups: string[]) => {\n this.stageFieldChanged('cluster.securityGroups', groups);\n this.forceUpdate();\n };\n\n private associateIPv6AddressChanged = (value: string) => {\n const oldAttributes = this.props.stage.cluster.containerAttributes || {};\n const updatedAttributes = {\n ...oldAttributes,\n 'titusParameter.agent.assignIPv6Address': value,\n };\n this.mapChanged('cluster.containerAttributes', updatedAttributes);\n };\n\n public disruptionBudgetChanged = (values: IJobDisruptionBudget) => {\n const { stage, stageFieldUpdated } = this.props;\n stage.cluster.disruptionBudget = values;\n stageFieldUpdated();\n };\n\n public render() {\n const { application, stage } = this.props;\n const { credentials, loaded, regions } = this.state;\n const awsAccount = (this.credentialsKeyedByAccount[stage.credentials] || { awsAccount: '' }).awsAccount;\n\n const entryPointList = stage.cluster.entryPointList?.length\n ? stage.cluster.entryPointList.join(',')\n : stage.cluster.entryPoint;\n const cmdList = stage.cluster.cmdList?.length ? stage.cluster.cmdList.join(',') : stage.cluster.cmd;\n\n return (\n <div className=\"form-horizontal\">\n <div className=\"form-group\">\n <label className=\"col-md-3 sm-label-right\">\n <span className=\"label-text\">Account</span>\n </label>\n <div className=\"col-md-5\">\n <AccountSelectInput\n value={stage.credentials}\n onChange={(evt: any) => this.accountChanged(evt.target.value)}\n accounts={credentials}\n provider=\"titus\"\n />\n {stage.credentials !== undefined && (\n <div className=\"small\">\n Uses resources from the Amazon account <AccountTag account={awsAccount} />\n </div>\n )}\n </div>\n </div>\n\n <RegionSelectField\n labelColumns={3}\n fieldColumns={5}\n component={stage.cluster}\n field=\"region\"\n account={stage.credentials}\n regions={regions}\n onChange={(region) => this.stageFieldChanged('region', region)}\n />\n\n <DockerImageAndTagSelector\n specifyTagByRegex={false}\n account={stage.credentials}\n digest={stage.digest}\n imageId={stage.cluster.imageId}\n organization={stage.organization}\n registry={stage.registry}\n repository={stage.repository}\n tag={stage.tag}\n showRegistry={false}\n onChange={this.dockerChanged}\n deferInitialization={stage.deferredInitialization}\n />\n\n <StageConfigField label=\"CPU(s)\">\n <SpelNumberInput\n value={stage.cluster.resources.cpu}\n onChange={(value) => this.stageFieldChanged('cluster.resources.cpu', value)}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Memory (MB)\">\n <SpelNumberInput\n onChange={(value) => this.stageFieldChanged('cluster.resources.memory', value)}\n value={stage.cluster.resources.memory}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Disk (MB)\">\n <SpelNumberInput\n onChange={(value) => this.stageFieldChanged('cluster.resources.disk', value)}\n value={stage.cluster.resources.disk}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Network (Mbps)\" helpKey=\"titus.deploy.network\">\n <SpelNumberInput\n onChange={(value) => this.stageFieldChanged('cluster.resources.networkMbps', value)}\n value={stage.cluster.resources.networkMbps}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"GPU(s)\" helpKey=\"titus.deploy.gpu\">\n <SpelNumberInput\n onChange={(value) => this.stageFieldChanged('cluster.resources.gpu', value)}\n value={stage.cluster.resources.gpu}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Entrypoint(s)\" helpKey=\"titus.deploy.entrypoint\">\n <input\n type=\"text\"\n className=\"form-control input-sm\"\n value={entryPointList}\n onChange={(e) => this.stageFieldChanged('cluster.entryPointList', e.target.value.split(','))}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Command(s)\" helpKey=\"titus.deploy.command\">\n <input\n type=\"text\"\n className=\"form-control input-sm\"\n value={cmdList}\n onChange={(e) => this.stageFieldChanged('cluster.cmdList', e.target.value.split(','))}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Runtime Limit (Seconds)\" helpKey=\"titus.deploy.runtimeLimitSecs\">\n <SpelNumberInput\n value={stage.cluster.runtimeLimitSecs}\n onChange={(value) => this.stageFieldChanged('cluster.runtimeLimitSecs', value)}\n min={1}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Retries\" helpKey=\"titus.deploy.retries\">\n <SpelNumberInput\n onChange={(value) => this.stageFieldChanged('cluster.retries', value)}\n value={stage.cluster.retries}\n min={0}\n required={true}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Property File\" helpKey=\"titus.deploy.propertyFile\">\n <input\n type=\"text\"\n className=\"form-control input-sm\"\n onChange={(e) => this.stageFieldChanged('propertyFile', e.target.value)}\n value={stage.propertyFile}\n />\n </StageConfigField>\n\n <div className=\"form-group\">\n <div className=\"col-md-9 col-md-offset-1\">\n <div className=\"checkbox\">\n <label>\n <input\n type=\"checkbox\"\n checked={stage.showAdvancedOptions}\n onChange={(e) => this.stageFieldChanged('showAdvancedOptions', e.target.checked)}\n />\n <strong>Show Advanced Options</strong>\n </label>\n </div>\n </div>\n </div>\n\n <div className={`${stage.showAdvancedOptions === true ? 'collapse.in' : 'collapse'}`}>\n <div className=\"form-group\">\n <label className=\"col-md-3 sm-label-right\">\n <span className=\"label-text\">IAM Instance Profile</span> <HelpField id=\"titus.deploy.iamProfile\" />\n </label>\n <div className=\"col-md-4\">\n <input\n type=\"text\"\n className=\"form-control input-sm\"\n value={stage.cluster.iamProfile}\n placeholder={this.defaultIamProfile}\n required={true}\n onChange={(e) => this.stageFieldChanged('cluster.iamProfile', e.target.value)}\n />\n {!stage.isNew && !stage.cluster.iamProfile && (\n <a\n className=\"small clickable\"\n onClick={() => this.stageFieldChanged('cluster.iamProfile', this.defaultIamProfile)}\n >\n Use suggested default\n </a>\n )}\n </div>\n <div className=\"col-md-1 small\" style={{ whiteSpace: 'nowrap', paddingLeft: '0px', paddingTop: '7px' }}>\n in <AccountTag account={awsAccount} />\n </div>\n </div>\n\n <StageConfigField label=\"Capacity Group\" fieldColumns={4} helpKey=\"titus.job.capacityGroup\">\n <input\n type=\"text\"\n className=\"form-control input-sm\"\n value={stage.cluster.capacityGroup || ''}\n onChange={(e) => this.stageFieldChanged('cluster.capacityGroup', e.target.value)}\n />\n </StageConfigField>\n\n <StageConfigField label={FirewallLabels.get('Firewalls')} helpKey=\"titus.job.securityGroups\">\n {(!stage.credentials || !stage.cluster.region) && (\n <div>Account and region must be selected before {FirewallLabels.get('firewalls')} can be added</div>\n )}\n {loaded && stage.credentials && stage.cluster.region && (\n <TitusSecurityGroupPicker\n account={stage.credentials}\n region={stage.cluster.region}\n command={stage}\n amazonAccount={awsAccount}\n hideLabel={true}\n groupsToEdit={stage.cluster.securityGroups}\n onChange={this.groupsChanged}\n />\n )}\n </StageConfigField>\n\n <StageConfigField label=\"Associate IPv6 Address (Recommended)\" helpKey=\"serverGroup.ipv6\">\n <IPv6CheckboxInput\n value={stage.cluster.containerAttributes['titusParameter.agent.assignIPv6Address']}\n onChange={(e) => this.associateIPv6AddressChanged(e.target.value)}\n />\n </StageConfigField>\n\n <StageConfigField label={'Disruption Budget'} helpKey=\"titus.disruptionbudget.description\">\n <SpinFormik\n initialValues={stage.cluster}\n onSubmit={() => {}}\n render={(formik) => (\n <JobDisruptionBudget\n formik={formik}\n app={application}\n runJobView={true}\n onStageChange={this.disruptionBudgetChanged}\n />\n )}\n />\n </StageConfigField>\n\n <StageConfigField label=\"Job Attributes (optional)\">\n <MapEditor\n model={stage.cluster.labels}\n allowEmpty={true}\n onChange={(v: any) => this.mapChanged('cluster.labels', v)}\n />\n </StageConfigField>\n <StageConfigField label=\"Container Attributes (optional)\">\n <MapEditor\n model={stage.cluster.containerAttributes}\n allowEmpty={true}\n onChange={(v: any) => this.mapChanged('cluster.containerAttributes', v)}\n />\n </StageConfigField>\n <StageConfigField label=\"Environment Variables (optional)\">\n <MapEditor\n model={stage.cluster.env}\n allowEmpty={true}\n onChange={(v: any) => this.mapChanged('cluster.env', v)}\n />\n </StageConfigField>\n </div>\n\n <StageConfigField label=\"Wait for results\" helpKey=\"titus.job.waitForCompletion\">\n <input\n type=\"checkbox\"\n className=\"input-sm\"\n name=\"waitForCompletion\"\n checked={stage.waitForCompletion}\n onChange={(e) => this.stageFieldChanged('waitForCompletion', e.target.checked)}\n />\n </StageConfigField>\n </div>\n );\n }\n}\n","import type { IStage } from '@spinnaker/core';\nimport { ExecutionDetailsTasks, Registry } from '@spinnaker/core';\n\nimport { RunJobExecutionDetails } from './RunJobExecutionDetails';\nimport { TitusRunJobStageConfig } from './TitusRunJobStageConfig';\n\nRegistry.pipeline.registerStage({\n provides: 'runJob',\n useBaseProvider: true,\n restartable: true,\n key: 'runJob',\n cloudProvider: 'titus',\n providesFor: ['aws', 'titus'],\n component: TitusRunJobStageConfig,\n executionDetailsSections: [RunJobExecutionDetails, ExecutionDetailsTasks],\n accountExtractor: (stage: IStage) => [stage.context.credentials],\n configAccountExtractor: (stage: IStage) => [stage.credentials],\n supportsCustomTimeout: true,\n validators: [\n { type: 'requiredField', fieldName: 'cluster.iamProfile' },\n { type: 'requiredField', fieldName: 'cluster.imageId' },\n { type: 'requiredField', fieldName: 'credentials' },\n { type: 'requiredField', fieldName: 'cluster.region' },\n { type: 'requiredField', fieldName: 'cluster.resources.cpu' },\n { type: 'requiredField', fieldName: 'cluster.resources.gpu' },\n { type: 'requiredField', fieldName: 'cluster.resources.memory' },\n { type: 'requiredField', fieldName: 'cluster.resources.disk' },\n { type: 'requiredField', fieldName: 'cluster.runtimeLimitSecs' },\n ],\n});\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_SCALEDOWNCLUSTER_TITUSSCALEDOWNCLUSTERSTAGE =\n 'spinnaker.titus.pipeline.stage.scaleDownClusterStage';\nexport const name = TITUS_PIPELINE_STAGES_SCALEDOWNCLUSTER_TITUSSCALEDOWNCLUSTERSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_SCALEDOWNCLUSTER_TITUSSCALEDOWNCLUSTERSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'scaleDownCluster',\n cloudProvider: 'titus',\n templateUrl: require('./scaleDownClusterStage.html'),\n executionConfigSections: ['scaleDownClusterConfig', 'taskStatus'],\n accountExtractor: (stage) => [stage.context.credentials],\n configAccountExtractor: (stage) => [stage.credentials],\n validators: [\n { type: 'requiredField', fieldName: 'cluster' },\n {\n type: 'requiredField',\n fieldName: 'remainingFullSizeServerGroups',\n fieldLabel: 'Keep [X] full size Server Groups',\n },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n strategy: true,\n });\n })\n .controller('titusScaleDownClusterStageCtrl', [\n '$scope',\n function ($scope) {\n const ctrl = this;\n\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (stage.remainingFullSizeServerGroups === undefined) {\n stage.remainingFullSizeServerGroups = 1;\n }\n\n if (stage.allowScaleDownActive === undefined) {\n stage.allowScaleDownActive = false;\n }\n\n ctrl.pluralize = function (str, val) {\n if (val === 1) {\n return str;\n }\n return str + 's';\n };\n\n if (stage.preferLargerOverNewer === undefined) {\n stage.preferLargerOverNewer = 'false';\n }\n stage.preferLargerOverNewer = stage.preferLargerOverNewer.toString();\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { AccountService, Registry } from '@spinnaker/core';\n\nexport const TITUS_PIPELINE_STAGES_SHRINKCLUSTER_TITUSSHRINKCLUSTERSTAGE =\n 'spinnaker.titus.pipeline.stage.shrinkClusterStage';\nexport const name = TITUS_PIPELINE_STAGES_SHRINKCLUSTER_TITUSSHRINKCLUSTERSTAGE; // for backwards compatibility\nmodule(TITUS_PIPELINE_STAGES_SHRINKCLUSTER_TITUSSHRINKCLUSTERSTAGE, [])\n .config(function () {\n Registry.pipeline.registerStage({\n provides: 'shrinkCluster',\n cloudProvider: 'titus',\n templateUrl: require('./shrinkClusterStage.html'),\n accountExtractor: (stage) => [stage.context.credentials],\n configAccountExtractor: (stage) => [stage.credentials],\n validators: [\n { type: 'requiredField', fieldName: 'cluster' },\n { type: 'requiredField', fieldName: 'shrinkToSize', fieldLabel: 'shrink to [X] Server Groups' },\n { type: 'requiredField', fieldName: 'regions' },\n { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n ],\n });\n })\n .controller('titusShrinkClusterStageCtrl', [\n '$scope',\n function ($scope) {\n const ctrl = this;\n\n const stage = $scope.stage;\n\n $scope.state = {\n accounts: false,\n regionsLoaded: false,\n };\n\n AccountService.listAccounts('titus').then(function (accounts) {\n $scope.accounts = accounts;\n $scope.state.accounts = true;\n });\n\n stage.regions = stage.regions || [];\n stage.cloudProvider = 'titus';\n\n if (!stage.credentials && $scope.application.defaultCredentials.titus) {\n stage.credentials = $scope.application.defaultCredentials.titus;\n }\n if (!stage.regions.length && $scope.application.defaultRegions.titus) {\n stage.regions.push($scope.application.defaultRegions.titus);\n }\n\n if (stage.shrinkToSize === undefined) {\n stage.shrinkToSize = 1;\n }\n\n if (stage.allowDeleteActive === undefined) {\n stage.allowDeleteActive = false;\n }\n\n ctrl.pluralize = function (str, val) {\n if (val === 1) {\n return str;\n }\n return str + 's';\n };\n\n if (stage.retainLargerOverNewer === undefined) {\n stage.retainLargerOverNewer = 'false';\n }\n stage.retainLargerOverNewer = stage.retainLargerOverNewer.toString();\n },\n ]);\n","import { module } from 'angular';\nimport { TitusReactInjector } from './titus.react.injector';\n\nexport const TITUS_REACT_MODULE = 'spinnaker.titus.react';\nmodule(TITUS_REACT_MODULE, []).run([\n '$injector',\n function ($injector: any) {\n TitusReactInjector.initialize($injector);\n },\n]);\n","'use strict';\n\nimport { module } from 'angular';\n\nexport const TITUS_SECURITYGROUP_SECURITYGROUP_READ_SERVICE = 'spinnaker.titus.securityGroup.reader';\nexport const name = TITUS_SECURITYGROUP_SECURITYGROUP_READ_SERVICE; // for backwards compatibility\nmodule(TITUS_SECURITYGROUP_SECURITYGROUP_READ_SERVICE, []).factory('titusSecurityGroupReader', function () {\n function resolveIndexedSecurityGroup(indexedSecurityGroups, container, securityGroupId) {\n return indexedSecurityGroups[container.awsAccount][container.region][securityGroupId];\n }\n\n return {\n resolveIndexedSecurityGroup: resolveIndexedSecurityGroup,\n };\n});\n","'use strict';\n\nimport * as angular from 'angular';\n\nimport { cloneDeep, set } from 'lodash';\nimport { NameUtils } from '@spinnaker/core';\nimport { TitusProviderSettings } from '../../titus.settings';\n\nexport const TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER =\n 'spinnaker.titus.serverGroupCommandBuilder.service';\nexport const name = TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER; // for backwards compatibility\nangular.module(TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER, []).factory('titusServerGroupCommandBuilder', [\n '$q',\n function ($q) {\n function getDefaultIamProfile(application) {\n const defaultIamProfile = TitusProviderSettings.defaults.iamProfile || '{{application}}InstanceProfile';\n return defaultIamProfile.replace('{{application}}', application.name);\n }\n\n function buildNewServerGroupCommand(application, defaults) {\n defaults = defaults || {};\n\n const defaultCredentials = defaults.account || TitusProviderSettings.defaults.account;\n const defaultRegion = defaults.region || TitusProviderSettings.defaults.region;\n const defaultZone = defaults.zone || TitusProviderSettings.defaults.zone;\n const defaultIamProfile = getDefaultIamProfile(application);\n\n const command = {\n application: application.name,\n credentials: defaultCredentials,\n region: defaultRegion,\n zone: defaultZone,\n network: 'default',\n inService: true,\n resources: {\n cpu: 1,\n networkMbps: 128,\n disk: 10000,\n memory: 512,\n gpu: 0,\n },\n efs: {\n mountPerm: 'RW',\n },\n strategy: '',\n capacity: {\n min: 1,\n max: 1,\n desired: 1,\n },\n targetHealthyDeployPercentage: 100,\n env: {},\n labels: {},\n containerAttributes: {\n 'titusParameter.agent.assignIPv6Address': 'true',\n },\n cloudProvider: 'titus',\n selectedProvider: 'titus',\n iamProfile: defaultIamProfile,\n constraints: {\n hard: {},\n soft: {},\n },\n serviceJobProcesses: {},\n viewState: {\n defaultIamProfile,\n useSimpleCapacity: true,\n usePreferredZones: true,\n mode: defaults.mode || 'create',\n },\n securityGroups: [],\n imageId: defaults.imageId,\n migrationPolicy: { type: 'systemDefault' },\n digest: '',\n organization: '',\n tag: '',\n registry: '',\n repository: '',\n };\n\n return $q.when(command);\n }\n\n // Only used to prepare view requiring template selecting\n function buildNewServerGroupCommandForPipeline() {\n return $q.when({\n viewState: {\n requiresTemplateSelection: true,\n },\n });\n }\n\n function buildServerGroupCommandFromExisting(application, serverGroup, mode) {\n mode = mode || 'clone';\n\n const serverGroupName = NameUtils.parseServerGroupName(serverGroup.name);\n\n const isTestEnv = serverGroup.awsAccount === 'test';\n const isIPv6Set =\n serverGroup.containerAttributes &&\n serverGroup.containerAttributes['titusParameter.agent.assignIPv6Address'] !== undefined;\n\n // If IPv6 hasn't been explicitly set by the user, auto-assign based on the environment.\n const assignIPv6Address = isIPv6Set\n ? serverGroup.containerAttributes['titusParameter.agent.assignIPv6Address']\n : isTestEnv\n ? 'true'\n : 'false';\n\n const containerAttributes = {\n ...serverGroup.containerAttributes,\n 'titusParameter.agent.assignIPv6Address': assignIPv6Address,\n };\n\n const command = {\n application: application.name,\n disruptionBudget: serverGroup.disruptionBudget,\n strategy: '',\n stack: serverGroupName.stack,\n freeFormDetails: serverGroupName.freeFormDetails,\n account: serverGroup.account,\n credentials: serverGroup.account,\n region: serverGroup.region,\n env: serverGroup.env,\n labels: serverGroup.labels,\n containerAttributes,\n entryPoint: serverGroup.entryPoint,\n iamProfile: serverGroup.iamProfile,\n capacityGroup: serverGroup.capacityGroup,\n migrationPolicy: serverGroup.migrationPolicy ? serverGroup.migrationPolicy : { type: 'systemDefault' },\n securityGroups: serverGroup.securityGroups || [],\n constraints: {\n hard: (serverGroup.constraints && serverGroup.constraints.hard) || {},\n soft: (serverGroup.constraints && serverGroup.constraints.soft) || {},\n },\n serviceJobProcesses: Object.assign({}, serverGroup.serviceJobProcesses),\n inService: serverGroup.disabled ? false : true,\n source: {\n account: serverGroup.account,\n region: serverGroup.region,\n asgName: serverGroup.name,\n },\n resources: {\n cpu: serverGroup.resources.cpu,\n gpu: serverGroup.resources.gpu,\n memory: serverGroup.resources.memory,\n disk: serverGroup.resources.disk,\n networkMbps: serverGroup.resources.networkMbps,\n },\n targetGroups: serverGroup.targetGroups,\n capacity: {\n min: serverGroup.capacity.min,\n max: serverGroup.capacity.max,\n desired: serverGroup.capacity.desired,\n },\n targetHealthyDeployPercentage: 100,\n cloudProvider: 'titus',\n selectedProvider: 'titus',\n viewState: {\n defaultIamProfile: getDefaultIamProfile(application),\n useSimpleCapacity: serverGroup.capacity.min === serverGroup.capacity.max,\n mode: mode,\n },\n organization: '',\n tag: '',\n digest: '',\n registry: '',\n repository: '',\n };\n\n if (serverGroup.efs) {\n command.efs = {\n mountPoint: serverGroup.efs.mountPoint,\n mountPerm: serverGroup.efs.mountPerm,\n efsId: serverGroup.efs.efsId,\n };\n } else {\n command.efs = {\n mountPerm: 'RW',\n };\n }\n\n if (mode !== 'editPipeline') {\n command.imageId =\n serverGroup.image.dockerImageName +\n ':' +\n (serverGroup.image.dockerImageVersion\n ? serverGroup.image.dockerImageVersion\n : serverGroup.image.dockerImageDigest);\n }\n\n return $q.when(command);\n }\n\n function buildServerGroupCommandFromPipeline(application, originalCluster) {\n const pipelineCluster = cloneDeep(originalCluster);\n const commandOptions = {\n account: pipelineCluster.account,\n imageId: pipelineCluster.imageId,\n region: pipelineCluster.region,\n };\n\n return buildNewServerGroupCommand(application, commandOptions).then(function (command) {\n command.constraints = {\n hard:\n (originalCluster.constraints && originalCluster.constraints.hard) ||\n (originalCluster.hardConstraints &&\n originalCluster.hardConstraints.reduce((a, c) => set(a, c, 'true'), {})) ||\n {},\n soft:\n (originalCluster.constraints && originalCluster.constraints.soft) ||\n (originalCluster.softConstraints &&\n originalCluster.softConstraints.reduce((a, c) => set(a, c, 'true'), {})) ||\n {},\n };\n delete pipelineCluster.hardConstraints;\n delete pipelineCluster.softConstraints;\n\n const viewState = {\n disableImageSelection: true,\n useSimpleCapacity: originalCluster.capacity.min === originalCluster.capacity.max,\n mode: 'editPipeline',\n submitButtonLabel: 'Done',\n defaultIamProfile: getDefaultIamProfile(application),\n };\n\n const viewOverrides = {\n region: pipelineCluster.region,\n credentials: pipelineCluster.account,\n iamProfile: pipelineCluster.iamProfile,\n viewState: viewState,\n };\n\n pipelineCluster.strategy = pipelineCluster.strategy || '';\n const extendedCommand = angular.extend({}, command, pipelineCluster, viewOverrides);\n return extendedCommand;\n });\n }\n\n return {\n buildNewServerGroupCommand,\n buildNewServerGroupCommandForPipeline,\n buildServerGroupCommandFromExisting,\n buildServerGroupCommandFromPipeline,\n };\n },\n]);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { TITUS_SERVER_GROUP_CONFIGURATION_SERVICE } from './serverGroupConfiguration.service';\n\nexport const TITUS_SERVERGROUP_CONFIGURE_SERVERGROUP_CONFIGURE_TITUS_MODULE = 'spinnaker.serverGroup.configure.titus';\nexport const name = TITUS_SERVERGROUP_CONFIGURE_SERVERGROUP_CONFIGURE_TITUS_MODULE; // for backwards compatibility\nmodule(TITUS_SERVERGROUP_CONFIGURE_SERVERGROUP_CONFIGURE_TITUS_MODULE, [TITUS_SERVER_GROUP_CONFIGURATION_SERVICE]);\n","import { get, isEqual } from 'lodash';\nimport React from 'react';\n\nimport { ServerGroupCapacity, ServerGroupLoadBalancers, ServerGroupSecurityGroups } from '@spinnaker/amazon';\nimport type { Application, IModalComponentProps, IStage } from '@spinnaker/core';\nimport {\n AccountTag,\n DeployInitializer,\n FirewallLabels,\n noop,\n ReactInjector,\n ReactModal,\n TaskMonitor,\n WizardModal,\n WizardPage,\n} from '@spinnaker/core';\n\nimport { ServerGroupBasicSettings, ServerGroupParameters, ServerGroupResources } from './pages';\nimport { JobDisruptionBudget } from './pages/disruptionBudget/JobDisruptionBudget';\nimport { TitusReactInjector } from '../../../reactShims';\nimport type { ITitusServerGroupCommand } from '../serverGroupConfiguration.service';\nimport { getDefaultJobDisruptionBudgetForApp } from '../serverGroupConfiguration.service';\n\nexport interface ITitusCloneServerGroupModalProps extends IModalComponentProps {\n title: string;\n application: Application;\n command: ITitusServerGroupCommand;\n}\n\nexport interface ITitusCloneServerGroupModalState {\n firewallsLabel: string;\n loaded: boolean;\n requiresTemplateSelection: boolean;\n taskMonitor: TaskMonitor;\n}\n\nexport class TitusCloneServerGroupModal extends React.Component<\n ITitusCloneServerGroupModalProps,\n ITitusCloneServerGroupModalState\n> {\n public static defaultProps: Partial<ITitusCloneServerGroupModalProps> = {\n closeModal: noop,\n dismissModal: noop,\n };\n\n private _isUnmounted = false;\n private refreshUnsubscribe: () => void;\n\n public static show(props: ITitusCloneServerGroupModalProps): Promise<ITitusServerGroupCommand> {\n const modalProps = { dialogClassName: 'wizard-modal modal-lg' };\n return ReactModal.show(TitusCloneServerGroupModal, props, modalProps);\n }\n\n constructor(props: ITitusCloneServerGroupModalProps) {\n super(props);\n\n const requiresTemplateSelection = get(props, 'command.viewState.requiresTemplateSelection', false);\n if (!requiresTemplateSelection) {\n this.configureCommand();\n }\n\n this.state = {\n firewallsLabel: FirewallLabels.get('Firewalls'),\n loaded: false,\n requiresTemplateSelection,\n taskMonitor: new TaskMonitor({\n application: props.application,\n title: 'Creating your server group',\n modalInstance: TaskMonitor.modalInstanceEmulation(() => this.props.dismissModal()),\n onTaskComplete: this.onTaskComplete,\n }),\n };\n }\n\n private templateSelected = () => {\n this.setState({ requiresTemplateSelection: false });\n this.configureCommand();\n };\n\n private onTaskComplete = () => {\n this.props.application.serverGroups.refresh();\n this.props.application.serverGroups.onNextRefresh(null, this.onApplicationRefresh);\n };\n\n protected onApplicationRefresh = (): void => {\n if (this._isUnmounted) {\n return;\n }\n\n const { command } = this.props;\n const { taskMonitor } = this.state;\n const cloneStage = taskMonitor.task.execution.stages.find((stage: IStage) => stage.type === 'cloneServerGroup');\n if (cloneStage && cloneStage.context['deploy.server.groups']) {\n const newServerGroupName = cloneStage.context['deploy.server.groups'][command.region];\n if (newServerGroupName) {\n const newStateParams = {\n serverGroup: newServerGroupName,\n accountId: command.credentials,\n region: command.region,\n provider: 'titus',\n };\n let transitionTo = '^.^.^.clusters.serverGroup';\n if (ReactInjector.$state.includes('**.clusters.serverGroup')) {\n // clone via details, all view\n transitionTo = '^.serverGroup';\n }\n if (ReactInjector.$state.includes('**.clusters.cluster.serverGroup')) {\n // clone or create with details open\n transitionTo = '^.^.serverGroup';\n }\n if (ReactInjector.$state.includes('**.clusters')) {\n // create new, no details open\n transitionTo = '.serverGroup';\n }\n ReactInjector.$state.go(transitionTo, newStateParams);\n }\n }\n };\n\n private configureCommand = () => {\n const { command } = this.props;\n TitusReactInjector.titusServerGroupConfigurationService.configureCommand(command).then(() => {\n TitusReactInjector.titusServerGroupConfigurationService.configureSubnets(command);\n if (!command.credentials.includes('${')) {\n // so as to not erase registry when account is a spel expression\n command.registry = ((command.backingData.credentialsKeyedByAccount[command.credentials] as any) || {}).registry;\n }\n this.setState({ loaded: true, requiresTemplateSelection: false });\n });\n };\n\n public componentWillUnmount(): void {\n this._isUnmounted = true;\n if (this.refreshUnsubscribe) {\n this.refreshUnsubscribe();\n }\n }\n\n private submit = (command: ITitusServerGroupCommand): void => {\n const forPipelineConfig = command.viewState.mode === 'editPipeline' || command.viewState.mode === 'createPipeline';\n // never persist the default budget\n let toSubmit = command;\n // TODO: see if this is needed\n if (command.disruptionBudget.timeWindows && !command.disruptionBudget.timeWindows.length) {\n delete command.disruptionBudget.timeWindows;\n }\n if (isEqual(getDefaultJobDisruptionBudgetForApp(this.props.application), command.disruptionBudget)) {\n toSubmit = { ...command, disruptionBudget: undefined };\n }\n if (forPipelineConfig) {\n this.props.closeModal && this.props.closeModal(toSubmit);\n } else {\n this.state.taskMonitor.submit(() =>\n ReactInjector.serverGroupWriter.cloneServerGroup(toSubmit, this.props.application),\n );\n }\n };\n\n private getLoadBalancerNote = (command: ITitusServerGroupCommand) => {\n return (\n <div className=\"form-group small\" style={{ marginTop: '20px' }}>\n <div className=\"col-md-8 col-md-offset-3\">\n <p>\n Only target groups with target type <em>ip</em> are supported in Titus. It is not possible to re-use target\n groups of target type <em>instance</em> used by Amazon instances.{' '}\n </p>\n {command.backingData !== undefined &&\n command.backingData.credentialsKeyedByAccount !== undefined &&\n command.credentials !== undefined && (\n <p>\n Uses target groups from the Amazon account{' '}\n <AccountTag\n account={\n command.backingData.credentialsKeyedByAccount[command.credentials] &&\n command.backingData.credentialsKeyedByAccount[command.credentials].awsAccount\n }\n />\n </p>\n )}\n </div>\n </div>\n );\n };\n\n private getSecurityGroupNote = (command: ITitusServerGroupCommand) => {\n const amazonAccount =\n command.backingData &&\n command.backingData.credentialsKeyedByAccount &&\n command.backingData.credentialsKeyedByAccount[command.credentials] &&\n command.backingData.credentialsKeyedByAccount[command.credentials].awsAccount;\n if (!amazonAccount || command.credentials === undefined) {\n return null;\n }\n\n return (\n <div className=\"form-group small\">\n <div className=\"col-md-9 col-md-offset-3\">\n Uses {FirewallLabels.get('firewalls')} from the Amazon account <AccountTag account={amazonAccount} />\n </div>\n </div>\n );\n };\n\n public render() {\n const { application, command, dismissModal, title } = this.props;\n const { loaded, taskMonitor, requiresTemplateSelection } = this.state;\n\n if (requiresTemplateSelection) {\n return (\n <DeployInitializer\n application={application}\n cloudProvider=\"titus\"\n command={command}\n onDismiss={dismissModal}\n onTemplateSelected={this.templateSelected}\n />\n );\n }\n\n return (\n <WizardModal<ITitusServerGroupCommand>\n heading={title}\n initialValues={command}\n loading={!loaded}\n taskMonitor={taskMonitor}\n dismissModal={dismissModal}\n closeModal={this.submit}\n submitButtonLabel={command.viewState.submitButtonLabel}\n render={({ formik, nextIdx, wizard }) => (\n <>\n <WizardPage\n label=\"Basic Settings\"\n wizard={wizard}\n order={nextIdx()}\n render={({ innerRef }) => <ServerGroupBasicSettings ref={innerRef} formik={formik} app={application} />}\n />\n\n <WizardPage\n label=\"Resources\"\n wizard={wizard}\n order={nextIdx()}\n render={({ innerRef }) => <ServerGroupResources ref={innerRef} formik={formik} />}\n />\n\n <WizardPage\n label=\"Capacity\"\n wizard={wizard}\n order={nextIdx()}\n render={({ innerRef }) => <ServerGroupCapacity ref={innerRef} formik={formik} />}\n />\n\n <WizardPage\n label=\"Load Balancers\"\n wizard={wizard}\n order={nextIdx()}\n note={this.getLoadBalancerNote(formik.values)}\n render={({ innerRef }) => (\n <ServerGroupLoadBalancers\n ref={innerRef}\n formik={formik as any}\n hideLoadBalancers={true}\n targetGroupTypeHelpText={'ip'}\n />\n )}\n />\n\n <WizardPage\n label={FirewallLabels.get('Firewalls')}\n wizard={wizard}\n order={nextIdx()}\n note={this.getSecurityGroupNote(formik.values)}\n render={({ innerRef }) => <ServerGroupSecurityGroups ref={innerRef} formik={formik as any} />}\n />\n\n <WizardPage\n label=\"Job Disruption Budget\"\n wizard={wizard}\n order={nextIdx()}\n render={({ innerRef }) => <JobDisruptionBudget ref={innerRef} formik={formik} app={application} />}\n />\n\n <WizardPage\n label=\"Advanced Settings\"\n wizard={wizard}\n order={nextIdx()}\n render={({ innerRef }) => <ServerGroupParameters ref={innerRef} formik={formik} app={application} />}\n />\n </>\n )}\n />\n );\n }\n}\n","import { useMemo } from 'react';\nimport type { ITaskMonitorConfig } from '@spinnaker/core';\nimport { TaskMonitor } from '@spinnaker/core';\n\n/**\n * React hook that returns a TaskMonitor\n *\n * @param config a ITaskMonitorConfig\n * @param dismissModal a function that closes the modal enclosing the task monitor\n *\n * Example:\n *\n * function MyComponent(props) {\n * const { application, serverGroup } = props;\n * const title = `Resize ${serverGroup.name}`;\n * const taskMonitor = useTaskMonitor({ application, title });\n *\n * return (\n * <>\n * <TaskMonitorWrapper taskMonitor={taskMonitor}>\n * <form onSubmit={() => taskMonitor.submit(() => API.runSomeTask())}>\n * </>\n * )\n * }\n *\n */\nexport const useTaskMonitor = (config: ITaskMonitorConfig, dismissModal: () => void) => {\n const modalInstance = TaskMonitor.modalInstanceEmulation(() => dismissModal());\n return useMemo(() => new TaskMonitor({ modalInstance, ...config }), [config.application, config.title]);\n};\n","import type { FormikContext } from 'formik';\nimport { Form } from 'formik';\nimport React from 'react';\nimport { Modal } from 'react-bootstrap';\n\nimport type { Application, ICapacity, IModalComponentProps } from '@spinnaker/core';\nimport {\n FormikFormField,\n MinMaxDesiredChanges,\n ModalClose,\n NumberInput,\n PlatformHealthOverride,\n ReactInjector,\n SpinFormik,\n TaskMonitorWrapper,\n UserVerification,\n ValidationMessage,\n} from '@spinnaker/core';\nimport type { ITitusServerGroup } from '../../../domain';\n\nimport { useTaskMonitor } from './useTaskMonitor';\n\nconst { useState, useEffect, useMemo } = React;\n\nexport interface ITitusResizeServerGroupModalProps extends IModalComponentProps {\n application: Application;\n serverGroup: ITitusServerGroup;\n}\n\ninterface ITitusResizeServerGroupCommand {\n capacity: ICapacity;\n serverGroupName: string;\n instances: number;\n interestingHealthProviderNames: string[];\n region: string;\n}\n\nfunction surfacedErrorMessage(formik: FormikContext<ITitusResizeServerGroupCommand>) {\n const capacityErrors = formik.errors.capacity || ({} as any);\n const { min, max, desired } = capacityErrors;\n return [min, max, desired].find((x) => !!x);\n}\n\nfunction SimpleMode({ formik, serverGroup, toggleMode }: IAdvancedModeProps) {\n useEffect(() => {\n formik.setFieldValue('capacity.min', formik.values.capacity.desired);\n formik.setFieldValue('capacity.max', formik.values.capacity.desired);\n }, [formik.values.capacity.desired]);\n\n const errorMessage = surfacedErrorMessage(formik);\n\n return (\n <div>\n <p>Sets min, max, and desired instance counts to the same value.</p>\n\n <p>\n To allow autoscaling, use the{' '}\n <a className=\"clickable\" onClick={toggleMode}>\n Advanced Mode\n </a>\n .\n </p>\n\n <div className=\"form-group row\">\n <div className=\"col-md-3 sm-label-right\">Current size</div>\n <div className=\"col-md-4\">\n <div className=\"horizontal middle\">\n <input\n type=\"number\"\n className=\"NumberInput form-control\"\n value={serverGroup.capacity.desired}\n disabled={true}\n />\n <div className=\"sp-padding-xs-xaxis\">instances</div>\n </div>\n </div>\n </div>\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Resize to</div>\n <div className=\"col-md-4\">\n <div className=\"horizontal middle\">\n <FormikFormField\n name=\"capacity.desired\"\n input={(props) => <NumberInput {...props} min={0} />}\n layout={({ input }) => <>{input}</>}\n touched={true}\n onChange={() => {}}\n />\n <div className=\"sp-padding-xs-xaxis\">instances</div>\n </div>\n </div>\n </div>\n\n {!!errorMessage && (\n <div className=\"col-md-offset-3 col-md-9\">\n <ValidationMessage message={errorMessage} type=\"error\" />\n </div>\n )}\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Changes</div>\n <div className=\"col-md-9 sm-control-field\">\n <MinMaxDesiredChanges current={serverGroup.capacity} next={formik.values.capacity} />\n </div>\n </div>\n </div>\n );\n}\n\ninterface IAdvancedModeProps {\n formik: FormikContext<ITitusResizeServerGroupCommand>;\n serverGroup: ITitusServerGroup;\n toggleMode: () => void;\n}\n\nfunction AdvancedMode({ formik, serverGroup, toggleMode }: IAdvancedModeProps) {\n const { min, max } = formik.values.capacity || ({} as any);\n\n const DisabledNumberField = ({ value }: { value: string | number }) => (\n <div className=\"col-md-2\">\n <input className=\"NumberInput form-control\" type=\"number\" disabled={true} value={value} />\n </div>\n );\n const errorMessage = surfacedErrorMessage(formik);\n\n return (\n <div>\n <p>Sets up auto-scaling for this server group.</p>\n <p>\n To disable auto-scaling, use the{' '}\n <a className=\"clickable\" onClick={toggleMode}>\n Simple Mode\n </a>\n .\n </p>\n\n <div className=\"form-group bold\">\n <div className=\"col-md-2 col-md-offset-3\">Min</div>\n <div className=\"col-md-2\">Max</div>\n <div className=\"col-md-2\">Desired</div>\n </div>\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Current</div>\n <DisabledNumberField value={serverGroup.capacity.min} />\n <DisabledNumberField value={serverGroup.capacity.max} />\n <DisabledNumberField value={serverGroup.capacity.desired} />\n </div>\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Resize to</div>\n <div className=\"col-md-2\">\n <FormikFormField\n name=\"capacity.min\"\n input={(props) => <NumberInput {...props} min={0} max={max} />}\n layout={({ input }) => <>{input}</>}\n touched={true}\n />\n </div>\n\n <div className=\"col-md-2\">\n <FormikFormField\n name=\"capacity.max\"\n input={(props) => <NumberInput {...props} min={min} />}\n layout={({ input }) => <>{input}</>}\n touched={true}\n />\n </div>\n\n <div className=\"col-md-2\">\n <FormikFormField\n name=\"capacity.desired\"\n input={(props) => <NumberInput {...props} min={min} max={max} />}\n layout={({ input }) => <>{input}</>}\n touched={true}\n />\n </div>\n </div>\n\n {!!errorMessage && (\n <div className=\"col-md-offset-3 col-md-9\">\n <ValidationMessage message={errorMessage} type=\"error\" />\n </div>\n )}\n\n <div className=\"form-group\">\n <div className=\"col-md-3 sm-label-right\">Changes</div>\n <div className=\"col-md-9 sm-control-field\">\n <MinMaxDesiredChanges current={serverGroup.capacity} next={formik.values.capacity} />\n </div>\n </div>\n </div>\n );\n}\n\nfunction validateResizeCommand(values: ITitusResizeServerGroupCommand) {\n const { min, max, desired } = values.capacity;\n const capacityErrors = {} as any;\n\n // try to only show one error message at a time\n if (min > max) {\n capacityErrors.min = capacityErrors.max = 'Min cannot be larger than Max';\n } else if (desired < min) {\n capacityErrors.desired = capacityErrors.min = 'Desired cannot be smaller than Min';\n } else if (desired > max) {\n capacityErrors.desired = capacityErrors.max = 'Desired cannot be larger than Max';\n }\n\n if (Object.keys(capacityErrors).length) {\n return { capacity: capacityErrors };\n }\n\n return {};\n}\n\nexport function TitusResizeServerGroupModal(props: ITitusResizeServerGroupModalProps) {\n const { serverGroup, application, dismissModal } = props;\n\n const initialAdvancedMode = useMemo(() => {\n const { min, max, desired } = serverGroup.capacity;\n return desired !== max || desired !== min;\n }, []);\n const [advancedMode, setAdvancedMode] = useState(initialAdvancedMode);\n\n const platformHealthOnlyShowOverride =\n application.attributes && application.attributes.platformHealthOnlyShowOverride;\n const [verified, setVerified] = useState<boolean>();\n\n const taskMonitor = useTaskMonitor(\n {\n application,\n title: `Resizing ${serverGroup.name}`,\n onTaskComplete: () => application.getDataSource('serverGroups').refresh(true),\n },\n dismissModal,\n );\n const submit = (command: ITitusResizeServerGroupCommand) =>\n taskMonitor.submit(() => ReactInjector.serverGroupWriter.resizeServerGroup(serverGroup, application, command));\n\n const initialValues = { capacity: serverGroup.capacity } as ITitusResizeServerGroupCommand;\n\n return (\n <>\n <TaskMonitorWrapper monitor={taskMonitor} />\n\n <SpinFormik<ITitusResizeServerGroupCommand>\n initialValues={initialValues}\n validate={validateResizeCommand}\n onSubmit={submit}\n render={(formik) => {\n return (\n <>\n <ModalClose dismiss={dismissModal} />\n <Modal.Header>\n <Modal.Title>Resize {serverGroup.name}</Modal.Title>\n </Modal.Header>\n\n <Modal.Body>\n <Form className=\"form-horizontal\">\n {advancedMode ? (\n <AdvancedMode formik={formik} serverGroup={serverGroup} toggleMode={() => setAdvancedMode(false)} />\n ) : (\n <SimpleMode formik={formik} serverGroup={serverGroup} toggleMode={() => setAdvancedMode(true)} />\n )}\n\n {platformHealthOnlyShowOverride && (\n <PlatformHealthOverride\n interestingHealthProviderNames={formik.values.interestingHealthProviderNames}\n platformHealthType=\"Titus\"\n showHelpDetails={true}\n onChange={(names) =>\n formik.setFieldValue('interestingHealthProviderNames', names ? names : undefined)\n }\n />\n )}\n </Form>\n </Modal.Body>\n\n <Modal.Footer>\n <UserVerification account={serverGroup.account} onValidChange={setVerified} />\n\n <button className=\"btn btn-default\" onClick={dismissModal}>\n Cancel\n </button>\n\n <button\n type=\"submit\"\n disabled={!verified || !formik.isValid}\n className=\"btn btn-primary\"\n onClick={() => submit(formik.values)}\n >\n Submit\n </button>\n </Modal.Footer>\n </>\n );\n }}\n />\n </>\n );\n}\n","// these aren't really private, but nor are they really useful to document\n\n/**\n * @private\n */\nclass LuxonError extends Error {}\n\n/**\n * @private\n */\nexport class InvalidDateTimeError extends LuxonError {\n constructor(reason) {\n super(`Invalid DateTime: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidIntervalError extends LuxonError {\n constructor(reason) {\n super(`Invalid Interval: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidDurationError extends LuxonError {\n constructor(reason) {\n super(`Invalid Duration: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nexport class ConflictingSpecificationError extends LuxonError {}\n\n/**\n * @private\n */\nexport class InvalidUnitError extends LuxonError {\n constructor(unit) {\n super(`Invalid unit ${unit}`);\n }\n}\n\n/**\n * @private\n */\nexport class InvalidArgumentError extends LuxonError {}\n\n/**\n * @private\n */\nexport class ZoneIsAbstractError extends LuxonError {\n constructor() {\n super(\"Zone is an abstract class\");\n }\n}\n","/**\n * @private\n */\n\nconst n = \"numeric\",\n s = \"short\",\n l = \"long\";\n\nexport const DATE_SHORT = {\n year: n,\n month: n,\n day: n\n};\n\nexport const DATE_MED = {\n year: n,\n month: s,\n day: n\n};\n\nexport const DATE_FULL = {\n year: n,\n month: l,\n day: n\n};\n\nexport const DATE_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l\n};\n\nexport const TIME_SIMPLE = {\n hour: n,\n minute: n\n};\n\nexport const TIME_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n\n};\n\nexport const TIME_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s\n};\n\nexport const TIME_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l\n};\n\nexport const TIME_24_SIMPLE = {\n hour: n,\n minute: n,\n hour12: false\n};\n\n/**\n * {@link toLocaleString}; format like '09:30:23', always 24-hour.\n */\nexport const TIME_24_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n hour12: false\n};\n\n/**\n * {@link toLocaleString}; format like '09:30:23 EDT', always 24-hour.\n */\nexport const TIME_24_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hour12: false,\n timeZoneName: s\n};\n\n/**\n * {@link toLocaleString}; format like '09:30:23 Eastern Daylight Time', always 24-hour.\n */\nexport const TIME_24_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hour12: false,\n timeZoneName: l\n};\n\n/**\n * {@link toLocaleString}; format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n */\nexport const DATETIME_SHORT = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n\n};\n\n/**\n * {@link toLocaleString}; format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n */\nexport const DATETIME_SHORT_WITH_SECONDS = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n second: n\n};\n\nexport const DATETIME_MED = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n\n};\n\nexport const DATETIME_MED_WITH_SECONDS = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n second: n\n};\n\nexport const DATETIME_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n hour: n,\n minute: n\n};\n\nexport const DATETIME_FULL = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n timeZoneName: s\n};\n\nexport const DATETIME_FULL_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s\n};\n\nexport const DATETIME_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n timeZoneName: l\n};\n\nexport const DATETIME_HUGE_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l\n};\n","/*\n This is just a junk drawer, containing anything used across multiple classes.\n Because Luxon is small(ish), this should stay small and we won't worry about splitting\n it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature area.\n*/\n\nimport { InvalidArgumentError } from \"../errors.js\";\n\n/**\n * @private\n */\n\n// TYPES\n\nexport function isUndefined(o) {\n return typeof o === \"undefined\";\n}\n\nexport function isNumber(o) {\n return typeof o === \"number\";\n}\n\nexport function isInteger(o) {\n return typeof o === \"number\" && o % 1 === 0;\n}\n\nexport function isString(o) {\n return typeof o === \"string\";\n}\n\nexport function isDate(o) {\n return Object.prototype.toString.call(o) === \"[object Date]\";\n}\n\n// CAPABILITIES\n\nexport function hasIntl() {\n try {\n return typeof Intl !== \"undefined\" && Intl.DateTimeFormat;\n } catch (e) {\n return false;\n }\n}\n\nexport function hasFormatToParts() {\n return !isUndefined(Intl.DateTimeFormat.prototype.formatToParts);\n}\n\nexport function hasRelative() {\n try {\n return typeof Intl !== \"undefined\" && !!Intl.RelativeTimeFormat;\n } catch (e) {\n return false;\n }\n}\n\n// OBJECTS AND ARRAYS\n\nexport function maybeArray(thing) {\n return Array.isArray(thing) ? thing : [thing];\n}\n\nexport function bestBy(arr, by, compare) {\n if (arr.length === 0) {\n return undefined;\n }\n return arr.reduce((best, next) => {\n const pair = [by(next), next];\n if (!best) {\n return pair;\n } else if (compare(best[0], pair[0]) === best[0]) {\n return best;\n } else {\n return pair;\n }\n }, null)[1];\n}\n\nexport function pick(obj, keys) {\n return keys.reduce((a, k) => {\n a[k] = obj[k];\n return a;\n }, {});\n}\n\nexport function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n// NUMBERS AND STRINGS\n\nexport function integerBetween(thing, bottom, top) {\n return isInteger(thing) && thing >= bottom && thing <= top;\n}\n\n// x % n but takes the sign of n instead of x\nexport function floorMod(x, n) {\n return x - n * Math.floor(x / n);\n}\n\nexport function padStart(input, n = 2) {\n if (input.toString().length < n) {\n return (\"0\".repeat(n) + input).slice(-n);\n } else {\n return input.toString();\n }\n}\n\nexport function parseInteger(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseInt(string, 10);\n }\n}\n\nexport function parseMillis(fraction) {\n // Return undefined (instead of 0) in these cases, where fraction is not set\n if (isUndefined(fraction) || fraction === null || fraction === \"\") {\n return undefined;\n } else {\n const f = parseFloat(\"0.\" + fraction) * 1000;\n return Math.floor(f);\n }\n}\n\nexport function roundTo(number, digits, towardZero = false) {\n const factor = 10 ** digits,\n rounder = towardZero ? Math.trunc : Math.round;\n return rounder(number * factor) / factor;\n}\n\n// DATE BASICS\n\nexport function isLeapYear(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\nexport function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\n\nexport function daysInMonth(year, month) {\n const modMonth = floorMod(month - 1, 12) + 1,\n modYear = year + (month - modMonth) / 12;\n\n if (modMonth === 2) {\n return isLeapYear(modYear) ? 29 : 28;\n } else {\n return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];\n }\n}\n\n// covert a calendar object to a local timestamp (epoch, but with the offset baked in)\nexport function objToLocalTS(obj) {\n let d = Date.UTC(\n obj.year,\n obj.month - 1,\n obj.day,\n obj.hour,\n obj.minute,\n obj.second,\n obj.millisecond\n );\n\n // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that\n if (obj.year < 100 && obj.year >= 0) {\n d = new Date(d);\n d.setUTCFullYear(d.getUTCFullYear() - 1900);\n }\n return +d;\n}\n\nexport function weeksInWeekYear(weekYear) {\n const p1 =\n (weekYear +\n Math.floor(weekYear / 4) -\n Math.floor(weekYear / 100) +\n Math.floor(weekYear / 400)) %\n 7,\n last = weekYear - 1,\n p2 = (last + Math.floor(last / 4) - Math.floor(last / 100) + Math.floor(last / 400)) % 7;\n return p1 === 4 || p2 === 3 ? 53 : 52;\n}\n\nexport function untruncateYear(year) {\n if (year > 99) {\n return year;\n } else return year > 60 ? 1900 + year : 2000 + year;\n}\n\n// PARSING\n\nexport function parseZoneInfo(ts, offsetFormat, locale, timeZone = null) {\n const date = new Date(ts),\n intlOpts = {\n hour12: false,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\"\n };\n\n if (timeZone) {\n intlOpts.timeZone = timeZone;\n }\n\n const modified = Object.assign({ timeZoneName: offsetFormat }, intlOpts),\n intl = hasIntl();\n\n if (intl && hasFormatToParts()) {\n const parsed = new Intl.DateTimeFormat(locale, modified)\n .formatToParts(date)\n .find(m => m.type.toLowerCase() === \"timezonename\");\n return parsed ? parsed.value : null;\n } else if (intl) {\n // this probably doesn't work for all locales\n const without = new Intl.DateTimeFormat(locale, intlOpts).format(date),\n included = new Intl.DateTimeFormat(locale, modified).format(date),\n diffed = included.substring(without.length),\n trimmed = diffed.replace(/^[, \\u200e]+/, \"\");\n return trimmed;\n } else {\n return null;\n }\n}\n\n// signedOffset('-5', '30') -> -330\nexport function signedOffset(offHourStr, offMinuteStr) {\n let offHour = parseInt(offHourStr, 10);\n\n // don't || this because we want to preserve -0\n if (Number.isNaN(offHour)) {\n offHour = 0;\n }\n\n const offMin = parseInt(offMinuteStr, 10) || 0,\n offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;\n return offHour * 60 + offMinSigned;\n}\n\n// COERCION\n\nexport function asNumber(value) {\n const numericValue = Number(value);\n if (typeof value === \"boolean\" || value === \"\" || Number.isNaN(numericValue))\n throw new InvalidArgumentError(`Invalid unit value ${value}`);\n return numericValue;\n}\n\nexport function normalizeObject(obj, normalizer, nonUnitKeys) {\n const normalized = {};\n for (const u in obj) {\n if (hasOwnProperty(obj, u)) {\n if (nonUnitKeys.indexOf(u) >= 0) continue;\n const v = obj[u];\n if (v === undefined || v === null) continue;\n normalized[normalizer(u)] = asNumber(v);\n }\n }\n return normalized;\n}\n\nexport function formatOffset(offset, format) {\n const hours = Math.trunc(offset / 60),\n minutes = Math.abs(offset % 60),\n sign = hours >= 0 && !Object.is(hours, -0) ? \"+\" : \"-\",\n base = `${sign}${Math.abs(hours)}`;\n\n switch (format) {\n case \"short\":\n return `${sign}${padStart(Math.abs(hours), 2)}:${padStart(minutes, 2)}`;\n case \"narrow\":\n return minutes > 0 ? `${base}:${minutes}` : base;\n case \"techie\":\n return `${sign}${padStart(Math.abs(hours), 2)}${padStart(minutes, 2)}`;\n default:\n throw new RangeError(`Value format ${format} is out of range for property format`);\n }\n}\n\nexport function timeObject(obj) {\n return pick(obj, [\"hour\", \"minute\", \"second\", \"millisecond\"]);\n}\n\nexport const ianaRegex = /[A-Za-z_+-]{1,256}(:?\\/[A-Za-z_+-]{1,256}(\\/[A-Za-z_+-]{1,256})?)?/;\n","import * as Formats from \"./formats.js\";\nimport { pick } from \"./util.js\";\n\nfunction stringify(obj) {\n return JSON.stringify(obj, Object.keys(obj).sort());\n}\n\n/**\n * @private\n */\n\nexport const monthsLong = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\"\n];\n\nexport const monthsShort = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\"\n];\n\nexport const monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\n\nexport function months(length) {\n switch (length) {\n case \"narrow\":\n return monthsNarrow;\n case \"short\":\n return monthsShort;\n case \"long\":\n return monthsLong;\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\"];\n case \"2-digit\":\n return [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\"];\n default:\n return null;\n }\n}\n\nexport const weekdaysLong = [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n \"Sunday\"\n];\n\nexport const weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\nexport const weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\n\nexport function weekdays(length) {\n switch (length) {\n case \"narrow\":\n return weekdaysNarrow;\n case \"short\":\n return weekdaysShort;\n case \"long\":\n return weekdaysLong;\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"];\n default:\n return null;\n }\n}\n\nexport const meridiems = [\"AM\", \"PM\"];\n\nexport const erasLong = [\"Before Christ\", \"Anno Domini\"];\n\nexport const erasShort = [\"BC\", \"AD\"];\n\nexport const erasNarrow = [\"B\", \"A\"];\n\nexport function eras(length) {\n switch (length) {\n case \"narrow\":\n return erasNarrow;\n case \"short\":\n return erasShort;\n case \"long\":\n return erasLong;\n default:\n return null;\n }\n}\n\nexport function meridiemForDateTime(dt) {\n return meridiems[dt.hour < 12 ? 0 : 1];\n}\n\nexport function weekdayForDateTime(dt, length) {\n return weekdays(length)[dt.weekday - 1];\n}\n\nexport function monthForDateTime(dt, length) {\n return months(length)[dt.month - 1];\n}\n\nexport function eraForDateTime(dt, length) {\n return eras(length)[dt.year < 0 ? 0 : 1];\n}\n\nexport function formatRelativeTime(unit, count, numeric = \"always\", narrow = false) {\n const units = {\n years: [\"year\", \"yr.\"],\n quarters: [\"quarter\", \"qtr.\"],\n months: [\"month\", \"mo.\"],\n weeks: [\"week\", \"wk.\"],\n days: [\"day\", \"day\", \"days\"],\n hours: [\"hour\", \"hr.\"],\n minutes: [\"minute\", \"min.\"],\n seconds: [\"second\", \"sec.\"]\n };\n\n const lastable = [\"hours\", \"minutes\", \"seconds\"].indexOf(unit) === -1;\n\n if (numeric === \"auto\" && lastable) {\n const isDay = unit === \"days\";\n switch (count) {\n case 1:\n return isDay ? \"tomorrow\" : `next ${units[unit][0]}`;\n case -1:\n return isDay ? \"yesterday\" : `last ${units[unit][0]}`;\n case 0:\n return isDay ? \"today\" : `this ${units[unit][0]}`;\n default: // fall through\n }\n }\n\n const isInPast = Object.is(count, -0) || count < 0,\n fmtValue = Math.abs(count),\n singular = fmtValue === 1,\n lilUnits = units[unit],\n fmtUnit = narrow\n ? singular\n ? lilUnits[1]\n : lilUnits[2] || lilUnits[1]\n : singular\n ? units[unit][0]\n : unit;\n return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`;\n}\n\nexport function formatString(knownFormat) {\n // these all have the offsets removed because we don't have access to them\n // without all the intl stuff this is backfilling\n const filtered = pick(knownFormat, [\n \"weekday\",\n \"era\",\n \"year\",\n \"month\",\n \"day\",\n \"hour\",\n \"minute\",\n \"second\",\n \"timeZoneName\",\n \"hour12\"\n ]),\n key = stringify(filtered),\n dateTimeHuge = \"EEEE, LLLL d, yyyy, h:mm a\";\n switch (key) {\n case stringify(Formats.DATE_SHORT):\n return \"M/d/yyyy\";\n case stringify(Formats.DATE_MED):\n return \"LLL d, yyyy\";\n case stringify(Formats.DATE_FULL):\n return \"LLLL d, yyyy\";\n case stringify(Formats.DATE_HUGE):\n return \"EEEE, LLLL d, yyyy\";\n case stringify(Formats.TIME_SIMPLE):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_SECONDS):\n return \"h:mm:ss a\";\n case stringify(Formats.TIME_WITH_SHORT_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_LONG_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_24_SIMPLE):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_SECONDS):\n return \"HH:mm:ss\";\n case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_LONG_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.DATETIME_SHORT):\n return \"M/d/yyyy, h:mm a\";\n case stringify(Formats.DATETIME_MED):\n return \"LLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL):\n return \"LLLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_HUGE):\n return dateTimeHuge;\n case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):\n return \"M/d/yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_SECONDS):\n return \"LLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):\n return \"EEE, d LLL yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL_WITH_SECONDS):\n return \"LLLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):\n return \"EEEE, LLLL d, yyyy, h:mm:ss a\";\n default:\n return dateTimeHuge;\n }\n}\n","import * as English from \"./english.js\";\nimport * as Formats from \"./formats.js\";\nimport { hasFormatToParts, padStart } from \"./util.js\";\n\nfunction stringifyTokens(splits, tokenToString) {\n let s = \"\";\n for (const token of splits) {\n if (token.literal) {\n s += token.val;\n } else {\n s += tokenToString(token.val);\n }\n }\n return s;\n}\n\nconst macroTokenToFormatOpts = {\n D: Formats.DATE_SHORT,\n DD: Formats.DATE_MED,\n DDD: Formats.DATE_FULL,\n DDDD: Formats.DATE_HUGE,\n t: Formats.TIME_SIMPLE,\n tt: Formats.TIME_WITH_SECONDS,\n ttt: Formats.TIME_WITH_SHORT_OFFSET,\n tttt: Formats.TIME_WITH_LONG_OFFSET,\n T: Formats.TIME_24_SIMPLE,\n TT: Formats.TIME_24_WITH_SECONDS,\n TTT: Formats.TIME_24_WITH_SHORT_OFFSET,\n TTTT: Formats.TIME_24_WITH_LONG_OFFSET,\n f: Formats.DATETIME_SHORT,\n ff: Formats.DATETIME_MED,\n fff: Formats.DATETIME_FULL,\n ffff: Formats.DATETIME_HUGE,\n F: Formats.DATETIME_SHORT_WITH_SECONDS,\n FF: Formats.DATETIME_MED_WITH_SECONDS,\n FFF: Formats.DATETIME_FULL_WITH_SECONDS,\n FFFF: Formats.DATETIME_HUGE_WITH_SECONDS\n};\n\n/**\n * @private\n */\n\nexport default class Formatter {\n static create(locale, opts = {}) {\n return new Formatter(locale, opts);\n }\n\n static parseFormat(fmt) {\n let current = null,\n currentFull = \"\",\n bracketed = false;\n const splits = [];\n for (let i = 0; i < fmt.length; i++) {\n const c = fmt.charAt(i);\n if (c === \"'\") {\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed, val: currentFull });\n }\n current = null;\n currentFull = \"\";\n bracketed = !bracketed;\n } else if (bracketed) {\n currentFull += c;\n } else if (c === current) {\n currentFull += c;\n } else {\n if (currentFull.length > 0) {\n splits.push({ literal: false, val: currentFull });\n }\n currentFull = c;\n current = c;\n }\n }\n\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed, val: currentFull });\n }\n\n return splits;\n }\n\n static macroTokenToFormatOpts(token) {\n return macroTokenToFormatOpts[token];\n }\n\n constructor(locale, formatOpts) {\n this.opts = formatOpts;\n this.loc = locale;\n this.systemLoc = null;\n }\n\n formatWithSystemDefault(dt, opts) {\n if (this.systemLoc === null) {\n this.systemLoc = this.loc.redefaultToSystem();\n }\n const df = this.systemLoc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.format();\n }\n\n formatDateTime(dt, opts = {}) {\n const df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.format();\n }\n\n formatDateTimeParts(dt, opts = {}) {\n const df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.formatToParts();\n }\n\n resolvedOptions(dt, opts = {}) {\n const df = this.loc.dtFormatter(dt, Object.assign({}, this.opts, opts));\n return df.resolvedOptions();\n }\n\n num(n, p = 0) {\n // we get some perf out of doing this here, annoyingly\n if (this.opts.forceSimple) {\n return padStart(n, p);\n }\n\n const opts = Object.assign({}, this.opts);\n\n if (p > 0) {\n opts.padTo = p;\n }\n\n return this.loc.numberFormatter(opts).format(n);\n }\n\n formatDateTimeFromString(dt, fmt) {\n const knownEnglish = this.loc.listingMode() === \"en\",\n useDateTimeFormatter =\n this.loc.outputCalendar && this.loc.outputCalendar !== \"gregory\" && hasFormatToParts(),\n string = (opts, extract) => this.loc.extract(dt, opts, extract),\n formatOffset = opts => {\n if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {\n return \"Z\";\n }\n\n return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : \"\";\n },\n meridiem = () =>\n knownEnglish\n ? English.meridiemForDateTime(dt)\n : string({ hour: \"numeric\", hour12: true }, \"dayperiod\"),\n month = (length, standalone) =>\n knownEnglish\n ? English.monthForDateTime(dt, length)\n : string(standalone ? { month: length } : { month: length, day: \"numeric\" }, \"month\"),\n weekday = (length, standalone) =>\n knownEnglish\n ? English.weekdayForDateTime(dt, length)\n : string(\n standalone ? { weekday: length } : { weekday: length, month: \"long\", day: \"numeric\" },\n \"weekday\"\n ),\n maybeMacro = token => {\n const formatOpts = Formatter.macroTokenToFormatOpts(token);\n if (formatOpts) {\n return this.formatWithSystemDefault(dt, formatOpts);\n } else {\n return token;\n }\n },\n era = length =>\n knownEnglish ? English.eraForDateTime(dt, length) : string({ era: length }, \"era\"),\n tokenToString = token => {\n // Where possible: http://cldr.unicode.org/translation/date-time#TOC-Stand-Alone-vs.-Format-Styles\n switch (token) {\n // ms\n case \"S\":\n return this.num(dt.millisecond);\n case \"u\":\n // falls through\n case \"SSS\":\n return this.num(dt.millisecond, 3);\n // seconds\n case \"s\":\n return this.num(dt.second);\n case \"ss\":\n return this.num(dt.second, 2);\n // minutes\n case \"m\":\n return this.num(dt.minute);\n case \"mm\":\n return this.num(dt.minute, 2);\n // hours\n case \"h\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);\n case \"hh\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);\n case \"H\":\n return this.num(dt.hour);\n case \"HH\":\n return this.num(dt.hour, 2);\n // offset\n case \"Z\":\n // like +6\n return formatOffset({ format: \"narrow\", allowZ: this.opts.allowZ });\n case \"ZZ\":\n // like +06:00\n return formatOffset({ format: \"short\", allowZ: this.opts.allowZ });\n case \"ZZZ\":\n // like +0600\n return formatOffset({ format: \"techie\", allowZ: this.opts.allowZ });\n case \"ZZZZ\":\n // like EST\n return dt.zone.offsetName(dt.ts, { format: \"short\", locale: this.loc.locale });\n case \"ZZZZZ\":\n // like Eastern Standard Time\n return dt.zone.offsetName(dt.ts, { format: \"long\", locale: this.loc.locale });\n // zone\n case \"z\":\n // like America/New_York\n return dt.zoneName;\n // meridiems\n case \"a\":\n return meridiem();\n // dates\n case \"d\":\n return useDateTimeFormatter ? string({ day: \"numeric\" }, \"day\") : this.num(dt.day);\n case \"dd\":\n return useDateTimeFormatter ? string({ day: \"2-digit\" }, \"day\") : this.num(dt.day, 2);\n // weekdays - standalone\n case \"c\":\n // like 1\n return this.num(dt.weekday);\n case \"ccc\":\n // like 'Tues'\n return weekday(\"short\", true);\n case \"cccc\":\n // like 'Tuesday'\n return weekday(\"long\", true);\n case \"ccccc\":\n // like 'T'\n return weekday(\"narrow\", true);\n // weekdays - format\n case \"E\":\n // like 1\n return this.num(dt.weekday);\n case \"EEE\":\n // like 'Tues'\n return weekday(\"short\", false);\n case \"EEEE\":\n // like 'Tuesday'\n return weekday(\"long\", false);\n case \"EEEEE\":\n // like 'T'\n return weekday(\"narrow\", false);\n // months - standalone\n case \"L\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\", day: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"LL\":\n // like 01, doesn't seem to work\n return useDateTimeFormatter\n ? string({ month: \"2-digit\", day: \"numeric\" }, \"month\")\n : this.num(dt.month, 2);\n case \"LLL\":\n // like Jan\n return month(\"short\", true);\n case \"LLLL\":\n // like January\n return month(\"long\", true);\n case \"LLLLL\":\n // like J\n return month(\"narrow\", true);\n // months - format\n case \"M\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"MM\":\n // like 01\n return useDateTimeFormatter\n ? string({ month: \"2-digit\" }, \"month\")\n : this.num(dt.month, 2);\n case \"MMM\":\n // like Jan\n return month(\"short\", false);\n case \"MMMM\":\n // like January\n return month(\"long\", false);\n case \"MMMMM\":\n // like J\n return month(\"narrow\", false);\n // years\n case \"y\":\n // like 2014\n return useDateTimeFormatter ? string({ year: \"numeric\" }, \"year\") : this.num(dt.year);\n case \"yy\":\n // like 14\n return useDateTimeFormatter\n ? string({ year: \"2-digit\" }, \"year\")\n : this.num(dt.year.toString().slice(-2), 2);\n case \"yyyy\":\n // like 0012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 4);\n case \"yyyyyy\":\n // like 000012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 6);\n // eras\n case \"G\":\n // like AD\n return era(\"short\");\n case \"GG\":\n // like Anno Domini\n return era(\"long\");\n case \"GGGGG\":\n return era(\"narrow\");\n case \"kk\":\n return this.num(dt.weekYear.toString().slice(-2), 2);\n case \"kkkk\":\n return this.num(dt.weekYear, 4);\n case \"W\":\n return this.num(dt.weekNumber);\n case \"WW\":\n return this.num(dt.weekNumber, 2);\n case \"o\":\n return this.num(dt.ordinal);\n case \"ooo\":\n return this.num(dt.ordinal, 3);\n case \"q\":\n // like 1\n return this.num(dt.quarter);\n case \"qq\":\n // like 01\n return this.num(dt.quarter, 2);\n case \"X\":\n return this.num(Math.floor(dt.ts / 1000));\n case \"x\":\n return this.num(dt.ts);\n default:\n return maybeMacro(token);\n }\n };\n\n return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);\n }\n\n formatDurationFromString(dur, fmt) {\n const tokenToField = token => {\n switch (token[0]) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n default:\n return null;\n }\n },\n tokenToString = lildur => token => {\n const mapped = tokenToField(token);\n if (mapped) {\n return this.num(lildur.get(mapped), token.length);\n } else {\n return token;\n }\n },\n tokens = Formatter.parseFormat(fmt),\n realTokens = tokens.reduce(\n (found, { literal, val }) => (literal ? found : found.concat(val)),\n []\n ),\n collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter(t => t));\n return stringifyTokens(tokens, tokenToString(collapsed));\n }\n}\n","export default class Invalid {\n constructor(reason, explanation) {\n this.reason = reason;\n this.explanation = explanation;\n }\n\n toMessage() {\n if (this.explanation) {\n return `${this.reason}: ${this.explanation}`;\n } else {\n return this.reason;\n }\n }\n}\n","/* eslint no-unused-vars: \"off\" */\nimport { ZoneIsAbstractError } from \"./errors.js\";\n\n/**\n * @interface\n */\nexport default class Zone {\n /**\n * The type of zone\n * @abstract\n * @type {string}\n */\n get type() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The name of this zone.\n * @abstract\n * @type {string}\n */\n get name() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year.\n * @abstract\n * @type {boolean}\n */\n get universal() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, opts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's value as a string\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @abstract\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is valid.\n * @abstract\n * @type {boolean}\n */\n get isValid() {\n throw new ZoneIsAbstractError();\n }\n}\n","import { formatOffset, parseZoneInfo, hasIntl } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet singleton = null;\n\n/**\n * Represents the local zone for this Javascript environment.\n * @implements {Zone}\n */\nexport default class LocalZone extends Zone {\n /**\n * Get a singleton instance of the local zone\n * @return {LocalZone}\n */\n static get instance() {\n if (singleton === null) {\n singleton = new LocalZone();\n }\n return singleton;\n }\n\n /** @override **/\n get type() {\n return \"local\";\n }\n\n /** @override **/\n get name() {\n if (hasIntl()) {\n return new Intl.DateTimeFormat().resolvedOptions().timeZone;\n } else return \"local\";\n }\n\n /** @override **/\n get universal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n return -new Date(ts).getTimezoneOffset();\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"local\";\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\n","import { formatOffset, parseZoneInfo, isUndefined, ianaRegex, objToLocalTS } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nconst matchingRegex = RegExp(`^${ianaRegex.source}$`);\n\nlet dtfCache = {};\nfunction makeDTF(zone) {\n if (!dtfCache[zone]) {\n dtfCache[zone] = new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone: zone,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\"\n });\n }\n return dtfCache[zone];\n}\n\nconst typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n hour: 3,\n minute: 4,\n second: 5\n};\n\nfunction hackyOffset(dtf, date) {\n const formatted = dtf.format(date).replace(/\\u200E/g, \"\"),\n parsed = /(\\d+)\\/(\\d+)\\/(\\d+),? (\\d+):(\\d+):(\\d+)/.exec(formatted),\n [, fMonth, fDay, fYear, fHour, fMinute, fSecond] = parsed;\n return [fYear, fMonth, fDay, fHour, fMinute, fSecond];\n}\n\nfunction partsOffset(dtf, date) {\n const formatted = dtf.formatToParts(date),\n filled = [];\n for (let i = 0; i < formatted.length; i++) {\n const { type, value } = formatted[i],\n pos = typeToPos[type];\n\n if (!isUndefined(pos)) {\n filled[pos] = parseInt(value, 10);\n }\n }\n return filled;\n}\n\nlet ianaZoneCache = {};\n/**\n * A zone identified by an IANA identifier, like America/New_York\n * @implements {Zone}\n */\nexport default class IANAZone extends Zone {\n /**\n * @param {string} name - Zone name\n * @return {IANAZone}\n */\n static create(name) {\n if (!ianaZoneCache[name]) {\n ianaZoneCache[name] = new IANAZone(name);\n }\n return ianaZoneCache[name];\n }\n\n /**\n * Reset local caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCache() {\n ianaZoneCache = {};\n dtfCache = {};\n }\n\n /**\n * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.\n * @param {string} s - The string to check validity on\n * @example IANAZone.isValidSpecifier(\"America/New_York\") //=> true\n * @example IANAZone.isValidSpecifier(\"Fantasia/Castle\") //=> true\n * @example IANAZone.isValidSpecifier(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */\n static isValidSpecifier(s) {\n return !!(s && s.match(matchingRegex));\n }\n\n /**\n * Returns whether the provided string identifies a real zone\n * @param {string} zone - The string to check\n * @example IANAZone.isValidZone(\"America/New_York\") //=> true\n * @example IANAZone.isValidZone(\"Fantasia/Castle\") //=> false\n * @example IANAZone.isValidZone(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */\n static isValidZone(zone) {\n try {\n new Intl.DateTimeFormat(\"en-US\", { timeZone: zone }).format();\n return true;\n } catch (e) {\n return false;\n }\n }\n\n // Etc/GMT+8 -> -480\n /** @ignore */\n static parseGMTOffset(specifier) {\n if (specifier) {\n const match = specifier.match(/^Etc\\/GMT([+-]\\d{1,2})$/i);\n if (match) {\n return -60 * parseInt(match[1]);\n }\n }\n return null;\n }\n\n constructor(name) {\n super();\n /** @private **/\n this.zoneName = name;\n /** @private **/\n this.valid = IANAZone.isValidZone(name);\n }\n\n /** @override **/\n get type() {\n return \"iana\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get universal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale, this.name);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n const date = new Date(ts),\n dtf = makeDTF(this.name),\n [year, month, day, hour, minute, second] = dtf.formatToParts\n ? partsOffset(dtf, date)\n : hackyOffset(dtf, date),\n // work around https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat\n adjustedHour = hour === 24 ? 0 : hour;\n\n const asUTC = objToLocalTS({\n year,\n month,\n day,\n hour: adjustedHour,\n minute,\n second,\n millisecond: 0\n });\n\n let asTS = +date;\n const over = asTS % 1000;\n asTS -= over >= 0 ? over : 1000 + over;\n return (asUTC - asTS) / (60 * 1000);\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"iana\" && otherZone.name === this.name;\n }\n\n /** @override **/\n get isValid() {\n return this.valid;\n }\n}\n","import { formatOffset, signedOffset } from \"../impl/util.js\";\nimport Zone from \"../zone.js\";\n\nlet singleton = null;\n\n/**\n * A zone with a fixed offset (meaning no DST)\n * @implements {Zone}\n */\nexport default class FixedOffsetZone extends Zone {\n /**\n * Get a singleton instance of UTC\n * @return {FixedOffsetZone}\n */\n static get utcInstance() {\n if (singleton === null) {\n singleton = new FixedOffsetZone(0);\n }\n return singleton;\n }\n\n /**\n * Get an instance with a specified offset\n * @param {number} offset - The offset in minutes\n * @return {FixedOffsetZone}\n */\n static instance(offset) {\n return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);\n }\n\n /**\n * Get an instance of FixedOffsetZone from a UTC offset string, like \"UTC+6\"\n * @param {string} s - The offset string to parse\n * @example FixedOffsetZone.parseSpecifier(\"UTC+6\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC+06\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC-6:00\")\n * @return {FixedOffsetZone}\n */\n static parseSpecifier(s) {\n if (s) {\n const r = s.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);\n if (r) {\n return new FixedOffsetZone(signedOffset(r[1], r[2]));\n }\n }\n return null;\n }\n\n constructor(offset) {\n super();\n /** @private **/\n this.fixed = offset;\n }\n\n /** @override **/\n get type() {\n return \"fixed\";\n }\n\n /** @override **/\n get name() {\n return this.fixed === 0 ? \"UTC\" : `UTC${formatOffset(this.fixed, \"narrow\")}`;\n }\n\n /** @override **/\n offsetName() {\n return this.name;\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.fixed, format);\n }\n\n /** @override **/\n get universal() {\n return true;\n }\n\n /** @override **/\n offset() {\n return this.fixed;\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"fixed\" && otherZone.fixed === this.fixed;\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\n","import Zone from \"../zone.js\";\n\n/**\n * A zone that failed to parse. You should never need to instantiate this.\n * @implements {Zone}\n */\nexport default class InvalidZone extends Zone {\n constructor(zoneName) {\n super();\n /** @private */\n this.zoneName = zoneName;\n }\n\n /** @override **/\n get type() {\n return \"invalid\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get universal() {\n return false;\n }\n\n /** @override **/\n offsetName() {\n return null;\n }\n\n /** @override **/\n formatOffset() {\n return \"\";\n }\n\n /** @override **/\n offset() {\n return NaN;\n }\n\n /** @override **/\n equals() {\n return false;\n }\n\n /** @override **/\n get isValid() {\n return false;\n }\n}\n","/**\n * @private\n */\n\nimport Zone from \"../zone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport InvalidZone from \"../zones/invalidZone.js\";\n\nimport { isUndefined, isString, isNumber } from \"./util.js\";\n\nexport function normalizeZone(input, defaultZone) {\n let offset;\n if (isUndefined(input) || input === null) {\n return defaultZone;\n } else if (input instanceof Zone) {\n return input;\n } else if (isString(input)) {\n const lowered = input.toLowerCase();\n if (lowered === \"local\") return defaultZone;\n else if (lowered === \"utc\" || lowered === \"gmt\") return FixedOffsetZone.utcInstance;\n else if ((offset = IANAZone.parseGMTOffset(input)) != null) {\n // handle Etc/GMT-4, which V8 chokes on\n return FixedOffsetZone.instance(offset);\n } else if (IANAZone.isValidSpecifier(lowered)) return IANAZone.create(input);\n else return FixedOffsetZone.parseSpecifier(lowered) || new InvalidZone(input);\n } else if (isNumber(input)) {\n return FixedOffsetZone.instance(input);\n } else if (typeof input === \"object\" && input.offset && typeof input.offset === \"number\") {\n // This is dumb, but the instanceof check above doesn't seem to really work\n // so we're duck checking it\n return input;\n } else {\n return new InvalidZone(input);\n }\n}\n","import LocalZone from \"./zones/localZone.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport Locale from \"./impl/locale.js\";\n\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\n\nlet now = () => Date.now(),\n defaultZone = null, // not setting this directly to LocalZone.instance bc loading order issues\n defaultLocale = null,\n defaultNumberingSystem = null,\n defaultOutputCalendar = null,\n throwOnInvalid = false;\n\n/**\n * Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.\n */\nexport default class Settings {\n /**\n * Get the callback for returning the current timestamp.\n * @type {function}\n */\n static get now() {\n return now;\n }\n\n /**\n * Set the callback for returning the current timestamp.\n * The function should return a number, which will be interpreted as an Epoch millisecond count\n * @type {function}\n * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future\n * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time\n */\n static set now(n) {\n now = n;\n }\n\n /**\n * Get the default time zone to create DateTimes in.\n * @type {string}\n */\n static get defaultZoneName() {\n return Settings.defaultZone.name;\n }\n\n /**\n * Set the default time zone to create DateTimes in. Does not affect existing instances.\n * @type {string}\n */\n static set defaultZoneName(z) {\n if (!z) {\n defaultZone = null;\n } else {\n defaultZone = normalizeZone(z);\n }\n }\n\n /**\n * Get the default time zone object to create DateTimes in. Does not affect existing instances.\n * @type {Zone}\n */\n static get defaultZone() {\n return defaultZone || LocalZone.instance;\n }\n\n /**\n * Get the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultLocale() {\n return defaultLocale;\n }\n\n /**\n * Set the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultLocale(locale) {\n defaultLocale = locale;\n }\n\n /**\n * Get the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultNumberingSystem() {\n return defaultNumberingSystem;\n }\n\n /**\n * Set the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultNumberingSystem(numberingSystem) {\n defaultNumberingSystem = numberingSystem;\n }\n\n /**\n * Get the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultOutputCalendar() {\n return defaultOutputCalendar;\n }\n\n /**\n * Set the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultOutputCalendar(outputCalendar) {\n defaultOutputCalendar = outputCalendar;\n }\n\n /**\n * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static get throwOnInvalid() {\n return throwOnInvalid;\n }\n\n /**\n * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static set throwOnInvalid(t) {\n throwOnInvalid = t;\n }\n\n /**\n * Reset Luxon's global caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCaches() {\n Locale.resetCache();\n IANAZone.resetCache();\n }\n}\n","import { hasFormatToParts, hasIntl, padStart, roundTo, hasRelative } from \"./util.js\";\nimport * as English from \"./english.js\";\nimport Settings from \"../settings.js\";\nimport DateTime from \"../datetime.js\";\nimport Formatter from \"./formatter.js\";\n\nlet intlDTCache = {};\nfunction getCachedDTF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlDTCache[key];\n if (!dtf) {\n dtf = new Intl.DateTimeFormat(locString, opts);\n intlDTCache[key] = dtf;\n }\n return dtf;\n}\n\nlet intlNumCache = {};\nfunction getCachedINF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let inf = intlNumCache[key];\n if (!inf) {\n inf = new Intl.NumberFormat(locString, opts);\n intlNumCache[key] = inf;\n }\n return inf;\n}\n\nlet intlRelCache = {};\nfunction getCachedRTF(locString, opts = {}) {\n const { base, ...cacheKeyOpts } = opts; // exclude `base` from the options\n const key = JSON.stringify([locString, cacheKeyOpts]);\n let inf = intlRelCache[key];\n if (!inf) {\n inf = new Intl.RelativeTimeFormat(locString, opts);\n intlRelCache[key] = inf;\n }\n return inf;\n}\n\nlet sysLocaleCache = null;\nfunction systemLocale() {\n if (sysLocaleCache) {\n return sysLocaleCache;\n } else if (hasIntl()) {\n const computedSys = new Intl.DateTimeFormat().resolvedOptions().locale;\n // node sometimes defaults to \"und\". Override that because that is dumb\n sysLocaleCache = !computedSys || computedSys === \"und\" ? \"en-US\" : computedSys;\n return sysLocaleCache;\n } else {\n sysLocaleCache = \"en-US\";\n return sysLocaleCache;\n }\n}\n\nfunction parseLocaleString(localeStr) {\n // I really want to avoid writing a BCP 47 parser\n // see, e.g. https://github.com/wooorm/bcp-47\n // Instead, we'll do this:\n\n // a) if the string has no -u extensions, just leave it alone\n // b) if it does, use Intl to resolve everything\n // c) if Intl fails, try again without the -u\n\n const uIndex = localeStr.indexOf(\"-u-\");\n if (uIndex === -1) {\n return [localeStr];\n } else {\n let options;\n const smaller = localeStr.substring(0, uIndex);\n try {\n options = getCachedDTF(localeStr).resolvedOptions();\n } catch (e) {\n options = getCachedDTF(smaller).resolvedOptions();\n }\n\n const { numberingSystem, calendar } = options;\n // return the smaller one so that we can append the calendar and numbering overrides to it\n return [smaller, numberingSystem, calendar];\n }\n}\n\nfunction intlConfigString(localeStr, numberingSystem, outputCalendar) {\n if (hasIntl()) {\n if (outputCalendar || numberingSystem) {\n localeStr += \"-u\";\n\n if (outputCalendar) {\n localeStr += `-ca-${outputCalendar}`;\n }\n\n if (numberingSystem) {\n localeStr += `-nu-${numberingSystem}`;\n }\n return localeStr;\n } else {\n return localeStr;\n }\n } else {\n return [];\n }\n}\n\nfunction mapMonths(f) {\n const ms = [];\n for (let i = 1; i <= 12; i++) {\n const dt = DateTime.utc(2016, i, 1);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction mapWeekdays(f) {\n const ms = [];\n for (let i = 1; i <= 7; i++) {\n const dt = DateTime.utc(2016, 11, 13 + i);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction listStuff(loc, length, defaultOK, englishFn, intlFn) {\n const mode = loc.listingMode(defaultOK);\n\n if (mode === \"error\") {\n return null;\n } else if (mode === \"en\") {\n return englishFn(length);\n } else {\n return intlFn(length);\n }\n}\n\nfunction supportsFastNumbers(loc) {\n if (loc.numberingSystem && loc.numberingSystem !== \"latn\") {\n return false;\n } else {\n return (\n loc.numberingSystem === \"latn\" ||\n !loc.locale ||\n loc.locale.startsWith(\"en\") ||\n (hasIntl() && new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === \"latn\")\n );\n }\n}\n\n/**\n * @private\n */\n\nclass PolyNumberFormatter {\n constructor(intl, forceSimple, opts) {\n this.padTo = opts.padTo || 0;\n this.floor = opts.floor || false;\n\n if (!forceSimple && hasIntl()) {\n const intlOpts = { useGrouping: false };\n if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;\n this.inf = getCachedINF(intl, intlOpts);\n }\n }\n\n format(i) {\n if (this.inf) {\n const fixed = this.floor ? Math.floor(i) : i;\n return this.inf.format(fixed);\n } else {\n // to match the browser's numberformatter defaults\n const fixed = this.floor ? Math.floor(i) : roundTo(i, 3);\n return padStart(fixed, this.padTo);\n }\n }\n}\n\n/**\n * @private\n */\n\nclass PolyDateFormatter {\n constructor(dt, intl, opts) {\n this.opts = opts;\n this.hasIntl = hasIntl();\n\n let z;\n if (dt.zone.universal && this.hasIntl) {\n // Chromium doesn't support fixed-offset zones like Etc/GMT+8 in its formatter,\n // See https://bugs.chromium.org/p/chromium/issues/detail?id=364374.\n // So we have to make do. Two cases:\n // 1. The format options tell us to show the zone. We can't do that, so the best\n // we can do is format the date in UTC.\n // 2. The format options don't tell us to show the zone. Then we can adjust them\n // the time and tell the formatter to show it to us in UTC, so that the time is right\n // and the bad zone doesn't show up.\n // We can clean all this up when Chrome fixes this.\n z = \"UTC\";\n if (opts.timeZoneName) {\n this.dt = dt;\n } else {\n this.dt = dt.offset === 0 ? dt : DateTime.fromMillis(dt.ts + dt.offset * 60 * 1000);\n }\n } else if (dt.zone.type === \"local\") {\n this.dt = dt;\n } else {\n this.dt = dt;\n z = dt.zone.name;\n }\n\n if (this.hasIntl) {\n const intlOpts = Object.assign({}, this.opts);\n if (z) {\n intlOpts.timeZone = z;\n }\n this.dtf = getCachedDTF(intl, intlOpts);\n }\n }\n\n format() {\n if (this.hasIntl) {\n return this.dtf.format(this.dt.toJSDate());\n } else {\n const tokenFormat = English.formatString(this.opts),\n loc = Locale.create(\"en-US\");\n return Formatter.create(loc).formatDateTimeFromString(this.dt, tokenFormat);\n }\n }\n\n formatToParts() {\n if (this.hasIntl && hasFormatToParts()) {\n return this.dtf.formatToParts(this.dt.toJSDate());\n } else {\n // This is kind of a cop out. We actually could do this for English. However, we couldn't do it for intl strings\n // and IMO it's too weird to have an uncanny valley like that\n return [];\n }\n }\n\n resolvedOptions() {\n if (this.hasIntl) {\n return this.dtf.resolvedOptions();\n } else {\n return {\n locale: \"en-US\",\n numberingSystem: \"latn\",\n outputCalendar: \"gregory\"\n };\n }\n }\n}\n\n/**\n * @private\n */\nclass PolyRelFormatter {\n constructor(intl, isEnglish, opts) {\n this.opts = Object.assign({ style: \"long\" }, opts);\n if (!isEnglish && hasRelative()) {\n this.rtf = getCachedRTF(intl, opts);\n }\n }\n\n format(count, unit) {\n if (this.rtf) {\n return this.rtf.format(count, unit);\n } else {\n return English.formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== \"long\");\n }\n }\n\n formatToParts(count, unit) {\n if (this.rtf) {\n return this.rtf.formatToParts(count, unit);\n } else {\n return [];\n }\n }\n}\n\n/**\n * @private\n */\n\nexport default class Locale {\n static fromOpts(opts) {\n return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN);\n }\n\n static create(locale, numberingSystem, outputCalendar, defaultToEN = false) {\n const specifiedLocale = locale || Settings.defaultLocale,\n // the system locale is useful for human readable strings but annoying for parsing/formatting known formats\n localeR = specifiedLocale || (defaultToEN ? \"en-US\" : systemLocale()),\n numberingSystemR = numberingSystem || Settings.defaultNumberingSystem,\n outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;\n return new Locale(localeR, numberingSystemR, outputCalendarR, specifiedLocale);\n }\n\n static resetCache() {\n sysLocaleCache = null;\n intlDTCache = {};\n intlNumCache = {};\n intlRelCache = {};\n }\n\n static fromObject({ locale, numberingSystem, outputCalendar } = {}) {\n return Locale.create(locale, numberingSystem, outputCalendar);\n }\n\n constructor(locale, numbering, outputCalendar, specifiedLocale) {\n const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString(locale);\n\n this.locale = parsedLocale;\n this.numberingSystem = numbering || parsedNumberingSystem || null;\n this.outputCalendar = outputCalendar || parsedOutputCalendar || null;\n this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);\n\n this.weekdaysCache = { format: {}, standalone: {} };\n this.monthsCache = { format: {}, standalone: {} };\n this.meridiemCache = null;\n this.eraCache = {};\n\n this.specifiedLocale = specifiedLocale;\n this.fastNumbersCached = null;\n }\n\n get fastNumbers() {\n if (this.fastNumbersCached == null) {\n this.fastNumbersCached = supportsFastNumbers(this);\n }\n\n return this.fastNumbersCached;\n }\n\n listingMode(defaultOK = true) {\n const intl = hasIntl(),\n hasFTP = intl && hasFormatToParts(),\n isActuallyEn = this.isEnglish(),\n hasNoWeirdness =\n (this.numberingSystem === null || this.numberingSystem === \"latn\") &&\n (this.outputCalendar === null || this.outputCalendar === \"gregory\");\n\n if (!hasFTP && !(isActuallyEn && hasNoWeirdness) && !defaultOK) {\n return \"error\";\n } else if (!hasFTP || (isActuallyEn && hasNoWeirdness)) {\n return \"en\";\n } else {\n return \"intl\";\n }\n }\n\n clone(alts) {\n if (!alts || Object.getOwnPropertyNames(alts).length === 0) {\n return this;\n } else {\n return Locale.create(\n alts.locale || this.specifiedLocale,\n alts.numberingSystem || this.numberingSystem,\n alts.outputCalendar || this.outputCalendar,\n alts.defaultToEN || false\n );\n }\n }\n\n redefaultToEN(alts = {}) {\n return this.clone(Object.assign({}, alts, { defaultToEN: true }));\n }\n\n redefaultToSystem(alts = {}) {\n return this.clone(Object.assign({}, alts, { defaultToEN: false }));\n }\n\n months(length, format = false, defaultOK = true) {\n return listStuff(this, length, defaultOK, English.months, () => {\n const intl = format ? { month: length, day: \"numeric\" } : { month: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.monthsCache[formatStr][length]) {\n this.monthsCache[formatStr][length] = mapMonths(dt => this.extract(dt, intl, \"month\"));\n }\n return this.monthsCache[formatStr][length];\n });\n }\n\n weekdays(length, format = false, defaultOK = true) {\n return listStuff(this, length, defaultOK, English.weekdays, () => {\n const intl = format\n ? { weekday: length, year: \"numeric\", month: \"long\", day: \"numeric\" }\n : { weekday: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.weekdaysCache[formatStr][length]) {\n this.weekdaysCache[formatStr][length] = mapWeekdays(dt =>\n this.extract(dt, intl, \"weekday\")\n );\n }\n return this.weekdaysCache[formatStr][length];\n });\n }\n\n meridiems(defaultOK = true) {\n return listStuff(\n this,\n undefined,\n defaultOK,\n () => English.meridiems,\n () => {\n // In theory there could be aribitrary day periods. We're gonna assume there are exactly two\n // for AM and PM. This is probably wrong, but it's makes parsing way easier.\n if (!this.meridiemCache) {\n const intl = { hour: \"numeric\", hour12: true };\n this.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(\n dt => this.extract(dt, intl, \"dayperiod\")\n );\n }\n\n return this.meridiemCache;\n }\n );\n }\n\n eras(length, defaultOK = true) {\n return listStuff(this, length, defaultOK, English.eras, () => {\n const intl = { era: length };\n\n // This is utter bullshit. Different calendars are going to define eras totally differently. What I need is the minimum set of dates\n // to definitely enumerate them.\n if (!this.eraCache[length]) {\n this.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map(dt =>\n this.extract(dt, intl, \"era\")\n );\n }\n\n return this.eraCache[length];\n });\n }\n\n extract(dt, intlOpts, field) {\n const df = this.dtFormatter(dt, intlOpts),\n results = df.formatToParts(),\n matching = results.find(m => m.type.toLowerCase() === field);\n return matching ? matching.value : null;\n }\n\n numberFormatter(opts = {}) {\n // this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)\n // (in contrast, the rest of the condition is used heavily)\n return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);\n }\n\n dtFormatter(dt, intlOpts = {}) {\n return new PolyDateFormatter(dt, this.intl, intlOpts);\n }\n\n relFormatter(opts = {}) {\n return new PolyRelFormatter(this.intl, this.isEnglish(), opts);\n }\n\n isEnglish() {\n return (\n this.locale === \"en\" ||\n this.locale.toLowerCase() === \"en-us\" ||\n (hasIntl() && new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith(\"en-us\"))\n );\n }\n\n equals(other) {\n return (\n this.locale === other.locale &&\n this.numberingSystem === other.numberingSystem &&\n this.outputCalendar === other.outputCalendar\n );\n }\n}\n","import {\n untruncateYear,\n signedOffset,\n parseInteger,\n parseMillis,\n ianaRegex,\n isUndefined\n} from \"./util.js\";\nimport * as English from \"./english.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\n\n/*\n * This file handles parsing for well-specified formats. Here's how it works:\n * Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.\n * An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object\n * parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.\n * Extractors can take a \"cursor\" representing the offset in the match to look at. This makes it easy to combine extractors.\n * combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.\n * Some extractions are super dumb and simpleParse and fromStrings help DRY them.\n */\n\nfunction combineRegexes(...regexes) {\n const full = regexes.reduce((f, r) => f + r.source, \"\");\n return RegExp(`^${full}$`);\n}\n\nfunction combineExtractors(...extractors) {\n return m =>\n extractors\n .reduce(\n ([mergedVals, mergedZone, cursor], ex) => {\n const [val, zone, next] = ex(m, cursor);\n return [Object.assign(mergedVals, val), mergedZone || zone, next];\n },\n [{}, null, 1]\n )\n .slice(0, 2);\n}\n\nfunction parse(s, ...patterns) {\n if (s == null) {\n return [null, null];\n }\n\n for (const [regex, extractor] of patterns) {\n const m = regex.exec(s);\n if (m) {\n return extractor(m);\n }\n }\n return [null, null];\n}\n\nfunction simpleParse(...keys) {\n return (match, cursor) => {\n const ret = {};\n let i;\n\n for (i = 0; i < keys.length; i++) {\n ret[keys[i]] = parseInteger(match[cursor + i]);\n }\n return [ret, null, cursor + i];\n };\n}\n\n// ISO and SQL parsing\nconst offsetRegex = /(?:(Z)|([+-]\\d\\d)(?::?(\\d\\d))?)/,\n isoTimeBaseRegex = /(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,9}))?)?)?/,\n isoTimeRegex = RegExp(`${isoTimeBaseRegex.source}${offsetRegex.source}?`),\n isoTimeExtensionRegex = RegExp(`(?:T${isoTimeRegex.source})?`),\n isoYmdRegex = /([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/,\n isoWeekRegex = /(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/,\n isoOrdinalRegex = /(\\d{4})-?(\\d{3})/,\n extractISOWeekData = simpleParse(\"weekYear\", \"weekNumber\", \"weekDay\"),\n extractISOOrdinalData = simpleParse(\"year\", \"ordinal\"),\n sqlYmdRegex = /(\\d{4})-(\\d\\d)-(\\d\\d)/, // dumbed-down version of the ISO one\n sqlTimeRegex = RegExp(\n `${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`\n ),\n sqlTimeExtensionRegex = RegExp(`(?: ${sqlTimeRegex.source})?`);\n\nfunction int(match, pos, fallback) {\n const m = match[pos];\n return isUndefined(m) ? fallback : parseInteger(m);\n}\n\nfunction extractISOYmd(match, cursor) {\n const item = {\n year: int(match, cursor),\n month: int(match, cursor + 1, 1),\n day: int(match, cursor + 2, 1)\n };\n\n return [item, null, cursor + 3];\n}\n\nfunction extractISOTime(match, cursor) {\n const item = {\n hour: int(match, cursor, 0),\n minute: int(match, cursor + 1, 0),\n second: int(match, cursor + 2, 0),\n millisecond: parseMillis(match[cursor + 3])\n };\n\n return [item, null, cursor + 4];\n}\n\nfunction extractISOOffset(match, cursor) {\n const local = !match[cursor] && !match[cursor + 1],\n fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),\n zone = local ? null : FixedOffsetZone.instance(fullOffset);\n return [{}, zone, cursor + 3];\n}\n\nfunction extractIANAZone(match, cursor) {\n const zone = match[cursor] ? IANAZone.create(match[cursor]) : null;\n return [{}, zone, cursor + 1];\n}\n\n// ISO duration parsing\n\nconst isoDuration = /^-?P(?:(?:(-?\\d{1,9})Y)?(?:(-?\\d{1,9})M)?(?:(-?\\d{1,9})W)?(?:(-?\\d{1,9})D)?(?:T(?:(-?\\d{1,9})H)?(?:(-?\\d{1,9})M)?(?:(-?\\d{1,9})(?:[.,](-?\\d{1,9}))?S)?)?)$/;\n\nfunction extractISODuration(match) {\n const [\n s,\n yearStr,\n monthStr,\n weekStr,\n dayStr,\n hourStr,\n minuteStr,\n secondStr,\n millisecondsStr\n ] = match;\n\n const hasNegativePrefix = s[0] === \"-\";\n\n const maybeNegate = num => (num && hasNegativePrefix ? -num : num);\n\n return [\n {\n years: maybeNegate(parseInteger(yearStr)),\n months: maybeNegate(parseInteger(monthStr)),\n weeks: maybeNegate(parseInteger(weekStr)),\n days: maybeNegate(parseInteger(dayStr)),\n hours: maybeNegate(parseInteger(hourStr)),\n minutes: maybeNegate(parseInteger(minuteStr)),\n seconds: maybeNegate(parseInteger(secondStr)),\n milliseconds: maybeNegate(parseMillis(millisecondsStr))\n }\n ];\n}\n\n// These are a little braindead. EDT *should* tell us that we're in, say, America/New_York\n// and not just that we're in -240 *right now*. But since I don't think these are used that often\n// I'm just going to ignore that\nconst obsOffsets = {\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60\n};\n\nfunction fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n const result = {\n year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),\n month: English.monthsShort.indexOf(monthStr) + 1,\n day: parseInteger(dayStr),\n hour: parseInteger(hourStr),\n minute: parseInteger(minuteStr)\n };\n\n if (secondStr) result.second = parseInteger(secondStr);\n if (weekdayStr) {\n result.weekday =\n weekdayStr.length > 3\n ? English.weekdaysLong.indexOf(weekdayStr) + 1\n : English.weekdaysShort.indexOf(weekdayStr) + 1;\n }\n\n return result;\n}\n\n// RFC 2822/5322\nconst rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\\d\\d)(\\d\\d)))$/;\n\nfunction extractRFC2822(match) {\n const [\n ,\n weekdayStr,\n dayStr,\n monthStr,\n yearStr,\n hourStr,\n minuteStr,\n secondStr,\n obsOffset,\n milOffset,\n offHourStr,\n offMinuteStr\n ] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n\n let offset;\n if (obsOffset) {\n offset = obsOffsets[obsOffset];\n } else if (milOffset) {\n offset = 0;\n } else {\n offset = signedOffset(offHourStr, offMinuteStr);\n }\n\n return [result, new FixedOffsetZone(offset)];\n}\n\nfunction preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^)]*\\)|[\\n\\t]/g, \" \")\n .replace(/(\\s\\s+)/g, \" \")\n .trim();\n}\n\n// http date\n\nconst rfc1123 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n rfc850 = /^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n ascii = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;\n\nfunction extractRFC1123Or850(match) {\n const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nfunction extractASCII(match) {\n const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nconst isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);\nconst isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);\nconst isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);\nconst isoTimeCombinedRegex = combineRegexes(isoTimeRegex);\n\nconst extractISOYmdTimeAndOffset = combineExtractors(\n extractISOYmd,\n extractISOTime,\n extractISOOffset\n);\nconst extractISOWeekTimeAndOffset = combineExtractors(\n extractISOWeekData,\n extractISOTime,\n extractISOOffset\n);\nconst extractISOOrdinalDataAndTime = combineExtractors(extractISOOrdinalData, extractISOTime);\nconst extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset);\n\n/**\n * @private\n */\n\nexport function parseISODate(s) {\n return parse(\n s,\n [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset],\n [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDataAndTime],\n [isoTimeCombinedRegex, extractISOTimeAndOffset]\n );\n}\n\nexport function parseRFC2822Date(s) {\n return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);\n}\n\nexport function parseHTTPDate(s) {\n return parse(\n s,\n [rfc1123, extractRFC1123Or850],\n [rfc850, extractRFC1123Or850],\n [ascii, extractASCII]\n );\n}\n\nexport function parseISODuration(s) {\n return parse(s, [isoDuration, extractISODuration]);\n}\n\nconst sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);\nconst sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);\n\nconst extractISOYmdTimeOffsetAndIANAZone = combineExtractors(\n extractISOYmd,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOTimeOffsetAndIANAZone = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\nexport function parseSQL(s) {\n return parse(\n s,\n [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeOffsetAndIANAZone],\n [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]\n );\n}\n","import { InvalidArgumentError, InvalidDurationError, InvalidUnitError } from \"./errors.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport Invalid from \"./impl/invalid.js\";\nimport Locale from \"./impl/locale.js\";\nimport { parseISODuration } from \"./impl/regexParser.js\";\nimport {\n asNumber,\n hasOwnProperty,\n isNumber,\n isUndefined,\n normalizeObject,\n roundTo\n} from \"./impl/util.js\";\nimport Settings from \"./settings.js\";\n\nconst INVALID = \"Invalid Duration\";\n\n// unit conversion constants\nconst lowOrderMatrix = {\n weeks: {\n days: 7,\n hours: 7 * 24,\n minutes: 7 * 24 * 60,\n seconds: 7 * 24 * 60 * 60,\n milliseconds: 7 * 24 * 60 * 60 * 1000\n },\n days: {\n hours: 24,\n minutes: 24 * 60,\n seconds: 24 * 60 * 60,\n milliseconds: 24 * 60 * 60 * 1000\n },\n hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1000 },\n minutes: { seconds: 60, milliseconds: 60 * 1000 },\n seconds: { milliseconds: 1000 }\n },\n casualMatrix = Object.assign(\n {\n years: {\n months: 12,\n weeks: 52,\n days: 365,\n hours: 365 * 24,\n minutes: 365 * 24 * 60,\n seconds: 365 * 24 * 60 * 60,\n milliseconds: 365 * 24 * 60 * 60 * 1000\n },\n quarters: {\n months: 3,\n weeks: 13,\n days: 91,\n hours: 91 * 24,\n minutes: 91 * 24 * 60,\n milliseconds: 91 * 24 * 60 * 60 * 1000\n },\n months: {\n weeks: 4,\n days: 30,\n hours: 30 * 24,\n minutes: 30 * 24 * 60,\n seconds: 30 * 24 * 60 * 60,\n milliseconds: 30 * 24 * 60 * 60 * 1000\n }\n },\n lowOrderMatrix\n ),\n daysInYearAccurate = 146097.0 / 400,\n daysInMonthAccurate = 146097.0 / 4800,\n accurateMatrix = Object.assign(\n {\n years: {\n months: 12,\n weeks: daysInYearAccurate / 7,\n days: daysInYearAccurate,\n hours: daysInYearAccurate * 24,\n minutes: daysInYearAccurate * 24 * 60,\n seconds: daysInYearAccurate * 24 * 60 * 60,\n milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000\n },\n quarters: {\n months: 3,\n weeks: daysInYearAccurate / 28,\n days: daysInYearAccurate / 4,\n hours: (daysInYearAccurate * 24) / 4,\n minutes: (daysInYearAccurate * 24 * 60) / 4,\n seconds: (daysInYearAccurate * 24 * 60 * 60) / 4,\n milliseconds: (daysInYearAccurate * 24 * 60 * 60 * 1000) / 4\n },\n months: {\n weeks: daysInMonthAccurate / 7,\n days: daysInMonthAccurate,\n hours: daysInMonthAccurate * 24,\n minutes: daysInMonthAccurate * 24 * 60,\n seconds: daysInMonthAccurate * 24 * 60 * 60,\n milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000\n }\n },\n lowOrderMatrix\n );\n\n// units ordered by size\nconst orderedUnits = [\n \"years\",\n \"quarters\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\"\n];\n\nconst reverseUnits = orderedUnits.slice(0).reverse();\n\n// clone really means \"create another instance just like this one, but with these changes\"\nfunction clone(dur, alts, clear = false) {\n // deep merge for vals\n const conf = {\n values: clear ? alts.values : Object.assign({}, dur.values, alts.values || {}),\n loc: dur.loc.clone(alts.loc),\n conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy\n };\n return new Duration(conf);\n}\n\nfunction antiTrunc(n) {\n return n < 0 ? Math.floor(n) : Math.ceil(n);\n}\n\n// NB: mutates parameters\nfunction convert(matrix, fromMap, fromUnit, toMap, toUnit) {\n const conv = matrix[toUnit][fromUnit],\n raw = fromMap[fromUnit] / conv,\n sameSign = Math.sign(raw) === Math.sign(toMap[toUnit]),\n // ok, so this is wild, but see the matrix in the tests\n added =\n !sameSign && toMap[toUnit] !== 0 && Math.abs(raw) <= 1 ? antiTrunc(raw) : Math.trunc(raw);\n toMap[toUnit] += added;\n fromMap[fromUnit] -= added * conv;\n}\n\n// NB: mutates parameters\nfunction normalizeValues(matrix, vals) {\n reverseUnits.reduce((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n convert(matrix, vals, previous, vals, current);\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n}\n\n/**\n * A Duration object represents a period of time, like \"2 months\" or \"1 day, 1 hour\". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime.plus} to add a Duration object to a DateTime, producing another DateTime.\n *\n * Here is a brief overview of commonly used methods and getters in Duration:\n *\n * * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.\n * * **Unit values** See the {@link Duration.years}, {@link Duration.months}, {@link Duration.weeks}, {@link Duration.days}, {@link Duration.hours}, {@link Duration.minutes}, {@link Duration.seconds}, {@link Duration.milliseconds} accessors.\n * * **Configuration** See {@link Duration.locale} and {@link Duration.numberingSystem} accessors.\n * * **Transformation** To create new Durations out of old ones use {@link Duration.plus}, {@link Duration.minus}, {@link Duration.normalize}, {@link Duration.set}, {@link Duration.reconfigure}, {@link Duration.shiftTo}, and {@link Duration.negate}.\n * * **Output** To convert the Duration into other representations, see {@link Duration.as}, {@link Duration.toISO}, {@link Duration.toFormat}, and {@link Duration.toJSON}\n *\n * There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.\n */\nexport default class Duration {\n /**\n * @private\n */\n constructor(config) {\n const accurate = config.conversionAccuracy === \"longterm\" || false;\n /**\n * @access private\n */\n this.values = config.values;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.conversionAccuracy = accurate ? \"longterm\" : \"casual\";\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.matrix = accurate ? accurateMatrix : casualMatrix;\n /**\n * @access private\n */\n this.isLuxonDuration = true;\n }\n\n /**\n * Create Duration from a number of milliseconds.\n * @param {number} count of milliseconds\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n static fromMillis(count, opts) {\n return Duration.fromObject(Object.assign({ milliseconds: count }, opts));\n }\n\n /**\n * Create a Duration from a Javascript object with keys like 'years' and 'hours.\n * If this object is empty then a zero milliseconds duration is returned.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.years\n * @param {number} obj.quarters\n * @param {number} obj.months\n * @param {number} obj.weeks\n * @param {number} obj.days\n * @param {number} obj.hours\n * @param {number} obj.minutes\n * @param {number} obj.seconds\n * @param {number} obj.milliseconds\n * @param {string} [obj.locale='en-US'] - the locale to use\n * @param {string} obj.numberingSystem - the numbering system to use\n * @param {string} [obj.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n static fromObject(obj) {\n if (obj == null || typeof obj !== \"object\") {\n throw new InvalidArgumentError(\n `Duration.fromObject: argument expected to be an object, got ${\n obj === null ? \"null\" : typeof obj\n }`\n );\n }\n return new Duration({\n values: normalizeObject(obj, Duration.normalizeUnit, [\n \"locale\",\n \"numberingSystem\",\n \"conversionAccuracy\",\n \"zone\" // a bit of debt; it's super inconvenient internally not to be able to blindly pass this\n ]),\n loc: Locale.fromObject(obj),\n conversionAccuracy: obj.conversionAccuracy\n });\n }\n\n /**\n * Create a Duration from an ISO 8601 duration string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }\n * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }\n * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }\n * @return {Duration}\n */\n static fromISO(text, opts) {\n const [parsed] = parseISODuration(text);\n if (parsed) {\n const obj = Object.assign(parsed, opts);\n return Duration.fromObject(obj);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create an invalid Duration.\n * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Duration}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Duration is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDurationError(invalid);\n } else {\n return new Duration({ invalid });\n }\n }\n\n /**\n * @private\n */\n static normalizeUnit(unit) {\n const normalized = {\n year: \"years\",\n years: \"years\",\n quarter: \"quarters\",\n quarters: \"quarters\",\n month: \"months\",\n months: \"months\",\n week: \"weeks\",\n weeks: \"weeks\",\n day: \"days\",\n days: \"days\",\n hour: \"hours\",\n hours: \"hours\",\n minute: \"minutes\",\n minutes: \"minutes\",\n second: \"seconds\",\n seconds: \"seconds\",\n millisecond: \"milliseconds\",\n milliseconds: \"milliseconds\"\n }[unit ? unit.toLowerCase() : unit];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n }\n\n /**\n * Check if an object is a Duration. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDuration(o) {\n return (o && o.isLuxonDuration) || false;\n }\n\n /**\n * Get the locale of a Duration, such 'en-GB'\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:\n * * `S` for milliseconds\n * * `s` for seconds\n * * `m` for minutes\n * * `h` for hours\n * * `d` for days\n * * `M` for months\n * * `y` for years\n * Notes:\n * * Add padding by repeating the token, e.g. \"yy\" pads the years to two digits, \"hhhh\" pads the hours out to four digits\n * * The duration will be converted to the set of units in the format string using {@link Duration.shiftTo} and the Durations's conversion accuracy setting.\n * @param {string} fmt - the format string\n * @param {Object} opts - options\n * @param {boolean} [opts.floor=true] - floor numerical values\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"y d s\") //=> \"1 6 2\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"yy dd sss\") //=> \"01 06 002\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"M S\") //=> \"12 518402000\"\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n // reverse-compat since 1.2; we always round down now, never up, and we do it by default\n const fmtOpts = Object.assign({}, opts, {\n floor: opts.round !== false && opts.floor !== false\n });\n return this.isValid\n ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a Javascript object with this Duration's values.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }\n * @return {Object}\n */\n toObject(opts = {}) {\n if (!this.isValid) return {};\n\n const base = Object.assign({}, this.values);\n\n if (opts.includeConfig) {\n base.conversionAccuracy = this.conversionAccuracy;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'\n * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'\n * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'\n * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'\n * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'\n * @return {string}\n */\n toISO() {\n // we could use the formatter, but this is an easier way to get the minimum string\n if (!this.isValid) return null;\n\n let s = \"P\";\n if (this.years !== 0) s += this.years + \"Y\";\n if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + \"M\";\n if (this.weeks !== 0) s += this.weeks + \"W\";\n if (this.days !== 0) s += this.days + \"D\";\n if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0)\n s += \"T\";\n if (this.hours !== 0) s += this.hours + \"H\";\n if (this.minutes !== 0) s += this.minutes + \"M\";\n if (this.seconds !== 0 || this.milliseconds !== 0)\n // this will handle \"floating point madness\" by removing extra decimal places\n // https://stackoverflow.com/questions/588004/is-floating-point-math-broken\n s += roundTo(this.seconds + this.milliseconds / 1000, 3) + \"S\";\n if (s === \"P\") s += \"T0S\";\n return s;\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in debugging.\n * @return {string}\n */\n toString() {\n return this.toISO();\n }\n\n /**\n * Returns an milliseconds value of this Duration.\n * @return {number}\n */\n valueOf() {\n return this.as(\"milliseconds\");\n }\n\n /**\n * Make this Duration longer by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n plus(duration) {\n if (!this.isValid) return this;\n\n const dur = friendlyDuration(duration),\n result = {};\n\n for (const k of orderedUnits) {\n if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {\n result[k] = dur.get(k) + this.get(k);\n }\n }\n\n return clone(this, { values: result }, true);\n }\n\n /**\n * Make this Duration shorter by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n minus(duration) {\n if (!this.isValid) return this;\n\n const dur = friendlyDuration(duration);\n return this.plus(dur.negate());\n }\n\n /**\n * Scale this Duration by the specified amount. Return a newly-constructed Duration.\n * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnit(x => x * 2) //=> { hours: 2, minutes: 60 }\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnit((x, u) => u === \"hour\" ? x * 2 : x) //=> { hours: 2, minutes: 30 }\n * @return {Duration}\n */\n mapUnits(fn) {\n if (!this.isValid) return this;\n const result = {};\n for (const k of Object.keys(this.values)) {\n result[k] = asNumber(fn(this.values[k], k));\n }\n return clone(this, { values: result }, true);\n }\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example Duration.fromObject({years: 2, days: 3}).years //=> 2\n * @example Duration.fromObject({years: 2, days: 3}).months //=> 0\n * @example Duration.fromObject({years: 2, days: 3}).days //=> 3\n * @return {number}\n */\n get(unit) {\n return this[Duration.normalizeUnit(unit)];\n }\n\n /**\n * \"Set\" the values of specified units. Return a newly-constructed Duration.\n * @param {Object} values - a mapping of units to numbers\n * @example dur.set({ years: 2017 })\n * @example dur.set({ hours: 8, minutes: 30 })\n * @return {Duration}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const mixed = Object.assign(this.values, normalizeObject(values, Duration.normalizeUnit, []));\n return clone(this, { values: mixed });\n }\n\n /**\n * \"Set\" the locale and/or numberingSystem. Returns a newly-constructed Duration.\n * @example dur.reconfigure({ locale: 'en-GB' })\n * @return {Duration}\n */\n reconfigure({ locale, numberingSystem, conversionAccuracy } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem }),\n opts = { loc };\n\n if (conversionAccuracy) {\n opts.conversionAccuracy = conversionAccuracy;\n }\n\n return clone(this, opts);\n }\n\n /**\n * Return the length of the duration in the specified unit.\n * @param {string} unit - a unit such as 'minutes' or 'days'\n * @example Duration.fromObject({years: 1}).as('days') //=> 365\n * @example Duration.fromObject({years: 1}).as('months') //=> 12\n * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5\n * @return {number}\n */\n as(unit) {\n return this.isValid ? this.shiftTo(unit).get(unit) : NaN;\n }\n\n /**\n * Reduce this Duration to its canonical representation in its current units.\n * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }\n * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }\n * @return {Duration}\n */\n normalize() {\n if (!this.isValid) return this;\n const vals = this.toObject();\n normalizeValues(this.matrix, vals);\n return clone(this, { values: vals }, true);\n }\n\n /**\n * Convert this Duration into its representation in a different set of units.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }\n * @return {Duration}\n */\n shiftTo(...units) {\n if (!this.isValid) return this;\n\n if (units.length === 0) {\n return this;\n }\n\n units = units.map(u => Duration.normalizeUnit(u));\n\n const built = {},\n accumulated = {},\n vals = this.toObject();\n let lastUnit;\n\n normalizeValues(this.matrix, vals);\n\n for (const k of orderedUnits) {\n if (units.indexOf(k) >= 0) {\n lastUnit = k;\n\n let own = 0;\n\n // anything we haven't boiled down yet should get boiled to this unit\n for (const ak in accumulated) {\n own += this.matrix[ak][k] * accumulated[ak];\n accumulated[ak] = 0;\n }\n\n // plus anything that's already in this unit\n if (isNumber(vals[k])) {\n own += vals[k];\n }\n\n const i = Math.trunc(own);\n built[k] = i;\n accumulated[k] = own - i; // we'd like to absorb these fractions in another unit\n\n // plus anything further down the chain that should be rolled up in to this\n for (const down in vals) {\n if (orderedUnits.indexOf(down) > orderedUnits.indexOf(k)) {\n convert(this.matrix, vals, down, built, k);\n }\n }\n // otherwise, keep it in the wings to boil it later\n } else if (isNumber(vals[k])) {\n accumulated[k] = vals[k];\n }\n }\n\n // anything leftover becomes the decimal for the last unit\n // lastUnit must be defined since units is not empty\n for (const key in accumulated) {\n if (accumulated[key] !== 0) {\n built[lastUnit] +=\n key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];\n }\n }\n\n return clone(this, { values: built }, true).normalize();\n }\n\n /**\n * Return the negative of this Duration.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }\n * @return {Duration}\n */\n negate() {\n if (!this.isValid) return this;\n const negated = {};\n for (const k of Object.keys(this.values)) {\n negated[k] = -this.values[k];\n }\n return clone(this, { values: negated }, true);\n }\n\n /**\n * Get the years.\n * @type {number}\n */\n get years() {\n return this.isValid ? this.values.years || 0 : NaN;\n }\n\n /**\n * Get the quarters.\n * @type {number}\n */\n get quarters() {\n return this.isValid ? this.values.quarters || 0 : NaN;\n }\n\n /**\n * Get the months.\n * @type {number}\n */\n get months() {\n return this.isValid ? this.values.months || 0 : NaN;\n }\n\n /**\n * Get the weeks\n * @type {number}\n */\n get weeks() {\n return this.isValid ? this.values.weeks || 0 : NaN;\n }\n\n /**\n * Get the days.\n * @type {number}\n */\n get days() {\n return this.isValid ? this.values.days || 0 : NaN;\n }\n\n /**\n * Get the hours.\n * @type {number}\n */\n get hours() {\n return this.isValid ? this.values.hours || 0 : NaN;\n }\n\n /**\n * Get the minutes.\n * @type {number}\n */\n get minutes() {\n return this.isValid ? this.values.minutes || 0 : NaN;\n }\n\n /**\n * Get the seconds.\n * @return {number}\n */\n get seconds() {\n return this.isValid ? this.values.seconds || 0 : NaN;\n }\n\n /**\n * Get the milliseconds.\n * @return {number}\n */\n get milliseconds() {\n return this.isValid ? this.values.milliseconds || 0 : NaN;\n }\n\n /**\n * Returns whether the Duration is invalid. Invalid durations are returned by diff operations\n * on invalid DateTimes or Intervals.\n * @return {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this Duration became invalid, or null if the Duration is valid\n * @return {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Duration became invalid, or null if the Duration is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Equality check\n * Two Durations are equal iff they have the same units and the same values for each unit.\n * @param {Duration} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n if (!this.loc.equals(other.loc)) {\n return false;\n }\n\n for (const u of orderedUnits) {\n if (this.values[u] !== other.values[u]) {\n return false;\n }\n }\n return true;\n }\n}\n\n/**\n * @private\n */\nexport function friendlyDuration(durationish) {\n if (isNumber(durationish)) {\n return Duration.fromMillis(durationish);\n } else if (Duration.isDuration(durationish)) {\n return durationish;\n } else if (typeof durationish === \"object\") {\n return Duration.fromObject(durationish);\n } else {\n throw new InvalidArgumentError(\n `Unknown duration argument ${durationish} of type ${typeof durationish}`\n );\n }\n}\n","import DateTime, { friendlyDateTime } from \"./datetime.js\";\nimport Duration, { friendlyDuration } from \"./duration.js\";\nimport Settings from \"./settings.js\";\nimport { InvalidArgumentError, InvalidIntervalError } from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\n\nconst INVALID = \"Invalid Interval\";\n\n// checks if the start is equal to or before the end\nfunction validateStartEnd(start, end) {\n if (!start || !start.isValid) {\n return Interval.invalid(\"missing or invalid start\");\n } else if (!end || !end.isValid) {\n return Interval.invalid(\"missing or invalid end\");\n } else if (end < start) {\n return Interval.invalid(\n \"end before start\",\n `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`\n );\n } else {\n return null;\n }\n}\n\n/**\n * An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.\n *\n * Here is a brief overview of the most commonly used methods and getters in Interval:\n *\n * * **Creation** To create an Interval, use {@link fromDateTimes}, {@link after}, {@link before}, or {@link fromISO}.\n * * **Accessors** Use {@link start} and {@link end} to get the start and end.\n * * **Interrogation** To analyze the Interval, use {@link count}, {@link length}, {@link hasSame}, {@link contains}, {@link isAfter}, or {@link isBefore}.\n * * **Transformation** To create other Intervals out of this one, use {@link set}, {@link splitAt}, {@link splitBy}, {@link divideEqually}, {@link merge}, {@link xor}, {@link union}, {@link intersection}, or {@link difference}.\n * * **Comparison** To compare this Interval to another one, use {@link equals}, {@link overlaps}, {@link abutsStart}, {@link abutsEnd}, {@link engulfs}\n * * **Output** To convert the Interval into other representations, see {@link toString}, {@link toISO}, {@link toISODate}, {@link toISOTime}, {@link toFormat}, and {@link toDuration}.\n */\nexport default class Interval {\n /**\n * @private\n */\n constructor(config) {\n /**\n * @access private\n */\n this.s = config.start;\n /**\n * @access private\n */\n this.e = config.end;\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.isLuxonInterval = true;\n }\n\n /**\n * Create an invalid Interval.\n * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Interval}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Interval is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidIntervalError(invalid);\n } else {\n return new Interval({ invalid });\n }\n }\n\n /**\n * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.\n * @param {DateTime|Date|Object} start\n * @param {DateTime|Date|Object} end\n * @return {Interval}\n */\n static fromDateTimes(start, end) {\n const builtStart = friendlyDateTime(start),\n builtEnd = friendlyDateTime(end);\n\n const validateError = validateStartEnd(builtStart, builtEnd);\n\n if (validateError == null) {\n return new Interval({\n start: builtStart,\n end: builtEnd\n });\n } else {\n return validateError;\n }\n }\n\n /**\n * Create an Interval from a start DateTime and a Duration to extend to.\n * @param {DateTime|Date|Object} start\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static after(start, duration) {\n const dur = friendlyDuration(duration),\n dt = friendlyDateTime(start);\n return Interval.fromDateTimes(dt, dt.plus(dur));\n }\n\n /**\n * Create an Interval from an end DateTime and a Duration to extend backwards to.\n * @param {DateTime|Date|Object} end\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static before(end, duration) {\n const dur = friendlyDuration(duration),\n dt = friendlyDateTime(end);\n return Interval.fromDateTimes(dt.minus(dur), dt);\n }\n\n /**\n * Create an Interval from an ISO 8601 string.\n * Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.\n * @param {string} text - the ISO string to parse\n * @param {Object} [opts] - options to pass {@link DateTime.fromISO} and optionally {@link Duration.fromISO}\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {Interval}\n */\n static fromISO(text, opts) {\n const [s, e] = (text || \"\").split(\"/\", 2);\n if (s && e) {\n const start = DateTime.fromISO(s, opts),\n end = DateTime.fromISO(e, opts);\n\n if (start.isValid && end.isValid) {\n return Interval.fromDateTimes(start, end);\n }\n\n if (start.isValid) {\n const dur = Duration.fromISO(e, opts);\n if (dur.isValid) {\n return Interval.after(start, dur);\n }\n } else if (end.isValid) {\n const dur = Duration.fromISO(s, opts);\n if (dur.isValid) {\n return Interval.before(end, dur);\n }\n }\n }\n return Interval.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n\n /**\n * Check if an object is an Interval. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isInterval(o) {\n return (o && o.isLuxonInterval) || false;\n }\n\n /**\n * Returns the start of the Interval\n * @type {DateTime}\n */\n get start() {\n return this.isValid ? this.s : null;\n }\n\n /**\n * Returns the end of the Interval\n * @type {DateTime}\n */\n get end() {\n return this.isValid ? this.e : null;\n }\n\n /**\n * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.\n * @type {boolean}\n */\n get isValid() {\n return this.invalidReason === null;\n }\n\n /**\n * Returns an error code if this Interval is invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Interval became invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Returns the length of the Interval in the specified unit.\n * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.\n * @return {number}\n */\n length(unit = \"milliseconds\") {\n return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN;\n }\n\n /**\n * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.\n * Unlike {@link length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'\n * asks 'what dates are included in this interval?', not 'how many days long is this interval?'\n * @param {string} [unit='milliseconds'] - the unit of time to count.\n * @return {number}\n */\n count(unit = \"milliseconds\") {\n if (!this.isValid) return NaN;\n const start = this.start.startOf(unit),\n end = this.end.startOf(unit);\n return Math.floor(end.diff(start, unit).get(unit)) + 1;\n }\n\n /**\n * Returns whether this Interval's start and end are both in the same unit of time\n * @param {string} unit - the unit of time to check sameness on\n * @return {boolean}\n */\n hasSame(unit) {\n return this.isValid ? this.e.minus(1).hasSame(this.s, unit) : false;\n }\n\n /**\n * Return whether this Interval has the same start and end DateTimes.\n * @return {boolean}\n */\n isEmpty() {\n return this.s.valueOf() === this.e.valueOf();\n }\n\n /**\n * Return whether this Interval's start is after the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isAfter(dateTime) {\n if (!this.isValid) return false;\n return this.s > dateTime;\n }\n\n /**\n * Return whether this Interval's end is before the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isBefore(dateTime) {\n if (!this.isValid) return false;\n return this.e <= dateTime;\n }\n\n /**\n * Return whether this Interval contains the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n contains(dateTime) {\n if (!this.isValid) return false;\n return this.s <= dateTime && this.e > dateTime;\n }\n\n /**\n * \"Sets\" the start and/or end dates. Returns a newly-constructed Interval.\n * @param {Object} values - the values to set\n * @param {DateTime} values.start - the starting DateTime\n * @param {DateTime} values.end - the ending DateTime\n * @return {Interval}\n */\n set({ start, end } = {}) {\n if (!this.isValid) return this;\n return Interval.fromDateTimes(start || this.s, end || this.e);\n }\n\n /**\n * Split this Interval at each of the specified DateTimes\n * @param {...[DateTime]} dateTimes - the unit of time to count.\n * @return {[Interval]}\n */\n splitAt(...dateTimes) {\n if (!this.isValid) return [];\n const sorted = dateTimes\n .map(friendlyDateTime)\n .filter(d => this.contains(d))\n .sort(),\n results = [];\n let { s } = this,\n i = 0;\n\n while (s < this.e) {\n const added = sorted[i] || this.e,\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n i += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into smaller Intervals, each of the specified length.\n * Left over time is grouped into a smaller interval\n * @param {Duration|Object|number} duration - The length of each resulting interval.\n * @return {[Interval]}\n */\n splitBy(duration) {\n const dur = friendlyDuration(duration);\n\n if (!this.isValid || !dur.isValid || dur.as(\"milliseconds\") === 0) {\n return [];\n }\n\n let { s } = this,\n added,\n next;\n\n const results = [];\n while (s < this.e) {\n added = s.plus(dur);\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into the specified number of smaller intervals.\n * @param {number} numberOfParts - The number of Intervals to divide the Interval into.\n * @return {[Interval]}\n */\n divideEqually(numberOfParts) {\n if (!this.isValid) return [];\n return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);\n }\n\n /**\n * Return whether this Interval overlaps with the specified Interval\n * @param {Interval} other\n * @return {boolean}\n */\n overlaps(other) {\n return this.e > other.s && this.s < other.e;\n }\n\n /**\n * Return whether this Interval's end is adjacent to the specified Interval's start.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsStart(other) {\n if (!this.isValid) return false;\n return +this.e === +other.s;\n }\n\n /**\n * Return whether this Interval's start is adjacent to the specified Interval's end.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsEnd(other) {\n if (!this.isValid) return false;\n return +other.e === +this.s;\n }\n\n /**\n * Return whether this Interval engulfs the start and end of the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n engulfs(other) {\n if (!this.isValid) return false;\n return this.s <= other.s && this.e >= other.e;\n }\n\n /**\n * Return whether this Interval has the same start and end as the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n return this.s.equals(other.s) && this.e.equals(other.e);\n }\n\n /**\n * Return an Interval representing the intersection of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.\n * Returns null if the intersection is empty, meaning, the intervals don't intersect.\n * @param {Interval} other\n * @return {Interval}\n */\n intersection(other) {\n if (!this.isValid) return this;\n const s = this.s > other.s ? this.s : other.s,\n e = this.e < other.e ? this.e : other.e;\n\n if (s > e) {\n return null;\n } else {\n return Interval.fromDateTimes(s, e);\n }\n }\n\n /**\n * Return an Interval representing the union of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.\n * @param {Interval} other\n * @return {Interval}\n */\n union(other) {\n if (!this.isValid) return this;\n const s = this.s < other.s ? this.s : other.s,\n e = this.e > other.e ? this.e : other.e;\n return Interval.fromDateTimes(s, e);\n }\n\n /**\n * Merge an array of Intervals into a equivalent minimal set of Intervals.\n * Combines overlapping and adjacent Intervals.\n * @param {[Interval]} intervals\n * @return {[Interval]}\n */\n static merge(intervals) {\n const [found, final] = intervals.sort((a, b) => a.s - b.s).reduce(\n ([sofar, current], item) => {\n if (!current) {\n return [sofar, item];\n } else if (current.overlaps(item) || current.abutsStart(item)) {\n return [sofar, current.union(item)];\n } else {\n return [sofar.concat([current]), item];\n }\n },\n [[], null]\n );\n if (final) {\n found.push(final);\n }\n return found;\n }\n\n /**\n * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.\n * @param {[Interval]} intervals\n * @return {[Interval]}\n */\n static xor(intervals) {\n let start = null,\n currentCount = 0;\n const results = [],\n ends = intervals.map(i => [{ time: i.s, type: \"s\" }, { time: i.e, type: \"e\" }]),\n flattened = Array.prototype.concat(...ends),\n arr = flattened.sort((a, b) => a.time - b.time);\n\n for (const i of arr) {\n currentCount += i.type === \"s\" ? 1 : -1;\n\n if (currentCount === 1) {\n start = i.time;\n } else {\n if (start && +start !== +i.time) {\n results.push(Interval.fromDateTimes(start, i.time));\n }\n\n start = null;\n }\n }\n\n return Interval.merge(results);\n }\n\n /**\n * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.\n * @param {...Interval} intervals\n * @return {[Interval]}\n */\n difference(...intervals) {\n return Interval.xor([this].concat(intervals))\n .map(i => this.intersection(i))\n .filter(i => i && !i.isEmpty());\n }\n\n /**\n * Returns a string representation of this Interval appropriate for debugging.\n * @return {string}\n */\n toString() {\n if (!this.isValid) return INVALID;\n return `[${this.s.toISO()} – ${this.e.toISO()})`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Interval.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime.toISO}\n * @return {string}\n */\n toISO(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of date of this Interval.\n * The time components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {string}\n */\n toISODate() {\n if (!this.isValid) return INVALID;\n return `${this.s.toISODate()}/${this.e.toISODate()}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of time of this Interval.\n * The date components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime.toISO}\n * @return {string}\n */\n toISOTime(opts) {\n if (!this.isValid) return INVALID;\n return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this Interval formatted according to the specified format string.\n * @param {string} dateFormat - the format string. This string formats the start and end time. See {@link DateTime.toFormat} for details.\n * @param {Object} opts - options\n * @param {string} [opts.separator = ' – '] - a separator to place between the start and end representations\n * @return {string}\n */\n toFormat(dateFormat, { separator = \" – \" } = {}) {\n if (!this.isValid) return INVALID;\n return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`;\n }\n\n /**\n * Return a Duration representing the time spanned by this interval.\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }\n * @return {Duration}\n */\n toDuration(unit, opts) {\n if (!this.isValid) {\n return Duration.invalid(this.invalidReason);\n }\n return this.e.diff(this.s, unit, opts);\n }\n\n /**\n * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes\n * @param {function} mapFn\n * @return {Interval}\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))\n */\n mapEndpoints(mapFn) {\n return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));\n }\n}\n","import DateTime from \"./datetime.js\";\nimport Settings from \"./settings.js\";\nimport Locale from \"./impl/locale.js\";\nimport IANAZone from \"./zones/IANAZone.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\n\nimport { hasFormatToParts, hasIntl, hasRelative } from \"./impl/util.js\";\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\nexport default class Info {\n /**\n * Return whether the specified zone contains a DST.\n * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n * @return {boolean}\n */\n static hasDST(zone = Settings.defaultZone) {\n const proto = DateTime.local()\n .setZone(zone)\n .set({ month: 12 });\n\n return !zone.universal && proto.offset !== proto.set({ month: 6 }).offset;\n }\n\n /**\n * Return whether the specified zone is a valid IANA specifier.\n * @param {string} zone - Zone to check\n * @return {boolean}\n */\n static isValidIANAZone(zone) {\n return IANAZone.isValidSpecifier(zone) && IANAZone.isValidZone(zone);\n }\n\n /**\n * Converts the input into a {@link Zone} instance.\n *\n * * If `input` is already a Zone instance, it is returned unchanged.\n * * If `input` is a string containing a valid time zone name, a Zone instance\n * with that name is returned.\n * * If `input` is a string that doesn't refer to a known time zone, a Zone\n * instance with {@link Zone.isValid} == false is returned.\n * * If `input is a number, a Zone instance with the specified fixed offset\n * in minutes is returned.\n * * If `input` is `null` or `undefined`, the default zone is returned.\n * @param {string|Zone|number} [input] - the value to be converted\n * @return {Zone}\n */\n static normalizeZone(input) {\n return normalizeZone(input, Settings.defaultZone);\n }\n\n /**\n * Return an array of standalone month names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @example Info.months()[0] //=> 'January'\n * @example Info.months('short')[0] //=> 'Jan'\n * @example Info.months('numeric')[0] //=> '1'\n * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'\n * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'\n * @return {[string]}\n */\n static months(\n length = \"long\",\n { locale = null, numberingSystem = null, outputCalendar = \"gregory\" } = {}\n ) {\n return Locale.create(locale, numberingSystem, outputCalendar).months(length);\n }\n\n /**\n * Return an array of format month names.\n * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n * changes the string.\n * See {@link months}\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @return {[string]}\n */\n static monthsFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, outputCalendar = \"gregory\" } = {}\n ) {\n return Locale.create(locale, numberingSystem, outputCalendar).months(length, true);\n }\n\n /**\n * Return an array of standalone week names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @example Info.weekdays()[0] //=> 'Monday'\n * @example Info.weekdays('short')[0] //=> 'Mon'\n * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n * @return {[string]}\n */\n static weekdays(length = \"long\", { locale = null, numberingSystem = null } = {}) {\n return Locale.create(locale, numberingSystem, null).weekdays(length);\n }\n\n /**\n * Return an array of format week names.\n * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n * changes the string.\n * See {@link weekdays}\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale=null] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @return {[string]}\n */\n static weekdaysFormat(length = \"long\", { locale = null, numberingSystem = null } = {}) {\n return Locale.create(locale, numberingSystem, null).weekdays(length, true);\n }\n\n /**\n * Return an array of meridiems.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n * @return {[string]}\n */\n static meridiems({ locale = null } = {}) {\n return Locale.create(locale).meridiems();\n }\n\n /**\n * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.eras() //=> [ 'BC', 'AD' ]\n * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n * @return {[string]}\n */\n static eras(length = \"short\", { locale = null } = {}) {\n return Locale.create(locale, null, \"gregory\").eras(length);\n }\n\n /**\n * Return the set of available features in this environment.\n * Some features of Luxon are not available in all environments. For example, on older browsers, timezone support is not available. Use this function to figure out if that's the case.\n * Keys:\n * * `zones`: whether this environment supports IANA timezones\n * * `intlTokens`: whether this environment supports internationalized token-based formatting/parsing\n * * `intl`: whether this environment supports general internationalization\n * * `relative`: whether this environment supports relative time formatting\n * @example Info.features() //=> { intl: true, intlTokens: false, zones: true, relative: false }\n * @return {Object}\n */\n static features() {\n let intl = false,\n intlTokens = false,\n zones = false,\n relative = false;\n\n if (hasIntl()) {\n intl = true;\n intlTokens = hasFormatToParts();\n relative = hasRelative();\n\n try {\n zones =\n new Intl.DateTimeFormat(\"en\", { timeZone: \"America/New_York\" }).resolvedOptions()\n .timeZone === \"America/New_York\";\n } catch (e) {\n zones = false;\n }\n }\n\n return { intl, intlTokens, zones, relative };\n }\n}\n","import Duration from \"../duration.js\";\n\nfunction dayDiff(earlier, later) {\n const utcDayStart = dt =>\n dt\n .toUTC(0, { keepLocalTime: true })\n .startOf(\"day\")\n .valueOf(),\n ms = utcDayStart(later) - utcDayStart(earlier);\n return Math.floor(Duration.fromMillis(ms).as(\"days\"));\n}\n\nfunction highOrderDiffs(cursor, later, units) {\n const differs = [\n [\"years\", (a, b) => b.year - a.year],\n [\"months\", (a, b) => b.month - a.month + (b.year - a.year) * 12],\n [\n \"weeks\",\n (a, b) => {\n const days = dayDiff(a, b);\n return (days - (days % 7)) / 7;\n }\n ],\n [\"days\", dayDiff]\n ];\n\n const results = {};\n let lowestOrder, highWater;\n\n for (const [unit, differ] of differs) {\n if (units.indexOf(unit) >= 0) {\n lowestOrder = unit;\n\n let delta = differ(cursor, later);\n highWater = cursor.plus({ [unit]: delta });\n\n if (highWater > later) {\n cursor = cursor.plus({ [unit]: delta - 1 });\n delta -= 1;\n } else {\n cursor = highWater;\n }\n\n results[unit] = delta;\n }\n }\n\n return [cursor, results, highWater, lowestOrder];\n}\n\nexport default function(earlier, later, units, opts) {\n let [cursor, results, highWater, lowestOrder] = highOrderDiffs(earlier, later, units);\n\n const remainingMillis = later - cursor;\n\n const lowerOrderUnits = units.filter(\n u => [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"].indexOf(u) >= 0\n );\n\n if (lowerOrderUnits.length === 0) {\n if (highWater < later) {\n highWater = cursor.plus({ [lowestOrder]: 1 });\n }\n\n if (highWater !== cursor) {\n results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);\n }\n }\n\n const duration = Duration.fromObject(Object.assign(results, opts));\n\n if (lowerOrderUnits.length > 0) {\n return Duration.fromMillis(remainingMillis, opts)\n .shiftTo(...lowerOrderUnits)\n .plus(duration);\n } else {\n return duration;\n }\n}\n","const numberingSystems = {\n arab: \"[\\u0660-\\u0669]\",\n arabext: \"[\\u06F0-\\u06F9]\",\n bali: \"[\\u1B50-\\u1B59]\",\n beng: \"[\\u09E6-\\u09EF]\",\n deva: \"[\\u0966-\\u096F]\",\n fullwide: \"[\\uFF10-\\uFF19]\",\n gujr: \"[\\u0AE6-\\u0AEF]\",\n hanidec: \"[〇|一|二|三|四|五|六|七|八|九]\",\n khmr: \"[\\u17E0-\\u17E9]\",\n knda: \"[\\u0CE6-\\u0CEF]\",\n laoo: \"[\\u0ED0-\\u0ED9]\",\n limb: \"[\\u1946-\\u194F]\",\n mlym: \"[\\u0D66-\\u0D6F]\",\n mong: \"[\\u1810-\\u1819]\",\n mymr: \"[\\u1040-\\u1049]\",\n orya: \"[\\u0B66-\\u0B6F]\",\n tamldec: \"[\\u0BE6-\\u0BEF]\",\n telu: \"[\\u0C66-\\u0C6F]\",\n thai: \"[\\u0E50-\\u0E59]\",\n tibt: \"[\\u0F20-\\u0F29]\",\n latn: \"\\\\d\"\n};\n\nconst numberingSystemsUTF16 = {\n arab: [1632, 1641],\n arabext: [1776, 1785],\n bali: [6992, 7001],\n beng: [2534, 2543],\n deva: [2406, 2415],\n fullwide: [65296, 65303],\n gujr: [2790, 2799],\n khmr: [6112, 6121],\n knda: [3302, 3311],\n laoo: [3792, 3801],\n limb: [6470, 6479],\n mlym: [3430, 3439],\n mong: [6160, 6169],\n mymr: [4160, 4169],\n orya: [2918, 2927],\n tamldec: [3046, 3055],\n telu: [3174, 3183],\n thai: [3664, 3673],\n tibt: [3872, 3881]\n};\n\n// eslint-disable-next-line\nconst hanidecChars = numberingSystems.hanidec.replace(/[\\[|\\]]/g, \"\").split(\"\");\n\nexport function parseDigits(str) {\n let value = parseInt(str, 10);\n if (isNaN(value)) {\n value = \"\";\n for (let i = 0; i < str.length; i++) {\n const code = str.charCodeAt(i);\n\n if (str[i].search(numberingSystems.hanidec) !== -1) {\n value += hanidecChars.indexOf(str[i]);\n } else {\n for (const key in numberingSystemsUTF16) {\n const [min, max] = numberingSystemsUTF16[key];\n if (code >= min && code <= max) {\n value += code - min;\n }\n }\n }\n }\n return parseInt(value, 10);\n } else {\n return value;\n }\n}\n\nexport function digitRegex({ numberingSystem }, append = \"\") {\n return new RegExp(`${numberingSystems[numberingSystem || \"latn\"]}${append}`);\n}\n","import { parseMillis, isUndefined, untruncateYear, signedOffset, hasOwnProperty } from \"./util.js\";\nimport Formatter from \"./formatter.js\";\nimport FixedOffsetZone from \"../zones/fixedOffsetZone.js\";\nimport IANAZone from \"../zones/IANAZone.js\";\nimport DateTime from \"../datetime.js\";\nimport { digitRegex, parseDigits } from \"./digits.js\";\nimport { ConflictingSpecificationError } from \"../errors.js\";\n\nconst MISSING_FTP = \"missing Intl.DateTimeFormat.formatToParts support\";\n\nfunction intUnit(regex, post = i => i) {\n return { regex, deser: ([s]) => post(parseDigits(s)) };\n}\n\nfunction fixListRegex(s) {\n // make dots optional and also make them literal\n return s.replace(/\\./, \"\\\\.?\");\n}\n\nfunction stripInsensitivities(s) {\n return s.replace(/\\./, \"\").toLowerCase();\n}\n\nfunction oneOf(strings, startIndex) {\n if (strings === null) {\n return null;\n } else {\n return {\n regex: RegExp(strings.map(fixListRegex).join(\"|\")),\n deser: ([s]) =>\n strings.findIndex(i => stripInsensitivities(s) === stripInsensitivities(i)) + startIndex\n };\n }\n}\n\nfunction offset(regex, groups) {\n return { regex, deser: ([, h, m]) => signedOffset(h, m), groups };\n}\n\nfunction simple(regex) {\n return { regex, deser: ([s]) => s };\n}\n\nfunction escapeToken(value) {\n // eslint-disable-next-line no-useless-escape\n return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g, \"\\\\$&\");\n}\n\nfunction unitForToken(token, loc) {\n const one = digitRegex(loc),\n two = digitRegex(loc, \"{2}\"),\n three = digitRegex(loc, \"{3}\"),\n four = digitRegex(loc, \"{4}\"),\n six = digitRegex(loc, \"{6}\"),\n oneOrTwo = digitRegex(loc, \"{1,2}\"),\n oneToThree = digitRegex(loc, \"{1,3}\"),\n oneToSix = digitRegex(loc, \"{1,6}\"),\n oneToNine = digitRegex(loc, \"{1,9}\"),\n twoToFour = digitRegex(loc, \"{2,4}\"),\n fourToSix = digitRegex(loc, \"{4,6}\"),\n literal = t => ({ regex: RegExp(escapeToken(t.val)), deser: ([s]) => s, literal: true }),\n unitate = t => {\n if (token.literal) {\n return literal(t);\n }\n switch (t.val) {\n // era\n case \"G\":\n return oneOf(loc.eras(\"short\", false), 0);\n case \"GG\":\n return oneOf(loc.eras(\"long\", false), 0);\n // years\n case \"y\":\n return intUnit(oneToSix);\n case \"yy\":\n return intUnit(twoToFour, untruncateYear);\n case \"yyyy\":\n return intUnit(four);\n case \"yyyyy\":\n return intUnit(fourToSix);\n case \"yyyyyy\":\n return intUnit(six);\n // months\n case \"M\":\n return intUnit(oneOrTwo);\n case \"MM\":\n return intUnit(two);\n case \"MMM\":\n return oneOf(loc.months(\"short\", true, false), 1);\n case \"MMMM\":\n return oneOf(loc.months(\"long\", true, false), 1);\n case \"L\":\n return intUnit(oneOrTwo);\n case \"LL\":\n return intUnit(two);\n case \"LLL\":\n return oneOf(loc.months(\"short\", false, false), 1);\n case \"LLLL\":\n return oneOf(loc.months(\"long\", false, false), 1);\n // dates\n case \"d\":\n return intUnit(oneOrTwo);\n case \"dd\":\n return intUnit(two);\n // ordinals\n case \"o\":\n return intUnit(oneToThree);\n case \"ooo\":\n return intUnit(three);\n // time\n case \"HH\":\n return intUnit(two);\n case \"H\":\n return intUnit(oneOrTwo);\n case \"hh\":\n return intUnit(two);\n case \"h\":\n return intUnit(oneOrTwo);\n case \"mm\":\n return intUnit(two);\n case \"m\":\n return intUnit(oneOrTwo);\n case \"q\":\n return intUnit(oneOrTwo);\n case \"qq\":\n return intUnit(two);\n case \"s\":\n return intUnit(oneOrTwo);\n case \"ss\":\n return intUnit(two);\n case \"S\":\n return intUnit(oneToThree);\n case \"SSS\":\n return intUnit(three);\n case \"u\":\n return simple(oneToNine);\n // meridiem\n case \"a\":\n return oneOf(loc.meridiems(), 0);\n // weekYear (k)\n case \"kkkk\":\n return intUnit(four);\n case \"kk\":\n return intUnit(twoToFour, untruncateYear);\n // weekNumber (W)\n case \"W\":\n return intUnit(oneOrTwo);\n case \"WW\":\n return intUnit(two);\n // weekdays\n case \"E\":\n case \"c\":\n return intUnit(one);\n case \"EEE\":\n return oneOf(loc.weekdays(\"short\", false, false), 1);\n case \"EEEE\":\n return oneOf(loc.weekdays(\"long\", false, false), 1);\n case \"ccc\":\n return oneOf(loc.weekdays(\"short\", true, false), 1);\n case \"cccc\":\n return oneOf(loc.weekdays(\"long\", true, false), 1);\n // offset/zone\n case \"Z\":\n case \"ZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2);\n case \"ZZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2);\n // we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing\n // because we don't have any way to figure out what they are\n case \"z\":\n return simple(/[a-z_+-/]{1,256}?/i);\n default:\n return literal(t);\n }\n };\n\n const unit = unitate(token) || {\n invalidReason: MISSING_FTP\n };\n\n unit.token = token;\n\n return unit;\n}\n\nconst partTypeStyleToTokenVal = {\n year: {\n \"2-digit\": \"yy\",\n numeric: \"yyyyy\"\n },\n month: {\n numeric: \"M\",\n \"2-digit\": \"MM\",\n short: \"MMM\",\n long: \"MMMM\"\n },\n day: {\n numeric: \"d\",\n \"2-digit\": \"dd\"\n },\n weekday: {\n short: \"EEE\",\n long: \"EEEE\"\n },\n dayperiod: \"a\",\n dayPeriod: \"a\",\n hour: {\n numeric: \"h\",\n \"2-digit\": \"hh\"\n },\n minute: {\n numeric: \"m\",\n \"2-digit\": \"mm\"\n },\n second: {\n numeric: \"s\",\n \"2-digit\": \"ss\"\n }\n};\n\nfunction tokenForPart(part, locale, formatOpts) {\n const { type, value } = part;\n\n if (type === \"literal\") {\n return {\n literal: true,\n val: value\n };\n }\n\n const style = formatOpts[type];\n\n let val = partTypeStyleToTokenVal[type];\n if (typeof val === \"object\") {\n val = val[style];\n }\n\n if (val) {\n return {\n literal: false,\n val\n };\n }\n\n return undefined;\n}\n\nfunction buildRegex(units) {\n const re = units.map(u => u.regex).reduce((f, r) => `${f}(${r.source})`, \"\");\n return [`^${re}$`, units];\n}\n\nfunction match(input, regex, handlers) {\n const matches = input.match(regex);\n\n if (matches) {\n const all = {};\n let matchIndex = 1;\n for (const i in handlers) {\n if (hasOwnProperty(handlers, i)) {\n const h = handlers[i],\n groups = h.groups ? h.groups + 1 : 1;\n if (!h.literal && h.token) {\n all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));\n }\n matchIndex += groups;\n }\n }\n return [matches, all];\n } else {\n return [matches, {}];\n }\n}\n\nfunction dateTimeFromMatches(matches) {\n const toField = token => {\n switch (token) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n case \"H\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"o\":\n return \"ordinal\";\n case \"L\":\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n case \"E\":\n case \"c\":\n return \"weekday\";\n case \"W\":\n return \"weekNumber\";\n case \"k\":\n return \"weekYear\";\n case \"q\":\n return \"quarter\";\n default:\n return null;\n }\n };\n\n let zone;\n if (!isUndefined(matches.Z)) {\n zone = new FixedOffsetZone(matches.Z);\n } else if (!isUndefined(matches.z)) {\n zone = IANAZone.create(matches.z);\n } else {\n zone = null;\n }\n\n if (!isUndefined(matches.q)) {\n matches.M = (matches.q - 1) * 3 + 1;\n }\n\n if (!isUndefined(matches.h)) {\n if (matches.h < 12 && matches.a === 1) {\n matches.h += 12;\n } else if (matches.h === 12 && matches.a === 0) {\n matches.h = 0;\n }\n }\n\n if (matches.G === 0 && matches.y) {\n matches.y = -matches.y;\n }\n\n if (!isUndefined(matches.u)) {\n matches.S = parseMillis(matches.u);\n }\n\n const vals = Object.keys(matches).reduce((r, k) => {\n const f = toField(k);\n if (f) {\n r[f] = matches[k];\n }\n\n return r;\n }, {});\n\n return [vals, zone];\n}\n\nlet dummyDateTimeCache = null;\n\nfunction getDummyDateTime() {\n if (!dummyDateTimeCache) {\n dummyDateTimeCache = DateTime.fromMillis(1555555555555);\n }\n\n return dummyDateTimeCache;\n}\n\nfunction maybeExpandMacroToken(token, locale) {\n if (token.literal) {\n return token;\n }\n\n const formatOpts = Formatter.macroTokenToFormatOpts(token.val);\n\n if (!formatOpts) {\n return token;\n }\n\n const formatter = Formatter.create(locale, formatOpts);\n const parts = formatter.formatDateTimeParts(getDummyDateTime());\n\n const tokens = parts.map(p => tokenForPart(p, locale, formatOpts));\n\n if (tokens.includes(undefined)) {\n return token;\n }\n\n return tokens;\n}\n\nfunction expandMacroTokens(tokens, locale) {\n return Array.prototype.concat(...tokens.map(t => maybeExpandMacroToken(t, locale)));\n}\n\n/**\n * @private\n */\n\nexport function explainFromTokens(locale, input, format) {\n const tokens = expandMacroTokens(Formatter.parseFormat(format), locale),\n units = tokens.map(t => unitForToken(t, locale)),\n disqualifyingUnit = units.find(t => t.invalidReason);\n\n if (disqualifyingUnit) {\n return { input, tokens, invalidReason: disqualifyingUnit.invalidReason };\n } else {\n const [regexString, handlers] = buildRegex(units),\n regex = RegExp(regexString, \"i\"),\n [rawMatches, matches] = match(input, regex, handlers),\n [result, zone] = matches ? dateTimeFromMatches(matches) : [null, null];\n if (hasOwnProperty(matches, \"a\") && hasOwnProperty(matches, \"H\")) {\n throw new ConflictingSpecificationError(\n \"Can't include meridiem when specifying 24-hour format\"\n );\n }\n return { input, tokens, regex, rawMatches, matches, result, zone };\n }\n}\n\nexport function parseFromTokens(locale, input, format) {\n const { result, zone, invalidReason } = explainFromTokens(locale, input, format);\n return [result, zone, invalidReason];\n}\n","import {\n integerBetween,\n isLeapYear,\n timeObject,\n daysInYear,\n daysInMonth,\n weeksInWeekYear,\n isInteger\n} from \"./util.js\";\nimport Invalid from \"./invalid.js\";\n\nconst nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],\n leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];\n\nfunction unitOutOfRange(unit, value) {\n return new Invalid(\n \"unit out of range\",\n `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`\n );\n}\n\nfunction dayOfWeek(year, month, day) {\n const js = new Date(Date.UTC(year, month - 1, day)).getUTCDay();\n return js === 0 ? 7 : js;\n}\n\nfunction computeOrdinal(year, month, day) {\n return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];\n}\n\nfunction uncomputeOrdinal(year, ordinal) {\n const table = isLeapYear(year) ? leapLadder : nonLeapLadder,\n month0 = table.findIndex(i => i < ordinal),\n day = ordinal - table[month0];\n return { month: month0 + 1, day };\n}\n\n/**\n * @private\n */\n\nexport function gregorianToWeek(gregObj) {\n const { year, month, day } = gregObj,\n ordinal = computeOrdinal(year, month, day),\n weekday = dayOfWeek(year, month, day);\n\n let weekNumber = Math.floor((ordinal - weekday + 10) / 7),\n weekYear;\n\n if (weekNumber < 1) {\n weekYear = year - 1;\n weekNumber = weeksInWeekYear(weekYear);\n } else if (weekNumber > weeksInWeekYear(year)) {\n weekYear = year + 1;\n weekNumber = 1;\n } else {\n weekYear = year;\n }\n\n return Object.assign({ weekYear, weekNumber, weekday }, timeObject(gregObj));\n}\n\nexport function weekToGregorian(weekData) {\n const { weekYear, weekNumber, weekday } = weekData,\n weekdayOfJan4 = dayOfWeek(weekYear, 1, 4),\n yearInDays = daysInYear(weekYear);\n\n let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 3,\n year;\n\n if (ordinal < 1) {\n year = weekYear - 1;\n ordinal += daysInYear(year);\n } else if (ordinal > yearInDays) {\n year = weekYear + 1;\n ordinal -= daysInYear(weekYear);\n } else {\n year = weekYear;\n }\n\n const { month, day } = uncomputeOrdinal(year, ordinal);\n\n return Object.assign({ year, month, day }, timeObject(weekData));\n}\n\nexport function gregorianToOrdinal(gregData) {\n const { year, month, day } = gregData,\n ordinal = computeOrdinal(year, month, day);\n\n return Object.assign({ year, ordinal }, timeObject(gregData));\n}\n\nexport function ordinalToGregorian(ordinalData) {\n const { year, ordinal } = ordinalData,\n { month, day } = uncomputeOrdinal(year, ordinal);\n\n return Object.assign({ year, month, day }, timeObject(ordinalData));\n}\n\nexport function hasInvalidWeekData(obj) {\n const validYear = isInteger(obj.weekYear),\n validWeek = integerBetween(obj.weekNumber, 1, weeksInWeekYear(obj.weekYear)),\n validWeekday = integerBetween(obj.weekday, 1, 7);\n\n if (!validYear) {\n return unitOutOfRange(\"weekYear\", obj.weekYear);\n } else if (!validWeek) {\n return unitOutOfRange(\"week\", obj.week);\n } else if (!validWeekday) {\n return unitOutOfRange(\"weekday\", obj.weekday);\n } else return false;\n}\n\nexport function hasInvalidOrdinalData(obj) {\n const validYear = isInteger(obj.year),\n validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validOrdinal) {\n return unitOutOfRange(\"ordinal\", obj.ordinal);\n } else return false;\n}\n\nexport function hasInvalidGregorianData(obj) {\n const validYear = isInteger(obj.year),\n validMonth = integerBetween(obj.month, 1, 12),\n validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validMonth) {\n return unitOutOfRange(\"month\", obj.month);\n } else if (!validDay) {\n return unitOutOfRange(\"day\", obj.day);\n } else return false;\n}\n\nexport function hasInvalidTimeData(obj) {\n const { hour, minute, second, millisecond } = obj;\n const validHour =\n integerBetween(hour, 0, 23) ||\n (hour === 24 && minute === 0 && second === 0 && millisecond === 0),\n validMinute = integerBetween(minute, 0, 59),\n validSecond = integerBetween(second, 0, 59),\n validMillisecond = integerBetween(millisecond, 0, 999);\n\n if (!validHour) {\n return unitOutOfRange(\"hour\", hour);\n } else if (!validMinute) {\n return unitOutOfRange(\"minute\", minute);\n } else if (!validSecond) {\n return unitOutOfRange(\"second\", second);\n } else if (!validMillisecond) {\n return unitOutOfRange(\"millisecond\", millisecond);\n } else return false;\n}\n","import Duration, { friendlyDuration } from \"./duration.js\";\nimport Interval from \"./interval.js\";\nimport Settings from \"./settings.js\";\nimport Info from \"./info.js\";\nimport Formatter from \"./impl/formatter.js\";\nimport FixedOffsetZone from \"./zones/fixedOffsetZone.js\";\nimport Locale from \"./impl/locale.js\";\nimport {\n isUndefined,\n maybeArray,\n isDate,\n isNumber,\n bestBy,\n daysInMonth,\n daysInYear,\n isLeapYear,\n weeksInWeekYear,\n normalizeObject,\n roundTo,\n objToLocalTS\n} from \"./impl/util.js\";\nimport { normalizeZone } from \"./impl/zoneUtil.js\";\nimport diff from \"./impl/diff.js\";\nimport { parseRFC2822Date, parseISODate, parseHTTPDate, parseSQL } from \"./impl/regexParser.js\";\nimport { parseFromTokens, explainFromTokens } from \"./impl/tokenParser.js\";\nimport {\n gregorianToWeek,\n weekToGregorian,\n gregorianToOrdinal,\n ordinalToGregorian,\n hasInvalidGregorianData,\n hasInvalidWeekData,\n hasInvalidOrdinalData,\n hasInvalidTimeData\n} from \"./impl/conversions.js\";\nimport * as Formats from \"./impl/formats.js\";\nimport {\n InvalidArgumentError,\n ConflictingSpecificationError,\n InvalidUnitError,\n InvalidDateTimeError\n} from \"./errors.js\";\nimport Invalid from \"./impl/invalid.js\";\n\nconst INVALID = \"Invalid DateTime\";\nconst MAX_DATE = 8.64e15;\n\nfunction unsupportedZone(zone) {\n return new Invalid(\"unsupported zone\", `the zone \"${zone.name}\" is not supported`);\n}\n\n// we cache week data on the DT object and this intermediates the cache\nfunction possiblyCachedWeekData(dt) {\n if (dt.weekData === null) {\n dt.weekData = gregorianToWeek(dt.c);\n }\n return dt.weekData;\n}\n\n// clone really means, \"make a new object with these modifications\". all \"setters\" really use this\n// to create a new object while only changing some of the properties\nfunction clone(inst, alts) {\n const current = {\n ts: inst.ts,\n zone: inst.zone,\n c: inst.c,\n o: inst.o,\n loc: inst.loc,\n invalid: inst.invalid\n };\n return new DateTime(Object.assign({}, current, alts, { old: current }));\n}\n\n// find the right offset a given local time. The o input is our guess, which determines which\n// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)\nfunction fixOffset(localTS, o, tz) {\n // Our UTC time is just a guess because our offset is just a guess\n let utcGuess = localTS - o * 60 * 1000;\n\n // Test whether the zone matches the offset for this ts\n const o2 = tz.offset(utcGuess);\n\n // If so, offset didn't change and we're done\n if (o === o2) {\n return [utcGuess, o];\n }\n\n // If not, change the ts by the difference in the offset\n utcGuess -= (o2 - o) * 60 * 1000;\n\n // If that gives us the local time we want, we're done\n const o3 = tz.offset(utcGuess);\n if (o2 === o3) {\n return [utcGuess, o2];\n }\n\n // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time\n return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];\n}\n\n// convert an epoch timestamp into a calendar object with the given offset\nfunction tsToObj(ts, offset) {\n ts += offset * 60 * 1000;\n\n const d = new Date(ts);\n\n return {\n year: d.getUTCFullYear(),\n month: d.getUTCMonth() + 1,\n day: d.getUTCDate(),\n hour: d.getUTCHours(),\n minute: d.getUTCMinutes(),\n second: d.getUTCSeconds(),\n millisecond: d.getUTCMilliseconds()\n };\n}\n\n// convert a calendar object to a epoch timestamp\nfunction objToTS(obj, offset, zone) {\n return fixOffset(objToLocalTS(obj), offset, zone);\n}\n\n// create a new DT instance by adding a duration, adjusting for DSTs\nfunction adjustTime(inst, dur) {\n const keys = Object.keys(dur.values);\n if (keys.indexOf(\"milliseconds\") === -1) {\n keys.push(\"milliseconds\");\n }\n\n dur = dur.shiftTo(...keys);\n\n const oPre = inst.o,\n year = inst.c.year + dur.years,\n month = inst.c.month + dur.months + dur.quarters * 3,\n c = Object.assign({}, inst.c, {\n year,\n month,\n day: Math.min(inst.c.day, daysInMonth(year, month)) + dur.days + dur.weeks * 7\n }),\n millisToAdd = Duration.fromObject({\n hours: dur.hours,\n minutes: dur.minutes,\n seconds: dur.seconds,\n milliseconds: dur.milliseconds\n }).as(\"milliseconds\"),\n localTS = objToLocalTS(c);\n\n let [ts, o] = fixOffset(localTS, oPre, inst.zone);\n\n if (millisToAdd !== 0) {\n ts += millisToAdd;\n // that could have changed the offset by going over a DST, but we want to keep the ts the same\n o = inst.zone.offset(ts);\n }\n\n return { ts, o };\n}\n\n// helper useful in turning the results of parsing into real dates\n// by handling the zone options\nfunction parseDataToDateTime(parsed, parsedZone, opts, format, text) {\n const { setZone, zone } = opts;\n if (parsed && Object.keys(parsed).length !== 0) {\n const interpretationZone = parsedZone || zone,\n inst = DateTime.fromObject(\n Object.assign(parsed, opts, {\n zone: interpretationZone,\n // setZone is a valid option in the calling methods, but not in fromObject\n setZone: undefined\n })\n );\n return setZone ? inst : inst.setZone(zone);\n } else {\n return DateTime.invalid(\n new Invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ${format}`)\n );\n }\n}\n\n// if you want to output a technical format (e.g. RFC 2822), this helper\n// helps handle the details\nfunction toTechFormat(dt, format, allowZ = true) {\n return dt.isValid\n ? Formatter.create(Locale.create(\"en-US\"), {\n allowZ,\n forceSimple: true\n }).formatDateTimeFromString(dt, format)\n : null;\n}\n\n// technical time formats (e.g. the time part of ISO 8601), take some options\n// and this commonizes their handling\nfunction toTechTimeFormat(\n dt,\n {\n suppressSeconds = false,\n suppressMilliseconds = false,\n includeOffset,\n includeZone = false,\n spaceZone = false,\n format = \"extended\"\n }\n) {\n let fmt = format === \"basic\" ? \"HHmm\" : \"HH:mm\";\n\n if (!suppressSeconds || dt.second !== 0 || dt.millisecond !== 0) {\n fmt += format === \"basic\" ? \"ss\" : \":ss\";\n if (!suppressMilliseconds || dt.millisecond !== 0) {\n fmt += \".SSS\";\n }\n }\n\n if ((includeZone || includeOffset) && spaceZone) {\n fmt += \" \";\n }\n\n if (includeZone) {\n fmt += \"z\";\n } else if (includeOffset) {\n fmt += format === \"basic\" ? \"ZZZ\" : \"ZZ\";\n }\n\n return toTechFormat(dt, fmt);\n}\n\n// defaults for unspecified units in the supported calendars\nconst defaultUnitValues = {\n month: 1,\n day: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n },\n defaultWeekUnitValues = {\n weekNumber: 1,\n weekday: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n },\n defaultOrdinalUnitValues = {\n ordinal: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0\n };\n\n// Units in the supported calendars, sorted by bigness\nconst orderedUnits = [\"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n orderedWeekUnits = [\n \"weekYear\",\n \"weekNumber\",\n \"weekday\",\n \"hour\",\n \"minute\",\n \"second\",\n \"millisecond\"\n ],\n orderedOrdinalUnits = [\"year\", \"ordinal\", \"hour\", \"minute\", \"second\", \"millisecond\"];\n\n// standardize case and plurality in units\nfunction normalizeUnit(unit) {\n const normalized = {\n year: \"year\",\n years: \"year\",\n month: \"month\",\n months: \"month\",\n day: \"day\",\n days: \"day\",\n hour: \"hour\",\n hours: \"hour\",\n minute: \"minute\",\n minutes: \"minute\",\n quarter: \"quarter\",\n quarters: \"quarter\",\n second: \"second\",\n seconds: \"second\",\n millisecond: \"millisecond\",\n milliseconds: \"millisecond\",\n weekday: \"weekday\",\n weekdays: \"weekday\",\n weeknumber: \"weekNumber\",\n weeksnumber: \"weekNumber\",\n weeknumbers: \"weekNumber\",\n weekyear: \"weekYear\",\n weekyears: \"weekYear\",\n ordinal: \"ordinal\"\n }[unit.toLowerCase()];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n}\n\n// this is a dumbed down version of fromObject() that runs about 60% faster\n// but doesn't do any validation, makes a bunch of assumptions about what units\n// are present, and so on.\nfunction quickDT(obj, zone) {\n // assume we have the higher-order units\n for (const u of orderedUnits) {\n if (isUndefined(obj[u])) {\n obj[u] = defaultUnitValues[u];\n }\n }\n\n const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n const tsNow = Settings.now(),\n offsetProvis = zone.offset(tsNow),\n [ts, o] = objToTS(obj, offsetProvis, zone);\n\n return new DateTime({\n ts,\n zone,\n o\n });\n}\n\nfunction diffRelative(start, end, opts) {\n const round = isUndefined(opts.round) ? true : opts.round,\n format = (c, unit) => {\n c = roundTo(c, round || opts.calendary ? 0 : 2, true);\n const formatter = end.loc.clone(opts).relFormatter(opts);\n return formatter.format(c, unit);\n },\n differ = unit => {\n if (opts.calendary) {\n if (!end.hasSame(start, unit)) {\n return end\n .startOf(unit)\n .diff(start.startOf(unit), unit)\n .get(unit);\n } else return 0;\n } else {\n return end.diff(start, unit).get(unit);\n }\n };\n\n if (opts.unit) {\n return format(differ(opts.unit), opts.unit);\n }\n\n for (const unit of opts.units) {\n const count = differ(unit);\n if (Math.abs(count) >= 1) {\n return format(count, unit);\n }\n }\n return format(0, opts.units[opts.units.length - 1]);\n}\n\n/**\n * A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.\n *\n * A DateTime comprises of:\n * * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.\n * * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).\n * * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.\n *\n * Here is a brief overview of the most commonly used functionality it provides:\n *\n * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link local}, {@link utc}, and (most flexibly) {@link fromObject}. To create one from a standard string format, use {@link fromISO}, {@link fromHTTP}, and {@link fromRFC2822}. To create one from a custom string format, use {@link fromFormat}. To create one from a native JS date, use {@link fromJSDate}.\n * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link toObject}), use the {@link year}, {@link month},\n * {@link day}, {@link hour}, {@link minute}, {@link second}, {@link millisecond} accessors.\n * * **Week calendar**: For ISO week calendar attributes, see the {@link weekYear}, {@link weekNumber}, and {@link weekday} accessors.\n * * **Configuration** See the {@link locale} and {@link numberingSystem} accessors.\n * * **Transformation**: To transform the DateTime into other DateTimes, use {@link set}, {@link reconfigure}, {@link setZone}, {@link setLocale}, {@link plus}, {@link minus}, {@link endOf}, {@link startOf}, {@link toUTC}, and {@link toLocal}.\n * * **Output**: To convert the DateTime to other representations, use the {@link toRelative}, {@link toRelativeCalendar}, {@link toJSON}, {@link toISO}, {@link toHTTP}, {@link toObject}, {@link toRFC2822}, {@link toString}, {@link toLocaleString}, {@link toFormat}, {@link toMillis} and {@link toJSDate}.\n *\n * There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.\n */\nexport default class DateTime {\n /**\n * @access private\n */\n constructor(config) {\n const zone = config.zone || Settings.defaultZone;\n\n let invalid =\n config.invalid ||\n (Number.isNaN(config.ts) ? new Invalid(\"invalid input\") : null) ||\n (!zone.isValid ? unsupportedZone(zone) : null);\n /**\n * @access private\n */\n this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;\n\n let c = null,\n o = null;\n if (!invalid) {\n const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);\n\n if (unchanged) {\n [c, o] = [config.old.c, config.old.o];\n } else {\n const ot = zone.offset(this.ts);\n c = tsToObj(this.ts, ot);\n invalid = Number.isNaN(c.year) ? new Invalid(\"invalid input\") : null;\n c = invalid ? null : c;\n o = invalid ? null : ot;\n }\n }\n\n /**\n * @access private\n */\n this._zone = zone;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.invalid = invalid;\n /**\n * @access private\n */\n this.weekData = null;\n /**\n * @access private\n */\n this.c = c;\n /**\n * @access private\n */\n this.o = o;\n /**\n * @access private\n */\n this.isLuxonDateTime = true;\n }\n\n // CONSTRUCT\n\n /**\n * Create a local DateTime\n * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.local() //~> now\n * @example DateTime.local(2017) //~> 2017-01-01T00:00:00\n * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00\n * @example DateTime.local(2017, 3, 12) //~> 2017-03-12T00:00:00\n * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00\n * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00\n * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10\n * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765\n * @return {DateTime}\n */\n static local(year, month, day, hour, minute, second, millisecond) {\n if (isUndefined(year)) {\n return new DateTime({ ts: Settings.now() });\n } else {\n return quickDT(\n {\n year,\n month,\n day,\n hour,\n minute,\n second,\n millisecond\n },\n Settings.defaultZone\n );\n }\n }\n\n /**\n * Create a DateTime in UTC\n * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.utc() //~> now\n * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z\n * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z\n * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765Z\n * @return {DateTime}\n */\n static utc(year, month, day, hour, minute, second, millisecond) {\n if (isUndefined(year)) {\n return new DateTime({\n ts: Settings.now(),\n zone: FixedOffsetZone.utcInstance\n });\n } else {\n return quickDT(\n {\n year,\n month,\n day,\n hour,\n minute,\n second,\n millisecond\n },\n FixedOffsetZone.utcInstance\n );\n }\n }\n\n /**\n * Create a DateTime from a Javascript Date object. Uses the default zone.\n * @param {Date} date - a Javascript Date object\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @return {DateTime}\n */\n static fromJSDate(date, options = {}) {\n const ts = isDate(date) ? date.valueOf() : NaN;\n if (Number.isNaN(ts)) {\n return DateTime.invalid(\"invalid input\");\n }\n\n const zoneToUse = normalizeZone(options.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n return new DateTime({\n ts: ts,\n zone: zoneToUse,\n loc: Locale.fromObject(options)\n });\n }\n\n /**\n * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} milliseconds - a number of milliseconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromMillis(milliseconds, options = {}) {\n if (!isNumber(milliseconds)) {\n throw new InvalidArgumentError(\n `fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`\n );\n } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {\n // this isn't perfect because because we can still end up out of range because of additional shifting, but it's a start\n return DateTime.invalid(\"Timestamp out of range\");\n } else {\n return new DateTime({\n ts: milliseconds,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options)\n });\n }\n }\n\n /**\n * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} seconds - a number of seconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromSeconds(seconds, options = {}) {\n if (!isNumber(seconds)) {\n throw new InvalidArgumentError(\"fromSeconds requires a numerical input\");\n } else {\n return new DateTime({\n ts: seconds * 1000,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options)\n });\n }\n }\n\n /**\n * Create a DateTime from a Javascript object with keys like 'year' and 'hour' with reasonable defaults.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.year - a year, such as 1987\n * @param {number} obj.month - a month, 1-12\n * @param {number} obj.day - a day of the month, 1-31, depending on the month\n * @param {number} obj.ordinal - day of the year, 1-365 or 366\n * @param {number} obj.weekYear - an ISO week year\n * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year\n * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday\n * @param {number} obj.hour - hour of the day, 0-23\n * @param {number} obj.minute - minute of the hour, 0-59\n * @param {number} obj.second - second of the minute, 0-59\n * @param {number} obj.millisecond - millisecond of the second, 0-999\n * @param {string|Zone} [obj.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()\n * @param {string} [obj.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} obj.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} obj.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'\n * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'utc' }),\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'local' })\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6, zone: 'America/New_York' })\n * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'\n * @return {DateTime}\n */\n static fromObject(obj) {\n const zoneToUse = normalizeZone(obj.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n const tsNow = Settings.now(),\n offsetProvis = zoneToUse.offset(tsNow),\n normalized = normalizeObject(obj, normalizeUnit, [\n \"zone\",\n \"locale\",\n \"outputCalendar\",\n \"numberingSystem\"\n ]),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber,\n loc = Locale.fromObject(obj);\n\n // cases:\n // just a weekday -> this week's instance of that weekday, no worries\n // (gregorian data or ordinal) + (weekYear or weekNumber) -> error\n // (gregorian month or day) + ordinal -> error\n // otherwise just use weeks or ordinals or gregorian, depending on what's specified\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n const useWeekData = definiteWeekDef || (normalized.weekday && !containsGregor);\n\n // configure ourselves to deal with gregorian dates or week stuff\n let units,\n defaultValues,\n objNow = tsToObj(tsNow, offsetProvis);\n if (useWeekData) {\n units = orderedWeekUnits;\n defaultValues = defaultWeekUnitValues;\n objNow = gregorianToWeek(objNow);\n } else if (containsOrdinal) {\n units = orderedOrdinalUnits;\n defaultValues = defaultOrdinalUnitValues;\n objNow = gregorianToOrdinal(objNow);\n } else {\n units = orderedUnits;\n defaultValues = defaultUnitValues;\n }\n\n // set default values for missing stuff\n let foundFirst = false;\n for (const u of units) {\n const v = normalized[u];\n if (!isUndefined(v)) {\n foundFirst = true;\n } else if (foundFirst) {\n normalized[u] = defaultValues[u];\n } else {\n normalized[u] = objNow[u];\n }\n }\n\n // make sure the values we have are in range\n const higherOrderInvalid = useWeekData\n ? hasInvalidWeekData(normalized)\n : containsOrdinal\n ? hasInvalidOrdinalData(normalized)\n : hasInvalidGregorianData(normalized),\n invalid = higherOrderInvalid || hasInvalidTimeData(normalized);\n\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n // compute the actual time\n const gregorian = useWeekData\n ? weekToGregorian(normalized)\n : containsOrdinal\n ? ordinalToGregorian(normalized)\n : normalized,\n [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse),\n inst = new DateTime({\n ts: tsFinal,\n zone: zoneToUse,\n o: offsetFinal,\n loc\n });\n\n // gregorian data + weekday serves only to validate\n if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {\n return DateTime.invalid(\n \"mismatched weekday\",\n `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`\n );\n }\n\n return inst;\n }\n\n /**\n * Create a DateTime from an ISO 8601 string\n * @param {string} text - the ISO string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromISO('2016-05-25T09:08:34.123')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})\n * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})\n * @example DateTime.fromISO('2016-W05-4')\n * @return {DateTime}\n */\n static fromISO(text, opts = {}) {\n const [vals, parsedZone] = parseISODate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"ISO 8601\", text);\n }\n\n /**\n * Create a DateTime from an RFC 2822 string\n * @param {string} text - the RFC 2822 string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')\n * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')\n * @return {DateTime}\n */\n static fromRFC2822(text, opts = {}) {\n const [vals, parsedZone] = parseRFC2822Date(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"RFC 2822\", text);\n }\n\n /**\n * Create a DateTime from an HTTP header date\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @param {string} text - the HTTP header date\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')\n * @return {DateTime}\n */\n static fromHTTP(text, opts = {}) {\n const [vals, parsedZone] = parseHTTPDate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"HTTP\", opts);\n }\n\n /**\n * Create a DateTime from an input string and format string.\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @see https://moment.github.io/luxon/docs/manual/parsing.html#table-of-tokens\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromFormat(text, fmt, opts = {}) {\n if (isUndefined(text) || isUndefined(fmt)) {\n throw new InvalidArgumentError(\"fromFormat requires an input string and a format\");\n }\n\n const { locale = null, numberingSystem = null } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true\n }),\n [vals, parsedZone, invalid] = parseFromTokens(localeToUse, text, fmt);\n if (invalid) {\n return DateTime.invalid(invalid);\n } else {\n return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text);\n }\n }\n\n /**\n * @deprecated use fromFormat instead\n */\n static fromString(text, fmt, opts = {}) {\n return DateTime.fromFormat(text, fmt, opts);\n }\n\n /**\n * Create a DateTime from a SQL date, time, or datetime\n * Defaults to en-US if no locale has been specified, regardless of the system's locale\n * @param {string} text - the string to parse\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @example DateTime.fromSQL('2017-05-15')\n * @example DateTime.fromSQL('2017-05-15 09:12:34')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })\n * @example DateTime.fromSQL('09:12:34.342')\n * @return {DateTime}\n */\n static fromSQL(text, opts = {}) {\n const [vals, parsedZone] = parseSQL(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"SQL\", text);\n }\n\n /**\n * Create an invalid DateTime.\n * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {DateTime}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the DateTime is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDateTimeError(invalid);\n } else {\n return new DateTime({ invalid });\n }\n }\n\n /**\n * Check if an object is a DateTime. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDateTime(o) {\n return (o && o.isLuxonDateTime) || false;\n }\n\n // INFO\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example DateTime.local(2017, 7, 4).get('month'); //=> 7\n * @example DateTime.local(2017, 7, 4).get('day'); //=> 4\n * @return {number}\n */\n get(unit) {\n return this[unit];\n }\n\n /**\n * Returns whether the DateTime is valid. Invalid DateTimes occur when:\n * * The DateTime was created from invalid calendar information, such as the 13th month or February 30\n * * The DateTime was created by an operation on another invalid date\n * @type {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this DateTime is invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime\n *\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime\n *\n * @type {string}\n */\n get outputCalendar() {\n return this.isValid ? this.loc.outputCalendar : null;\n }\n\n /**\n * Get the time zone associated with this DateTime.\n * @type {Zone}\n */\n get zone() {\n return this._zone;\n }\n\n /**\n * Get the name of the time zone.\n * @type {string}\n */\n get zoneName() {\n return this.isValid ? this.zone.name : null;\n }\n\n /**\n * Get the year\n * @example DateTime.local(2017, 5, 25).year //=> 2017\n * @type {number}\n */\n get year() {\n return this.isValid ? this.c.year : NaN;\n }\n\n /**\n * Get the quarter\n * @example DateTime.local(2017, 5, 25).quarter //=> 2\n * @type {number}\n */\n get quarter() {\n return this.isValid ? Math.ceil(this.c.month / 3) : NaN;\n }\n\n /**\n * Get the month (1-12).\n * @example DateTime.local(2017, 5, 25).month //=> 5\n * @type {number}\n */\n get month() {\n return this.isValid ? this.c.month : NaN;\n }\n\n /**\n * Get the day of the month (1-30ish).\n * @example DateTime.local(2017, 5, 25).day //=> 25\n * @type {number}\n */\n get day() {\n return this.isValid ? this.c.day : NaN;\n }\n\n /**\n * Get the hour of the day (0-23).\n * @example DateTime.local(2017, 5, 25, 9).hour //=> 9\n * @type {number}\n */\n get hour() {\n return this.isValid ? this.c.hour : NaN;\n }\n\n /**\n * Get the minute of the hour (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30\n * @type {number}\n */\n get minute() {\n return this.isValid ? this.c.minute : NaN;\n }\n\n /**\n * Get the second of the minute (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52\n * @type {number}\n */\n get second() {\n return this.isValid ? this.c.second : NaN;\n }\n\n /**\n * Get the millisecond of the second (0-999).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654\n * @type {number}\n */\n get millisecond() {\n return this.isValid ? this.c.millisecond : NaN;\n }\n\n /**\n * Get the week year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 11, 31).weekYear //=> 2015\n * @type {number}\n */\n get weekYear() {\n return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the week number of the week year (1-52ish).\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2017, 5, 25).weekNumber //=> 21\n * @type {number}\n */\n get weekNumber() {\n return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the day of the week.\n * 1 is Monday and 7 is Sunday\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 11, 31).weekday //=> 4\n * @type {number}\n */\n get weekday() {\n return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;\n }\n\n /**\n * Get the ordinal (meaning the day of the year)\n * @example DateTime.local(2017, 5, 25).ordinal //=> 145\n * @type {number|DateTime}\n */\n get ordinal() {\n return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;\n }\n\n /**\n * Get the human readable short month name, such as 'Oct'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthShort //=> Oct\n * @type {string}\n */\n get monthShort() {\n return this.isValid ? Info.months(\"short\", { locale: this.locale })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable long month name, such as 'October'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthLong //=> October\n * @type {string}\n */\n get monthLong() {\n return this.isValid ? Info.months(\"long\", { locale: this.locale })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable short weekday, such as 'Mon'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon\n * @type {string}\n */\n get weekdayShort() {\n return this.isValid ? Info.weekdays(\"short\", { locale: this.locale })[this.weekday - 1] : null;\n }\n\n /**\n * Get the human readable long weekday, such as 'Monday'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday\n * @type {string}\n */\n get weekdayLong() {\n return this.isValid ? Info.weekdays(\"long\", { locale: this.locale })[this.weekday - 1] : null;\n }\n\n /**\n * Get the UTC offset of this DateTime in minutes\n * @example DateTime.local().offset //=> -240\n * @example DateTime.utc().offset //=> 0\n * @type {number}\n */\n get offset() {\n return this.isValid ? +this.o : NaN;\n }\n\n /**\n * Get the short human name for the zone's current offset, for example \"EST\" or \"EDT\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameShort() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"short\",\n locale: this.locale\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get the long human name for the zone's current offset, for example \"Eastern Standard Time\" or \"Eastern Daylight Time\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameLong() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"long\",\n locale: this.locale\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get whether this zone's offset ever changes, as in a DST.\n * @type {boolean}\n */\n get isOffsetFixed() {\n return this.isValid ? this.zone.universal : null;\n }\n\n /**\n * Get whether the DateTime is in a DST.\n * @type {boolean}\n */\n get isInDST() {\n if (this.isOffsetFixed) {\n return false;\n } else {\n return (\n this.offset > this.set({ month: 1 }).offset || this.offset > this.set({ month: 5 }).offset\n );\n }\n }\n\n /**\n * Returns true if this DateTime is in a leap year, false otherwise\n * @example DateTime.local(2016).isInLeapYear //=> true\n * @example DateTime.local(2013).isInLeapYear //=> false\n * @type {boolean}\n */\n get isInLeapYear() {\n return isLeapYear(this.year);\n }\n\n /**\n * Returns the number of days in this DateTime's month\n * @example DateTime.local(2016, 2).daysInMonth //=> 29\n * @example DateTime.local(2016, 3).daysInMonth //=> 31\n * @type {number}\n */\n get daysInMonth() {\n return daysInMonth(this.year, this.month);\n }\n\n /**\n * Returns the number of days in this DateTime's year\n * @example DateTime.local(2016).daysInYear //=> 366\n * @example DateTime.local(2013).daysInYear //=> 365\n * @type {number}\n */\n get daysInYear() {\n return this.isValid ? daysInYear(this.year) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2004).weeksInWeekYear //=> 53\n * @example DateTime.local(2013).weeksInWeekYear //=> 52\n * @type {number}\n */\n get weeksInWeekYear() {\n return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;\n }\n\n /**\n * Returns the resolved Intl options for this DateTime.\n * This is useful in understanding the behavior of formatting methods\n * @param {Object} opts - the same options as toLocaleString\n * @return {Object}\n */\n resolvedLocaleOpts(opts = {}) {\n const { locale, numberingSystem, calendar } = Formatter.create(\n this.loc.clone(opts),\n opts\n ).resolvedOptions(this);\n return { locale, numberingSystem, outputCalendar: calendar };\n }\n\n // TRANSFORM\n\n /**\n * \"Set\" the DateTime's zone to UTC. Returns a newly-constructed DateTime.\n *\n * Equivalent to {@link setZone}('utc')\n * @param {number} [offset=0] - optionally, an offset from UTC in minutes\n * @param {Object} [opts={}] - options to pass to `setZone()`\n * @return {DateTime}\n */\n toUTC(offset = 0, opts = {}) {\n return this.setZone(FixedOffsetZone.instance(offset), opts);\n }\n\n /**\n * \"Set\" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.\n *\n * Equivalent to `setZone('local')`\n * @return {DateTime}\n */\n toLocal() {\n return this.setZone(Settings.defaultZone);\n }\n\n /**\n * \"Set\" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.\n *\n * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link plus}. You may wish to use {@link toLocal} and {@link toUTC} which provide simple convenience wrappers for commonly used zones.\n * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link Zone} class.\n * @param {Object} opts - options\n * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.\n * @return {DateTime}\n */\n setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) {\n zone = normalizeZone(zone, Settings.defaultZone);\n if (zone.equals(this.zone)) {\n return this;\n } else if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n } else {\n let newTS = this.ts;\n if (keepLocalTime || keepCalendarTime) {\n const offsetGuess = zone.offset(this.ts);\n const asObj = this.toObject();\n [newTS] = objToTS(asObj, offsetGuess, zone);\n }\n return clone(this, { ts: newTS, zone });\n }\n }\n\n /**\n * \"Set\" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.\n * @param {Object} properties - the properties to set\n * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })\n * @return {DateTime}\n */\n reconfigure({ locale, numberingSystem, outputCalendar } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem, outputCalendar });\n return clone(this, { loc });\n }\n\n /**\n * \"Set\" the locale. Returns a newly-constructed DateTime.\n * Just a convenient alias for reconfigure({ locale })\n * @example DateTime.local(2017, 5, 25).setLocale('en-GB')\n * @return {DateTime}\n */\n setLocale(locale) {\n return this.reconfigure({ locale });\n }\n\n /**\n * \"Set\" the values of specified units. Returns a newly-constructed DateTime.\n * You can only set units with this method; for \"setting\" metadata, see {@link reconfigure} and {@link setZone}.\n * @param {Object} values - a mapping of units to numbers\n * @example dt.set({ year: 2017 })\n * @example dt.set({ hour: 8, minute: 30 })\n * @example dt.set({ weekday: 5 })\n * @example dt.set({ year: 2005, ordinal: 234 })\n * @return {DateTime}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const normalized = normalizeObject(values, normalizeUnit, []),\n settingWeekStuff =\n !isUndefined(normalized.weekYear) ||\n !isUndefined(normalized.weekNumber) ||\n !isUndefined(normalized.weekday);\n\n let mixed;\n if (settingWeekStuff) {\n mixed = weekToGregorian(Object.assign(gregorianToWeek(this.c), normalized));\n } else if (!isUndefined(normalized.ordinal)) {\n mixed = ordinalToGregorian(Object.assign(gregorianToOrdinal(this.c), normalized));\n } else {\n mixed = Object.assign(this.toObject(), normalized);\n\n // if we didn't set the day but we ended up on an overflow date,\n // use the last day of the right month\n if (isUndefined(normalized.day)) {\n mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);\n }\n }\n\n const [ts, o] = objToTS(mixed, this.o, this.zone);\n return clone(this, { ts, o });\n }\n\n /**\n * Add a period of time to this DateTime and return the resulting DateTime\n *\n * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @example DateTime.local().plus(123) //~> in 123 milliseconds\n * @example DateTime.local().plus({ minutes: 15 }) //~> in 15 minutes\n * @example DateTime.local().plus({ days: 1 }) //~> this time tomorrow\n * @example DateTime.local().plus({ days: -1 }) //~> this time yesterday\n * @example DateTime.local().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min\n * @example DateTime.local().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min\n * @return {DateTime}\n */\n plus(duration) {\n if (!this.isValid) return this;\n const dur = friendlyDuration(duration);\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * Subtract a period of time to this DateTime and return the resulting DateTime\n * See {@link plus}\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n @return {DateTime}\n */\n minus(duration) {\n if (!this.isValid) return this;\n const dur = friendlyDuration(duration).negate();\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * \"Set\" this DateTime to the beginning of a unit of time.\n * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'\n * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'\n * @return {DateTime}\n */\n startOf(unit) {\n if (!this.isValid) return this;\n const o = {},\n normalizedUnit = Duration.normalizeUnit(unit);\n switch (normalizedUnit) {\n case \"years\":\n o.month = 1;\n // falls through\n case \"quarters\":\n case \"months\":\n o.day = 1;\n // falls through\n case \"weeks\":\n case \"days\":\n o.hour = 0;\n // falls through\n case \"hours\":\n o.minute = 0;\n // falls through\n case \"minutes\":\n o.second = 0;\n // falls through\n case \"seconds\":\n o.millisecond = 0;\n break;\n case \"milliseconds\":\n break;\n // no default, invalid units throw in normalizeUnit()\n }\n\n if (normalizedUnit === \"weeks\") {\n o.weekday = 1;\n }\n\n if (normalizedUnit === \"quarters\") {\n const q = Math.ceil(this.month / 3);\n o.month = (q - 1) * 3 + 1;\n }\n\n return this.set(o);\n }\n\n /**\n * \"Set\" this DateTime to the end (meaning the last millisecond) of a unit of time\n * @param {string} unit - The unit to go to the end of. Can be 'year', 'month', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'\n * @return {DateTime}\n */\n endOf(unit) {\n return this.isValid\n ? this.plus({ [unit]: 1 })\n .startOf(unit)\n .minus(1)\n : this;\n }\n\n // OUTPUT\n\n /**\n * Returns a string representation of this DateTime formatted according to the specified format string.\n * **You may not want this.** See {@link toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens).\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @see https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens\n * @param {string} fmt - the format string\n * @param {Object} opts - opts to override the configuration options\n * @example DateTime.local().toFormat('yyyy LLL dd') //=> '2017 Apr 22'\n * @example DateTime.local().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'\n * @example DateTime.local().toFormat('yyyy LLL dd', { locale: \"fr\" }) //=> '2017 avr. 22'\n * @example DateTime.local().toFormat(\"HH 'hours and' mm 'minutes'\") //=> '20 hours and 55 minutes'\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.\n * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation\n * of the DateTime in the assigned locale.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param opts {Object} - Intl.DateTimeFormat constructor options and configuration options\n * @example DateTime.local().toLocaleString(); //=> 4/20/2017\n * @example DateTime.local().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'\n * @example DateTime.local().toLocaleString({ locale: 'en-gb' }); //=> '20/04/2017'\n * @example DateTime.local().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'\n * @example DateTime.local().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'\n * @example DateTime.local().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'\n * @example DateTime.local().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'\n * @example DateTime.local().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'\n * @example DateTime.local().toLocaleString({ hour: '2-digit', minute: '2-digit', hour12: false }); //=> '11:32'\n * @return {string}\n */\n toLocaleString(opts = Formats.DATE_SHORT) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), opts).formatDateTime(this)\n : INVALID;\n }\n\n /**\n * Returns an array of format \"parts\", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts\n * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.\n * @example DateTime.local().toLocaleParts(); //=> [\n * //=> { type: 'day', value: '25' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'month', value: '05' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'year', value: '1982' }\n * //=> ]\n */\n toLocaleParts(opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this)\n : [];\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1982, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'\n * @example DateTime.local().toISO() //=> '2017-04-22T20:47:05.335-04:00'\n * @example DateTime.local().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'\n * @example DateTime.local().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'\n * @return {string}\n */\n toISO(opts = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return `${this.toISODate(opts)}T${this.toISOTime(opts)}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's date component\n * @param {Object} opts - options\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'\n * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'\n * @return {string}\n */\n toISODate({ format = \"extended\" } = {}) {\n let fmt = format === \"basic\" ? \"yyyyMMdd\" : \"yyyy-MM-dd\";\n if (this.year > 9999) {\n fmt = \"+\" + fmt;\n }\n\n return toTechFormat(this, fmt);\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's week date\n * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'\n * @return {string}\n */\n toISOWeekDate() {\n return toTechFormat(this, \"kkkk-'W'WW-c\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's time component\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'\n * @return {string}\n */\n toISOTime({\n suppressMilliseconds = false,\n suppressSeconds = false,\n includeOffset = true,\n format = \"extended\"\n } = {}) {\n return toTechTimeFormat(this, {\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n format\n });\n }\n\n /**\n * Returns an RFC 2822-compatible string representation of this DateTime, always in UTC\n * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'\n * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'\n * @return {string}\n */\n toRFC2822() {\n return toTechFormat(this, \"EEE, dd LLL yyyy HH:mm:ss ZZZ\", false);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in HTTP headers.\n * Specifically, the string conforms to RFC 1123.\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'\n * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'\n * @return {string}\n */\n toHTTP() {\n return toTechFormat(this.toUTC(), \"EEE, dd LLL yyyy HH:mm:ss 'GMT'\");\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Date\n * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'\n * @return {string}\n */\n toSQLDate() {\n return toTechFormat(this, \"yyyy-MM-dd\");\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Time\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @example DateTime.utc().toSQL() //=> '05:15:16.345'\n * @example DateTime.local().toSQL() //=> '05:15:16.345 -04:00'\n * @example DateTime.local().toSQL({ includeOffset: false }) //=> '05:15:16.345'\n * @example DateTime.local().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'\n * @return {string}\n */\n toSQLTime({ includeOffset = true, includeZone = false } = {}) {\n return toTechTimeFormat(this, {\n includeOffset,\n includeZone,\n spaceZone: true\n });\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'\n * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'\n * @return {string}\n */\n toSQL(opts = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return `${this.toSQLDate()} ${this.toSQLTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for debugging\n * @return {string}\n */\n toString() {\n return this.isValid ? this.toISO() : INVALID;\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime. Alias of {@link toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime.\n * @return {number}\n */\n toMillis() {\n return this.isValid ? this.ts : NaN;\n }\n\n /**\n * Returns the epoch seconds of this DateTime.\n * @return {number}\n */\n toSeconds() {\n return this.isValid ? this.ts / 1000 : NaN;\n }\n\n /**\n * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns a BSON serializable equivalent to this DateTime.\n * @return {Date}\n */\n toBSON() {\n return this.toJSDate();\n }\n\n /**\n * Returns a Javascript object with this DateTime's year, month, day, and so on.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example DateTime.local().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }\n * @return {Object}\n */\n toObject(opts = {}) {\n if (!this.isValid) return {};\n\n const base = Object.assign({}, this.c);\n\n if (opts.includeConfig) {\n base.outputCalendar = this.outputCalendar;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n\n /**\n * Returns a Javascript Date equivalent to this DateTime.\n * @return {Date}\n */\n toJSDate() {\n return new Date(this.isValid ? this.ts : NaN);\n }\n\n // COMPARE\n\n /**\n * Return the difference between two DateTimes as a Duration.\n * @param {DateTime} otherDateTime - the DateTime to compare this one to\n * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example\n * var i1 = DateTime.fromISO('1982-05-25T09:45'),\n * i2 = DateTime.fromISO('1983-10-14T10:30');\n * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }\n * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }\n * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }\n * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }\n * @return {Duration}\n */\n diff(otherDateTime, unit = \"milliseconds\", opts = {}) {\n if (!this.isValid || !otherDateTime.isValid) {\n return Duration.invalid(\n this.invalid || otherDateTime.invalid,\n \"created by diffing an invalid DateTime\"\n );\n }\n\n const durOpts = Object.assign(\n { locale: this.locale, numberingSystem: this.numberingSystem },\n opts\n );\n\n const units = maybeArray(unit).map(Duration.normalizeUnit),\n otherIsLater = otherDateTime.valueOf() > this.valueOf(),\n earlier = otherIsLater ? this : otherDateTime,\n later = otherIsLater ? otherDateTime : this,\n diffed = diff(earlier, later, units, durOpts);\n\n return otherIsLater ? diffed.negate() : diffed;\n }\n\n /**\n * Return the difference between this DateTime and right now.\n * See {@link diff}\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n diffNow(unit = \"milliseconds\", opts = {}) {\n return this.diff(DateTime.local(), unit, opts);\n }\n\n /**\n * Return an Interval spanning between this DateTime and another DateTime\n * @param {DateTime} otherDateTime - the other end point of the Interval\n * @return {Interval}\n */\n until(otherDateTime) {\n return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;\n }\n\n /**\n * Return whether this DateTime is in the same unit of time as another DateTime\n * @param {DateTime} otherDateTime - the other DateTime\n * @param {string} unit - the unit of time to check sameness on\n * @example DateTime.local().hasSame(otherDT, 'day'); //~> true if both the same calendar day\n * @return {boolean}\n */\n hasSame(otherDateTime, unit) {\n if (!this.isValid) return false;\n if (unit === \"millisecond\") {\n return this.valueOf() === otherDateTime.valueOf();\n } else {\n const inputMs = otherDateTime.valueOf();\n return this.startOf(unit) <= inputMs && inputMs <= this.endOf(unit);\n }\n }\n\n /**\n * Equality check\n * Two DateTimes are equal iff they represent the same millisecond, have the same zone and location, and are both valid.\n * To compare just the millisecond values, use `+dt1 === +dt2`.\n * @param {DateTime} other - the other DateTime\n * @return {boolean}\n */\n equals(other) {\n return (\n this.isValid &&\n other.isValid &&\n this.valueOf() === other.valueOf() &&\n this.zone.equals(other.zone) &&\n this.loc.equals(other.loc)\n );\n }\n\n /**\n * Returns a string representation of a this time relative to now, such as \"in two days\". Can only internationalize if your\n * platform supports Intl.RelativeTimeFormat. Rounds down by default.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.local()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} [options.style=\"long\"] - the style of units, must be \"long\", \"short\", or \"narrow\"\n * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", or \"seconds\"\n * @param {boolean} [options.round=true] - whether to round the numbers in the output.\n * @param {boolean} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.local().plus({ days: 1 }).toRelative() //=> \"in 1 day\"\n * @example DateTime.local().setLocale(\"es\").toRelative({ days: 1 }) //=> \"dentro de 1 día\"\n * @example DateTime.local().plus({ days: 1 }).toRelative({ locale: \"fr\" }) //=> \"dans 23 heures\"\n * @example DateTime.local().minus({ days: 2 }).toRelative() //=> \"2 days ago\"\n * @example DateTime.local().minus({ days: 2 }).toRelative({ unit: \"hours\" }) //=> \"48 hours ago\"\n * @example DateTime.local().minus({ hours: 36 }).toRelative({ round: false }) //=> \"1.5 days ago\"\n */\n toRelative(options = {}) {\n if (!this.isValid) return null;\n const base = options.base || DateTime.fromObject({ zone: this.zone }),\n padding = options.padding ? (this < base ? -options.padding : options.padding) : 0;\n return diffRelative(\n base,\n this.plus(padding),\n Object.assign(options, {\n numeric: \"always\",\n units: [\"years\", \"months\", \"days\", \"hours\", \"minutes\", \"seconds\"]\n })\n );\n }\n\n /**\n * Returns a string representation of this date relative to today, such as \"yesterday\" or \"next month\".\n * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.local()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", or \"days\"\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.local().plus({ days: 1 }).toRelativeCalendar() //=> \"tomorrow\"\n * @example DateTime.local().setLocale(\"es\").plus({ days: 1 }).toRelative() //=> \"\"mañana\"\n * @example DateTime.local().plus({ days: 1 }).toRelativeCalendar({ locale: \"fr\" }) //=> \"demain\"\n * @example DateTime.local().minus({ days: 2 }).toRelativeCalendar() //=> \"2 days ago\"\n */\n toRelativeCalendar(options = {}) {\n if (!this.isValid) return null;\n\n return diffRelative(\n options.base || DateTime.fromObject({ zone: this.zone }),\n this,\n Object.assign(options, {\n numeric: \"auto\",\n units: [\"years\", \"months\", \"days\"],\n calendary: true\n })\n );\n }\n\n /**\n * Return the min of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum\n * @return {DateTime} the min DateTime, or undefined if called with no argument\n */\n static min(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"min requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, i => i.valueOf(), Math.min);\n }\n\n /**\n * Return the max of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum\n * @return {DateTime} the max DateTime, or undefined if called with no argument\n */\n static max(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"max requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, i => i.valueOf(), Math.max);\n }\n\n // MISC\n\n /**\n * Explain how a string would be parsed by fromFormat()\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see description)\n * @param {Object} options - options taken by fromFormat()\n * @return {Object}\n */\n static fromFormatExplain(text, fmt, options = {}) {\n const { locale = null, numberingSystem = null } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true\n });\n return explainFromTokens(localeToUse, text, fmt);\n }\n\n /**\n * @deprecated use fromFormatExplain instead\n */\n static fromStringExplain(text, fmt, options = {}) {\n return DateTime.fromFormatExplain(text, fmt, options);\n }\n\n // FORMAT PRESETS\n\n /**\n * {@link toLocaleString} format like 10/14/1983\n * @type {Object}\n */\n static get DATE_SHORT() {\n return Formats.DATE_SHORT;\n }\n\n /**\n * {@link toLocaleString} format like 'Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED() {\n return Formats.DATE_MED;\n }\n\n /**\n * {@link toLocaleString} format like 'October 14, 1983'\n * @type {Object}\n */\n static get DATE_FULL() {\n return Formats.DATE_FULL;\n }\n\n /**\n * {@link toLocaleString} format like 'Tuesday, October 14, 1983'\n * @type {Object}\n */\n static get DATE_HUGE() {\n return Formats.DATE_HUGE;\n }\n\n /**\n * {@link toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_SIMPLE() {\n return Formats.TIME_SIMPLE;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SECONDS() {\n return Formats.TIME_WITH_SECONDS;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SHORT_OFFSET() {\n return Formats.TIME_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_LONG_OFFSET() {\n return Formats.TIME_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link toLocaleString} format like '09:30', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_SIMPLE() {\n return Formats.TIME_24_SIMPLE;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SECONDS() {\n return Formats.TIME_24_WITH_SECONDS;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23 EDT', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SHORT_OFFSET() {\n return Formats.TIME_24_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_LONG_OFFSET() {\n return Formats.TIME_24_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT() {\n return Formats.DATETIME_SHORT;\n }\n\n /**\n * {@link toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT_WITH_SECONDS() {\n return Formats.DATETIME_SHORT_WITH_SECONDS;\n }\n\n /**\n * {@link toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED() {\n return Formats.DATETIME_MED;\n }\n\n /**\n * {@link toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_SECONDS() {\n return Formats.DATETIME_MED_WITH_SECONDS;\n }\n\n /**\n * {@link toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_WEEKDAY() {\n return Formats.DATETIME_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL() {\n return Formats.DATETIME_FULL;\n }\n\n /**\n * {@link toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL_WITH_SECONDS() {\n return Formats.DATETIME_FULL_WITH_SECONDS;\n }\n\n /**\n * {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE() {\n return Formats.DATETIME_HUGE;\n }\n\n /**\n * {@link toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE_WITH_SECONDS() {\n return Formats.DATETIME_HUGE_WITH_SECONDS;\n }\n}\n\n/**\n * @private\n */\nexport function friendlyDateTime(dateTimeish) {\n if (DateTime.isDateTime(dateTimeish)) {\n return dateTimeish;\n } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {\n return DateTime.fromJSDate(dateTimeish);\n } else if (dateTimeish && typeof dateTimeish === \"object\") {\n return DateTime.fromObject(dateTimeish);\n } else {\n throw new InvalidArgumentError(\n `Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`\n );\n }\n}\n","import { DateTime } from 'luxon';\nimport * as React from 'react';\n\nimport type { ICapacity, IModalComponentProps } from '@spinnaker/core';\nimport { ModalBody, ModalFooter, ModalHeader, ServerGroupReader, Spinner, useData } from '@spinnaker/core';\n\nimport type { ITitusServerGroup } from '../../../domain';\n\nexport interface ITitusScalingActivitiesProps extends IModalComponentProps {\n serverGroup: ITitusServerGroup;\n}\n\ntype JobState = 'Accepted' | 'KillInitiated' | 'Finished';\n\ninterface ITitusScalingEvent {\n capacity: ICapacity;\n date: string;\n jobId: string;\n jobState: JobState;\n reasonCode: string;\n reasonMessage: string;\n}\n\nexport const TitusScalingActivitiesModal = ({ dismissModal, serverGroup }: ITitusScalingActivitiesProps) => {\n const fetchScalingActivities = () => ServerGroupReader.getScalingActivities(serverGroup);\n\n const { result: scalingActivities, status, error } = useData(fetchScalingActivities, [], [serverGroup.id]);\n const loading = status === 'PENDING';\n\n const formatDate = (date: string) => {\n const newDate = new Date(date);\n return DateTime.fromJSDate(newDate).toFormat('yyyy-MM-dd HH:mm:ss ZZZZ');\n };\n\n return (\n <>\n <ModalHeader>{`Scaling activities for ${serverGroup.name}`}</ModalHeader>\n <ModalBody>\n <div className=\"flex-1 heading-3\">\n {loading && (\n <div className=\"horizontal center sp-margin-xl-yaxis\">\n <Spinner />\n </div>\n )}\n {!loading && Boolean(error) && (\n <div className=\"horizontal center sp-margin-xl-yaxis\">\n <h4>{`There was an error loading scaling activities for ${serverGroup.name}. Please try again later.`}</h4>\n </div>\n )}\n {!loading && !error && !Boolean(scalingActivities.length) && (\n <div className=\"horizontal center sp-margin-xl-yaxis\">\n <h4>{`No scaling activities found for ${serverGroup.name}.`}</h4>\n </div>\n )}\n {!loading && !error && Boolean(scalingActivities.length) && (\n <div className=\"middle sp-margin-xl-yaxis\">\n {scalingActivities.map((a: ITitusScalingEvent, i) => (\n <div key={`${i}-${a.jobId}`} className=\"sp-margin-xl-yaxis\">\n <p className=\"clearfix\">\n <span className={`label label-${a.jobState !== 'KillInitiated' ? 'success' : 'danger'} pull-left`}>\n {a.jobState}\n </span>\n <span className=\"label label-default pull-right\">{formatDate(a.date)}</span>\n </p>\n <p>{`${a.reasonMessage} Desired capacity is ${a.capacity?.desired || 'unknown'}.`}</p>\n </div>\n ))}\n </div>\n )}\n </div>\n </ModalBody>\n <ModalFooter\n primaryActions={\n <button className=\"btn btn-primary\" onClick={dismissModal}>\n Close\n </button>\n }\n />\n </>\n );\n};\n","import React from 'react';\n\nimport type { Application } from '@spinnaker/core';\nimport {\n confirmNotManaged,\n CurrentCapacity,\n DesiredCapacity,\n Overridable,\n ReactModal,\n showModal,\n} from '@spinnaker/core';\n\nimport type { ITitusServerGroup } from '../../domain';\nimport type { ITitusResizeServerGroupModalProps } from './resize/TitusResizeServerGroupModal';\nimport { TitusResizeServerGroupModal } from './resize/TitusResizeServerGroupModal';\nimport { TitusScalingActivitiesModal } from './scalingActivity/TitusScalingActivitiesModal';\n\ninterface ICapacityDetailsSectionProps {\n app: Application;\n serverGroup: ITitusServerGroup;\n}\n\n@Overridable('titus.serverGroup.CapacityDetailsSection')\nexport class TitusCapacityDetailsSection extends React.Component<ICapacityDetailsSectionProps> {\n public render(): JSX.Element {\n const { serverGroup, app: application } = this.props;\n const { capacity } = serverGroup;\n const current = serverGroup.instances.length;\n const simpleMode = capacity.min === capacity.max;\n\n const resizeServerGroup = () =>\n confirmNotManaged(serverGroup, application).then((notManaged) => {\n notManaged &&\n ReactModal.show<ITitusResizeServerGroupModalProps>(TitusResizeServerGroupModal, { serverGroup, application });\n });\n\n return (\n <>\n <dl className=\"dl-horizontal dl-narrow\">\n <DesiredCapacity capacity={capacity} simpleMode={simpleMode} />\n <CurrentCapacity currentCapacity={current} />\n {serverGroup.capacityGroup && (\n <>\n <dt>Cap. Group</dt>\n <dd>{serverGroup.capacityGroup}</dd>\n </>\n )}\n </dl>\n\n <div>\n <a className=\"clickable\" onClick={resizeServerGroup}>\n Resize Server Group\n </a>\n </div>\n <div>\n <a\n className=\"clickable\"\n onClick={() => showModal(TitusScalingActivitiesModal, { serverGroup }, { maxWidth: '1000px' })}\n >\n View Scaling Activities\n </a>\n </div>\n </>\n );\n }\n}\n","import * as React from 'react';\n\nimport type { IAmazonServerGroup, IScalingPolicyAlarm, ITargetTrackingConfiguration } from '@spinnaker/amazon';\nimport { MetricAlarmChart } from '@spinnaker/amazon';\nimport type { ICloudMetricStatistics } from '@spinnaker/core';\n\nexport interface ITitusTargetTrackingChartProps {\n config: ITargetTrackingConfiguration;\n serverGroup: IAmazonServerGroup;\n unit?: string;\n updateUnit?: (unit: string) => void;\n}\n\nexport const TitusTargetTrackingChart = ({ config, serverGroup, unit, updateUnit }: ITitusTargetTrackingChartProps) => {\n const [alarm, setAlarm] = React.useState<IScalingPolicyAlarm>({\n alarmName: null,\n alarmArn: null,\n metricName: null,\n namespace: null,\n statistic: 'Average',\n dimensions: [],\n period: 60,\n threshold: config.targetValue,\n comparisonOperator: 'GreaterThanThreshold',\n okactions: [],\n insufficientDataActions: [],\n alarmActions: [],\n evaluationPeriods: null,\n alarmDescription: null,\n unit: null,\n });\n\n const synchronizeAlarm = () => {\n const customMetric = config?.customizedMetricSpecification;\n const updatedAlarm = {\n ...alarm,\n dimensions: customMetric?.dimensions,\n metricName: customMetric?.metricName,\n namespace: customMetric?.namespace,\n statistic: customMetric?.statistic,\n threshold: config?.targetValue,\n };\n setAlarm(updatedAlarm);\n };\n\n React.useEffect(() => {\n synchronizeAlarm();\n }, [config]);\n\n const onChartLoaded = (stats: ICloudMetricStatistics) => {\n if (unit) {\n updateUnit(stats.unit);\n }\n };\n\n return <MetricAlarmChart alarm={alarm} onChartLoaded={onChartLoaded} serverGroup={serverGroup} />;\n};\n","import { cloneDeep } from 'lodash';\n\nimport type {\n IScalingPolicy,\n IScalingPolicyAlarmView,\n IStepAdjustment,\n IStepPolicyDescription,\n ITargetTrackingPolicy,\n IUpsertAlarmDescription,\n IUpsertScalingPolicyCommand,\n} from '@spinnaker/amazon';\nimport type { ITitusServerGroup } from '../../../../domain';\n\ntype PolicyType = 'Step' | 'TargetTracking';\n\nexport const TitusScalingPolicyCommandBuilder = {\n buildAlarm: (policy: IScalingPolicy, region: string): IUpsertAlarmDescription => {\n const alarm = policy?.alarms[0] as IScalingPolicyAlarmView;\n return {\n comparisonOperator: alarm.comparisonOperator,\n region,\n dimensions: alarm.dimensions,\n disableEditingDimensions: alarm.disableEditingDimensions,\n evaluationPeriods: alarm.evaluationPeriods,\n metricName: alarm.metricName,\n namespace: alarm.namespace,\n period: alarm.period,\n statistic: alarm.statistic,\n threshold: alarm.threshold,\n unit: alarm.unit,\n } as IUpsertAlarmDescription;\n },\n\n buildStepPolicy: (policy: IScalingPolicy, threshold: number, cooldown: number): IStepPolicyDescription => {\n const stepAdjustments = policy.stepAdjustments.map((adjustment) => {\n const step = {\n scalingAdjustment: Math.abs(adjustment.scalingAdjustment),\n } as IStepAdjustment;\n\n if (adjustment.metricIntervalUpperBound !== undefined) {\n step.metricIntervalUpperBound = adjustment.metricIntervalUpperBound + threshold;\n }\n if (adjustment.metricIntervalLowerBound !== undefined) {\n step.metricIntervalLowerBound = adjustment.metricIntervalLowerBound + threshold;\n }\n\n return step;\n });\n\n return {\n cooldown: cooldown || 600,\n estimatedInstanceWarmup: null,\n metricAggregationType: 'Average',\n stepAdjustments,\n };\n },\n\n buildNewCommand: (\n type: PolicyType,\n serverGroup: ITitusServerGroup,\n policy: ITargetTrackingPolicy,\n ): IUpsertScalingPolicyCommand => {\n const command = {\n adjustmentType: type === 'Step' ? policy.adjustmentType : null,\n cloudProvider: serverGroup.cloudProvider,\n credentials: serverGroup.account,\n jobId: serverGroup.id,\n name: policy.id,\n region: serverGroup.region,\n scalingPolicyID: policy.id,\n serverGroupName: serverGroup.name,\n } as IUpsertScalingPolicyCommand;\n\n if (type === 'Step') {\n command.alarm = TitusScalingPolicyCommandBuilder.buildAlarm(policy, serverGroup.region);\n command.minAdjustmentMagnitude = policy.minAdjustmentMagnitude || 1;\n command.step = TitusScalingPolicyCommandBuilder.buildStepPolicy(policy, command.alarm.threshold, policy.cooldown);\n }\n\n if (type === 'TargetTracking') {\n command.targetTrackingConfiguration = { ...policy.targetTrackingConfiguration };\n }\n\n return command;\n },\n\n prepareCommandForUpsert: (command: IUpsertScalingPolicyCommand, isRemove: boolean): IUpsertScalingPolicyCommand => {\n const commandToSubmit = cloneDeep(command);\n\n if (commandToSubmit.adjustmentType !== 'PercentChangeInCapacity') {\n delete commandToSubmit.minAdjustmentMagnitude;\n }\n\n if (commandToSubmit.step) {\n // adjust metricIntervalLowerBound/UpperBound for each step based on alarm threshold\n commandToSubmit.step.stepAdjustments.forEach((step) => {\n if (isRemove) {\n step.scalingAdjustment = 0 - step.scalingAdjustment;\n delete commandToSubmit.step.estimatedInstanceWarmup;\n }\n if (step.metricIntervalLowerBound !== undefined) {\n step.metricIntervalLowerBound -= commandToSubmit.alarm.threshold;\n }\n if (step.metricIntervalUpperBound !== undefined) {\n step.metricIntervalUpperBound -= commandToSubmit.alarm.threshold;\n }\n });\n } else {\n if (isRemove) {\n command.simple.scalingAdjustment = 0 - command.simple.scalingAdjustment;\n }\n }\n return commandToSubmit;\n },\n};\n","import * as React from 'react';\n\nimport type {\n IAmazonServerGroup,\n ITargetTrackingPolicy,\n ITargetTrackingPolicyCommand,\n IUpsertScalingPolicyCommand,\n} from '@spinnaker/amazon';\nimport { TargetMetricFields, TargetTrackingAdditionalSettings } from '@spinnaker/amazon';\nimport type { Application, IModalComponentProps } from '@spinnaker/core';\nimport { TaskMonitorModal } from '@spinnaker/core';\n\nimport type { ITitusServerGroup } from '../../../../domain';\nimport { TitusScalingPolicyCommandBuilder } from '../upsert/TitusScalingPolicyCommandBuilderService';\n\nexport interface IUpsertTargetTrackingModalProps extends IModalComponentProps {\n app: Application;\n policy: ITargetTrackingPolicy;\n serverGroup: ITitusServerGroup;\n}\n\nexport const UpsertTargetTrackingModal = ({\n app,\n closeModal,\n dismissModal,\n policy,\n serverGroup,\n}: IUpsertTargetTrackingModalProps) => {\n const [isCustom, setIsCustom] = React.useState<boolean>(\n Boolean(policy.targetTrackingConfiguration?.customizedMetricSpecification),\n );\n\n const [command, setCommand] = React.useState<IUpsertScalingPolicyCommand>({} as IUpsertScalingPolicyCommand);\n React.useEffect(() => {\n const baseCommand = TitusScalingPolicyCommandBuilder.buildNewCommand('TargetTracking', serverGroup, policy);\n setCommand(baseCommand);\n }, []);\n\n const mode = policy.id ? 'Update' : 'Create';\n\n return (\n <TaskMonitorModal<IUpsertScalingPolicyCommand>\n closeModal={closeModal}\n dismissModal={dismissModal}\n title={`${mode} scaling policy`}\n application={app}\n description={`${mode} scaling policy for ${serverGroup.name}`}\n initialValues={command}\n mapValuesToTask={() => ({\n application: app,\n job: [\n {\n type: 'upsertScalingPolicy',\n ...command,\n },\n ],\n })}\n render={() => (\n <div className=\"modal-body\">\n <h4 className=\"section-heading\">Target Metric</h4>\n <TargetMetricFields\n allowDualMode={false}\n cloudwatch={true}\n command={command as ITargetTrackingPolicyCommand}\n isCustomMetric={isCustom}\n app={app}\n serverGroup={(serverGroup as unknown) as IAmazonServerGroup}\n toggleMetricType={(t) => setIsCustom(t === 'custom')}\n updateCommand={setCommand}\n />\n <h4 className=\"section-heading\">Additional Settings</h4>\n <TargetTrackingAdditionalSettings\n command={command}\n cooldowns={true}\n policyName={policy.policyName}\n updateCommand={setCommand}\n />\n </div>\n )}\n />\n );\n};\n","import { cloneDeep } from 'lodash';\nimport * as React from 'react';\n\nimport type {\n IScalingPolicy,\n IStepAdjustment,\n IStepPolicyDescription,\n ITargetTrackingPolicy,\n IUpsertScalingPolicyCommand,\n} from '@spinnaker/amazon';\nimport { AlarmConfigurer, ScalingPolicyAdditionalSettings, StepPolicyAction } from '@spinnaker/amazon';\nimport type { IAmazonServerGroup, IScalingPolicyAlarm } from '@spinnaker/amazon/src/domain';\nimport type { Application, IModalComponentProps } from '@spinnaker/core';\nimport { TaskMonitorModal } from '@spinnaker/core';\n\nimport { TitusScalingPolicyCommandBuilder } from './TitusScalingPolicyCommandBuilderService';\nimport type { ITitusServerGroup } from '../../../../domain';\n\ntype Operator = 'Add' | 'Remove' | 'Set to';\ntype AdjustmentTypeView = 'instances' | 'percent of group';\n\nexport interface IUpsertScalingPolicyModalProps extends IModalComponentProps {\n app: Application;\n policy: IScalingPolicy;\n serverGroup: ITitusServerGroup;\n}\n\nexport const UpsertScalingPolicyModal = ({\n app,\n closeModal,\n dismissModal,\n policy,\n serverGroup,\n}: IUpsertScalingPolicyModalProps) => {\n const [command, setCommand] = React.useState<IUpsertScalingPolicyCommand>({} as IUpsertScalingPolicyCommand);\n React.useEffect(() => {\n const baseCommand = TitusScalingPolicyCommandBuilder.buildNewCommand(\n 'Step',\n serverGroup,\n policy as ITargetTrackingPolicy,\n );\n setCommand(baseCommand);\n }, []);\n\n const adjustmentBasis = policy.stepAdjustments?.length\n ? policy.stepAdjustments[0].scalingAdjustment\n : policy.scalingAdjustment;\n const [action, setAction] = React.useState<Operator>(\n command.adjustmentType === 'ExactCapacity' ? 'Set to' : adjustmentBasis > 0 ? 'Add' : 'Remove',\n );\n const adjustmentTypeView =\n command.adjustmentType === 'ExactCapacity' || command.adjustmentType === 'ChangeInCapacity'\n ? 'instances'\n : 'percent of group';\n\n const mode = !policy.id ? 'Create' : 'Edit';\n const comparatorBound = command?.alarm?.comparisonOperator?.indexOf('Greater') === 0 ? 'max' : 'min';\n\n const boundsChanged = (step: IStepPolicyDescription) => {\n const source = comparatorBound === 'min' ? 'metricIntervalLowerBound' : 'metricIntervalUpperBound';\n const target = source === 'metricIntervalLowerBound' ? 'metricIntervalUpperBound' : 'metricIntervalLowerBound';\n\n const adjustments = step.stepAdjustments;\n (adjustments || []).forEach((a, index) => {\n if (adjustments.length > index + 1) {\n adjustments[index + 1][target] = a[source];\n }\n });\n // Remove the source boundary from the last step\n delete adjustments[adjustments.length - 1][source];\n };\n\n const stepsChanged = (newSteps: IStepAdjustment[]) => {\n const newCommand = cloneDeep(command);\n newCommand.step.stepAdjustments = newSteps;\n boundsChanged(newCommand.step);\n setCommand(newCommand);\n };\n\n const adjustmentTypeChanged = (action: Operator, type: AdjustmentTypeView) => {\n setAction(action);\n\n const newType =\n type !== 'instances' ? 'PercentChangeInCapacity' : action === 'Set to' ? 'ExactCapacity' : 'ChangeInCapacity';\n setCommand({\n ...command,\n adjustmentType: newType,\n });\n };\n\n return (\n <TaskMonitorModal<IUpsertScalingPolicyCommand>\n closeModal={closeModal}\n dismissModal={dismissModal}\n title={`${mode} scaling policy`}\n application={app}\n description={`${mode} scaling policy for ${serverGroup.name}`}\n initialValues={command}\n mapValuesToTask={() => {\n const preppedValues = TitusScalingPolicyCommandBuilder.prepareCommandForUpsert(command, action === 'Remove');\n return {\n application: app,\n job: [\n {\n type: preppedValues.type || 'upsertScalingPolicy',\n ...preppedValues,\n },\n ],\n };\n }}\n render={() => (\n <div>\n <h4 className=\"section-heading\">Conditions</h4>\n <div className=\"section-body\">\n <p>\n <b>Note:</b> metrics must be sent to Amazon CloudWatch before they can be used in auto scaling. If you do\n not see a metric below, click \"Configure available metrics\" in the server group details to set up\n forwarding from Atlas to CloudWatch.\n </p>\n <AlarmConfigurer\n alarm={command.alarm}\n multipleAlarms={Boolean(policy?.alarms?.length > 1)}\n serverGroup={(serverGroup as unknown) as IAmazonServerGroup}\n stepAdjustments={command.step.stepAdjustments}\n stepsChanged={stepsChanged}\n updateAlarm={(alarm: IScalingPolicyAlarm) =>\n setCommand({ ...command, alarm } as IUpsertScalingPolicyCommand)\n }\n />\n </div>\n <h4 className=\"section-heading\">Actions</h4>\n <div className=\"section-body\">\n {!command.alarm?.metricName && <h4 className=\"text-center\">Select a metric</h4>}\n {command.alarm?.metricName && (\n <StepPolicyAction\n adjustmentType={adjustmentTypeView}\n adjustmentTypeChanged={adjustmentTypeChanged}\n alarm={command.alarm}\n isMin={comparatorBound === 'min'}\n operator={action}\n step={command.step}\n stepsChanged={stepsChanged}\n />\n )}\n </div>\n <ScalingPolicyAdditionalSettings\n command={command}\n isInstanceType={adjustmentTypeView === 'instances'}\n isNew={Boolean(!policy.policyARN)}\n operator={action}\n updateCommand={setCommand}\n />\n </div>\n )}\n />\n );\n};\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { TitusCapacityDetailsSection } from './TitusCapacityDetailsSection';\n\nexport const TITUS_SERVERGROUP_DETAILS_CAPACITYDETAILSSECTION = 'titus.servergroup.details.capacitydetailssection';\nmodule(TITUS_SERVERGROUP_DETAILS_CAPACITYDETAILSSECTION, []).component(\n 'titusCapacityDetailsSection',\n react2angular(withErrorBoundary(TitusCapacityDetailsSection, 'titusCapacityDetailsSection'), ['serverGroup', 'app']),\n);\n","import React from 'react';\n\nimport { LabeledValue, LabeledValueList, Overridable } from '@spinnaker/core';\nimport type { ITitusServerGroup } from '../../domain';\n\ninterface ILaunchConfigSectionProps {\n serverGroup: ITitusServerGroup;\n}\n\n@Overridable('titus.serverGroup.launchConfigSection')\nexport class TitusLaunchConfigSection extends React.Component<ILaunchConfigSectionProps> {\n public render() {\n if (!this.props.serverGroup || !this.props.serverGroup.image) {\n return null;\n }\n\n const {\n serverGroup: { image, entryPoint, iamProfile, resources },\n } = this.props;\n\n return (\n <LabeledValueList className=\"horizontal-when-filters-collapsed\">\n {image.dockerImageName && <LabeledValue label=\"Image Name\" value={image.dockerImageName} />}\n {image.dockerImageVersion && <LabeledValue label=\"Image Version\" value={image.dockerImageVersion} />}\n {entryPoint && <LabeledValue label=\"Entrypoint\" value={entryPoint} />}\n {iamProfile && <LabeledValue label=\"IAM Profile\" value={iamProfile} />}\n <LabeledValue label=\"CPU(s)\" value={resources.cpu} />\n <LabeledValue label=\"Memory\" value={`${resources.memory} MB`} />\n <LabeledValue label=\"Disk\" value={`${resources.disk} MB`} />\n <LabeledValue label=\"Network\" value={`${resources.networkMbps} Mbps`} />\n <LabeledValue label=\"GPU(s)\" value={resources.gpu} />\n </LabeledValueList>\n );\n }\n}\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { TitusLaunchConfigSection } from './TitusLaunchConfigSection';\n\nexport const TITUS_SERVERGROUP_DETAILS_LAUNCHCONFIGSECTION = 'titus.servergroup.details.launchConfigSection';\nmodule(TITUS_SERVERGROUP_DETAILS_LAUNCHCONFIGSECTION, []).component(\n 'titusLaunchConfigSection',\n react2angular(withErrorBoundary(TitusLaunchConfigSection, 'titusLaunchConfigSection'), ['serverGroup']),\n);\n","import React from 'react';\nimport { Modal } from 'react-bootstrap';\n\nimport type { Application, IJob, IModalComponentProps } from '@spinnaker/core';\nimport {\n ModalClose,\n ReactModal,\n SpinFormik,\n SubmitButton,\n TaskExecutor,\n TaskMonitor,\n TaskMonitorWrapper,\n} from '@spinnaker/core';\n\nimport type { ITitusServerGroupCommand } from '../../configure/serverGroupConfiguration.service';\nimport { JobDisruptionBudget } from '../../configure/wizard/pages/disruptionBudget/JobDisruptionBudget';\nimport type { ITitusServerGroup } from '../../../domain';\n\nexport interface IEditDisruptionBudgetModalProps extends IModalComponentProps {\n application: Application;\n command: ITitusServerGroupCommand;\n serverGroup: ITitusServerGroup;\n}\n\nexport class EditDisruptionBudgetModal extends React.Component<IEditDisruptionBudgetModalProps> {\n public static show(props: IEditDisruptionBudgetModalProps): Promise<void> {\n return ReactModal.show(EditDisruptionBudgetModal, props);\n }\n\n private submit(values: ITitusServerGroupCommand, taskMonitor: TaskMonitor): void {\n const { application, serverGroup } = this.props;\n const job: IJob = {\n type: 'upsertDisruptionBudget',\n cloudProvider: 'titus',\n credentials: serverGroup.account,\n region: serverGroup.region,\n jobId: serverGroup.id,\n disruptionBudget: values.disruptionBudget,\n };\n\n taskMonitor.submit(() =>\n TaskExecutor.executeTask({\n job: [job],\n application,\n description: `Update Disruption Budget for ${serverGroup.name}`,\n }),\n );\n }\n\n public render() {\n const { application, command, dismissModal } = this.props;\n const taskMonitor = new TaskMonitor({\n application,\n title: 'Updating Job Disruption Budget',\n modalInstance: TaskMonitor.modalInstanceEmulation(() => dismissModal()),\n onTaskComplete: () => application.serverGroups.refresh(),\n });\n\n return (\n <>\n <TaskMonitorWrapper monitor={taskMonitor} />\n <SpinFormik<ITitusServerGroupCommand>\n initialValues={command}\n onSubmit={(values: ITitusServerGroupCommand) => this.submit(values, taskMonitor)}\n render={(formik) => (\n <>\n <ModalClose dismiss={dismissModal} />\n <Modal.Header>\n <Modal.Title>Update Disruption Budget</Modal.Title>\n </Modal.Header>\n <Modal.Body>\n <JobDisruptionBudget formik={formik} app={application} />\n </Modal.Body>\n <Modal.Footer>\n <button className=\"btn btn-default\" onClick={dismissModal} type=\"button\">\n Cancel\n </button>\n <SubmitButton\n onClick={() => this.submit(formik.values, taskMonitor)}\n isDisabled={!formik.isValid}\n isFormSubmit={true}\n submitting={false}\n label=\"Update Budget\"\n />\n </Modal.Footer>\n </>\n )}\n />\n </>\n );\n }\n}\n","import { module } from 'angular';\nimport { isEqual } from 'lodash';\nimport prettyMilliseconds from 'pretty-ms';\nimport React from 'react';\nimport { react2angular } from 'react2angular';\n\nimport type { IServerGroupDetailsSectionProps } from '@spinnaker/core';\nimport { HelpField, withErrorBoundary } from '@spinnaker/core';\n\nimport { EditDisruptionBudgetModal } from './EditDisruptionBudgetModal';\nimport type { ITitusServerGroupCommand } from '../../configure/serverGroupConfiguration.service';\nimport { getDefaultJobDisruptionBudgetForApp } from '../../configure/serverGroupConfiguration.service';\nimport type { IFieldOption } from '../../configure/wizard/pages/disruptionBudget/JobDisruptionBudget';\nimport { DisruptionBudgetDescription } from '../../configure/wizard/pages/disruptionBudget/JobDisruptionBudget';\nimport { policyOptions } from '../../configure/wizard/pages/disruptionBudget/PolicyOptions';\nimport { rateOptions } from '../../configure/wizard/pages/disruptionBudget/RateOptions';\nimport type { IJobDisruptionBudget, ITitusServerGroup } from '../../../domain';\nimport { TitusReactInjector } from '../../../reactShims';\n\ninterface IDisruptionBudgetSection extends IServerGroupDetailsSectionProps {\n serverGroup: ITitusServerGroup;\n}\n\nexport class DisruptionBudgetSection extends React.Component<IDisruptionBudgetSection> {\n private SectionHeading = ({\n budget,\n options,\n label,\n }: {\n budget: IJobDisruptionBudget;\n options: IFieldOption[];\n label: string;\n }): JSX.Element => {\n const selected = options.find((o) => !!budget[o.field]);\n if (!selected) {\n return null;\n }\n return (\n <div>\n <div className=\"bold\">{label}</div>\n {selected.label} <HelpField content={selected.description} />\n </div>\n );\n };\n\n private Policy = ({ budget }: { budget: IJobDisruptionBudget }): JSX.Element => {\n const { ParentheticalDuration } = this;\n if (budget.availabilityPercentageLimit) {\n return (\n <div>\n <div className=\"bold\">Percentage of Healthy Containers</div>\n {budget.availabilityPercentageLimit.percentageOfHealthyContainers} percent\n </div>\n );\n }\n if (budget.relocationLimit) {\n return (\n <div>\n <div className=\"bold\">Limit</div>\n {budget.relocationLimit.limit} task{budget.relocationLimit.limit !== 1 && 's'}\n </div>\n );\n }\n if (budget.unhealthyTasksLimit) {\n return (\n <div>\n <div className=\"bold\">Limit of Unhealthy Containers</div>\n {budget.unhealthyTasksLimit.limitOfUnhealthyContainers} container\n {budget.unhealthyTasksLimit.limitOfUnhealthyContainers !== 1 && 's'}\n </div>\n );\n }\n if (budget.selfManaged) {\n return (\n <div>\n <div className=\"bold\">Relocation Time</div>\n {budget.selfManaged.relocationTimeMs > 0 && (\n <ParentheticalDuration durationMs={budget.selfManaged.relocationTimeMs} />\n )}\n {budget.selfManaged.relocationTimeMs === 0 && '0 ms (immediate)'}\n </div>\n );\n }\n return null;\n };\n\n // it's bad enough that we make users enter these values as milliseconds; let's not make them translate it\n private ParentheticalDuration = ({ durationMs }: { durationMs: number }) => (\n <span>\n {durationMs} ms\n {durationMs > 1000 && ` (${prettyMilliseconds(durationMs)})`}\n </span>\n );\n\n private Rate = ({ budget }: { budget: IJobDisruptionBudget }): JSX.Element => {\n const { ParentheticalDuration } = this;\n if (budget.ratePerInterval) {\n return (\n <>\n <div>\n <div className=\"bold\">Interval</div>\n <ParentheticalDuration durationMs={budget.ratePerInterval.intervalMs} />\n </div>\n <div>\n <div className=\"bold\">Limit</div>\n {budget.ratePerInterval.limitPerInterval} task{budget.ratePerInterval.limitPerInterval !== 1 && 's'}\n </div>\n </>\n );\n }\n if (budget.ratePercentagePerInterval) {\n return (\n <>\n <div>\n <div className=\"bold\">Interval</div>\n <ParentheticalDuration durationMs={budget.ratePercentagePerInterval.intervalMs} />\n </div>\n <div>\n <div className=\"bold\">Percentage per Interval</div>\n {budget.ratePercentagePerInterval.percentageLimitPerInterval} percent\n </div>\n </>\n );\n }\n return null;\n };\n\n // given a collection of days, e.g. ['Monday', 'Tuesday', 'Wednesday', 'Saturday'], return 'Mon-Wed, Sat'\n private groupedDays = (days: string[]): string => {\n const allDays = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];\n const sortedDays = days.sort((d1, d2) => allDays.indexOf(d1) - allDays.indexOf(d2));\n const groups: string[] = [];\n const currentGroup: string[] = [];\n allDays.slice(allDays.indexOf(sortedDays[0])).forEach((d) => {\n if (sortedDays.includes(d)) {\n currentGroup.push(d);\n } else {\n if (currentGroup.length) {\n groups.push(this.toDayRangeString(currentGroup));\n currentGroup.length = 0;\n }\n }\n });\n if (currentGroup.length) {\n groups.push(this.toDayRangeString(currentGroup));\n }\n return groups.join(', ');\n };\n\n private toDayRangeString(days: string[]) {\n if (!days.length) {\n return null;\n }\n if (days.length === 1) {\n return days[0].substr(0, 3);\n }\n return `${days[0].substr(0, 3)}-${days[days.length - 1].substr(0, 3)}`;\n }\n\n private TimeWindows = ({ budget }: { budget: IJobDisruptionBudget }): JSX.Element => {\n const { groupedDays } = this;\n const hasWindows = budget.timeWindows && budget.timeWindows.length > 0;\n return (\n <>\n <div className=\"bold\">When can disruption occur?</div>\n <div>\n {hasWindows &&\n budget.timeWindows.map((tw1, i1) => {\n return tw1.hourlyTimeWindows.map((tw2, i2) => (\n <div key={`${i1}.${i2}`}>\n {groupedDays(tw1.days)}, {tw2.startHour}:00 - {tw2.endHour}:00 {tw1.timeZone}\n </div>\n ));\n })}\n {!hasWindows && 'Any time'}\n </div>\n </>\n );\n };\n\n private editBudget = (): void => {\n const { app, serverGroup } = this.props;\n TitusReactInjector.titusServerGroupCommandBuilder\n .buildServerGroupCommandFromExisting(app, serverGroup)\n .then((command: ITitusServerGroupCommand) => {\n EditDisruptionBudgetModal.show({ command, application: app, serverGroup });\n });\n };\n\n public render() {\n const { Policy, SectionHeading, Rate, TimeWindows } = this;\n const serverGroup: ITitusServerGroup = this.props.serverGroup;\n const hasDefaultMigrationPolicy =\n !serverGroup.migrationPolicy || serverGroup.migrationPolicy.type === 'SystemDefault';\n const defaultBudget = getDefaultJobDisruptionBudgetForApp(this.props.app);\n const budget = serverGroup.disruptionBudget || defaultBudget;\n const usingDefault = !hasDefaultMigrationPolicy && isEqual(budget, defaultBudget);\n return (\n <>\n <DisruptionBudgetDescription />\n {usingDefault && <div>(default policy)</div>}\n <div className=\"bottom-border\">\n <SectionHeading budget={budget} options={policyOptions} label=\"Policy\" />\n <Policy budget={budget} />\n </div>\n <div className=\"bottom-border\">\n <SectionHeading budget={budget} options={rateOptions} label=\"Rate\" />\n <Rate budget={budget} />\n </div>\n <TimeWindows budget={budget} />\n <div className=\"sp-margin-l-top\">\n <a className=\"clickable\" onClick={this.editBudget}>\n Edit Disruption Budget\n </a>\n </div>\n </>\n );\n }\n}\n\nexport const DISRUPTION_BUDGET_DETAILS_SECTION = 'spinnaker.titus.disruptionbudget.section';\n\nmodule(DISRUPTION_BUDGET_DETAILS_SECTION, []).component(\n 'titusDisruptionBudgetSection',\n react2angular(withErrorBoundary(DisruptionBudgetSection, 'titusDisruptionBudgetSection'), ['serverGroup', 'app']),\n);\n","'use strict';\n\nimport { module } from 'angular';\n\nimport { get } from 'lodash';\nimport { SERVER_GROUP_WRITER, TaskMonitor } from '@spinnaker/core';\n\nexport const TITUS_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER =\n 'spinnaker.titus.serverGroup.details.rollback.controller';\nexport const name = TITUS_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER; // for backwards compatibility\nmodule(TITUS_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER, [SERVER_GROUP_WRITER]).controller(\n 'titusRollbackServerGroupCtrl',\n [\n '$scope',\n '$uibModalInstance',\n 'serverGroupWriter',\n 'application',\n 'serverGroup',\n 'previousServerGroup',\n 'disabledServerGroups',\n 'allServerGroups',\n function (\n $scope,\n $uibModalInstance,\n serverGroupWriter,\n application,\n serverGroup,\n previousServerGroup,\n disabledServerGroups,\n allServerGroups,\n ) {\n $scope.serverGroup = serverGroup;\n $scope.disabledServerGroups = disabledServerGroups.sort((a, b) => b.name.localeCompare(a.name));\n $scope.allServerGroups = allServerGroups.sort((a, b) => b.name.localeCompare(a.name));\n $scope.verification = {};\n\n const desired = serverGroup.capacity.desired;\n\n let rollbackType = 'EXPLICIT';\n\n if (allServerGroups.length === 0 && serverGroup.entityTags) {\n const previousServerGroup = get(serverGroup, 'entityTags.creationMetadata.value.previousServerGroup');\n if (previousServerGroup) {\n rollbackType = 'PREVIOUS_IMAGE';\n $scope.previousServerGroup = {\n name: previousServerGroup.name,\n imageName: previousServerGroup.imageName,\n };\n\n if (previousServerGroup.imageId && previousServerGroup.imageId !== previousServerGroup.imageName) {\n $scope.previousServerGroup.imageId = previousServerGroup.imageId;\n }\n }\n }\n\n let healthyPercent;\n if (desired < 10) {\n healthyPercent = 100;\n } else if (desired < 20) {\n // accept 1 instance in an unknown state during rollback\n healthyPercent = 90;\n } else {\n healthyPercent = 95;\n }\n\n $scope.command = {\n rollbackType: rollbackType,\n rollbackContext: {\n imageId: previousServerGroup ? previousServerGroup.imageId : undefined,\n rollbackServerGroupName: serverGroup.name,\n restoreServerGroupName: previousServerGroup ? previousServerGroup.name : undefined,\n targetHealthyRollbackPercentage: healthyPercent,\n delayBeforeDisableSeconds: 0,\n },\n targetGroups: serverGroup.targetGroups,\n securityGroups: serverGroup.securityGroups,\n };\n\n $scope.minHealthy = function (percent) {\n return Math.ceil((desired * percent) / 100);\n };\n\n if (application && application.attributes) {\n if (application.attributes.platformHealthOnlyShowOverride && application.attributes.platformHealthOnly) {\n $scope.command.interestingHealthProviderNames = ['Titus'];\n }\n\n $scope.command.platformHealthOnlyShowOverride = application.attributes.platformHealthOnlyShowOverride;\n }\n\n this.isValid = function () {\n const command = $scope.command;\n if (!$scope.verification.verified) {\n return false;\n }\n\n if (rollbackType === 'PREVIOUS_IMAGE') {\n // no need to validate when using an explicit image\n return true;\n }\n\n return command.rollbackContext.restoreServerGroupName !== undefined;\n };\n\n $scope.taskMonitor = new TaskMonitor({\n application: application,\n title: 'Rollback ' + serverGroup.name,\n modalInstance: $uibModalInstance,\n });\n\n this.rollback = function () {\n if (!this.isValid()) {\n return;\n }\n\n const submitMethod = function () {\n return serverGroupWriter.rollbackServerGroup(serverGroup, application, $scope.command);\n };\n\n $scope.taskMonitor.submit(submitMethod);\n };\n\n this.cancel = function () {\n $uibModalInstance.dismiss();\n };\n\n this.label = function (serverGroup) {\n if (!serverGroup) {\n return '';\n }\n\n if (!serverGroup.buildInfo || !serverGroup.buildInfo.images) {\n return serverGroup.name;\n }\n\n let imageName = serverGroup.buildInfo.images[0];\n if (imageName.indexOf('/') > 0) {\n imageName = imageName.substring(imageName.indexOf('/') + 1);\n }\n\n return serverGroup.name + ' (' + imageName + ')';\n };\n\n this.group = function (serverGroup) {\n return serverGroup.isDisabled ? 'Disabled Server Groups' : 'Enabled Server Groups';\n };\n },\n ],\n);\n","import React from 'react';\n\nimport { PolicyTypeSelectionModal } from '@spinnaker/amazon';\nimport type { Application, IServerGroup } from '@spinnaker/core';\nimport { AccountService, ReactModal } from '@spinnaker/core';\n\nimport { TitusReactInjector } from '../../../reactShims';\nimport type { IUpsertTargetTrackingModalProps } from './targetTracking/UpsertTargetTrackingModal';\nimport { UpsertTargetTrackingModal } from './targetTracking/UpsertTargetTrackingModal';\nimport type { IUpsertScalingPolicyModalProps } from './upsert/UpsertScalingPolicyModal';\nimport { UpsertScalingPolicyModal } from './upsert/UpsertScalingPolicyModal';\n\nexport interface ICreateScalingPolicyButtonProps {\n application: Application;\n serverGroup: IServerGroup;\n}\n\nexport interface ICreateScalingPolicyButtonState {\n showSelection: boolean;\n showModal: boolean;\n typeSelection: string;\n awsAccount: string;\n}\n\nexport class CreateScalingPolicyButton extends React.Component<\n ICreateScalingPolicyButtonProps,\n ICreateScalingPolicyButtonState\n> {\n constructor(props: ICreateScalingPolicyButtonProps) {\n super(props);\n this.state = {\n showSelection: false,\n showModal: false,\n typeSelection: null,\n awsAccount: null,\n };\n AccountService.getAccountDetails(props.serverGroup.account).then((details) => {\n this.setState({ awsAccount: details.awsAccount });\n });\n }\n\n public handleClick = (): void => {\n this.setState({ showSelection: true });\n };\n\n public createStepPolicy(): void {\n const { serverGroup, application } = this.props;\n\n const upsertProps = {\n app: application,\n policy: TitusReactInjector.titusServerGroupTransformer.constructNewStepScalingPolicyTemplate(serverGroup),\n serverGroup,\n } as IUpsertScalingPolicyModalProps;\n const modalProps = { dialogClassName: 'wizard-modal modal-lg' };\n ReactModal.show(UpsertScalingPolicyModal, upsertProps, modalProps);\n }\n\n public createTargetTrackingPolicy(): void {\n const { serverGroup, application } = this.props;\n const upsertProps = {\n app: application,\n policy: TitusReactInjector.titusServerGroupTransformer.constructNewTargetTrackingPolicyTemplate(serverGroup),\n serverGroup,\n } as IUpsertTargetTrackingModalProps;\n const modalProps = { dialogClassName: 'wizard-modal modal-lg' };\n ReactModal.show(UpsertTargetTrackingModal, upsertProps, modalProps);\n }\n\n public typeSelected = (typeSelection: string): void => {\n this.setState({ typeSelection, showSelection: false, showModal: true });\n if (typeSelection === 'step') {\n this.createStepPolicy();\n }\n if (typeSelection === 'targetTracking') {\n this.createTargetTrackingPolicy();\n }\n };\n\n public showModalCallback = (): void => {\n this.setState({ showSelection: false, showModal: false, typeSelection: null });\n };\n\n public render() {\n const { min, max } = this.props.serverGroup.capacity;\n return (\n <div>\n {this.state.awsAccount ? (\n <a className=\"clickable\" onClick={this.handleClick}>\n Create new scaling policy\n </a>\n ) : null}\n {this.state.showSelection && (\n <PolicyTypeSelectionModal\n warnOnMinMaxCapacity={min === max}\n typeSelectedCallback={this.typeSelected}\n showCallback={this.showModalCallback}\n />\n )}\n </div>\n );\n }\n}\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { CreateScalingPolicyButton } from './CreateScalingPolicyButton';\n\nexport const TITUS_CREATE_SCALING_POLICY_BUTTON = 'spinnaker.titus.serverGroup.details.scaling.policy.button';\nmodule(TITUS_CREATE_SCALING_POLICY_BUTTON, []).component(\n 'titusCreateScalingPolicyButton',\n react2angular(withErrorBoundary(CreateScalingPolicyButton, 'titusCreateScalingPolicyButton'), [\n 'application',\n 'serverGroup',\n ]),\n);\n","import type * as React from 'react';\nimport type { Application, IServerGroup } from '@spinnaker/core';\nimport { overridableComponent } from '@spinnaker/core';\n\nexport interface ITitusCustomScalingPolicyProps {\n application: Application;\n serverGroup: IServerGroup;\n}\n\nexport const TitusCustomScalingPolicy: React.ComponentType<ITitusCustomScalingPolicyProps> = overridableComponent(\n () => null,\n 'titus.serverGroup.details.customScaling',\n);\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { TitusCustomScalingPolicy } from './TitusCustomScalingPolicy';\n\nexport const TITUS_SERVERGROUP_CUSTOM_SCALING_COMPONENT =\n 'spinnaker.application.titus.serverGroup.customScaling.component';\n\nmodule(TITUS_SERVERGROUP_CUSTOM_SCALING_COMPONENT, []).component(\n 'titusCustomScalingPolicy',\n react2angular(withErrorBoundary(TitusCustomScalingPolicy, 'titusCustomScalingPolicy'), [\n 'application',\n 'serverGroup',\n ]),\n);\n","import { module } from 'angular';\n\nimport { TITUS_CREATE_SCALING_POLICY_BUTTON } from './createScalingPolicyButton.component';\nimport { TITUS_SERVERGROUP_CUSTOM_SCALING_COMPONENT } from './titusCustomScalingPolicy.component';\n\nexport const SCALING_POLICY_MODULE = 'spinnaker.titus.scalingPolicy.module';\nmodule(SCALING_POLICY_MODULE, [TITUS_CREATE_SCALING_POLICY_BUTTON, TITUS_SERVERGROUP_CUSTOM_SCALING_COMPONENT]);\n","import { module } from 'angular';\nimport React from 'react';\nimport { react2angular } from 'react2angular';\n\nimport type { Application, IModalComponentProps } from '@spinnaker/core';\nimport {\n ChecklistInput,\n FormikFormField,\n ReactModal,\n robotToHuman,\n TaskMonitorModal,\n TextAreaInput,\n withErrorBoundary,\n} from '@spinnaker/core';\n\nimport { enabledProcesses } from './ServiceJobProcesses';\nimport type { ITitusServerGroup } from '../../../domain';\nimport type { ITitusServiceJobProcesses } from '../../../domain/ITitusServiceJobProcesses';\nimport type { ITitusServerGroupDetailsSectionProps } from '../sections/ITitusServerGroupDetailsSectionProps';\n\ninterface IEditTitusServiceJobProcessesValues {\n serviceJobProcesses: string[];\n reason?: string;\n}\n\ninterface IEditTitusServiceJobProcessesModalProps extends IModalComponentProps {\n application: Application;\n serverGroup: ITitusServerGroup;\n}\n\nconst EditTitusServiceJobProcessesModal: React.SFC<IEditTitusServiceJobProcessesModalProps> = (modalProps) => {\n const { application, serverGroup } = modalProps;\n const { region, id: jobId, account: credentials, cloudProvider } = serverGroup;\n const enabledServiceJobProcesses = enabledProcesses(serverGroup.serviceJobProcesses);\n\n return (\n <TaskMonitorModal<IEditTitusServiceJobProcessesValues>\n {...modalProps}\n title={`Modify Service Job Processes for ${serverGroup.name}`}\n description={`Update Service Job Processes for ${serverGroup.name}`}\n initialValues={{ serviceJobProcesses: enabledServiceJobProcesses }}\n render={() => (\n <>\n <FormikFormField\n label=\"Service Job Processes\"\n name=\"serviceJobProcesses\"\n input={(props) => (\n <ChecklistInput\n {...props}\n options={Object.keys(serverGroup.serviceJobProcesses).map((value: string) => ({\n value,\n label: robotToHuman(value),\n }))}\n />\n )}\n />\n\n <FormikFormField\n label=\"Reason\"\n name=\"reason\"\n input={(props) => (\n <TextAreaInput\n {...props}\n rows={3}\n placeholder=\"(Optional) anything that might be helpful to explain the reason for this change; HTML is okay\"\n />\n )}\n />\n </>\n )}\n mapValuesToTask={({\n serviceJobProcesses: checkedServiceJobProcesses,\n reason,\n }: IEditTitusServiceJobProcessesValues) => ({\n job: [\n {\n type: 'updateJobProcesses',\n serviceJobProcesses: Object.keys(serverGroup.serviceJobProcesses).reduce((result, process) => {\n result[process] = checkedServiceJobProcesses.includes(process) ? true : false;\n return result;\n }, {} as ITitusServiceJobProcesses),\n reason,\n region,\n jobId,\n credentials,\n cloudProvider,\n },\n ],\n application: application.name,\n })}\n />\n );\n};\n\nexport class ServiceJobProcessesSection extends React.Component<ITitusServerGroupDetailsSectionProps> {\n private toggleServiceJobProcesses = (): void => {\n const { app: application, serverGroup } = this.props;\n\n ReactModal.show(EditTitusServiceJobProcessesModal, {\n application,\n serverGroup,\n } as IEditTitusServiceJobProcessesModalProps);\n };\n\n public render() {\n const { serviceJobProcesses } = this.props.serverGroup;\n return (\n <>\n <ul className=\"scaling-processes\">\n {Object.keys(serviceJobProcesses).map((process) => (\n <li key={process}>\n <span\n style={{ visibility: serviceJobProcesses[process] ? 'visible' : 'hidden' }}\n className=\"fa fa-check small\"\n />\n <span className={!serviceJobProcesses[process] ? 'text-disabled' : ''}>{robotToHuman(process)} </span>\n </li>\n ))}\n </ul>\n <a className=\"clickable\" onClick={this.toggleServiceJobProcesses}>\n Edit Service Job Processes\n </a>\n </>\n );\n }\n}\n\nexport const SERVICE_JOB_PROCESSES_DETAILS_SECTION = 'spinnaker.titus.servicejobprocesses.section';\n\nmodule(SERVICE_JOB_PROCESSES_DETAILS_SECTION, []).component(\n 'titusServiceJobProcessesSection',\n react2angular(withErrorBoundary(ServiceJobProcessesSection, 'titusServiceJobProcessesSection'), [\n 'serverGroup',\n 'app',\n ]),\n);\n","import * as React from 'react';\nimport { CollapsibleSection, LabeledValue, LabeledValueList } from '@spinnaker/core';\nimport type { ITitusBuildInfo } from '../../domain';\n\nexport interface ITitusPackageDetailsSectionProps {\n buildInfo: ITitusBuildInfo;\n}\n\nexport const TitusPackageDetailsSection = ({ buildInfo }: ITitusPackageDetailsSectionProps) => {\n const packageInfo = buildInfo.jenkins || {};\n const hasPackageInfo = Boolean(Object.keys(packageInfo).length);\n\n const { commitId, host, name, number, version } = packageInfo;\n const jenkinsLink = `${host}job/${name}/${number}`;\n\n return (\n <CollapsibleSection heading=\"Package\">\n {!hasPackageInfo && <div>No package information available.</div>}\n {hasPackageInfo && (\n <LabeledValueList className=\"horizontal-when-filters-collapsed\">\n {name && <LabeledValue label=\"Job\" value={name} />}\n {buildInfo.docker?.image && <LabeledValue label=\"Image Name\" value={buildInfo.docker?.image} />}\n {number && <LabeledValue label=\"Build\" value={number} />}\n {commitId && <LabeledValue label=\"Commit\" value={commitId.substring(0, 8)} />}\n {version && <LabeledValue label=\"Version\" value={version} />}\n {host && (\n <LabeledValue\n label=\"Build Link\"\n value={\n <a target=\"_blank\" href={jenkinsLink}>\n {jenkinsLink}\n </a>\n }\n />\n )}\n </LabeledValueList>\n )}\n </CollapsibleSection>\n );\n};\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { TitusPackageDetailsSection } from './TitusPackageDetailsSection';\n\nexport const TITUS_PACKAGE_DETAILS_SECTION = 'spinnaker.titus.serverGroup.details.packageDetails.component';\nmodule(TITUS_PACKAGE_DETAILS_SECTION, []).component(\n 'titusPackageDetailsSection',\n react2angular(withErrorBoundary(TitusPackageDetailsSection, 'titusPackageDetailsSection'), ['buildInfo']),\n);\n","import { module } from 'angular';\nimport { react2angular } from 'react2angular';\n\nimport { withErrorBoundary } from '@spinnaker/core';\n\nimport { TitusSecurityGroupsDetailsSection } from './TitusSecurityGroups';\n\nexport const TITUS_SECURITY_GROUPS_DETAILS = 'spinnaker.titus.serverGroup.details.securityGroups.component';\nmodule(TITUS_SECURITY_GROUPS_DETAILS, []).component(\n 'titusSecurityGroups',\n react2angular(withErrorBoundary(TitusSecurityGroupsDetailsSection, 'titusSecurityGroups'), ['app', 'serverGroup']),\n);\n","'use strict';\n\nimport UIROUTER_ANGULARJS from '@uirouter/angularjs';\nimport * as angular from 'angular';\nimport _ from 'lodash';\n\nimport {\n AccountService,\n ClusterTargetBuilder,\n ConfirmationModalService,\n confirmNotManaged,\n ReactModal,\n SERVER_GROUP_WRITER,\n ServerGroupReader,\n ServerGroupWarningMessageService,\n SETTINGS,\n} from '@spinnaker/core';\n\nimport { TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER } from '../configure/ServerGroupCommandBuilder';\nimport { TitusCloneServerGroupModal } from '../configure/wizard/TitusCloneServerGroupModal';\nimport { DISRUPTION_BUDGET_DETAILS_SECTION } from './disruptionBudget/DisruptionBudgetSection';\nimport { TitusReactInjector } from '../../reactShims';\nimport { TitusResizeServerGroupModal } from './resize/TitusResizeServerGroupModal';\nimport { TITUS_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER } from './rollback/rollbackServerGroup.controller';\nimport { SCALING_POLICY_MODULE } from './scalingPolicy/scalingPolicy.module';\nimport { SERVICE_JOB_PROCESSES_DETAILS_SECTION } from './serviceJobProcesses/ServiceJobProcessesSection';\nimport { TITUS_PACKAGE_DETAILS_SECTION } from './titusPackageDetailsSection.component';\nimport { TITUS_SECURITY_GROUPS_DETAILS } from './titusSecurityGroups.component';\n\nexport const TITUS_SERVERGROUP_DETAILS_SERVERGROUPDETAILS_TITUS_CONTROLLER =\n 'spinnaker.serverGroup.details.titus.controller';\nexport const name = TITUS_SERVERGROUP_DETAILS_SERVERGROUPDETAILS_TITUS_CONTROLLER; // for backwards compatibility\nangular\n .module(TITUS_SERVERGROUP_DETAILS_SERVERGROUPDETAILS_TITUS_CONTROLLER, [\n UIROUTER_ANGULARJS,\n TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER,\n DISRUPTION_BUDGET_DETAILS_SECTION,\n SERVER_GROUP_WRITER,\n TITUS_SERVERGROUP_DETAILS_ROLLBACK_ROLLBACKSERVERGROUP_CONTROLLER,\n SERVICE_JOB_PROCESSES_DETAILS_SECTION,\n SCALING_POLICY_MODULE,\n TITUS_SECURITY_GROUPS_DETAILS,\n TITUS_PACKAGE_DETAILS_SECTION,\n ])\n .controller('titusServerGroupDetailsCtrl', [\n '$scope',\n '$state',\n '$templateCache',\n '$interpolate',\n 'app',\n 'serverGroup',\n 'titusServerGroupCommandBuilder',\n '$uibModal',\n 'serverGroupWriter',\n 'awsServerGroupTransformer',\n function (\n $scope,\n $state,\n $templateCache,\n $interpolate,\n app,\n serverGroup,\n titusServerGroupCommandBuilder,\n $uibModal,\n serverGroupWriter,\n awsServerGroupTransformer,\n ) {\n const application = app;\n this.application = app;\n\n $scope.gateUrl = SETTINGS.gateUrl;\n\n $scope.state = {\n loading: true,\n };\n\n function extractServerGroupSummary() {\n const summary = _.find(application.serverGroups.data, function (toCheck) {\n return (\n toCheck.name === serverGroup.name &&\n toCheck.account === serverGroup.accountId &&\n toCheck.region === serverGroup.region\n );\n });\n return summary;\n }\n\n function retrieveServerGroup() {\n const summary = extractServerGroupSummary();\n return ServerGroupReader.getServerGroup(\n application.name,\n serverGroup.accountId,\n serverGroup.region,\n serverGroup.name,\n ).then(function (details) {\n cancelLoader();\n\n // it's possible the summary was not found because the clusters are still loading\n details.account = serverGroup.accountId;\n\n AccountService.getAccountDetails(details.account).then((accountDetails) => {\n details.apiEndpoint = _.filter(accountDetails.regions, { name: details.region })[0].endpoint;\n });\n\n $scope.buildInfo = details.buildInfo;\n\n angular.extend(details, summary);\n\n $scope.serverGroup = details;\n const labels = $scope.serverGroup.labels;\n delete labels['name'];\n delete labels['source'];\n delete labels['spinnakerAccount'];\n\n delete labels[''];\n\n Object.keys(labels).forEach((key) => {\n if (key.startsWith('titus.')) {\n delete labels[key];\n }\n });\n\n $scope.labels = labels;\n\n transformScalingPolicies(details);\n\n if (!_.isEmpty($scope.serverGroup)) {\n configureEntityTagTargets();\n } else {\n autoClose();\n }\n }, autoClose);\n }\n\n function transformScalingPolicies(serverGroup) {\n serverGroup.scalingPolicies = (serverGroup.scalingPolicies || [])\n .map((p) => {\n const { policy } = p;\n const { stepPolicyDescriptor, targetPolicyDescriptor } = policy;\n const policyType = stepPolicyDescriptor ? 'StepScaling' : 'TargetTrackingScaling';\n if (stepPolicyDescriptor) {\n const alarm = stepPolicyDescriptor.alarmConfig;\n alarm.period = alarm.periodSec;\n alarm.namespace = alarm.metricNamespace;\n alarm.disableEditingDimensions = true;\n if (alarm.metricNamespace === 'NFLX/EPIC' && !alarm.dimensions) {\n // NOTE: Titus creates the step scaling policy with these dimensions\n // TODO: Remove this once Titus supports configuring dimensions\n alarm.dimensions = [{ name: 'AutoScalingGroupName', value: serverGroup.name }];\n }\n if (!alarm.dimensions) {\n alarm.dimensions = [];\n }\n const policy = _.cloneDeep(stepPolicyDescriptor.scalingPolicy);\n policy.cooldown = policy.cooldownSec;\n policy.policyType = policyType;\n policy.alarms = [alarm];\n policy.id = p.id;\n if (policy.stepAdjustments) {\n policy.stepAdjustments.forEach((step) => {\n // gRPC currently returns these values in upper camel case\n step.metricIntervalUpperBound = _.get(\n step,\n 'metricIntervalUpperBound',\n step.MetricIntervalUpperBound,\n );\n step.metricIntervalLowerBound = _.get(\n step,\n 'metricIntervalLowerBound',\n step.MetricIntervalLowerBound,\n );\n });\n }\n return policy;\n } else {\n const { customizedMetricSpecification } = targetPolicyDescriptor;\n if (customizedMetricSpecification.dimensions === undefined) {\n customizedMetricSpecification.dimensions = [];\n }\n policy.id = p.id;\n policy.targetTrackingConfiguration = policy.targetPolicyDescriptor;\n policy.targetTrackingConfiguration.scaleOutCooldown =\n policy.targetTrackingConfiguration.scaleOutCooldownSec;\n policy.targetTrackingConfiguration.scaleInCooldown =\n policy.targetTrackingConfiguration.scaleInCooldownSec;\n return policy;\n }\n })\n .map((p) => awsServerGroupTransformer.transformScalingPolicy(p));\n }\n\n function autoClose() {\n if ($scope.$$destroyed) {\n return;\n }\n $state.go('^', { allowModalToStayOpen: true }, { location: 'replace' });\n }\n\n function cancelLoader() {\n $scope.state.loading = false;\n }\n\n retrieveServerGroup()\n .then(() => {\n // If the user navigates away from the view before the initial retrieveServerGroup call completes,\n // do not bother subscribing to the refresh\n if (!$scope.$$destroyed) {\n app.serverGroups.onRefresh($scope, retrieveServerGroup);\n }\n })\n .catch(() => {});\n\n AccountService.getAccountDetails(serverGroup.accountId).then((details) => {\n const awsAccount = details.awsAccount;\n $scope.titusUiEndpoint = _.filter(details.regions, { name: serverGroup.region })[0].endpoint;\n AccountService.getAccountDetails(awsAccount).then((awsDetails) => {\n this.awsAccountId = awsDetails.accountId;\n this.env = awsDetails.environment;\n });\n });\n\n const configureEntityTagTargets = () => {\n this.entityTagTargets = ClusterTargetBuilder.buildClusterTargets($scope.serverGroup);\n };\n\n this.destroyServerGroup = function destroyServerGroup() {\n const serverGroup = $scope.serverGroup;\n\n const taskMonitor = {\n application: application,\n title: 'Destroying ' + serverGroup.name,\n onTaskComplete: function () {\n if ($state.includes('**.serverGroup', stateParams)) {\n $state.go('^');\n }\n },\n };\n\n const submitMethod = function () {\n return serverGroupWriter.destroyServerGroup(serverGroup, application, {\n cloudProvider: 'titus',\n serverGroupName: serverGroup.name,\n region: serverGroup.region,\n });\n };\n\n const stateParams = {\n name: serverGroup.name,\n accountId: serverGroup.account,\n region: serverGroup.region,\n };\n\n const confirmationModalParams = {\n header: 'Really destroy ' + serverGroup.name + '?',\n buttonText: 'Destroy ' + serverGroup.name,\n account: serverGroup.account,\n taskMonitorConfig: taskMonitor,\n platformHealthOnlyShowOverride: app.attributes.platformHealthOnlyShowOverride,\n platformHealthType: 'Titus',\n submitMethod: submitMethod,\n };\n\n ServerGroupWarningMessageService.addDestroyWarningMessage(app, serverGroup, confirmationModalParams);\n\n confirmNotManaged(serverGroup, app).then(\n (notManaged) => notManaged && ConfirmationModalService.confirm(confirmationModalParams),\n );\n };\n\n this.disableServerGroup = function disableServerGroup() {\n const serverGroup = $scope.serverGroup;\n\n const taskMonitor = {\n application: application,\n title: 'Disabling ' + serverGroup.name,\n };\n\n const submitMethod = function () {\n return serverGroupWriter.disableServerGroup(serverGroup, application, {\n cloudProvider: 'titus',\n serverGroupName: serverGroup.name,\n region: serverGroup.region,\n zone: serverGroup.zones[0],\n });\n };\n\n const confirmationModalParams = {\n header: 'Really disable ' + serverGroup.name + '?',\n buttonText: 'Disable ' + serverGroup.name,\n account: serverGroup.account,\n taskMonitorConfig: taskMonitor,\n platformHealthOnlyShowOverride: app.attributes.platformHealthOnlyShowOverride,\n platformHealthType: 'Titus',\n submitMethod: submitMethod,\n };\n\n ServerGroupWarningMessageService.addDisableWarningMessage(app, serverGroup, confirmationModalParams);\n\n confirmNotManaged(serverGroup, app).then(\n (notManaged) => notManaged && ConfirmationModalService.confirm(confirmationModalParams),\n );\n };\n\n this.enableServerGroup = () => {\n confirmNotManaged(serverGroup, app).then((notManaged) => {\n if (!notManaged) {\n return;\n }\n if (!this.isRollbackEnabled()) {\n this.showEnableServerGroupModal();\n return;\n }\n\n const confirmationModalParams = {\n header: 'Rolling back?',\n body: `Spinnaker provides an orchestrated rollback feature to carefully restore a different version of this\n server group. Do you want to use the orchestrated rollback?`,\n buttonText: `Yes, take me to the rollback settings modal`,\n cancelButtonText: 'No, I just want to enable the server group',\n };\n\n ConfirmationModalService.confirm(confirmationModalParams)\n // Wait for the confirmation modal to go away first to avoid react/angular bootstrap fighting\n // over the body.modal-open class\n .then(() => new Promise((resolve) => setTimeout(resolve, 500)))\n .then(() => this.rollbackServerGroup())\n .catch(({ source }) => {\n // don't show the enable modal if the user cancels with the header button\n if (source === 'footer') {\n this.showEnableServerGroupModal();\n }\n });\n });\n };\n\n this.resizeServerGroup = () => {\n confirmNotManaged(serverGroup, app).then((notManaged) => {\n notManaged && ReactModal.show(TitusResizeServerGroupModal, { serverGroup: $scope.serverGroup, application });\n });\n };\n\n this.showEnableServerGroupModal = () => {\n const serverGroup = $scope.serverGroup;\n\n const taskMonitor = {\n application: application,\n title: 'Enabling ' + serverGroup.name,\n };\n\n const submitMethod = function () {\n return serverGroupWriter.enableServerGroup(serverGroup, application, {\n cloudProvider: 'titus',\n serverGroupName: serverGroup.name,\n region: serverGroup.region,\n zone: serverGroup.zones[0],\n });\n };\n\n const confirmationModalParams = {\n header: 'Really enable ' + serverGroup.name + '?',\n buttonText: 'Enable ' + serverGroup.name,\n account: serverGroup.account,\n taskMonitorConfig: taskMonitor,\n platformHealthOnlyShowOverride: app.attributes.platformHealthOnlyShowOverride,\n platformHealthType: 'Titus',\n submitMethod: submitMethod,\n };\n\n ConfirmationModalService.confirm(confirmationModalParams);\n };\n\n this.cloneServerGroup = function cloneServerGroup() {\n TitusReactInjector.titusServerGroupCommandBuilder\n .buildServerGroupCommandFromExisting(application, $scope.serverGroup)\n .then((command) => {\n const title = `Clone ${serverGroup.name}`;\n TitusCloneServerGroupModal.show({ title, application, command });\n });\n };\n\n this.isRollbackEnabled = function rollbackServerGroup() {\n const serverGroup = $scope.serverGroup;\n if (!serverGroup.isDisabled) {\n // enabled server groups are always a candidate for rollback\n return true;\n }\n\n // if the server group selected for rollback is disabled, ensure that at least one enabled server group exists\n return application\n .getDataSource('serverGroups')\n .data.some(\n (g) =>\n g.cluster === serverGroup.cluster &&\n g.region === serverGroup.region &&\n g.account === serverGroup.account &&\n g.isDisabled === false,\n );\n };\n\n this.rollbackServerGroup = function rollbackServerGroup() {\n let serverGroup = $scope.serverGroup;\n\n let previousServerGroup;\n let allServerGroups = app\n .getDataSource('serverGroups')\n .data.filter(\n (g) =>\n g.cluster === serverGroup.cluster && g.region === serverGroup.region && g.account === serverGroup.account,\n );\n\n if (serverGroup.isDisabled) {\n // if the selected server group is disabled, it represents the server group that should be _rolled back to_\n previousServerGroup = serverGroup;\n\n /*\n * Find an existing server group to rollback, prefer the largest enabled server group.\n *\n * isRollbackEnabled() ensures that at least one enabled server group exists.\n */\n serverGroup = _.orderBy(\n allServerGroups.filter((g) => g.name !== previousServerGroup.name && !g.isDisabled),\n ['instanceCounts.total', 'createdTime'],\n ['desc', 'desc'],\n )[0];\n }\n\n // the set of all server groups should not include the server group selected for rollback\n allServerGroups = allServerGroups.filter((g) => g.name !== serverGroup.name);\n\n if (allServerGroups.length === 1 && !previousServerGroup) {\n // if there is only one other server group, default to it being the rollback target\n previousServerGroup = allServerGroups[0];\n }\n\n confirmNotManaged(serverGroup, app).then((notManaged) => {\n notManaged &&\n $uibModal.open({\n templateUrl: require('./rollback/rollbackServerGroup.html'),\n controller: 'titusRollbackServerGroupCtrl as ctrl',\n resolve: {\n serverGroup: () => serverGroup,\n previousServerGroup: () => previousServerGroup,\n disabledServerGroups: () => {\n const cluster = _.find(application.clusters, {\n name: serverGroup.cluster,\n account: serverGroup.account,\n });\n return _.filter(cluster.serverGroups, { isDisabled: true, region: serverGroup.region });\n },\n allServerGroups: () => allServerGroups,\n application: () => application,\n },\n });\n });\n };\n },\n ]);\n","'use strict';\n\nimport { module } from 'angular';\nimport _ from 'lodash';\n\nimport { AccountService } from '@spinnaker/core';\n\nexport const TITUS_SERVERGROUP_SERVERGROUP_TRANSFORMER = 'spinnaker.titus.serverGroup.transformer';\nexport const name = TITUS_SERVERGROUP_SERVERGROUP_TRANSFORMER; // for backwards compatibility\nmodule(TITUS_SERVERGROUP_SERVERGROUP_TRANSFORMER, []).factory('titusServerGroupTransformer', [\n '$q',\n function ($q) {\n function normalizeServerGroup(serverGroup) {\n return AccountService.getCredentialsKeyedByAccount('titus').then((credentialsKeyedByAccount) => {\n if (serverGroup.account && credentialsKeyedByAccount[serverGroup.account]) {\n serverGroup.awsAccount = credentialsKeyedByAccount[serverGroup.account].awsAccount;\n }\n return serverGroup;\n });\n }\n\n function convertServerGroupCommandToDeployConfiguration(base) {\n // use _.defaults to avoid copying the backingData, which is huge and expensive to copy over\n const command = _.defaults({ backingData: [], viewState: [] }, base);\n if (base.viewState.mode !== 'clone') {\n delete command.source;\n }\n command.account = command.credentials;\n\n if (!command.efs.mountPoint || !command.efs.efsId || !command.efs.mountPerm) {\n delete command.efs;\n }\n\n delete command.viewState;\n delete command.backingData;\n delete command.selectedProvider;\n return command;\n }\n\n function constructNewStepScalingPolicyTemplate(serverGroup) {\n return {\n alarms: [\n {\n namespace: 'NFLX/EPIC',\n metricName: '',\n threshold: 50,\n statistic: 'Average',\n comparisonOperator: 'GreaterThanThreshold',\n evaluationPeriods: 1,\n disableEditingDimensions: true,\n dimensions: [{ name: 'AutoScalingGroupName', value: serverGroup.name }],\n period: 60,\n },\n ],\n adjustmentType: 'ChangeInCapacity',\n stepAdjustments: [\n {\n scalingAdjustment: 1,\n metricIntervalLowerBound: 0,\n },\n ],\n cooldown: 300,\n };\n }\n\n function constructNewTargetTrackingPolicyTemplate(serverGroup) {\n return {\n alarms: [],\n targetTrackingConfiguration: {\n targetValue: null,\n disableScaleIn: false,\n customizedMetricSpecification: {\n namespace: 'NFLX/EPIC',\n metricName: '',\n dimensions: [{ name: 'AutoScalingGroupName', value: serverGroup.name }],\n },\n scaleInCooldown: 300,\n scaleOutCooldown: 300,\n },\n };\n }\n\n return {\n convertServerGroupCommandToDeployConfiguration,\n normalizeServerGroup,\n constructNewStepScalingPolicyTemplate,\n constructNewTargetTrackingPolicyTemplate,\n };\n },\n]);\n","import type { IApplicationNameValidator } from '@spinnaker/core';\nimport { ApplicationNameValidator, FirewallLabels } from '@spinnaker/core';\n\nclass TitusApplicationNameValidator implements IApplicationNameValidator {\n private validateSpecialCharacters(name: string, errors: string[]): void {\n const pattern = /^[a-zA-Z_0-9.]*$/g;\n if (!pattern.test(name)) {\n errors.push('Only dot(.) and underscore(_) special characters are allowed.');\n }\n }\n\n private validateLength(name: string, warnings: string[], errors: string[]): void {\n if (name.length > 250) {\n errors.push('The maximum length for an application in Titus is 250 characters.');\n return;\n }\n if (name.length > 240) {\n if (name.length >= 248) {\n warnings.push(\n `You will not be able to include a stack or detail field for clusters or ${FirewallLabels.get('firewalls')}.`,\n );\n } else {\n const remaining = 248 - name.length;\n warnings.push(`If you plan to include a stack or detail field for clusters, you will only\n have ~${remaining} characters to do so.`);\n }\n }\n }\n\n public validate(name = '') {\n const warnings: string[] = [];\n const errors: string[] = [];\n\n if (name && name.length) {\n this.validateSpecialCharacters(name, errors);\n this.validateLength(name, warnings, errors);\n }\n\n return { warnings, errors };\n }\n}\n\nApplicationNameValidator.registerValidator('titus', new TitusApplicationNameValidator());\n","import { module } from 'angular';\n\nimport { AmazonLoadBalancersTag } from '@spinnaker/amazon';\nimport { CloudProviderRegistry, DeploymentStrategyRegistry } from '@spinnaker/core';\n\nimport './help/titus.help';\nimport { TitusInstanceDetails } from './instance/details/TitusInstanceDetails';\nimport titusLogo from './logo/titus.logo.png';\nimport { TITUS_PIPELINE_STAGES_CLONESERVERGROUP_TITUSCLONESERVERGROUPSTAGE } from './pipeline/stages/cloneServerGroup/titusCloneServerGroupStage';\nimport { TITUS_PIPELINE_STAGES_DESTROYASG_TITUSDESTROYASGSTAGE } from './pipeline/stages/destroyAsg/titusDestroyAsgStage';\nimport { TITUS_PIPELINE_STAGES_DISABLEASG_TITUSDISABLEASGSTAGE } from './pipeline/stages/disableAsg/titusDisableAsgStage';\nimport { TITUS_PIPELINE_STAGES_DISABLECLUSTER_TITUSDISABLECLUSTERSTAGE } from './pipeline/stages/disableCluster/titusDisableClusterStage';\nimport { TITUS_PIPELINE_STAGES_ENABLEASG_TITUSENABLEASGSTAGE } from './pipeline/stages/enableAsg/titusEnableAsgStage';\nimport { TITUS_PIPELINE_STAGES_FINDAMI_TITUSFINDAMISTAGE } from './pipeline/stages/findAmi/titusFindAmiStage';\nimport { TITUS_PIPELINE_STAGES_RESIZEASG_TITUSRESIZEASGSTAGE } from './pipeline/stages/resizeAsg/titusResizeAsgStage';\nimport './pipeline/stages/runJob/titusRunJobStage';\nimport { TITUS_PIPELINE_STAGES_SCALEDOWNCLUSTER_TITUSSCALEDOWNCLUSTERSTAGE } from './pipeline/stages/scaleDownCluster/titusScaleDownClusterStage';\nimport { TITUS_PIPELINE_STAGES_SHRINKCLUSTER_TITUSSHRINKCLUSTERSTAGE } from './pipeline/stages/shrinkCluster/titusShrinkClusterStage';\nimport { TITUS_REACT_MODULE } from './reactShims/titus.react.module';\nimport { TITUS_SECURITYGROUP_SECURITYGROUP_READ_SERVICE } from './securityGroup/securityGroup.read.service';\nimport { TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER } from './serverGroup/configure/ServerGroupCommandBuilder';\nimport { TITUS_SERVERGROUP_CONFIGURE_SERVERGROUP_CONFIGURE_TITUS_MODULE } from './serverGroup/configure/serverGroup.configure.titus.module';\nimport { TitusCloneServerGroupModal } from './serverGroup/configure/wizard/TitusCloneServerGroupModal';\nimport {\n TitusTargetTrackingChart,\n TitusUpsertScalingPolicyModal,\n TitusUpsertTargetTrackingModal,\n} from './serverGroup/details';\nimport { TITUS_SERVERGROUP_DETAILS_CAPACITYDETAILSSECTION } from './serverGroup/details/capacityDetailsSection.component';\nimport { TITUS_SERVERGROUP_DETAILS_LAUNCHCONFIGSECTION } from './serverGroup/details/launchConfigSection.component';\nimport { TITUS_SERVERGROUP_DETAILS_SERVERGROUPDETAILS_TITUS_CONTROLLER } from './serverGroup/details/serverGroupDetails.titus.controller';\nimport { TITUS_SERVERGROUP_SERVERGROUP_TRANSFORMER } from './serverGroup/serverGroup.transformer';\nimport './validation/ApplicationNameValidator';\n\nimport './logo/titus.logo.less';\n\nexport const TITUS_MODULE = 'spinnaker.titus';\nmodule(TITUS_MODULE, [\n TITUS_REACT_MODULE,\n TITUS_SECURITYGROUP_SECURITYGROUP_READ_SERVICE,\n TITUS_SERVERGROUP_DETAILS_SERVERGROUPDETAILS_TITUS_CONTROLLER,\n TITUS_SERVERGROUP_CONFIGURE_SERVERGROUPCOMMANDBUILDER,\n TITUS_SERVERGROUP_CONFIGURE_SERVERGROUP_CONFIGURE_TITUS_MODULE,\n TITUS_SERVERGROUP_SERVERGROUP_TRANSFORMER,\n TITUS_PIPELINE_STAGES_FINDAMI_TITUSFINDAMISTAGE,\n TITUS_PIPELINE_STAGES_ENABLEASG_TITUSENABLEASGSTAGE,\n TITUS_PIPELINE_STAGES_DISABLEASG_TITUSDISABLEASGSTAGE,\n TITUS_PIPELINE_STAGES_DESTROYASG_TITUSDESTROYASGSTAGE,\n TITUS_PIPELINE_STAGES_RESIZEASG_TITUSRESIZEASGSTAGE,\n TITUS_PIPELINE_STAGES_CLONESERVERGROUP_TITUSCLONESERVERGROUPSTAGE,\n TITUS_PIPELINE_STAGES_DISABLECLUSTER_TITUSDISABLECLUSTERSTAGE,\n TITUS_PIPELINE_STAGES_SHRINKCLUSTER_TITUSSHRINKCLUSTERSTAGE,\n TITUS_PIPELINE_STAGES_SCALEDOWNCLUSTER_TITUSSCALEDOWNCLUSTERSTAGE,\n TITUS_SERVERGROUP_DETAILS_CAPACITYDETAILSSECTION,\n TITUS_SERVERGROUP_DETAILS_LAUNCHCONFIGSECTION,\n]).config(() => {\n CloudProviderRegistry.registerProvider('titus', {\n name: 'Titus',\n logo: {\n path: titusLogo,\n },\n serverGroup: {\n transformer: 'titusServerGroupTransformer',\n detailsTemplateUrl: require('./serverGroup/details/serverGroupDetails.html'),\n detailsController: 'titusServerGroupDetailsCtrl',\n CloneServerGroupModal: TitusCloneServerGroupModal,\n commandBuilder: 'titusServerGroupCommandBuilder',\n configurationService: 'titusServerGroupConfigurationService',\n skipUpstreamStageCheck: true,\n checkForImageProviders: true,\n TargetTrackingChart: TitusTargetTrackingChart,\n UpsertStepPolicyModal: TitusUpsertScalingPolicyModal,\n UpsertTargetTrackingModal: TitusUpsertTargetTrackingModal,\n },\n securityGroup: {\n reader: 'titusSecurityGroupReader',\n useProvider: 'aws',\n },\n loadBalancer: {\n LoadBalancersTag: AmazonLoadBalancersTag,\n incompatibleLoadBalancerTypes: [\n {\n type: 'classic',\n reason: 'Classic Load Balancers cannot be used with Titus as they do not have IP based target groups.',\n },\n ],\n useProvider: 'aws',\n },\n instance: {\n details: TitusInstanceDetails,\n },\n });\n});\n\nDeploymentStrategyRegistry.registerProvider('titus', ['custom', 'redblack', 'monitored']);\n"],"names":["React","isUndefined","useMemo","Formats.DATE_SHORT","Formats.DATE_MED","Formats.DATE_FULL","Formats.DATE_HUGE","Formats.TIME_SIMPLE","Formats.TIME_WITH_SECONDS","Formats.TIME_WITH_SHORT_OFFSET","Formats.TIME_WITH_LONG_OFFSET","Formats.TIME_24_SIMPLE","Formats.TIME_24_WITH_SECONDS","Formats.TIME_24_WITH_SHORT_OFFSET","Formats.TIME_24_WITH_LONG_OFFSET","Formats.DATETIME_SHORT","Formats.DATETIME_MED","Formats.DATETIME_FULL","Formats.DATETIME_HUGE","Formats.DATETIME_SHORT_WITH_SECONDS","Formats.DATETIME_MED_WITH_SECONDS","Formats.DATETIME_MED_WITH_WEEKDAY","Formats.DATETIME_FULL_WITH_SECONDS","Formats.DATETIME_HUGE_WITH_SECONDS","English.meridiemForDateTime","English.monthForDateTime","English.weekdayForDateTime","English.eraForDateTime","singleton","English.formatString","English.formatRelativeTime","English.months","English.weekdays","English.meridiems","English.eras","English.monthsShort","English.weekdaysLong","English.weekdaysShort","INVALID","orderedUnits","clone","__defProp","__getOwnPropDesc","__decorateClass","TitusUpsertScalingPolicyModal","TitusUpsertTargetTrackingModal"],"mappings":";;;;;;;;;;;;;;;;;;;AACA,MAAM,YAAY,GAAG;AACrB,EAAE,+BAA+B,EAAE,0EAA0E;AAC7G,EAAE,sBAAsB,EAAE,0CAA0C;AACpE,EAAE,2BAA2B,EAAE,0LAA0L;AACzN,EAAE,yBAAyB,EAAE,oDAAoD;AACjF,EAAE,4BAA4B,EAAE,+FAA+F;AAC/H,EAAE,sBAAsB,EAAE,wJAAwJ;AAClL,EAAE,yBAAyB,EAAE,2JAA2J;AACxL,EAAE,8BAA8B,EAAE,qFAAqF;AACvH,EAAE,sBAAsB,EAAE,oDAAoD;AAC9E,EAAE,kBAAkB,EAAE,0FAA0F;AAChH,EAAE,8BAA8B,EAAE,qNAAqN;AACvP,EAAE,8BAA8B,EAAE,kGAAkG;AACpI,EAAE,kBAAkB,EAAE,wGAAwG;AAC9H,EAAE,yBAAyB,EAAE,+LAA+L;AAC5N,EAAE,oBAAoB,EAAE,oEAAoE;AAC5F,EAAE,oCAAoC,EAAE,mEAAmE;AAC3G,EAAE,6BAA6B,EAAE,gGAAgG;AACjI,EAAE,2BAA2B,EAAE,8DAA8D;AAC7F,EAAE,0BAA0B,EAAE,yMAAyM;AACvO,EAAE,2BAA2B,EAAE,yDAAyD;AACxF,EAAE,6BAA6B,EAAE,sDAAsD;AACvF,EAAE,gCAAgC,EAAE,yHAAyH;AAC7J,EAAE,8BAA8B,EAAE,0IAA0I;AAC5K,EAAE,sBAAsB,EAAE,0IAA0I;AACpK,EAAE,iBAAiB,EAAE,gKAAgK;AACrL,EAAE,4BAA4B,EAAE,2IAA2I;AAC3K,EAAE,0BAA0B,EAAE,CAAC;AAC/B;AACA;AACA;AACA;AACA;AACA,EAAE,CAAC;AACH,EAAE,2BAA2B,EAAE,CAAC;AAChC;AACA,iGAAiG,CAAC;AAClG,EAA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C;AACH,MAAM,CAAC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC,CAAC;AACH,CAAC,CAAC,CAAC;;AClcI,MAAM,yCAAyC,GAAG,yCAAyC,CAAC;AAEnG,MAAM,CAAC,yCAAyC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,EAAE;AAC7F,EAAE,IAAI;AACN,EAAE,SAAS,EAAE,EAAE;AACf,IAAI,SAAS,oBAAoB,CAAC,WAAW,EAAE;AAC/C,MAAM,OAAO,cAAc,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,yBAAyB,KAAK;AACtG,QAAQ,IAAI,WAAW,CAAC,OAAO,IAAI,yBAAyB,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE;AACnF,UAAU,WAAW,CAAC,UAAU,GAAG,yBAAyB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;AAC7F,SAAS;AACT,QAAQ,OAAO,WAAW,C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