diff --git a/app/authenticated/cluster/edit/route.js b/app/authenticated/cluster/edit/route.js index 8cd0e7b0d5..5e9c3bd0f5 100644 --- a/app/authenticated/cluster/edit/route.js +++ b/app/authenticated/cluster/edit/route.js @@ -9,7 +9,7 @@ import { scheduleOnce } from '@ember/runloop'; export default Route.extend({ access: service(), globalStore: service(), - k3s: service(), + releaseVersions: service(), clusterTemplateService: service('clusterTemplates'), roleTemplateService: service('roleTemplate'), @@ -20,6 +20,7 @@ export default Route.extend({ let modelOut = { originalCluster: cluster, cluster: cluster.clone(), + cloudCredentials: globalStore.findAll('cloudcredential'), kontainerDrivers: globalStore.findAll('kontainerDriver'), nodeTemplates: globalStore.findAll('nodeTemplate'), nodeDrivers: globalStore.findAll('nodeDriver'), @@ -30,8 +31,8 @@ export default Route.extend({ me: get(this, 'access.principal'), }; - if (cluster.driver === 'k3s') { - modelOut['k3sVersions'] = this.k3s.getAllVersions(); + if (cluster.driver === 'k3s' || cluster.driver === 'rke2') { + this.releaseVersions.getAllVersions(cluster.driver); } if (!isEmpty(cluster.clusterTemplateRevisionId)) { diff --git a/app/authenticated/cluster/edit/template.hbs b/app/authenticated/cluster/edit/template.hbs index b42aec9e67..77b1a6dad4 100644 --- a/app/authenticated/cluster/edit/template.hbs +++ b/app/authenticated/cluster/edit/template.hbs @@ -1,6 +1,6 @@

- {{t "clustersPage.editClusterName" name=model.originalCluster.displayName}} ({{driver-name provider}}) + {{t "clustersPage.editClusterName" name=model.originalCluster.displayName}} ({{model.originalCluster.displayProvider}})

diff --git a/app/models/cluster.js b/app/models/cluster.js index 14d97e7e80..825202b14c 100644 --- a/app/models/cluster.js +++ b/app/models/cluster.js @@ -159,6 +159,8 @@ export default Resource.extend(Grafana, ResourceUsage, { switch ( get(this, 'configName') ) { case 'amazonElasticContainerServiceConfig': return 'amazoneks'; + case 'eksConfig': + return 'amazoneksv2'; case 'azureKubernetesServiceConfig': return 'azureaks'; case 'googleKubernetesEngineConfig': @@ -169,6 +171,8 @@ export default Resource.extend(Grafana, ResourceUsage, { return 'huaweicce'; case 'okeEngineConfig': return 'oracleoke'; + case 'rke2Config': + return 'rke2'; case 'rancherKubernetesEngineConfig': if ( !pools.length ) { return 'custom'; @@ -189,9 +193,11 @@ export default Resource.extend(Grafana, ResourceUsage, { const intl = get(this, 'intl'); const pools = get(this, 'nodePools'); const firstPool = (pools || []).objectAt(0); + const configName = get(this, 'configName'); - switch ( get(this, 'configName') ) { + switch ( configName ) { case 'amazonElasticContainerServiceConfig': + case 'eksConfig': return intl.t('clusterNew.amazoneks.shortLabel'); case 'azureKubernetesServiceConfig': return intl.t('clusterNew.azureaks.shortLabel'); @@ -205,14 +211,17 @@ export default Resource.extend(Grafana, ResourceUsage, { return intl.t('clusterNew.huaweicce.shortLabel'); case 'okeEngineConfig': return intl.t('clusterNew.oracleoke.shortLabel'); - case 'k3sconfig': + case 'k3sConfig': return intl.t('clusterNew.k3simport.shortLabel'); + case 'rke2Config': case 'rancherKubernetesEngineConfig': + var shortLabel = configName === 'rancherKubernetesEngineConfig' ? 'clusterNew.rke.shortLabel' : 'clusterNew.rke2.shortLabel'; + if ( !!pools ) { if ( firstPool ) { - return get(firstPool, 'displayProvider') ? get(firstPool, 'displayProvider') : intl.t('clusterNew.rke.shortLabel'); + return get(firstPool, 'displayProvider') ? get(firstPool, 'displayProvider') : intl.t(shortLabel); } else { - return intl.t('clusterNew.rke.shortLabel'); + return intl.t(shortLabel); } } else { return intl.t('clusterNew.custom.shortLabel'); @@ -500,6 +509,10 @@ export default Resource.extend(Grafana, ResourceUsage, { } }; + if (provider === 'amazoneks' && !isEmpty(get(this, 'eksConfig'))) { + set(queryParams, 'queryParams.provider', 'amazoneksv2'); + } + if (this.clusterTemplateRevisionId) { set(queryParams, 'queryParams.clusterTemplateRevision', this.clusterTemplateRevisionId); } diff --git a/app/styles/components/_forms.scss b/app/styles/components/_forms.scss index 88480b1a73..f78c464f44 100644 --- a/app/styles/components/_forms.scss +++ b/app/styles/components/_forms.scss @@ -97,7 +97,7 @@ select { // firefox quirk, options were not inheriting there parents color styles option, optgroup { - color: $input-color; + color: $label-color; background: $input-bg; } diff --git a/app/styles/pages/_host.scss b/app/styles/pages/_host.scss index 4a57143829..09be99b124 100644 --- a/app/styles/pages/_host.scss +++ b/app/styles/pages/_host.scss @@ -65,6 +65,7 @@ &.import { @include import; } &.aliyunecs { @include aliyunecs; } &.amazoneks { @include amazoneks; } + &.amazoneksv2 { @include amazoneks; } &.azureaks { @include azureaks; } &.googlegke { @include googlegke; } &.tencenttke { @include tencenttke; } @@ -82,6 +83,7 @@ padding: 15px 0px; max-height: 130px; text-decoration: none; + position: relative; &.small { max-height: 100px; @@ -98,6 +100,22 @@ outline: 4px solid $link-color; border-color: $link-color; } + + &.active:after { + content: $icon-check; + top: -15px; + right: -15px; + font-family: 'rancher-icons'; + font-size: 18px; + position: absolute; + background-color: $info; + height: 29px; + width: 29px; + line-height: 29px; + border-radius: 50%; + color: white; + padding-left: 5px; + } } .machine-driver { height: 100px; diff --git a/ember-cli-build.js b/ember-cli-build.js index c0e8fdffe8..82110344c0 100644 --- a/ember-cli-build.js +++ b/ember-cli-build.js @@ -115,7 +115,7 @@ module.exports = function(defaults) { app.import('vendor/icons/style.css'); app.import('node_modules/ember-source/dist/ember-template-compiler.js'); - app.import('vendor/aws-sdk-eks-ec2-iam-2.348.0.min.js'); + app.import('vendor/aws-sdk-eks-ec2-iam-kms-2.705.0.min.js'); app.import('vendor/ember-shortcuts.js'); app.import('vendor/aliyun-sdk.js'); app.import('vendor/cce-sdk.js'); diff --git a/lib/global-admin/addon/clusters/new/launch/controller.js b/lib/global-admin/addon/clusters/new/launch/controller.js index 27d2126a2d..f4c37f3dab 100644 --- a/lib/global-admin/addon/clusters/new/launch/controller.js +++ b/lib/global-admin/addon/clusters/new/launch/controller.js @@ -6,9 +6,10 @@ export default Controller.extend({ growl: service(), settings: service(), - queryParams: ['clusterTemplateRevision'], + queryParams: ['clusterTemplateRevision', 'importProvider'], clusterTemplateRevision: null, + importProvider: null, cluster: alias('model.cluster'), diff --git a/lib/global-admin/addon/clusters/new/launch/route.js b/lib/global-admin/addon/clusters/new/launch/route.js index b20b99b593..a4016c621b 100644 --- a/lib/global-admin/addon/clusters/new/launch/route.js +++ b/lib/global-admin/addon/clusters/new/launch/route.js @@ -101,7 +101,10 @@ export default Route.extend({ resetController(controller, isExiting, transition) { if (isExiting && transition.targetName !== 'error') { - controller.set('clusterTemplateRevision', null); + controller.setProperties({ + clusterTemplateRevision: null, + importProvider: null + }); } }, @@ -119,5 +122,8 @@ export default Route.extend({ } }, - queryParams: { clusterTemplateRevision: { refreshModel: true } } + queryParams: { + clusterTemplateRevision: { refreshModel: true }, + importProvider: { refreshModel: true }, + } }); diff --git a/lib/global-admin/addon/clusters/new/select/controller.js b/lib/global-admin/addon/clusters/new/select/controller.js index 2a3c3bf491..3a68729a3f 100644 --- a/lib/global-admin/addon/clusters/new/select/controller.js +++ b/lib/global-admin/addon/clusters/new/select/controller.js @@ -81,6 +81,15 @@ export default Controller.extend({ driver: 'amazoneks', kontainerId: 'amazonelasticcontainerservice', }, + // No driver entry exists for this since it is not a kontainerEngine driver + { + displayName: 'Amazon EKS', + driver: 'eks', + name: 'amazoneksv2', + nodePool: false, + nodeWhich: 'eks', + preSave: false, + }, { name: 'azureaks', driver: 'azureaks', @@ -103,7 +112,7 @@ export default Controller.extend({ }, ]; - out = out.filter( (o) => builtIn.findBy('id', o.kontainerId) ); + out = out.filter( (o) => builtIn.findBy('id', o.kontainerId) || o.name === 'amazoneksv2' ); if (custom.length > 0) { custom.forEach( (c) => { diff --git a/lib/global-admin/addon/clusters/new/select/template.hbs b/lib/global-admin/addon/clusters/new/select/template.hbs index 5b797741c5..c7851b55e1 100644 --- a/lib/global-admin/addon/clusters/new/select/template.hbs +++ b/lib/global-admin/addon/clusters/new/select/template.hbs @@ -1,6 +1,5 @@
- {{#if disabledAddCluster}} {{/if}} -
- {{#if disabledAddCluster}} - -
-
-

{{t "clusterNew.custom.label"}}

-

- {{t "clusterNew.custom.helpBlock"}} -

-
-
- {{else}} - {{#link-to - "clusters.new.launch" - "custom" - class="col span-6 cluster-driver-box span-height full-height" - }} -
-
-

{{t "clusterNew.custom.label"}}

-

- {{t "clusterNew.custom.helpBlock"}} -

-
- {{/link-to}} - {{/if}} - - {{#if disabledAddCluster}} - -
-
-

{{t "clusterNew.import.label"}}

-

- {{t "clusterNew.import.helpBlock" - appName=settings.appName - htmlSafe=true - }} -

-
-
- {{else}} - {{#link-to - "clusters.new.launch" - "import" - class="col span-6 cluster-driver-box span-height full-height" - }} -
-
-

{{t "clusterNew.import.label"}}

-

- {{t "clusterNew.import.helpBlock" - appName=settings.appName - htmlSafe=true - }} -

-
- {{/link-to}} - {{/if}} + +
+
+

+ {{t "clusterNew.custom.label"}} +

+

+ {{t "clusterNew.custom.helpBlock"}} +

+
+
+ +
+
+

+ {{t "clusterNew.import.label"}} +

+

+ {{t + "clusterNew.import.helpBlock" + appName=settings.appName + htmlSafe=true + }} +

+
+
- - - {{#if (gt (get (get providerGroups "rkeGroup") "length") 0)}}
@@ -86,27 +52,46 @@ {{t "clusterNew.driverLabels.infra"}}
- {{#each (get providerGroups "rkeGroup") as |provider|}} {{#if disabledAddCluster}} -
+
-

{{driver-name provider.name}}

+

+ {{driver-name provider.name}} +

{{else}} {{#link-to - "clusters.new.launch" - provider.name - class=(concat "col span-2 cluster-driver-box small span-height full-height " provider.name) + "clusters.new.launch" + provider.name + class=(concat + "col span-2 cluster-driver-box small span-height full-height " + provider.name + ) }} -
+
-

{{driver-name provider.name}}

+

+ {{driver-name provider.name}} +

{{/link-to}} {{/if}} @@ -114,7 +99,6 @@
{{/if}} - {{#if (gt (get (get providerGroups "cloudGroup") "length") 0)}}
@@ -125,24 +109,49 @@
{{#each (get providerGroups "cloudGroup") as |provider|}} {{#unless provider.scriptError}} - {{#link-to - "clusters.new.launch" - provider.name - class=(concat "col span-2 cluster-driver-box small span-height full-height" provider.name) - }} -
-
-

{{driver-name provider.name}}

-
- {{/link-to}} + {{#unless (eq provider.name "amazoneks")}} + {{#link-to + "clusters.new.launch" + provider.name + class=(concat + "col span-2 cluster-driver-box small span-height full-height" + provider.name + ) + }} +
+
+

+ {{driver-name provider.name}} +

+
+ {{/link-to}} + {{/unless}} {{else}} -
- {{#tooltip-element type="tooltip-basic" model=provider.scriptError tooltipTemplate="tooltip-static" aria-describedby="tooltip-base" tooltipFor="tooltipDriverError"}} +
+ {{#tooltip-element + type="tooltip-basic" + model=provider.scriptError + tooltipTemplate="tooltip-static" + aria-describedby="tooltip-base" + tooltipFor="tooltipDriverError" + }} {{/tooltip-element}}
-

{{driver-name provider.name}}

+

+ {{driver-name provider.name}} +

{{/unless}} @@ -151,7 +160,6 @@
{{/if}}
- {{/if}} diff --git a/lib/shared/addon/components/cluster-driver/driver-import-eks/component.js b/lib/shared/addon/components/cluster-driver/driver-import-eks/component.js new file mode 100644 index 0000000000..74568bc5cc --- /dev/null +++ b/lib/shared/addon/components/cluster-driver/driver-import-eks/component.js @@ -0,0 +1,196 @@ +import Component from '@ember/component' +import ClusterDriver from 'shared/mixins/cluster-driver'; +import { inject as service } from '@ember/service'; +import { + computed, get, set, observer, setProperties +} from '@ember/object'; +import { alias, equal, union } from '@ember/object/computed'; +import layout from './template'; +import { isEmpty } from '@ember/utils'; +import { EKS_REGIONS } from 'shared/utils/amazon'; +import { randomStr } from 'shared/utils/util'; +import { next } from '@ember/runloop'; +import { on } from '@ember/object/evented'; + +export default Component.extend(ClusterDriver, { + globalStore: service(), + growl: service(), + settings: service(), + intl: service(), + + layout, + configField: 'eksConfig', + step: 1, + loading: false, + nodeForInfo: null, + loadingClusters: false, + regionChoices: EKS_REGIONS, + errors: null, + otherErrors: null, + clusterErrors: null, + selectedCred: null, + + isEdit: equal('mode', 'edit'), + clusterState: alias('model.originalCluster.state'), + + allErrors: union('errors', 'otherErrors', 'clusterErrors'), + + init() { + this._super(...arguments); + + setProperties(this, { + errors: [], + clusterErrors: [], + otherErrors: [], + }); + + if (this.isEdit) { + const cloudCredId = get(this, 'model.cluster.eksConfig.amazonCredentialSecret'); + const cloudCred = (this.model.cloudCredentials || []).find((cc) => cc.id === cloudCredId); + + if (!isEmpty(cloudCred)) { + next(() => { + this.send('finishAndSelectCloudCredential', cloudCred); + }); + } + } else { + this.bootstrapEksV2Cluster(); + } + }, + + actions: { + finishAndSelectCloudCredential(cred) { + if (isEmpty(cred)) { + set(this, 'config.amazonCredentialSecret', null); + set(this, 'selectedCred', null); + } else { + set(this, 'config.amazonCredentialSecret', cred.id); + set(this, 'selectedCred', cred); + + this.send('fetchEksResources'); + } + }, + + async fetchEksResources(cb) { + const errors = []; + let step = 2; + let allClusters; + + set(this, 'loadingClusters', true); + + try { + const authCreds = this.authCreds(); + + allClusters = await this.listEksClusters(authCreds); + + setProperties(this, { + allClusters: (allClusters || []).map((c) => { + return { + label: c, + value: c + }; + }), + step, + }); + + if (cb) { + cb() + } + } catch (err) { + errors.pushObject(`Failed to load Clusters from Amazon: ${ err.message }`); + + // EKS List Clusters API fails sometimes to list this, user cnn input a cluster name though so dont fail + setProperties(this, { + loadFailedAllClusters: true, + errors + }); + + if (cb) { + cb(false, err); + } + } finally { + setProperties(this, { + loadingClusters: false, + step, + }); + } + }, + }, + + regionOrCredentialChanged: on('init', observer('config.region', 'config.amazonCredentialSecret', function() { + const { + config: { + region, + amazonCredentialSecret, + }, + loadingClusters + } = this; + + if (!isEmpty(region) && !isEmpty(amazonCredentialSecret) && !loadingClusters) { + this.send('fetchEksResources'); + } + })), + + disableImport: computed('step', 'config.{amazonCredentialSecret,displayName}', function() { + const { step, config: { amazonCredentialSecret, displayName } } = this; + + if (step <= 2 && !isEmpty(amazonCredentialSecret) && !isEmpty(displayName)) { + return false; + } + + return true; + }), + + doneSaving() { + if (this.close) { + this.close(); + } + }, + + bootstrapEksV2Cluster() { + const eksConfig = this.globalStore.createRecord({ + displayName: '', + imported: true, + region: 'us-west-2', + type: 'eksclusterconfigspec', + }); + + set(this, 'model.cluster.eksConfig', eksConfig); + set(this, 'config', eksConfig); + }, + + listEksClusters(auth) { + return new Promise((resolve, reject) => { + const eks = new AWS.EKS(auth); + + eks.listClusters({}, (err, data) => { + if (err) { + console.log(err, err.stack); + + return reject(err); + } + + return resolve(data.clusters); + }); + }) + }, + + authCreds() { + let { + config: { + region, + amazonCredentialSecret + } + } = this; + + const auth = { + accessKeyId: randomStr(), + secretAccessKey: randomStr(), + region, + httpOptions: { cloudCredentialId: amazonCredentialSecret }, + }; + + + return auth; + }, +}); diff --git a/lib/shared/addon/components/cluster-driver/driver-import-eks/template.hbs b/lib/shared/addon/components/cluster-driver/driver-import-eks/template.hbs new file mode 100644 index 0000000000..d6d2f9f286 --- /dev/null +++ b/lib/shared/addon/components/cluster-driver/driver-import-eks/template.hbs @@ -0,0 +1,97 @@ + + +
+
+ + +
+
+
+ +
+
+ + {{#if (or (and (gte step 2) config.amazonCredentialSecret) (and config.amazonCredentialSecret loadingClusters) )}} + +
+
+ {{#if loadingClusters}} +
+
+ +
+
+ {{else}} + {{#if loadFailedAllClusters}} + + + {{else}} + + + {{/if}} + {{/if}} +
+
+
+ {{/if}} +
+ +{{#if (gte step 2)}} + +{{/if}} \ No newline at end of file diff --git a/lib/shared/addon/components/cluster-driver/driver-import/component.js b/lib/shared/addon/components/cluster-driver/driver-import/component.js index b920b7127d..f80c7e9502 100644 --- a/lib/shared/addon/components/cluster-driver/driver-import/component.js +++ b/lib/shared/addon/components/cluster-driver/driver-import/component.js @@ -21,9 +21,10 @@ export default Component.extend(ClusterDriver, { nodeForInfo: null, clusterAdmin: CLUSTER_ADMIN, - isEdit: equal('mode', 'edit'), - clusterState: alias('model.originalCluster.state'), - isK3sCluster: equal('model.cluster.driver', 'k3s'), + isEdit: equal('mode', 'edit'), + clusterState: alias('model.originalCluster.state'), + isK3sCluster: equal('model.cluster.driver', 'k3s'), + isRke2Cluster: equal('model.cluster.driver', 'rke2'), didReceiveAttrs() { if ( get(this, 'isEdit') && @@ -32,18 +33,33 @@ export default Component.extend(ClusterDriver, { this.loadToken(); } - if ( get(this, 'isEdit') && this.isK3sCluster ) { - set(this, 'configField', 'k3sConfig'); + if ( get(this, 'isEdit') ) { + if (this.isK3sCluster) { + set(this, 'configField', 'k3sConfig'); - if (this.model.cluster.masterNodes.length === 1) { - set(this, 'nodeForInfo', this.model.cluster.masterNodes.firstObject); - } + if (this.model.cluster.masterNodes.length === 1) { + set(this, 'nodeForInfo', this.model.cluster.masterNodes.firstObject); + } - if (isEmpty(this.model.cluster.k3sConfig)) { - set(this, 'model.cluster.k3sConfig', this.globalStore.createRecord({ - type: 'k3sConfig', - kubernetesVersion: this.cluster.version.gitVersion - })); + if (isEmpty(this.model.cluster.k3sConfig)) { + set(this, 'model.cluster.k3sConfig', this.globalStore.createRecord({ + type: 'k3sConfig', + kubernetesVersion: this.cluster.version.gitVersion + })); + } + } else if (this.isRke2Cluster) { + set(this, 'configField', 'rke2Config'); + + if (this.model.cluster.masterNodes.length === 1) { + set(this, 'nodeForInfo', this.model.cluster.masterNodes.firstObject); + } + + if (isEmpty(this.model.cluster.rke2Config)) { + set(this, 'model.cluster.rke2Config', this.globalStore.createRecord({ + type: 'rke2Config', + kubernetesVersion: this.cluster.version.gitVersion + })); + } } } }, @@ -108,11 +124,16 @@ export default Component.extend(ClusterDriver, { } = this; let errors = []; - if (field === 'k3sConfig' && config.k3supgradeStrategy) { - // doesn't work because missing deep validation - // errors = config.k3supgradeStrategy.validationErrors(); - if (config.k3supgradeStrategy.serverConcurrency <= 0 || config.k3supgradeStrategy.workerConcurrency <= 0) { - errors.push(this.intl.t('clusterNew.k3simport.errors.concurrency.negative')) + if (field === 'k3sConfig' || field === 'rke2Config' ) { + if (config.k3supgradeStrategy) { + // doesn't work because missing deep validation + // errors = config.k3supgradeStrategy.validationErrors(); + if (config.k3supgradeStrategy.serverConcurrency <= 0 || config.k3supgradeStrategy.workerConcurrency <= 0) { + errors.push(this.intl.t('clusterNew.k3simport.errors.concurrency.negative')) + } + } + if (config.rke2upgradeStrategy) { + } } diff --git a/lib/shared/addon/components/cluster-driver/driver-import/template.hbs b/lib/shared/addon/components/cluster-driver/driver-import/template.hbs index 96948f1470..8e96b2a8c7 100644 --- a/lib/shared/addon/components/cluster-driver/driver-import/template.hbs +++ b/lib/shared/addon/components/cluster-driver/driver-import/template.hbs @@ -1,56 +1,22 @@ -{{#if (and (eq step 1) isK3sCluster)}} +{{#if (and (eq step 1) (or isK3sCluster isRke2Cluster))}} - - - - diff --git a/lib/shared/addon/components/cru-cluster/component.js b/lib/shared/addon/components/cru-cluster/component.js index e466d1652c..170a498136 100644 --- a/lib/shared/addon/components/cru-cluster/component.js +++ b/lib/shared/addon/components/cru-cluster/component.js @@ -42,6 +42,7 @@ export default Component.extend(ViewNewEdit, ChildHook, { isCustom: equal('driverInfo.nodeWhich', 'custom'), isK3sCluster: equal('model.cluster.driver', 'k3s'), + isRke2Cluster: equal('model.cluster.driver', 'rke2'), init() { this._super(...arguments); @@ -166,6 +167,15 @@ export default Component.extend(ViewNewEdit, ChildHook, { driver: 'amazoneks', kontainerId: 'amazonelasticcontainerservice', }, + // TODO - No driver entry exists for this since it is not a kontainerEngine driver, we need to disable by default the amazon eks v1 driver + { + displayName: 'Amazon EKS', + driver: 'eks', + name: 'amazoneksv2', + nodePool: false, + nodeWhich: 'eks', + preSave: false, + }, { name: 'azureaks', driver: 'azureaks', @@ -188,7 +198,7 @@ export default Component.extend(ViewNewEdit, ChildHook, { }, ]; - out = out.filter( (o) => builtIn.findBy('id', o.kontainerId) ); + out = out.filter( (o) => builtIn.findBy('id', o.kontainerId) || o.name === 'amazoneksv2' ); if (custom.length > 0) { custom.forEach( (c) => { @@ -253,12 +263,24 @@ export default Component.extend(ViewNewEdit, ChildHook, { preSave: true }); + out.push({ + name: 'importeks', + driver: 'import-eks', + preSave: false + }); + out.push({ name: 'k3s', driver: 'import', preSave: true }); + out.push({ + name: 'rke2', + driver: 'import', + preSave: true + }); + out.forEach((driver) => { const key = `clusterNew.${ driver.name }.label`; @@ -276,35 +298,18 @@ export default Component.extend(ViewNewEdit, ChildHook, { return out; }), - providerGroups: computed('providerChoices.@each.{name,driver,nodeComponent,nodeWhich,preSave}', function() { - const choices = get(this, 'providerChoices'); - const rkeGroup = []; - const cloudGroup = []; - const customGroup = []; - const importGroup = []; - - choices.forEach((item) => { - if (get(item, 'driver') === 'rke' && get(item, 'name') !== 'custom') { - rkeGroup.pushObject(item); - } else if (get(item, 'driver') === 'import' && get(item, 'name') !== 'custom') { - importGroup.pushObject(item); - } else if (get(item, 'name') === 'custom') { - customGroup.pushObject(item); - } else { - cloudGroup.pushObject(item); - } - }); + driverInfo: computed('provider', 'router.currentRoute.queryParams', function() { + let name = get(this, 'provider'); + const { router } = this; + const importProvider = get(router, 'currentRoute.queryParams.importProvider'); - return { - cloudGroup, - customGroup, - importGroup, - rkeGroup, - }; - }), - - driverInfo: computed('provider', function() { - const name = get(this, 'provider'); + if (name === 'import') { + if (isEmpty(importProvider)) { + return null; + } else if (importProvider === 'eks') { + name = 'importeks' + } + } const choices = get(this, 'providerChoices'); const entry = choices.findBy('name', name); @@ -320,6 +325,31 @@ export default Component.extend(ViewNewEdit, ChildHook, { } }), + showDriverComponent: computed('routeLoading', 'provider', 'router.currentRoute.queryParams', function() { + const { + driverInfo, + provider, + routeLoading, + router, + } = this; + const importProvider = get(router, 'currentRoute.queryParams.importProvider'); + + if (routeLoading || isEmpty(driverInfo)) { + return false; + } + + + if (provider === 'import') { + if (!isEmpty(importProvider)) { + return true; + } else { + return false; + } + } + + return true; + }), + doSave(opt) { opt = opt || {}; opt.qp = { '_replace': 'true' }; diff --git a/lib/shared/addon/components/cru-cluster/template.hbs b/lib/shared/addon/components/cru-cluster/template.hbs index 893e33df16..319bdc4afd 100644 --- a/lib/shared/addon/components/cru-cluster/template.hbs +++ b/lib/shared/addon/components/cru-cluster/template.hbs @@ -1,3 +1,57 @@ +{{#if (eq provider "import")}} + +{{/if}} {{#if (eq step 1)}}
{{form-name-description @@ -65,7 +119,7 @@ cc.id === cred)); + } else { + const { primaryResource, cloudCredentialKey } = this; + + set(primaryResource, cloudCredentialKey, cred); + } + }, doneSavingCloudCredential(cred) { if (cred) { - get(this, 'finishAndSelectCloudCredential')(cred) + if (this.finishAndSelectCloudCredential) { + this.finishAndSelectCloudCredential(cred); + } set(this, 'showAddCloudCredential', false); } }, addCloudCredential() { + const { primaryResource = {}, cloudCredentialKey } = this; + + if (get(primaryResource, cloudCredentialKey)) { + this.send('setCloudCredential', null); + } + set(this, 'showAddCloudCredential', true); }, cancleNewCloudCredential() { @@ -43,8 +65,11 @@ export default Component.extend({ }, initSingleOrAddCredential() { - let { cloudCredentials = [], primaryResource } = this; + let { + cloudCredentials = [], primaryResource, cloudCredentialKey + } = this; let singleCloudCredentialId = get((cloudCredentials || []), 'firstObject.id') || null; + const cloudCredentialValue = get((primaryResource || {}), cloudCredentialKey); if (isEmpty(get(this, 'cloudCredentials'))) { next(() => { @@ -53,8 +78,8 @@ export default Component.extend({ } next(() => { - if ( primaryResource && ( !primaryResource.cloudCredentialId || !cloudCredentials.find((c) => c.id === primaryResource.cloudCredentialId)) ) { - set(this, 'primaryResource.cloudCredentialId', singleCloudCredentialId); + if ( primaryResource && ( !cloudCredentialValue || !cloudCredentials.find((c) => c.id === cloudCredentialValue)) ) { + this.send('setCloudCredential', singleCloudCredentialId); } }); }, diff --git a/lib/shared/addon/components/form-auth-cloud-credential/template.hbs b/lib/shared/addon/components/form-auth-cloud-credential/template.hbs index 3c0f7c9be5..66b2e257be 100644 --- a/lib/shared/addon/components/form-auth-cloud-credential/template.hbs +++ b/lib/shared/addon/components/form-auth-cloud-credential/template.hbs @@ -3,49 +3,40 @@ -
- -
- - {{#if showAddCloudCredential}}
{{cru-cloud-credential @@ -61,7 +52,7 @@ {{else}} {{#unless hideSave}} {{save-cancel - saveDisabled=(unless primaryResource.cloudCredentialId true) + saveDisabled=(unless (get primaryResource cloudCredentialKey) true) save=progressStep cancel=cancel createLabel=createLabel diff --git a/lib/shared/addon/components/form-value-array/component.js b/lib/shared/addon/components/form-value-array/component.js index e2bcadde3e..30cec2c440 100644 --- a/lib/shared/addon/components/form-value-array/component.js +++ b/lib/shared/addon/components/form-value-array/component.js @@ -1,6 +1,5 @@ import { next } from '@ember/runloop'; -import { get, set, observer } from '@ember/object'; -import EmberObject from '@ember/object'; +import EmberObject, { get, set, observer } from '@ember/object'; import Component from '@ember/component'; import layout from './template'; import $ from 'jquery'; @@ -8,20 +7,22 @@ import $ from 'jquery'; export default Component.extend({ layout, // Inputs - initialValues: null, - addActionLabel: 'formValueArray.addActionLabel', - valueLabel: 'formValueArray.valueLabel', - valuePlaceholder: 'formValueArray.valuePlaceholder', - noDataLabel: 'formValueArray.noData', - showProTip: true, - editing: true, - required: false, - autoAddIfEmpty: false, - defaultValue: '', - addButtonClass: 'btn bg-link icon-btn mt-10', - - ary: null, - asValues: null, + initialValues: null, + addActionLabel: 'formValueArray.addActionLabel', + valueLabel: 'formValueArray.valueLabel', + valuePlaceholder: 'formValueArray.valuePlaceholder', + noDataLabel: 'formValueArray.noData', + showProTip: true, + editing: true, + valueLabelEnabled: true, + required: false, + autoAddIfEmpty: false, + addButtonEnabled: true, + defaultValue: '', + addButtonClass: 'btn bg-link icon-btn mt-10', + + ary: null, + asValues: null, init() { this._super(...arguments); diff --git a/lib/shared/addon/components/form-value-array/template.hbs b/lib/shared/addon/components/form-value-array/template.hbs index a52e73aae3..e648723b89 100644 --- a/lib/shared/addon/components/form-value-array/template.hbs +++ b/lib/shared/addon/components/form-value-array/template.hbs @@ -1,6 +1,7 @@ -
@@ -48,38 +50,38 @@
{{#input-or-display editable=editing - value=k3sConfig.k3supgradeStrategy.serverConcurrency + value=serverConcurrency }} {{input id="node-server-concurrency" class="form-control" type="number" min=1 - value=k3sConfig.k3supgradeStrategy.serverConcurrency + value=serverConcurrency }} {{/input-or-display}}
{{#input-or-display editable=editing - value=k3sConfig.k3supgradeStrategy.workerConcurrency + value=workerConcurrency }} {{input id="node-worker-concurrency" class="form-control" type="number" min=1 - value=k3sConfig.k3supgradeStrategy.workerConcurrency + value=workerConcurrency }} {{/input-or-display}}
diff --git a/lib/shared/addon/components/node-group-row/component.js b/lib/shared/addon/components/node-group-row/component.js new file mode 100644 index 0000000000..12b82fb3bf --- /dev/null +++ b/lib/shared/addon/components/node-group-row/component.js @@ -0,0 +1,39 @@ +import Component from '@ember/component'; +import layout from './template'; +import { INSTANCE_TYPES } from 'shared/utils/amazon'; +import { set } from '@ember/object'; + +export default Component.extend({ + layout, + classNames: ['row', 'mb-20'], + editing: true, + instanceTypes: INSTANCE_TYPES, + keyPairs: null, + + actions: { + setTags(section) { + const { model: { tags = {} } } = this; + + for (let key in section) { + tags[key] = section[key]; + } + + set(this, 'model.tags', tags); + }, + + setLabels(section) { + const { model: { labels = {} } } = this; + + for (let key in section) { + labels[key] = section[key]; + } + + set(this, 'model.labels', labels); + }, + }, + + removeNodeGroup() { + throw new Error('remove node group action is required!'); + }, + +}); diff --git a/lib/shared/addon/components/node-group-row/template.hbs b/lib/shared/addon/components/node-group-row/template.hbs new file mode 100644 index 0000000000..fd757e690d --- /dev/null +++ b/lib/shared/addon/components/node-group-row/template.hbs @@ -0,0 +1,150 @@ +
+
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+ + + {{t "generic.gigabyte"}} + +
+
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+
+ +
+
+ + {{#if keyPairs}} + {{searchable-select + classNames="form-control" + value=model.ec2SshKey + content=keyPairs + optionValuePath="KeyName" + optionLabelPath="KeyName" + prompt=(t "nodeDriver.amazoneks.keyPairs.prompt") + }} + {{else}} + + {{/if}} +
+
+
+ +
+
+
+ +
+
+ + +
+
+ + +
+
+
\ No newline at end of file diff --git a/lib/shared/addon/mixins/cluster-driver.js b/lib/shared/addon/mixins/cluster-driver.js index 2e300389fc..11f35cc932 100644 --- a/lib/shared/addon/mixins/cluster-driver.js +++ b/lib/shared/addon/mixins/cluster-driver.js @@ -4,6 +4,7 @@ import { alias } from '@ember/object/computed'; import { resolve } from 'rsvp'; import { inject as service } from '@ember/service'; import { typeOf, isEmpty } from '@ember/utils'; +import { isArray } from '@ember/array'; export default Mixin.create({ configField: '', @@ -30,6 +31,25 @@ export default Mixin.create({ }, actions: { + errorHandler(err, shouldClearPreviousErrors = false) { + let { errors } = this; + + if (shouldClearPreviousErrors) { + errors = set(this, 'errors', []); + } + + if (errors) { + if (isArray(err)) { + errors.pushObjects(err); + } else { + errors.pushObject(err); + } + } else { + errors = [err]; + } + + set(this, 'errors', errors); + }, driverSave(cb) { cb = cb || function() {}; diff --git a/lib/shared/addon/k3s/service.js b/lib/shared/addon/release-versions/service.js similarity index 70% rename from lib/shared/addon/k3s/service.js rename to lib/shared/addon/release-versions/service.js index ab6ce5892a..8b3b3e467d 100644 --- a/lib/shared/addon/k3s/service.js +++ b/lib/shared/addon/release-versions/service.js @@ -7,9 +7,10 @@ export default Service.extend({ allVersions: null, - async getAllVersions() { + async getAllVersions(driver) { try { - const resp = await this.globalStore.request({ url: '/v1-release/release' }); + const path = driver === 'k3s' ? '/v1-k3s-release/release' : '/v1-rke2-release/release'; + const resp = await this.globalStore.request({ url: path }); const versions = []; resp.content.forEach((ver) => { diff --git a/lib/shared/addon/utils/amazon.js b/lib/shared/addon/utils/amazon.js index ff46e9f1f5..3cf8bc1fb8 100644 --- a/lib/shared/addon/utils/amazon.js +++ b/lib/shared/addon/utils/amazon.js @@ -590,6 +590,34 @@ export const REGIONS = [ 'us-gov-east-1', ]; +export const EKS_REGIONS = [ + 'af-south-1', + 'ap-northeast-1', + 'ap-northeast-2', + 'ap-southeast-1', + 'ap-southeast-2', + 'ap-east-1', + 'ap-south-1', + 'me-south-1', + 'ca-central-1', + 'cn-north-1', + 'cn-northwest-1', + 'eu-north-1', + 'eu-west-1', + 'eu-west-2', + 'eu-west-3', + 'eu-central-1', + 'sa-east-1', + 'us-east-1', + 'us-east-2', + 'us-west-1', + 'us-west-2', + 'us-gov-west-1', + 'us-gov-east-1', +]; + +// from https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html +export const EKS_VERSIONS = ['1.15', '1.14', '1.13']; // sort newest->oldest so we dont have to run any logic to sort like other provider versions export const nameFromResource = function(r, idField) { let id = r[idField]; diff --git a/lib/shared/app/components/cluster-driver/driver-eks/component.js b/lib/shared/app/components/cluster-driver/driver-eks/component.js new file mode 100644 index 0000000000..4855bc69a0 --- /dev/null +++ b/lib/shared/app/components/cluster-driver/driver-eks/component.js @@ -0,0 +1 @@ +export { default } from 'shared/components/cluster-driver/driver-eks/component'; \ No newline at end of file diff --git a/lib/shared/app/components/cluster-driver/driver-import-eks/component.js b/lib/shared/app/components/cluster-driver/driver-import-eks/component.js new file mode 100644 index 0000000000..570326dfc8 --- /dev/null +++ b/lib/shared/app/components/cluster-driver/driver-import-eks/component.js @@ -0,0 +1 @@ +export { default } from 'shared/components/cluster-driver/driver-import-eks/component'; diff --git a/lib/shared/app/components/k3s-cluster-info/component.js b/lib/shared/app/components/k3s-cluster-info/component.js deleted file mode 100644 index bb3d072d0a..0000000000 --- a/lib/shared/app/components/k3s-cluster-info/component.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from 'shared/components/k3s-cluster-info/component'; \ No newline at end of file diff --git a/lib/shared/app/components/managed-import-cluster-info/component.js b/lib/shared/app/components/managed-import-cluster-info/component.js new file mode 100644 index 0000000000..51cb05862c --- /dev/null +++ b/lib/shared/app/components/managed-import-cluster-info/component.js @@ -0,0 +1 @@ +export { default } from 'shared/components/managed-import-cluster-info/component'; diff --git a/lib/shared/app/components/node-group-row/component.js b/lib/shared/app/components/node-group-row/component.js new file mode 100644 index 0000000000..f89cd5d18c --- /dev/null +++ b/lib/shared/app/components/node-group-row/component.js @@ -0,0 +1 @@ +export { default } from 'shared/components/node-group-row/component'; \ No newline at end of file diff --git a/lib/shared/app/k3s/service.js b/lib/shared/app/k3s/service.js deleted file mode 100644 index b61fb5f5f1..0000000000 --- a/lib/shared/app/k3s/service.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from 'shared/k3s/service'; diff --git a/lib/shared/app/release-versions/service.js b/lib/shared/app/release-versions/service.js new file mode 100644 index 0000000000..8932fa0e2d --- /dev/null +++ b/lib/shared/app/release-versions/service.js @@ -0,0 +1 @@ +export { default } from 'shared/release-versions/service'; diff --git a/server/proxies/api.js b/server/proxies/api.js index dac8c6104b..c50cdaab80 100644 --- a/server/proxies/api.js +++ b/server/proxies/api.js @@ -44,21 +44,22 @@ module.exports = function(app, options) { }); let map = { - 'Project': config.projectEndpoint.replace(config.projectToken, ''), - 'Cluster': config.clusterEndpoint.replace(config.clusterToken, ''), - 'Global': config.apiEndpoint, - 'Public': config.publicApiEndpoint, - 'Magic': config.magicEndpoint, - 'Telemetry': config.telemetryEndpoint, - - 'K8s': '/k8s', - 'Meta': '/meta', - 'Swagger': '/swaggerapi', - 'Version': '/version', - 'Apiui': '/api-ui', - 'Samlauth': '/v1-saml', - 'Drivers': '/assets/rancher-ui-driver-*', - 'K3Versions': '/v1-release', + 'Project': config.projectEndpoint.replace(config.projectToken, ''), + 'Cluster': config.clusterEndpoint.replace(config.clusterToken, ''), + 'Global': config.apiEndpoint, + 'Public': config.publicApiEndpoint, + 'Magic': config.magicEndpoint, + 'Telemetry': config.telemetryEndpoint, + + 'K8s': '/k8s', + 'Meta': '/meta', + 'Swagger': '/swaggerapi', + 'Version': '/version', + 'Apiui': '/api-ui', + 'Samlauth': '/v1-saml', + 'Drivers': '/assets/rancher-ui-driver-*', + 'K3Versions': '/v1-k3s-release/release', + 'Rke2Versions': '/v1-rke2-release/release', } app.use('/', function(req, res, next) { diff --git a/translations/en-us.yaml b/translations/en-us.yaml index 0fc6718a82..39da771017 100644 --- a/translations/en-us.yaml +++ b/translations/en-us.yaml @@ -1366,6 +1366,7 @@ clustersPage: clusterLaunchDisabled: "You have not been granted access to any RKE Templates." launch: new: Add Cluster + import: Import Cluster cluster: label: Cluster Name templateRevision: @@ -3331,6 +3332,131 @@ clusterNew: access: title: Account Access detail: Choose the region and API Key that will be used to launch Amazon EKS + region: Region + next: "Next: Configure Cluster" + clusterOption: + title: Cluster Options + detail: Customize the cluster that will be used to launch EKS Instances + kubernetesVersion: + label: Kubernetes Version + placeholder: Select the Kubernetes Version to install + secretsEncryption: + label: Secrets Encryption + disabled: None + kms: "KMS Key: Select or Enter KMS Key that will be used to encrypt secrets" + kmsHelpLabel: KMS Key ARN + tags: + label: Tags + addActionLabel: Add Tag + nodeGroups: + title: Managed Node Groups + detail: Customize managed node groups. + addLabel: Add Node Group + noNodes: No Node Groups + role: + label: Service Role + noneSelected: "Rancher created role" + help: "You may choose to not select a Service Role and one will be created for you." + radio: + default: "Standard: Service role is automatically created" + custom: "Custom: Choose from your existing service roles" + next: "Next: Select VPC & Subnet" + loading: "Loading VPCs from Amazon..." + vpc: + title: VPC & Subnet + detail: Choose the VPC for that will be used for EKS Instances + next: "Next: Select Subnets" + loading: "Loading Subnets from Amazon..." + nextRancherDefault: "Next: Select Instance Options" + loadingRancherDefault: "Loading Instance options..." + noneSelected: "Rancher created VPC and Subnet" + radio: + default: "Standard: VPC and Subnet are automatically created" + custom: "Custom: Choose from your existing VPC and Subnets" + access: + public: + label: Public Access + private: + label: Private Access + endpoints: + label: Public Access Endpoints + valueLabel: Endpoints + addActionLabel: Add Endpoint + helpBlock: Optionally limit access to the public endpoint via explicit CIDR blocks. If you limit access to specific CIDR blocks, then it is recommended that you also enable the private access to avoid loosing network communitcation to the cluster. + logging: + title: Logging + detail: "Configure control plane logs to send to Amazon CloudWatch. You are charged the standard CloudWatch Logs data ingestion and storage costs for any logs sent to CloudWatch Logs from your clusters." + audit: + label: Audit + tooltip: "Kubernetes audit logs provide a record of the individual users, administrators, or system components that have affected your cluster." + api: + label: API + tooltip: "Your cluster's API server is the control plane component that exposes the Kubernetes API." + scheduler: + label: Scheduler + tooltip: "The scheduler component manages when and where to run pods in your cluster." + controllerManager: + label: Controller Manaager + tooltip: "The controller manager manages the core control loops that are shipped with Kubernetes." + authenticator: + label: Authenticator + tooltip: "Authenticator logs are unique to Amazon EKS. These logs represent the control plane component that Amazon EKS uses for Kubernetes Role Based Access Control (RBAC) authentication using IAM credentials." + subnet: + title: Subnet + help: 2 subnets required + next: "Next: Select Security Group" + loading: "Loading Security Groups from Amazon..." + associateWorkerNodePublicIp: + title: Public IP for Worker Nodes + radio: + default: Yes + off: 'No: Private IPs only' + securityGroup: + title: Security Groups + detail: Choose the security groups that will be applied to EKS Instances + choose: Choose one or more existing groups + defaultExisting: "Standard: Use the existing {groupName} group" + defaultCreate: "Standard: Automatically create a new security group" + next: "Next: Set Instance options" + loading: Loading Instance options... + ami: + label: Custom AMI Override + help: "You may override the default AMI based on your region" + max: + label: Maximum ASG Size + min: + label: Minimum ASG Size + desired: + label: Desired ASG Size + userData: + label: User Data + help: Pass user-data to the nodes to perform automated configuration tasks + placeholder: Paste in the script + nodeVolumeSize: + label: Node Volume Size + placeholder: e.g. 20 + accessKey: + label: Access Key + placeholder: Your AWS access key + secretKey: + label: Secret Key + placeholder: Your AWS secret key + provided: Provided + sessionToken: + label: "Session Token Optional" + placeholder: Your AWS session token + provided: Provided + region: + label: Region + import: + clusterSelect: + title: Choose Cluster + detail: Choose an EKS cluster to import + select: + label: Cluster To Import + input: + label: Cluster Name To Import + createLabel: Import Cluster tencenttke: label: Tencent Kubernetes Engine shortLabel: Tencent TKE @@ -3775,6 +3901,9 @@ clusterNew: placeholder: Value required: 'Taint "key" and "value" are required.' tablesOnly: Tables Only + rke2: + label: Rancher RKE2 + shortLabel: RKE2 k3simport: label: Rancher K3S shortLabel: K3S @@ -4291,11 +4420,24 @@ clusterNew: import: label: Import an existing cluster shortLabel: Imported - helpBlock: "Import an existing Kubernetes cluster. For K3S backed clusters, {appName} can manage some aspects of the cluster configuration, such as version upgrades. For standard Kubernetes clusters, the provider will manage provisioning and configuration." + helpBlock: "Import an existing Kubernetes cluster." command: instructionsAdminRole: "Note: If you want to import a Google Kubernetes Engine (GKE) cluster (or any cluster that does not supply you with a kubectl configuration file with the ClusterRole cluster-admin bound to it), you need to bind the ClusterRole cluster-admin using the command below.

Replace [USER_ACCOUNT] with your Google account address (you can retrieve this using gcloud config get-value account). If you are not importing a Google Kubernetes Engine cluster, replace [USER_ACCOUNT] with the executing user configured in your kubectl configuration file." instructions: "Run the kubectl command below on an existing Kubernetes cluster running a supported Kubernetes version to import it into {appName}:" instructionsInsecure: "If you get an error about 'certificate signed by unknown authority' because your {appName} installation is running with an untrusted/self-signed SSL certificate, run the command below instead to bypass the certificate check:" + select: + other: + title: Other + helpBlock: "For K3S backed clusters, {appName} can manage some aspects of the cluster configuration, such as version upgrades. For standard Kubernetes clusters, the provider will manage provisioning and configuration." + eks: + title: Amazon EKS + importEks: + label: Import an existing Amazon EKS cluster + shortLabel: Imported + helpBlock: "Import an existing Amazon EKS Kubernetes cluster." + command: + instructions: "Run the kubectl command below on an existing Kubernetes cluster running a supported Kubernetes version to import it into {appName}:" + instructionsInsecure: "If you get an error about 'certificate signed by unknown authority' because your {appName} installation is running with an untrusted/self-signed SSL certificate, run the command below instead to bypass the certificate check:" clusterTemplateNew: members: @@ -7225,6 +7367,34 @@ inputPassword: inputTextFile: tooltip: Read from a file +nodeGroupRow: + name: + label: Node Group Name + instance: + label: Instance Type + gpu: + label: GPU Enabled Instance + max: + label: Maximum ASG Size + min: + label: Minimum ASG Size + desired: + label: Desired ASG Size + nodeVolumeSize: + label: Node Volume Size + placeholder: e.g. 20 + ssh: + label: SSH Key + labels: + label: Labels + addLabel: Add Label + tags: + label: Tags + addLabel: Add Tag + remove: + label: Remove Node Group + + uploadFile: label: Read from File @@ -7239,19 +7409,16 @@ containersSection: noMatch: No Containers match the current search initContainer: Init Container -k3sClusterInfo: - title: K3s Options - detail: Customize the K3S cluster options +managedImportClusterInfo: + title: "{provider} Options" + detail: "Customize the {provider} cluster options" + kubernetesVersion: Kubernetes Version workerConcurrency: Worker Concurrency serverConcurrency: Control Plane Concurrency drainServerNodes: Drain Control Plane Nodes drainWorkerNodes: Drain Worker Nodes - nodeInfo: - title: K3s Node Information - detail: Read-only view of K3S master node arguments and environment variables. - label: Control Plane Node - datail: Additional K3S control plane node details - selectPrompt: Select node + error: + int: Concurrency values must be integer values k3sNodeEnvVarSection: title: K3S Node Environment Variables @@ -8284,22 +8451,28 @@ nodeDriver: cloudCredentialError: A cloud credential is required nameError: A name is required displayName: - aliyunecs: Aliyun ECS aliyun: Alibaba ACK + aliyunecs: Aliyun ECS amazonec2: Amazon EC2 amazoneks: Amazon EKS + amazoneksv2: Amazon EKS azure: Azure azureaks: Azure AKS + baidu: Baidu CCE cloudca: Cloud.ca digitalocean: DigitalOcean exoscale: Exoscale googlegke: Google GKE huaweicce: Huawei CCE + import: Other + importeks: Amazon EKS linode: Linode oci: Oracle Cloud Infrastructure openstack: OpenStack + oracleoke: Oracle OKE otc: Open Telekom Cloud packet: Packet + pinganyunecs: Pinganyun ECS rackspace: RackSpace rancherkubernetesengine: RKE softlayer: SoftLayer @@ -8307,9 +8480,6 @@ nodeDriver: upcloud: UpCloud vmwarevsphere: vSphere zstack: ZStack - pinganyunecs: Pinganyun ECS - baidu: Baidu CCE - oracleoke: Oracle OKE driverOptions: "{driver} Options" templateOptions: "{appName} Template" amazoneks: diff --git a/translations/zh-hans.yaml b/translations/zh-hans.yaml index d0f80fa9f1..302ff770f5 100644 --- a/translations/zh-hans.yaml +++ b/translations/zh-hans.yaml @@ -7200,7 +7200,7 @@ containersSection: noMatch: 没有容器与当前搜索匹配 initContainer: Init Container -k3sClusterInfo: +managedImportClusterInfo: title: K3S 选项 detail: 自定义 K3S 集群选项 workerConcurrency: 同时升级几个 Worker 节点? diff --git a/translations/zh-hant-tw.yaml b/translations/zh-hant-tw.yaml index 9082cbc2f4..5ede82c44a 100644 --- a/translations/zh-hant-tw.yaml +++ b/translations/zh-hant-tw.yaml @@ -7084,7 +7084,7 @@ containersSection: noMatch: 没有容器匹配當前搜索 initContainer: Init Container -k3sClusterInfo: +managedImportClusterInfo: title: K3S選項 detail: 自定義K3S叢集選項 workerConcurrency: Worker Concurrency diff --git a/vendor/aws-sdk-eks-ec2-iam-2.348.0.min.js b/vendor/aws-sdk-eks-ec2-iam-2.348.0.min.js deleted file mode 100644 index f920e5a37c..0000000000 --- a/vendor/aws-sdk-eks-ec2-iam-2.348.0.min.js +++ /dev/null @@ -1,13 +0,0 @@ -_xamzrequire=function(){function e(t,r,n){function i(o,a){if(!r[o]){if(!t[o]){var u="function"==typeof require&&require;if(!a&&u)return u(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var h=r[o]={exports:{}};t[o][0].call(h.exports,function(e){return i(t[o][1][e]||e)},h,h.exports,e,t,r,n)}return r[o].exports}for(var s="function"==typeof require&&require,o=0;o0||n?s.toString():""},t.exports=n},{"../util":113,"./xml-node":118,"./xml-text":119}],119:[function(e,t,r){function n(e){this.value=e}var i=e("./escape-element").escapeElement;n.prototype.toString=function(){return i(""+this.value)},t.exports={XmlText:n}},{"./escape-element":117}],117:[function(e,t,r){function n(e){return e.replace(/&/g,"&").replace(//g,">")}t.exports={escapeElement:n}},{}],118:[function(e,t,r){function n(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}var i=e("./escape-attribute").escapeAttribute;n.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},n.prototype.addChildNode=function(e){return this.children.push(e),this},n.prototype.removeAttribute=function(e){return delete this.attributes[e],this},n.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,n=0,s=Object.keys(r);n"+this.children.map(function(e){return e.toString()}).join("")+"":"/>"},t.exports={XmlNode:n}},{"./escape-attribute":116}],116:[function(e,t,r){function n(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}t.exports={escapeAttribute:n}},{}],105:[function(e,t,r){var n=e("../core"),i=n.util.inherit;n.Signers.RequestSigner=i({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),n.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return n.Signers.V2;case"v3":return n.Signers.V3;case"v4":return n.Signers.V4;case"s3":return n.Signers.S3;case"v3https":return n.Signers.V3Https}throw new Error("Unknown signing version "+e)},e("./v2"),e("./v3"),e("./v3https"),e("./v4"),e("./s3"),e("./presign")},{"../core":38,"./presign":104,"./s3":106,"./v2":107,"./v3":108,"./v3https":109,"./v4":110}],110:[function(e,t,r){var n=e("../core"),i=e("./v4_credentials"),s=n.util.inherit;n.Signers.V4=s(n.Signers.RequestSigner,{constructor:function(e,t,r){n.Signers.RequestSigner.call(this,e),this.serviceName=t,r=r||{},this.signatureCache="boolean"!=typeof r.signatureCache||r.signatureCache,this.operation=r.operation},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var r=n.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var r=this.credentialString(t),i={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers["presigned-expires"],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(i["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(i["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(i["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(i["Cache-Control"]=this.request.headers["Cache-Control"]),n.util.each.call(this,this.request.headers,function(e,t){if("presigned-expires"!==e&&this.isSignableHeader(e)){var r=e.toLowerCase();0===r.indexOf("x-amz-meta-")?i[r]=t:0===r.indexOf("x-amz-")&&(i[e]=t)}});var s=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=s+n.util.queryParamsToString(i)},authorization:function(e,t){var r=[],n=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+n),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=i.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return n.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&(t=n.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];n.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])}),e.sort(function(e,t){return e[0].toLowerCase()50&&delete i[s.shift()]),p},emptyCache:function(){i={},s=[]}}},{"../core":38}],109:[function(e,t,r){var n=e("../core"),i=n.util.inherit;e("./v3"),n.Signers.V3Https=i(n.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),t.exports=n.Signers.V3Https},{"../core":38,"./v3":108}],108:[function(e,t,r){var n=e("../core"),i=n.util.inherit;n.Signers.V3=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return n.util.arrayEach(this.headersToSign(),function(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),e},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),n.util.crypto.sha256(e.join("\n"))}}),t.exports=n.Signers.V3},{"../core":38}],107:[function(e,t,r){var n=e("../core"),i=n.util.inherit;n.Signers.V2=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=n.util.date.getDate());var r=this.request;r.params.Timestamp=n.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=n.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.body.length},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(n.util.queryParamsToString(this.request.params)),e.join("\n")}}),t.exports=n.Signers.V2},{"../core":38}],106:[function(e,t,r){var n=e("../core"),i=n.util.inherit;n.Signers.S3=i(n.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=n.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign()),i="AWS "+e.accessKeyId+":"+r;this.request.headers.Authorization=i},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];n.util.each(this.request.headers,function(t){t.match(/^x-amz-/i)&&e.push(t)}),e.sort(function(e,t){return e.toLowerCase()604800){throw s.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1})}e.httpRequest.headers[a]=t}else{if(r!==s.Signers.S3)throw s.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var n=e.service?e.service.getSkewCorrectedDate():s.util.date.getDate();e.httpRequest.headers[a]=parseInt(s.util.date.unixTimestamp(n)+t,10).toString()}}function i(e){var t=e.httpRequest.endpoint,r=s.util.urlParse(e.httpRequest.path),n={};r.search&&(n=s.util.queryStringParse(r.search.substr(1)));var i=e.httpRequest.headers.Authorization.split(" ");if("AWS"===i[0])i=i[1].split(":"),n.AWSAccessKeyId=i[0],n.Signature=i[1],s.util.each(e.httpRequest.headers,function(e,t){e===a&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete n[e],e=e.toLowerCase()),n[e]=t}),delete e.httpRequest.headers[a],delete n.Authorization,delete n.Host;else if("AWS4-HMAC-SHA256"===i[0]){i.shift();var o=i.join(" "),u=o.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=u,delete n.Expires}t.pathname=r.pathname,t.search=s.util.queryParamsToString(n)}var s=e("../core"),o=s.util.inherit,a="presigned-expires";s.Signers.Presign=o({sign:function(e,t,r){if(e.httpRequest.headers[a]=t||3600,e.on("build",n),e.on("sign",i),e.removeListener("afterBuild",s.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",s.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return s.util.urlFormat(e.httpRequest.endpoint)}e.build(function(){this.response.error?r(this.response.error):r(null,s.util.urlFormat(e.httpRequest.endpoint))})}}),t.exports=s.Signers.Presign},{"../core":38}],86:[function(e,t,r){(function(r){var n=e("./core"),i=e("./model/api"),s=e("./region_config"),o=n.util.inherit,a=0;n.Service=o({constructor:function(e){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");var t=this.loadServiceClass(e||{});if(t){var r=n.util.copy(e),i=new t(e);return Object.defineProperty(i,"_originalConfig",{get:function(){return r},enumerable:!1,configurable:!0}),i._clientId=++a,i}this.initialize(e)},initialize:function(e){var t=n.config[this.serviceIdentifier];if(this.config=new n.Config(n.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||s(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),n.SequentialExecutor.call(this),n.Service.addDefaultMonitoringListeners(this),this.config.clientSideMonitoring&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(e){r.nextTick(function(){i.eventHandler(e)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(e){r.nextTick(function(){i.eventHandler(e)})})}},validateService:function(){},loadServiceClass:function(e){var t=e;if(n.util.isEmpty(this.api)){if(t.apiConfig)return n.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){t=new n.Config(n.config),t.update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&n.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?n.util.isType(e,Date)&&(e=n.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,i=t.length-1;i>=0;i--)if("*"!==t[i][t[i].length-1]&&(r=t[i]),t[i].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var i=this.api.operations[e];i&&(t=n.util.copy(t),n.util.each(this.config.params,function(e,r){i.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=r))}))}var s=new n.Request(this,e,t);return this.addAllRequestListeners(s),this.attachMonitoringEmitter(s),r&&s.send(r),s},makeUnauthenticatedRequest:function(e,t,r){"function"==typeof t&&(r=t,t={});var n=this.makeRequest(e,t).toUnauthenticated();return r?n.send(r):n},waitFor:function(e,t,r){return new n.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[n.events,n.EventListeners.Core,this.serviceInterface(),n.EventListeners.CorePost],r=0;r299?(t.AwsException=r.error.code,t.AwsExceptionMessage=r.error.message):(t.SdkException=r.error.code||r.error.name,t.SdkExceptionMessage=r.error.message),t},attachMonitoringEmitter:function(e){var t,r,i,s,o,a,u=0,c=this;e.on("validate",function(){s=n.util.realClock.now(),a=Date.now()},!0),e.on("sign",function(){r=n.util.realClock.now(),t=Date.now(),o=e.httpRequest.region,u++},!0),e.on("validateResponse",function(){i=Math.round(n.util.realClock.now()-r)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var r=c.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=i>=0?i:0,r.Region=o,c.emit("apiCallAttempt",[r])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var s=c.attemptFailEvent(e);s.Timestamp=t,i=i||Math.round(n.util.realClock.now()-r),s.AttemptLatency=i>=0?i:0,s.Region=o,c.emit("apiCallAttempt",[s])}),e.addNamedListener("API_CALL","complete",function(){var t=c.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=a;var r=Math.round(n.util.realClock.now()-s);t.Latency=r>=0?r:0;var i=e.response;"number"==typeof i.retryCount&&"number"==typeof i.maxRetries&&i.retryCount>=i.maxRetries&&(t.MaxRetriesExceeded=1),c.emit("apiCall",[t])}})},setupRequestListeners:function(e){},getSignerClass:function(e){var t,r=null,i="";if(e){r=(e.service.api.operations||{})[e.operation]||null,i=r?r.authtype:""}return t=this.config.signatureVersion?this.config.signatureVersion:"v4"===i||"v4-unsigned-body"===i?"v4":this.api.signatureVersion,n.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return n.EventListeners.Query;case"json":return n.EventListeners.Json;case"rest-json":return n.EventListeners.RestJson;case"rest-xml":return n.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e){return n.util.calculateRetryDelay(e,this.config.retryDelayOptions)},retryableError:function(e){return!!this.timeoutError(e)||(!!this.networkingError(e)||(!!this.expiredCredentialsError(e)||(!!this.throttledError(e)||e.statusCode>=500)))},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e4},throttledError:function(e){switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"TooManyRequestsException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var t=e;return t=t.replace(/\{service\}/g,this.api.endpointPrefix),t=t.replace(/\{region\}/g,this.config.region),t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new n.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var i=new Error;throw n.util.error(i,"No pagination configuration for "+e)}return null}return r}}),n.util.update(n.Service,{defineMethods:function(e){n.util.each(e.prototype.api.operations,function(t){if(!e.prototype[t]){"none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)}}})},defineService:function(e,t,r){n.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var i=o(n.Service,r||{});if("string"==typeof e){n.Service.addVersions(i,t);var s=i.serviceIdentifier||e;i.serviceIdentifier=s}else i.prototype.api=e,n.Service.defineMethods(i);if(n.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&n.util.clientSideMonitoring){var a=n.util.clientSideMonitoring.Publisher,u=n.util.clientSideMonitoring.configProvider;this.prototype.publisher=new a(u())}return n.SequentialExecutor.call(i.prototype),n.Service.addDefaultMonitoringListeners(i.prototype),i},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r=0){u=!0;var c=0}var h=function(){u&&c!==a?i.emit("error",n.util.error(new Error("Stream content length mismatch. Received "+c+" of "+a+" bytes."),{code:"StreamContentLengthMismatch"})):2===n.HttpClient.streamsApiVersion?i.end():i.emit("end")},l=o.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(u){var f=new e.PassThrough;f._write=function(t){return t&&t.length&&(c+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},f.on("end",h),i.on("error",function(e){u=!1,l.unpipe(f),f.emit("end"),f.end()}),l.pipe(f).pipe(i,{end:!1})}else l.pipe(i);else u&&l.on("data",function(e){e&&e.length&&(c+=e.length)}),l.on("data",function(e){i.emit("data",e)}),l.on("end",h);l.on("error",function(e){u=!1,i.emit("error",e)})}}),i},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),n.SequentialExecutor.prototype.emit.call(this,e,t,function(e){e&&(this.response.error=e),r.call(this,e)})},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,t){return t||"function"!=typeof e||(t=e,e=null),(new n.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",n.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",n.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),n.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e(function(e,r){t.on("complete",function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))}),t.runTo()})}},n.Request.deletePromisesFromClass=function(){delete this.prototype.promise},n.util.addPromises(n.Request),n.util.mixin(n.Request,n.SequentialExecutor)}).call(this,e("_process"))},{"./core":38,"./state_machine":112,_process:9,jmespath:8}],112:[function(e,t,r){function n(e,t){this.currentState=t||null,this.states=e||{}}n.prototype.runTo=function(e,t,r,n){"function"==typeof e&&(n=r,r=t,t=e,e=null);var i=this,s=i.states[i.currentState];s.fn.call(r||i,n,function(n){if(n){if(!s.fail)return t?t.call(r,n):null;i.currentState=s.fail}else{if(!s.accept)return t?t.call(r):null;i.currentState=s.accept}if(i.currentState===e)return t?t.call(r,n):null;i.runTo(e,t,r,n)})},n.prototype.addState=function(e,t,r,n){return"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:n},this},t.exports=n},{}],69:[function(e,t,r){var n=e("./core");n.ParamValidator=n.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,n.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(n.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){this.validateType(t,r,["object"],"structure");for(var n,i=0;e.required&&i= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,n){this.validation.min&&void 0!==e.min&&t= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+n+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,i){if(null===e||void 0===e)return!1;for(var s=!1,o=0;o=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();i.util.computeSha256(s,function(r,n){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=n,t())})}else t()}}),e("SET_CONTENT_LENGTH","afterBuild",function(e){var t=n(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var r=i.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=r}catch(e){if(-1===t.indexOf("unsigned-body"))throw e;return}}),e("SET_HTTP_HOST","afterBuild",function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("RESTART","restart",function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new i.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount=600?this.emit("sign",[this],function(e){e?t(e):o()}):o()}),e("HTTP_HEADERS","httpHeaders",function(e,t,r,n){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=n,r.httpResponse.headers=t,r.httpResponse.body=new i.util.Buffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var s=t.date||t.Date,o=r.request.service;if(s){var a=Date.parse(s);o.config.correctClockSkew&&o.isClockSkewed(a)&&o.applyClockOffset(a)}}),e("HTTP_DATA","httpData",function(e,t){if(e){if(i.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],n={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(new i.util.Buffer(e))}}),e("HTTP_DONE","httpDone",function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=i.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers}),e("FINALIZE_ERROR","retry",function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))}),e("INVALIDATE_CREDENTIALS","retry",function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}}),e("EXPIRED_SIGNATURE","retry",function(e){var t=e.error;t&&"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)}),e("CLOCK_SKEWED","retry",function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)}),e("REDIRECT","retry",function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new i.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,e.error.redirect=!0,e.error.retryable=!0)}),e("RETRY_CHECK","retry",function(e){e.error&&(e.error.redirect&&e.redirectCount-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){function s(i){if(i&&(a=n.util.error(a||new Error,i),o._haltHandlersOnError))return r.call(o,a);o.callListeners(e,t,r,a)}for(var o=this,a=i||null;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){a=n.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError)return void r.call(o,a)}r.call(o,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r,n){return this[e]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(e,t,r){return r._isAsync=!0,this.addNamedListener(e,t,r)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,t.exports=n.SequentialExecutor},{"./core":38}],75:[function(e,t,r){function n(e){var t=e.service.api.operations[e.operation].input,r=new a.XML.Builder,n=e.params,i=t.payload;if(i){var s=t.members[i];if(void 0===(n=n[i]))return;if("structure"===s.type){var o=s.name;e.httpRequest.body=r.toXML(n,s,o,!0)}else e.httpRequest.body=n}else e.httpRequest.body=r.toXML(n,t,t.name||t.shape||u.string.upperFirst(e.operation)+"Request")}function i(e){c.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&n(e)}function s(e){c.extractError(e);var t;try{t=(new a.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=u.error(new Error,{code:t.Code,message:t.Message}):e.error=u.error(new Error,{code:e.httpResponse.statusCode,message:null})}function o(e){c.extractData(e);var t,r=e.request,n=e.httpResponse.body,i=r.service.api.operations[r.operation],s=i.output,o=(i.hasEventOutput,s.payload);if(o){var h=s.members[o];h.isEventStream?(t=new a.XML.Parser,e.data[o]=u.createEventStream(2===a.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,h)):"structure"===h.type?(t=new a.XML.Parser,e.data[o]=t.parse(n.toString(),h)):"binary"===h.type||h.isStreaming?e.data[o]=n:e.data[o]=h.toType(n)}else if(n.length>0){t=new a.XML.Parser;var l=t.parse(n.toString(),s);u.update(e.data,l)}}var a=e("../core"),u=e("../util"),c=e("./rest");t.exports={buildRequest:i,extractError:s,extractData:o}},{"../core":38,"../util":113,"./rest":73}],74:[function(e,t,r){function n(e){var t=new l,r=e.service.api.operations[e.operation].input;if(r.payload){ -var n={},s=r.members[r.payload];if(void 0===(n=e.params[r.payload]))return;"structure"===s.type?(e.httpRequest.body=t.build(n,s),i(e)):(e.httpRequest.body=n,("binary"===s.type||s.isStreaming)&&i(e,!0))}else e.httpRequest.body=t.build(e.params,r),i(e)}function i(e,t){var r=e.service.api.operations[e.operation];r.input;if(!e.httpRequest.headers["Content-Type"]){var n=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=n}}function s(e){c.buildRequest(e),["GET","HEAD","DELETE"].indexOf(e.httpRequest.method)<0&&n(e)}function o(e){h.extractError(e)}function a(e){c.extractData(e);var t,r=e.request,n=r.service.api.operations[r.operation],i=r.service.api.operations[r.operation].output||{};n.hasEventOutput;if(i.payload){var s=i.members[i.payload],o=e.httpResponse.body;if(s.isEventStream)t=new f,e.data[payload]=u.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:o,t,s);else if("structure"===s.type||"list"===s.type){var t=new f;e.data[i.payload]=t.parse(o,s)}else"binary"===s.type||s.isStreaming?e.data[i.payload]=o:e.data[i.payload]=s.toType(o)}else{var a=e.data;h.extractData(e),e.data=u.merge(a,e.data)}}var u=e("../util"),c=e("./rest"),h=e("./json"),l=e("../json/builder"),f=e("../json/parser");t.exports={buildRequest:s,extractError:o,extractData:a}},{"../json/builder":61,"../json/parser":62,"../util":113,"./json":71,"./rest":73}],73:[function(e,t,r){function n(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}function i(e,t,r,n){var i=[e,t].join("/");i=i.replace(/\/+/g,"/");var s={},o=!1;if(h.each(r.members,function(e,t){var r=n[e];if(null!==r&&void 0!==r)if("uri"===t.location){var a=new RegExp("\\{"+t.name+"(\\+)?\\}");i=i.replace(a,function(e,t){return(t?h.uriEscapePath:h.uriEscape)(String(r))})}else"querystring"===t.location&&(o=!0,"list"===t.type?s[t.name]=r.map(function(e){return h.uriEscape(t.member.toWireFormat(e).toString())}):"map"===t.type?h.each(r,function(e,t){Array.isArray(t)?s[e]=t.map(function(e){return h.uriEscape(String(e))}):s[e]=h.uriEscape(String(t))}):s[t.name]=h.uriEscape(t.toWireFormat(r).toString()))}),o){i+=i.indexOf("?")>=0?"&":"?";var a=[];h.arrayEach(Object.keys(s).sort(),function(e){Array.isArray(s[e])||(s[e]=[s[e]]);for(var t=0;t-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function f(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType}function p(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType}function d(){s.apply(this,arguments),this.toType=y.base64.decode,this.toWireFormat=y.base64.encode}function m(){d.apply(this,arguments)}function v(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}var g=e("./collection"),y=e("../util");s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:a,list:u,map:c,boolean:v,timestamp:h,float:f,integer:p,string:l,base64:m,binary:d},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var n=s.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){n.constructor.call(this,e,t,r)};return o.prototype=n,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+a)},s.shapes={StructureShape:a,ListShape:u,MapShape:c,StringShape:l,BooleanShape:v,Base64Shape:m},t.exports=s},{"../util":113,"./collection":64}],64:[function(e,t,r){function n(e,t,r,n){s(this,n(e),function(){return r(e,t)})}function i(e,t,r,i){i=i||String;var s=this;for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.call(s,o,e[o],r,i)}var s=e("../util").memoizedProperty;t.exports=i},{"../util":113}],71:[function(e,t,r){function n(e){var t=e.httpRequest,r=e.service.api,n=r.targetPrefix+"."+r.operations[e.operation].name,i=r.jsonVersion||"1.0",s=r.operations[e.operation].input,o=new a;1===i&&(i="1.0"),t.body=o.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+i,t.headers["X-Amz-Target"]=n}function i(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var n=JSON.parse(r.body.toString());(n.__type||n.code)&&(t.code=(n.__type||n.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=n.message||n.Message||null}catch(n){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=o.error(new Error,t)}function s(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation],n=r.output||{},i=new u;e.data=i.parse(t,n)}}var o=e("../util"),a=e("../json/builder"),u=e("../json/parser");t.exports={buildRequest:n,extractError:i,extractData:s}},{"../json/builder":61,"../json/parser":62,"../util":113}],62:[function(e,t,r){function n(){}function i(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return s(e,t);case"map":return a(e,t);case"list":return o(e,t);default:return u(e,t)}}function s(e,t){if(null!=e){var r={},n=t.members;return c.each(n,function(t,n){var s=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,s)){var o=e[s],a=i(o,n);void 0!==a&&(r[t]=a)}}),r}}function o(e,t){if(null!=e){var r=[];return c.arrayEach(e,function(e){var n=i(e,t.member);void 0===n?r.push(null):r.push(n)}),r}}function a(e,t){if(null!=e){var r={};return c.each(e,function(e,n){var s=i(n,t.value);r[e]=void 0===s?null:s}),r}}function u(e,t){return t.toType(e)}var c=e("../util");n.prototype.parse=function(e,t){return i(JSON.parse(e),t)},t.exports=n},{"../util":113}],61:[function(e,t,r){function n(){}function i(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return s(e,t);case"map":return a(e,t);case"list":return o(e,t);default:return u(e,t)}}function s(e,t){var r={};return c.each(e,function(e,n){var s=t.members[e];if(s){if("body"!==s.location)return;var o=s.isLocationName?s.name:e,a=i(n,s);void 0!==a&&(r[o]=a)}}),r}function o(e,t){var r=[];return c.arrayEach(e,function(e){var n=i(e,t.member);void 0!==n&&r.push(n)}),r}function a(e,t){var r={};return c.each(e,function(e,n){var s=i(n,t.value);void 0!==s&&(r[e]=s)}),r}function u(e,t){return t.toWireFormat(e)}var c=e("../util");n.prototype.build=function(e,t){return JSON.stringify(i(e,t))},t.exports=n},{"../util":113}],113:[function(e,t,r){(function(r,n){var i,s={environment:"nodejs",engine:function(){if(s.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=r.platform+"/"+r.version;return r.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+r.env.AWS_EXECUTION_ENV),e},userAgent:function(){var t=s.environment,r="aws-sdk-"+t+"/"+e("./core").VERSION;return"nodejs"===t&&(r+=" "+s.engine()),r},isBrowser:function(){return r&&r.browser},isNode:function(){return!s.isBrowser()},uriEscape:function(e){var t=encodeURIComponent(e);return t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape),t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return s.arrayEach(e.split("/"),function(e){t.push(s.uriEscape(e))}),t.join("/")},urlParse:function(e){return s.url.parse(e)},urlFormat:function(e){return s.url.format(e)},queryStringParse:function(e){return s.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=s.uriEscape,n=Object.keys(e).sort();return s.arrayEach(n,function(n){var i=e[n],o=r(n),a=o+"=";if(Array.isArray(i)){var u=[];s.arrayEach(i,function(e){u.push(r(e))}),a=o+"="+u.sort().join("&"+o+"=")}else void 0!==i&&null!==i&&(a=o+"="+r(i));t.push(a)}),t.join("&")},readFileSync:function(t){return s.isBrowser()?null:e("fs").readFileSync(t,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw s.error(new Error("Cannot base64 encode number "+e));return null===e||void 0===e?e:("function"==typeof s.Buffer.from&&s.Buffer.from!==Uint8Array.from?s.Buffer.from(e):new s.Buffer(e)).toString("base64")},decode:function(e){if("number"==typeof e)throw s.error(new Error("Cannot base64 decode number "+e));return null===e||void 0===e?e:"function"==typeof s.Buffer.from&&s.Buffer.from!==Uint8Array.from?s.Buffer.from(e,"base64"):new s.Buffer(e,"base64")}},buffer:{toStream:function(e){s.Buffer.isBuffer(e)||(e=new s.Buffer(e));var t=new s.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r=0,n=0,i=null;for(t=0;t>>8^t[255&(r^e.readUInt8(n))]}return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=new s.Buffer(t)),s.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return s.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return s.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var i=s.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=new s.Buffer(t));var o=s.arraySliceFn(t),a=s.Buffer.isBuffer(t);if(s.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(a=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!a)t.on("data",function(e){i.update(e)}),t.on("error",function(e){n(e)}),t.on("end",function(){n(null,i.digest(r))});else{if(!n||!o||a||"undefined"==typeof FileReader){s.isBrowser()&&"object"==typeof t&&!a&&(t=new s.Buffer(new Uint8Array(t)));var u=i.update(t).digest(r);return n&&n(null,u),u}var c=0,h=new FileReader;h.onerror=function(){n(new Error("Failed to read data."))},h.onload=function(){var e=new s.Buffer(new Uint8Array(h.result));i.update(e),c+=e.length,h._continueReading()},h._continueReading=function(){if(c>=t.size)return void n(null,i.digest(r));var e=c+524288;e>t.size&&(e=t.size),h.readAsArrayBuffer(o.call(t,c,e))},h._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var n=0;n=500||429===n});i&&o.retryable&&(o.retryAfter=i),u(o)}})},u)};i.util.defer(c)},uuid:{v4:function(){return e("uuid").v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"==typeof r&&"function"==typeof r.nextTick?r.nextTick(e):"function"==typeof n?n(e):setTimeout(e,0)},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};t.exports=s}).call(this,e("_process"),e("timers").setImmediate)},{"../apis/metadata.json":26,"./core":38,_process:9,fs:2,timers:17,uuid:21}],37:[function(e,t,r){var n=e("./core");e("./credentials"),e("./credentials/credential_provider_chain");var i;n.Config=n.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),n.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function(e){function t(t){e(t,t?null:i.credentials)}function r(e,t){return new n.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}var i=this;i.credentials?"function"==typeof i.credentials.get?function(){i.credentials.get(function(e){e&&(e=r("Could not load credentials from "+i.credentials.constructor.name,e)),t(e)})}():function(){var e=null;i.credentials.accessKeyId&&i.credentials.secretAccessKey||(e=r("Missing credentials")),t(e)}():i.credentialProvider?i.credentialProvider.resolve(function(e,n){e&&(e=r("Could not load credentials from any providers",e)),i.credentials=n,t(e)}):t(r("No credentials to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),n.util.each.call(this,e,function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||n.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function(e){this.clear();var t=JSON.parse(n.util.readFileSync(e)),r=new n.FileSystemCredentials(e),i=new n.CredentialProviderChain;return i.providers.unshift(r),i.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function(){n.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=n.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&(e=n.util.copy(e),e.credentials=new n.Credentials(e)),e}, -setPromisesDependency:function(e){i=e,null===e&&"function"==typeof Promise&&(i=Promise);var t=[n.Request,n.Credentials,n.CredentialProviderChain];n.S3&&n.S3.ManagedUpload&&t.push(n.S3.ManagedUpload),n.util.addPromises(t,i)},getPromisesDependency:function(){return i}}),n.config=new n.Config},{"./core":38,"./credentials":39,"./credentials/credential_provider_chain":41}],41:[function(e,t,r){var n=e("../core");n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0)},resolve:function(e){function t(i,s){if(!i&&s||r===n.length)return void e(i,s);var o=n[r++];s="function"==typeof o?o.call():o,s.get?s.get(function(e){t(e,e?null:s)}):t(null,s)}if(0===this.providers.length)return e(new Error("No providers")),this;var r=0,n=this.providers.slice(0);return t(),this}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},{"../core":38}],39:[function(e,t,r){var n=e("./core");n.Credentials=n.util.inherit({constructor:function(){if(n.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=n.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},{"./core":38}],27:[function(e,t,r){function n(e,t){if(!n.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return n.services[e][t]}n.services={},t.exports=n},{}],26:[function(e,t,r){t.exports={acm:{name:"ACM",cors:!0},apigateway:{name:"APIGateway",cors:!0},applicationautoscaling:{prefix:"application-autoscaling",name:"ApplicationAutoScaling",cors:!0},appstream:{name:"AppStream"},autoscaling:{name:"AutoScaling",cors:!0},batch:{name:"Batch"},budgets:{name:"Budgets"},clouddirectory:{name:"CloudDirectory",versions:["2016-05-10*"]},cloudformation:{name:"CloudFormation",cors:!0},cloudfront:{name:"CloudFront",versions:["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*"],cors:!0},cloudhsm:{name:"CloudHSM",cors:!0},cloudsearch:{name:"CloudSearch"},cloudsearchdomain:{name:"CloudSearchDomain"},cloudtrail:{name:"CloudTrail",cors:!0},cloudwatch:{prefix:"monitoring",name:"CloudWatch",cors:!0},cloudwatchevents:{prefix:"events",name:"CloudWatchEvents",versions:["2014-02-03*"],cors:!0},cloudwatchlogs:{prefix:"logs",name:"CloudWatchLogs",cors:!0},codebuild:{name:"CodeBuild",cors:!0},codecommit:{name:"CodeCommit",cors:!0},codedeploy:{name:"CodeDeploy",cors:!0},codepipeline:{name:"CodePipeline",cors:!0},cognitoidentity:{prefix:"cognito-identity",name:"CognitoIdentity",cors:!0},cognitoidentityserviceprovider:{prefix:"cognito-idp",name:"CognitoIdentityServiceProvider",cors:!0},cognitosync:{prefix:"cognito-sync",name:"CognitoSync",cors:!0},configservice:{prefix:"config",name:"ConfigService",cors:!0},cur:{name:"CUR",cors:!0},datapipeline:{name:"DataPipeline"},devicefarm:{name:"DeviceFarm",cors:!0},directconnect:{name:"DirectConnect",cors:!0},directoryservice:{prefix:"ds",name:"DirectoryService"},discovery:{name:"Discovery"},dms:{name:"DMS"},dynamodb:{name:"DynamoDB",cors:!0},dynamodbstreams:{prefix:"streams.dynamodb",name:"DynamoDBStreams",cors:!0},ec2:{name:"EC2",versions:["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],cors:!0},ecr:{name:"ECR",cors:!0},ecs:{name:"ECS",cors:!0},efs:{prefix:"elasticfilesystem",name:"EFS",cors:!0},elasticache:{name:"ElastiCache",versions:["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],cors:!0},elasticbeanstalk:{name:"ElasticBeanstalk",cors:!0},elb:{prefix:"elasticloadbalancing",name:"ELB",cors:!0},elbv2:{prefix:"elasticloadbalancingv2",name:"ELBv2",cors:!0},emr:{prefix:"elasticmapreduce",name:"EMR",cors:!0},es:{name:"ES"},elastictranscoder:{name:"ElasticTranscoder",cors:!0},firehose:{name:"Firehose",cors:!0},gamelift:{name:"GameLift",cors:!0},glacier:{name:"Glacier"},health:{name:"Health"},iam:{name:"IAM"},importexport:{name:"ImportExport"},inspector:{name:"Inspector",versions:["2015-08-18*"],cors:!0},iot:{name:"Iot",cors:!0},iotdata:{prefix:"iot-data",name:"IotData",cors:!0},kinesis:{name:"Kinesis",cors:!0},kinesisanalytics:{name:"KinesisAnalytics"},kms:{name:"KMS",cors:!0},lambda:{name:"Lambda",cors:!0},lexruntime:{prefix:"runtime.lex",name:"LexRuntime",cors:!0},lightsail:{name:"Lightsail"},machinelearning:{name:"MachineLearning",cors:!0},marketplacecommerceanalytics:{name:"MarketplaceCommerceAnalytics",cors:!0},marketplacemetering:{prefix:"meteringmarketplace",name:"MarketplaceMetering"},mturk:{prefix:"mturk-requester",name:"MTurk",cors:!0},mobileanalytics:{name:"MobileAnalytics",cors:!0},opsworks:{name:"OpsWorks",cors:!0},opsworkscm:{name:"OpsWorksCM"},organizations:{name:"Organizations"},pinpoint:{name:"Pinpoint"},polly:{name:"Polly",cors:!0},rds:{name:"RDS",versions:["2014-09-01*"],cors:!0},redshift:{name:"Redshift",cors:!0},rekognition:{name:"Rekognition",cors:!0},resourcegroupstaggingapi:{name:"ResourceGroupsTaggingAPI"},route53:{name:"Route53",cors:!0},route53domains:{name:"Route53Domains",cors:!0},s3:{name:"S3",dualstackAvailable:!0,cors:!0},servicecatalog:{name:"ServiceCatalog",cors:!0},ses:{prefix:"email",name:"SES",cors:!0},shield:{name:"Shield"},simpledb:{prefix:"sdb",name:"SimpleDB"},sms:{name:"SMS"},snowball:{name:"Snowball"},sns:{name:"SNS",cors:!0},sqs:{name:"SQS",cors:!0},ssm:{name:"SSM",cors:!0},storagegateway:{name:"StorageGateway",cors:!0},stepfunctions:{prefix:"states",name:"StepFunctions"},sts:{name:"STS",cors:!0},support:{name:"Support"},swf:{name:"SWF"},xray:{name:"XRay"},waf:{name:"WAF",cors:!0},wafregional:{prefix:"waf-regional",name:"WAFRegional"},workdocs:{name:"WorkDocs",cors:!0},workspaces:{name:"WorkSpaces"},codestar:{name:"CodeStar"},lexmodelbuildingservice:{prefix:"lex-models",name:"LexModelBuildingService",cors:!0},marketplaceentitlementservice:{prefix:"entitlement.marketplace",name:"MarketplaceEntitlementService"},athena:{name:"Athena"},greengrass:{name:"Greengrass"},dax:{name:"DAX"},migrationhub:{prefix:"AWSMigrationHub",name:"MigrationHub"},cloudhsmv2:{name:"CloudHSMV2"},glue:{name:"Glue"},mobile:{name:"Mobile"},pricing:{name:"Pricing",cors:!0},costexplorer:{prefix:"ce",name:"CostExplorer"},mediaconvert:{name:"MediaConvert"},medialive:{name:"MediaLive"},mediapackage:{name:"MediaPackage"},mediastore:{name:"MediaStore"},mediastoredata:{prefix:"mediastore-data",name:"MediaStoreData"},appsync:{name:"AppSync"},guardduty:{name:"GuardDuty"},mq:{name:"MQ"},comprehend:{name:"Comprehend"},iotjobsdataplane:{prefix:"iot-jobs-data",name:"IoTJobsDataPlane"},kinesisvideoarchivedmedia:{prefix:"kinesis-video-archived-media",name:"KinesisVideoArchivedMedia",cors:!0},kinesisvideomedia:{prefix:"kinesis-video-media",name:"KinesisVideoMedia"},kinesisvideo:{name:"KinesisVideo",cors:!0},sagemakerruntime:{prefix:"runtime.sagemaker",name:"SageMakerRuntime"},sagemaker:{name:"SageMaker"},translate:{name:"Translate",cors:!0},resourcegroups:{prefix:"resource-groups",name:"ResourceGroups"},alexaforbusiness:{name:"AlexaForBusiness"},cloud9:{name:"Cloud9"},serverlessapplicationrepository:{prefix:"serverlessrepo",name:"ServerlessApplicationRepository"},servicediscovery:{name:"ServiceDiscovery"},workmail:{name:"WorkMail"},autoscalingplans:{prefix:"autoscaling-plans",name:"AutoScalingPlans"},transcribeservice:{prefix:"transcribe",name:"TranscribeService"},connect:{name:"Connect"},acmpca:{prefix:"acm-pca",name:"ACMPCA"},fms:{name:"FMS"},secretsmanager:{name:"SecretsManager",cors:!0},iotanalytics:{name:"IoTAnalytics"},iot1clickdevicesservice:{prefix:"iot1click-devices",name:"IoT1ClickDevicesService"},iot1clickprojects:{prefix:"iot1click-projects",name:"IoT1ClickProjects"},pi:{name:"PI"},neptune:{name:"Neptune"},mediatailor:{name:"MediaTailor"},eks:{name:"EKS"},macie:{name:"Macie"},dlm:{name:"DLM"},signer:{name:"Signer"},chime:{name:"Chime"}}},{}],21:[function(e,t,r){var n=e("./v1"),i=e("./v4"),s=i;s.v1=n,s.v4=i,t.exports=s},{"./v1":24,"./v4":25}],25:[function(e,t,r){function n(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var a=0;a<16;++a)t[n+a]=o[a];return t||s(o)}var i=e("./lib/rng"),s=e("./lib/bytesToUuid");t.exports=n},{"./lib/bytesToUuid":22,"./lib/rng":23}],24:[function(e,t,r){function n(e,t,r){var n=t&&r||0,i=t||[];e=e||{};var o=void 0!==e.clockseq?e.clockseq:u,l=void 0!==e.msecs?e.msecs:(new Date).getTime(),f=void 0!==e.nsecs?e.nsecs:h+1,p=l-c+(f-h)/1e4;if(p<0&&void 0===e.clockseq&&(o=o+1&16383),(p<0||l>c)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=l,h=f,u=o,l+=122192928e5;var d=(1e4*(268435455&l)+f)%4294967296;i[n++]=d>>>24&255,i[n++]=d>>>16&255,i[n++]=d>>>8&255,i[n++]=255&d;var m=l/4294967296*1e4&268435455;i[n++]=m>>>8&255,i[n++]=255&m,i[n++]=m>>>24&15|16,i[n++]=m>>>16&255,i[n++]=o>>>8|128,i[n++]=255&o;for(var v=e.node||a,g=0;g<6;++g)i[n+g]=v[g];return t||s(i)}var i=e("./lib/rng"),s=e("./lib/bytesToUuid"),o=i(),a=[1|o[0],o[1],o[2],o[3],o[4],o[5]],u=16383&(o[6]<<8|o[7]),c=0,h=0;t.exports=n},{"./lib/bytesToUuid":22,"./lib/rng":23}],23:[function(e,t,r){(function(e){var r,n=e.crypto||e.msCrypto;if(n&&n.getRandomValues){var i=new Uint8Array(16);r=function(){return n.getRandomValues(i),i}}if(!r){var s=new Array(16);r=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),s[t]=e>>>((3&t)<<3)&255;return s}}t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],22:[function(e,t,r){function n(e,t){var r=t||0,n=i;return n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]}for(var i=[],s=0;s<256;++s)i[s]=(s+256).toString(16).substr(1);t.exports=n},{}],20:[function(e,t,r){(function(t,n){function i(e,t){var n={seen:[],stylize:o};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(t)?n.showHidden=t:t&&r._extend(n,t),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),u(n,e,n.depth)}function s(e,t){var r=i.styles[t];return r?"["+i.colors[r][0]+"m"+e+"["+i.colors[r][1]+"m":e}function o(e,t){return e}function a(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,n){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return b(i)||(i=u(e,i,n)),i}var s=c(e,t);if(s)return s;var o=Object.keys(t),m=a(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),C(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(t);if(0===o.length){if(R(t)){var v=t.name?": "+t.name:"";return e.stylize("[Function"+v+"]","special")}if(E(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x(t))return e.stylize(Date.prototype.toString.call(t),"date");if(C(t))return h(t)}var g="",y=!1,w=["{","}"];if(d(t)&&(y=!0,w=["[","]"]),R(t)){g=" [Function"+(t.name?": "+t.name:"")+"]"}if(E(t)&&(g=" "+RegExp.prototype.toString.call(t)),x(t)&&(g=" "+Date.prototype.toUTCString.call(t)),C(t)&&(g=" "+h(t)),0===o.length&&(!y||0==t.length))return w[0]+g+w[1];if(n<0)return E(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var _;return _=y?l(e,t,n,m,o):o.map(function(r){return f(e,t,n,m,r,y)}),e.seen.pop(),p(_,g,w)}function c(e,t){if(_(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,r,n,i){for(var s=[],o=0,a=t.length;o-1&&(a=s?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),_(o)){if(s&&i.match(/^\d+$/))return a;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function p(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function d(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function g(e){return null==e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function _(e){return void 0===e}function E(e){return S(e)&&"[object RegExp]"===T(e)}function S(e){return"object"==typeof e&&null!==e}function x(e){return S(e)&&"[object Date]"===T(e)}function C(e){return S(e)&&("[object Error]"===T(e)||e instanceof Error)}function R(e){return"function"==typeof e}function A(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function T(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}function I(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),U[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var L=/%[sdj%]/g;r.format=function(e){if(!b(e)){for(var t=[],r=0;r=s)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),a=n[r];r=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r.setImmediate="function"==typeof t?t:function(e){var t=c++,n=!(arguments.length<2)&&a.call(arguments,1);return u[t]=!0,s(function(){u[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))}),t},r.clearImmediate="function"==typeof n?n:function(e){delete u[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":9,timers:17}],9:[function(e,t,r){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===i||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&d&&(v=!1,d.length?m=d.concat(m):g=-1,m.length&&u())}function u(){if(!v){var e=s(a);v=!0;for(var t=m.length;t;){for(d=m,m=[];++g1)for(var r=1;r="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e}function a(e){return e>="0"&&e<="9"||"-"===e}function u(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e}function c(){}function h(){}function l(e){this.runtime=e}function f(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[g]}]},avg:{_func:this._functionAvg,_signature:[{types:[S]}]},ceil:{_func:this._functionCeil,_signature:[{types:[g]}]},contains:{_func:this._functionContains,_signature:[{types:[b,w]},{types:[y]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[b]},{types:[b]}]},floor:{_func:this._functionFloor,_signature:[{types:[g]}]},length:{_func:this._functionLength,_signature:[{types:[b,w,_]}]},map:{_func:this._functionMap,_signature:[{types:[E]},{types:[w]}]},max:{_func:this._functionMax,_signature:[{types:[S,x]}]},merge:{_func:this._functionMerge,_signature:[{types:[_],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[w]},{types:[E]}]},sum:{_func:this._functionSum,_signature:[{types:[S]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[b]},{types:[b]}]},min:{_func:this._functionMin,_signature:[{types:[S,x]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[w]},{types:[E]}]},type:{_func:this._functionType,_signature:[{types:[y]}]},keys:{_func:this._functionKeys,_signature:[{types:[_]}]},values:{_func:this._functionValues,_signature:[{types:[_]}]},sort:{_func:this._functionSort,_signature:[{types:[x,S]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[w]},{types:[E]}]},join:{_func:this._functionJoin,_signature:[{types:[b]},{types:[x]}]},reverse:{_func:this._functionReverse,_signature:[{types:[b,w]}]},to_array:{_func:this._functionToArray,_signature:[{types:[y]}]},to_string:{_func:this._functionToString,_signature:[{types:[y]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[y]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[y],variadic:!0}]}}}function p(e){return(new h).parse(e)}function d(e){return(new c).tokenize(e)}function m(e,t){var r=new h,n=new f,i=new l(n);n._interpreter=i;var s=r.parse(t);return i.search(s,e)}var v;v="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var g=0,y=1,b=2,w=3,_=4,E=6,S=8,x=9,C={".":"Dot","*":"Star",",":"Comma",":":"Colon","{":"Lbrace","}":"Rbrace","]":"Rbracket","(":"Lparen",")":"Rparen","@":"Current"},R={"<":!0,">":!0,"=":!0,"!":!0},A={" ":!0,"\t":!0,"\n":!0};c.prototype={tokenize:function(e){var t=[];this._current=0;for(var r,n,i;this._current"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,n=e.length;"`"!==e[this._current]&&this._current=0)return!0;if(r.indexOf(e)>=0)return!0;if(!(n.indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var T={};T.EOF=0,T.UnquotedIdentifier=0,T.QuotedIdentifier=0,T.Rbracket=0,T.Rparen=0,T.Comma=0,T.Rbrace=0,T.Number=0,T.Current=0,T.Expref=0,T.Pipe=1,T.Or=2,T.And=3,T.EQ=5,T.GT=5,T.LT=5,T.GTE=5,T.LTE=5,T.NE=5,T.Flatten=9,T.Star=20,T.Filter=21,T.Dot=40,T.Not=45,T.Lbrace=50,T.Lbracket=55,T.Lparen=60,h.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw n.name="ParserError",n}return t},_loadTokens:function(e){var t=new c,r=t.tokenize(e);r.push({type:"EOF",value:"",start:e.length}),this.tokens=r},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),n=this._lookahead(0);e=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(T[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw n.name="ParserError",n}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,n,i=[],s=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),s.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r=this.expression(0),n={type:"KeyValuePair",name:t,value:r},i.push(n),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:i}}},l.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var a,u,c,h,l,f,p,d,m;switch(e.type){case"Field":return null===o?null:r(o)?(f=o[e.name],void 0===f?null:f):null;case"Subexpression":for(c=this.visit(e.children[0],o),m=1;m0)for(m=b;mw;m+=_)c.push(o[m]);return c;case"Projection":var E=this.visit(e.children[0],o);if(!t(E))return null;for(d=[],m=0;ml;break;case"GTE":c=h>=l;break;case"LT":c=h=e&&(t=r<0?e-1:e),t}},f.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n;if(r[r.length-1].variadic){if(t.length=0;n--)r+=t[n];return r}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],i=e[1],s=0;s0){if(this._getTypeName(e[0][0])===g)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n0){if(this._getTypeName(e[0][0])===g)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;na?1:oo&&(o=r,t=i[a]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],i=e[0],s=this.createKeyFunction(n,[g,b]),o=1/0,a=0;a=this.HEADERS_RECEIVED&&!l&&(u.statusCode=h.status,u.headers=o.parseHeaders(h.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,h.statusText),l=!0),this.readyState===this.DONE&&o.finishRequest(h,u)},!1),h.upload.addEventListener("progress",function(e){u.emit("sendProgress",e)}),h.addEventListener("progress",function(e){u.emit("receiveProgress",e)},!1),h.addEventListener("timeout",function(){s(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),h.addEventListener("error",function(){s(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),h.addEventListener("abort",function(){s(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),r(u),h.open(e.method,c,!1!==t.xhrAsync),n.util.each(e.headers,function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&h.setRequestHeader(e,t)}),t.timeout&&!1!==t.xhrAsync&&(h.timeout=t.timeout),t.xhrWithCredentials&&(h.withCredentials=!0);try{h.responseType="arraybuffer"}catch(e){}try{e.body?h.send(e.body):h.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;h.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),function(e){var r=e.split(":",1)[0],n=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=n)}),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var i=e.response;r=new n.util.Buffer(i.byteLength);for(var s=new Uint8Array(i),o=0;o-1&&0===++e[t];t--);}var s=e("../core").util,o=e("./to-buffer").toBuffer;n.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,s=Math.abs(Math.round(e));r>-1&&s>0;r--,s/=256)t[r]=s;return e<0&&i(t),new n(t)},n.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&i(e),parseInt(e.toString("hex"),16)*(t?-1:1)},n.prototype.toString=function(){return String(this.valueOf())},t.exports={Int64:n}},{"../core":38,"./to-buffer":57}],57:[function(e,t,r){function n(e,t){return"function"==typeof i.from&&i.from!==Uint8Array.from?i.from(e,t):new i(e,t)}var i=e("../core").util.Buffer;t.exports={toBuffer:n}},{"../core":38}],52:[function(e,t,r){function n(e){for(var t=[],r=0;ra)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},n.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(r.setUint8(this.bufferLength++,128),n%64>=56){for(var s=this.bufferLength;s<64;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(var s=this.bufferLength;s<56;s++)r.setUint8(s,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}for(var o=new i(32),s=0;s<8;s++)o[4*s]=this.state[s]>>>24&255,o[4*s+1]=this.state[s]>>>16&255,o[4*s+2]=this.state[s]>>>8&255,o[4*s+3]=this.state[s]>>>0&255;return e?o.toString(e):o},n.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,r=e.state,n=r[0],i=r[1],s=r[2],a=r[3],u=r[4],c=r[5],h=r[6],l=r[7],f=0;f<64;f++){if(f<16)this.temp[f]=(255&t[4*f])<<24|(255&t[4*f+1])<<16|(255&t[4*f+2])<<8|255&t[4*f+3];else{var p=this.temp[f-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10;p=this.temp[f-15];var m=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[f]=(d+this.temp[f-7]|0)+(m+this.temp[f-16]|0)}var v=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&c^~u&h)|0)+(l+(o[f]+this.temp[f]|0)|0)|0,g=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i^n&s^i&s)|0;l=h,h=c,c=u,u=a+v|0,a=s,s=i,i=n,n=v+g|0}r[0]+=n,r[1]+=i,r[2]+=s,r[3]+=a,r[4]+=u,r[5]+=c,r[6]+=h,r[7]+=l}},{"./browserHashUtils":30,"buffer/":3}],33:[function(e,t,r){function n(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}var i=e("buffer/").Buffer,s=e("./browserHashUtils");new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);t.exports=n,n.BLOCK_SIZE=64,n.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(s.isEmptyData(e))return this;e=s.convertToBuffer(e);var t=e.length;this.totalLength+=8*t;for(var r=0;r14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24, -this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new i(20),n=new DataView(r.buffer);return n.setUint32(0,this.h0,!1),n.setUint32(4,this.h1,!1),n.setUint32(8,this.h2,!1),n.setUint32(12,this.h3,!1),n.setUint32(16,this.h4,!1),e?r.toString(e):r},n.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,n,i=this.h0,s=this.h1,o=this.h2,a=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=a^s&(o^a),n=1518500249):e<40?(r=s^o^a,n=1859775393):e<60?(r=s&o|a&(s|o),n=2400959708):(r=s^o^a,n=3395469782);var c=(i<<5|i>>>27)+r+u+n+(0|this.block[e]);u=a,a=o,o=s<<30|s>>>2,s=i,i=c}for(this.h0=this.h0+i|0,this.h1=this.h1+s|0,this.h2=this.h2+o|0,this.h3=this.h3+a|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},{"./browserHashUtils":30,"buffer/":3}],32:[function(e,t,r){function n(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(l)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function i(e,t,r,n,i,s){return((t=(t+e&4294967295)+(n+s&4294967295)&4294967295)<>>32-i)+r&4294967295}function s(e,t,r,n,s,o,a){return i(t&r|~t&n,e,t,s,o,a)}function o(e,t,r,n,s,o,a){return i(t&n|r&~n,e,t,s,o,a)}function a(e,t,r,n,s,o,a){return i(t^r^n,e,t,s,o,a)}function u(e,t,r,n,s,o,a){return i(r^(t|~n),e,t,s,o,a)}var c=e("./browserHashUtils"),h=e("buffer/").Buffer,l=64;t.exports=n,n.BLOCK_SIZE=l,n.prototype.update=function(e){if(c.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=c.convertToBuffer(e),r=0,n=t.byteLength;for(this.bytesHashed+=n;n>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),n--,this.bufferLength===l&&(this.hashBuffer(),this.bufferLength=0);return this},n.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,n=t.bufferLength,i=t.bytesHashed,s=8*i;if(r.setUint8(this.bufferLength++,128),n%l>=l-8){for(var o=this.bufferLength;o>>0,!0),r.setUint32(l-4,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}for(var a=new DataView(new ArrayBuffer(16)),o=0;o<4;o++)a.setUint32(4*o,this.state[o],!0);var u=new h(a.buffer,a.byteOffset,a.byteLength);return e?u.toString(e):u},n.prototype.hashBuffer=function(){var e=this,t=e.buffer,r=e.state,n=r[0],i=r[1],c=r[2],h=r[3];n=s(n,i,c,h,t.getUint32(0,!0),7,3614090360),h=s(h,n,i,c,t.getUint32(4,!0),12,3905402710),c=s(c,h,n,i,t.getUint32(8,!0),17,606105819),i=s(i,c,h,n,t.getUint32(12,!0),22,3250441966),n=s(n,i,c,h,t.getUint32(16,!0),7,4118548399),h=s(h,n,i,c,t.getUint32(20,!0),12,1200080426),c=s(c,h,n,i,t.getUint32(24,!0),17,2821735955),i=s(i,c,h,n,t.getUint32(28,!0),22,4249261313),n=s(n,i,c,h,t.getUint32(32,!0),7,1770035416),h=s(h,n,i,c,t.getUint32(36,!0),12,2336552879),c=s(c,h,n,i,t.getUint32(40,!0),17,4294925233),i=s(i,c,h,n,t.getUint32(44,!0),22,2304563134),n=s(n,i,c,h,t.getUint32(48,!0),7,1804603682),h=s(h,n,i,c,t.getUint32(52,!0),12,4254626195),c=s(c,h,n,i,t.getUint32(56,!0),17,2792965006),i=s(i,c,h,n,t.getUint32(60,!0),22,1236535329),n=o(n,i,c,h,t.getUint32(4,!0),5,4129170786),h=o(h,n,i,c,t.getUint32(24,!0),9,3225465664),c=o(c,h,n,i,t.getUint32(44,!0),14,643717713),i=o(i,c,h,n,t.getUint32(0,!0),20,3921069994),n=o(n,i,c,h,t.getUint32(20,!0),5,3593408605),h=o(h,n,i,c,t.getUint32(40,!0),9,38016083),c=o(c,h,n,i,t.getUint32(60,!0),14,3634488961),i=o(i,c,h,n,t.getUint32(16,!0),20,3889429448),n=o(n,i,c,h,t.getUint32(36,!0),5,568446438),h=o(h,n,i,c,t.getUint32(56,!0),9,3275163606),c=o(c,h,n,i,t.getUint32(12,!0),14,4107603335),i=o(i,c,h,n,t.getUint32(32,!0),20,1163531501),n=o(n,i,c,h,t.getUint32(52,!0),5,2850285829),h=o(h,n,i,c,t.getUint32(8,!0),9,4243563512),c=o(c,h,n,i,t.getUint32(28,!0),14,1735328473),i=o(i,c,h,n,t.getUint32(48,!0),20,2368359562),n=a(n,i,c,h,t.getUint32(20,!0),4,4294588738),h=a(h,n,i,c,t.getUint32(32,!0),11,2272392833),c=a(c,h,n,i,t.getUint32(44,!0),16,1839030562),i=a(i,c,h,n,t.getUint32(56,!0),23,4259657740),n=a(n,i,c,h,t.getUint32(4,!0),4,2763975236),h=a(h,n,i,c,t.getUint32(16,!0),11,1272893353),c=a(c,h,n,i,t.getUint32(28,!0),16,4139469664),i=a(i,c,h,n,t.getUint32(40,!0),23,3200236656),n=a(n,i,c,h,t.getUint32(52,!0),4,681279174),h=a(h,n,i,c,t.getUint32(0,!0),11,3936430074),c=a(c,h,n,i,t.getUint32(12,!0),16,3572445317),i=a(i,c,h,n,t.getUint32(24,!0),23,76029189),n=a(n,i,c,h,t.getUint32(36,!0),4,3654602809),h=a(h,n,i,c,t.getUint32(48,!0),11,3873151461),c=a(c,h,n,i,t.getUint32(60,!0),16,530742520),i=a(i,c,h,n,t.getUint32(8,!0),23,3299628645),n=u(n,i,c,h,t.getUint32(0,!0),6,4096336452),h=u(h,n,i,c,t.getUint32(28,!0),10,1126891415),c=u(c,h,n,i,t.getUint32(56,!0),15,2878612391),i=u(i,c,h,n,t.getUint32(20,!0),21,4237533241),n=u(n,i,c,h,t.getUint32(48,!0),6,1700485571),h=u(h,n,i,c,t.getUint32(12,!0),10,2399980690),c=u(c,h,n,i,t.getUint32(40,!0),15,4293915773),i=u(i,c,h,n,t.getUint32(4,!0),21,2240044497),n=u(n,i,c,h,t.getUint32(32,!0),6,1873313359),h=u(h,n,i,c,t.getUint32(60,!0),10,4264355552),c=u(c,h,n,i,t.getUint32(24,!0),15,2734768916),i=u(i,c,h,n,t.getUint32(52,!0),21,1309151649),n=u(n,i,c,h,t.getUint32(16,!0),6,4149444226),h=u(h,n,i,c,t.getUint32(44,!0),10,3174756917),c=u(c,h,n,i,t.getUint32(8,!0),15,718787259),i=u(i,c,h,n,t.getUint32(36,!0),21,3951481745),r[0]=n+r[0]&4294967295,r[1]=i+r[1]&4294967295,r[2]=c+r[2]&4294967295,r[3]=h+r[3]&4294967295}},{"./browserHashUtils":30,"buffer/":3}],31:[function(e,t,r){function n(e,t){this.hash=new e,this.outer=new e;var r=i(e,t),n=new Uint8Array(e.BLOCK_SIZE);n.set(r);for(var s=0;se.BLOCK_SIZE){var n=new e;n.update(r),r=n.digest()}var i=new Uint8Array(e.BLOCK_SIZE);return i.set(r),i}var s=e("./browserHashUtils");t.exports=n,n.prototype.update=function(e){if(s.isEmptyData(e)||this.error)return this;try{this.hash.update(s.convertToBuffer(e))}catch(e){this.error=e}return this},n.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},{"./browserHashUtils":30}],30:[function(e,t,r){function n(e){return"string"==typeof e?0===e.length:0===e.byteLength}function i(e){return"string"==typeof e&&(e=new s(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var s=e("buffer/").Buffer;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return o.indexOf(Object.prototype.toString.call(e))>-1});var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];t.exports={isEmptyData:n,convertToBuffer:i}},{"buffer/":3}],18:[function(e,t,r){function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,r){if(e&&c(e)&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}function s(e){return u(e)&&(e=i(e)),e instanceof n?e.format():n.prototype.format.call(e)}function o(e,t){return i(e,!1,!0).resolve(t)}function a(e,t){return e?i(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function c(e){return"object"==typeof e&&null!==e}function h(e){return null===e}function l(e){return null==e}var f=e("punycode");r.parse=i,r.resolve=o,r.resolveObject=a,r.format=s,r.Url=n;var p=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,m=["<",">",'"',"`"," ","\r","\n","\t"],v=["{","}","|","\\","^","`"].concat(m),g=["'"].concat(v),y=["%","/","?",";","#"].concat(g),b=["/","?","#"],w=/^[a-z0-9A-Z_-]{0,63}$/,_=/^([a-z0-9A-Z_-]{0,63})(.*)$/,E={javascript:!0,"javascript:":!0},S={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},C=e("querystring");n.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e;n=n.trim();var i=p.exec(n);if(i){i=i[0];var s=i.toLowerCase();this.protocol=s,n=n.substr(i.length)}if(r||i||n.match(/^\/\/[^@\/]+@[^@\/]+/)){var o="//"===n.substr(0,2);!o||i&&S[i]||(n=n.substr(2),this.slashes=!0)}if(!S[i]&&(o||i&&!x[i])){for(var a=-1,c=0;c127?T+="x":T+=A[k];if(!T.match(w)){var P=v.slice(0,c),L=v.slice(c+1),q=A.match(_);q&&(P.push(q[1]),L.unshift(q[2])),L.length&&(n="/"+L.join(".")+n),this.hostname=P.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!m){for(var O=this.hostname.split("."),U=[],c=0;c0)&&r.host.split("@");v&&(r.auth=v.shift(),r.host=r.hostname=v.shift())}return r.search=e.search,r.query=e.query,h(r.pathname)&&h(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!d.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var g=d.slice(-1)[0],y=(r.host||e.host)&&("."===g||".."===g)||""===g,b=0,w=d.length;w>=0;w--)g=d[w],"."==g?d.splice(w,1):".."===g?(d.splice(w,1),b++):b&&(d.splice(w,1),b--);if(!f&&!p)for(;b--;b)d.unshift("..");!f||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),y&&"/"!==d.join("/").substr(-1)&&d.push("");var _=""===d[0]||d[0]&&"/"===d[0].charAt(0);if(m){r.hostname=r.host=_?"":d.length?d.shift():"";var v=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");v&&(r.auth=v.shift(),r.host=r.hostname=v.shift())}return f=f||r.host&&d.length,f&&!_&&d.unshift(""),d.length?r.pathname=d.join("/"):(r.pathname=null,r.path=null),h(r.pathname)&&h(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:10,querystring:13}],16:[function(e,t,r){arguments[4][13][0].apply(r,arguments)},{"./decode":14,"./encode":15,dup:13}],15:[function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,i){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(i){var s=encodeURIComponent(n(i))+r;return Array.isArray(e[i])?e[i].map(function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[i]))}).join(t):i?encodeURIComponent(n(i))+r+encodeURIComponent(n(e)):""}},{}],14:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,i){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var o=/\+/g;e=e.split(t);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var u=e.length;a>0&&u>a&&(u=a);for(var c=0;c=0?(h=d.substr(0,m),l=d.substr(m+1)):(h=d,l=""),f=decodeURIComponent(h),p=decodeURIComponent(l),n(s,f)?Array.isArray(s[f])?s[f].push(p):s[f]=[s[f],p]:s[f]=p}return s}},{}],13:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":11,"./encode":12}],12:[function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n0&&c>u&&(c=u);for(var h=0;h=0?(l=m.substr(0,v),f=m.substr(v+1)):(l=m,f=""),p=decodeURIComponent(l),d=decodeURIComponent(f),n(o,p)?i(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],10:[function(e,t,r){(function(e){!function(n){function i(e){throw RangeError(q[e])}function s(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function o(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(L,"."),n+s(e.split("."),t).join(".")}function a(e){for(var t,r,n=[],i=0,s=e.length;i=55296&&t<=56319&&i65535&&(e-=65536,t+=N(e>>>10&1023|55296),e=56320|1023&e),t+=N(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:E}function h(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function l(e,t,r){var n=0;for(e=r?U(e/R):e>>1,e+=U(e/t);e>O*x>>1;n+=E)e=U(e/O);return U(n+(O+1)*e/(e+C))}function f(e){var t,r,n,s,o,a,h,f,p,d,m=[],v=e.length,g=0,y=T,b=A;for(r=e.lastIndexOf(k),r<0&&(r=0),n=0;n=128&&i("not-basic"),m.push(e.charCodeAt(n));for(s=r>0?r+1:0;s=v&&i("invalid-input"),f=c(e.charCodeAt(s++)),(f>=E||f>U((_-g)/a))&&i("overflow"),g+=f*a,p=h<=b?S:h>=b+x?x:h-b,!(fU(_/d)&&i("overflow"),a*=d;t=m.length+1,b=l(g-o,t,0==o),U(g/t)>_-y&&i("overflow"),y+=U(g/t),g%=t,m.splice(g++,0,y)}return u(m)}function p(e){var t,r,n,s,o,u,c,f,p,d,m,v,g,y,b,w=[];for(e=a(e),v=e.length,t=T,r=0,o=A,u=0;u=t&&mU((_-r)/g)&&i("overflow"),r+=(c-t)*g,t=c,u=0;u_&&i("overflow"),m==t){for(f=r,p=E;d=p<=o?S:p>=o+x?x:p-o,!(f= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=E-S,U=Math.floor,N=String.fromCharCode;if(b={version:"1.3.2",ucs2:{decode:a,encode:u},decode:f,encode:p,toASCII:m,toUnicode:d},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return b});else if(v&&g)if(t.exports==v)g.exports=b;else for(w in b)b.hasOwnProperty(w)&&(v[w]=b[w]);else n.punycode=b}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function s(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!s(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,r,n,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var h=new Error('Uncaught, unspecified "error" event. ('+t+")");throw h.context=t,h}if(r=this._events[e],a(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(o(r))for(s=Array.prototype.slice.call(arguments,1),c=r.slice(),n=c.length,u=0;u0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var n=!1;return r.listener=t,this.on(e,r),this},n.prototype.removeListener=function(e,t){var r,n,s,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],s=r.length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(a=s;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){n=a;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},{}],3:[function(e,t,r){(function(t){"use strict";function n(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),s.alloc(+e)}function v(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(e).length;default:if(n)return V(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return I(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,i);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,n,i){function s(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,a/=2,u/=2,r/=2}var c;if(i){var h=-1;for(c=r;ca&&(r=a-u),c=r;c>=0;c--){for(var l=!0,f=0;fi&&(n=i):n=i;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var o=0;o239?4:s>223?3:s>191?2:1;if(i+a<=r){var u,c,h,l;switch(a){case 1:s<128&&(o=s);break;case 2:u=e[i+1],128==(192&u)&&(l=(31&s)<<6|63&u)>127&&(o=l);break;case 3:u=e[i+1],c=e[i+2],128==(192&u)&&128==(192&c)&&(l=(15&s)<<12|(63&u)<<6|63&c)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:u=e[i+1],c=e[i+2],h=e[i+3],128==(192&u)&&128==(192&c)&&128==(192&h)&&(l=(15&s)<<18|(63&u)<<12|(63&c)<<6|63&h)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return k(n)}function k(e){var t=e.length;if(t<=Q)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var i="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,r,n,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function N(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function j(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function M(e,t,r,n,i,s){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(e,t,r,n,i){return i||M(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return i||M(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,r,n,52,8),r+8}function H(e){if(e=F(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function F(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){t=t||1/0;for(var r,n=e.length,i=null,s=[],o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function X(e){ -for(var t=[],r=0;r>8,i=r%256,s.push(i),s.push(n);return s}function W(e){return J.toByteArray(H(e))}function Y(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function G(e){return e!==e}var J=e("base64-js"),Z=e("ieee754"),$=e("isarray");r.Buffer=s,r.SlowBuffer=m,r.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),r.kMaxLength=n(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,r){return o(null,e,t,r)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,r){return u(null,e,t,r)},s.allocUnsafe=function(e){return c(null,e)},s.allocUnsafeSlow=function(e){return c(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},s.prototype.compare=function(e,t,r,n,i){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,u=Math.min(o,a),c=this.slice(n,i),h=e.slice(t,r),l=0;li)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return _(this,e,t,r);case"utf8":case"utf-8":return E(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return x(this,e,t,r);case"base64":return C(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],i=1,s=0;++s=i&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=t,i=1,s=this[e+--n];n>0&&(i*=256);)s+=this[e+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},s.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),Z.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),Z.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),Z.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),Z.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){U(this,e,t,r,Math.pow(2,8*r)-1,0)}var i=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+i]=e/s&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);U(this,e,t,r,i-1,-i)}var s=0,o=1,a=0;for(this[t]=255&e;++s>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);U(this,e,t,r,i-1,-i)}var s=r-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o>1,h=-7,l=r?i-1:0,f=r?-1:1,p=e[t+l];for(l+=f,s=p&(1<<-h)-1,p>>=-h,h+=a;h>0;s=256*s+e[t+l],l+=f,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=n;h>0;o=256*o+e[t+l],l+=f,h-=8);if(0===s)s=1-c;else{if(s===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),s-=c}return(p?-1:1)*o*Math.pow(2,s-n)},r.write=function(e,t,r,n,i,s){var o,a,u,c=8*s-i-1,h=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,d=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),t+=o+l>=1?f/u:f*Math.pow(2,1-l),t*u>=2&&(o++,u/=2),o+l>=h?(a=0,o=h):o+l>=1?(a=(t*u-1)*Math.pow(2,i),o+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&a,p+=d,a/=256,i-=8);for(o=o<0;e[r+p]=255&o,p+=d,o/=256,c-=8);e[r+p-d]|=128*m}},{}],1:[function(e,t,r){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function i(e){var t=n(e),r=t[0],i=t[1];return 3*(r+i)/4-i}function s(e,t,r){return 3*(t+r)/4-r}function o(e){for(var t,r=n(e),i=r[0],o=r[1],a=new f(s(e,i,o)),u=0,c=o>0?i-4:i,h=0;h>16&255,a[u++]=t>>8&255,a[u++]=255&t;return 2===o&&(t=l[e.charCodeAt(h)]<<2|l[e.charCodeAt(h+1)]>>4,a[u++]=255&t),1===o&&(t=l[e.charCodeAt(h)]<<10|l[e.charCodeAt(h+1)]<<4|l[e.charCodeAt(h+2)]>>2,a[u++]=t>>8&255,a[u++]=255&t),a}function a(e){return h[e>>18&63]+h[e>>12&63]+h[e>>6&63]+h[63&e]}function u(e,t,r){for(var n,i=[],s=t;so?o:s+16383));return 1===n?(t=e[r-1],i.push(h[t>>2]+h[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(h[t>>10]+h[t>>4&63]+h[t<<2&63]+"=")),i.join("")}r.byteLength=i,r.toByteArray=o,r.fromByteArray=c;for(var h=[],l=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,m=p.length;d `0`",state:"success"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},BundleTaskComplete:{delay:15,operation:"DescribeBundleTasks",maxAttempts:40,acceptors:[{expected:"complete",matcher:"pathAll",state:"success",argument:"BundleTasks[].State"},{expected:"failed",matcher:"pathAny",state:"failure",argument:"BundleTasks[].State"}]},ConversionTaskCancelled:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"cancelled",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"}]},ConversionTaskCompleted:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"},{expected:"cancelled",matcher:"pathAny",state:"failure",argument:"ConversionTasks[].State"},{expected:"cancelling",matcher:"pathAny",state:"failure",argument:"ConversionTasks[].State"}]},ConversionTaskDeleted:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"}]},CustomerGatewayAvailable:{delay:15,operation:"DescribeCustomerGateways",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"CustomerGateways[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"CustomerGateways[].State"},{expected:"deleting",matcher:"pathAny",state:"failure",argument:"CustomerGateways[].State"}]},ExportTaskCancelled:{delay:15,operation:"DescribeExportTasks",maxAttempts:40,acceptors:[{expected:"cancelled",matcher:"pathAll",state:"success",argument:"ExportTasks[].State"}]},ExportTaskCompleted:{delay:15,operation:"DescribeExportTasks",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"ExportTasks[].State"}]},ImageExists:{operation:"DescribeImages",maxAttempts:40,delay:15,acceptors:[{matcher:"path",expected:!0,argument:"length(Images[]) > `0`",state:"success"},{matcher:"error",expected:"InvalidAMIID.NotFound",state:"retry"}]},ImageAvailable:{operation:"DescribeImages",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"Images[].State",expected:"available"},{state:"failure",matcher:"pathAny",argument:"Images[].State",expected:"failed"}]},InstanceRunning:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"running",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"shutting-down",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"terminated",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"stopping",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},InstanceStatusOk:{operation:"DescribeInstanceStatus",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"InstanceStatuses[].InstanceStatus.Status",expected:"ok"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},InstanceStopped:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"stopped",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"terminated",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"}]},InstanceTerminated:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"terminated",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"stopping",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"}]},KeyPairExists:{operation:"DescribeKeyPairs",delay:5,maxAttempts:6,acceptors:[{expected:!0,matcher:"path",state:"success",argument:"length(KeyPairs[].KeyName) > `0`"},{expected:"InvalidKeyPair.NotFound",matcher:"error",state:"retry"}]},NatGatewayAvailable:{operation:"DescribeNatGateways",delay:15,maxAttempts:40,acceptors:[{state:"success",matcher:"pathAll",argument:"NatGateways[].State",expected:"available"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"failed"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"deleting"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"deleted"},{state:"retry",matcher:"error",expected:"NatGatewayNotFound"}]},NetworkInterfaceAvailable:{operation:"DescribeNetworkInterfaces",delay:20,maxAttempts:10,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"NetworkInterfaces[].Status"},{expected:"InvalidNetworkInterfaceID.NotFound",matcher:"error",state:"failure"}]},PasswordDataAvailable:{operation:"GetPasswordData",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"path",argument:"length(PasswordData) > `0`",expected:!0}]},SnapshotCompleted:{delay:15,operation:"DescribeSnapshots",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"Snapshots[].State"}]},SpotInstanceRequestFulfilled:{operation:"DescribeSpotInstanceRequests",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"SpotInstanceRequests[].Status.Code",expected:"fulfilled"},{state:"success",matcher:"pathAll",argument:"SpotInstanceRequests[].Status.Code",expected:"request-canceled-and-instance-running"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"schedule-expired"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"canceled-before-fulfillment"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"bad-parameters"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"system-error"},{state:"retry",matcher:"error",expected:"InvalidSpotInstanceRequestID.NotFound"}]},SubnetAvailable:{delay:15,operation:"DescribeSubnets",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Subnets[].State"}]},SystemStatusOk:{operation:"DescribeInstanceStatus",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"InstanceStatuses[].SystemStatus.Status",expected:"ok"}]},VolumeAvailable:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"Volumes[].State"}]},VolumeDeleted:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{matcher:"error",expected:"InvalidVolume.NotFound",state:"success"}]},VolumeInUse:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"in-use",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"Volumes[].State"}]},VpcAvailable:{delay:15,operation:"DescribeVpcs",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Vpcs[].State"}]},VpcExists:{operation:"DescribeVpcs",delay:1,maxAttempts:5,acceptors:[{matcher:"status",expected:200,state:"success"},{matcher:"error",expected:"InvalidVpcID.NotFound",state:"retry"}]},VpnConnectionAvailable:{delay:15,operation:"DescribeVpnConnections",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"VpnConnections[].State"},{expected:"deleting",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"}]},VpnConnectionDeleted:{delay:15,operation:"DescribeVpnConnections",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"VpnConnections[].State"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"}]},VpcPeeringConnectionExists:{delay:15,operation:"DescribeVpcPeeringConnections",maxAttempts:40,acceptors:[{matcher:"status",expected:200,state:"success"},{matcher:"error",expected:"InvalidVpcPeeringConnectionID.NotFound",state:"retry"}]},VpcPeeringConnectionDeleted:{delay:15,operation:"DescribeVpcPeeringConnections",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"VpcPeeringConnections[].Status.Code"},{matcher:"error",expected:"InvalidVpcPeeringConnectionID.NotFound",state:"success"}]}}};AWS.apiLoader.services.iam={},AWS.IAM=AWS.Service.defineService("iam",["2010-05-08"]);AWS.apiLoader.services.iam["2010-05-08"]={version:"2.0",metadata:{apiVersion:"2010-05-08",endpointPrefix:"iam",globalEndpoint:"iam.amazonaws.com",protocol:"query",serviceAbbreviation:"IAM",serviceFullName:"AWS Identity and Access Management",serviceId:"IAM",signatureVersion:"v4",uid:"iam-2010-05-08",xmlNamespace:"https://iam.amazonaws.com/doc/2010-05-08/"},operations:{AddClientIDToOpenIDConnectProvider:{input:{type:"structure",required:["OpenIDConnectProviderArn","ClientID"],members:{OpenIDConnectProviderArn:{},ClientID:{}}}},AddRoleToInstanceProfile:{input:{type:"structure",required:["InstanceProfileName","RoleName"],members:{InstanceProfileName:{},RoleName:{}}}},AddUserToGroup:{input:{type:"structure",required:["GroupName","UserName"],members:{GroupName:{},UserName:{}}}},AttachGroupPolicy:{input:{type:"structure",required:["GroupName","PolicyArn"],members:{GroupName:{},PolicyArn:{}}}},AttachRolePolicy:{input:{type:"structure",required:["RoleName","PolicyArn"],members:{RoleName:{},PolicyArn:{}}}},AttachUserPolicy:{input:{type:"structure",required:["UserName","PolicyArn"],members:{UserName:{},PolicyArn:{}}}},ChangePassword:{input:{type:"structure",required:["OldPassword","NewPassword"],members:{OldPassword:{shape:"Sf"},NewPassword:{shape:"Sf"}}}},CreateAccessKey:{input:{type:"structure",members:{UserName:{}}},output:{resultWrapper:"CreateAccessKeyResult",type:"structure",required:["AccessKey"],members:{AccessKey:{type:"structure",required:["UserName","AccessKeyId","Status","SecretAccessKey"],members:{UserName:{},AccessKeyId:{},Status:{},SecretAccessKey:{type:"string",sensitive:!0},CreateDate:{type:"timestamp"}}}}}},CreateAccountAlias:{input:{type:"structure",required:["AccountAlias"],members:{AccountAlias:{}}}},CreateGroup:{input:{type:"structure",required:["GroupName"],members:{Path:{},GroupName:{}}},output:{resultWrapper:"CreateGroupResult",type:"structure",required:["Group"],members:{Group:{shape:"Ss"}}}},CreateInstanceProfile:{input:{type:"structure",required:["InstanceProfileName"],members:{InstanceProfileName:{},Path:{}}},output:{resultWrapper:"CreateInstanceProfileResult",type:"structure",required:["InstanceProfile"],members:{InstanceProfile:{shape:"Sw"}}}},CreateLoginProfile:{input:{type:"structure",required:["UserName","Password"],members:{UserName:{},Password:{shape:"Sf"},PasswordResetRequired:{type:"boolean"}}},output:{resultWrapper:"CreateLoginProfileResult",type:"structure",required:["LoginProfile"],members:{LoginProfile:{shape:"S17"}}}},CreateOpenIDConnectProvider:{input:{type:"structure",required:["Url","ThumbprintList"],members:{Url:{},ClientIDList:{shape:"S1a"},ThumbprintList:{shape:"S1b"}}},output:{resultWrapper:"CreateOpenIDConnectProviderResult",type:"structure",members:{OpenIDConnectProviderArn:{}}}},CreatePolicy:{input:{type:"structure",required:["PolicyName","PolicyDocument"],members:{PolicyName:{},Path:{},PolicyDocument:{},Description:{}}},output:{resultWrapper:"CreatePolicyResult",type:"structure",members:{Policy:{shape:"S1j"}}}},CreatePolicyVersion:{input:{type:"structure",required:["PolicyArn","PolicyDocument"],members:{PolicyArn:{},PolicyDocument:{},SetAsDefault:{type:"boolean"}}},output:{resultWrapper:"CreatePolicyVersionResult",type:"structure",members:{PolicyVersion:{shape:"S1o"}}}},CreateRole:{input:{type:"structure",required:["RoleName","AssumeRolePolicyDocument"],members:{Path:{},RoleName:{},AssumeRolePolicyDocument:{},Description:{},MaxSessionDuration:{type:"integer"},PermissionsBoundary:{}}},output:{resultWrapper:"CreateRoleResult",type:"structure",required:["Role"],members:{Role:{shape:"Sy"}}}},CreateSAMLProvider:{input:{type:"structure",required:["SAMLMetadataDocument","Name"],members:{SAMLMetadataDocument:{},Name:{}}},output:{resultWrapper:"CreateSAMLProviderResult",type:"structure",members:{SAMLProviderArn:{}}}},CreateServiceLinkedRole:{input:{type:"structure",required:["AWSServiceName"],members:{AWSServiceName:{},Description:{},CustomSuffix:{}}},output:{resultWrapper:"CreateServiceLinkedRoleResult",type:"structure",members:{Role:{shape:"Sy"}}}},CreateServiceSpecificCredential:{input:{type:"structure",required:["UserName","ServiceName"],members:{UserName:{},ServiceName:{}}},output:{resultWrapper:"CreateServiceSpecificCredentialResult",type:"structure",members:{ServiceSpecificCredential:{shape:"S21"}}}},CreateUser:{input:{type:"structure",required:["UserName"],members:{Path:{},UserName:{},PermissionsBoundary:{}}},output:{resultWrapper:"CreateUserResult",type:"structure",members:{User:{shape:"S27"}}}},CreateVirtualMFADevice:{input:{type:"structure",required:["VirtualMFADeviceName"],members:{Path:{},VirtualMFADeviceName:{}}},output:{resultWrapper:"CreateVirtualMFADeviceResult",type:"structure",required:["VirtualMFADevice"],members:{VirtualMFADevice:{shape:"S2b"}}}},DeactivateMFADevice:{input:{type:"structure",required:["UserName","SerialNumber"],members:{UserName:{},SerialNumber:{}}}},DeleteAccessKey:{input:{type:"structure",required:["AccessKeyId"],members:{UserName:{},AccessKeyId:{}}}},DeleteAccountAlias:{input:{type:"structure",required:["AccountAlias"],members:{AccountAlias:{}}}},DeleteAccountPasswordPolicy:{},DeleteGroup:{input:{type:"structure",required:["GroupName"],members:{GroupName:{}}}},DeleteGroupPolicy:{input:{type:"structure",required:["GroupName","PolicyName"],members:{GroupName:{},PolicyName:{}}}},DeleteInstanceProfile:{input:{type:"structure",required:["InstanceProfileName"],members:{InstanceProfileName:{}}}},DeleteLoginProfile:{input:{type:"structure",required:["UserName"],members:{UserName:{}}}},DeleteOpenIDConnectProvider:{input:{type:"structure",required:["OpenIDConnectProviderArn"],members:{OpenIDConnectProviderArn:{}}}},DeletePolicy:{input:{type:"structure",required:["PolicyArn"],members:{PolicyArn:{}}}},DeletePolicyVersion:{input:{type:"structure",required:["PolicyArn","VersionId"],members:{PolicyArn:{},VersionId:{}}}},DeleteRole:{input:{type:"structure",required:["RoleName"],members:{RoleName:{}}}},DeleteRolePermissionsBoundary:{input:{type:"structure",required:["RoleName"],members:{RoleName:{}}}},DeleteRolePolicy:{input:{type:"structure",required:["RoleName","PolicyName"],members:{RoleName:{},PolicyName:{}}}},DeleteSAMLProvider:{input:{type:"structure",required:["SAMLProviderArn"],members:{SAMLProviderArn:{}}}},DeleteSSHPublicKey:{input:{type:"structure",required:["UserName","SSHPublicKeyId"],members:{UserName:{},SSHPublicKeyId:{}}}},DeleteServerCertificate:{input:{type:"structure",required:["ServerCertificateName"],members:{ServerCertificateName:{}}}},DeleteServiceLinkedRole:{input:{type:"structure",required:["RoleName"],members:{RoleName:{}}},output:{resultWrapper:"DeleteServiceLinkedRoleResult",type:"structure",required:["DeletionTaskId"],members:{DeletionTaskId:{}}}},DeleteServiceSpecificCredential:{input:{type:"structure",required:["ServiceSpecificCredentialId"],members:{UserName:{},ServiceSpecificCredentialId:{}}}},DeleteSigningCertificate:{input:{type:"structure",required:["CertificateId"],members:{UserName:{},CertificateId:{}}}},DeleteUser:{input:{type:"structure",required:["UserName"],members:{UserName:{}}}},DeleteUserPermissionsBoundary:{input:{type:"structure",required:["UserName"],members:{UserName:{}}}},DeleteUserPolicy:{input:{type:"structure",required:["UserName","PolicyName"],members:{UserName:{},PolicyName:{}}}},DeleteVirtualMFADevice:{input:{type:"structure",required:["SerialNumber"],members:{SerialNumber:{}}}},DetachGroupPolicy:{input:{type:"structure",required:["GroupName","PolicyArn"],members:{GroupName:{},PolicyArn:{}}}},DetachRolePolicy:{input:{type:"structure",required:["RoleName","PolicyArn"],members:{RoleName:{},PolicyArn:{}}}},DetachUserPolicy:{input:{type:"structure",required:["UserName","PolicyArn"],members:{UserName:{},PolicyArn:{}}}},EnableMFADevice:{input:{type:"structure",required:["UserName","SerialNumber","AuthenticationCode1","AuthenticationCode2"],members:{UserName:{},SerialNumber:{},AuthenticationCode1:{},AuthenticationCode2:{}}}},GenerateCredentialReport:{output:{resultWrapper:"GenerateCredentialReportResult",type:"structure",members:{State:{},Description:{}}}},GetAccessKeyLastUsed:{input:{type:"structure",required:["AccessKeyId"],members:{AccessKeyId:{}}},output:{resultWrapper:"GetAccessKeyLastUsedResult",type:"structure",members:{UserName:{},AccessKeyLastUsed:{type:"structure",required:["LastUsedDate","ServiceName","Region"],members:{LastUsedDate:{type:"timestamp"},ServiceName:{},Region:{}}}}}},GetAccountAuthorizationDetails:{input:{type:"structure",members:{Filter:{type:"list",member:{}},MaxItems:{type:"integer"},Marker:{}}},output:{resultWrapper:"GetAccountAuthorizationDetailsResult",type:"structure",members:{UserDetailList:{type:"list",member:{type:"structure",members:{Path:{},UserName:{},UserId:{},Arn:{},CreateDate:{type:"timestamp"},UserPolicyList:{shape:"S3q"},GroupList:{type:"list",member:{}},AttachedManagedPolicies:{shape:"S3t"},PermissionsBoundary:{shape:"S12"}}}},GroupDetailList:{type:"list",member:{type:"structure",members:{Path:{},GroupName:{},GroupId:{},Arn:{},CreateDate:{type:"timestamp"},GroupPolicyList:{shape:"S3q"},AttachedManagedPolicies:{shape:"S3t"}}}},RoleDetailList:{type:"list",member:{type:"structure",members:{Path:{},RoleName:{},RoleId:{},Arn:{},CreateDate:{type:"timestamp"},AssumeRolePolicyDocument:{},InstanceProfileList:{shape:"S3z"},RolePolicyList:{shape:"S3q"},AttachedManagedPolicies:{shape:"S3t"},PermissionsBoundary:{shape:"S12"}}}},Policies:{type:"list",member:{type:"structure",members:{PolicyName:{},PolicyId:{},Arn:{},Path:{},DefaultVersionId:{},AttachmentCount:{type:"integer"},PermissionsBoundaryUsageCount:{type:"integer"},IsAttachable:{type:"boolean"},Description:{},CreateDate:{type:"timestamp"},UpdateDate:{type:"timestamp"},PolicyVersionList:{shape:"S42"}}}},IsTruncated:{type:"boolean"},Marker:{}}}},GetAccountPasswordPolicy:{output:{resultWrapper:"GetAccountPasswordPolicyResult",type:"structure",required:["PasswordPolicy"],members:{PasswordPolicy:{type:"structure",members:{MinimumPasswordLength:{type:"integer"},RequireSymbols:{type:"boolean"},RequireNumbers:{type:"boolean"},RequireUppercaseCharacters:{type:"boolean"},RequireLowercaseCharacters:{type:"boolean"},AllowUsersToChangePassword:{type:"boolean"},ExpirePasswords:{type:"boolean"},MaxPasswordAge:{type:"integer"},PasswordReusePrevention:{type:"integer"},HardExpiry:{type:"boolean"}}}}}},GetAccountSummary:{output:{resultWrapper:"GetAccountSummaryResult",type:"structure",members:{SummaryMap:{type:"map",key:{},value:{type:"integer"}}}}},GetContextKeysForCustomPolicy:{input:{type:"structure",required:["PolicyInputList"],members:{PolicyInputList:{shape:"S4e"}}},output:{shape:"S4f",resultWrapper:"GetContextKeysForCustomPolicyResult"}},GetContextKeysForPrincipalPolicy:{input:{type:"structure",required:["PolicySourceArn"],members:{PolicySourceArn:{},PolicyInputList:{shape:"S4e"}}},output:{shape:"S4f",resultWrapper:"GetContextKeysForPrincipalPolicyResult"}},GetCredentialReport:{output:{resultWrapper:"GetCredentialReportResult",type:"structure",members:{Content:{type:"blob"},ReportFormat:{},GeneratedTime:{type:"timestamp"}}}},GetGroup:{input:{type:"structure",required:["GroupName"],members:{GroupName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"GetGroupResult",type:"structure",required:["Group","Users"],members:{Group:{shape:"Ss"},Users:{shape:"S4o"},IsTruncated:{type:"boolean"},Marker:{}}}},GetGroupPolicy:{input:{type:"structure",required:["GroupName","PolicyName"],members:{GroupName:{},PolicyName:{}}},output:{resultWrapper:"GetGroupPolicyResult",type:"structure",required:["GroupName","PolicyName","PolicyDocument"],members:{GroupName:{},PolicyName:{},PolicyDocument:{}}}},GetInstanceProfile:{input:{type:"structure",required:["InstanceProfileName"],members:{InstanceProfileName:{}}},output:{resultWrapper:"GetInstanceProfileResult",type:"structure",required:["InstanceProfile"],members:{InstanceProfile:{shape:"Sw"}}}},GetLoginProfile:{input:{type:"structure",required:["UserName"],members:{UserName:{}}},output:{resultWrapper:"GetLoginProfileResult",type:"structure",required:["LoginProfile"],members:{LoginProfile:{shape:"S17"}}}},GetOpenIDConnectProvider:{input:{type:"structure",required:["OpenIDConnectProviderArn"],members:{OpenIDConnectProviderArn:{}}},output:{resultWrapper:"GetOpenIDConnectProviderResult",type:"structure",members:{Url:{},ClientIDList:{shape:"S1a"},ThumbprintList:{shape:"S1b"},CreateDate:{type:"timestamp"}}}},GetPolicy:{input:{type:"structure",required:["PolicyArn"],members:{PolicyArn:{}}},output:{resultWrapper:"GetPolicyResult",type:"structure",members:{Policy:{shape:"S1j"}}}},GetPolicyVersion:{input:{type:"structure",required:["PolicyArn","VersionId"],members:{PolicyArn:{},VersionId:{}}},output:{resultWrapper:"GetPolicyVersionResult",type:"structure",members:{PolicyVersion:{shape:"S1o"}}}},GetRole:{input:{type:"structure",required:["RoleName"],members:{RoleName:{}}},output:{resultWrapper:"GetRoleResult",type:"structure",required:["Role"],members:{Role:{shape:"Sy"}}}},GetRolePolicy:{input:{type:"structure",required:["RoleName","PolicyName"],members:{RoleName:{},PolicyName:{}}},output:{resultWrapper:"GetRolePolicyResult",type:"structure",required:["RoleName","PolicyName","PolicyDocument"],members:{RoleName:{},PolicyName:{},PolicyDocument:{}}}},GetSAMLProvider:{input:{type:"structure",required:["SAMLProviderArn"],members:{SAMLProviderArn:{}}},output:{resultWrapper:"GetSAMLProviderResult",type:"structure",members:{SAMLMetadataDocument:{},CreateDate:{type:"timestamp"},ValidUntil:{type:"timestamp"}}}},GetSSHPublicKey:{input:{type:"structure",required:["UserName","SSHPublicKeyId","Encoding"],members:{UserName:{},SSHPublicKeyId:{},Encoding:{}}},output:{resultWrapper:"GetSSHPublicKeyResult",type:"structure",members:{SSHPublicKey:{shape:"S5a"}}}},GetServerCertificate:{input:{type:"structure",required:["ServerCertificateName"],members:{ServerCertificateName:{}}},output:{resultWrapper:"GetServerCertificateResult",type:"structure",required:["ServerCertificate"],members:{ServerCertificate:{type:"structure",required:["ServerCertificateMetadata","CertificateBody"],members:{ServerCertificateMetadata:{shape:"S5g"},CertificateBody:{},CertificateChain:{}}}}}},GetServiceLinkedRoleDeletionStatus:{input:{type:"structure",required:["DeletionTaskId"],members:{DeletionTaskId:{}}},output:{resultWrapper:"GetServiceLinkedRoleDeletionStatusResult",type:"structure",required:["Status"],members:{Status:{},Reason:{type:"structure",members:{Reason:{},RoleUsageList:{type:"list",member:{type:"structure",members:{Region:{},Resources:{type:"list",member:{}}}}}}}}}},GetUser:{input:{type:"structure",members:{UserName:{}}},output:{resultWrapper:"GetUserResult",type:"structure",required:["User"],members:{User:{shape:"S27"}}}},GetUserPolicy:{input:{type:"structure",required:["UserName","PolicyName"],members:{UserName:{},PolicyName:{}}},output:{resultWrapper:"GetUserPolicyResult",type:"structure",required:["UserName","PolicyName","PolicyDocument"],members:{UserName:{},PolicyName:{},PolicyDocument:{}}}},ListAccessKeys:{input:{type:"structure",members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListAccessKeysResult",type:"structure",required:["AccessKeyMetadata"],members:{AccessKeyMetadata:{type:"list",member:{type:"structure",members:{UserName:{},AccessKeyId:{},Status:{},CreateDate:{type:"timestamp"}}}},IsTruncated:{type:"boolean"},Marker:{}}}},ListAccountAliases:{input:{type:"structure",members:{Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListAccountAliasesResult",type:"structure",required:["AccountAliases"],members:{AccountAliases:{type:"list",member:{}},IsTruncated:{type:"boolean"},Marker:{}}}},ListAttachedGroupPolicies:{input:{type:"structure",required:["GroupName"],members:{GroupName:{},PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListAttachedGroupPoliciesResult",type:"structure",members:{AttachedPolicies:{shape:"S3t"},IsTruncated:{type:"boolean"},Marker:{}}}},ListAttachedRolePolicies:{input:{type:"structure",required:["RoleName"],members:{RoleName:{},PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListAttachedRolePoliciesResult",type:"structure",members:{AttachedPolicies:{shape:"S3t"},IsTruncated:{type:"boolean"},Marker:{}}}},ListAttachedUserPolicies:{input:{type:"structure",required:["UserName"],members:{UserName:{},PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListAttachedUserPoliciesResult",type:"structure",members:{AttachedPolicies:{shape:"S3t"},IsTruncated:{type:"boolean"},Marker:{}}}},ListEntitiesForPolicy:{input:{type:"structure",required:["PolicyArn"],members:{PolicyArn:{},EntityFilter:{},PathPrefix:{},PolicyUsageFilter:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListEntitiesForPolicyResult",type:"structure",members:{PolicyGroups:{type:"list",member:{type:"structure",members:{GroupName:{},GroupId:{}}}},PolicyUsers:{type:"list",member:{type:"structure",members:{UserName:{},UserId:{}}}},PolicyRoles:{type:"list",member:{type:"structure",members:{RoleName:{},RoleId:{}}}},IsTruncated:{type:"boolean"},Marker:{}}}},ListGroupPolicies:{input:{type:"structure",required:["GroupName"],members:{GroupName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListGroupPoliciesResult",type:"structure",required:["PolicyNames"],members:{PolicyNames:{shape:"S6k"},IsTruncated:{type:"boolean"},Marker:{}}}},ListGroups:{input:{type:"structure",members:{PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListGroupsResult",type:"structure",required:["Groups"],members:{Groups:{shape:"S6o"},IsTruncated:{type:"boolean"},Marker:{}}}},ListGroupsForUser:{input:{type:"structure",required:["UserName"],members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListGroupsForUserResult",type:"structure",required:["Groups"],members:{Groups:{shape:"S6o"},IsTruncated:{type:"boolean"},Marker:{}}}},ListInstanceProfiles:{input:{type:"structure",members:{PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListInstanceProfilesResult",type:"structure",required:["InstanceProfiles"],members:{InstanceProfiles:{shape:"S3z"},IsTruncated:{type:"boolean"},Marker:{}}}},ListInstanceProfilesForRole:{input:{type:"structure",required:["RoleName"],members:{RoleName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListInstanceProfilesForRoleResult",type:"structure",required:["InstanceProfiles"],members:{InstanceProfiles:{shape:"S3z"},IsTruncated:{type:"boolean"},Marker:{}}}},ListMFADevices:{input:{type:"structure",members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListMFADevicesResult",type:"structure",required:["MFADevices"],members:{MFADevices:{type:"list",member:{type:"structure",required:["UserName","SerialNumber","EnableDate"],members:{UserName:{},SerialNumber:{},EnableDate:{type:"timestamp"}}}},IsTruncated:{type:"boolean"},Marker:{}}}},ListOpenIDConnectProviders:{input:{type:"structure",members:{}},output:{resultWrapper:"ListOpenIDConnectProvidersResult",type:"structure",members:{OpenIDConnectProviderList:{type:"list",member:{type:"structure",members:{Arn:{}}}}}}},ListPolicies:{input:{type:"structure",members:{Scope:{},OnlyAttached:{type:"boolean"},PathPrefix:{},PolicyUsageFilter:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListPoliciesResult",type:"structure",members:{Policies:{type:"list",member:{shape:"S1j"}},IsTruncated:{type:"boolean"},Marker:{}}}},ListPolicyVersions:{input:{type:"structure",required:["PolicyArn"],members:{PolicyArn:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListPolicyVersionsResult",type:"structure",members:{Versions:{shape:"S42"},IsTruncated:{type:"boolean"},Marker:{}}}},ListRolePolicies:{input:{type:"structure",required:["RoleName"],members:{RoleName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListRolePoliciesResult",type:"structure",required:["PolicyNames"],members:{PolicyNames:{shape:"S6k"},IsTruncated:{type:"boolean"},Marker:{}}}},ListRoles:{input:{type:"structure",members:{PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListRolesResult",type:"structure",required:["Roles"],members:{Roles:{shape:"Sx"},IsTruncated:{type:"boolean"},Marker:{}}}},ListSAMLProviders:{input:{type:"structure",members:{}},output:{resultWrapper:"ListSAMLProvidersResult",type:"structure",members:{SAMLProviderList:{type:"list",member:{type:"structure",members:{Arn:{},ValidUntil:{type:"timestamp"},CreateDate:{type:"timestamp"}}}}}}},ListSSHPublicKeys:{input:{type:"structure",members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListSSHPublicKeysResult",type:"structure",members:{SSHPublicKeys:{type:"list",member:{type:"structure",required:["UserName","SSHPublicKeyId","Status","UploadDate"],members:{UserName:{},SSHPublicKeyId:{},Status:{},UploadDate:{type:"timestamp"}}}},IsTruncated:{type:"boolean"},Marker:{}}}},ListServerCertificates:{input:{type:"structure",members:{PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListServerCertificatesResult",type:"structure",required:["ServerCertificateMetadataList"],members:{ServerCertificateMetadataList:{type:"list",member:{shape:"S5g"}},IsTruncated:{type:"boolean"},Marker:{}}}},ListServiceSpecificCredentials:{input:{type:"structure",members:{UserName:{},ServiceName:{}}},output:{resultWrapper:"ListServiceSpecificCredentialsResult",type:"structure",members:{ServiceSpecificCredentials:{type:"list",member:{type:"structure",required:["UserName","Status","ServiceUserName","CreateDate","ServiceSpecificCredentialId","ServiceName"],members:{UserName:{},Status:{},ServiceUserName:{},CreateDate:{type:"timestamp"},ServiceSpecificCredentialId:{},ServiceName:{}}}}}}},ListSigningCertificates:{input:{type:"structure",members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListSigningCertificatesResult",type:"structure",required:["Certificates"],members:{Certificates:{type:"list",member:{shape:"S7v"}},IsTruncated:{type:"boolean"},Marker:{}}}},ListUserPolicies:{input:{type:"structure",required:["UserName"],members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListUserPoliciesResult",type:"structure",required:["PolicyNames"],members:{PolicyNames:{shape:"S6k"},IsTruncated:{type:"boolean"},Marker:{}}}},ListUsers:{input:{type:"structure",members:{PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListUsersResult",type:"structure",required:["Users"],members:{Users:{shape:"S4o"},IsTruncated:{type:"boolean"},Marker:{}}}},ListVirtualMFADevices:{input:{type:"structure",members:{AssignmentStatus:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListVirtualMFADevicesResult",type:"structure",required:["VirtualMFADevices"],members:{VirtualMFADevices:{type:"list",member:{shape:"S2b"}},IsTruncated:{type:"boolean"},Marker:{}}}},PutGroupPolicy:{input:{type:"structure",required:["GroupName","PolicyName","PolicyDocument"],members:{GroupName:{},PolicyName:{},PolicyDocument:{}}}},PutRolePermissionsBoundary:{input:{type:"structure",required:["RoleName","PermissionsBoundary"],members:{RoleName:{},PermissionsBoundary:{}}}},PutRolePolicy:{input:{type:"structure",required:["RoleName","PolicyName","PolicyDocument"],members:{RoleName:{},PolicyName:{},PolicyDocument:{}}}},PutUserPermissionsBoundary:{input:{type:"structure",required:["UserName","PermissionsBoundary"],members:{UserName:{},PermissionsBoundary:{}}}},PutUserPolicy:{input:{type:"structure",required:["UserName","PolicyName","PolicyDocument"],members:{UserName:{},PolicyName:{},PolicyDocument:{}}}},RemoveClientIDFromOpenIDConnectProvider:{input:{type:"structure",required:["OpenIDConnectProviderArn","ClientID"],members:{OpenIDConnectProviderArn:{},ClientID:{}}}},RemoveRoleFromInstanceProfile:{input:{type:"structure",required:["InstanceProfileName","RoleName"],members:{InstanceProfileName:{},RoleName:{}}}},RemoveUserFromGroup:{input:{type:"structure",required:["GroupName","UserName"],members:{GroupName:{},UserName:{}}}},ResetServiceSpecificCredential:{input:{type:"structure",required:["ServiceSpecificCredentialId"],members:{UserName:{},ServiceSpecificCredentialId:{}}},output:{resultWrapper:"ResetServiceSpecificCredentialResult",type:"structure",members:{ServiceSpecificCredential:{shape:"S21"}}}},ResyncMFADevice:{input:{type:"structure",required:["UserName","SerialNumber","AuthenticationCode1","AuthenticationCode2"],members:{UserName:{},SerialNumber:{},AuthenticationCode1:{},AuthenticationCode2:{}}}},SetDefaultPolicyVersion:{input:{type:"structure",required:["PolicyArn","VersionId"],members:{PolicyArn:{},VersionId:{}}}},SimulateCustomPolicy:{input:{type:"structure",required:["PolicyInputList","ActionNames"],members:{PolicyInputList:{shape:"S4e"},ActionNames:{shape:"S8h"},ResourceArns:{shape:"S8j"},ResourcePolicy:{},ResourceOwner:{},CallerArn:{},ContextEntries:{shape:"S8l"},ResourceHandlingOption:{},MaxItems:{type:"integer"},Marker:{}}},output:{shape:"S8r",resultWrapper:"SimulateCustomPolicyResult"}},SimulatePrincipalPolicy:{input:{type:"structure",required:["PolicySourceArn","ActionNames"],members:{PolicySourceArn:{},PolicyInputList:{shape:"S4e"},ActionNames:{shape:"S8h"},ResourceArns:{shape:"S8j"},ResourcePolicy:{},ResourceOwner:{},CallerArn:{},ContextEntries:{shape:"S8l"},ResourceHandlingOption:{},MaxItems:{type:"integer"},Marker:{}}},output:{shape:"S8r",resultWrapper:"SimulatePrincipalPolicyResult"}},UpdateAccessKey:{input:{type:"structure",required:["AccessKeyId","Status"],members:{UserName:{},AccessKeyId:{},Status:{}}}},UpdateAccountPasswordPolicy:{input:{type:"structure",members:{MinimumPasswordLength:{type:"integer"},RequireSymbols:{type:"boolean"},RequireNumbers:{type:"boolean"},RequireUppercaseCharacters:{type:"boolean"},RequireLowercaseCharacters:{type:"boolean"},AllowUsersToChangePassword:{type:"boolean"},MaxPasswordAge:{type:"integer"},PasswordReusePrevention:{type:"integer"},HardExpiry:{type:"boolean"}}}},UpdateAssumeRolePolicy:{input:{type:"structure",required:["RoleName","PolicyDocument"],members:{RoleName:{},PolicyDocument:{}}}},UpdateGroup:{input:{type:"structure",required:["GroupName"],members:{GroupName:{},NewPath:{},NewGroupName:{}}}},UpdateLoginProfile:{input:{type:"structure",required:["UserName"],members:{UserName:{},Password:{shape:"Sf"},PasswordResetRequired:{type:"boolean"}}}},UpdateOpenIDConnectProviderThumbprint:{input:{type:"structure",required:["OpenIDConnectProviderArn","ThumbprintList"],members:{OpenIDConnectProviderArn:{},ThumbprintList:{shape:"S1b"}}}},UpdateRole:{input:{type:"structure",required:["RoleName"],members:{RoleName:{},Description:{},MaxSessionDuration:{type:"integer"}}},output:{resultWrapper:"UpdateRoleResult",type:"structure",members:{}}},UpdateRoleDescription:{input:{type:"structure",required:["RoleName","Description"],members:{RoleName:{},Description:{}}},output:{resultWrapper:"UpdateRoleDescriptionResult",type:"structure",members:{Role:{shape:"Sy"}}}},UpdateSAMLProvider:{input:{type:"structure",required:["SAMLMetadataDocument","SAMLProviderArn"],members:{SAMLMetadataDocument:{},SAMLProviderArn:{}}},output:{resultWrapper:"UpdateSAMLProviderResult",type:"structure",members:{SAMLProviderArn:{}}}},UpdateSSHPublicKey:{input:{type:"structure",required:["UserName","SSHPublicKeyId","Status"],members:{UserName:{},SSHPublicKeyId:{},Status:{}}}},UpdateServerCertificate:{input:{type:"structure",required:["ServerCertificateName"],members:{ServerCertificateName:{},NewPath:{},NewServerCertificateName:{}}}},UpdateServiceSpecificCredential:{input:{type:"structure",required:["ServiceSpecificCredentialId","Status"],members:{UserName:{},ServiceSpecificCredentialId:{},Status:{}}}},UpdateSigningCertificate:{input:{type:"structure",required:["CertificateId","Status"],members:{UserName:{},CertificateId:{},Status:{}}}},UpdateUser:{input:{type:"structure",required:["UserName"],members:{UserName:{},NewPath:{},NewUserName:{}}}},UploadSSHPublicKey:{input:{type:"structure",required:["UserName","SSHPublicKeyBody"],members:{UserName:{},SSHPublicKeyBody:{}}},output:{resultWrapper:"UploadSSHPublicKeyResult",type:"structure",members:{SSHPublicKey:{shape:"S5a"}}}},UploadServerCertificate:{input:{type:"structure",required:["ServerCertificateName","CertificateBody","PrivateKey"],members:{Path:{},ServerCertificateName:{},CertificateBody:{},PrivateKey:{type:"string",sensitive:!0},CertificateChain:{}}},output:{resultWrapper:"UploadServerCertificateResult",type:"structure",members:{ServerCertificateMetadata:{shape:"S5g"}}}},UploadSigningCertificate:{input:{type:"structure",required:["CertificateBody"],members:{UserName:{},CertificateBody:{}}},output:{resultWrapper:"UploadSigningCertificateResult",type:"structure",required:["Certificate"],members:{Certificate:{shape:"S7v"}}}}},shapes:{Sf:{type:"string",sensitive:!0},Ss:{type:"structure",required:["Path","GroupName","GroupId","Arn","CreateDate"],members:{Path:{},GroupName:{},GroupId:{},Arn:{},CreateDate:{type:"timestamp"}}},Sw:{type:"structure",required:["Path","InstanceProfileName","InstanceProfileId","Arn","CreateDate","Roles"],members:{Path:{},InstanceProfileName:{},InstanceProfileId:{},Arn:{},CreateDate:{type:"timestamp"},Roles:{shape:"Sx"}}},Sx:{type:"list",member:{shape:"Sy"}},Sy:{type:"structure",required:["Path","RoleName","RoleId","Arn","CreateDate"],members:{Path:{},RoleName:{},RoleId:{},Arn:{},CreateDate:{type:"timestamp"},AssumeRolePolicyDocument:{},Description:{},MaxSessionDuration:{type:"integer"},PermissionsBoundary:{shape:"S12"}}},S12:{type:"structure",members:{PermissionsBoundaryType:{},PermissionsBoundaryArn:{}}},S17:{type:"structure",required:["UserName","CreateDate"],members:{UserName:{},CreateDate:{type:"timestamp"},PasswordResetRequired:{type:"boolean"}}},S1a:{type:"list",member:{}},S1b:{type:"list",member:{}},S1j:{type:"structure",members:{PolicyName:{},PolicyId:{},Arn:{},Path:{},DefaultVersionId:{},AttachmentCount:{type:"integer"},PermissionsBoundaryUsageCount:{type:"integer"},IsAttachable:{type:"boolean"},Description:{},CreateDate:{type:"timestamp"},UpdateDate:{type:"timestamp"}}},S1o:{type:"structure",members:{Document:{},VersionId:{},IsDefaultVersion:{type:"boolean"},CreateDate:{type:"timestamp"}}},S21:{type:"structure",required:["CreateDate","ServiceName","ServiceUserName","ServicePassword","ServiceSpecificCredentialId","UserName","Status"],members:{CreateDate:{type:"timestamp"},ServiceName:{},ServiceUserName:{},ServicePassword:{type:"string",sensitive:!0},ServiceSpecificCredentialId:{},UserName:{},Status:{}}},S27:{type:"structure",required:["Path","UserName","UserId","Arn","CreateDate"],members:{Path:{},UserName:{},UserId:{},Arn:{},CreateDate:{type:"timestamp"},PasswordLastUsed:{type:"timestamp"},PermissionsBoundary:{shape:"S12"}}},S2b:{type:"structure",required:["SerialNumber"],members:{SerialNumber:{},Base32StringSeed:{shape:"S2d"},QRCodePNG:{shape:"S2d"},User:{shape:"S27"},EnableDate:{type:"timestamp"}}},S2d:{type:"blob",sensitive:!0},S3q:{type:"list",member:{type:"structure",members:{PolicyName:{},PolicyDocument:{}}}},S3t:{type:"list",member:{type:"structure",members:{PolicyName:{},PolicyArn:{}}}},S3z:{type:"list",member:{shape:"Sw"}},S42:{type:"list",member:{shape:"S1o"}},S4e:{type:"list",member:{}},S4f:{type:"structure",members:{ContextKeyNames:{shape:"S4g"}}},S4g:{type:"list",member:{}},S4o:{type:"list",member:{shape:"S27"}},S5a:{type:"structure",required:["UserName","SSHPublicKeyId","Fingerprint","SSHPublicKeyBody","Status"],members:{UserName:{},SSHPublicKeyId:{},Fingerprint:{},SSHPublicKeyBody:{},Status:{},UploadDate:{type:"timestamp"}}},S5g:{type:"structure",required:["Path","ServerCertificateName","ServerCertificateId","Arn"],members:{Path:{},ServerCertificateName:{},ServerCertificateId:{},Arn:{},UploadDate:{type:"timestamp"},Expiration:{type:"timestamp"}}},S6k:{type:"list",member:{}},S6o:{type:"list",member:{ -shape:"Ss"}},S7v:{type:"structure",required:["UserName","CertificateId","CertificateBody","Status"],members:{UserName:{},CertificateId:{},CertificateBody:{},Status:{},UploadDate:{type:"timestamp"}}},S8h:{type:"list",member:{}},S8j:{type:"list",member:{}},S8l:{type:"list",member:{type:"structure",members:{ContextKeyName:{},ContextKeyValues:{type:"list",member:{}},ContextKeyType:{}}}},S8r:{type:"structure",members:{EvaluationResults:{type:"list",member:{type:"structure",required:["EvalActionName","EvalDecision"],members:{EvalActionName:{},EvalResourceName:{},EvalDecision:{},MatchedStatements:{shape:"S8v"},MissingContextValues:{shape:"S4g"},OrganizationsDecisionDetail:{type:"structure",members:{AllowedByOrganizations:{type:"boolean"}}},EvalDecisionDetails:{shape:"S93"},ResourceSpecificResults:{type:"list",member:{type:"structure",required:["EvalResourceName","EvalResourceDecision"],members:{EvalResourceName:{},EvalResourceDecision:{},MatchedStatements:{shape:"S8v"},MissingContextValues:{shape:"S4g"},EvalDecisionDetails:{shape:"S93"}}}}}}},IsTruncated:{type:"boolean"},Marker:{}}},S8v:{type:"list",member:{type:"structure",members:{SourcePolicyId:{},SourcePolicyType:{},StartPosition:{shape:"S8z"},EndPosition:{shape:"S8z"}}}},S8z:{type:"structure",members:{Line:{type:"integer"},Column:{type:"integer"}}},S93:{type:"map",key:{},value:{}}},paginators:{GetAccountAuthorizationDetails:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:["UserDetailList","GroupDetailList","RoleDetailList","Policies"]},GetGroup:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Users"},ListAccessKeys:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"AccessKeyMetadata"},ListAccountAliases:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"AccountAliases"},ListAttachedGroupPolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"AttachedPolicies"},ListAttachedRolePolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"AttachedPolicies"},ListAttachedUserPolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"AttachedPolicies"},ListEntitiesForPolicy:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:["PolicyGroups","PolicyUsers","PolicyRoles"]},ListGroupPolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"PolicyNames"},ListGroups:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Groups"},ListGroupsForUser:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Groups"},ListInstanceProfiles:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"InstanceProfiles"},ListInstanceProfilesForRole:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"InstanceProfiles"},ListMFADevices:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"MFADevices"},ListPolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Policies"},ListPolicyVersions:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Versions"},ListRolePolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"PolicyNames"},ListRoles:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Roles"},ListSAMLProviders:{result_key:"SAMLProviderList"},ListSSHPublicKeys:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"SSHPublicKeys"},ListServerCertificates:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"ServerCertificateMetadataList"},ListSigningCertificates:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Certificates"},ListUserPolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"PolicyNames"},ListUsers:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Users"},ListVirtualMFADevices:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"VirtualMFADevices"},SimulateCustomPolicy:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"EvaluationResults"},SimulatePrincipalPolicy:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"EvaluationResults"}},waiters:{InstanceProfileExists:{delay:1,operation:"GetInstanceProfile",maxAttempts:40,acceptors:[{expected:200,matcher:"status",state:"success"},{state:"retry",matcher:"status",expected:404}]},UserExists:{delay:1,operation:"GetUser",maxAttempts:20,acceptors:[{state:"success",matcher:"status",expected:200},{state:"retry",matcher:"error",expected:"NoSuchEntity"}]}}};AWS.apiLoader.services.eks={},AWS.EKS=AWS.Service.defineService("eks",["2017-11-01"]);AWS.apiLoader.services.eks["2017-11-01"]={version:"2.0",metadata:{apiVersion:"2017-11-01",endpointPrefix:"eks",jsonVersion:"1.1",protocol:"rest-json",serviceAbbreviation:"Amazon EKS",serviceFullName:"Amazon Elastic Container Service for Kubernetes",serviceId:"EKS",signatureVersion:"v4",signingName:"eks",uid:"eks-2017-11-01"},operations:{CreateCluster:{http:{requestUri:"/clusters"},input:{type:"structure",required:["name","roleArn","resourcesVpcConfig"],members:{name:{},version:{},roleArn:{},resourcesVpcConfig:{type:"structure",required:["subnetIds"],members:{subnetIds:{shape:"S5"},securityGroupIds:{shape:"S5"}}},clientRequestToken:{idempotencyToken:!0}}},output:{type:"structure",members:{cluster:{shape:"S7"}}}},DeleteCluster:{http:{method:"DELETE",requestUri:"/clusters/{name}"},input:{type:"structure",required:["name"],members:{name:{location:"uri",locationName:"name"}}},output:{type:"structure",members:{cluster:{shape:"S7"}}}},DescribeCluster:{http:{method:"GET",requestUri:"/clusters/{name}"},input:{type:"structure",required:["name"],members:{name:{location:"uri",locationName:"name"}}},output:{type:"structure",members:{cluster:{shape:"S7"}}}},ListClusters:{http:{method:"GET",requestUri:"/clusters"},input:{type:"structure",members:{maxResults:{location:"querystring",locationName:"maxResults",type:"integer"},nextToken:{location:"querystring",locationName:"nextToken"}}},output:{type:"structure",members:{clusters:{shape:"S5"},nextToken:{}}}}},shapes:{S5:{type:"list",member:{}},S7:{type:"structure",members:{name:{},arn:{},createdAt:{type:"timestamp"},version:{},endpoint:{},roleArn:{},resourcesVpcConfig:{type:"structure",members:{subnetIds:{shape:"S5"},securityGroupIds:{shape:"S5"},vpcId:{}}},status:{},certificateAuthority:{type:"structure",members:{data:{}}},clientRequestToken:{},platformVersion:{}}}},paginators:{}};AWS.apiLoader.services.sts={},AWS.STS=AWS.Service.defineService("sts",["2011-06-15"]),_xamzrequire=function e(r,t,n){function i(o,a){if(!t[o]){if(!r[o]){var u="function"==typeof _xamzrequire&&_xamzrequire;if(!a&&u)return u(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var d=t[o]={exports:{}};r[o][0].call(d.exports,function(e){var t=r[o][1][e];return i(t||e)},d,d.exports,e,r,t,n)}return t[o].exports}for(var s="function"==typeof _xamzrequire&&_xamzrequire,o=0;o=0)return e.toLowerCase();throw o.util.error(new Error,t)}}function i(e,t){e=e||{};var i;if(e[t.clientConfig]&&(i=n(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return i;if(!o.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(r.env,t.env)){if(i=n(r.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+r.env[t.env]+'".'}))return i}var s={};try{s=o.util.getProfilesFromSharedConfig(o.util.iniLoader)[r.env.AWS_PROFILE||o.util.defaultProfile]}catch(e){}if(s&&Object.prototype.hasOwnProperty.call(s,t.sharedConfig)){if(i=n(s[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+s[t.sharedConfig]+'".'}))return i}return i}var o=e("./core");t.exports=i}).call(this,e("_process"))},{"./core":39,_process:8}],39:[function(e,t,r){var n={util:e("./util")};({}).toString(),t.exports=n,n.util.update(n,{VERSION:"2.705.0",Signers:{},Protocol:{Json:e("./protocol/json"),Query:e("./protocol/query"),Rest:e("./protocol/rest"),RestJson:e("./protocol/rest_json"),RestXml:e("./protocol/rest_xml")},XML:{Builder:e("./xml/builder"),Parser:null},JSON:{Builder:e("./json/builder"),Parser:e("./json/parser")},Model:{Api:e("./model/api"),Operation:e("./model/operation"),Shape:e("./model/shape"),Paginator:e("./model/paginator"),ResourceWaiter:e("./model/resource_waiter")},apiLoader:e("./api_loader"),EndpointCache:e("../vendor/endpoint-cache").EndpointCache}),e("./sequential_executor"),e("./service"),e("./config"),e("./http"),e("./event_listeners"),e("./request"),e("./response"),e("./resource_waiter"),e("./signers/request_signer"),e("./param_validator"),n.events=new n.SequentialExecutor,n.util.memoizedProperty(n,"endpointCache",function(){return new n.EndpointCache(n.config.endpointCacheSize)},!0)},{"../vendor/endpoint-cache":125,"./api_loader":27,"./config":37,"./event_listeners":60,"./http":61,"./json/builder":63,"./json/parser":64,"./model/api":65,"./model/operation":67,"./model/paginator":68,"./model/resource_waiter":69,"./model/shape":70,"./param_validator":71,"./protocol/json":74,"./protocol/query":75,"./protocol/rest":76,"./protocol/rest_json":77,"./protocol/rest_xml":78,"./request":84,"./resource_waiter":85,"./response":86,"./sequential_executor":88,"./service":89,"./signers/request_signer":110,"./util":118,"./xml/builder":120}],125:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./utils/LRU"),i=1e3,o=function(){function e(e){void 0===e&&(e=i),this.maxSize=e,this.cache=new n.LRUCache(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,r){var n="string"!=typeof t?e.getKeyString(t):t,i=this.populateValue(r);this.cache.put(n,i)},e.prototype.get=function(t){var r="string"!=typeof t?e.getKeyString(t):t,n=Date.now(),i=this.cache.get(r);if(i)for(var o=0;o0||n?o.toString():""},t.exports=n},{"../util":118,"./xml-node":123,"./xml-text":124}],124:[function(e,t,r){function n(e){this.value=e}var i=e("./escape-element").escapeElement;n.prototype.toString=function(){return i(""+this.value)},t.exports={XmlText:n}},{"./escape-element":122}],122:[function(e,t,r){function n(e){return e.replace(/&/g,"&").replace(//g,">")}t.exports={escapeElement:n}},{}],123:[function(e,t,r){function n(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}var i=e("./escape-attribute").escapeAttribute;n.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},n.prototype.addChildNode=function(e){return this.children.push(e),this},n.prototype.removeAttribute=function(e){return delete this.attributes[e],this},n.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,n=0,o=Object.keys(r);n"+this.children.map(function(e){return e.toString()}).join("")+"":"/>"},t.exports={XmlNode:n}},{"./escape-attribute":121}],121:[function(e,t,r){function n(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}t.exports={escapeAttribute:n}},{}],110:[function(e,t,r){var n=e("../core"),i=n.util.inherit;n.Signers.RequestSigner=i({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),n.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return n.Signers.V2;case"v3":return n.Signers.V3;case"s3v4":case"v4":return n.Signers.V4;case"s3":return n.Signers.S3;case"v3https":return n.Signers.V3Https}throw new Error("Unknown signing version "+e)},e("./v2"),e("./v3"),e("./v3https"),e("./v4"),e("./s3"),e("./presign")},{"../core":39,"./presign":109,"./s3":111,"./v2":112,"./v3":113,"./v3https":114,"./v4":115}],115:[function(e,t,r){var n=e("../core"),i=e("./v4_credentials"),o=n.util.inherit;n.Signers.V4=o(n.Signers.RequestSigner,{constructor:function(e,t,r){n.Signers.RequestSigner.call(this,e),this.serviceName=t,r=r||{},this.signatureCache="boolean"!=typeof r.signatureCache||r.signatureCache,this.operation=r.operation,this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var r=n.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var r=this.credentialString(t),i={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers["presigned-expires"],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(i["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(i["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(i["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(i["Cache-Control"]=this.request.headers["Cache-Control"]),n.util.each.call(this,this.request.headers,function(e,t){if("presigned-expires"!==e&&this.isSignableHeader(e)){var r=e.toLowerCase();0===r.indexOf("x-amz-meta-")?i[r]=t:0===r.indexOf("x-amz-")&&(i[e]=t)}});var o=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=o+n.util.queryParamsToString(i)},authorization:function(e,t){var r=[],n=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+n),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=i.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return n.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=n.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];n.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])}),e.sort(function(e,t){return e[0].toLowerCase()50&&delete i[o.shift()]),f},emptyCache:function(){i={},o=[]}}},{"../core":39}],114:[function(e,t,r){var n=e("../core"),i=n.util.inherit;e("./v3"),n.Signers.V3Https=i(n.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),t.exports=n.Signers.V3Https},{"../core":39,"./v3":113}],113:[function(e,t,r){var n=e("../core"),i=n.util.inherit;n.Signers.V3=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return n.util.arrayEach(this.headersToSign(),function(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),e},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),n.util.crypto.sha256(e.join("\n"))}}),t.exports=n.Signers.V3},{"../core":39}],112:[function(e,t,r){var n=e("../core"),i=n.util.inherit;n.Signers.V2=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=n.util.date.getDate());var r=this.request;r.params.Timestamp=n.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=n.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.body.length},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(n.util.queryParamsToString(this.request.params)),e.join("\n")}}),t.exports=n.Signers.V2},{"../core":39}],111:[function(e,t,r){var n=e("../core"),i=n.util.inherit;n.Signers.S3=i(n.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=n.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign()),i="AWS "+e.accessKeyId+":"+r;this.request.headers.Authorization=i},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];n.util.each(this.request.headers,function(t){t.match(/^x-amz-/i)&&e.push(t)}),e.sort(function(e,t){return e.toLowerCase()604800){throw o.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1})}e.httpRequest.headers[a]=t}else{if(r!==o.Signers.S3)throw o.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var n=e.service?e.service.getSkewCorrectedDate():o.util.date.getDate();e.httpRequest.headers[a]=parseInt(o.util.date.unixTimestamp(n)+t,10).toString()}}function i(e){var t=e.httpRequest.endpoint,r=o.util.urlParse(e.httpRequest.path),n={};r.search&&(n=o.util.queryStringParse(r.search.substr(1)));var i=e.httpRequest.headers.Authorization.split(" ");if("AWS"===i[0])i=i[1].split(":"),n.Signature=i.pop(),n.AWSAccessKeyId=i.join(":"),o.util.each(e.httpRequest.headers,function(e,t){e===a&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete n[e],e=e.toLowerCase()),n[e]=t}),delete e.httpRequest.headers[a],delete n.Authorization,delete n.Host;else if("AWS4-HMAC-SHA256"===i[0]){i.shift();var s=i.join(" "),u=s.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=u,delete n.Expires}t.pathname=r.pathname,t.search=o.util.queryParamsToString(n)}var o=e("../core"),s=o.util.inherit,a="presigned-expires";o.Signers.Presign=s({sign:function(e,t,r){if(e.httpRequest.headers[a]=t||3600,e.on("build",n),e.on("sign",i),e.removeListener("afterBuild",o.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",o.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return o.util.urlFormat(e.httpRequest.endpoint)}e.build(function(){this.response.error?r(this.response.error):r(null,o.util.urlFormat(e.httpRequest.endpoint))})}}),t.exports=o.Signers.Presign},{"../core":39}],89:[function(e,t,r){(function(r){var n=e("./core"),i=e("./model/api"),o=e("./region_config"),s=n.util.inherit,a=0;n.Service=s({constructor:function(e){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");var t=this.loadServiceClass(e||{});if(t){var r=n.util.copy(e),i=new t(e);return Object.defineProperty(i,"_originalConfig",{get:function(){return r},enumerable:!1,configurable:!0}),i._clientId=++a,i}this.initialize(e)},initialize:function(e){var t=n.config[this.serviceIdentifier];if(this.config=new n.Config(n.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||o.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),n.SequentialExecutor.call(this),n.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||n.Service._clientSideMonitoring)&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(e){r.nextTick(function(){i.eventHandler(e)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(e){r.nextTick(function(){i.eventHandler(e)})})}},validateService:function(){},loadServiceClass:function(e){var t=e;if(n.util.isEmpty(this.api)){if(t.apiConfig)return n.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){t=new n.Config(n.config),t.update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&n.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?n.util.isType(e,Date)&&(e=n.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,i=t.length-1;i>=0;i--)if("*"!==t[i][t[i].length-1]&&(r=t[i]),t[i].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var i=this.api.operations[e];i&&(t=n.util.copy(t),n.util.each(this.config.params,function(e,r){i.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=r))}))}var o=new n.Request(this,e,t);return this.addAllRequestListeners(o),this.attachMonitoringEmitter(o),r&&o.send(r),o},makeUnauthenticatedRequest:function(e,t,r){"function"==typeof t&&(r=t,t={});var n=this.makeRequest(e,t).toUnauthenticated();return r?n.send(r):n},waitFor:function(e,t,r){return new n.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[n.events,n.EventListeners.Core,this.serviceInterface(),n.EventListeners.CorePost],r=0;r299?(i.code&&(r.FinalAwsException=i.code),i.message&&(r.FinalAwsExceptionMessage=i.message)):((i.code||i.name)&&(r.FinalSdkException=i.code||i.name),i.message&&(r.FinalSdkExceptionMessage=i.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},n=e.response;return n.httpResponse.statusCode&&(r.HttpStatusCode=n.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),n.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),n.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=n.httpResponse.headers["x-amzn-requestid"]),n.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=n.httpResponse.headers["x-amz-request-id"]),n.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=n.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,n=r.error;return r.httpResponse.statusCode>299?(n.code&&(t.AwsException=n.code),n.message&&(t.AwsExceptionMessage=n.message)):((n.code||n.name)&&(t.SdkException=n.code||n.name),n.message&&(t.SdkExceptionMessage=n.message)),t},attachMonitoringEmitter:function(e){var t,r,i,o,s,a,u=0,c=this;e.on("validate",function(){o=n.util.realClock.now(),a=Date.now()},!0),e.on("sign",function(){r=n.util.realClock.now(),t=Date.now(),s=e.httpRequest.region,u++},!0),e.on("validateResponse",function(){i=Math.round(n.util.realClock.now()-r)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var r=c.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=i>=0?i:0,r.Region=s,c.emit("apiCallAttempt",[r])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var o=c.attemptFailEvent(e);o.Timestamp=t,i=i||Math.round(n.util.realClock.now()-r),o.AttemptLatency=i>=0?i:0,o.Region=s,c.emit("apiCallAttempt",[o])}),e.addNamedListener("API_CALL","complete",function(){var t=c.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=a;var r=Math.round(n.util.realClock.now()-o);t.Latency=r>=0?r:0;var i=e.response;i.error&&i.error.retryable&&"number"==typeof i.retryCount&&"number"==typeof i.maxRetries&&i.retryCount>=i.maxRetries&&(t.MaxRetriesExceeded=1),c.emit("apiCall",[t])}})},setupRequestListeners:function(e){},getSignerClass:function(e){var t,r=null,i="";if(e){r=(e.service.api.operations||{})[e.operation]||null,i=r?r.authtype:""}return t=this.config.signatureVersion?this.config.signatureVersion:"v4"===i||"v4-unsigned-body"===i?"v4":this.api.signatureVersion,n.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return n.EventListeners.Query;case"json":return n.EventListeners.Json;case"rest-json":return n.EventListeners.RestJson;case"rest-xml":return n.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,t){return n.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function(e){return!!this.timeoutError(e)||(!!this.networkingError(e)||(!!this.expiredCredentialsError(e)||(!!this.throttledError(e)||e.statusCode>=500)))},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var t=e;return t=t.replace(/\{service\}/g,this.api.endpointPrefix),t=t.replace(/\{region\}/g,this.config.region),t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new n.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var i=new Error;throw n.util.error(i,"No pagination configuration for "+e)}return null}return r}}),n.util.update(n.Service,{defineMethods:function(e){n.util.each(e.prototype.api.operations,function(t){if(!e.prototype[t]){"none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)}}})},defineService:function(e,t,r){n.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var i=s(n.Service,r||{});if("string"==typeof e){n.Service.addVersions(i,t);var o=i.serviceIdentifier||e;i.serviceIdentifier=o}else i.prototype.api=e,n.Service.defineMethods(i);if(n.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&n.util.clientSideMonitoring){var a=n.util.clientSideMonitoring.Publisher,u=n.util.clientSideMonitoring.configProvider,c=u();this.prototype.publisher=new a(c),c.enabled&&(n.Service._clientSideMonitoring=!0)}return n.SequentialExecutor.call(i.prototype),n.Service.addDefaultMonitoringListeners(i.prototype),i},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r=0){u=!0;var c=0}var l=function(){u&&c!==a?i.emit("error",n.util.error(new Error("Stream content length mismatch. Received "+c+" of "+a+" bytes."),{code:"StreamContentLengthMismatch"})):2===n.HttpClient.streamsApiVersion?i.end():i.emit("end")},h=s.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(u){var p=new e.PassThrough;p._write=function(t){return t&&t.length&&(c+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},p.on("end",l),i.on("error",function(e){u=!1,h.unpipe(p),p.emit("end"),p.end()}),h.pipe(p).pipe(i,{end:!1})}else h.pipe(i);else u&&h.on("data",function(e){e&&e.length&&(c+=e.length)}),h.on("data",function(e){i.emit("data",e)}),h.on("end",l);h.on("error",function(e){u=!1,i.emit("error",e)})}}),i},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),n.SequentialExecutor.prototype.emit.call(this,e,t,function(e){e&&(this.response.error=e),r.call(this,e)})},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,t){return t||"function"!=typeof e||(t=e,e=null),(new n.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",n.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",n.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),n.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e(function(e,r){t.on("complete",function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))}),t.runTo()})}},n.Request.deletePromisesFromClass=function(){delete this.prototype.promise},n.util.addPromises(n.Request),n.util.mixin(n.Request,n.SequentialExecutor)}).call(this,e("_process"))},{"./core":39,"./state_machine":117,_process:8,jmespath:7}],117:[function(e,t,r){function n(e,t){this.currentState=t||null,this.states=e||{}}n.prototype.runTo=function(e,t,r,n){"function"==typeof e&&(n=r,r=t,t=e,e=null);var i=this,o=i.states[i.currentState];o.fn.call(r||i,n,function(n){if(n){if(!o.fail)return t?t.call(r,n):null;i.currentState=o.fail}else{if(!o.accept)return t?t.call(r):null;i.currentState=o.accept}if(i.currentState===e)return t?t.call(r,n):null;i.runTo(e,t,r,n)})},n.prototype.addState=function(e,t,r,n){return"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:n},this},t.exports=n},{}],71:[function(e,t,r){var n=e("./core");n.ParamValidator=n.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,n.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(n.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){this.validateType(t,r,["object"],"structure");for(var n,i=0;e.required&&i= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,n){this.validation.min&&void 0!==e.min&&t= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+n+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,i){if(null===e||void 0===e)return!1;for(var o=!1,s=0;s=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();i.util.computeSha256(o,function(r,n){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=n,t())})}else t()}}),e("SET_CONTENT_LENGTH","afterBuild",function(e){var t=n(e),r=i.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var o=i.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=o}catch(n){if(r&&r.isStreaming){if(r.requiresLength)throw n;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw n}throw n}}),e("SET_HTTP_HOST","afterBuild",function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("RESTART","restart",function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new i.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount=600?this.emit("sign",[this],function(e){e?t(e):s()}):s()}),e("HTTP_HEADERS","httpHeaders",function(e,t,r,n){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=n,r.httpResponse.headers=t,r.httpResponse.body=i.util.buffer.toBuffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var o=t.date||t.Date,s=r.request.service;if(o){var a=Date.parse(o);s.config.correctClockSkew&&s.isClockSkewed(a)&&s.applyClockOffset(a)}}),e("HTTP_DATA","httpData",function(e,t){if(e){if(i.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],n={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(i.util.buffer.toBuffer(e))}}),e("HTTP_DONE","httpDone",function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=i.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers}),e("FINALIZE_ERROR","retry",function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))}),e("INVALIDATE_CREDENTIALS","retry",function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}}),e("EXPIRED_SIGNATURE","retry",function(e){var t=e.error;t&&"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)}),e("CLOCK_SKEWED","retry",function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)}),e("REDIRECT","retry",function(e){ +e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new i.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,e.error.redirect=!0,e.error.retryable=!0)}),e("RETRY_CHECK","retry",function(e){e.error&&(e.error.redirect&&e.redirectCount=0?(e.error=null,setTimeout(t,r)):t()})}),CorePost:(new o).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",i.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",i.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",function(e){if("NetworkingError"===e.code&&"ENOTFOUND"===e.errno){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=i.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}})}),Logger:(new o).addNamedListeners(function(t){t("LOG_REQUEST","complete",function(t){function r(e,t){if(!t)return t;switch(e.type){case"structure":var n={};return i.util.each(t,function(t,i){Object.prototype.hasOwnProperty.call(e.members,t)?n[t]=r(e.members[t],i):n[t]=i}),n;case"list":var o=[];return i.util.arrayEach(t,function(t,n){o.push(r(e.member,t))}),o;case"map":var s={};return i.util.each(t,function(t,n){s[t]=r(e.value,n)}),s;default:return e.isSensitive?"***SensitiveInformation***":t}}var n=t.request,o=n.service.config.logger;if(o){var s=function(){var s=t.request.service.getSkewCorrectedDate().getTime(),a=(s-n.startTime.getTime())/1e3,u=!!o.isTTY,c=t.httpResponse.statusCode,l=n.params;if(n.service.api.operations&&n.service.api.operations[n.operation]&&n.service.api.operations[n.operation].input){l=r(n.service.api.operations[n.operation].input,n.params)}var h=e("util").inspect(l,!0,null),p="";return u&&(p+=""),p+="[AWS "+n.service.serviceIdentifier+" "+c,p+=" "+a.toString()+"s "+t.retryCount+" retries]",u&&(p+=""),p+=" "+i.util.string.lowerFirst(n.operation),p+="("+h+")",u&&(p+=""),p}();"function"==typeof o.log?o.log(s):"function"==typeof o.write&&o.write(s+"\n")}})}),Json:(new o).addNamedListeners(function(t){var r=e("./protocol/json");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),Rest:(new o).addNamedListeners(function(t){var r=e("./protocol/rest");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),RestJson:(new o).addNamedListeners(function(t){var r=e("./protocol/rest_json");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),RestXml:(new o).addNamedListeners(function(t){var r=e("./protocol/rest_xml");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),Query:(new o).addNamedListeners(function(t){var r=e("./protocol/query");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)})}},{"./core":39,"./discover_endpoint":47,"./protocol/json":74,"./protocol/query":75,"./protocol/rest":76,"./protocol/rest_json":77,"./protocol/rest_xml":78,"./sequential_executor":88,util:20}],88:[function(e,t,r){var n=e("./core");n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t,r){return this._events[e]?r?this._events[e].unshift(t):this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t,r){return t._isAsync=!0,this.on(e,t,r)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,i=-1,o=0;o-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){function o(i){if(i&&(a=n.util.error(a||new Error,i),s._haltHandlersOnError))return r.call(s,a);s.callListeners(e,t,r,a)}for(var s=this,a=i||null;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(s,t.concat([o]));try{u.apply(s,t)}catch(e){a=n.util.error(a||new Error,e)}if(a&&s._haltHandlersOnError)return void r.call(s,a)}r.call(s,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r,n){return this[e]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(e,t,r,n){return r._isAsync=!0,this.addNamedListener(e,t,r,n)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,t.exports=n.SequentialExecutor},{"./core":39}],78:[function(e,t,r){function n(e){var t=e.service.api.operations[e.operation].input,r=new a.XML.Builder,n=e.params,i=t.payload;if(i){var o=t.members[i];if(void 0===(n=n[i]))return;if("structure"===o.type){var s=o.name;e.httpRequest.body=r.toXML(n,o,s,!0)}else e.httpRequest.body=n}else e.httpRequest.body=r.toXML(n,t,t.name||t.shape||u.string.upperFirst(e.operation)+"Request")}function i(e){c.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&n(e)}function o(e){c.extractError(e);var t;try{t=(new a.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=u.error(new Error,{code:t.Code,message:t.Message}):e.error=u.error(new Error,{code:e.httpResponse.statusCode,message:null})}function s(e){c.extractData(e);var t,r=e.request,n=e.httpResponse.body,i=r.service.api.operations[r.operation],o=i.output,s=(i.hasEventOutput,o.payload);if(s){var l=o.members[s];l.isEventStream?(t=new a.XML.Parser,e.data[s]=u.createEventStream(2===a.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,l)):"structure"===l.type?(t=new a.XML.Parser,e.data[s]=t.parse(n.toString(),l)):"binary"===l.type||l.isStreaming?e.data[s]=n:e.data[s]=l.toType(n)}else if(n.length>0){t=new a.XML.Parser;var h=t.parse(n.toString(),o);u.update(e.data,h)}}var a=e("../core"),u=e("../util"),c=e("./rest");t.exports={buildRequest:i,extractError:o,extractData:s}},{"../core":39,"../util":118,"./rest":76}],77:[function(e,t,r){function n(e){var t=new h,r=e.service.api.operations[e.operation].input;if(r.payload){var n={},o=r.members[r.payload];if(void 0===(n=e.params[r.payload]))return;"structure"===o.type?(e.httpRequest.body=t.build(n,o),i(e)):(e.httpRequest.body=n,("binary"===o.type||o.isStreaming)&&i(e,!0))}else{var s=t.build(e.params,r);"{}"===s&&"GET"===e.httpRequest.method||(e.httpRequest.body=s),i(e)}}function i(e,t){var r=e.service.api.operations[e.operation];r.input;if(!e.httpRequest.headers["Content-Type"]){var n=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=n}}function o(e){c.buildRequest(e),["HEAD","DELETE"].indexOf(e.httpRequest.method)<0&&n(e)}function s(e){l.extractError(e)}function a(e){c.extractData(e);var t,r=e.request,n=r.service.api.operations[r.operation],i=r.service.api.operations[r.operation].output||{};n.hasEventOutput;if(i.payload){var o=i.members[i.payload],s=e.httpResponse.body;if(o.isEventStream)t=new p,e.data[payload]=u.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:s,t,o);else if("structure"===o.type||"list"===o.type){var t=new p;e.data[i.payload]=t.parse(s,o)}else"binary"===o.type||o.isStreaming?e.data[i.payload]=s:e.data[i.payload]=o.toType(s)}else{var a=e.data;l.extractData(e),e.data=u.merge(a,e.data)}}var u=e("../util"),c=e("./rest"),l=e("./json"),h=e("../json/builder"),p=e("../json/parser");t.exports={buildRequest:o,extractError:s,extractData:a}},{"../json/builder":63,"../json/parser":64,"../util":118,"./json":74,"./rest":76}],76:[function(e,t,r){function n(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}function i(e,t,r,n){var i=[e,t].join("/");i=i.replace(/\/+/g,"/");var o={},s=!1;if(l.each(r.members,function(e,t){var r=n[e];if(null!==r&&void 0!==r)if("uri"===t.location){var a=new RegExp("\\{"+t.name+"(\\+)?\\}");i=i.replace(a,function(e,t){return(t?l.uriEscapePath:l.uriEscape)(String(r))})}else"querystring"===t.location&&(s=!0,"list"===t.type?o[t.name]=r.map(function(e){return l.uriEscape(t.member.toWireFormat(e).toString())}):"map"===t.type?l.each(r,function(e,t){Array.isArray(t)?o[e]=t.map(function(e){return l.uriEscape(String(e))}):o[e]=l.uriEscape(String(t))}):o[t.name]=l.uriEscape(t.toWireFormat(r).toString()))}),s){i+=i.indexOf("?")>=0?"&":"?";var a=[];l.arrayEach(Object.keys(o).sort(),function(e){Array.isArray(o[e])||(o[e]=[o[e]]);for(var t=0;t-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function p(){o.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType}function f(){o.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType}function d(){o.apply(this,arguments),this.toType=function(e){var t=y.base64.decode(e);if(this.isSensitive&&y.isNode()&&"function"==typeof y.Buffer.alloc){var r=y.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=y.base64.encode}function m(){d.apply(this,arguments)}function v(){o.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}var g=e("./collection"),y=e("../util");o.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},o.types={structure:a,list:u,map:c,boolean:v,timestamp:l,float:p,integer:f,string:h,base64:m,binary:d},o.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},o.create=function(e,t,r){if(e.isShape)return e;var n=o.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var s=function(){n.constructor.call(this,e,t,r)};return s.prototype=n,new s}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(o.normalizedTypes[e.type]&&(e.type=o.normalizedTypes[e.type]),o.types[e.type])return new o.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+a)},o.shapes={StructureShape:a,ListShape:u,MapShape:c,StringShape:h,BooleanShape:v,Base64Shape:m},t.exports=o},{"../util":118,"./collection":66}],66:[function(e,t,r){function n(e,t,r,n){o(this,n(e),function(){return r(e,t)})}function i(e,t,r,i,o){i=i||String;var s=this;for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n.call(s,a,e[a],r,i),o&&o(a,e[a]))}var o=e("../util").memoizedProperty;t.exports=i},{"../util":118}],74:[function(e,t,r){function n(e){var t=e.httpRequest,r=e.service.api,n=r.targetPrefix+"."+r.operations[e.operation].name,i=r.jsonVersion||"1.0",o=r.operations[e.operation].input,s=new a;1===i&&(i="1.0"),t.body=s.build(e.params||{},o),t.headers["Content-Type"]="application/x-amz-json-"+i,t.headers["X-Amz-Target"]=n,c(e)}function i(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var n=JSON.parse(r.body.toString());(n.__type||n.code)&&(t.code=(n.__type||n.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=n.message||n.Message||null}catch(n){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=s.error(new Error,t)}function o(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation],n=r.output||{},i=new u;e.data=i.parse(t,n)}}var s=e("../util"),a=e("../json/builder"),u=e("../json/parser"),c=e("./helpers").populateHostPrefix;t.exports={buildRequest:n,extractError:i,extractData:o}},{"../json/builder":63,"../json/parser":64,"../util":118,"./helpers":73}],73:[function(e,t,r){function n(e){if(!e.service.config.hostPrefixEnabled)return e;var t=e.service.api.operations[e.operation];if(i(e))return e;if(t.endpoint&&t.endpoint.hostPrefix){var r=t.endpoint.hostPrefix,n=o(r,e.params,t.input);s(e.httpRequest.endpoint,n),a(e.httpRequest.endpoint.hostname)}return e}function i(e){var t=e.service.api,r=t.operations[e.operation],n=t.endpointOperation&&t.endpointOperation===u.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===n}function o(e,t,r){return u.each(r.members,function(r,n){if(!0===n.hostLabel){if("string"!=typeof t[r]||""===t[r])throw u.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"});var i=new RegExp("\\{"+r+"\\}","g");e=e.replace(i,t[r])}}),e}function s(e,t){e.host&&(e.host=t+e.host),e.hostname&&(e.hostname=t+e.hostname)}function a(e){var t=e.split("."),r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;u.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63)throw u.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw c.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})})}var u=e("../util"),c=e("../core");t.exports={populateHostPrefix:n}},{"../core":39,"../util":118}],64:[function(e,t,r){function n(){}function i(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return o(e,t);case"map":return a(e,t);case"list":return s(e,t);default:return u(e,t)}}function o(e,t){if(null!=e){var r={},n=t.members;return c.each(n,function(t,n){var o=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,o)){var s=e[o],a=i(s,n);void 0!==a&&(r[t]=a)}}),r}}function s(e,t){if(null!=e){var r=[];return c.arrayEach(e,function(e){var n=i(e,t.member);void 0===n?r.push(null):r.push(n)}),r}}function a(e,t){if(null!=e){var r={};return c.each(e,function(e,n){var o=i(n,t.value);r[e]=void 0===o?null:o}),r}}function u(e,t){return t.toType(e)}var c=e("../util");n.prototype.parse=function(e,t){return i(JSON.parse(e),t)},t.exports=n},{"../util":118}],63:[function(e,t,r){function n(){}function i(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return o(e,t);case"map":return a(e,t);case"list":return s(e,t);default:return u(e,t)}}function o(e,t){var r={};return c.each(e,function(e,n){var o=t.members[e];if(o){if("body"!==o.location)return;var s=o.isLocationName?o.name:e,a=i(n,o);void 0!==a&&(r[s]=a)}}),r}function s(e,t){var r=[];return c.arrayEach(e,function(e){var n=i(e,t.member);void 0!==n&&r.push(n)}),r}function a(e,t){var r={};return c.each(e,function(e,n){var o=i(n,t.value);void 0!==o&&(r[e]=o)}),r}function u(e,t){return t.toWireFormat(e)}var c=e("../util");n.prototype.build=function(e,t){return JSON.stringify(i(e,t))},t.exports=n},{"../util":118}],47:[function(e,t,r){(function(r){function n(e){var t=e.service,r=t.api||{},n={};return t.config.region&&(n.region=t.config.region),r.serviceId&&(n.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(n.accessKeyId=t.config.credentials.accessKeyId),n}function i(e,t,r){r&&void 0!==t&&null!==t&&"structure"===r.type&&r.required&&r.required.length>0&&m.arrayEach(r.required,function(n){var o=r.members[n];if(!0===o.endpointDiscoveryId){var s=o.isLocationName?o.name:n;e[s]=String(t[n])}else i(e,t[n],o)})}function o(e,t){var r={};return i(r,e.params,t),r}function s(e){var t=e.service,r=t.api,i=r.operations?r.operations[e.operation]:void 0,s=i?i.input:void 0,a=o(e,s),c=n(e);Object.keys(a).length>0&&(c=m.update(c,a),i&&(c.operation=i.name));var l=d.endpointCache.get(c);if(!l||1!==l.length||""!==l[0].Address)if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address);else{var h=t.makeRequest(r.endpointOperation,{Operation:i.name,Identifiers:a});u(h),h.removeListener("validate",d.EventListeners.Core.VALIDATE_PARAMETERS),h.removeListener("retry",d.EventListeners.Core.RETRY_CHECK),d.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}]),h.send(function(e,t){t&&t.Endpoints?d.endpointCache.put(c,t.Endpoints):e&&d.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}])})}}function a(e,t){var r=e.service,i=r.api,s=i.operations?i.operations[e.operation]:void 0,a=s?s.input:void 0,c=o(e,a),l=n(e);Object.keys(c).length>0&&(l=m.update(l,c),s&&(l.operation=s.name));var h=d.EndpointCache.getKeyString(l),p=d.endpointCache.get(h);if(p&&1===p.length&&""===p[0].Address)return g[h]||(g[h]=[]),void g[h].push({request:e,callback:t});if(p&&p.length>0)e.httpRequest.updateEndpoint(p[0].Address),t();else{var f=r.makeRequest(i.endpointOperation,{Operation:s.name,Identifiers:c});f.removeListener("validate",d.EventListeners.Core.VALIDATE_PARAMETERS),u(f),d.endpointCache.put(h,[{Address:"",CachePeriodInMinutes:60}]),f.send(function(r,n){if(r){if(e.response.error=m.error(r,{retryable:!1}),d.endpointCache.remove(l),g[h]){var i=g[h];m.arrayEach(i,function(e){e.request.response.error=m.error(r,{retryable:!1}),e.callback()}),delete g[h]}}else if(n&&(d.endpointCache.put(h,n.Endpoints),e.httpRequest.updateEndpoint(n.Endpoints[0].Address),g[h])){var i=g[h];m.arrayEach(i,function(e){e.request.httpRequest.updateEndpoint(n.Endpoints[0].Address),e.callback()}),delete g[h]}t()})}}function u(e){var t=e.service.api,r=t.apiVersion;r&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=r)}function c(e){var t=e.error,r=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===r.statusCode)){var i=e.request,s=i.service.api.operations||{},a=s[i.operation]?s[i.operation].input:void 0,u=o(i,a),c=n(i);Object.keys(u).length>0&&(c=m.update(c,u),s[i.operation]&&(c.operation=s[i.operation].name)),d.endpointCache.remove(c)}}function l(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw m.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=d.config[e.serviceIdentifier]||{};return Boolean(d.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function h(e){return["false","0"].indexOf(e)>=0}function p(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!m.isBrowser()){for(var n=0;n=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r=0,n=0,i=null;for(t=0;t>>8^t[255&(r^e.readUInt8(n))]}return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=o.buffer.toBuffer(t)),o.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return o.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return o.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var i=o.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=o.buffer.toBuffer(t));var s=o.arraySliceFn(t),a=o.Buffer.isBuffer(t);if(o.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(a=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!a)t.on("data",function(e){i.update(e)}),t.on("error",function(e){n(e)}),t.on("end",function(){n(null,i.digest(r))});else{if(!n||!s||a||"undefined"==typeof FileReader){o.isBrowser()&&"object"==typeof t&&!a&&(t=new o.Buffer(new Uint8Array(t)));var u=i.update(t).digest(r);return n&&n(null,u),u}var c=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)return void n(null,i.digest(r));var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(s.call(t,c,e))},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var n=0;n=0?(a++,setTimeout(c,i+(e.retryAfter||0))):r(e)},c=function(){var t="";n.handleRequest(e,s,function(e){e.on("data",function(e){t+=e.toString()}),e.on("end",function(){var n=e.statusCode;if(n<300)r(null,t);else{var i=1e3*parseInt(e.headers["retry-after"],10)||0,s=o.error(new Error,{statusCode:n,retryable:n>=500||429===n});i&&s.retryable&&(s.retryAfter=i),u(s)}})},u)};i.util.defer(c)},uuid:{v4:function(){return e("uuid").v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"==typeof r&&"function"==typeof r.nextTick?r.nextTick(e):"function"==typeof n?n(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){var n={},i={};if(r.env[o.configOptInEnv])var i=e.loadFrom({isConfig:!0,filename:r.env[o.sharedConfigFileEnv]});for(var s=e.loadFrom({filename:t||r.env[o.configOptInEnv]&&r.env[o.sharedCredentialsFileEnv]}),a=0,u=Object.keys(i);a=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw o.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};t.exports=o}).call(this,e("_process"),e("timers").setImmediate)},{"../apis/metadata.json":26,"./core":39,_process:8,fs:2,timers:16,uuid:21}],37:[function(e,t,r){var n=e("./core");e("./credentials"),e("./credentials/credential_provider_chain");var i;n.Config=n.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),n.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function(e){function t(t){e(t,t?null:i.credentials)}function r(e,t){return new n.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}var i=this;i.credentials?"function"==typeof i.credentials.get?function(){i.credentials.get(function(e){e&&(e=r("Could not load credentials from "+i.credentials.constructor.name,e)),t(e)})}():function(){var e=null;i.credentials.accessKeyId&&i.credentials.secretAccessKey||(e=r("Missing credentials")),t(e)}():i.credentialProvider?i.credentialProvider.resolve(function(e,n){e&&(e=r("Could not load credentials from any providers",e)),i.credentials=n,t(e)}):t(r("No credentials to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),n.util.each.call(this,e,function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||n.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function(e){this.clear();var t=JSON.parse(n.util.readFileSync(e)),r=new n.FileSystemCredentials(e),i=new n.CredentialProviderChain;return i.providers.unshift(r),i.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function(){n.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=n.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy"},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&(e=n.util.copy(e),e.credentials=new n.Credentials(e)),e},setPromisesDependency:function(e){i=e,null===e&&"function"==typeof Promise&&(i=Promise);var t=[n.Request,n.Credentials,n.CredentialProviderChain];n.S3&&(t.push(n.S3),n.S3.ManagedUpload&&t.push(n.S3.ManagedUpload)),n.util.addPromises(t,i)},getPromisesDependency:function(){return i}}),n.config=new n.Config},{"./core":39,"./credentials":40,"./credentials/credential_provider_chain":43}],43:[function(e,t,r){var n=e("../core");n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){function t(e,s){if(!e&&s||i===o.length)return n.util.arrayEach(r.resolveCallbacks,function(t){t(e,s)}),void(r.resolveCallbacks.length=0);var a=o[i++];s="function"==typeof a?a.call():a,s.get?s.get(function(e){t(e,e?null:s)}):t(null,s)}var r=this;if(0===r.providers.length)return e(new Error("No providers")),r;if(1===r.resolveCallbacks.push(e)){var i=0,o=r.providers.slice(0);t()}return r}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},{"../core":39}],40:[function(e,t,r){var n=e("./core");n.Credentials=n.util.inherit({constructor:function(){if(n.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=n.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load(function(e){n.util.arrayEach(r.refreshCallbacks,function(r){t?r(e):n.util.defer(function(){r(e)})}),r.refreshCallbacks.length=0})},load:function(e){e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},{"./core":39}],27:[function(e,t,r){function n(e,t){if(!n.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return n.services[e][t]}n.services={},t.exports=n},{}],26:[function(e,t,r){t.exports={acm:{name:"ACM",cors:!0},apigateway:{name:"APIGateway",cors:!0},applicationautoscaling:{prefix:"application-autoscaling",name:"ApplicationAutoScaling",cors:!0},appstream:{name:"AppStream"},autoscaling:{name:"AutoScaling",cors:!0},batch:{name:"Batch"},budgets:{name:"Budgets"},clouddirectory:{name:"CloudDirectory",versions:["2016-05-10*"]},cloudformation:{name:"CloudFormation",cors:!0},cloudfront:{name:"CloudFront",versions:["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*"],cors:!0},cloudhsm:{name:"CloudHSM",cors:!0},cloudsearch:{name:"CloudSearch"},cloudsearchdomain:{name:"CloudSearchDomain"},cloudtrail:{name:"CloudTrail",cors:!0},cloudwatch:{prefix:"monitoring",name:"CloudWatch",cors:!0},cloudwatchevents:{prefix:"events",name:"CloudWatchEvents",versions:["2014-02-03*"],cors:!0},cloudwatchlogs:{prefix:"logs",name:"CloudWatchLogs",cors:!0},codebuild:{name:"CodeBuild",cors:!0},codecommit:{name:"CodeCommit",cors:!0},codedeploy:{name:"CodeDeploy",cors:!0},codepipeline:{name:"CodePipeline",cors:!0},cognitoidentity:{prefix:"cognito-identity",name:"CognitoIdentity",cors:!0},cognitoidentityserviceprovider:{prefix:"cognito-idp",name:"CognitoIdentityServiceProvider",cors:!0},cognitosync:{prefix:"cognito-sync",name:"CognitoSync",cors:!0},configservice:{prefix:"config",name:"ConfigService",cors:!0},cur:{name:"CUR",cors:!0},datapipeline:{name:"DataPipeline"},devicefarm:{name:"DeviceFarm",cors:!0},directconnect:{name:"DirectConnect",cors:!0},directoryservice:{prefix:"ds",name:"DirectoryService"},discovery:{name:"Discovery"},dms:{name:"DMS"},dynamodb:{name:"DynamoDB",cors:!0},dynamodbstreams:{prefix:"streams.dynamodb",name:"DynamoDBStreams",cors:!0},ec2:{name:"EC2",versions:["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],cors:!0},ecr:{name:"ECR",cors:!0},ecs:{name:"ECS",cors:!0},efs:{prefix:"elasticfilesystem",name:"EFS",cors:!0},elasticache:{name:"ElastiCache",versions:["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],cors:!0},elasticbeanstalk:{name:"ElasticBeanstalk",cors:!0},elb:{prefix:"elasticloadbalancing",name:"ELB",cors:!0},elbv2:{prefix:"elasticloadbalancingv2",name:"ELBv2",cors:!0},emr:{prefix:"elasticmapreduce",name:"EMR",cors:!0},es:{name:"ES"},elastictranscoder:{name:"ElasticTranscoder",cors:!0},firehose:{name:"Firehose",cors:!0},gamelift:{name:"GameLift",cors:!0},glacier:{name:"Glacier"},health:{name:"Health"},iam:{name:"IAM",cors:!0},importexport:{name:"ImportExport"},inspector:{name:"Inspector",versions:["2015-08-18*"],cors:!0},iot:{name:"Iot",cors:!0},iotdata:{prefix:"iot-data",name:"IotData",cors:!0},kinesis:{name:"Kinesis",cors:!0},kinesisanalytics:{name:"KinesisAnalytics"},kms:{name:"KMS",cors:!0},lambda:{name:"Lambda",cors:!0},lexruntime:{prefix:"runtime.lex",name:"LexRuntime",cors:!0},lightsail:{name:"Lightsail"},machinelearning:{name:"MachineLearning",cors:!0},marketplacecommerceanalytics:{name:"MarketplaceCommerceAnalytics",cors:!0},marketplacemetering:{prefix:"meteringmarketplace",name:"MarketplaceMetering"},mturk:{prefix:"mturk-requester",name:"MTurk",cors:!0},mobileanalytics:{name:"MobileAnalytics",cors:!0},opsworks:{name:"OpsWorks",cors:!0},opsworkscm:{name:"OpsWorksCM"},organizations:{name:"Organizations"},pinpoint:{name:"Pinpoint"},polly:{name:"Polly",cors:!0},rds:{name:"RDS",versions:["2014-09-01*"],cors:!0},redshift:{name:"Redshift",cors:!0},rekognition:{name:"Rekognition",cors:!0},resourcegroupstaggingapi:{name:"ResourceGroupsTaggingAPI"},route53:{name:"Route53",cors:!0},route53domains:{name:"Route53Domains",cors:!0},s3:{name:"S3",dualstackAvailable:!0,cors:!0},s3control:{name:"S3Control",dualstackAvailable:!0,xmlNoDefaultLists:!0},servicecatalog:{name:"ServiceCatalog",cors:!0},ses:{prefix:"email",name:"SES",cors:!0},shield:{name:"Shield"},simpledb:{prefix:"sdb",name:"SimpleDB"},sms:{name:"SMS"},snowball:{name:"Snowball"},sns:{name:"SNS",cors:!0},sqs:{name:"SQS",cors:!0},ssm:{name:"SSM",cors:!0},storagegateway:{name:"StorageGateway",cors:!0},stepfunctions:{prefix:"states",name:"StepFunctions"},sts:{name:"STS",cors:!0},support:{name:"Support"},swf:{name:"SWF"},xray:{name:"XRay",cors:!0},waf:{name:"WAF",cors:!0},wafregional:{prefix:"waf-regional",name:"WAFRegional"},workdocs:{name:"WorkDocs",cors:!0},workspaces:{name:"WorkSpaces"},codestar:{name:"CodeStar"},lexmodelbuildingservice:{prefix:"lex-models",name:"LexModelBuildingService",cors:!0},marketplaceentitlementservice:{prefix:"entitlement.marketplace",name:"MarketplaceEntitlementService"},athena:{name:"Athena"},greengrass:{name:"Greengrass"},dax:{name:"DAX"},migrationhub:{prefix:"AWSMigrationHub",name:"MigrationHub"},cloudhsmv2:{name:"CloudHSMV2"},glue:{name:"Glue"},mobile:{name:"Mobile"},pricing:{name:"Pricing",cors:!0},costexplorer:{prefix:"ce",name:"CostExplorer",cors:!0},mediaconvert:{name:"MediaConvert"},medialive:{name:"MediaLive"},mediapackage:{name:"MediaPackage"},mediastore:{name:"MediaStore"},mediastoredata:{prefix:"mediastore-data",name:"MediaStoreData",cors:!0},appsync:{name:"AppSync"},guardduty:{name:"GuardDuty"},mq:{name:"MQ"},comprehend:{name:"Comprehend",cors:!0},iotjobsdataplane:{prefix:"iot-jobs-data",name:"IoTJobsDataPlane"},kinesisvideoarchivedmedia:{prefix:"kinesis-video-archived-media",name:"KinesisVideoArchivedMedia",cors:!0},kinesisvideomedia:{prefix:"kinesis-video-media",name:"KinesisVideoMedia",cors:!0},kinesisvideo:{name:"KinesisVideo",cors:!0},sagemakerruntime:{prefix:"runtime.sagemaker",name:"SageMakerRuntime"},sagemaker:{name:"SageMaker"},translate:{name:"Translate",cors:!0},resourcegroups:{prefix:"resource-groups",name:"ResourceGroups",cors:!0},alexaforbusiness:{name:"AlexaForBusiness"},cloud9:{name:"Cloud9"},serverlessapplicationrepository:{prefix:"serverlessrepo",name:"ServerlessApplicationRepository"},servicediscovery:{name:"ServiceDiscovery"},workmail:{name:"WorkMail"},autoscalingplans:{prefix:"autoscaling-plans",name:"AutoScalingPlans"},transcribeservice:{prefix:"transcribe",name:"TranscribeService"},connect:{name:"Connect",cors:!0},acmpca:{prefix:"acm-pca",name:"ACMPCA"},fms:{name:"FMS"},secretsmanager:{name:"SecretsManager",cors:!0},iotanalytics:{name:"IoTAnalytics",cors:!0},iot1clickdevicesservice:{prefix:"iot1click-devices",name:"IoT1ClickDevicesService"},iot1clickprojects:{prefix:"iot1click-projects",name:"IoT1ClickProjects"},pi:{name:"PI"},neptune:{name:"Neptune"},mediatailor:{name:"MediaTailor"},eks:{name:"EKS"},macie:{name:"Macie"},dlm:{name:"DLM"},signer:{name:"Signer"},chime:{name:"Chime"},pinpointemail:{prefix:"pinpoint-email",name:"PinpointEmail"},ram:{name:"RAM"},route53resolver:{name:"Route53Resolver"},pinpointsmsvoice:{prefix:"sms-voice",name:"PinpointSMSVoice"},quicksight:{name:"QuickSight"},rdsdataservice:{prefix:"rds-data",name:"RDSDataService"},amplify:{name:"Amplify"},datasync:{name:"DataSync"},robomaker:{name:"RoboMaker"},transfer:{name:"Transfer"},globalaccelerator:{name:"GlobalAccelerator"},comprehendmedical:{name:"ComprehendMedical",cors:!0},kinesisanalyticsv2:{name:"KinesisAnalyticsV2"},mediaconnect:{name:"MediaConnect"},fsx:{name:"FSx"},securityhub:{name:"SecurityHub"},appmesh:{name:"AppMesh",versions:["2018-10-01*"]},licensemanager:{prefix:"license-manager",name:"LicenseManager"},kafka:{name:"Kafka"},apigatewaymanagementapi:{name:"ApiGatewayManagementApi"},apigatewayv2:{name:"ApiGatewayV2"},docdb:{name:"DocDB"},backup:{name:"Backup"},worklink:{name:"WorkLink"},textract:{name:"Textract"},managedblockchain:{name:"ManagedBlockchain"},mediapackagevod:{prefix:"mediapackage-vod",name:"MediaPackageVod"},groundstation:{name:"GroundStation"},iotthingsgraph:{name:"IoTThingsGraph"},iotevents:{name:"IoTEvents"},ioteventsdata:{prefix:"iotevents-data",name:"IoTEventsData"},personalize:{name:"Personalize",cors:!0},personalizeevents:{prefix:"personalize-events",name:"PersonalizeEvents",cors:!0},personalizeruntime:{prefix:"personalize-runtime",name:"PersonalizeRuntime",cors:!0},applicationinsights:{prefix:"application-insights",name:"ApplicationInsights"},servicequotas:{prefix:"service-quotas",name:"ServiceQuotas"},ec2instanceconnect:{prefix:"ec2-instance-connect",name:"EC2InstanceConnect"},eventbridge:{name:"EventBridge"},lakeformation:{name:"LakeFormation"},forecastservice:{prefix:"forecast",name:"ForecastService",cors:!0},forecastqueryservice:{prefix:"forecastquery",name:"ForecastQueryService",cors:!0},qldb:{name:"QLDB"},qldbsession:{prefix:"qldb-session",name:"QLDBSession"},workmailmessageflow:{name:"WorkMailMessageFlow"},codestarnotifications:{prefix:"codestar-notifications",name:"CodeStarNotifications"},savingsplans:{name:"SavingsPlans"},sso:{name:"SSO"},ssooidc:{prefix:"sso-oidc",name:"SSOOIDC"},marketplacecatalog:{prefix:"marketplace-catalog",name:"MarketplaceCatalog"},dataexchange:{name:"DataExchange"},sesv2:{name:"SESV2"},migrationhubconfig:{prefix:"migrationhub-config",name:"MigrationHubConfig"},connectparticipant:{name:"ConnectParticipant"},appconfig:{name:"AppConfig"},iotsecuretunneling:{name:"IoTSecureTunneling"},wafv2:{name:"WAFV2"},elasticinference:{prefix:"elastic-inference",name:"ElasticInference"},imagebuilder:{name:"Imagebuilder"},schemas:{name:"Schemas"},accessanalyzer:{name:"AccessAnalyzer"},codegurureviewer:{prefix:"codeguru-reviewer",name:"CodeGuruReviewer"},codeguruprofiler:{name:"CodeGuruProfiler"},computeoptimizer:{prefix:"compute-optimizer",name:"ComputeOptimizer"},frauddetector:{name:"FraudDetector"},kendra:{name:"Kendra"},networkmanager:{name:"NetworkManager"},outposts:{name:"Outposts"},augmentedairuntime:{prefix:"sagemaker-a2i-runtime",name:"AugmentedAIRuntime"},ebs:{name:"EBS"},kinesisvideosignalingchannels:{prefix:"kinesis-video-signaling",name:"KinesisVideoSignalingChannels",cors:!0},detective:{name:"Detective"},codestarconnections:{prefix:"codestar-connections",name:"CodeStarconnections"},synthetics:{name:"Synthetics"},iotsitewise:{name:"IoTSiteWise"},macie2:{name:"Macie2"},codeartifact:{name:"CodeArtifact"},honeycode:{name:"Honeycode"}}},{}],21:[function(e,t,r){var n=e("./v1"),i=e("./v4"),o=i;o.v1=n,o.v4=i,t.exports=o},{"./v1":24,"./v4":25}],25:[function(e,t,r){function n(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||i)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[n+a]=s[a];return t||o(s)}var i=e("./lib/rng"),o=e("./lib/bytesToUuid");t.exports=n},{"./lib/bytesToUuid":22,"./lib/rng":23}],24:[function(e,t,r){function n(e,t,r){var n=t&&r||0,l=t||[];e=e||{};var h=e.node||i,p=void 0!==e.clockseq?e.clockseq:o;if(null==h||null==p){var f=s();null==h&&(h=i=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=o=16383&(f[6]<<8|f[7]))}var d=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,v=d-u+(m-c)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||d>u)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=d,c=m,o=p,d+=122192928e5;var g=(1e4*(268435455&d)+m)%4294967296;l[n++]=g>>>24&255,l[n++]=g>>>16&255,l[n++]=g>>>8&255,l[n++]=255&g;var y=d/4294967296*1e4&268435455;l[n++]=y>>>8&255,l[n++]=255&y,l[n++]=y>>>24&15|16,l[n++]=y>>>16&255,l[n++]=p>>>8|128,l[n++]=255&p;for(var b=0;b<6;++b)l[n+b]=h[b];return t||a(l)}var i,o,s=e("./lib/rng"),a=e("./lib/bytesToUuid"),u=0,c=0;t.exports=n},{"./lib/bytesToUuid":22,"./lib/rng":23}],23:[function(e,t,r){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);t.exports=function(){return n(i),i}}else{var o=new Array(16);t.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},{}],22:[function(e,t,r){function n(e,t){var r=t||0,n=i;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}for(var i=[],o=0;o<256;++o)i[o]=(o+256).toString(16).substr(1);t.exports=n},{}],20:[function(e,t,r){(function(t,n){function i(e,t){var n={seen:[],stylize:s};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(t)?n.showHidden=t:t&&r._extend(n,t),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),u(n,e,n.depth)}function o(e,t){var r=i.styles[t];return r?"["+i.colors[r][0]+"m"+e+"["+i.colors[r][1]+"m":e}function s(e,t){return e}function a(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,n){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return b(i)||(i=u(e,i,n)),i}var o=c(e,t);if(o)return o;var s=Object.keys(t),m=a(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),x(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return l(t);if(0===s.length){if(R(t)){var v=t.name?": "+t.name:"" +;return e.stylize("[Function"+v+"]","special")}if(_(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(C(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return l(t)}var g="",y=!1,w=["{","}"];if(d(t)&&(y=!0,w=["[","]"]),R(t)){g=" [Function"+(t.name?": "+t.name:"")+"]"}if(_(t)&&(g=" "+RegExp.prototype.toString.call(t)),C(t)&&(g=" "+Date.prototype.toUTCString.call(t)),x(t)&&(g=" "+l(t)),0===s.length&&(!y||0==t.length))return w[0]+g+w[1];if(n<0)return _(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var E;return E=y?h(e,t,n,m,s):s.map(function(r){return p(e,t,n,m,r,y)}),e.seen.pop(),f(E,g,w)}function c(e,t){if(E(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i){for(var o=[],s=0,a=t.length;s-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),E(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function f(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function d(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function g(e){return null==e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function E(e){return void 0===e}function _(e){return S(e)&&"[object RegExp]"===T(e)}function S(e){return"object"==typeof e&&null!==e}function C(e){return S(e)&&"[object Date]"===T(e)}function x(e){return S(e)&&("[object Error]"===T(e)||e instanceof Error)}function R(e){return"function"==typeof e}function A(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function T(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}function I(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),N[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var P=/%[sdj%]/g;r.format=function(e){if(!b(e)){for(var t=[],r=0;r=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),a=n[r];r=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r.setImmediate="function"==typeof t?t:function(e){var t=c++,n=!(arguments.length<2)&&a.call(arguments,1);return u[t]=!0,o(function(){u[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))}),t},r.clearImmediate="function"==typeof n?n:function(e){delete u[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":8,timers:16}],8:[function(e,t,r){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(h===setTimeout)return setTimeout(e,0);if((h===n||!h)&&setTimeout)return h=setTimeout,setTimeout(e,0);try{return h(e,0)}catch(t){try{return h.call(null,e,0)}catch(t){return h.call(this,e,0)}}}function s(e){if(p===clearTimeout)return clearTimeout(e);if((p===i||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){v&&d&&(v=!1,d.length?m=d.concat(m):g=-1,m.length&&u())}function u(){if(!v){var e=o(a);v=!0;for(var t=m.length;t;){for(d=m,m=[];++g1)for(var r=1;r="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e}function a(e){return e>="0"&&e<="9"||"-"===e}function u(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e}function c(){}function l(){}function h(e){this.runtime=e}function p(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[g]}]},avg:{_func:this._functionAvg,_signature:[{types:[S]}]},ceil:{_func:this._functionCeil,_signature:[{types:[g]}]},contains:{_func:this._functionContains,_signature:[{types:[b,w]},{types:[y]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[b]},{types:[b]}]},floor:{_func:this._functionFloor,_signature:[{types:[g]}]},length:{_func:this._functionLength,_signature:[{types:[b,w,E]}]},map:{_func:this._functionMap,_signature:[{types:[_]},{types:[w]}]},max:{_func:this._functionMax,_signature:[{types:[S,C]}]},merge:{_func:this._functionMerge,_signature:[{types:[E],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[w]},{types:[_]}]},sum:{_func:this._functionSum,_signature:[{types:[S]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[b]},{types:[b]}]},min:{_func:this._functionMin,_signature:[{types:[S,C]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[w]},{types:[_]}]},type:{_func:this._functionType,_signature:[{types:[y]}]},keys:{_func:this._functionKeys,_signature:[{types:[E]}]},values:{_func:this._functionValues,_signature:[{types:[E]}]},sort:{_func:this._functionSort,_signature:[{types:[C,S]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[w]},{types:[_]}]},join:{_func:this._functionJoin,_signature:[{types:[b]},{types:[C]}]},reverse:{_func:this._functionReverse,_signature:[{types:[b,w]}]},to_array:{_func:this._functionToArray,_signature:[{types:[y]}]},to_string:{_func:this._functionToString,_signature:[{types:[y]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[y]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[y],variadic:!0}]}}}function f(e){return(new l).parse(e)}function d(e){return(new c).tokenize(e)}function m(e,t){var r=new l,n=new p,i=new h(n);n._interpreter=i;var o=r.parse(t);return i.search(o,e)}var v;v="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var g=0,y=1,b=2,w=3,E=4,_=6,S=8,C=9,x={".":"Dot","*":"Star",",":"Comma",":":"Colon","{":"Lbrace","}":"Rbrace","]":"Rbracket","(":"Lparen",")":"Rparen","@":"Current"},R={"<":!0,">":!0,"=":!0,"!":!0},A={" ":!0,"\t":!0,"\n":!0};c.prototype={tokenize:function(e){var t=[];this._current=0;for(var r,n,i;this._current"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,n=e.length;"`"!==e[this._current]&&this._current=0)return!0;if(r.indexOf(e)>=0)return!0;if(!(n.indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var T={};T.EOF=0,T.UnquotedIdentifier=0,T.QuotedIdentifier=0,T.Rbracket=0,T.Rparen=0,T.Comma=0,T.Rbrace=0,T.Number=0,T.Current=0,T.Expref=0,T.Pipe=1,T.Or=2,T.And=3,T.EQ=5,T.GT=5,T.LT=5,T.GTE=5,T.LTE=5,T.NE=5,T.Flatten=9,T.Star=20,T.Filter=21,T.Dot=40,T.Not=45,T.Lbrace=50,T.Lbracket=55,T.Lparen=60,l.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw n.name="ParserError",n}return t},_loadTokens:function(e){var t=new c,r=t.tokenize(e);r.push({type:"EOF",value:"",start:e.length}),this.tokens=r},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),n=this._lookahead(0);e=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(T[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw n.name="ParserError",n}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,n,i=[],o=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),o.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r=this.expression(0),n={type:"KeyValuePair",name:t,value:r},i.push(n),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:i}}},h.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,s){var a,u,c,l,h,p,f,d,m;switch(e.type){case"Field":return null===s?null:r(s)?(p=s[e.name],void 0===p?null:p):null;case"Subexpression":for(c=this.visit(e.children[0],s),m=1;m0)for(m=b;mw;m+=E)c.push(s[m]);return c;case"Projection":var _=this.visit(e.children[0],s);if(!t(_))return null;for(d=[],m=0;m<_.length;m++)null!==(u=this.visit(e.children[1],_[m]))&&d.push(u);return d;case"ValueProjection":if(_=this.visit(e.children[0],s),!r(_))return null;d=[];var S=o(_);for(m=0;mh;break;case"GTE":c=l>=h;break;case"LT":c=l=e&&(t=r<0?e-1:e),t}},p.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n;if(r[r.length-1].variadic){if(t.length=0;n--)r+=t[n];return r}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],i=e[1],o=0;o0){if(this._getTypeName(e[0][0])===g)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n0){if(this._getTypeName(e[0][0])===g)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;na?1:ss&&(s=r,t=i[a]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],i=e[0],o=this.createKeyFunction(n,[g,b]),s=1/0,a=0;a=this.HEADERS_RECEIVED&&!h&&(u.statusCode=l.status,u.headers=s.parseHeaders(l.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,l.statusText),h=!0),this.readyState===this.DONE&&s.finishRequest(l,u)},!1),l.upload.addEventListener("progress",function(e){u.emit("sendProgress",e)}),l.addEventListener("progress",function(e){u.emit("receiveProgress",e)},!1),l.addEventListener("timeout",function(){o(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),l.addEventListener("error",function(){o(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),l.addEventListener("abort",function(){o(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),r(u),l.open(e.method,c,!1!==t.xhrAsync),n.util.each(e.headers,function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&l.setRequestHeader(e,t)}),t.timeout&&!1!==t.xhrAsync&&(l.timeout=t.timeout),t.xhrWithCredentials&&(l.withCredentials=!0);try{l.responseType="arraybuffer"}catch(e){}try{e.body?l.send(e.body):l.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;l.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),function(e){var r=e.split(":",1)[0],n=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=n)}),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var i=e.response;r=new n.util.Buffer(i.byteLength);for(var o=new Uint8Array(i),s=0;s-1&&0===++e[t];t--);}var o=e("../core").util,s=o.buffer.toBuffer;n.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,o=Math.abs(Math.round(e));r>-1&&o>0;r--,o/=256)t[r]=o;return e<0&&i(t),new n(t)},n.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&i(e),parseInt(e.toString("hex"),16)*(t?-1:1)},n.prototype.toString=function(){return String(this.valueOf())},t.exports={Int64:n}},{"../core":39}],55:[function(e,t,r){function n(e){for(var t=[],r=0;ra)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},n.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(r.setUint8(this.bufferLength++,128),n%64>=56){for(var o=this.bufferLength;o<64;o++)r.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<56;o++)r.setUint8(o,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}for(var s=new i(32),o=0;o<8;o++)s[4*o]=this.state[o]>>>24&255,s[4*o+1]=this.state[o]>>>16&255,s[4*o+2]=this.state[o]>>>8&255,s[4*o+3]=this.state[o]>>>0&255;return e?s.toString(e):s},n.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,r=e.state,n=r[0],i=r[1],o=r[2],a=r[3],u=r[4],c=r[5],l=r[6],h=r[7],p=0;p<64;p++){if(p<16)this.temp[p]=(255&t[4*p])<<24|(255&t[4*p+1])<<16|(255&t[4*p+2])<<8|255&t[4*p+3];else{var f=this.temp[p-2],d=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[p-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[p]=(d+this.temp[p-7]|0)+(m+this.temp[p-16]|0)}var v=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&c^~u&l)|0)+(h+(s[p]+this.temp[p]|0)|0)|0,g=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i^n&o^i&o)|0;h=l,l=c,c=u,u=a+v|0,a=o,o=i,i=n,n=v+g|0}r[0]+=n,r[1]+=i,r[2]+=o,r[3]+=a,r[4]+=u,r[5]+=c,r[6]+=l,r[7]+=h}},{"./browserHashUtils":30,"buffer/":3}],33:[function(e,t,r){function n(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}var i=e("buffer/").Buffer,o=e("./browserHashUtils");new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);t.exports=n,n.BLOCK_SIZE=64,n.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(o.isEmptyData(e))return this;e=o.convertToBuffer(e);var t=e.length;this.totalLength+=8*t;for(var r=0;r14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new i(20),n=new DataView(r.buffer);return n.setUint32(0,this.h0,!1),n.setUint32(4,this.h1,!1),n.setUint32(8,this.h2,!1),n.setUint32(12,this.h3,!1),n.setUint32(16,this.h4,!1),e?r.toString(e):r},n.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,n,i=this.h0,o=this.h1,s=this.h2,a=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=a^o&(s^a),n=1518500249):e<40?(r=o^s^a,n=1859775393):e<60?(r=o&s|a&(o|s),n=2400959708):(r=o^s^a,n=3395469782);var c=(i<<5|i>>>27)+r+u+n+(0|this.block[e]);u=a,a=s,s=o<<30|o>>>2,o=i,i=c}for(this.h0=this.h0+i|0,this.h1=this.h1+o|0,this.h2=this.h2+s|0,this.h3=this.h3+a|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},{"./browserHashUtils":30,"buffer/":3}],32:[function(e,t,r){function n(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(h)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function i(e,t,r,n,i,o){return((t=(t+e&4294967295)+(n+o&4294967295)&4294967295)<>>32-i)+r&4294967295}function o(e,t,r,n,o,s,a){return i(t&r|~t&n,e,t,o,s,a)}function s(e,t,r,n,o,s,a){return i(t&n|r&~n,e,t,o,s,a)}function a(e,t,r,n,o,s,a){return i(t^r^n,e,t,o,s,a)}function u(e,t,r,n,o,s,a){return i(r^(t|~n),e,t,o,s,a)}var c=e("./browserHashUtils"),l=e("buffer/").Buffer,h=64;t.exports=n,n.BLOCK_SIZE=h,n.prototype.update=function(e){if(c.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=c.convertToBuffer(e),r=0,n=t.byteLength;for(this.bytesHashed+=n;n>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),n--,this.bufferLength===h&&(this.hashBuffer(),this.bufferLength=0);return this},n.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,n=t.bufferLength,i=t.bytesHashed,o=8*i;if(r.setUint8(this.bufferLength++,128),n%h>=h-8){for(var s=this.bufferLength;s>>0,!0),r.setUint32(h-4,Math.floor(o/4294967296),!0),this.hashBuffer(),this.finished=!0}for(var a=new DataView(new ArrayBuffer(16)),s=0;s<4;s++)a.setUint32(4*s,this.state[s],!0);var u=new l(a.buffer,a.byteOffset,a.byteLength);return e?u.toString(e):u},n.prototype.hashBuffer=function(){var e=this,t=e.buffer,r=e.state,n=r[0],i=r[1],c=r[2],l=r[3];n=o(n,i,c,l,t.getUint32(0,!0),7,3614090360),l=o(l,n,i,c,t.getUint32(4,!0),12,3905402710),c=o(c,l,n,i,t.getUint32(8,!0),17,606105819),i=o(i,c,l,n,t.getUint32(12,!0),22,3250441966),n=o(n,i,c,l,t.getUint32(16,!0),7,4118548399),l=o(l,n,i,c,t.getUint32(20,!0),12,1200080426),c=o(c,l,n,i,t.getUint32(24,!0),17,2821735955),i=o(i,c,l,n,t.getUint32(28,!0),22,4249261313),n=o(n,i,c,l,t.getUint32(32,!0),7,1770035416),l=o(l,n,i,c,t.getUint32(36,!0),12,2336552879),c=o(c,l,n,i,t.getUint32(40,!0),17,4294925233),i=o(i,c,l,n,t.getUint32(44,!0),22,2304563134),n=o(n,i,c,l,t.getUint32(48,!0),7,1804603682),l=o(l,n,i,c,t.getUint32(52,!0),12,4254626195),c=o(c,l,n,i,t.getUint32(56,!0),17,2792965006),i=o(i,c,l,n,t.getUint32(60,!0),22,1236535329),n=s(n,i,c,l,t.getUint32(4,!0),5,4129170786),l=s(l,n,i,c,t.getUint32(24,!0),9,3225465664),c=s(c,l,n,i,t.getUint32(44,!0),14,643717713),i=s(i,c,l,n,t.getUint32(0,!0),20,3921069994),n=s(n,i,c,l,t.getUint32(20,!0),5,3593408605),l=s(l,n,i,c,t.getUint32(40,!0),9,38016083),c=s(c,l,n,i,t.getUint32(60,!0),14,3634488961),i=s(i,c,l,n,t.getUint32(16,!0),20,3889429448),n=s(n,i,c,l,t.getUint32(36,!0),5,568446438),l=s(l,n,i,c,t.getUint32(56,!0),9,3275163606),c=s(c,l,n,i,t.getUint32(12,!0),14,4107603335),i=s(i,c,l,n,t.getUint32(32,!0),20,1163531501),n=s(n,i,c,l,t.getUint32(52,!0),5,2850285829),l=s(l,n,i,c,t.getUint32(8,!0),9,4243563512),c=s(c,l,n,i,t.getUint32(28,!0),14,1735328473),i=s(i,c,l,n,t.getUint32(48,!0),20,2368359562),n=a(n,i,c,l,t.getUint32(20,!0),4,4294588738),l=a(l,n,i,c,t.getUint32(32,!0),11,2272392833),c=a(c,l,n,i,t.getUint32(44,!0),16,1839030562),i=a(i,c,l,n,t.getUint32(56,!0),23,4259657740),n=a(n,i,c,l,t.getUint32(4,!0),4,2763975236),l=a(l,n,i,c,t.getUint32(16,!0),11,1272893353),c=a(c,l,n,i,t.getUint32(28,!0),16,4139469664),i=a(i,c,l,n,t.getUint32(40,!0),23,3200236656),n=a(n,i,c,l,t.getUint32(52,!0),4,681279174),l=a(l,n,i,c,t.getUint32(0,!0),11,3936430074),c=a(c,l,n,i,t.getUint32(12,!0),16,3572445317),i=a(i,c,l,n,t.getUint32(24,!0),23,76029189),n=a(n,i,c,l,t.getUint32(36,!0),4,3654602809),l=a(l,n,i,c,t.getUint32(48,!0),11,3873151461),c=a(c,l,n,i,t.getUint32(60,!0),16,530742520),i=a(i,c,l,n,t.getUint32(8,!0),23,3299628645),n=u(n,i,c,l,t.getUint32(0,!0),6,4096336452),l=u(l,n,i,c,t.getUint32(28,!0),10,1126891415),c=u(c,l,n,i,t.getUint32(56,!0),15,2878612391),i=u(i,c,l,n,t.getUint32(20,!0),21,4237533241),n=u(n,i,c,l,t.getUint32(48,!0),6,1700485571),l=u(l,n,i,c,t.getUint32(12,!0),10,2399980690),c=u(c,l,n,i,t.getUint32(40,!0),15,4293915773),i=u(i,c,l,n,t.getUint32(4,!0),21,2240044497),n=u(n,i,c,l,t.getUint32(32,!0),6,1873313359),l=u(l,n,i,c,t.getUint32(60,!0),10,4264355552),c=u(c,l,n,i,t.getUint32(24,!0),15,2734768916),i=u(i,c,l,n,t.getUint32(52,!0),21,1309151649),n=u(n,i,c,l,t.getUint32(16,!0),6,4149444226),l=u(l,n,i,c,t.getUint32(44,!0),10,3174756917),c=u(c,l,n,i,t.getUint32(8,!0),15,718787259),i=u(i,c,l,n,t.getUint32(36,!0),21,3951481745),r[0]=n+r[0]&4294967295,r[1]=i+r[1]&4294967295,r[2]=c+r[2]&4294967295,r[3]=l+r[3]&4294967295}},{"./browserHashUtils":30,"buffer/":3}],31:[function(e,t,r){function n(e,t){this.hash=new e,this.outer=new e;var r=i(e,t),n=new Uint8Array(e.BLOCK_SIZE);n.set(r);for(var o=0;oe.BLOCK_SIZE){var n=new e;n.update(r),r=n.digest()}var i=new Uint8Array(e.BLOCK_SIZE);return i.set(r),i}var o=e("./browserHashUtils");t.exports=n,n.prototype.update=function(e){if(o.isEmptyData(e)||this.error)return this;try{this.hash.update(o.convertToBuffer(e))}catch(e){this.error=e}return this},n.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},{"./browserHashUtils":30}],30:[function(e,t,r){function n(e){return"string"==typeof e?0===e.length:0===e.byteLength}function i(e){return"string"==typeof e&&(e=new o(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var o=e("buffer/").Buffer;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return s.indexOf(Object.prototype.toString.call(e))>-1});var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];t.exports={isEmptyData:n,convertToBuffer:i}},{"buffer/":3}],17:[function(e,t,r){function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,r){if(e&&c(e)&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}function o(e){return u(e)&&(e=i(e)),e instanceof n?e.format():n.prototype.format.call(e)}function s(e,t){return i(e,!1,!0).resolve(t)}function a(e,t){return e?i(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function c(e){return"object"==typeof e&&null!==e}function l(e){return null===e}function h(e){return null==e}var p=e("punycode");r.parse=i,r.resolve=s,r.resolveObject=a,r.format=o,r.Url=n;var f=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,m=["<",">",'"',"`"," ","\r","\n","\t"],v=["{","}","|","\\","^","`"].concat(m),g=["'"].concat(v),y=["%","/","?",";","#"].concat(g),b=["/","?","#"],w=/^[a-z0-9A-Z_-]{0,63}$/,E=/^([a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},S={javascript:!0,"javascript:":!0},C={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=e("querystring");n.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e;n=n.trim();var i=f.exec(n);if(i){i=i[0];var o=i.toLowerCase();this.protocol=o,n=n.substr(i.length)}if(r||i||n.match(/^\/\/[^@\/]+@[^@\/]+/)){var s="//"===n.substr(0,2);!s||i&&S[i]||(n=n.substr(2),this.slashes=!0)}if(!S[i]&&(s||i&&!C[i])){for(var a=-1,c=0;c127?T+="x":T+=A[k];if(!T.match(w)){var L=v.slice(0,c),P=v.slice(c+1),q=A.match(E);q&&(L.push(q[1]),P.unshift(q[2])),P.length&&(n="/"+P.join(".")+n),this.hostname=L.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!m){for(var O=this.hostname.split("."),N=[],c=0;c0)&&r.host.split("@");v&&(r.auth=v.shift(),r.host=r.hostname=v.shift())}return r.search=e.search,r.query=e.query,l(r.pathname)&&l(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!d.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var g=d.slice(-1)[0],y=(r.host||e.host)&&("."===g||".."===g)||""===g,b=0,w=d.length;w>=0;w--)g=d[w],"."==g?d.splice(w,1):".."===g?(d.splice(w,1),b++):b&&(d.splice(w,1),b--);if(!p&&!f)for(;b--;b)d.unshift("..");!p||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),y&&"/"!==d.join("/").substr(-1)&&d.push("");var E=""===d[0]||d[0]&&"/"===d[0].charAt(0);if(m){r.hostname=r.host=E?"":d.length?d.shift():"";var v=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");v&&(r.auth=v.shift(),r.host=r.hostname=v.shift())}return p=p||r.host&&d.length,p&&!E&&d.unshift(""),d.length?r.pathname=d.join("/"):(r.pathname=null,r.path=null),l(r.pathname)&&l(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:9,querystring:12}],15:[function(e,t,r){arguments[4][12][0].apply(r,arguments)},{"./decode":13,"./encode":14,dup:12}],14:[function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,i){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(i){var o=encodeURIComponent(n(i))+r;return Array.isArray(e[i])?e[i].map(function(e){return o+encodeURIComponent(n(e))}).join(t):o+encodeURIComponent(n(e[i]))}).join(t):i?encodeURIComponent(n(i))+r+encodeURIComponent(n(e)):""}},{}],13:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,i){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var u=e.length;a>0&&u>a&&(u=a);for(var c=0;c=0?(l=d.substr(0,m),h=d.substr(m+1)):(l=d,h=""),p=decodeURIComponent(l),f=decodeURIComponent(h),n(o,p)?Array.isArray(o[p])?o[p].push(f):o[p]=[o[p],f]:o[p]=f}return o}},{}],12:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":10,"./encode":11}],11:[function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n0&&c>u&&(c=u);for(var l=0;l=0?(h=m.substr(0,v),p=m.substr(v+1)):(h=m,p=""),f=decodeURIComponent(h),d=decodeURIComponent(p),n(s,f)?i(s[f])?s[f].push(d):s[f]=[s[f],d]:s[f]=d}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],9:[function(e,t,r){(function(e){!function(n){function i(e){throw RangeError(q[e])}function o(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function s(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(P,"."),n+o(e.split("."),t).join(".")}function a(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(e-=65536,t+=U(e>>>10&1023|55296),e=56320|1023&e),t+=U(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:_}function l(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function h(e,t,r){var n=0;for(e=r?N(e/R):e>>1,e+=N(e/t);e>O*C>>1;n+=_)e=N(e/O);return N(n+(O+1)*e/(e+x))}function p(e){var t,r,n,o,s,a,l,p,f,d,m=[],v=e.length,g=0,y=T,b=A;for(r=e.lastIndexOf(k),r<0&&(r=0),n=0;n=128&&i("not-basic"),m.push(e.charCodeAt(n));for(o=r>0?r+1:0;o=v&&i("invalid-input"),p=c(e.charCodeAt(o++)),(p>=_||p>N((E-g)/a))&&i("overflow"),g+=p*a,f=l<=b?S:l>=b+C?C:l-b,!(pN(E/d)&&i("overflow"),a*=d;t=m.length+1,b=h(g-s,t,0==s),N(g/t)>E-y&&i("overflow"),y+=N(g/t),g%=t,m.splice(g++,0,y)}return u(m)}function f(e){var t,r,n,o,s,u,c,p,f,d,m,v,g,y,b,w=[];for(e=a(e),v=e.length,t=T,r=0,s=A,u=0;u=t&&mN((E-r)/g)&&i("overflow"),r+=(c-t)*g,t=c,u=0;uE&&i("overflow"),m==t){for(p=r,f=_;d=f<=s?S:f>=s+C?C:f-s,!(p= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=_-S,N=Math.floor,U=String.fromCharCode;if(b={version:"1.3.2",ucs2:{decode:a,encode:u},decode:p,encode:f,toASCII:m,toUnicode:d},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return b});else if(v&&g)if(t.exports==v)g.exports=b;else for(w in b)b.hasOwnProperty(w)&&(v[w]=b[w]);else n.punycode=b}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,r,n,o,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(r=this._events[e],a(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}else if(s(r))for(o=Array.prototype.slice.call(arguments,1),c=r.slice(),n=c.length,u=0;u0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var n=!1;return r.listener=t,this.on(e,r),this},n.prototype.removeListener=function(e,t){var r,n,o,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],o=r.length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(s(r)){for(a=o;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){n=a;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},{}],3:[function(e,t,r){(function(t,n){"use strict";function i(){return n.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),n.alloc(+e)}function v(e,t){if(n.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return I(this,t,r);case"latin1":case"binary":return L(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,i,o){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=n.from(t,i)),n.isBuffer(t))return 0===t.length?-1:w(e,t,r,i,o);if("number"==typeof t)return t&=255,n.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,i,o);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,n,i){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}var c;if(i){var l=-1;for(c=r;ca&&(r=a-u),c=r;c>=0;c--){for(var h=!0,p=0;pi&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s239?4:o>223?3:o>191?2:1;if(i+a<=r){var u,c,l,h;switch(a){case 1:o<128&&(s=o);break;case 2:u=e[i+1],128==(192&u)&&(h=(31&o)<<6|63&u)>127&&(s=h);break;case 3:u=e[i+1],c=e[i+2],128==(192&u)&&128==(192&c)&&(h=(15&o)<<12|(63&u)<<6|63&c)>2047&&(h<55296||h>57343)&&(s=h);break;case 4:u=e[i+1],c=e[i+2],l=e[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(h=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&h<1114112&&(s=h)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=a}return k(n)}function k(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,i,o,s){if(!n.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function U(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function D(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function M(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,i){return i||M(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return i||M(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(e,t,r,n,52,8),r+8}function F(e){if(e=H(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function H(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function K(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function X(e){return J.toByteArray(F(e))}function Y(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function G(e){return e!==e}var J=e("base64-js"),$=e("ieee754"),Q=e("isarray");r.Buffer=n,r.SlowBuffer=m,r.INSPECT_MAX_BYTES=50,n.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),r.kMaxLength=i(),n.poolSize=8192,n._augment=function(e){return e.__proto__=n.prototype,e},n.from=function(e,t,r){return s(null,e,t,r)},n.TYPED_ARRAY_SUPPORT&&(n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0})),n.alloc=function(e,t,r){return u(null,e,t,r)},n.allocUnsafe=function(e){return c(null,e)},n.allocUnsafeSlow=function(e){return c(null,e)},n.isBuffer=function(e){return!(null==e||!e._isBuffer)},n.compare=function(e,t){if(!n.isBuffer(e)||!n.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,i=t.length,o=0,s=Math.min(r,i);o0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},n.prototype.compare=function(e,t,r,i,o){if(!n.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||r>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=r)return 0;if(i>=o)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var s=o-i,a=r-t,u=Math.min(s,a),c=this.slice(i,o),l=e.slice(t,r),h=0;hi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return E(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return C(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;n.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)n+=this[e+--t]*i;return n},n.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},n.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},n.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},n.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},n.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},n.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},n.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},n.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},n.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},n.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},n.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},n.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},n.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),$.read(this,e,!0,23,4)},n.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),$.read(this,e,!1,23,4)},n.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),$.read(this,e,!0,52,8)},n.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),$.read(this,e,!1,52,8)},n.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){N(this,e,t,r,Math.pow(2,8*r)-1,0)}var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},n.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,255,0),n.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},n.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},n.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},n.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},n.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},n.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+r},n.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},n.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,127,-128),n.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},n.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},n.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},n.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),n.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},n.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),n.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},n.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},n.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},n.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},n.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},n.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else if(s<1e3||!n.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var s;if("number"==typeof e)for(s=t;s>1,l=-7,h=r?i-1:0,p=r?-1:1,f=e[t+h];for(h+=p,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+h],h+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+h],h+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=c}return(f?-1:1)*s*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),t+=s+h>=1?p/u:p*Math.pow(2,1-h),t*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(t*u-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=d,a/=256,i-=8);for(s=s<0;e[r+f]=255&s,f+=d,s/=256,c-=8);e[r+f-d]|=128*m}},{}],1:[function(e,t,r){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function i(e){var t=n(e),r=t[0],i=t[1];return 3*(r+i)/4-i}function o(e,t,r){return 3*(t+r)/4-r}function s(e){var t,r,i=n(e),s=i[0],a=i[1],u=new p(o(e,s,a)),c=0,l=a>0?s-4:s;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=h[e.charCodeAt(r)]<<2|h[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=h[e.charCodeAt(r)]<<10|h[e.charCodeAt(r+1)]<<4|h[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function a(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function u(e,t,r){for(var n,i=[],o=t;os?s:o+16383));return 1===n?(t=e[r-1],i.push(l[t>>2]+l[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"=")),i.join("")}r.byteLength=i,r.toByteArray=s,r.fromByteArray=c;for(var l=[],h=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,m=f.length;d `0`",state:"success"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},BundleTaskComplete:{delay:15,operation:"DescribeBundleTasks",maxAttempts:40,acceptors:[{expected:"complete",matcher:"pathAll",state:"success",argument:"BundleTasks[].State"},{expected:"failed",matcher:"pathAny",state:"failure",argument:"BundleTasks[].State"}]},ConversionTaskCancelled:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"cancelled",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"}]},ConversionTaskCompleted:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"},{expected:"cancelled",matcher:"pathAny",state:"failure",argument:"ConversionTasks[].State"},{expected:"cancelling",matcher:"pathAny",state:"failure",argument:"ConversionTasks[].State"}]},ConversionTaskDeleted:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"}]},CustomerGatewayAvailable:{delay:15,operation:"DescribeCustomerGateways",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"CustomerGateways[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"CustomerGateways[].State"},{expected:"deleting",matcher:"pathAny",state:"failure",argument:"CustomerGateways[].State"}]},ExportTaskCancelled:{delay:15,operation:"DescribeExportTasks",maxAttempts:40,acceptors:[{expected:"cancelled",matcher:"pathAll",state:"success",argument:"ExportTasks[].State"}]},ExportTaskCompleted:{delay:15,operation:"DescribeExportTasks",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"ExportTasks[].State"}]},ImageExists:{operation:"DescribeImages",maxAttempts:40,delay:15,acceptors:[{matcher:"path",expected:!0,argument:"length(Images[]) > `0`",state:"success"},{matcher:"error",expected:"InvalidAMIID.NotFound",state:"retry"}]},ImageAvailable:{operation:"DescribeImages",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"Images[].State",expected:"available"},{state:"failure",matcher:"pathAny",argument:"Images[].State",expected:"failed"}]},InstanceRunning:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"running",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"shutting-down",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"terminated",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"stopping",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},InstanceStatusOk:{operation:"DescribeInstanceStatus",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"InstanceStatuses[].InstanceStatus.Status",expected:"ok"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},InstanceStopped:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"stopped",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"terminated",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"}]},InstanceTerminated:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"terminated",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"stopping",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"}]},KeyPairExists:{operation:"DescribeKeyPairs",delay:5,maxAttempts:6,acceptors:[{expected:!0,matcher:"path",state:"success",argument:"length(KeyPairs[].KeyName) > `0`"},{expected:"InvalidKeyPair.NotFound",matcher:"error",state:"retry"}]},NatGatewayAvailable:{operation:"DescribeNatGateways",delay:15,maxAttempts:40,acceptors:[{state:"success",matcher:"pathAll",argument:"NatGateways[].State",expected:"available"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"failed"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"deleting"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"deleted"},{state:"retry",matcher:"error",expected:"NatGatewayNotFound"}]},NetworkInterfaceAvailable:{operation:"DescribeNetworkInterfaces",delay:20,maxAttempts:10,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"NetworkInterfaces[].Status"},{expected:"InvalidNetworkInterfaceID.NotFound",matcher:"error",state:"failure"}]},PasswordDataAvailable:{operation:"GetPasswordData",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"path",argument:"length(PasswordData) > `0`",expected:!0}]},SnapshotCompleted:{delay:15,operation:"DescribeSnapshots",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"Snapshots[].State"}]},SecurityGroupExists:{operation:"DescribeSecurityGroups",delay:5,maxAttempts:6,acceptors:[{expected:!0,matcher:"path",state:"success",argument:"length(SecurityGroups[].GroupId) > `0`"},{expected:"InvalidGroupNotFound",matcher:"error",state:"retry"}]},SpotInstanceRequestFulfilled:{operation:"DescribeSpotInstanceRequests",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"SpotInstanceRequests[].Status.Code",expected:"fulfilled"},{state:"success",matcher:"pathAll",argument:"SpotInstanceRequests[].Status.Code",expected:"request-canceled-and-instance-running"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"schedule-expired"},{state:"failure", +matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"canceled-before-fulfillment"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"bad-parameters"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"system-error"},{state:"retry",matcher:"error",expected:"InvalidSpotInstanceRequestID.NotFound"}]},SubnetAvailable:{delay:15,operation:"DescribeSubnets",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Subnets[].State"}]},SystemStatusOk:{operation:"DescribeInstanceStatus",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"InstanceStatuses[].SystemStatus.Status",expected:"ok"}]},VolumeAvailable:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"Volumes[].State"}]},VolumeDeleted:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{matcher:"error",expected:"InvalidVolume.NotFound",state:"success"}]},VolumeInUse:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"in-use",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"Volumes[].State"}]},VpcAvailable:{delay:15,operation:"DescribeVpcs",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Vpcs[].State"}]},VpcExists:{operation:"DescribeVpcs",delay:1,maxAttempts:5,acceptors:[{matcher:"status",expected:200,state:"success"},{matcher:"error",expected:"InvalidVpcID.NotFound",state:"retry"}]},VpnConnectionAvailable:{delay:15,operation:"DescribeVpnConnections",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"VpnConnections[].State"},{expected:"deleting",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"}]},VpnConnectionDeleted:{delay:15,operation:"DescribeVpnConnections",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"VpnConnections[].State"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"}]},VpcPeeringConnectionExists:{delay:15,operation:"DescribeVpcPeeringConnections",maxAttempts:40,acceptors:[{matcher:"status",expected:200,state:"success"},{matcher:"error",expected:"InvalidVpcPeeringConnectionID.NotFound",state:"retry"}]},VpcPeeringConnectionDeleted:{delay:15,operation:"DescribeVpcPeeringConnections",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"VpcPeeringConnections[].Status.Code"},{matcher:"error",expected:"InvalidVpcPeeringConnectionID.NotFound",state:"success"}]}}};AWS.apiLoader.services.iam={},AWS.IAM=AWS.Service.defineService("iam",["2010-05-08"]);AWS.apiLoader.services.iam["2010-05-08"]={version:"2.0",metadata:{apiVersion:"2010-05-08",endpointPrefix:"iam",globalEndpoint:"iam.amazonaws.com",protocol:"query",serviceAbbreviation:"IAM",serviceFullName:"AWS Identity and Access Management",serviceId:"IAM",signatureVersion:"v4",uid:"iam-2010-05-08",xmlNamespace:"https://iam.amazonaws.com/doc/2010-05-08/"},operations:{AddClientIDToOpenIDConnectProvider:{input:{type:"structure",required:["OpenIDConnectProviderArn","ClientID"],members:{OpenIDConnectProviderArn:{},ClientID:{}}}},AddRoleToInstanceProfile:{input:{type:"structure",required:["InstanceProfileName","RoleName"],members:{InstanceProfileName:{},RoleName:{}}}},AddUserToGroup:{input:{type:"structure",required:["GroupName","UserName"],members:{GroupName:{},UserName:{}}}},AttachGroupPolicy:{input:{type:"structure",required:["GroupName","PolicyArn"],members:{GroupName:{},PolicyArn:{}}}},AttachRolePolicy:{input:{type:"structure",required:["RoleName","PolicyArn"],members:{RoleName:{},PolicyArn:{}}}},AttachUserPolicy:{input:{type:"structure",required:["UserName","PolicyArn"],members:{UserName:{},PolicyArn:{}}}},ChangePassword:{input:{type:"structure",required:["OldPassword","NewPassword"],members:{OldPassword:{shape:"Sf"},NewPassword:{shape:"Sf"}}}},CreateAccessKey:{input:{type:"structure",members:{UserName:{}}},output:{resultWrapper:"CreateAccessKeyResult",type:"structure",required:["AccessKey"],members:{AccessKey:{type:"structure",required:["UserName","AccessKeyId","Status","SecretAccessKey"],members:{UserName:{},AccessKeyId:{},Status:{},SecretAccessKey:{type:"string",sensitive:!0},CreateDate:{type:"timestamp"}}}}}},CreateAccountAlias:{input:{type:"structure",required:["AccountAlias"],members:{AccountAlias:{}}}},CreateGroup:{input:{type:"structure",required:["GroupName"],members:{Path:{},GroupName:{}}},output:{resultWrapper:"CreateGroupResult",type:"structure",required:["Group"],members:{Group:{shape:"Ss"}}}},CreateInstanceProfile:{input:{type:"structure",required:["InstanceProfileName"],members:{InstanceProfileName:{},Path:{}}},output:{resultWrapper:"CreateInstanceProfileResult",type:"structure",required:["InstanceProfile"],members:{InstanceProfile:{shape:"Sw"}}}},CreateLoginProfile:{input:{type:"structure",required:["UserName","Password"],members:{UserName:{},Password:{shape:"Sf"},PasswordResetRequired:{type:"boolean"}}},output:{resultWrapper:"CreateLoginProfileResult",type:"structure",required:["LoginProfile"],members:{LoginProfile:{shape:"S1d"}}}},CreateOpenIDConnectProvider:{input:{type:"structure",required:["Url","ThumbprintList"],members:{Url:{},ClientIDList:{shape:"S1g"},ThumbprintList:{shape:"S1h"}}},output:{resultWrapper:"CreateOpenIDConnectProviderResult",type:"structure",members:{OpenIDConnectProviderArn:{}}}},CreatePolicy:{input:{type:"structure",required:["PolicyName","PolicyDocument"],members:{PolicyName:{},Path:{},PolicyDocument:{},Description:{}}},output:{resultWrapper:"CreatePolicyResult",type:"structure",members:{Policy:{shape:"S1p"}}}},CreatePolicyVersion:{input:{type:"structure",required:["PolicyArn","PolicyDocument"],members:{PolicyArn:{},PolicyDocument:{},SetAsDefault:{type:"boolean"}}},output:{resultWrapper:"CreatePolicyVersionResult",type:"structure",members:{PolicyVersion:{shape:"S1u"}}}},CreateRole:{input:{type:"structure",required:["RoleName","AssumeRolePolicyDocument"],members:{Path:{},RoleName:{},AssumeRolePolicyDocument:{},Description:{},MaxSessionDuration:{type:"integer"},PermissionsBoundary:{},Tags:{shape:"S14"}}},output:{resultWrapper:"CreateRoleResult",type:"structure",required:["Role"],members:{Role:{shape:"Sy"}}}},CreateSAMLProvider:{input:{type:"structure",required:["SAMLMetadataDocument","Name"],members:{SAMLMetadataDocument:{},Name:{}}},output:{resultWrapper:"CreateSAMLProviderResult",type:"structure",members:{SAMLProviderArn:{}}}},CreateServiceLinkedRole:{input:{type:"structure",required:["AWSServiceName"],members:{AWSServiceName:{},Description:{},CustomSuffix:{}}},output:{resultWrapper:"CreateServiceLinkedRoleResult",type:"structure",members:{Role:{shape:"Sy"}}}},CreateServiceSpecificCredential:{input:{type:"structure",required:["UserName","ServiceName"],members:{UserName:{},ServiceName:{}}},output:{resultWrapper:"CreateServiceSpecificCredentialResult",type:"structure",members:{ServiceSpecificCredential:{shape:"S27"}}}},CreateUser:{input:{type:"structure",required:["UserName"],members:{Path:{},UserName:{},PermissionsBoundary:{},Tags:{shape:"S14"}}},output:{resultWrapper:"CreateUserResult",type:"structure",members:{User:{shape:"S2d"}}}},CreateVirtualMFADevice:{input:{type:"structure",required:["VirtualMFADeviceName"],members:{Path:{},VirtualMFADeviceName:{}}},output:{resultWrapper:"CreateVirtualMFADeviceResult",type:"structure",required:["VirtualMFADevice"],members:{VirtualMFADevice:{shape:"S2h"}}}},DeactivateMFADevice:{input:{type:"structure",required:["UserName","SerialNumber"],members:{UserName:{},SerialNumber:{}}}},DeleteAccessKey:{input:{type:"structure",required:["AccessKeyId"],members:{UserName:{},AccessKeyId:{}}}},DeleteAccountAlias:{input:{type:"structure",required:["AccountAlias"],members:{AccountAlias:{}}}},DeleteAccountPasswordPolicy:{},DeleteGroup:{input:{type:"structure",required:["GroupName"],members:{GroupName:{}}}},DeleteGroupPolicy:{input:{type:"structure",required:["GroupName","PolicyName"],members:{GroupName:{},PolicyName:{}}}},DeleteInstanceProfile:{input:{type:"structure",required:["InstanceProfileName"],members:{InstanceProfileName:{}}}},DeleteLoginProfile:{input:{type:"structure",required:["UserName"],members:{UserName:{}}}},DeleteOpenIDConnectProvider:{input:{type:"structure",required:["OpenIDConnectProviderArn"],members:{OpenIDConnectProviderArn:{}}}},DeletePolicy:{input:{type:"structure",required:["PolicyArn"],members:{PolicyArn:{}}}},DeletePolicyVersion:{input:{type:"structure",required:["PolicyArn","VersionId"],members:{PolicyArn:{},VersionId:{}}}},DeleteRole:{input:{type:"structure",required:["RoleName"],members:{RoleName:{}}}},DeleteRolePermissionsBoundary:{input:{type:"structure",required:["RoleName"],members:{RoleName:{}}}},DeleteRolePolicy:{input:{type:"structure",required:["RoleName","PolicyName"],members:{RoleName:{},PolicyName:{}}}},DeleteSAMLProvider:{input:{type:"structure",required:["SAMLProviderArn"],members:{SAMLProviderArn:{}}}},DeleteSSHPublicKey:{input:{type:"structure",required:["UserName","SSHPublicKeyId"],members:{UserName:{},SSHPublicKeyId:{}}}},DeleteServerCertificate:{input:{type:"structure",required:["ServerCertificateName"],members:{ServerCertificateName:{}}}},DeleteServiceLinkedRole:{input:{type:"structure",required:["RoleName"],members:{RoleName:{}}},output:{resultWrapper:"DeleteServiceLinkedRoleResult",type:"structure",required:["DeletionTaskId"],members:{DeletionTaskId:{}}}},DeleteServiceSpecificCredential:{input:{type:"structure",required:["ServiceSpecificCredentialId"],members:{UserName:{},ServiceSpecificCredentialId:{}}}},DeleteSigningCertificate:{input:{type:"structure",required:["CertificateId"],members:{UserName:{},CertificateId:{}}}},DeleteUser:{input:{type:"structure",required:["UserName"],members:{UserName:{}}}},DeleteUserPermissionsBoundary:{input:{type:"structure",required:["UserName"],members:{UserName:{}}}},DeleteUserPolicy:{input:{type:"structure",required:["UserName","PolicyName"],members:{UserName:{},PolicyName:{}}}},DeleteVirtualMFADevice:{input:{type:"structure",required:["SerialNumber"],members:{SerialNumber:{}}}},DetachGroupPolicy:{input:{type:"structure",required:["GroupName","PolicyArn"],members:{GroupName:{},PolicyArn:{}}}},DetachRolePolicy:{input:{type:"structure",required:["RoleName","PolicyArn"],members:{RoleName:{},PolicyArn:{}}}},DetachUserPolicy:{input:{type:"structure",required:["UserName","PolicyArn"],members:{UserName:{},PolicyArn:{}}}},EnableMFADevice:{input:{type:"structure",required:["UserName","SerialNumber","AuthenticationCode1","AuthenticationCode2"],members:{UserName:{},SerialNumber:{},AuthenticationCode1:{},AuthenticationCode2:{}}}},GenerateCredentialReport:{output:{resultWrapper:"GenerateCredentialReportResult",type:"structure",members:{State:{},Description:{}}}},GenerateOrganizationsAccessReport:{input:{type:"structure",required:["EntityPath"],members:{EntityPath:{},OrganizationsPolicyId:{}}},output:{resultWrapper:"GenerateOrganizationsAccessReportResult",type:"structure",members:{JobId:{}}}},GenerateServiceLastAccessedDetails:{input:{type:"structure",required:["Arn"],members:{Arn:{},Granularity:{}}},output:{resultWrapper:"GenerateServiceLastAccessedDetailsResult",type:"structure",members:{JobId:{}}}},GetAccessKeyLastUsed:{input:{type:"structure",required:["AccessKeyId"],members:{AccessKeyId:{}}},output:{resultWrapper:"GetAccessKeyLastUsedResult",type:"structure",members:{UserName:{},AccessKeyLastUsed:{type:"structure",required:["LastUsedDate","ServiceName","Region"],members:{LastUsedDate:{type:"timestamp"},ServiceName:{},Region:{}}}}}},GetAccountAuthorizationDetails:{input:{type:"structure",members:{Filter:{type:"list",member:{}},MaxItems:{type:"integer"},Marker:{}}},output:{resultWrapper:"GetAccountAuthorizationDetailsResult",type:"structure",members:{UserDetailList:{type:"list",member:{type:"structure",members:{Path:{},UserName:{},UserId:{},Arn:{},CreateDate:{type:"timestamp"},UserPolicyList:{shape:"S43"},GroupList:{type:"list",member:{}},AttachedManagedPolicies:{shape:"S46"},PermissionsBoundary:{shape:"S12"},Tags:{shape:"S14"}}}},GroupDetailList:{type:"list",member:{type:"structure",members:{Path:{},GroupName:{},GroupId:{},Arn:{},CreateDate:{type:"timestamp"},GroupPolicyList:{shape:"S43"},AttachedManagedPolicies:{shape:"S46"}}}},RoleDetailList:{type:"list",member:{type:"structure",members:{Path:{},RoleName:{},RoleId:{},Arn:{},CreateDate:{type:"timestamp"},AssumeRolePolicyDocument:{},InstanceProfileList:{shape:"S4c"},RolePolicyList:{shape:"S43"},AttachedManagedPolicies:{shape:"S46"},PermissionsBoundary:{shape:"S12"},Tags:{shape:"S14"},RoleLastUsed:{shape:"S18"}}}},Policies:{type:"list",member:{type:"structure",members:{PolicyName:{},PolicyId:{},Arn:{},Path:{},DefaultVersionId:{},AttachmentCount:{type:"integer"},PermissionsBoundaryUsageCount:{type:"integer"},IsAttachable:{type:"boolean"},Description:{},CreateDate:{type:"timestamp"},UpdateDate:{type:"timestamp"},PolicyVersionList:{shape:"S4f"}}}},IsTruncated:{type:"boolean"},Marker:{}}}},GetAccountPasswordPolicy:{output:{resultWrapper:"GetAccountPasswordPolicyResult",type:"structure",required:["PasswordPolicy"],members:{PasswordPolicy:{type:"structure",members:{MinimumPasswordLength:{type:"integer"},RequireSymbols:{type:"boolean"},RequireNumbers:{type:"boolean"},RequireUppercaseCharacters:{type:"boolean"},RequireLowercaseCharacters:{type:"boolean"},AllowUsersToChangePassword:{type:"boolean"},ExpirePasswords:{type:"boolean"},MaxPasswordAge:{type:"integer"},PasswordReusePrevention:{type:"integer"},HardExpiry:{type:"boolean"}}}}}},GetAccountSummary:{output:{resultWrapper:"GetAccountSummaryResult",type:"structure",members:{SummaryMap:{type:"map",key:{},value:{type:"integer"}}}}},GetContextKeysForCustomPolicy:{input:{type:"structure",required:["PolicyInputList"],members:{PolicyInputList:{shape:"S4s"}}},output:{shape:"S4t",resultWrapper:"GetContextKeysForCustomPolicyResult"}},GetContextKeysForPrincipalPolicy:{input:{type:"structure",required:["PolicySourceArn"],members:{PolicySourceArn:{},PolicyInputList:{shape:"S4s"}}},output:{shape:"S4t",resultWrapper:"GetContextKeysForPrincipalPolicyResult"}},GetCredentialReport:{output:{resultWrapper:"GetCredentialReportResult",type:"structure",members:{Content:{type:"blob"},ReportFormat:{},GeneratedTime:{type:"timestamp"}}}},GetGroup:{input:{type:"structure",required:["GroupName"],members:{GroupName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"GetGroupResult",type:"structure",required:["Group","Users"],members:{Group:{shape:"Ss"},Users:{shape:"S52"},IsTruncated:{type:"boolean"},Marker:{}}}},GetGroupPolicy:{input:{type:"structure",required:["GroupName","PolicyName"],members:{GroupName:{},PolicyName:{}}},output:{resultWrapper:"GetGroupPolicyResult",type:"structure",required:["GroupName","PolicyName","PolicyDocument"],members:{GroupName:{},PolicyName:{},PolicyDocument:{}}}},GetInstanceProfile:{input:{type:"structure",required:["InstanceProfileName"],members:{InstanceProfileName:{}}},output:{resultWrapper:"GetInstanceProfileResult",type:"structure",required:["InstanceProfile"],members:{InstanceProfile:{shape:"Sw"}}}},GetLoginProfile:{input:{type:"structure",required:["UserName"],members:{UserName:{}}},output:{resultWrapper:"GetLoginProfileResult",type:"structure",required:["LoginProfile"],members:{LoginProfile:{shape:"S1d"}}}},GetOpenIDConnectProvider:{input:{type:"structure",required:["OpenIDConnectProviderArn"],members:{OpenIDConnectProviderArn:{}}},output:{resultWrapper:"GetOpenIDConnectProviderResult",type:"structure",members:{Url:{},ClientIDList:{shape:"S1g"},ThumbprintList:{shape:"S1h"},CreateDate:{type:"timestamp"}}}},GetOrganizationsAccessReport:{input:{type:"structure",required:["JobId"],members:{JobId:{},MaxItems:{type:"integer"},Marker:{},SortKey:{}}},output:{resultWrapper:"GetOrganizationsAccessReportResult",type:"structure",required:["JobStatus","JobCreationDate"],members:{JobStatus:{},JobCreationDate:{type:"timestamp"},JobCompletionDate:{type:"timestamp"},NumberOfServicesAccessible:{type:"integer"},NumberOfServicesNotAccessed:{type:"integer"},AccessDetails:{type:"list",member:{type:"structure",required:["ServiceName","ServiceNamespace"],members:{ServiceName:{},ServiceNamespace:{},Region:{},EntityPath:{},LastAuthenticatedTime:{type:"timestamp"},TotalAuthenticatedEntities:{type:"integer"}}}},IsTruncated:{type:"boolean"},Marker:{},ErrorDetails:{shape:"S5k"}}}},GetPolicy:{input:{type:"structure",required:["PolicyArn"],members:{PolicyArn:{}}},output:{resultWrapper:"GetPolicyResult",type:"structure",members:{Policy:{shape:"S1p"}}}},GetPolicyVersion:{input:{type:"structure",required:["PolicyArn","VersionId"],members:{PolicyArn:{},VersionId:{}}},output:{resultWrapper:"GetPolicyVersionResult",type:"structure",members:{PolicyVersion:{shape:"S1u"}}}},GetRole:{input:{type:"structure",required:["RoleName"],members:{RoleName:{}}},output:{resultWrapper:"GetRoleResult",type:"structure",required:["Role"],members:{Role:{shape:"Sy"}}}},GetRolePolicy:{input:{type:"structure",required:["RoleName","PolicyName"],members:{RoleName:{},PolicyName:{}}},output:{resultWrapper:"GetRolePolicyResult",type:"structure",required:["RoleName","PolicyName","PolicyDocument"],members:{RoleName:{},PolicyName:{},PolicyDocument:{}}}},GetSAMLProvider:{input:{type:"structure",required:["SAMLProviderArn"],members:{SAMLProviderArn:{}}},output:{resultWrapper:"GetSAMLProviderResult",type:"structure",members:{SAMLMetadataDocument:{},CreateDate:{type:"timestamp"},ValidUntil:{type:"timestamp"}}}},GetSSHPublicKey:{input:{type:"structure",required:["UserName","SSHPublicKeyId","Encoding"],members:{UserName:{},SSHPublicKeyId:{},Encoding:{}}},output:{resultWrapper:"GetSSHPublicKeyResult",type:"structure",members:{SSHPublicKey:{shape:"S5y"}}}},GetServerCertificate:{input:{type:"structure",required:["ServerCertificateName"],members:{ServerCertificateName:{}}},output:{resultWrapper:"GetServerCertificateResult",type:"structure",required:["ServerCertificate"],members:{ServerCertificate:{type:"structure",required:["ServerCertificateMetadata","CertificateBody"],members:{ServerCertificateMetadata:{shape:"S64"},CertificateBody:{},CertificateChain:{}}}}}},GetServiceLastAccessedDetails:{input:{type:"structure",required:["JobId"],members:{JobId:{},MaxItems:{type:"integer"},Marker:{}}},output:{resultWrapper:"GetServiceLastAccessedDetailsResult",type:"structure",required:["JobStatus","JobCreationDate","ServicesLastAccessed","JobCompletionDate"],members:{JobStatus:{},JobType:{},JobCreationDate:{type:"timestamp"},ServicesLastAccessed:{type:"list",member:{type:"structure",required:["ServiceName","ServiceNamespace"],members:{ServiceName:{},LastAuthenticated:{type:"timestamp"},ServiceNamespace:{},LastAuthenticatedEntity:{},LastAuthenticatedRegion:{},TotalAuthenticatedEntities:{type:"integer"},TrackedActionsLastAccessed:{type:"list",member:{type:"structure",members:{ActionName:{},LastAccessedEntity:{},LastAccessedTime:{type:"timestamp"},LastAccessedRegion:{}}}}}}},JobCompletionDate:{type:"timestamp"},IsTruncated:{type:"boolean"},Marker:{},Error:{shape:"S5k"}}}},GetServiceLastAccessedDetailsWithEntities:{input:{type:"structure",required:["JobId","ServiceNamespace"],members:{JobId:{},ServiceNamespace:{},MaxItems:{type:"integer"},Marker:{}}},output:{resultWrapper:"GetServiceLastAccessedDetailsWithEntitiesResult",type:"structure",required:["JobStatus","JobCreationDate","JobCompletionDate","EntityDetailsList"],members:{JobStatus:{},JobCreationDate:{type:"timestamp"},JobCompletionDate:{type:"timestamp"},EntityDetailsList:{type:"list",member:{type:"structure",required:["EntityInfo"],members:{EntityInfo:{type:"structure",required:["Arn","Name","Type","Id"],members:{Arn:{},Name:{},Type:{},Id:{},Path:{}}},LastAuthenticated:{type:"timestamp"}}}},IsTruncated:{type:"boolean"},Marker:{},Error:{shape:"S5k"}}}},GetServiceLinkedRoleDeletionStatus:{input:{type:"structure",required:["DeletionTaskId"],members:{DeletionTaskId:{}}},output:{resultWrapper:"GetServiceLinkedRoleDeletionStatusResult",type:"structure",required:["Status"],members:{Status:{},Reason:{type:"structure",members:{Reason:{},RoleUsageList:{type:"list",member:{type:"structure",members:{Region:{},Resources:{type:"list",member:{}}}}}}}}}},GetUser:{input:{type:"structure",members:{UserName:{}}},output:{resultWrapper:"GetUserResult",type:"structure",required:["User"],members:{User:{shape:"S2d"}}}},GetUserPolicy:{input:{type:"structure",required:["UserName","PolicyName"],members:{UserName:{},PolicyName:{}}},output:{resultWrapper:"GetUserPolicyResult",type:"structure",required:["UserName","PolicyName","PolicyDocument"],members:{UserName:{},PolicyName:{},PolicyDocument:{}}}},ListAccessKeys:{input:{type:"structure",members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListAccessKeysResult",type:"structure",required:["AccessKeyMetadata"],members:{AccessKeyMetadata:{type:"list",member:{type:"structure",members:{UserName:{},AccessKeyId:{},Status:{},CreateDate:{type:"timestamp"}}}},IsTruncated:{type:"boolean"},Marker:{}}}},ListAccountAliases:{input:{type:"structure",members:{Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListAccountAliasesResult",type:"structure",required:["AccountAliases"],members:{AccountAliases:{type:"list",member:{}},IsTruncated:{type:"boolean"},Marker:{}}}},ListAttachedGroupPolicies:{input:{type:"structure",required:["GroupName"],members:{GroupName:{},PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListAttachedGroupPoliciesResult",type:"structure",members:{AttachedPolicies:{shape:"S46"},IsTruncated:{type:"boolean"},Marker:{}}}},ListAttachedRolePolicies:{input:{type:"structure",required:["RoleName"],members:{RoleName:{},PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListAttachedRolePoliciesResult",type:"structure",members:{AttachedPolicies:{shape:"S46"},IsTruncated:{type:"boolean"},Marker:{}}}},ListAttachedUserPolicies:{input:{type:"structure",required:["UserName"],members:{UserName:{},PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListAttachedUserPoliciesResult",type:"structure",members:{AttachedPolicies:{shape:"S46"},IsTruncated:{type:"boolean"},Marker:{}}}},ListEntitiesForPolicy:{input:{type:"structure",required:["PolicyArn"],members:{PolicyArn:{},EntityFilter:{},PathPrefix:{},PolicyUsageFilter:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListEntitiesForPolicyResult",type:"structure",members:{PolicyGroups:{type:"list",member:{type:"structure",members:{GroupName:{},GroupId:{}}}},PolicyUsers:{type:"list",member:{type:"structure",members:{UserName:{},UserId:{}}}},PolicyRoles:{type:"list",member:{type:"structure",members:{RoleName:{},RoleId:{}}}},IsTruncated:{type:"boolean"},Marker:{}}}},ListGroupPolicies:{input:{type:"structure",required:["GroupName"],members:{GroupName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListGroupPoliciesResult",type:"structure",required:["PolicyNames"],members:{PolicyNames:{shape:"S7k"},IsTruncated:{type:"boolean"},Marker:{}}}},ListGroups:{input:{type:"structure",members:{PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListGroupsResult",type:"structure",required:["Groups"],members:{Groups:{shape:"S7o"},IsTruncated:{type:"boolean"},Marker:{}}}},ListGroupsForUser:{input:{type:"structure",required:["UserName"],members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListGroupsForUserResult",type:"structure",required:["Groups"],members:{Groups:{shape:"S7o"},IsTruncated:{type:"boolean"},Marker:{}}}},ListInstanceProfiles:{input:{type:"structure",members:{PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListInstanceProfilesResult",type:"structure",required:["InstanceProfiles"],members:{InstanceProfiles:{shape:"S4c"},IsTruncated:{type:"boolean"},Marker:{}}}},ListInstanceProfilesForRole:{input:{type:"structure",required:["RoleName"],members:{RoleName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListInstanceProfilesForRoleResult",type:"structure",required:["InstanceProfiles"],members:{InstanceProfiles:{shape:"S4c"},IsTruncated:{type:"boolean"},Marker:{}}}},ListMFADevices:{input:{type:"structure",members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListMFADevicesResult",type:"structure",required:["MFADevices"],members:{MFADevices:{type:"list",member:{type:"structure",required:["UserName","SerialNumber","EnableDate"],members:{UserName:{},SerialNumber:{},EnableDate:{type:"timestamp"}}}},IsTruncated:{type:"boolean"},Marker:{}}}},ListOpenIDConnectProviders:{input:{type:"structure",members:{}},output:{resultWrapper:"ListOpenIDConnectProvidersResult",type:"structure",members:{OpenIDConnectProviderList:{type:"list",member:{type:"structure",members:{Arn:{}}}}}}},ListPolicies:{input:{type:"structure",members:{Scope:{},OnlyAttached:{type:"boolean"},PathPrefix:{},PolicyUsageFilter:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListPoliciesResult",type:"structure",members:{Policies:{type:"list",member:{shape:"S1p"}},IsTruncated:{type:"boolean"},Marker:{}}}},ListPoliciesGrantingServiceAccess:{input:{type:"structure",required:["Arn","ServiceNamespaces"],members:{Marker:{},Arn:{},ServiceNamespaces:{type:"list",member:{}}}},output:{resultWrapper:"ListPoliciesGrantingServiceAccessResult",type:"structure",required:["PoliciesGrantingServiceAccess"],members:{PoliciesGrantingServiceAccess:{type:"list",member:{type:"structure",members:{ServiceNamespace:{},Policies:{type:"list",member:{type:"structure",required:["PolicyName","PolicyType"],members:{PolicyName:{},PolicyType:{},PolicyArn:{},EntityType:{},EntityName:{}}}}}}},IsTruncated:{type:"boolean"},Marker:{}}}},ListPolicyVersions:{input:{type:"structure",required:["PolicyArn"],members:{PolicyArn:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListPolicyVersionsResult",type:"structure",members:{Versions:{shape:"S4f"},IsTruncated:{type:"boolean"},Marker:{}}}},ListRolePolicies:{input:{type:"structure",required:["RoleName"],members:{RoleName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListRolePoliciesResult",type:"structure",required:["PolicyNames"],members:{PolicyNames:{shape:"S7k"},IsTruncated:{type:"boolean"},Marker:{}}}},ListRoleTags:{input:{type:"structure",required:["RoleName"],members:{RoleName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListRoleTagsResult",type:"structure",required:["Tags"],members:{Tags:{shape:"S14"},IsTruncated:{type:"boolean"},Marker:{}}}},ListRoles:{input:{type:"structure",members:{PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListRolesResult",type:"structure",required:["Roles"],members:{Roles:{shape:"Sx"},IsTruncated:{type:"boolean"},Marker:{}}}},ListSAMLProviders:{input:{type:"structure",members:{}},output:{resultWrapper:"ListSAMLProvidersResult",type:"structure",members:{SAMLProviderList:{type:"list",member:{type:"structure",members:{Arn:{},ValidUntil:{type:"timestamp"},CreateDate:{type:"timestamp"}}}}}}},ListSSHPublicKeys:{input:{type:"structure",members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListSSHPublicKeysResult",type:"structure",members:{SSHPublicKeys:{type:"list",member:{type:"structure",required:["UserName","SSHPublicKeyId","Status","UploadDate"],members:{UserName:{},SSHPublicKeyId:{},Status:{},UploadDate:{type:"timestamp"}}}},IsTruncated:{type:"boolean"},Marker:{}}}},ListServerCertificates:{input:{type:"structure",members:{PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListServerCertificatesResult",type:"structure",required:["ServerCertificateMetadataList"],members:{ServerCertificateMetadataList:{type:"list",member:{shape:"S64"}},IsTruncated:{type:"boolean"},Marker:{}}}},ListServiceSpecificCredentials:{input:{type:"structure",members:{UserName:{},ServiceName:{}}},output:{resultWrapper:"ListServiceSpecificCredentialsResult",type:"structure",members:{ServiceSpecificCredentials:{type:"list",member:{type:"structure",required:["UserName","Status","ServiceUserName","CreateDate","ServiceSpecificCredentialId","ServiceName"],members:{UserName:{},Status:{},ServiceUserName:{},CreateDate:{type:"timestamp"},ServiceSpecificCredentialId:{},ServiceName:{}}}}}}},ListSigningCertificates:{input:{type:"structure",members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListSigningCertificatesResult",type:"structure",required:["Certificates"],members:{Certificates:{type:"list",member:{shape:"S96"}},IsTruncated:{type:"boolean"},Marker:{}}}},ListUserPolicies:{input:{type:"structure",required:["UserName"],members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListUserPoliciesResult",type:"structure",required:["PolicyNames"],members:{PolicyNames:{shape:"S7k"},IsTruncated:{type:"boolean"},Marker:{}}}},ListUserTags:{input:{type:"structure",required:["UserName"],members:{UserName:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListUserTagsResult",type:"structure",required:["Tags"],members:{Tags:{shape:"S14"},IsTruncated:{type:"boolean"},Marker:{}}}},ListUsers:{input:{type:"structure",members:{PathPrefix:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListUsersResult",type:"structure",required:["Users"],members:{Users:{shape:"S52"},IsTruncated:{type:"boolean"},Marker:{}}}},ListVirtualMFADevices:{input:{type:"structure",members:{AssignmentStatus:{},Marker:{},MaxItems:{type:"integer"}}},output:{resultWrapper:"ListVirtualMFADevicesResult",type:"structure",required:["VirtualMFADevices"],members:{VirtualMFADevices:{type:"list",member:{shape:"S2h"}},IsTruncated:{type:"boolean"},Marker:{}}}},PutGroupPolicy:{input:{type:"structure",required:["GroupName","PolicyName","PolicyDocument"],members:{GroupName:{},PolicyName:{},PolicyDocument:{}}}},PutRolePermissionsBoundary:{input:{type:"structure",required:["RoleName","PermissionsBoundary"],members:{RoleName:{},PermissionsBoundary:{}}}},PutRolePolicy:{input:{type:"structure",required:["RoleName","PolicyName","PolicyDocument"],members:{RoleName:{},PolicyName:{},PolicyDocument:{}}}},PutUserPermissionsBoundary:{input:{type:"structure",required:["UserName","PermissionsBoundary"],members:{UserName:{},PermissionsBoundary:{}}}},PutUserPolicy:{input:{type:"structure",required:["UserName","PolicyName","PolicyDocument"],members:{UserName:{},PolicyName:{},PolicyDocument:{}}}},RemoveClientIDFromOpenIDConnectProvider:{input:{type:"structure",required:["OpenIDConnectProviderArn","ClientID"],members:{OpenIDConnectProviderArn:{},ClientID:{}}}},RemoveRoleFromInstanceProfile:{input:{type:"structure",required:["InstanceProfileName","RoleName"],members:{InstanceProfileName:{},RoleName:{}}}},RemoveUserFromGroup:{input:{type:"structure",required:["GroupName","UserName"],members:{GroupName:{},UserName:{}}}},ResetServiceSpecificCredential:{input:{type:"structure",required:["ServiceSpecificCredentialId"],members:{UserName:{},ServiceSpecificCredentialId:{}}},output:{resultWrapper:"ResetServiceSpecificCredentialResult",type:"structure",members:{ServiceSpecificCredential:{shape:"S27"}}}},ResyncMFADevice:{input:{type:"structure",required:["UserName","SerialNumber","AuthenticationCode1","AuthenticationCode2"],members:{UserName:{},SerialNumber:{},AuthenticationCode1:{},AuthenticationCode2:{}}}},SetDefaultPolicyVersion:{input:{type:"structure",required:["PolicyArn","VersionId"],members:{PolicyArn:{},VersionId:{}}}},SetSecurityTokenServicePreferences:{input:{type:"structure",required:["GlobalEndpointTokenVersion"],members:{GlobalEndpointTokenVersion:{}}}},SimulateCustomPolicy:{input:{type:"structure",required:["PolicyInputList","ActionNames"],members:{PolicyInputList:{shape:"S4s"},PermissionsBoundaryPolicyInputList:{shape:"S4s"},ActionNames:{shape:"S9w"},ResourceArns:{shape:"S9y"},ResourcePolicy:{},ResourceOwner:{},CallerArn:{},ContextEntries:{shape:"Sa0"},ResourceHandlingOption:{},MaxItems:{type:"integer"},Marker:{}}},output:{shape:"Sa6",resultWrapper:"SimulateCustomPolicyResult"}},SimulatePrincipalPolicy:{input:{type:"structure",required:["PolicySourceArn","ActionNames"],members:{PolicySourceArn:{},PolicyInputList:{shape:"S4s"},PermissionsBoundaryPolicyInputList:{shape:"S4s"},ActionNames:{shape:"S9w"},ResourceArns:{shape:"S9y"},ResourcePolicy:{},ResourceOwner:{},CallerArn:{},ContextEntries:{shape:"Sa0"},ResourceHandlingOption:{},MaxItems:{type:"integer"},Marker:{}}},output:{shape:"Sa6",resultWrapper:"SimulatePrincipalPolicyResult"}},TagRole:{input:{type:"structure",required:["RoleName","Tags"],members:{RoleName:{},Tags:{shape:"S14"}}}},TagUser:{input:{type:"structure",required:["UserName","Tags"],members:{UserName:{},Tags:{shape:"S14"}}}},UntagRole:{input:{type:"structure",required:["RoleName","TagKeys"],members:{RoleName:{},TagKeys:{shape:"Sar"}}}},UntagUser:{input:{type:"structure",required:["UserName","TagKeys"],members:{UserName:{},TagKeys:{shape:"Sar"}}}},UpdateAccessKey:{input:{type:"structure",required:["AccessKeyId","Status"],members:{UserName:{},AccessKeyId:{},Status:{}}}},UpdateAccountPasswordPolicy:{input:{type:"structure",members:{MinimumPasswordLength:{type:"integer"},RequireSymbols:{type:"boolean"},RequireNumbers:{type:"boolean"},RequireUppercaseCharacters:{type:"boolean"},RequireLowercaseCharacters:{type:"boolean"},AllowUsersToChangePassword:{type:"boolean"},MaxPasswordAge:{type:"integer"},PasswordReusePrevention:{type:"integer"},HardExpiry:{type:"boolean"}}}},UpdateAssumeRolePolicy:{input:{type:"structure",required:["RoleName","PolicyDocument"],members:{RoleName:{},PolicyDocument:{}}}},UpdateGroup:{input:{type:"structure",required:["GroupName"],members:{GroupName:{},NewPath:{},NewGroupName:{}}}},UpdateLoginProfile:{input:{type:"structure",required:["UserName"],members:{UserName:{},Password:{shape:"Sf"},PasswordResetRequired:{type:"boolean"}}}},UpdateOpenIDConnectProviderThumbprint:{input:{type:"structure",required:["OpenIDConnectProviderArn","ThumbprintList"],members:{OpenIDConnectProviderArn:{},ThumbprintList:{shape:"S1h"}}}},UpdateRole:{input:{type:"structure",required:["RoleName"],members:{RoleName:{},Description:{},MaxSessionDuration:{type:"integer"}}},output:{resultWrapper:"UpdateRoleResult",type:"structure",members:{}}},UpdateRoleDescription:{input:{type:"structure",required:["RoleName","Description"],members:{RoleName:{},Description:{}}},output:{resultWrapper:"UpdateRoleDescriptionResult",type:"structure",members:{Role:{shape:"Sy"}}}},UpdateSAMLProvider:{input:{type:"structure",required:["SAMLMetadataDocument","SAMLProviderArn"],members:{ +SAMLMetadataDocument:{},SAMLProviderArn:{}}},output:{resultWrapper:"UpdateSAMLProviderResult",type:"structure",members:{SAMLProviderArn:{}}}},UpdateSSHPublicKey:{input:{type:"structure",required:["UserName","SSHPublicKeyId","Status"],members:{UserName:{},SSHPublicKeyId:{},Status:{}}}},UpdateServerCertificate:{input:{type:"structure",required:["ServerCertificateName"],members:{ServerCertificateName:{},NewPath:{},NewServerCertificateName:{}}}},UpdateServiceSpecificCredential:{input:{type:"structure",required:["ServiceSpecificCredentialId","Status"],members:{UserName:{},ServiceSpecificCredentialId:{},Status:{}}}},UpdateSigningCertificate:{input:{type:"structure",required:["CertificateId","Status"],members:{UserName:{},CertificateId:{},Status:{}}}},UpdateUser:{input:{type:"structure",required:["UserName"],members:{UserName:{},NewPath:{},NewUserName:{}}}},UploadSSHPublicKey:{input:{type:"structure",required:["UserName","SSHPublicKeyBody"],members:{UserName:{},SSHPublicKeyBody:{}}},output:{resultWrapper:"UploadSSHPublicKeyResult",type:"structure",members:{SSHPublicKey:{shape:"S5y"}}}},UploadServerCertificate:{input:{type:"structure",required:["ServerCertificateName","CertificateBody","PrivateKey"],members:{Path:{},ServerCertificateName:{},CertificateBody:{},PrivateKey:{type:"string",sensitive:!0},CertificateChain:{}}},output:{resultWrapper:"UploadServerCertificateResult",type:"structure",members:{ServerCertificateMetadata:{shape:"S64"}}}},UploadSigningCertificate:{input:{type:"structure",required:["CertificateBody"],members:{UserName:{},CertificateBody:{}}},output:{resultWrapper:"UploadSigningCertificateResult",type:"structure",required:["Certificate"],members:{Certificate:{shape:"S96"}}}}},shapes:{Sf:{type:"string",sensitive:!0},Ss:{type:"structure",required:["Path","GroupName","GroupId","Arn","CreateDate"],members:{Path:{},GroupName:{},GroupId:{},Arn:{},CreateDate:{type:"timestamp"}}},Sw:{type:"structure",required:["Path","InstanceProfileName","InstanceProfileId","Arn","CreateDate","Roles"],members:{Path:{},InstanceProfileName:{},InstanceProfileId:{},Arn:{},CreateDate:{type:"timestamp"},Roles:{shape:"Sx"}}},Sx:{type:"list",member:{shape:"Sy"}},Sy:{type:"structure",required:["Path","RoleName","RoleId","Arn","CreateDate"],members:{Path:{},RoleName:{},RoleId:{},Arn:{},CreateDate:{type:"timestamp"},AssumeRolePolicyDocument:{},Description:{},MaxSessionDuration:{type:"integer"},PermissionsBoundary:{shape:"S12"},Tags:{shape:"S14"},RoleLastUsed:{shape:"S18"}}},S12:{type:"structure",members:{PermissionsBoundaryType:{},PermissionsBoundaryArn:{}}},S14:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},S18:{type:"structure",members:{LastUsedDate:{type:"timestamp"},Region:{}}},S1d:{type:"structure",required:["UserName","CreateDate"],members:{UserName:{},CreateDate:{type:"timestamp"},PasswordResetRequired:{type:"boolean"}}},S1g:{type:"list",member:{}},S1h:{type:"list",member:{}},S1p:{type:"structure",members:{PolicyName:{},PolicyId:{},Arn:{},Path:{},DefaultVersionId:{},AttachmentCount:{type:"integer"},PermissionsBoundaryUsageCount:{type:"integer"},IsAttachable:{type:"boolean"},Description:{},CreateDate:{type:"timestamp"},UpdateDate:{type:"timestamp"}}},S1u:{type:"structure",members:{Document:{},VersionId:{},IsDefaultVersion:{type:"boolean"},CreateDate:{type:"timestamp"}}},S27:{type:"structure",required:["CreateDate","ServiceName","ServiceUserName","ServicePassword","ServiceSpecificCredentialId","UserName","Status"],members:{CreateDate:{type:"timestamp"},ServiceName:{},ServiceUserName:{},ServicePassword:{type:"string",sensitive:!0},ServiceSpecificCredentialId:{},UserName:{},Status:{}}},S2d:{type:"structure",required:["Path","UserName","UserId","Arn","CreateDate"],members:{Path:{},UserName:{},UserId:{},Arn:{},CreateDate:{type:"timestamp"},PasswordLastUsed:{type:"timestamp"},PermissionsBoundary:{shape:"S12"},Tags:{shape:"S14"}}},S2h:{type:"structure",required:["SerialNumber"],members:{SerialNumber:{},Base32StringSeed:{shape:"S2j"},QRCodePNG:{shape:"S2j"},User:{shape:"S2d"},EnableDate:{type:"timestamp"}}},S2j:{type:"blob",sensitive:!0},S43:{type:"list",member:{type:"structure",members:{PolicyName:{},PolicyDocument:{}}}},S46:{type:"list",member:{type:"structure",members:{PolicyName:{},PolicyArn:{}}}},S4c:{type:"list",member:{shape:"Sw"}},S4f:{type:"list",member:{shape:"S1u"}},S4s:{type:"list",member:{}},S4t:{type:"structure",members:{ContextKeyNames:{shape:"S4u"}}},S4u:{type:"list",member:{}},S52:{type:"list",member:{shape:"S2d"}},S5k:{type:"structure",required:["Message","Code"],members:{Message:{},Code:{}}},S5y:{type:"structure",required:["UserName","SSHPublicKeyId","Fingerprint","SSHPublicKeyBody","Status"],members:{UserName:{},SSHPublicKeyId:{},Fingerprint:{},SSHPublicKeyBody:{},Status:{},UploadDate:{type:"timestamp"}}},S64:{type:"structure",required:["Path","ServerCertificateName","ServerCertificateId","Arn"],members:{Path:{},ServerCertificateName:{},ServerCertificateId:{},Arn:{},UploadDate:{type:"timestamp"},Expiration:{type:"timestamp"}}},S7k:{type:"list",member:{}},S7o:{type:"list",member:{shape:"Ss"}},S96:{type:"structure",required:["UserName","CertificateId","CertificateBody","Status"],members:{UserName:{},CertificateId:{},CertificateBody:{},Status:{},UploadDate:{type:"timestamp"}}},S9w:{type:"list",member:{}},S9y:{type:"list",member:{}},Sa0:{type:"list",member:{type:"structure",members:{ContextKeyName:{},ContextKeyValues:{type:"list",member:{}},ContextKeyType:{}}}},Sa6:{type:"structure",members:{EvaluationResults:{type:"list",member:{type:"structure",required:["EvalActionName","EvalDecision"],members:{EvalActionName:{},EvalResourceName:{},EvalDecision:{},MatchedStatements:{shape:"Saa"},MissingContextValues:{shape:"S4u"},OrganizationsDecisionDetail:{type:"structure",members:{AllowedByOrganizations:{type:"boolean"}}},PermissionsBoundaryDecisionDetail:{shape:"Sai"},EvalDecisionDetails:{shape:"Saj"},ResourceSpecificResults:{type:"list",member:{type:"structure",required:["EvalResourceName","EvalResourceDecision"],members:{EvalResourceName:{},EvalResourceDecision:{},MatchedStatements:{shape:"Saa"},MissingContextValues:{shape:"S4u"},EvalDecisionDetails:{shape:"Saj"},PermissionsBoundaryDecisionDetail:{shape:"Sai"}}}}}}},IsTruncated:{type:"boolean"},Marker:{}}},Saa:{type:"list",member:{type:"structure",members:{SourcePolicyId:{},SourcePolicyType:{},StartPosition:{shape:"Sae"},EndPosition:{shape:"Sae"}}}},Sae:{type:"structure",members:{Line:{type:"integer"},Column:{type:"integer"}}},Sai:{type:"structure",members:{AllowedByPermissionsBoundary:{type:"boolean"}}},Saj:{type:"map",key:{},value:{}},Sar:{type:"list",member:{}}},paginators:{GetAccountAuthorizationDetails:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:["UserDetailList","GroupDetailList","RoleDetailList","Policies"]},GetGroup:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Users"},ListAccessKeys:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"AccessKeyMetadata"},ListAccountAliases:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"AccountAliases"},ListAttachedGroupPolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"AttachedPolicies"},ListAttachedRolePolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"AttachedPolicies"},ListAttachedUserPolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"AttachedPolicies"},ListEntitiesForPolicy:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:["PolicyGroups","PolicyUsers","PolicyRoles"]},ListGroupPolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"PolicyNames"},ListGroups:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Groups"},ListGroupsForUser:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Groups"},ListInstanceProfiles:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"InstanceProfiles"},ListInstanceProfilesForRole:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"InstanceProfiles"},ListMFADevices:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"MFADevices"},ListPolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Policies"},ListPolicyVersions:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Versions"},ListRolePolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"PolicyNames"},ListRoles:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Roles"},ListSAMLProviders:{result_key:"SAMLProviderList"},ListSSHPublicKeys:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"SSHPublicKeys"},ListServerCertificates:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"ServerCertificateMetadataList"},ListSigningCertificates:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Certificates"},ListUserPolicies:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"PolicyNames"},ListUsers:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"Users"},ListVirtualMFADevices:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"VirtualMFADevices"},SimulateCustomPolicy:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"EvaluationResults"},SimulatePrincipalPolicy:{input_token:"Marker",limit_key:"MaxItems",more_results:"IsTruncated",output_token:"Marker",result_key:"EvaluationResults"}},waiters:{InstanceProfileExists:{delay:1,operation:"GetInstanceProfile",maxAttempts:40,acceptors:[{expected:200,matcher:"status",state:"success"},{state:"retry",matcher:"status",expected:404}]},UserExists:{delay:1,operation:"GetUser",maxAttempts:20,acceptors:[{state:"success",matcher:"status",expected:200},{state:"retry",matcher:"error",expected:"NoSuchEntity"}]},RoleExists:{delay:1,operation:"GetRole",maxAttempts:20,acceptors:[{state:"success",matcher:"status",expected:200},{state:"retry",matcher:"error",expected:"NoSuchEntity"}]},PolicyExists:{delay:1,operation:"GetPolicy",maxAttempts:20,acceptors:[{state:"success",matcher:"status",expected:200},{state:"retry",matcher:"error",expected:"NoSuchEntity"}]}}};AWS.apiLoader.services.kms={},AWS.KMS=AWS.Service.defineService("kms",["2014-11-01"]);AWS.apiLoader.services.kms["2014-11-01"]={version:"2.0",metadata:{apiVersion:"2014-11-01",endpointPrefix:"kms",jsonVersion:"1.1",protocol:"json",serviceAbbreviation:"KMS",serviceFullName:"AWS Key Management Service",serviceId:"KMS",signatureVersion:"v4",targetPrefix:"TrentService",uid:"kms-2014-11-01"},operations:{CancelKeyDeletion:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}},output:{type:"structure",members:{KeyId:{}}}},ConnectCustomKeyStore:{input:{type:"structure",required:["CustomKeyStoreId"],members:{CustomKeyStoreId:{}}},output:{type:"structure",members:{}}},CreateAlias:{input:{type:"structure",required:["AliasName","TargetKeyId"],members:{AliasName:{},TargetKeyId:{}}}},CreateCustomKeyStore:{input:{type:"structure",required:["CustomKeyStoreName","CloudHsmClusterId","TrustAnchorCertificate","KeyStorePassword"],members:{CustomKeyStoreName:{},CloudHsmClusterId:{},TrustAnchorCertificate:{},KeyStorePassword:{shape:"Sd"}}},output:{type:"structure",members:{CustomKeyStoreId:{}}}},CreateGrant:{input:{type:"structure",required:["KeyId","GranteePrincipal","Operations"],members:{KeyId:{},GranteePrincipal:{},RetiringPrincipal:{},Operations:{shape:"Sh"},Constraints:{shape:"Sj"},GrantTokens:{shape:"Sn"},Name:{}}},output:{type:"structure",members:{GrantToken:{},GrantId:{}}}},CreateKey:{input:{type:"structure",members:{Policy:{},Description:{},KeyUsage:{},CustomerMasterKeySpec:{},Origin:{},CustomKeyStoreId:{},BypassPolicyLockoutSafetyCheck:{type:"boolean"},Tags:{shape:"Sz"}}},output:{type:"structure",members:{KeyMetadata:{shape:"S14"}}}},Decrypt:{input:{type:"structure",required:["CiphertextBlob"],members:{CiphertextBlob:{type:"blob"},EncryptionContext:{shape:"Sk"},GrantTokens:{shape:"Sn"},KeyId:{},EncryptionAlgorithm:{}}},output:{type:"structure",members:{KeyId:{},Plaintext:{shape:"S1i"},EncryptionAlgorithm:{}}}},DeleteAlias:{input:{type:"structure",required:["AliasName"],members:{AliasName:{}}}},DeleteCustomKeyStore:{input:{type:"structure",required:["CustomKeyStoreId"],members:{CustomKeyStoreId:{}}},output:{type:"structure",members:{}}},DeleteImportedKeyMaterial:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}}},DescribeCustomKeyStores:{input:{type:"structure",members:{CustomKeyStoreId:{},CustomKeyStoreName:{},Limit:{type:"integer"},Marker:{}}},output:{type:"structure",members:{CustomKeyStores:{type:"list",member:{type:"structure",members:{CustomKeyStoreId:{},CustomKeyStoreName:{},CloudHsmClusterId:{},TrustAnchorCertificate:{},ConnectionState:{},ConnectionErrorCode:{},CreationDate:{type:"timestamp"}}}},NextMarker:{},Truncated:{type:"boolean"}}}},DescribeKey:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},GrantTokens:{shape:"Sn"}}},output:{type:"structure",members:{KeyMetadata:{shape:"S14"}}}},DisableKey:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}}},DisableKeyRotation:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}}},DisconnectCustomKeyStore:{input:{type:"structure",required:["CustomKeyStoreId"],members:{CustomKeyStoreId:{}}},output:{type:"structure",members:{}}},EnableKey:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}}},EnableKeyRotation:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}}},Encrypt:{input:{type:"structure",required:["KeyId","Plaintext"],members:{KeyId:{},Plaintext:{shape:"S1i"},EncryptionContext:{shape:"Sk"},GrantTokens:{shape:"Sn"},EncryptionAlgorithm:{}}},output:{type:"structure",members:{CiphertextBlob:{type:"blob"},KeyId:{},EncryptionAlgorithm:{}}}},GenerateDataKey:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},EncryptionContext:{shape:"Sk"},NumberOfBytes:{type:"integer"},KeySpec:{},GrantTokens:{shape:"Sn"}}},output:{type:"structure",members:{CiphertextBlob:{type:"blob"},Plaintext:{shape:"S1i"},KeyId:{}}}},GenerateDataKeyPair:{input:{type:"structure",required:["KeyId","KeyPairSpec"],members:{EncryptionContext:{shape:"Sk"},KeyId:{},KeyPairSpec:{},GrantTokens:{shape:"Sn"}}},output:{type:"structure",members:{PrivateKeyCiphertextBlob:{type:"blob"},PrivateKeyPlaintext:{shape:"S1i"},PublicKey:{type:"blob"},KeyId:{},KeyPairSpec:{}}}},GenerateDataKeyPairWithoutPlaintext:{input:{type:"structure",required:["KeyId","KeyPairSpec"],members:{EncryptionContext:{shape:"Sk"},KeyId:{},KeyPairSpec:{},GrantTokens:{shape:"Sn"}}},output:{type:"structure",members:{PrivateKeyCiphertextBlob:{type:"blob"},PublicKey:{type:"blob"},KeyId:{},KeyPairSpec:{}}}},GenerateDataKeyWithoutPlaintext:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},EncryptionContext:{shape:"Sk"},KeySpec:{},NumberOfBytes:{type:"integer"},GrantTokens:{shape:"Sn"}}},output:{type:"structure",members:{CiphertextBlob:{type:"blob"},KeyId:{}}}},GenerateRandom:{input:{type:"structure",members:{NumberOfBytes:{type:"integer"},CustomKeyStoreId:{}}},output:{type:"structure",members:{Plaintext:{shape:"S1i"}}}},GetKeyPolicy:{input:{type:"structure",required:["KeyId","PolicyName"],members:{KeyId:{},PolicyName:{}}},output:{type:"structure",members:{Policy:{}}}},GetKeyRotationStatus:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}},output:{type:"structure",members:{KeyRotationEnabled:{type:"boolean"}}}},GetParametersForImport:{input:{type:"structure",required:["KeyId","WrappingAlgorithm","WrappingKeySpec"],members:{KeyId:{},WrappingAlgorithm:{},WrappingKeySpec:{}}},output:{type:"structure",members:{KeyId:{},ImportToken:{type:"blob"},PublicKey:{shape:"S1i"},ParametersValidTo:{type:"timestamp"}}}},GetPublicKey:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},GrantTokens:{shape:"Sn"}}},output:{type:"structure",members:{KeyId:{},PublicKey:{type:"blob"},CustomerMasterKeySpec:{},KeyUsage:{},EncryptionAlgorithms:{shape:"S1b"},SigningAlgorithms:{shape:"S1d"}}}},ImportKeyMaterial:{input:{type:"structure",required:["KeyId","ImportToken","EncryptedKeyMaterial"],members:{KeyId:{},ImportToken:{type:"blob"},EncryptedKeyMaterial:{type:"blob"},ValidTo:{type:"timestamp"},ExpirationModel:{}}},output:{type:"structure",members:{}}},ListAliases:{input:{type:"structure",members:{KeyId:{},Limit:{type:"integer"},Marker:{}}},output:{type:"structure",members:{Aliases:{type:"list",member:{type:"structure",members:{AliasName:{},AliasArn:{},TargetKeyId:{}}}},NextMarker:{},Truncated:{type:"boolean"}}}},ListGrants:{input:{type:"structure",required:["KeyId"],members:{Limit:{type:"integer"},Marker:{},KeyId:{}}},output:{shape:"S31"}},ListKeyPolicies:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},Limit:{type:"integer"},Marker:{}}},output:{type:"structure",members:{PolicyNames:{type:"list",member:{}},NextMarker:{},Truncated:{type:"boolean"}}}},ListKeys:{input:{type:"structure",members:{Limit:{type:"integer"},Marker:{}}},output:{type:"structure",members:{Keys:{type:"list",member:{type:"structure",members:{KeyId:{},KeyArn:{}}}},NextMarker:{},Truncated:{type:"boolean"}}}},ListResourceTags:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},Limit:{type:"integer"},Marker:{}}},output:{type:"structure",members:{Tags:{shape:"Sz"},NextMarker:{},Truncated:{type:"boolean"}}}},ListRetirableGrants:{input:{type:"structure",required:["RetiringPrincipal"],members:{Limit:{type:"integer"},Marker:{},RetiringPrincipal:{}}},output:{shape:"S31"}},PutKeyPolicy:{input:{type:"structure",required:["KeyId","PolicyName","Policy"],members:{KeyId:{},PolicyName:{},Policy:{},BypassPolicyLockoutSafetyCheck:{type:"boolean"}}}},ReEncrypt:{input:{type:"structure",required:["CiphertextBlob","DestinationKeyId"],members:{CiphertextBlob:{type:"blob"},SourceEncryptionContext:{shape:"Sk"},SourceKeyId:{},DestinationKeyId:{},DestinationEncryptionContext:{shape:"Sk"},SourceEncryptionAlgorithm:{},DestinationEncryptionAlgorithm:{},GrantTokens:{shape:"Sn"}}},output:{type:"structure",members:{CiphertextBlob:{type:"blob"},SourceKeyId:{},KeyId:{},SourceEncryptionAlgorithm:{},DestinationEncryptionAlgorithm:{}}}},RetireGrant:{input:{type:"structure",members:{GrantToken:{},KeyId:{},GrantId:{}}}},RevokeGrant:{input:{type:"structure",required:["KeyId","GrantId"],members:{KeyId:{},GrantId:{}}}},ScheduleKeyDeletion:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},PendingWindowInDays:{type:"integer"}}},output:{type:"structure",members:{KeyId:{},DeletionDate:{type:"timestamp"}}}},Sign:{input:{type:"structure",required:["KeyId","Message","SigningAlgorithm"],members:{KeyId:{},Message:{shape:"S1i"},MessageType:{},GrantTokens:{shape:"Sn"},SigningAlgorithm:{}}},output:{type:"structure",members:{KeyId:{},Signature:{type:"blob"},SigningAlgorithm:{}}}},TagResource:{input:{type:"structure",required:["KeyId","Tags"],members:{KeyId:{},Tags:{shape:"Sz"}}}},UntagResource:{input:{type:"structure",required:["KeyId","TagKeys"],members:{KeyId:{},TagKeys:{type:"list",member:{}}}}},UpdateAlias:{input:{type:"structure",required:["AliasName","TargetKeyId"],members:{AliasName:{},TargetKeyId:{}}}},UpdateCustomKeyStore:{input:{type:"structure",required:["CustomKeyStoreId"],members:{CustomKeyStoreId:{},NewCustomKeyStoreName:{},KeyStorePassword:{shape:"Sd"},CloudHsmClusterId:{}}},output:{type:"structure",members:{}}},UpdateKeyDescription:{input:{type:"structure",required:["KeyId","Description"],members:{KeyId:{},Description:{}}}},Verify:{input:{type:"structure",required:["KeyId","Message","Signature","SigningAlgorithm"],members:{KeyId:{},Message:{shape:"S1i"},MessageType:{},Signature:{type:"blob"},SigningAlgorithm:{},GrantTokens:{shape:"Sn"}}},output:{type:"structure",members:{KeyId:{},SignatureValid:{type:"boolean"},SigningAlgorithm:{}}}}},shapes:{Sd:{type:"string",sensitive:!0},Sh:{type:"list",member:{}},Sj:{type:"structure",members:{EncryptionContextSubset:{shape:"Sk"},EncryptionContextEquals:{shape:"Sk"}}},Sk:{type:"map",key:{},value:{}},Sn:{type:"list",member:{}},Sz:{type:"list",member:{type:"structure",required:["TagKey","TagValue"],members:{TagKey:{},TagValue:{}}}},S14:{type:"structure",required:["KeyId"],members:{AWSAccountId:{},KeyId:{},Arn:{},CreationDate:{type:"timestamp"},Enabled:{type:"boolean"},Description:{},KeyUsage:{},KeyState:{},DeletionDate:{type:"timestamp"},ValidTo:{type:"timestamp"},Origin:{},CustomKeyStoreId:{},CloudHsmClusterId:{},ExpirationModel:{},KeyManager:{},CustomerMasterKeySpec:{},EncryptionAlgorithms:{shape:"S1b"},SigningAlgorithms:{shape:"S1d"}}},S1b:{type:"list",member:{}},S1d:{type:"list",member:{}},S1i:{type:"blob",sensitive:!0},S31:{type:"structure",members:{Grants:{type:"list",member:{type:"structure",members:{KeyId:{},GrantId:{},Name:{},CreationDate:{type:"timestamp"},GranteePrincipal:{},RetiringPrincipal:{},IssuingAccount:{},Operations:{shape:"Sh"},Constraints:{shape:"Sj"}}}},NextMarker:{},Truncated:{type:"boolean"}}}},paginators:{ListAliases:{input_token:"Marker",limit_key:"Limit",more_results:"Truncated",output_token:"NextMarker",result_key:"Aliases"},ListGrants:{input_token:"Marker",limit_key:"Limit",more_results:"Truncated",output_token:"NextMarker",result_key:"Grants"},ListKeyPolicies:{input_token:"Marker",limit_key:"Limit",more_results:"Truncated",output_token:"NextMarker",result_key:"PolicyNames"},ListKeys:{input_token:"Marker",limit_key:"Limit",more_results:"Truncated",output_token:"NextMarker",result_key:"Keys"}}};AWS.apiLoader.services.eks={},AWS.EKS=AWS.Service.defineService("eks",["2017-11-01"]);AWS.apiLoader.services.eks["2017-11-01"]={version:"2.0",metadata:{apiVersion:"2017-11-01",endpointPrefix:"eks",jsonVersion:"1.1",protocol:"rest-json",serviceAbbreviation:"Amazon EKS",serviceFullName:"Amazon Elastic Kubernetes Service",serviceId:"EKS",signatureVersion:"v4",signingName:"eks",uid:"eks-2017-11-01"},operations:{CreateCluster:{http:{requestUri:"/clusters"},input:{type:"structure",required:["name","roleArn","resourcesVpcConfig"],members:{name:{},version:{},roleArn:{},resourcesVpcConfig:{shape:"S4"},logging:{shape:"S7"},clientRequestToken:{idempotencyToken:!0},tags:{shape:"Sc"},encryptionConfig:{shape:"Sf"}}},output:{type:"structure",members:{cluster:{shape:"Sj"}}}},CreateFargateProfile:{http:{requestUri:"/clusters/{name}/fargate-profiles"},input:{type:"structure",required:["fargateProfileName","clusterName","podExecutionRoleArn"],members:{fargateProfileName:{},clusterName:{location:"uri",locationName:"name"},podExecutionRoleArn:{},subnets:{shape:"S5"},selectors:{shape:"Ss"},clientRequestToken:{idempotencyToken:!0},tags:{shape:"Sc"}}},output:{type:"structure",members:{fargateProfile:{shape:"Sw"}}}},CreateNodegroup:{http:{requestUri:"/clusters/{name}/node-groups"},input:{type:"structure",required:["clusterName","nodegroupName","subnets","nodeRole"],members:{clusterName:{location:"uri",locationName:"name"},nodegroupName:{},scalingConfig:{shape:"Sz"},diskSize:{type:"integer"},subnets:{shape:"S5"},instanceTypes:{shape:"S5"},amiType:{},remoteAccess:{shape:"S13"},nodeRole:{},labels:{shape:"S14"},tags:{shape:"Sc"},clientRequestToken:{idempotencyToken:!0},version:{},releaseVersion:{}}},output:{type:"structure",members:{nodegroup:{shape:"S18"}}}},DeleteCluster:{http:{method:"DELETE",requestUri:"/clusters/{name}"},input:{type:"structure",required:["name"],members:{name:{location:"uri",locationName:"name"}}},output:{type:"structure",members:{cluster:{shape:"Sj"}}}},DeleteFargateProfile:{http:{method:"DELETE",requestUri:"/clusters/{name}/fargate-profiles/{fargateProfileName}"},input:{type:"structure",required:["clusterName","fargateProfileName"],members:{clusterName:{location:"uri",locationName:"name"},fargateProfileName:{location:"uri",locationName:"fargateProfileName"}}},output:{type:"structure",members:{fargateProfile:{shape:"Sw"}}}},DeleteNodegroup:{http:{method:"DELETE",requestUri:"/clusters/{name}/node-groups/{nodegroupName}"},input:{type:"structure",required:["clusterName","nodegroupName"],members:{clusterName:{location:"uri",locationName:"name"},nodegroupName:{location:"uri",locationName:"nodegroupName"}}},output:{type:"structure",members:{nodegroup:{shape:"S18"}}}},DescribeCluster:{http:{method:"GET",requestUri:"/clusters/{name}"},input:{type:"structure",required:["name"],members:{name:{location:"uri",locationName:"name"}}},output:{type:"structure",members:{cluster:{shape:"Sj"}}}},DescribeFargateProfile:{http:{method:"GET",requestUri:"/clusters/{name}/fargate-profiles/{fargateProfileName}"},input:{type:"structure",required:["clusterName","fargateProfileName"],members:{clusterName:{location:"uri",locationName:"name"},fargateProfileName:{location:"uri",locationName:"fargateProfileName"}}},output:{type:"structure",members:{fargateProfile:{shape:"Sw"}}}},DescribeNodegroup:{http:{method:"GET",requestUri:"/clusters/{name}/node-groups/{nodegroupName}"},input:{type:"structure",required:["clusterName","nodegroupName"],members:{clusterName:{location:"uri",locationName:"name"},nodegroupName:{location:"uri",locationName:"nodegroupName"}}},output:{type:"structure",members:{nodegroup:{shape:"S18"}}}},DescribeUpdate:{http:{method:"GET",requestUri:"/clusters/{name}/updates/{updateId}"},input:{type:"structure",required:["name","updateId"],members:{name:{location:"uri",locationName:"name"},updateId:{location:"uri",locationName:"updateId"},nodegroupName:{location:"querystring",locationName:"nodegroupName"}}},output:{type:"structure",members:{update:{shape:"S1v"}}}},ListClusters:{http:{method:"GET",requestUri:"/clusters"},input:{type:"structure",members:{maxResults:{location:"querystring",locationName:"maxResults",type:"integer"},nextToken:{location:"querystring",locationName:"nextToken"}}},output:{type:"structure",members:{clusters:{shape:"S5"},nextToken:{}}}},ListFargateProfiles:{http:{method:"GET",requestUri:"/clusters/{name}/fargate-profiles"},input:{type:"structure",required:["clusterName"],members:{clusterName:{location:"uri",locationName:"name"},maxResults:{location:"querystring",locationName:"maxResults",type:"integer"},nextToken:{location:"querystring",locationName:"nextToken"}}},output:{type:"structure",members:{fargateProfileNames:{shape:"S5"},nextToken:{}}}},ListNodegroups:{http:{method:"GET",requestUri:"/clusters/{name}/node-groups"},input:{type:"structure",required:["clusterName"],members:{clusterName:{location:"uri",locationName:"name"},maxResults:{location:"querystring",locationName:"maxResults",type:"integer"},nextToken:{location:"querystring",locationName:"nextToken"}}},output:{type:"structure",members:{nodegroups:{shape:"S5"},nextToken:{}}}},ListTagsForResource:{http:{method:"GET",requestUri:"/tags/{resourceArn}"},input:{type:"structure",required:["resourceArn"],members:{resourceArn:{location:"uri",locationName:"resourceArn"}}},output:{type:"structure",members:{tags:{shape:"Sc"}}}},ListUpdates:{http:{method:"GET",requestUri:"/clusters/{name}/updates"},input:{type:"structure",required:["name"],members:{name:{location:"uri",locationName:"name"},nodegroupName:{location:"querystring",locationName:"nodegroupName"},nextToken:{location:"querystring",locationName:"nextToken"},maxResults:{location:"querystring",locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{updateIds:{shape:"S5"},nextToken:{}}}},TagResource:{http:{requestUri:"/tags/{resourceArn}"},input:{type:"structure",required:["resourceArn","tags"],members:{resourceArn:{location:"uri",locationName:"resourceArn"},tags:{shape:"Sc"}}},output:{type:"structure",members:{}}},UntagResource:{http:{method:"DELETE",requestUri:"/tags/{resourceArn}"},input:{type:"structure",required:["resourceArn","tagKeys"],members:{resourceArn:{location:"uri",locationName:"resourceArn"},tagKeys:{location:"querystring",locationName:"tagKeys",type:"list",member:{}}}},output:{type:"structure",members:{}}},UpdateClusterConfig:{http:{requestUri:"/clusters/{name}/update-config"},input:{type:"structure",required:["name"],members:{name:{location:"uri",locationName:"name"},resourcesVpcConfig:{shape:"S4"},logging:{shape:"S7"},clientRequestToken:{idempotencyToken:!0}}},output:{type:"structure",members:{update:{shape:"S1v"}}}},UpdateClusterVersion:{http:{requestUri:"/clusters/{name}/updates"},input:{type:"structure",required:["name","version"],members:{name:{location:"uri",locationName:"name"},version:{},clientRequestToken:{idempotencyToken:!0}}},output:{type:"structure",members:{update:{shape:"S1v"}}}},UpdateNodegroupConfig:{http:{requestUri:"/clusters/{name}/node-groups/{nodegroupName}/update-config"},input:{type:"structure",required:["clusterName","nodegroupName"],members:{clusterName:{location:"uri",locationName:"name"},nodegroupName:{location:"uri",locationName:"nodegroupName"},labels:{type:"structure",members:{addOrUpdateLabels:{shape:"S14"},removeLabels:{type:"list",member:{}}}},scalingConfig:{shape:"Sz"},clientRequestToken:{idempotencyToken:!0}}},output:{type:"structure",members:{update:{shape:"S1v"}}}},UpdateNodegroupVersion:{http:{requestUri:"/clusters/{name}/node-groups/{nodegroupName}/update-version"},input:{type:"structure",required:["clusterName","nodegroupName"],members:{clusterName:{location:"uri",locationName:"name"},nodegroupName:{location:"uri",locationName:"nodegroupName"},version:{},releaseVersion:{},force:{type:"boolean"},clientRequestToken:{idempotencyToken:!0}}},output:{type:"structure",members:{update:{shape:"S1v"}}}}},shapes:{S4:{type:"structure",members:{subnetIds:{shape:"S5"},securityGroupIds:{shape:"S5"},endpointPublicAccess:{type:"boolean"},endpointPrivateAccess:{type:"boolean"},publicAccessCidrs:{shape:"S5"}}},S5:{type:"list",member:{}},S7:{type:"structure",members:{clusterLogging:{type:"list",member:{type:"structure",members:{types:{type:"list",member:{}},enabled:{type:"boolean"}}}}}},Sc:{type:"map",key:{},value:{}},Sf:{type:"list",member:{type:"structure",members:{resources:{shape:"S5"},provider:{type:"structure",members:{keyArn:{}}}}}},Sj:{type:"structure",members:{name:{},arn:{},createdAt:{type:"timestamp"},version:{},endpoint:{},roleArn:{},resourcesVpcConfig:{type:"structure",members:{subnetIds:{shape:"S5"},securityGroupIds:{shape:"S5"},clusterSecurityGroupId:{},vpcId:{},endpointPublicAccess:{type:"boolean"},endpointPrivateAccess:{type:"boolean"},publicAccessCidrs:{shape:"S5"}}},logging:{shape:"S7"},identity:{type:"structure",members:{oidc:{type:"structure",members:{issuer:{}}}}},status:{},certificateAuthority:{type:"structure",members:{data:{}}},clientRequestToken:{},platformVersion:{},tags:{shape:"Sc"},encryptionConfig:{shape:"Sf"}}},Ss:{type:"list",member:{type:"structure",members:{namespace:{},labels:{type:"map",key:{},value:{}}}}},Sw:{type:"structure",members:{fargateProfileName:{},fargateProfileArn:{},clusterName:{},createdAt:{type:"timestamp"},podExecutionRoleArn:{},subnets:{shape:"S5"},selectors:{shape:"Ss"},status:{},tags:{shape:"Sc"}}},Sz:{type:"structure",members:{minSize:{type:"integer"},maxSize:{type:"integer"},desiredSize:{type:"integer"}}},S13:{type:"structure",members:{ec2SshKey:{},sourceSecurityGroups:{shape:"S5"}}},S14:{type:"map",key:{},value:{}},S18:{type:"structure",members:{nodegroupName:{},nodegroupArn:{},clusterName:{},version:{},releaseVersion:{},createdAt:{type:"timestamp"},modifiedAt:{type:"timestamp"},status:{},scalingConfig:{shape:"Sz"},instanceTypes:{shape:"S5"},subnets:{shape:"S5"},remoteAccess:{shape:"S13"},amiType:{},nodeRole:{},labels:{shape:"S14"},resources:{type:"structure",members:{autoScalingGroups:{type:"list",member:{type:"structure",members:{name:{}}}},remoteAccessSecurityGroup:{}}},diskSize:{type:"integer"},health:{type:"structure",members:{issues:{type:"list",member:{type:"structure",members:{code:{},message:{},resourceIds:{shape:"S5"}}}}}},tags:{shape:"Sc"}}},S1v:{type:"structure",members:{id:{},status:{},type:{},params:{type:"list",member:{type:"structure",members:{type:{},value:{}}}},createdAt:{type:"timestamp"},errors:{type:"list",member:{type:"structure",members:{errorCode:{},errorMessage:{},resourceIds:{shape:"S5"}}}}}}},paginators:{ListClusters:{input_token:"nextToken",limit_key:"maxResults",output_token:"nextToken",result_key:"clusters"},ListFargateProfiles:{input_token:"nextToken",limit_key:"maxResults",output_token:"nextToken",result_key:"fargateProfileNames"},ListNodegroups:{input_token:"nextToken",limit_key:"maxResults",output_token:"nextToken",result_key:"nodegroups"},ListUpdates:{input_token:"nextToken",limit_key:"maxResults",output_token:"nextToken",result_key:"updateIds"}},waiters:{ClusterActive:{delay:30,operation:"DescribeCluster",maxAttempts:40,acceptors:[{expected:"DELETING",matcher:"path",state:"failure",argument:"cluster.status"},{expected:"FAILED",matcher:"path",state:"failure",argument:"cluster.status"},{expected:"ACTIVE",matcher:"path",state:"success",argument:"cluster.status"}]},ClusterDeleted:{delay:30,operation:"DescribeCluster",maxAttempts:40,acceptors:[{expected:"ACTIVE",matcher:"path",state:"failure",argument:"cluster.status"},{expected:"CREATING",matcher:"path",state:"failure",argument:"cluster.status"},{expected:"ResourceNotFoundException",matcher:"error",state:"success"}]},NodegroupActive:{delay:30,operation:"DescribeNodegroup",maxAttempts:80,acceptors:[{expected:"CREATE_FAILED",matcher:"path",state:"failure",argument:"nodegroup.status"},{expected:"ACTIVE",matcher:"path",state:"success",argument:"nodegroup.status"}]},NodegroupDeleted:{delay:30,operation:"DescribeNodegroup",maxAttempts:40,acceptors:[{expected:"DELETE_FAILED",matcher:"path",state:"failure",argument:"nodegroup.status"},{expected:"ResourceNotFoundException",matcher:"error",state:"success"}]}}};AWS.apiLoader.services.sts={},AWS.STS=AWS.Service.defineService("sts",["2011-06-15"]),_xamzrequire=function e(n,i,t){function r(s,a){if(!i[s]){if(!n[s]){var u="function"==typeof _xamzrequire&&_xamzrequire;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=i[s]={exports:{}};n[s][0].call(d.exports,function(e){var i=n[s][1][e];return r(i||e)},d,d.exports,e,n,i,t)}return i[s].exports}for(var o="function"==typeof _xamzrequire&&_xamzrequire,s=0;s